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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*

 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 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 Rl,D$r,tbo,tS,u9,sln,XoU,eb,wr,uiU,aUj,Mbb,$n,zjU,Syr,b9,IUy,ejy,rSi,$$n,bMr,ySi,lUr,U$b,K5b,L55,YE,HMM,uU,x$o,MU,P9b,CL,zE,Bri,po$,NU,lU,gno,DUS,YLU,h1,ZLr,tDj,sz5,ubS,RYy,m7,MDU,zYS,F7$,sz,GEn,VDj,f_9,eY$,A1U,t9,Tzr,R9,jzo,I_y,y1i,l_o,J1o,Wu,K7$,UUU,hYo,L7S,mUy,HLy,xUU,BzS,p4S,dUr,OLM,Dko,s9l,uEy,XuU,yI,ap9,Szj,Tb$,Ipl,fpS,GT5,eKj,V0b,J9,qLy,Uz,Kt,h9,A95,Lt,wu9,nK$,r95,Bu,$kU,vKU,bt5,NbU,y9M,lpn,J9U,kTU,xK,Khn,LhM,Oz,qzi,Q9U,DG,EKl,it9,Htb,Ot$,DyS,YNo,aGU,tf$,CTy,zEU,SN9,jJo,IGy,eE$,$y5,lGy,
KSU,xyl,f$,QJy,pZy,E7l,$7,vZ,bT,qy,HZ,RSl,sKS,Xh5,MX5,W_l,Y3,zSn,tF,sx,Xx,u4,T9y,jKU,Idn,F_b,GlM,fdU,eSU,AFo,n3n,whb,zl,Wh,$c9,v3S,o3U,yFo,bjr,N9l,ldU,JFo,fj,eX,nj,r9,$3,UcS,vh,hSU,xcU,b4,P4j,QK9,B9U,Nc,phM,E3M,g3b,l4,OjS,k3,YGn,R3U,Ux,twj,Z0y,sIj,X8n,uLn,a7M,m_,Mwi,Cm$,qc,WJ5,z3M,Hh,x3,Ph,Q9,SGU,jIU,TXj,Bh,FJy,GIl,Vwj,Ex,d9,i4,Ox,D7,Y2,f79,e3r,n2y,rZi,w8l,$1l,v2l,o2U,b09,yZi,NXi,l7r,JZr,kIM,Z7,U1$,KJ9,XL,h3U,C0,zI,LJj,H0S,x1b,Pmb,BXM,p8y,E2b,O0S,cZ5,DCi,YWl,R7b,ZGo,tHi,aCU,II,MHo,CgM,Wm5,z7b,SWi,
TeU,ICi,ohU,bGl,yEn,JEU,k_S,rX,UCM,Lmj,HGM,xC9,Pg9,Q05,Be5,pB9,Ehj,gho,iGU,OG9,mC$,cEr,Dar,YUU,Rpb,Z49,ti5,seU,X_5,uD9,Wgn,Mi$,T2r,zpS,SUl,FgU,Gk$,ViU,je9,epo,Iey,ndj,x2,rtb,P8,p0,w_j,vdU,odo,N25,H4M,JtU,le5,Uai,hp5,kky,EdS,Qe$,gdM,daM,i4b,O4l,cto,Y3l,DJy,Rti,Zbi,tjb,spb,uPr,Mjo,C1o,Wf5,S3U,zt9,wD$,im,$JS,osS,bbo,yQU,NfS,l1n,k6y,UJ$,Kfj,tE,sW,htS,P19,a0,MC,Eso,dJb,Xrl,SH,M$o,Cxj,TPb,zri,SKl,VJ,jnr,JT9,UEy,Kzl,hrn,Lz$,mEy,qKy,HvU,Px5,Qni,prb,BP5,dEn,o0,NC,OvU,cTn,DsU,Y1b,R2y,Zq5,sEo,uGU,Xgi,QJ,pG,
FiU,ig,nQy,rPi,OW,$sl,wgj,Us5,KiU,h25,mso,PD$,BR$,pgl,EQj,gQy,iqM,cPU,DbU,Re,Rko,soU,XmM,unb,aL5,CoS,tqM,Y95,Mqj,tt,zkb,IL$,TIi,uM,Gzi,fLj,ekM,Akj,nNn,W_,rkU,$bo,wmr,vNM,bIb,Tk,Kyr,LyS,q9U,xbU,Gk,Qoj,ei,n4,At,gNr,Poi,db5,$d,D7$,bM,yE,ZFM,Xyb,aqn,MYj,Cyo,Na,WBU,Jt,zMn,TuU,jDn,IqU,FBb,VY9,UU,fqy,eMr,mg,xd,rN9,wyi,$7$,vM5,yNb,Nul,JN9,kyb,HFo,x7M,LBb,QD5,BuU,pyM,D1,Rp,Z1,iFb,OFl,s3,cNU,DAU,Ydy,Ro5,tPb,sRb,XOU,u39,Z2y,aa9,MJ,ClU,zob,Cb,WUo,Sdr,MPy,TZU,z6,Ian,FUU,GKM,VPb,eoU,faS,A59,wOo,nF5,vFj,J5U,UAi,
KUl,LUr,H2r,qdl,mA5,xAS,QRj,pO$,BZi,gFU,AQ,i2i,O2M,c5o,DXn,XC5,sbr,uab,aij,op,b1,Meb,W3o,S7U,IiU,GA5,F3U,i1,Vey,zbr,$XU,o89,bXM,y4n,Rn,NCM,J4r,K3b,mXU,L39,PiU,Qby,BCU,pCU,g8b,Dwb,dXj,OXn,c4b,YM9,R1o,tCi,ZhM,XU5,sky,In,us5,MCU,C09,TLy,rP,wP,jki,IQU,$w,fQi,yf,NE,lx,ru$,JT,vx9,Kv,oxi,bhU,yuS,NLM,mz,lQi,Ju9,kLl,KWb,LWn,Hhy,P0M,dP,QkU,BLo,pUU,ExS,gxM,dwM,ihl,Ohr,cr,Y$l,Rs9,Zn$,tIM,sQj,XGb,u9b,al9,MI9,CXi,WVr,zsU,S$i,aE,wGU,$39,Ms,Cq,Wg,vIU,oI9,bnn,y6o,N$y,llr,J6r,LVi,m3y,q$n,Hnr,x3U,jh,FG,GF,Vc,AP,nq,
rR,QQS,$Q,pGU,vg,EIy,gIn,oE,d3U,iny,OnM,uvj,MN$,TdU,GmU,F4U,ahn,VNo,Ajj,K4S,oyi,HrU,yjU,qgy,xBi,kQ,QUo,Kq,pEl,Eyn,dBi,irb,Or9,DIU,mi,RUS,Z8U,tvS,sTU,XL5,uKS,aXl,Y4l,WQU,zUi,S4l,Hg,VvM,fXn,GDU,Air,nCy,wLb,$Ij,riU,Jio,UIo,hU$,mIU,DL,BsM,QTi,i8b,cib,DWU,YDo,RlS,ZBU,t75,Mb,SD5,jt$,WIj,Cqi,T1o,XNS,FIU,oPU,fTM,elU,ApU,LIl,qD5,hlS,pNM,KIU,st9,B1n,V75,vPU,mWU,ITM,aTn,u4U,M7M,zlr,UWi,$N,uU$,MG5,CIo,Wp9,zFS,eFb,vc5,ocb,my,yxi,JxU,hFU,KpS,mPn,qmU,xPn,QP5,PIl,Bqr,O9,pKr,Ecj,dP9,gcM,cm,RIj,Y0b,DV$,Xly,Z95,uFn,
sZ9,axU,YM,MVi,S0y,Wuo,zI$,jZU,GbS,sw,eIM,VVi,ARj,$Vj,v65,yRU,lxU,M7,CF,KuU,hI9,Wy,zy,LuU,SY,Ty,mV5,jY,q0U,ID,H9l,xVS,Gy,PEM,QZi,BKl,pl$,E6S,dV5,g6b,O9U,YRy,Di9,RGb,Zoi,i99,t3l,ucl,Xf5,cRU,aFU,M39,ru,C$y,zGo,WLr,SRM,TYS,IFy,jaU,FLb,$M,V3U,fF$,G3l,AnU,n5U,rny,o5y,NYn,KLo,qRr,vy,P$l,Qa9,oD,BY$,Uw,KF,Ool,JN,mB,cnn,DpU,R9M,ZwU,scU,uNU,aDb,Msl,ChU,SbU,GXb,IDi,z9i,Vsl,fDy,Py,Fo9,e9M,pF,ArU,n09,rro,wQr,bwl,$p9,o0S,Jry,kXo,mpU,Lo5,xpy,g0i,dpU,Owr,Dql,Yrr,ZCy,tUi,sgy,uIi,aob,MU$,zDo,IoU,FcU,Sr5,VU5,eDU,foS,
Gt$,A0U,r0n,wjj,$qb,vr5,orr,sd,X3,MA,WO,NyU,loU,ktb,LcM,zK,SP,mqn,TK,xqS,P3U,Qg$,IR,dqM,DZl,RcS,Zgj,tE9,sFj,XPS,MEy,GK,CQl,SkM,VQ,T3i,FPo,Ggj,VEn,IWU,wPU,oBr,$Zj,bg$,lWM,kgU,KPy,qkr,mZU,QFy,rZ,B39,pPU,wZ,EBl,$F,gBr,dZU,igM,clU,Ogn,Dlb,YSU,RXr,Zfy,CCj,zXi,TQj,SSi,u$r,ssl,Isr,GRl,nOj,rmj,vOn,Jm9,Ull,yQ,KkS,Lkl,ml$,Hf9,BQy,gOl,OfM,cmU,DF9,YFb,XAj,RA5,CRS,Wvr,zAn,Tky,J5,j69,Fv9,GSy,VQo,fvS,eAo,AH5,nSr,wA$,$Fn,h5,vSM,oSi,yHr,mU,bKo,lvy,Kv9,xF,hA$,Lvj,mFr,xF9,PRU,qF$,Bky,dFU,iKb,OKM,gZ,cHU,ZDj,tRU,Di,uSM,
sho,XXi,Cjn,WwU,zRn,IB$,VRU,GpU,Fwb,fBb,Awb,nLS,oLl,rwl,bDl,N75,yw5,hRU,qon,x0l,Qhy,gLo,RmU,s1r,X6j,C_U,zmr,J4,x8,GYU,A2r,em5,r29,w6M,vlr,$Kn,oly,bJU,PC,jUb,Vt$,nlU,fSU,qX,lSS,J2y,kYU,UK9,Kan,hm5,La9,mKj,qP$,HJo,Yx,xKU,P_S,Q1y,BpM,p6j,sM,ElS,iJl,c2b,DvS,uAM,MBy,CSU,WMo,S_o,Tin,Ik,IVy,FMy,GBU,VBU,fVj,eOr,nG5,wxo,vGb,oGy,kBi,lVy,Uvn,LMy,mvU,nh,q_n,Hyb,xvb,Bir,EGl,px$,dv$,Oyo,vU,D8n,YH$,chS,R4$,ZNb,sir,uqM,XkU,aY9,tF9,MF9,Csl,WOj,z4y,SH$,Tmr,jib,IYS,FOM,fYi,VF5,e4y,nWn,AGi,ok,rGn,vWU,NmM,wkM,kJ$,U8o,
KOo,h4U,qHU,EWo,gWM,iN9,ONb,HU,RxU,Xs$,M8y,xx,SnU,zx5,TtS,BU,j8n,Ikn,F0j,V85,fky,ex9,A$$,r$9,wsS,UxU,Ntj,J$b,hxy,K0r,L0S,mxU,HcM,PB5,Bt$,EZU,kVi,huy,mQ5,qcb,HOr,xQy,Pul,BHi,pM9,dQo,iOU,OOM,cVr,DDo,YYr,RNU,ZSU,XHy,CHi,s$,X9,uX,aQ,Wbj,WG,SYy,AUn,o$b,$DU,QvS,BMo,pHr,jvj,eNM,G2U,g$5,dDU,iSS,rU9,cUU,YXj,ZVS,XVU,u1r,r$,vG,oQ,TGi,SXy,GxM,VmM,ob9,y7S,luU,J7$,KT$,LTU,h8j,HV9,P65,iVn,gbb,BGj,dfn,pVj,OV9,RdU,PG,WeU,aIo,SBn,TOy,IIU,Fe9,BG,Gqj,ed5,nkr,rzy,$Ll,w15,g$,lIU,Yy,kqj,ULn,Zh,Kel,hdU,Leb,mLn,qBS,Ha9,xLM,
PYb,Q2S,BOr,p1$,EkM,gkj,dLS,iar,tj,OaM,cz9,D69,YqU,Rw$,ZAi,t9i,s4M,Xzi,u2o,aAy,M9U,Xv,WCU,Sqj,j4o,Gwb,ewM,A8b,nor,wzr,voU,oo9,bAl,Tm,kwy,lAM,U6l,KCU,hwy,qqo,HAM,x6y,Q4r,vE,pzi,wd,goi,d6r,oU,iAy,OAU,c85,DS$,lP,tkU,X5i,Ws5,C8U,SJo,ThS,m4,jmi,IcS,G7b,fcM,enS,nvn,rcn,Vky,w55,ycn,k7r,USi,qB,KsU,hnb,xSb,Lsi,qJn,Hkl,gvy,Qmj,dSM,Okb,DNU,YQU,Ra5,ZuM,t4j,syr,u65,an$,M45,Cv9,Wri,SQj,jyU,G9y,Aan,wdU,vmS,yaU,Eg,Nli,lnM,JaS,k9S,UNi,hay,LrU,mNr,qQU,HuU,xNM,Pvj,Qyb,BlU,pdy,Em9,dNi,gmn,caM,YAU,iP,RyS,sul,tyn,aMb,
My9,C5r,zyU,ju5,GrU,F9b,Tn$,eyU,fMU,$ui,AX9,ZX,rXl,JX5,b1U,yXj,NnS,lMb,kro,K9r,Uui,ti,s4,P59,L99,xu$,H1l,mul,qAM,p7n,gqo,i1S,du9,YfS,D9y,txU,sHi,upn,afM,XSi,Mx5,WdS,CbM,SfU,Ifb,Sv,Fdo,GjU,evM,$9U,lfn,jv,kjj,Ld9,x9U,HWM,m99,qf5,f8,pS5,Pbb,QHi,Ejo,d9M,gjU,coo,DTn,R0$,ZpM,t2i,sj5,XiS,a8n,M25,Ji,WF5,z0$,I8U,FF$,L8,G$U,f8l,bpj,Qu,rsy,of5,win,$TU,h0o,k$U,LF$,mTl,p8,HpS,xTr,Pt5,qe$,ds,Qjo,E4,gfo,R5U,Zmi,tcS,sVo,Xcj,uXU,WKy,Mcl,CVo,atM,SEy,It$,VcU,fto,Ayo,wcl,nRM,ryl,$4$,oRM,bmi,yy9,NwU,ltU,Jy$,U49,sD,h5U,
qE9,m4o,x4U,Hm5,PVy,QVi,Bwl,X4,ER5,sSy,Zdr,aEy,MT9,jSo,IEj,FZU,GHM,VTl,fE5,nzU,rgb,wa5,$oM,bdU,ygy,NaU,Gf,Uo$,kHr,Jgy,lEU,mol,hg5,Hd9,xo5,Pej,QS9,doU,Ba$,paj,EzS,idM,OdU,cgi,gzj,r1,RQb,ZZr,vN,sAU,XIo,uRr,tgi,agn,Mgj,CZi,WE$,zQ5,TJU,jA5,IgU,FEo,fgo,Vg$,wIU,GWU,ot,$jo,eQU,rKr,bZy,yKl,NJS,lgU,JKU,kWU,Ujy,KEi,hQ9,LEr,mjM,HZi,xjU,PZi,BJM,EXi,djr,OZU,Zi9,YTb,Rqn,Dgl,cKj,tdU,s3M,HN,a5r,MdU,CAU,W2y,zqy,STr,Gny,j3r,Tv9,I5n,bib,v_U,F2o,$gl,K2b,hqi,L2j,mgi,qT5,Hiy,xgo,PAj,pp5,g_i,ii9,c3i,DO$,YZU,sqb,tal,XWU,
aNo,MP,WGS,zHS,SZy,T6U,WK,zP,FG9,fNn,$Oo,yAU,N6y,lN9,JAy,kC9,UOS,hH5,mOM,LGU,qZM,xOS,POM,Qqj,B6i,pWj,E4U,GP,g4U,R$l,Zey,cAb,OYU,YvM,Dml,WYi,amr,z$5,Svo,TcS,j7U,Im$,FYl,nH,Vpl,fm9,e$9,AWi,wb5,$mU,nVr,rW5,JW$,Um9,h$5,mmb,Heb,PpU,EVU,gVi,dmi,cWU,Oe$,ie$,DG5,Ytr,Zsr,tlU,sfn,X9b,utn,a$$,C2U,Wny,zLo,Stj,TNl,jfy,Gvb,Vlb,eLi,naU,Ab5,rb$,Jx,w9U,$GU,van,oaM,l$b,NNy,UGl,KnM,mGo,Hsi,xGU,P2M,QfU,BNU,p99,EaM,gan,dGM,iso,cbo,OsS,DYr,Y6n,RV5,Z3S,tzM,sYb,Xwb,u0M,azl,xc,CFo,W1S,zV$,S6b,jYU,F1y,GNi,Vz5,fzl,eVb,AY9,
rYr,ww5,vDU,b3j,NjM,UYi,JYU,lzU,kNU,K1b,hVl,L1U,H3l,xYU,PFi,QYj,pwl,EDU,gD9,i3o,dYj,O3j,cY$,DHM,ZlS,tOo,sOj,X35,uuU,a2n,Wtr,zil,Y6,Fti,GG9,f2U,nuU,AqU,rqo,w3$,RZ,tR,vuj,oun,uE,aZ,l2U,blo,yqU,UHj,Kt9,hir,Lty,xHj,QO9,Bxb,p3j,EuM,gul,ilS,Olj,cq9,D_y,Yab,Rzy,ZQM,Wl,t1b,sCi,SV,XJS,uwj,a9r,M1U,CGU,WR9,IZ,FF,zzS,Saj,Gb,TTr,jCi,I9n,FR$,V1b,f9S,ACb,vgy,$_j,wJ9,ogn,bQ$,U_9,l9$,JCi,NTM,ks$,f9,LRn,m_S,qab,HQy,x_l,QC$,pJU,d_j,Dro,OQl,eV,iQn,srn,uOn,ayo,MJ$,CJS,W8r,Sjb,ToS,jrn,Iyy,Gcl,VJ$,fyb,AIj,nUy,web,$rj,Nol,
yIr,JIU,kci,mrU,qji,Hxr,xrM,BoM,gUr,vl,oZ,drj,ixr,OxU,cIU,Y5o,Rei,ZTb,tAl,sGS,Xnl,aJy,uTS,MAj,ze9,TUb,jGo,IJb,NV,Fl9,Gen,eel,AvU,lE,JR,wnn,nYl,oYj,$zn,bTy,NUb,hR,lJn,Jvo,KlS,Lln,L9,q5U,HTo,xzr,P7y,QGo,BUr,pn9,gYo,cvi,Dd5,Z6U,YIU,Rfl,tZj,aKb,sWU,uj9,MZU,Czo,Wq9,T8i,jW5,IKn,GOU,VZS,wtU,rOi,N8o,kO$,gK,Udl,vsU,Kqr,hfl,mdy,xdi,Pz5,i6i,O69,cOy,D5b,Ysj,R_j,tuU,sNo,uVr,Mul,X2r,aR5,Wxi,CdU,Sso,IRU,TWn,FxU,G45,VuU,fRn,e_y,ADl,rDo,n1o,o1U,NWi,b5M,lRl,JDb,k4n,ZF,U5o,Kxb,sR,Lx$,h_9,m5U,qsb,x5r,Pdo,BWU,p2U,E1U,
g1U,d5y,cDy,R69,sMn,tSn,X$n,umM,CrU,fji,TVi,AJS,nH9,w$U,$MU,yJ5,NVU,lji,JJU,k8$,h69,LAo,mMS,qli,HUS,xMb,PrS,BVb,gHM,dMM,iUM,OUi,cJo,Dtl,Y8n,tL9,Z_l,a0y,MLU,CKb,WDl,zBM,TDU,S8$,I0b,eBM,vTo,wRj,oTU,b_l,yBU,l0i,rY,kiy,Ni,KDU,LDo,mt9,Q_U,pRM,dtU,O_r,cB$,Yui,Rhj,Zz$,sdS,uZU,a3y,Cwb,Su9,zhS,W6M,hn,jd9,TFr,I3r,F6i,G15,VKr,f3y,eh$,Adb,rdr,wq9,$RS,v9n,o9U,bzM,ydU,NFb,l3n,k1S,URo,Pw9,Qd5,BFM,E9U,g9S,dRU,cd9,Q4,sLU,X0M,urU,aw5,MMr,Bf,po,BB,ER,dY,FjU,fwU,ALl,eTi,OR,ne5,rLy,w0U;
_.Yn=function(D,Y){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Yn);else{var R=Error().stack;R&&(this.stack=R)}D&&(this.message=String(D));Y!==void 0&&(this.cause=Y)};
Rl=function(){throw Error("E");};
D$r=function(D,Y){Y=String.fromCharCode.apply(null,Y);return D==null?Y:D+Y};
tbo=function(D){var Y=!1;Y=Y===void 0?!1:Y;if(Yy$){if(Y&&(Rjb?!D.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(D)))throw Error("F");D=(ZMU||(ZMU=new TextEncoder)).encode(D)}else{for(var R=0,Z=new Uint8Array(3*D.length),t=0;t<D.length;t++){var X=D.charCodeAt(t);if(X<128)Z[R++]=X;else{if(X<2048)Z[R++]=X>>6|192;else{if(X>=55296&&X<=57343){if(X<=56319&&t<D.length){var M=D.charCodeAt(++t);if(M>=56320&&M<=57343){X=(X-55296)*1024+M-56320+65536;Z[R++]=X>>18|
240;Z[R++]=X>>12&63|128;Z[R++]=X>>6&63|128;Z[R++]=X&63|128;continue}else t--}if(Y)throw Error("F");X=65533}Z[R++]=X>>12|224;Z[R++]=X>>6&63|128}Z[R++]=X&63|128}}D=R===Z.length?Z:Z.subarray(0,R)}return D};
tS=function(D){_.ZU.setTimeout(function(){throw D;},0)};
_.Xi=function(D,Y){return D.lastIndexOf(Y,0)==0};
u9=function(D,Y){var R=D.length-Y.length;return R>=0&&D.indexOf(Y,R)==R};
_.M$=function(D){return/^[\s\xa0]*$/.test(D)};
_.CM=function(D,Y){return D.indexOf(Y)!=-1};
_.zU=function(D,Y){return _.CM(D.toLowerCase(),Y.toLowerCase())};
_.jb=function(D,Y){var R=0;D=TU(String(D)).split(".");Y=TU(String(Y)).split(".");for(var Z=Math.max(D.length,Y.length),t=0;R==0&&t<Z;t++){var X=D[t]||"",M=Y[t]||"";do{X=/(\d*)(\D*)(.*)/.exec(X)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(X[0].length==0&&M[0].length==0)break;R=sln(X[1].length==0?0:parseInt(X[1],10),M[1].length==0?0:parseInt(M[1],10))||sln(X[2].length==0,M[2].length==0)||sln(X[2],M[2]);X=X[3];M=M[3]}while(R==0)}return R};
sln=function(D,Y){return D<Y?-1:D>Y?1:0};
_.Il=function(){var D=_.ZU.navigator;return D&&(D=D.userAgent)?D:""};
XoU=function(D){if(!GU||!fM)return!1;for(var Y=0;Y<fM.brands.length;Y++){var R=fM.brands[Y].brand;if(R&&_.CM(R,D))return!0}return!1};
eb=function(D){return _.CM(_.Il(),D)};
wr=function(){return GU?!!fM&&fM.brands.length>0:!1};
uiU=function(){return wr()?!1:eb("Opera")};
aUj=function(){return wr()?!1:eb("Trident")||eb("MSIE")};
Mbb=function(){return wr()?XoU("Microsoft Edge"):eb("Edg/")};
$n=function(){return eb("Firefox")||eb("FxiOS")};
_.C99=function(){return eb("Safari")&&!(_.vo()||(wr()?0:eb("Coast"))||uiU()||(wr()?0:eb("Edge"))||Mbb()||(wr()?XoU("Opera"):eb("OPR"))||$n()||eb("Silk")||eb("Android"))};
_.vo=function(){return wr()?XoU("Chromium"):(eb("Chrome")||eb("CriOS"))&&!(wr()?0:eb("Edge"))||eb("Silk")};
_.W5U=function(){return eb("Android")&&!(_.vo()||$n()||uiU()||eb("Silk"))};
zjU=function(D){var Y={};D.forEach(function(R){Y[R[0]]=R[1]});
return function(R){return Y[R.find(function(Z){return Z in Y})]||""}};
Syr=function(D){var Y=_.Il();if(D==="Internet Explorer"){if(aUj())if((D=/rv: *([\d\.]*)/.exec(Y))&&D[1])Y=D[1];else{D="";var R=/MSIE +([\d\.]+)/.exec(Y);if(R&&R[1])if(Y=/Trident\/(\d.\d)/.exec(Y),R[1]=="7.0")if(Y&&Y[1])switch(Y[1]){case "4.0":D="8.0";break;case "5.0":D="9.0";break;case "6.0":D="10.0";break;case "7.0":D="11.0"}else D="7.0";else D=R[1];Y=D}else Y="";return Y}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");R=[];for(var t;t=Z.exec(Y);)R.push([t[1],t[2],t[3]||void 0]);
Y=zjU(R);switch(D){case "Opera":if(uiU())return Y(["Version","Opera"]);if(wr()?XoU("Opera"):eb("OPR"))return Y(["OPR"]);break;case "Microsoft Edge":if(wr()?0:eb("Edge"))return Y(["Edge"]);if(Mbb())return Y(["Edg"]);break;case "Chromium":if(_.vo())return Y(["Chrome","CriOS","HeadlessChrome"])}return D==="Firefox"&&$n()||D==="Safari"&&_.C99()||D==="Android Browser"&&_.W5U()||D==="Silk"&&eb("Silk")?(Y=R[2])&&Y[1]||"":""};
_.Try=function(D){if(wr()&&D!=="Silk"){var Y=fM.brands.find(function(R){return R.brand===D});
if(!Y||!Y.version)return NaN;Y=Y.version.split(".")}else{Y=Syr(D);if(Y==="")return NaN;Y=Y.split(".")}return Y.length===0?NaN:Number(Y[0])};
b9=function(){return GU?!!fM&&!!fM.platform:!1};
_.jlM=function(){return b9()?fM.platform==="Android":eb("Android")};
IUy=function(){return eb("iPhone")&&!eb("iPod")&&!eb("iPad")};
_.yU=function(){return IUy()||eb("iPad")||eb("iPod")};
_.F5S=function(){return b9()?fM.platform==="macOS":eb("Macintosh")};
_.GUU=function(){return b9()?fM.platform==="Windows":eb("Windows")};
_.Vbi=function(){return b9()?fM.platform==="Chrome OS":eb("CrOS")};
_.N$=function(D){return D[D.length-1]};
_.JS=function(D,Y,R){Y=_.fUU(D,Y,R);return Y<0?null:typeof D==="string"?D.charAt(Y):D[Y]};
_.fUU=function(D,Y,R){for(var Z=D.length,t=typeof D==="string"?D.split(""):D,X=0;X<Z;X++)if(X in t&&Y.call(R,t[X],X,D))return X;return-1};
ejy=function(D){for(var Y=_.kn,R=typeof D==="string"?D.split(""):D,Z=D.length-1;Z>=0;Z--)if(Z in R&&Y.call(void 0,R[Z],Z,D))return Z;return-1};
_.LM=function(D,Y){return _.Uy(D,Y)>=0};
_.AS9=function(D,Y){_.LM(D,Y)||D.push(Y)};
_.m5=function(D,Y){Y=_.Uy(D,Y);var R;(R=Y>=0)&&_.nnU(D,Y);return R};
_.nnU=function(D,Y){Array.prototype.splice.call(D,Y,1)};
_.q$=function(D){var Y=D.length;if(Y>0){for(var R=Array(Y),Z=0;Z<Y;Z++)R[Z]=D[Z];return R}return[]};
_.Po=function(D,Y){for(var R=1;R<arguments.length;R++){var Z=arguments[R];if(_.xn(Z)){var t=D.length||0,X=Z.length||0;D.length=t+X;for(var M=0;M<X;M++)D[t+M]=Z[M]}else D.push(Z)}};
_.wor=function(D,Y,R,Z){Array.prototype.splice.apply(D,rSi(arguments,1))};
rSi=function(D,Y,R){return arguments.length<=2?Array.prototype.slice.call(D,Y):Array.prototype.slice.call(D,Y,R)};
$$n=function(D,Y){Y=Y||D;for(var R=0,Z=0,t={};Z<D.length;){var X=D[Z++],M=_.Bo(X)?"o"+_.Ey(X):(typeof X).charAt(0)+X;Object.prototype.hasOwnProperty.call(t,M)||(t[M]=!0,Y[R++]=X)}Y.length=R};
_.onr=function(D,Y,R){R=R||_.vnj;for(var Z=0,t=D.length,X;Z<t;){var M=Z+(t-Z>>>1);var W=R(Y,D[M]);W>0?Z=M+1:(t=M,X=!W)}return X?Z:-Z-1};
_.gr=function(D,Y,R){if(!_.xn(D)||!_.xn(Y)||D.length!=Y.length)return!1;var Z=D.length;R=R||bMr;for(var t=0;t<Z;t++)if(!R(D[t],Y[t]))return!1;return!0};
_.vnj=function(D,Y){return D>Y?1:D<Y?-1:0};
bMr=function(D,Y){return D===Y};
ySi=function(D,Y,R){Y=Array.prototype.splice.call(D,Y,1);Array.prototype.splice.call(D,R,0,Y[0])};
lUr=function(D){return Nri[D]||""};
U$b=function(D){if(!JSr)return _.dr(D);D=kUS.test(D)?D.replace(kUS,lUr):D;D=atob(D);for(var Y=new Uint8Array(D.length),R=0;R<D.length;R++)Y[R]=D.charCodeAt(R);return Y};
K5b=function(D,Y){D.__closure__error__context__984382||(D.__closure__error__context__984382={});D.__closure__error__context__984382.severity=Y};
_.Oy=function(D){D=Error(D);K5b(D,"warning");return D};
L55=function(D,Y){if(D!=null){var R;var Z=(R=hjM)!=null?R:hjM={};R=Z[D]||0;R>=Y||(Z[D]=R+1,D=Error(),K5b(D,"incident"),tS(D))}};
YE=function(D,Y,R){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(R===void 0?0:R)&&Symbol.for&&D?Symbol.for(D):D!=null?Symbol(D):Symbol():Y};
HMM=function(D,Y){t1||_.sL in D||m$5(D,qyU);D[_.sL]|=Y};
uU=function(D,Y){t1||_.sL in D||m$5(D,qyU);D[_.sL]=Y};
x$o=function(D){if(4&D)return 512&D?512:1024&D?1024:0};
MU=function(D){HMM(D,34);return D};
P9b=function(D){HMM(D,32);return D};
CL=function(){return typeof BigInt==="function"};
zE=function(D,Y){return Y===void 0?D.copyOnWrite!==W4&&!!(2&(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sL]|0)):!!(2&Y)&&D.copyOnWrite!==W4};
_.$E=function(D,Y){if(D!=null)if(typeof D==="string")D=D?new VV(D,rz):_.wz();else if(D.constructor!==VV)if(Qly&&D!=null&&D instanceof Uint8Array)D=D.length?new VV(new Uint8Array(D),rz):_.wz();else{if(!Y)throw Error();D=void 0}return D};
Bri=function(D,Y){if(typeof Y!=="number"||Y<0||Y>=D.length)throw Error();};
po$=function(D,Y,R){var Z=Y&128?0:-1,t=D.length,X;if(X=!!t)X=D[t-1],X=X!=null&&typeof X==="object"&&X.constructor===Object;var M=t+(X?-1:0);for(Y=Y&128?1:0;Y<M;Y++)R(Y-Z,D[Y]);if(X){D=D[t-1];for(var W in D)!isNaN(W)&&R(+W,D[W])}};
NU=function(D){return D&128?bU:void 0};
lU=function(D){D.isGuard_doNotManuallySetPrettyPlease=!0;return D};
gno=function(){var D=Enn;return lU(function(Y){for(var R in D)if(Y===D[R]&&!/^[0-9]+$/.test(R))return!0;return!1})};
_.J1=function(D){var Y=D;if(d$5(Y)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Y))throw Error(String(Y));}else if(iM9(Y)&&!Number.isSafeInteger(Y))throw Error(String(Y));return OMU?BigInt(D):D=cSn(D)?D?"1":"0":d$5(D)?D.trim()||"0":String(D)};
DUS=function(D,Y){if(D.length>Y.length)return!1;if(D.length<Y.length||D===Y)return!0;for(var R=0;R<D.length;R++){var Z=D[R],t=Y[R];if(Z>t)return!1;if(Z<t)return!0}};
YLU=function(D){var Y=D>>>0;UL=Y;KL=(D-Y)/4294967296>>>0};
h1=function(D){if(D<0){YLU(-D);var Y=_.a(RYy(UL,KL));D=Y.next().value;Y=Y.next().value;UL=D>>>0;KL=Y>>>0}else YLU(D)};
ZLr=function(D,Y){var R=Y*4294967296+(D>>>0);return Number.isSafeInteger(R)?R:_.LL(D,Y)};
tDj=function(D,Y){var R=Y&2147483648;R&&(D=~D+1>>>0,Y=~Y>>>0,D==0&&(Y=Y+1>>>0));D=ZLr(D,Y);return typeof D==="number"?R?-D:D:R?"-"+D:D};
_.LL=function(D,Y){Y>>>=0;D>>>=0;if(Y<=2097151)var R=""+(4294967296*Y+D);else CL()?R=""+(BigInt(Y)<<BigInt(32)|BigInt(D)):(R=(D>>>24|Y<<8)&16777215,Y=Y>>16&65535,D=(D&16777215)+R*6777216+Y*6710656,R+=Y*8147497,Y*=2,D>=1E7&&(R+=D/1E7>>>0,D%=1E7),R>=1E7&&(Y+=R/1E7>>>0,R%=1E7),R=Y+sz5(R)+sz5(D));return R};
sz5=function(D){D=String(D);return"0000000".slice(D.length)+D};
_.X4o=function(D,Y){Y&2147483648?CL()?D=""+(BigInt(Y|0)<<BigInt(32)|BigInt(D>>>0)):(Y=_.a(RYy(D,Y)),D=Y.next().value,Y=Y.next().value,D="-"+_.LL(D,Y)):D=_.LL(D,Y);return D};
ubS=function(D){if(D.length<16)h1(Number(D));else if(CL())D=BigInt(D),UL=Number(D&BigInt(4294967295))>>>0,KL=Number(D>>BigInt(32)&BigInt(4294967295));else{var Y=+(D[0]==="-");KL=UL=0;for(var R=D.length,Z=Y,t=(R-Y)%6+Y;t<=R;Z=t,t+=6)Z=Number(D.slice(Z,t)),KL*=1E6,UL=UL*1E6+Z,UL>=4294967296&&(KL+=Math.trunc(UL/4294967296),KL>>>=0,UL>>>=0);Y&&(Y=_.a(RYy(UL,KL)),D=Y.next().value,Y=Y.next().value,UL=D,KL=Y)}};
RYy=function(D,Y){Y=~Y;D?D=~D+1:Y+=1;return[D,Y]};
m7=function(D){return Array.prototype.slice.call(D)};
_.qU=function(D,Y){throw Error(Y===void 0?"unexpected value "+D+"!":Y);};
_.xE=function(D){if(D!=null&&typeof D!=="number")throw Error("L`"+typeof D+"`"+D);return D};
_.a_U=function(D){if(D==null||typeof D==="number")return D;if(D==="NaN"||D==="Infinity"||D==="-Infinity")return Number(D)};
MDU=function(D){if(D!=null&&typeof D!=="boolean")throw Error("M`"+_.P4(D)+"`"+D);return D};
_.CUn=function(D){if(D==null||typeof D==="boolean")return D;if(typeof D==="number")return!!D};
_.B4=function(D){switch(typeof D){case "bigint":return!0;case "number":return QV(D);case "string":return W7b.test(D);default:return!1}};
_.pL=function(D){if(!QV(D))throw _.Oy("enum");return D|0};
_.iU=function(D){return D==null?D:QV(D)?D|0:void 0};
zYS=function(D){if(typeof D!=="number")throw _.Oy("int32");if(!QV(D))throw _.Oy("int32");return D|0};
_.OL=function(D){return D==null?D:zYS(D)};
_.c4=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return QV(D)?D|0:void 0};
_.SLU=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return QV(D)?D>>>0:void 0};
F7$=function(D){var Y=0;Y=Y===void 0?0:Y;if(!_.B4(D))throw _.Oy("int64");var R=typeof D;switch(Y){case 512:switch(R){case "string":return R9(D);case "bigint":return String(Zp(64,D));default:return Tzr(D)}case 1024:switch(R){case "string":return jzo(D);case "bigint":return _.J1(Zp(64,D));default:return I_y(D)}case 0:switch(R){case "string":return R9(D);case "bigint":return _.J1(Zp(64,D));default:return t9(D)}default:return _.qU(Y,"Unknown format requested type for int64")}};
sz=function(D){return D==null?D:F7$(D)};
GEn=function(D){if(D[0]==="-")return!1;var Y=D.length;return Y<20?!0:Y===20&&Number(D.substring(0,6))<184467};
VDj=function(D){var Y=D.length;return D[0]==="-"?Y<20?!0:Y===20&&Number(D.substring(0,7))>-922337:Y<19?!0:Y===19&&Number(D.substring(0,6))<922337};
f_9=function(D){if(D<0){h1(D);var Y=_.LL(UL,KL);D=Number(Y);return XE(D)?D:Y}Y=String(D);if(GEn(Y))return Y;h1(D);return ZLr(UL,KL)};
eY$=function(D){if(VDj(D))return D;ubS(D);return _.X4o(UL,KL)};
A1U=function(D){if(GEn(D))return D;ubS(D);return _.LL(UL,KL)};
t9=function(D){D=a9(D);XE(D)||(h1(D),D=tDj(UL,KL));return D};
_.nEy=function(D){D=a9(D);return D>=0&&XE(D)?D:f_9(D)};
Tzr=function(D){D=a9(D);if(XE(D))D=String(D);else{var Y=String(D);VDj(Y)?D=Y:(h1(D),D=_.X4o(UL,KL))}return D};
_.r1r=function(D){D=a9(D);if(D>=0&&XE(D))D=String(D);else{var Y=String(D);GEn(Y)?D=Y:(h1(D),D=_.LL(UL,KL))}return D};
R9=function(D){var Y=a9(Number(D));if(XE(Y))return String(Y);Y=D.indexOf(".");Y!==-1&&(D=D.substring(0,Y));return eY$(D)};
jzo=function(D){var Y=a9(Number(D));if(XE(Y))return _.J1(Y);Y=D.indexOf(".");Y!==-1&&(D=D.substring(0,Y));return CL()?_.J1(Zp(64,BigInt(D))):_.J1(eY$(D))};
I_y=function(D){return XE(D)?_.J1(t9(D)):_.J1(Tzr(D))};
_.w4r=function(D){return XE(D)?_.J1(_.nEy(D)):_.J1(_.r1r(D))};
_.$Uj=function(D){var Y=a9(Number(D));if(XE(Y)&&Y>=0)return String(Y);Y=D.indexOf(".");Y!==-1&&(D=D.substring(0,Y));return A1U(D)};
_.vEi=function(D){var Y=a9(Number(D));if(XE(Y)&&Y>=0)return _.J1(Y);Y=D.indexOf(".");Y!==-1&&(D=D.substring(0,Y));return CL()?_.J1((0,_.Mk)(64,BigInt(D))):_.J1(A1U(D))};
_.bL5=function(D){if(D==null)return D;if(typeof D==="bigint")return oES(D)?D=Number(D):(D=Zp(64,D),D=oES(D)?Number(D):String(D)),D;if(_.B4(D))return typeof D==="number"?t9(D):R9(D)};
y1i=function(D,Y){Y=Y===void 0?!1:Y;var R=typeof D;if(D==null)return D;if(R==="bigint")return String(Zp(64,D));if(_.B4(D))return R==="string"?R9(D):Y?Tzr(D):t9(D)};
_.Nzr=function(D){var Y=typeof D;if(D==null)return D;if(Y==="bigint")return _.J1(Zp(64,D));if(_.B4(D))return Y==="string"?jzo(D):I_y(D)};
l_o=function(D){if(D==null)return D;var Y=typeof D;if(Y==="bigint")return String(Zp(64,D));if(_.B4(D)){if(Y==="string")return R9(D);if(Y==="number")return t9(D)}};
J1o=function(D){if(D==null)return D;var Y=typeof D;if(Y==="bigint")return String((0,_.Mk)(64,D));if(_.B4(D)){if(Y==="string")return _.$Uj(D);if(Y==="number")return _.nEy(D)}};
_.Ct=function(D){if(typeof D!=="string")throw Error();return D};
Wu=function(D){if(D!=null&&typeof D!=="string")throw Error();return D};
_.TT=function(D){return D==null||typeof D==="string"?D:void 0};
K7$=function(D,Y,R,Z){if(D!=null&&D[I9]===VI)return D;if(!Array.isArray(D))return R?Z&2?Y[kES]||(Y[kES]=UUU(Y)):new Y:void 0;R=D[_.sL]|0;Z=R|Z&32|Z&2;Z!==R&&uU(D,Z);return new Y(D)};
UUU=function(D){D=new D;MU(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
hYo=function(D,Y,R){D=Y?zYS(D):_.c4(D);return D==null?R?0:void 0:D|0};
L7S=function(D){return D};
mUy=function(D){return D};
HLy=function(D,Y,R,Z,t,X){D=K7$(D,Z,R,X);t&&(D=qLy(D));return D};
xUU=function(D){return[D,this.get(D)]};
BzS=function(){return PUS||(PUS=new ft(MU([]),void 0,void 0,void 0,QzU))};
p4S=function(D){var Y=A9(nt);return Y?D[Y]:void 0};
dUr=function(D,Y){var R=R===void 0?!1:R;if(A9(EEo)&&A9(nt)&&void 0===EEo){var Z=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=Z[nt];if(!t)return;if(t=t.reviveUnknownFields)try{t(Z,Y,gEy);return}catch(X){tS(X)}}R&&(D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(R=A9(nt))&&R in D&&(D=D[R])&&delete D[Y])};
OLM=function(D,Y){var R=A9(nt),Z;t1&&R&&((Z=D[R])==null?void 0:Z[Y])!=null&&L55(iL9,3)};
Dko=function(D,Y){Y<100||L55(c1l,1)};
s9l=function(D,Y,R,Z){var t=Z!==void 0;Z=!!Z;var X=A9(nt),M;!t&&t1&&X&&(M=D[X])&&Yz$(M,Dko);X=[];var W=D.length;M=4294967295;var z=!1,I=!!(Y&64),F=I?Y&128?0:-1:void 0;if(!(Y&1)){var G=W&&D[W-1];G!=null&&typeof G==="object"&&G.constructor===Object?(W--,M=W):G=void 0;if(I&&!(Y&128)&&!t){z=!0;var V;M=((V=RKy)!=null?V:L7S)(M-F,F,D,G,void 0)+F}}Y=void 0;for(V=0;V<W;V++){var e=D[V];if(e!=null&&(e=R(e,Z))!=null)if(I&&V>=M){var r=V-F,l=void 0;((l=Y)!=null?l:Y={})[r]=e}else X[V]=e}if(G)for(var U in G)W=G[U],
W!=null&&(W=R(W,Z))!=null&&(V=+U,e=void 0,I&&!Number.isNaN(V)&&(e=V+F)<M?X[e]=W:(V=void 0,((V=Y)!=null?V:Y={})[U]=W));Y&&(z?X.push(Y):X[M]=Y);t&&A9(nt)&&(D=p4S(D))&&D instanceof Zto&&(X[nt]=t05(D));return X};
uEy=function(D){D[0]=XuU(D[0]);D[1]=XuU(D[1]);return D};
XuU=function(D){switch(typeof D){case "number":return Number.isFinite(D)?D:""+D;case "bigint":return oES(D)?Number(D):""+D;case "boolean":return D?1:0;case "object":if(Array.isArray(D)){var Y=D[_.sL]|0;return D.length===0&&Y&1?void 0:s9l(D,Y,XuU)}if(D!=null&&D[I9]===VI)return ap9(D);if(D instanceof VV){Y=D.JSC$8788_value_;if(Y==null)D="";else if(typeof Y==="string")D=Y;else{if(JSr){for(var R="",Z=0,t=Y.length-10240;Z<t;)R+=String.fromCharCode.apply(null,Y.subarray(Z,Z+=10240));R+=String.fromCharCode.apply(null,
Z?Y.subarray(Z):Y);Y=btoa(R)}else Y=_.rb(Y);D=D.JSC$8788_value_=Y}return D}if(D instanceof ft)return D=D.size!==0?Array.from(o9.prototype.entries.call(D),uEy):void 0,D;return}return D};
yI=function(D,Y){if(Y){RKy=Y==null||Y===L7S||Y[M0U]!==Ck9?L7S:Y;try{return ap9(D)}finally{RKy=void 0}}return ap9(D)};
ap9=function(D){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return s9l(D,D[_.sL]|0,XuU)};
Szj=function(D){switch(typeof D){case "boolean":return Who||(Who=[0,void 0,!0]);case "number":return D>0?void 0:D===0?zKU||(zKU=[0,void 0]):[-D,void 0];case "string":return[0,D];case "object":return D}};
Tb$=function(D,Y,R){return D=_.Nk(D,Y[0],Y[1],R?1:2)};
_.Nk=function(D,Y,R,Z){Z=Z===void 0?0:Z;if(D==null){var t=32;R?(D=[R],t|=128):D=[];Y&&(t=t&-8380417|(Y&1023)<<13)}else{if(!Array.isArray(D))throw Error("O");t=D[_.sL]|0;if(j9l&&1&t)throw Error("P");2048&t&&!(2&t)&&Ipl();if(t&256)throw Error("Q");if(t&64)return Z!==0||t&2048||uU(D,t|2048),D;if(R&&(t|=128,R!==D[0]))throw Error("R");a:{R=D;t|=64;var X=R.length;if(X){var M=X-1,W=R[M];if(W!=null&&typeof W==="object"&&W.constructor===Object){Y=t&128?0:-1;M-=Y;if(M>=1024)throw Error("T");for(var z in W)X=
+z,X<M&&(R[X+Y]=W[z],delete W[z]);t=t&-8380417|(M&1023)<<13;break a}}if(Y){z=Math.max(Y,X-(t&128?0:-1));if(z>1024)throw Error("U");t=t&-8380417|(z&1023)<<13}}}t|=64;Z===0&&(t|=2048);uU(D,t);return D};
Ipl=function(){if(j9l)throw Error("S");L55(Fh$,5)};
fpS=function(D,Y){if(typeof D!=="object")return D;if(Array.isArray(D)){var R=D[_.sL]|0;return D.length===0&&R&1?void 0:GT5(D,R,Y)}if(D!=null&&D[I9]===VI)return V0b(D);if(D instanceof ft){Y=D.arrayState;if(Y&2)return D;if(!D.size)return;R=MU(Array.from(o9.prototype.entries.call(D)));if(D.valueCtor)for(D=0;D<R.length;D++){var Z=R[D],t=Z[1];t==null||typeof t!=="object"?t=void 0:t!=null&&t[I9]===VI?t=V0b(t):Array.isArray(t)?t=GT5(t,t[_.sL]|0,!!(Y&32)):t=void 0;Z[1]=t}return R}if(D instanceof VV)return D};
GT5=function(D,Y,R){if(Y&2)return D;!R||4096&Y||16&Y?D=J9(D,Y,!1,R&&!(Y&16)):(HMM(D,34),Y&4&&Object.freeze(D));return D};
eKj=function(D,Y,R){D=new D.constructor(Y);R&&(D.copyOnWrite=W4);D.noLegacyNull=W4;return D};
V0b=function(D){var Y=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=Y[_.sL]|0;return zE(D,R)?D:A95(D,Y,R)?eKj(D,Y):J9(Y,R)};
J9=function(D,Y,R,Z){Z!=null||(Z=!!(34&Y));D=s9l(D,Y,fpS,Z);Z=32;R&&(Z|=2);Y=Y&8380609|Z;uU(D,Y);return D};
qLy=function(D){var Y=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=Y[_.sL]|0;return zE(D,R)?A95(D,Y,R)?eKj(D,Y,!0):new D.constructor(J9(Y,R,!1)):D};
Uz=function(D){if(D.copyOnWrite!==W4)return!1;var Y=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y=J9(Y,Y[_.sL]|0);HMM(Y,2048);D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=Y;D.copyOnWrite=void 0;D.noLegacyNull=void 0;return!0};
Kt=function(D){if(!Uz(D)&&zE(D,D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sL]|0))throw Error();};
h9=function(D,Y){Y===void 0&&(Y=D[_.sL]|0);Y&32&&!(Y&4096)&&uU(D,Y|4096)};
A95=function(D,Y,R){return R&2?!0:R&32&&!(R&4096)?(uU(Y,R|2),D.copyOnWrite=W4,!0):!1};
Lt=function(D,Y,R,Z,t){var X=R+(t?0:-1),M=D.length-1;if(M>=1+(t?0:-1)&&X>=M){var W=D[M];if(W!=null&&typeof W==="object"&&W.constructor===Object)return W[R]=Z,Y}if(X<=M)return D[X]=Z,Y;if(Z!==void 0){var z;M=((z=Y)!=null?z:Y=D[_.sL]|0)>>13&1023||536870912;R>=M?Z!=null&&(X={},D[M+(t?0:-1)]=(X[R]=Z,X)):D[X]=Z}return Y};
_.Pu=function(D,Y,R,Z,t){var X=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=X[_.sL]|0;Z=zE(D,M)?1:Z;t=!!t||Z===3;Z===2&&Uz(D)&&(X=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=X[_.sL]|0);D=nK$(X,Y);var W=D===Hu?7:D[_.sL]|0,z=r95(W,M);var I=4&z?!1:!0;if(I){4&z&&(D=m7(D),W=0,z=xK(z,M),M=Lt(X,M,Y,D));for(var F=0,G=0;F<D.length;F++){var V=R(D[F]);V!=null&&(D[G++]=V)}G<F&&(D.length=G);R=(z|4)&-513;z=R&=-1025;z&=-4097}z!==W&&(uU(D,z),2&z&&Object.freeze(D));return D=wu9(D,z,X,
M,Y,Z,I,t)};
wu9=function(D,Y,R,Z,t,X,M,W){var z=Y;X===1||(X!==4?0:2&Y||!(16&Y)&&32&Z)?Bu(Y)||(Y|=!D.length||M&&!(4096&Y)||32&Z&&!(4096&Y||16&Y)?2:256,Y!==z&&uU(D,Y),Object.freeze(D)):(X===2&&Bu(Y)&&(D=m7(D),z=0,Y=xK(Y,Z),Z=Lt(R,Z,t,D)),Bu(Y)||(W||(Y|=16),Y!==z&&uU(D,Y)));2&Y||!(4096&Y||16&Y)||h9(R,Z);return D};
nK$=function(D,Y,R){D=pt(D,Y,R);return Array.isArray(D)?D:Hu};
r95=function(D,Y){2&Y&&(D|=2);return D|1};
Bu=function(D){return!!(2&D)&&!!(4&D)||!!(256&D)};
$kU=function(D){return _.$E(D,!0)};
vKU=function(D,Y){var R=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=R[_.sL]|0;a:{var t=Z;Z=zE(D,Z);!Z&&Uz(D)&&(R=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=R[_.sL]|0);var X=pt(R,Y);D=!1;if(X==null){if(Z){Y=BzS();break a}X=[]}else if(X.constructor===ft)if(X.arrayState&2&&!Z)X=Array.from(o9.prototype.entries.call(X));else{Y=X;break a}else Array.isArray(X)?D=!!((X[_.sL]|0)&2):X=[];if(Z){if(!X.length){Y=BzS();break a}D||(D=!0,MU(X))}else if(D){D=!1;Z=X;Z=m7(Z);for(X=0;X<
Z.length;X++){var M=Z[X]=m7(Z[X]);Array.isArray(M[1])&&(M[1]=MU(M[1]))}X=Z}!D&&t&32&&P9b(X);Z=new ft(X,void 0,hYo,hYo);t=Lt(R,t,Y,Z);D||h9(R,t);Y=Z}return Y};
_.Ez=function(D,Y,R,Z){Kt(D);var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=t[_.sL]|0;if(R==null)return Lt(t,X,Y),D;var M=R===Hu?7:R[_.sL]|0,W=M,z=Bu(M),I=z||Object.isFrozen(R);z||(M=0);I||(R=m7(R),W=0,M=xK(M,X),I=!1);M|=5;var F;z=(F=x$o(M))!=null?F:0;for(F=0;F<R.length;F++){var G=R[F],V=Z(G,z);Object.is(G,V)||(I&&(R=m7(R),W=0,M=xK(M,X),I=!1),R[F]=V)}M!==W&&(I&&(R=m7(R),M=xK(M,X)),uU(R,M));Lt(t,X,Y,R);return D};
_.gb=function(D,Y,R,Z,t){Kt(D);var X=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Lt(X,X[_.sL]|0,Y,(Z==="0"?Number(R)===0:R===Z)?void 0:R,t);return D};
_.oK$=function(D,Y,R){if(Y&2)throw Error();var Z=NU(Y),t=nK$(D,R,Z),X=t===Hu?7:t[_.sL]|0,M=r95(X,Y);if(2&M||Bu(M)||16&M)t=m7(t),X=0,M=xK(M,Y),Lt(D,Y,R,t,Z);M&=-13;M!==X&&uU(t,M);return t};
bt5=function(D){if(t1){var Y;return(Y=D[db])!=null?Y:D[db]=new Map}if(db in D)return D[db];Y=new Map;Object.defineProperty(D,db,{value:Y});return Y};
NbU=function(D,Y,R,Z,t){var X=bt5(D),M=y9M(X,D,Y,R,t);M!==Z&&(M&&(Y=Lt(D,Y,M,void 0,t)),X.set(R,Z));return Y};
y9M=function(D,Y,R,Z,t){var X=D.get(Z);if(X!=null)return X;for(var M=X=0;M<Z.length;M++){var W=Z[M];pt(Y,W,t)!=null&&(X!==0&&(R=Lt(Y,R,X,void 0,t)),X=W)}D.set(Z,X);return X};
lpn=function(D,Y,R,Z,t){var X=!1;Z=pt(D,Z,t,function(M){var W=K7$(M,R,!1,Y);X=W!==M&&W!=null;return W});
if(Z!=null)return X&&!zE(Z)&&h9(D,Y),Z};
J9U=function(D,Y,R,Z,t,X,M,W){var z=zE(D,R);X=z?1:X;M=!!M||X===3;z=W&&!z;(X===2||z)&&Uz(D)&&(Y=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=Y[_.sL]|0);D=nK$(Y,t);var I=D===Hu?7:D[_.sL]|0,F=r95(I,R);if(W=!(4&F)){var G=D,V=R,e=!!(2&F);e&&(V|=2);for(var r=!e,l=!0,U=0,K=0;U<G.length;U++){var H=K7$(G[U],Z,!1,V);if(H instanceof Z){if(!e){var c=zE(H);r&&(r=!c);l&&(l=c)}G[K++]=H}}K<U&&(G.length=K);F|=4;F=l?F&-4097:F|4096;F=r?F|8:F&-9}F!==I&&(uU(D,F),2&F&&Object.freeze(D));if(z&&!(8&F||!D.length&&
(X===1||(X!==4?0:2&F||!(16&F)&&32&R)))){Bu(F)&&(D=m7(D),F=xK(F,R),R=Lt(Y,R,t,D));Z=D;z=F;for(I=0;I<Z.length;I++)G=Z[I],F=qLy(G),G!==F&&(Z[I]=F);z|=8;F=z=Z.length?z|4096:z&-4097;uU(D,F)}return D=wu9(D,F,Y,R,t,X,W,M)};
kTU=function(D){D==null&&(D=void 0);return D};
xK=function(D,Y){return D=(2&Y?D|2:D&-3)&-273};
_.Ukr=function(D,Y,R,Z,t){Kt(D);Y=_.Pu(D,Y,t,2,!0);var X;t=(X=x$o(Y===Hu?7:Y[_.sL]|0))!=null?X:0;Y.push(R(Z,t));return D};
Khn=function(D,Y,R,Z,t,X,M){Kt(D);var W=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=J9U(D,W,W[_.sL]|0,R,Y,2,!0);if(X&&M)t!=null||(t=D.length-1),Bri(D,t),D.splice(t,X),D.length||(D[_.sL]&=-4097);else{if(X){if(typeof t!=="number"||t<0||t>D.length)throw Error();}else Z=Z!=null?Z:new R;t!=void 0?D.splice(t,X,Z):D.push(Z);t=R=D===Hu?7:D[_.sL]|0;(Z=zE(Z))?(R&=-9,D.length===1&&(R&=-4097)):R|=4096;R!==t&&uU(D,R);Z||h9(W)}};
LhM=function(D,Y){if(typeof D==="string")return new ik(U$b(D),Y);if(Array.isArray(D))return new ik(new Uint8Array(D),Y);if(D.constructor===Uint8Array)return new ik(D,!1);if(D.constructor===ArrayBuffer)return D=new Uint8Array(D),new ik(D,!1);if(D.constructor===VV)return Y=hKr(D)||new Uint8Array(0),new ik(Y,!0,D);if(D instanceof Uint8Array)return D=D.constructor===Uint8Array?D:new Uint8Array(D.buffer,D.byteOffset,D.byteLength),new ik(D,!1);throw Error();};
Oz=function(){var D=function(){throw Error();};
Object.setPrototypeOf(D,D.prototype);return D};
qzi=function(D,Y){var R=R===void 0?mki:R;return new cu(D,Y,R)};
Q9U=function(D,Y,R,Z,t){Y=Htb(Y,Z);Y!=null&&(R=_.xkM(D,R),t(Y,D),_.Pkl(D,R))};
DG=function(D,Y,R,Z){var t=Z[D];if(t)return t;t={};t.binaryFields=Z;t.messageMetadata=Szj(Z[0]);var X=Z[1],M=1;X&&X.constructor===Object&&(t.extensions=X,X=Z[++M],typeof X==="function"&&(t.isMessageSet=!0,Bbi!=null||(Bbi=X),puU!=null||(puU=Z[M+1]),X=Z[M+=2]));for(var W={};X&&EKl(X);){for(var z=0;z<X.length;z++)W[X[z]]=X;X=Z[++M]}for(z=1;X!==void 0;){typeof X==="number"&&(z+=X,X=Z[++M]);var I=void 0;if(X instanceof cu)var F=X;else F=gKM,M--;X=void 0;if((X=F)==null?0:X.$$isMsg){X=Z[++M];I=Z;var G=M;
typeof X==="function"&&(X=X(),I[G]=X);I=X}X=Z[++M];G=z+1;typeof X==="number"&&X<0&&(G-=X,X=Z[++M]);for(;z<G;z++){var V=W[z];I?R(t,z,F,I,V):Y(t,z,F,V)}}return Z[D]=t};
EKl=function(D){return Array.isArray(D)&&!!D.length&&typeof D[0]==="number"&&D[0]>0};
it9=function(D){return Array.isArray(D)?D[0]instanceof cu?D:[dkM,D]:[D,void 0]};
Htb=function(D,Y){if(D instanceof _.Y7)return D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(D))return Tb$(D,Y,!1)};
Ot$=function(D,Y,R,Z){var t=R.$$binaryReaderFn;D[Y]=Z?function(X,M,W){return t(X,M,W,Z)}:t};
DyS=function(D,Y,R,Z,t){var X=R.$$binaryReaderFn,M,W;D[Y]=function(z,I,F){return X(z,I,F,W||(W=DG(c9j,Ot$,DyS,Z).messageMetadata),M||(M=YNo(Z)),t)}};
YNo=function(D){var Y=D[RES];if(Y!=null)return Y;var R=DG(c9j,Ot$,DyS,D);Y=R.isMessageSet?function(Z,t){return Bbi(Z,t,R)}:function(Z,t){for(;Z$S(t)&&t.nextWireType_!=4;){var X=t.nextField_,M=R[X];
if(M==null){var W=R.extensions;W&&(W=W[X])&&(W=tf$(W),W!=null&&(M=R[X]=W))}if(M==null||!M(t,Z,X)){W=t;M=W.fieldCursor_;sJi(W);if(W.discardUnknownFields)var z=void 0;else{var I=W.decoder_.cursor_-M;W.decoder_.cursor_=M;z=XZ9(W.decoder_,I)}I=W=M=void 0;var F=Z;z&&((M=(W=(I=F[nt])!=null?I:F[nt]=new Zto)[X])!=null?M:W[X]=[]).push(z)}}if(Z=p4S(Z))Z.reviveUnknownFields=R.binaryFields[uBS];return!0};
D[RES]=Y;D[uBS]=aGU.bind(D);return Y};
aGU=function(D,Y,R,Z){var t=this[c9j],X=this[RES],M=Tb$(void 0,t.messageMetadata,!1),W=p4S(D);if(W){var z=!1,I=t.extensions;if(I){t=function(r,l,U){if(U.length!==0)if(I[l])for(r=_.a(U),l=r.next();!l.done;l=r.next()){l=Mf$(l.value);try{z=!0,X(M,l)}finally{l.free()}}else Z==null||Z(D,l,U)};
if(Y==null)Yz$(W,t);else if(W!=null){var F=W[Y];F&&t(W,Y,F)}if(z){var G=D[_.sL]|0;if(G&2&&G&2048&&(R==null||!R.reviveIntoImmutable))throw Error();var V=NU(G),e=function(r,l){if(pt(D,r,V)!=null)switch(R==null?void 0:R.resolutionBehavior){case 1:return;default:throw Error();}l!=null&&(G=Lt(D,G,r,l,V));delete W[r]};
Y==null?po$(M,M[_.sL]|0,function(r,l){e(r,l)}):e(Y,pt(M,Y,V))}}}};
tf$=function(D){D=it9(D);var Y=D[0].$$binaryReaderFn;if(D=D[1]){var R=YNo(D),Z=DG(c9j,Ot$,DyS,D).messageMetadata;return function(t,X,M){return Y(t,X,M,Z,R)}}return Y};
CTy=function(D,Y,R){D[Y]=R.$$binaryWriterFn};
zEU=function(D,Y,R,Z){var t,X,M=R.$$binaryWriterFn;D[Y]=function(W,z,I){return M(W,z,I,X||(X=DG(WSl,CTy,zEU,Z).messageMetadata),t||(t=SN9(Z)))}};
SN9=function(D){var Y=D[TgS];if(!Y){var R=DG(WSl,CTy,zEU,D);Y=function(Z,t){return jJo(Z,t,R)};
D[TgS]=Y}return Y};
jJo=function(D,Y,R){po$(D,D[_.sL]|0,function(Z,t){if(t!=null){var X=IGy(R,Z);X?X(Y,t,Z):Z<500||L55(FSn,3)}});
(D=p4S(D))&&Yz$(D,function(Z,t,X){RJ(Y,Y.encoder_.end());for(Z=0;Z<X.length;Z++)RJ(Y,hKr(X[Z])||new Uint8Array(0))})};
IGy=function(D,Y){var R=D[Y];if(R)return R;if(R=D.extensions)if(R=R[Y]){R=it9(R);var Z=R[0].$$binaryWriterFn;if(R=R[1]){var t=SN9(R),X=DG(WSl,CTy,zEU,R).messageMetadata;R=D.isMessageSet?puU(X,t):function(M,W,z){return Z(M,W,z,X,t)}}else R=Z;
return D[Y]=R}};
_.Goj=function(D,Y,R){if(Array.isArray(Y)){var Z=Y[_.sL]|0;if(Z&4)return Y;for(var t=0,X=0;t<Y.length;t++){var M=D(Y[t]);M!=null&&(Y[X++]=M)}X<t&&(Y.length=X);R&&(uU(Y,(Z|5)&-1537),Z&2&&Object.freeze(Y));return Y}};
_.ZG=function(D,Y,R){return new cu(D,Y,R)};
_.VfS=function(D,Y,R){return new cu(D,Y,R)};
_.tf=function(D,Y,R){Lt(D,D[_.sL]|0,Y,R,NU(D[_.sL]|0))};
eE$=function(D,Y,R){Y=_.a_U(Y);Y!=null&&(_.sN(D,R,1),D=D.encoder_,R=fG5||(fG5=new DataView(new ArrayBuffer(8))),R.setFloat64(0,+Y,!0),UL=R.getUint32(0,!0),KL=R.getUint32(4,!0),_.uT(D,UL),_.uT(D,KL))};
_.My=function(D,Y,R){Y=l_o(Y);if(Y!=null){switch(typeof Y){case "string":Af5(Y)}if(Y!=null)switch(_.sN(D,R,0),typeof Y){case "number":D=D.encoder_;h1(Y);n75(D,UL,KL);break;case "bigint":R=BigInt.asUintN(64,Y);R=new rf9(Number(R&BigInt(4294967295)),Number(R>>BigInt(32)));n75(D.encoder_,R.JSC$8832_lo,R.JSC$8832_hi);break;default:R=Af5(Y),n75(D.encoder_,R.JSC$8832_lo,R.JSC$8832_hi)}}};
$y5=function(D,Y,R){Y=_.c4(Y);Y!=null&&Y!=null&&(_.sN(D,R,0),_.wZl(D.encoder_,Y))};
_.o7i=function(D,Y,R){v7b(D,R,J1o(Y))};
_.b$l=function(D,Y,R){Y=_.CUn(Y);Y!=null&&(_.sN(D,R,0),D.encoder_.JSC$8834_buffer_.push(Y?1:0))};
_.Ngy=function(D,Y,R){Y=_.TT(Y);Y!=null&&yfM(D,R,tbo(Y))};
lGy=function(D,Y,R,Z,t){Y=Htb(Y,Z);Y!=null&&(R=_.xkM(D,R),t(Y,D),_.Pkl(D,R))};
_.JfU=function(D,Y,R){Y=Y==null||typeof Y=="string"||Y instanceof VV?Y:void 0;Y!=null&&yfM(D,R,LhM(Y,!0).buffer)};
_.kor=function(D,Y,R){Y=_.c4(Y);Y!=null&&(Y=parseInt(Y,10),_.sN(D,R,0),_.wZl(D.encoder_,Y))};
_.C$=function(D,Y){return function(R,Z){var t={treatNewDataAsImmutable:!0};Z&&Object.assign(t,Z);R=Mf$(R,void 0,void 0,t);try{var X=new D,M=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;YNo(Y)(M,R);var W=X}finally{R.free()}return W}};
_.WZ=function(D){return function(Y){return UyU(Y,D)}};
KSU=function(D){return function(){return UyU(this,D)}};
_.hE5=function(D){return lU(function(Y){return Y instanceof D&&!zE(Y)})};
_.zo=function(D){return function(Y){return LSU(D,Y)}};
xyl=function(D,Y){return myj({child:D,origin:Y||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:qNo,getPayloadCase:function(R){return R.getPayloadCase()},
createInitMessage:function(R){var Z=new Sf,t=new H$i;R=_.To(t,1,R);return _.jf(Z,5,Go,R)}})};
f$=function(D){return{valueOf:D}.valueOf()};
QJy=function(){var D=null;if(!PT9)return D;try{var Y=function(R){return R};
D=PT9.createPolicy("goog#html",{createHTML:Y,createScript:Y,createScriptURL:Y})}catch(R){}return D};
pZy=function(){Bgr===void 0&&(Bgr=QJy());return Bgr};
_.Af=function(D){var Y=pZy();D=Y?Y.createScriptURL(D):D;return new ef(D)};
_.n$=function(D){if(D instanceof ef)return D.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.rg=function(D){return Object.isFrozen(D)&&Object.isFrozen(D.raw)};
E7l=function(D){return D.toString().indexOf("`")===-1};
$7=function(D){return new _.wg(g79,D)};
vZ=function(D){return D instanceof _.wg};
_.oJ=function(D){if(vZ(D))return D.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
bT=function(D){return new dy$(function(Y){return Y.substr(0,D.length+1).toLowerCase()===D+":"})};
_.Ny=function(D,Y){Y=Y===void 0?i$5:Y;if(vZ(D))return D;for(var R=0;R<Y.length;++R){var Z=Y[R];if(Z instanceof dy$&&Z.isValid(D))return $7(D)}};
_.Jf=function(D,Y){Y=Y===void 0?i$5:Y;return _.Ny(D,Y)||lT};
_.k7=function(D){var Y=window;if(typeof MediaSource!=="undefined"&&D instanceof MediaSource||typeof Y.ManagedMediaSource!=="undefined"&&D instanceof Y.ManagedMediaSource)return $7(URL.createObjectURL(D));Y=D.type;Y.toLowerCase()==="application/octet-stream"?Y=!0:(Y=Y.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),Y=(Y==null?void 0:Y.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(Y[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(Y[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(Y[1])||/^font\/[\w-]+$/i.test(Y[1])));if(!Y)throw Error("Z");return $7(URL.createObjectURL(D))};
_.O$$=function(D){for(var Y=_.UN.apply(1,arguments),R=[D[0]],Z=0;Z<Y.length;Z++)R.push(String(Y[Z])),R.push(D[Z+1]);return $7(R.join(""))};
_.DcU=function(D){if(!cfl){a:{var Y=document.createElement("a");try{Y.href=D}catch(R){D=void 0;break a}D=Y.protocol;D=D===":"||D===""?"https:":D}return D}try{Y=new URL(D)}catch(R){return"https:"}return Y.protocol};
_.K$=function(D){D instanceof _.wg?D=_.oJ(D):D=Yxr.test(D)?D:void 0;return D};
_.L$=function(D,Y){Y=_.K$(Y);Y!==void 0&&(D.href=Y)};
qy=function(D){var Y=pZy();D=Y?Y.createHTML(D):D;return new mS(D)};
HZ=function(D){if(D instanceof mS)return D.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.x7=function(D,Y){D.src=_.n$(Y).toString()};
RSl=function(D,Y){D.setAttribute("sandbox","");for(var R=0;R<Y.length;R++)D.sandbox.supports&&!D.sandbox.supports(Y[R])||D.sandbox.add(Y[R])};
_.tXb=function(D,Y,R){D.removeAttribute("srcdoc");switch(Y){case 0:if(R instanceof ef)throw new Zji("TrustedResourceUrl",0);RSl(D,[]);Y=_.K$(R);Y!==void 0&&(D.src=Y);break;case 1:if(!(R instanceof ef))throw new Zji(typeof R,1);RSl(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.x7(D,R);break;case 2:if(R instanceof ef)throw new Zji("TrustedResourceUrl",2);RSl(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
Y=_.K$(R);Y!==void 0&&(D.src=Y);break;default:_.qU(Y)}};
_.QB=function(D,Y,R,Z){Y=_.K$(Y);return Y!==void 0?D.open(Y,R,Z):null};
_.BZ=function(D){D=D===void 0?document:D;var Y,R;D=(R=(Y=D).querySelector)==null?void 0:R.call(Y,"script[nonce]");return D==null?"":D.nonce||D.getAttribute("nonce")||""};
_.EN=function(D){var Y=pZy();D=Y?Y.createScript(D):D;return new _.p$(D)};
sKS=function(D){if(D instanceof _.p$)return D.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Xh5=function(D){var Y=_.BZ(D.ownerDocument);Y&&D.setAttribute("nonce",Y)};
_.gg=function(D,Y){D.textContent=sKS(Y);Xh5(D)};
_.dg=function(D,Y){D.src=_.n$(Y);Xh5(D)};
_.iT=function(D,Y){if(D.nodeType===1&&/^(script|style)$/i.test(D.tagName))throw Error("Z");D.innerHTML=HZ(Y)};
_.ON=function(D,Y,R,Z){if(D.length===0)throw Error("Z");D=D.map(function(X){if(X instanceof uxl)X=X.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return X});
var t=R.toLowerCase();if(D.every(function(X){return t.indexOf(X)!==0}))throw Error("aa`"+R);
Y.setAttribute(R,Z)};
_.cZ=function(D,Y,R){if(Y instanceof ef)D.href=_.n$(Y).toString(),D.rel=R;else{if(adU.indexOf(R)===-1)throw Error("ba`"+R);Y=_.K$(Y);Y!==void 0&&(D.href=Y,D.rel=R)}};
MX5=function(D){if(D instanceof Dd)return D.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.C4y=function(D,Y){Y=_.K$(Y);Y!==void 0&&(D.href=Y)};
W_l=function(D,Y){D&&(Y=D.indexOf(Y),0<=Y&&D.splice(Y,1))};
Y3=function(D){return typeof D==="function"};
zSn=function(D){return D instanceof Zd||D&&"closed"in D&&Y3(D.remove)&&Y3(D.add)&&Y3(D.unsubscribe)};
tF=function(){};
sx=function(D){Sx$(function(){throw D;})};
Xx=function(D){return D};
u4=function(){return T9y(_.UN.apply(0,arguments))};
T9y=function(D){return D.length===0?Xx:D.length===1?D[0]:function(Y){return D.reduce(function(R,Z){return Z(R)},Y)}};
jKU=function(D){var Y;return(Y=D!=null?D:void 0)!=null?Y:Promise};
Idn=function(D,Y){return new aK(function(R){var Z=0;return Y.schedule(function(){Z===D.length?R.complete():(R.next(D[Z++]),R.closed||this.schedule())})})};
F_b=function(D,Y){if(!D)throw Error("ca");return new aK(function(R){var Z=new Zd;Z.add(Y.schedule(function(){var t=D[Symbol.asyncIterator]();Z.add(Y.schedule(function(){var X=this;t.next().then(function(M){M.done?R.complete():(R.next(M.value),X.schedule())})}))}));
return Z})};
GlM=function(D,Y,R){Y=Y.schedule(function(){try{R.call(this)}catch(Z){D.error(Z)}},0);
D.add(Y)};
fdU=function(D,Y){return new aK(function(R){var Z;R.add(Y.schedule(function(){Z=D[VXn]();GlM(R,Y,function(){var t=Z.next(),X=t.value;t.done?R.complete():(R.next(X),this.schedule())})}));
return function(){var t;return Y3((t=Z)==null?void 0:t.return)&&Z.return()}})};
eSU=function(D,Y){return new aK(function(R){var Z=new Zd;Z.add(Y.schedule(function(){var t=D[Mc]();Z.add(t.subscribe({next:function(X){Z.add(Y.schedule(function(){return R.next(X)}))},
error:function(X){Z.add(Y.schedule(function(){return R.error(X)}))},
complete:function(){Z.add(Y.schedule(function(){return R.complete()}))}}))}));
return Z})};
AFo=function(D,Y){return new aK(function(R){return Y.schedule(function(){return D.then(function(Z){R.add(Y.schedule(function(){R.next(Z);R.add(Y.schedule(function(){return R.complete()}))}))},function(Z){R.add(Y.schedule(function(){return R.error(Z)}))})})})};
n3n=function(D){return new TypeError("da`"+(D!==null&&typeof D==="object"?"an invalid object":"'"+D+"'"))};
whb=function(D,Y){if(D!=null){if(Y3(D[Mc]))return eSU(D,Y);if(rFM(D))return Idn(D,Y);if(Y3(D==null?void 0:D.then))return AFo(D,Y);if(Symbol.asyncIterator&&Y3(D==null?void 0:D[Symbol.asyncIterator]))return F_b(D,Y);if(Y3(D==null?void 0:D[VXn]))return fdU(D,Y)}throw n3n(D);};
zl=function(D,Y){return Y?whb(D,Y):Wh(D)};
Wh=function(D){if(D instanceof aK)return D;if(D!=null){if(Y3(D[Mc]))return $c9(D);if(rFM(D))return v3S(D);if(Y3(D==null?void 0:D.then))return o3U(D);if(Symbol.asyncIterator&&Y3(D==null?void 0:D[Symbol.asyncIterator]))return bjr(D);if(Y3(D==null?void 0:D[VXn]))return yFo(D)}throw n3n(D);};
$c9=function(D){return new aK(function(Y){var R=D[Mc]();if(Y3(R.subscribe))return R.subscribe(Y);throw new TypeError("ea");})};
v3S=function(D){return new aK(function(Y){for(var R=0;R<D.length&&!Y.closed;R++)Y.next(D[R]);Y.complete()})};
o3U=function(D){return new aK(function(Y){D.then(function(R){Y.closed||(Y.next(R),Y.complete())},function(R){return Y.error(R)}).then(null,sx)})};
yFo=function(D){return new aK(function(Y){for(var R=D[VXn]();!Y.closed;){var Z=R.next(),t=Z.value;Z.done?Y.complete():Y.next(t)}return function(){return Y3(R==null?void 0:R.return)&&R.return()}})};
bjr=function(D){return new aK(function(Y){N9l(D,Y).catch(function(R){return Y.error(R)})})};
N9l=function(D,Y){var R,Z,t,X,M,W;return _.C(function(z){switch(z.nextAddress){case 1:_.SX(z,2,3),X=_.Tl(D);case 5:return z.yield(X.next(),8);case 8:Z=z.yieldResult;if(Z.done){z.jumpTo(3);break}M=Z.value;Y.next(M);z.jumpTo(5);break;case 3:_.jX(z);_.IK(z,9);if(!Z||Z.done||!(t=X.return)){z.jumpTo(9);break}return z.yield(t.call(X),9);case 9:_.jX(z,0,0,1);if(R)throw R.error;_.Fx(z,10,1);break;case 10:_.Fx(z,4);break;case 2:W=_.Gl(z);R={error:W};z.jumpTo(3);break;case 4:Y.complete(),_.V9(z)}})};
ldU=function(D,Y){return Y?Idn(D,Y):v3S(D)};
JFo=function(D){return Y3(D[D.length-1])?D.pop():void 0};
fj=function(D){var Y=D[D.length-1];return Y&&Y3(Y.schedule)?D.pop():void 0};
eX=function(){var D=_.UN.apply(0,arguments),Y=fj(D);return Y?Idn(D,Y):ldU(D)};
nj=function(D){var Y=Y3(D)?D:function(){return D};
return new aK(function(R){return R.error(Y())})};
r9=function(D){return function(Y){if(Y3(Y==null?void 0:Y.lift))return Y.lift(function(R){try{return D(R,this)}catch(Z){this.error(Z)}});
throw new TypeError("fa");}};
$3=function(){return r9(function(D,Y){var R=null;D._refCount++;var Z=new w9(Y,void 0,void 0,void 0,function(){if(!D||D._refCount<=0||0<--D._refCount)R=null;else{var t=D._connection,X=R;R=null;!t||X&&t!==X||t.unsubscribe();Y.unsubscribe()}});
D.subscribe(Z);Z.closed||(R=D.connect())})};
UcS=function(){var D=klU;var Y=Y===void 0?0:Y;return r9(function(R,Z){Z.add(D.schedule(function(){return R.subscribe(Z)},Y))})};
vh=function(D){return r9(function(Y,R){var Z=0;Y.subscribe(new w9(R,function(t){R.next(D.call(void 0,t,Z++))}))})};
hSU=function(D){return vh(function(Y){return K_n(Y)?D.apply(null,_.oK(Y)):D(Y)})};
xcU=function(D){if(D.length===1){var Y=D[0];if(L_$(Y))return{args:Y,keys:null};if(Y&&typeof Y==="object"&&mcr(Y)===qxi)return D=HjS(Y),{args:D.map(function(R){return Y[R]}),
keys:D}}return{args:D,keys:null}};
b4=function(){var D=_.UN.apply(0,arguments),Y=fj(D),R=JFo(D);D=xcU(D);var Z=D.args,t=D.keys;if(Z.length===0)return zl([],Y);Y=new aK(P4j(Z,Y,t?function(X){for(var M={},W=0;W<X.length;W++)M[t[W]]=X[W];return M}:Xx));
return R?Y.pipe(hSU(R)):Y};
P4j=function(D,Y,R){R=R===void 0?Xx:R;return function(Z){QK9(Y,function(){for(var t=D.length,X=Array(t),M=t,W=D.map(function(){return!1}),z=!0,I={i$jscomp$216:0};I.i$jscomp$216<t;I={i$jscomp$216:I.i$jscomp$216},I.i$jscomp$216++)QK9(Y,function(F){return function(){zl(D[F.i$jscomp$216],Y).subscribe(new y9(Z,function(G){X[F.i$jscomp$216]=G;
z&&(W[F.i$jscomp$216]=!0,z=!W.every(Xx));z||Z.next(R(X.slice()))},function(){return--M===0}))}}(I),Z)},Z)}};
QK9=function(D,Y,R){D?R.add(D.schedule(Y)):Y()};
B9U=function(D,Y,R,Z){var t=[],X=0,M=0,W=!1,z=function(I){X++;Wh(R(I,M++)).subscribe(new w9(Y,function(F){Y.next(F)},void 0,function(){X--;
for(var F={};t.length&&X<Z;F={bufferedValue:void 0})F.bufferedValue=t.shift(),z(F.bufferedValue);!W||t.length||X||Y.complete()}))};
D.subscribe(new w9(Y,function(I){return X<Z?z(I):t.push(I)},void 0,function(){W=!0;
!W||t.length||X||Y.complete()}));
return function(){t=null}};
Nc=function(D,Y){var R=R===void 0?Infinity:R;if(Y3(Y))return Nc(function(Z,t){return vh(function(X,M){return Y(Z,X,t,M)})(Wh(D(Z,t)))},R);
typeof Y==="number"&&(R=Y);return r9(function(Z,t){return B9U(Z,t,D,R)})};
phM=function(D){D=D===void 0?Infinity:D;return Nc(Xx,D)};
E3M=function(){var D=_.UN.apply(0,arguments);return phM(1)(ldU(D,fj(D)))};
g3b=function(D){return new aK(function(Y){Wh(D()).subscribe(Y)})};
l4=function(D,Y,R){if(Y3(R)){var Z=R;R=void 0}if(Z)return l4(D,Y,R).pipe(hSU(Z));Z=_.a(Y3(D.addEventListener)&&Y3(D.removeEventListener)?dcM.map(function(M){return function(W){return D[M](Y,W,R)}}):Y3(D.addListener)&&Y3(D.removeListener)?ijl.map(OjS(D,Y)):Y3(D.on)&&Y3(D.off)?cFo.map(OjS(D,Y)):[]);
var t=Z.next().value,X=Z.next().value;return!t&&rFM(D)?Nc(function(M){return l4(M,Y,R)})(ldU(D)):new aK(function(M){if(!t)throw new TypeError("ga");
var W=function(){var z=_.UN.apply(0,arguments);return M.next(1<z.length?z:z[0])};
t(W);return function(){return X(W)}})};
OjS=function(D,Y){return function(R){return function(Z){return D[R](Y,Z)}}};
k3=function(){var D=_.UN.apply(0,arguments),Y=fj(D);var R=typeof D[D.length-1]==="number"?D.pop():Infinity;return D.length?D.length===1?Wh(D[0]):phM(R)(ldU(D,Y)):JF};
YGn=function(D){return D.length===1&&D1M(D[0])?D[0]:D};
R3U=function(){var D=YGn(_.UN.apply(0,arguments));return r9(function(Y,R){var Z=[Y].concat(_.oK(D)),t=function(){if(!R.closed)if(Z.length>0){try{var X=Wh(Z.shift())}catch(W){t();return}var M=new w9(R,void 0,tF,tF);R.add(X.subscribe(M));M.add(t)}else R.complete()};
t()})};
Ux=function(D){return r9(function(Y,R){var Z=0;Y.subscribe(new w9(R,function(t){return D.call(void 0,t,Z++)&&R.next(t)}))})};
twj=function(){var D=_.UN.apply(0,arguments);D=YGn(D);return D.length===1?Wh(D[0]):new aK(Z0y(D))};
Z0y=function(D){return function(Y){for(var R=[],Z={i$jscomp$219:0};R&&!Y.closed&&Z.i$jscomp$219<D.length;Z={i$jscomp$219:Z.i$jscomp$219},Z.i$jscomp$219++)R.push(Wh(D[Z.i$jscomp$219]).subscribe(new w9(Y,function(t){return function(X){if(R){for(var M=0;M<R.length;M++)M!==t.i$jscomp$219&&R[M].unsubscribe();R=null}Y.next(X)}}(Z))))}};
sIj=function(){var D=_.UN.apply(0,arguments),Y=JFo(D),R=YGn(D);return R.length?new aK(function(Z){var t=R.map(function(){return[]}),X=R.map(function(){return!1});
Z.add(function(){t=X=null});
for(var M={sourceIndex$jscomp$1:0};!Z.closed&&M.sourceIndex$jscomp$1<R.length;M={sourceIndex$jscomp$1:M.sourceIndex$jscomp$1},M.sourceIndex$jscomp$1++)Wh(R[M.sourceIndex$jscomp$1]).subscribe(new w9(Z,function(W){return function(z){t[W.sourceIndex$jscomp$1].push(z);t.every(function(I){return I.length})&&(z=t.map(function(I){return I.shift()}),Z.next(Y?Y.apply(null,_.oK(z)):z),t.some(function(I,F){return!I.length&&X[F]})&&Z.complete())}}(M),void 0,function(W){return function(){X[W.sourceIndex$jscomp$1]=
!0;
!t[W.sourceIndex$jscomp$1].length&&Z.complete()}}(M)));
return function(){t=X=null}}):JF};
X8n=function(D){var Y,R,Z;return!!D&&typeof D.active==="boolean"&&typeof((Y=D.clock)==null?void 0:Y.now)==="function"&&((R=D.clock)==null?void 0:R.timeline)!==void 0&&!((Z=D.lastMeasurement)==null||!Z.timestamp)&&typeof D.equivalentTo==="function"&&typeof D.extrapolateToNow==="function"&&typeof D.extrapolateToTime==="function"&&typeof D.map==="function"&&typeof D.joinWith==="function"};
uLn=function(D){function Y(R){return typeof R==="boolean"||typeof R==="string"||typeof R==="number"||R===void 0||R===null}
return Y(D)?!0:Array.isArray(D)?D.every(Y):typeof D==="object"?Object.keys(D).every(function(R){return typeof R==="string"})&&Object.values(D).every(function(R){return Array.isArray(R)?R.every(Y):Y(R)}):!1};
a7M=function(D){if(uLn(D))return D;if(X8n(D))return{lastMeasurement:{value:a7M(D.lastMeasurement.value),timestamp:Kj(D.lastMeasurement.timestamp,new hF(0,D.lastMeasurement.timestamp.timeline))},active:D.active};try{return JSON.parse(JSON.stringify(D))}catch(Y){}return String(D)};
m_=function(D,Y){return function(R){return new aK(function(Z){return R.subscribe(function(t){D.timeExecution(Y,function(){Z.next(t)})()},function(t){D.timeExecution(Y,function(){Z.error(t)})()},function(){D.timeExecution(Y,function(){Z.complete()})()})})}};
Mwi=function(D,Y){var R=!1;return new aK(function(Z){var t=D.setTimeout(function(){R=!0;Z.next(!0);Z.complete()},Y);
return function(){R||D.clearTimeout(t)}})};
Cm$=function(D){D=D.global;if(D.fetchLater)return D.fetchLater.bind(D)};
qc=function(D){return r9(function(Y,R){var Z=null,t=!1,X;Z=Y.subscribe(new w9(R,void 0,function(M){X=Wh(D(M,qc(D)(Y)));Z?(Z.unsubscribe(),Z=null,X.subscribe(R)):t=!0}));
t&&(Z.unsubscribe(),Z=null,X.subscribe(R))})};
WJ5=function(D,Y,R){return function(Z,t){var X=R,M=Y,W=0;Z.subscribe(new w9(t,function(z){var I=W++;M=X?D(M,z,I):(X=!0,z);t.next(M)},void 0,void 0))}};
z3M=function(D){D=D===void 0?null:D;return r9(function(Y,R){var Z=!1;Y.subscribe(new w9(R,function(t){Z=!0;R.next(t)},void 0,function(){Z||R.next(D);
R.complete()}))})};
Hh=function(){return r9(function(D,Y){D.subscribe(new w9(Y,tF))})};
x3=function(D){return r9(function(Y,R){Y.subscribe(new w9(R,function(){return R.next(D)}))})};
Ph=function(D){return D<=0?function(){return JF}:r9(function(Y,R){var Z=0;
Y.subscribe(new w9(R,function(t){++Z<=D&&(R.next(t),D<=Z&&R.complete())}))})};
Q9=function(D){var Y=Y===void 0?Xx:Y;var R;D=(R=D)!=null?R:SGU;return r9(function(Z,t){var X,M=!0;Z.subscribe(new w9(t,function(W){var z=Y(W);if(M||!D(X,z))M=!1,X=z,t.next(W)}))})};
SGU=function(D,Y){return D===Y};
jIU=function(D){D=D===void 0?TXj:D;return r9(function(Y,R){var Z=!1;Y.subscribe(new w9(R,function(t){Z=!0;R.next(t)},void 0,function(){return Z?R.complete():R.error(D())}))})};
TXj=function(){return new I7n};
Bh=function(){var D=_.UN.apply(0,arguments);return function(Y){return E3M(Y,eX.apply(null,_.oK(D)))}};
FJy=function(D){return r9(function(Y,R){var Z=0;Y.subscribe(new w9(R,function(t){D.call(void 0,t,Z++,Y)||(R.next(!1),R.complete())},void 0,function(){R.next(!0);
R.complete()}))})};
GIl=function(){return r9(function(D,Y){var R=[];D.subscribe(new w9(Y,function(Z){R.push(Z);1<R.length&&R.shift()},void 0,function(){for(var Z=_.a(R),t=Z.next();!t.done;t=Z.next())Y.next(t.value);
Y.complete()},function(){R=null}))})};
Vwj=function(D,Y){var R=arguments.length>=2;return function(Z){return Z.pipe(D?Ux(function(t,X){return D(t,X,Z)}):Xx,GIl(),R?z3M(Y):jIU(function(){return new I7n}))}};
Ex=function(D){var Y=Y3(D)?D:function(){return D};
return Y3()?r9(function(R,Z){var t=Y();(void 0)(t).subscribe(Z).add(R.subscribe(t))}):function(R){var Z=new pj(R,Y);
Y3(R==null?void 0:R.lift)&&(Z.lift=R.lift);Z.source=R;Z.subjectFactory=Y;return Z}};
d9=function(D){var Y=new g9(D,void 0,void 0);return function(R){return Ex(function(){return Y})(R)}};
i4=function(D,Y){return r9(WJ5(D,Y,arguments.length>=2))};
Ox=function(){var D=_.UN.apply(0,arguments),Y=fj(D);return r9(function(R,Z){(Y?E3M(D,R,Y):E3M(D,R)).subscribe(Z)})};
D7=function(D){return r9(function(Y,R){var Z=null,t=0,X=!1;Y.subscribe(new w9(R,function(M){var W;(W=Z)==null||W.unsubscribe();W=t++;Wh(D(M,W)).subscribe(Z=new w9(R,function(z){return R.next(z)},void 0,function(){Z=null;
X&&!Z&&R.complete()}))},void 0,function(){(X=!0,!Z)&&R.complete()}))})};
Y2=function(D,Y){Y=Y===void 0?!1:Y;return r9(function(R,Z){var t=0;R.subscribe(new w9(Z,function(X){var M=D(X,t++);(M||Y)&&Z.next(X);!M&&Z.complete()}))})};
f79=function(D,Y,R){var Z=Y3(D)||Y||R?{next:D,error:Y,complete:R}:D;return Z?r9(function(t,X){t.subscribe(new w9(X,function(M){var W;(W=Z.next)==null||W.call(Z,M);X.next(M)},function(M){var W;
(W=Z.error)==null||W.call(Z,M);X.error(M)},function(){var M;
(M=Z.complete)==null||M.call(Z);X.complete()}))}):Xx};
e3r=function(){var D=_.UN.apply(0,arguments),Y=JFo(D);return r9(function(R,Z){for(var t=D.length,X=Array(t),M=D.map(function(){return!1}),W=!1,z={i$jscomp$229:0};z.i$jscomp$229<t;z={i$jscomp$229:z.i$jscomp$229},z.i$jscomp$229++)Wh(D[z.i$jscomp$229]).subscribe(new w9(Z,function(I){return function(F){X[I.i$jscomp$229]=F;
W||M[I.i$jscomp$229]||(M[I.i$jscomp$229]=!0,(W=M.every(Xx))&&(M=null))}}(z),void 0,tF));
R.subscribe(new w9(Z,function(I){W&&(I=[I].concat(_.oK(X)),Z.next(Y?Y.apply(null,_.oK(I)):I))}))})};
n2y=function(D){try{return!!D&&D.location.href!=null&&AZo(D,"foo")}catch(Y){return!1}};
rZi=function(D){var Y=[],R=0,Z;for(Z in D)Y[R++]=Z;return Y};
w8l=function(D,Y){for(var R in D)if(D[R]==Y)return!0;return!1};
$1l=function(D,Y,R){for(var Z in D)if(Y.call(R,D[Z],Z,D))return Z};
v2l=function(D){if(!D||typeof D!=="object")return D;if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);if(D instanceof Date)return new Date(D.getTime());var Y=Array.isArray(D)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(D)||D instanceof DataView?{}:new D.constructor(D.length),R;for(R in D)Y[R]=v2l(D[R]);return Y};
o2U=function(D){var Y=arguments.length;if(Y==1&&Array.isArray(arguments[0]))return o2U.apply(null,arguments[0]);if(Y%2)throw Error("ka");for(var R={},Z=0;Z<Y;Z+=2)R[arguments[Z]]=arguments[Z+1];return R};
b09=function(D){var Y=arguments.length;if(Y==1&&Array.isArray(arguments[0]))return b09.apply(null,arguments[0]);for(var R={},Z=0;Z<Y;Z++)R[arguments[Z]]=!0;return R};
_.RI=function(D){return new uxl(D[0].toLowerCase())};
yZi=function(D){for(var Y=_.UN.apply(1,arguments),R=D[0],Z=0;Z<D.length-1;Z++)R+=String(Y[Z]),R+=D[Z+1];Y=document.implementation.createHTMLDocument("");Z=Y.createElement("style");Y.head.appendChild(Z);Y=Z.sheet;Y.insertRule(R,0);if(Y.cssRules.length===1&&(R=Y.cssRules[0],R instanceof CSSStyleRule))return new Dd(R.cssText.replace(/</g,"\\3C "))};
NXi=function(D){try{return new URL(D,window.document.baseURI)}catch(Y){return new URL("about:invalid")}};
l7r=function(D,Y){var R=Y.createRange();R.selectNode(Y.body);D=qy(D);return R.createContextualFragment(HZ(D))};
JZr=function(D){D=D.nodeName;return typeof D==="string"?D:"FORM"};
kIM=function(D){D=D.nodeType;return D===1||typeof D!=="number"};
Z7=function(D,Y,R){D.setAttribute(Y,R)};
U1$=function(D){return D.parts.map(function(Y){var R=Y.descriptor;return""+Y.url+(R?" "+R:"")}).join(" , ")};
_.tZ=function(D){var Y=_.UN.apply(1,arguments);if(Y.length===0)return _.Af(D[0]);for(var R=D[0],Z=0;Z<Y.length;Z++)R+=encodeURIComponent(Y[Z])+D[Z+1];return _.Af(R)};
_.sG=function(D,Y){D=_.n$(D).toString();var R=D.split(/[?#]/),Z=/[?]/.test(D)?"?"+R[1]:"";return KJ9(R[0],Z,/[#]/.test(D)?"#"+(Z?R[2]:R[1]):"",Y)};
KJ9=function(D,Y,R,Z){function t(M,W){M!=null&&(Array.isArray(M)?M.forEach(function(z){return t(z,W)}):(Y+=X+encodeURIComponent(W)+"="+encodeURIComponent(M),X="&"))}
var X=Y.length?"&":"?";Z.constructor===Object&&(Z=Object.entries(Z));Array.isArray(Z)?Z.forEach(function(M){return t(M[1],M[0])}):Z.forEach(t);
return _.Af(D+Y+R)};
XL=function(D,Y,R,Z){this.top=D;this.right=Y;this.bottom=R;this.left=Z};
h3U=function(D){D=D.global;if(D.PendingGetBeacon)return D.PendingGetBeacon};
C0=function(D){return function(Y){return Y.pipe(LJj(D,Ex(new um)))}};
zI=function(D){return function(Y){return Y.pipe(LJj(D,d9(1)))}};
LJj=function(D,Y){function R(Z){return new aK(function(t){return Z.subscribe(function(X){Sw(D,function(){return void t.next(X)},3)},function(X){Sw(D,function(){return void t.error(X)},3)},function(){Sw(D,function(){return void t.complete()},3)})})}
return u4(R,UcS(),Y,$3(),R)};
H0S=function(D){var Y=m1b(D);return Y===null?new jw(null):Y.pipe(vh(function(R){R=R.serialize();if(qGb)R=_.ZU.btoa(R);else{for(var Z=[],t=0,X=0;X<R.length;X++){var M=R.charCodeAt(X);M>255&&(Z[t++]=M&255,M>>=8);Z[t++]=M}R=_.rb(Z)}return R}),Ph(1),zI(D.queue))};
x1b=function(D){var Y=Y===void 0?{}:Y;if(typeof Event==="function")return new Event(D,Y);if(typeof document!=="undefined"){var R=document.createEvent("CustomEvent");R.initCustomEvent(D,Y.bubbles||!1,Y.cancelable||!1,Y.detail);return R}throw Error();};
Pmb=function(D){return typeof D==="string"?document.getElementById(D):D};
BXM=function(D){var Y=!1;Y=Y===void 0?!1:Y;if(D.tagName==="IMG"){if(D.complete&&(!D.naturalWidth||!D.naturalHeight))return!0;var R;if(Y&&((R=D.style)==null?void 0:R.display)==="none")return!0}var Z,t;return QI5.test((Z=D.getAttribute("width"))!=null?Z:"")&&QI5.test((t=D.getAttribute("height"))!=null?t:"")};
p8y=function(D,Y){if(D.tagName==="IMG")return D.naturalWidth&&D.naturalHeight?!0:!1;try{if(D.readyState)var R=D.readyState;else{var Z,t;R=(Z=D.contentWindow)==null?void 0:(t=Z.document)==null?void 0:t.readyState}return R==="complete"}catch(X){return Y===void 0?!1:Y}};
E2b=function(D){D||(D=function(Y,R,Z){Y.addEventListener(R,Z)});
return D};
O0S=function(D,Y){var R=g2U();R=R===void 0?new d1n:R;if(D=Pmb(D)){var Z=E2b(Z);for(var t=!1,X=function(U){t||(t=!0,Y(U))},M,W=2,z=0;z<i0U.length;++z)if(i0U[z]===D.tagName){W=3;
M=[D];break}M||(M=D.querySelectorAll(i0U.join(",")));var I=0,F=0,G=!0,V=D=!1;z={};for(var e=0;e<M.length;z={isImg:void 0},e++){var r=M[e];if(!BXM(r))if(z.isImg=r.tagName==="IMG",p8y(r,R.crossDomainLoadedDefault))D=!0,z.isImg&&(G=!0);else{I++;var l=function(U){return function(K){I--;!I&&G&&X(W);U.isImg&&(K=K&&K.type==="error",F--,K||(G=!0),!F&&V&&G&&X(W))}}(z);
Z(r,"load",l);z.isImg&&(F++,Z(r,"error",l))}}F===0&&(G=!0);M=null;M=_.ZU.document.readyState==="complete";if(I===0&&!D&&M)W=5;else if(I||!D){Z(_.ZU,"load",function(){!R.pendingImagesBlockLoad||!F&&G?X(4):V=!0});
return}X(W)}};
cZ5=function(D,Y,R){if(D)for(var Z=0;D!=null&&Z<500&&!R(D);++Z)D=Y(D)};
DCi=function(D,Y){cZ5(D,function(R){try{return R===R.parent?null:R.parent}catch(Z){}return null},Y)};
YWl=function(D,Y){if(D.tagName=="IFRAME")Y(D);else{D=D.querySelectorAll("IFRAME");for(var R=0;R<D.length&&!Y(D[R]);++R);}};
R7b=function(D){return(D=D.ownerDocument)&&(D.parentWindow||D.defaultView)||null};
ZGo=function(D,Y,R){try{var Z=JSON.parse(R.data)}catch(M){}if(typeof Z==="object"&&Z&&Z.type==="creativeLoad"){var t=R7b(D);if(R.source&&t){var X;DCi(R.source,function(M){try{if(M.parent===t)return X=M,!0}catch(W){}});
X&&YWl(D,function(M){if(M.contentWindow===X)return Y(Z),!0})}}};
tHi=function(D){return typeof D==="string"?document.getElementById(D):D};
aCU=function(){var D={};return D[0]=_.tZ(s0r,"current"),D[1]=_.tZ(XBy),D[2]=_.tZ(u_M),D};
II=function(D,Y){return D.left===Y.left&&D.top===Y.top&&D.width===Y.width&&D.height===Y.height};
MHo=function(D,Y){return{left:Math.max(D.left,Y.left),top:Math.max(D.top,Y.top),width:Math.max(0,Math.min(D.left+D.width,Y.left+Y.width)-Math.max(D.left,Y.left)),height:Math.max(0,Math.min(D.top+D.height,Y.top+Y.height)-Math.max(D.top,Y.top))}};
CgM=function(D,Y){return{left:Math.round(D.left+Y.x),top:Math.round(D.top+Y.y),width:D.width,height:D.height}};
Wm5=function(D,Y,R){if(D&&Y!==null&&Y!=Y.top){if(!Y.top)return new _.FL(-12245933,-12245933);Y=Y.top}try{return(R===void 0?0:R)?(new _.FL(Y.innerWidth,Y.innerHeight)).round():_.GI(Y).round()}catch(Z){return new _.FL(-12245933,-12245933)}};
z7b=function(D,Y,R){try{if(D){if(!Y.top)return new XL(-12245933,-12245933,-12245933,-12245933);Y=Y.top}var Z=Wm5(D,Y,R),t=Z.height,X=Z.width;if(X===-12245933)return new XL(X,X,X,X);var M=V7(f0(Y.document)),W=M.x,z=M.y;return new XL(z,W+X,z+t,W)}catch(I){return new XL(-12245933,-12245933,-12245933,-12245933)}};
SWi=function(D){var Y;return(Y=D.google_tag_data)!=null?Y:D.google_tag_data={}};
TeU=function(D){var Y,R;return typeof((Y=D.navigator)==null?void 0:(R=Y.userAgentData)==null?void 0:R.getHighEntropyValues)==="function"};
ICi=function(D){if(!TeU(D))return null;var Y=SWi(D);if(Y.uach_promise)return Y.uach_promise;D=D.navigator.userAgentData.getHighEntropyValues(j09).then(function(R){Y.uach!=null||(Y.uach=R);return R});
return Y.uach_promise=D};
ohU=function(D){var Y;return Fm5(G_r(VH9(fCy(e7U(AE$(nhb(rE5(wB9(new $CS,D.architecture||""),D.bitness||""),D.mobile||!1),D.model||""),D.platform||""),D.platformVersion||""),D.uaFullVersion||""),((Y=D.fullVersionList)==null?void 0:Y.map(function(R){var Z=new vhU;Z=_.ew(Z,1,R.brand);return _.ew(Z,2,R.version)}))||[]),D.wow64||!1)};
bGl=function(D){var Y,R;return(R=(Y=ICi(D))==null?void 0:Y.then(function(Z){return ohU(Z)}))!=null?R:null};
yEn=function(D,Y){return new aK(function(R){var Z=!1,t=Array(Y.length);t.fill(void 0);var X=new Set,M=new Set,W=function(G,V){D.running?(t[V]=G,X.add(V),Z||(Z=!0,Sw(D,function(){Z=!1;R.next(_.q$(t))},1))):R.error(new n0(V))},z=function(G,V){M.add(V);
X.add(V);Sw(D,function(){R.error(G)},1)},I=function(G){M.add(G);
Sw(D,function(){M.size===Y.length&&R.complete()},1)},F=Y.map(function(G,V){return G.subscribe(function(e){return void W(e,V)},function(e){return void z(e,V)},function(){return void I(V)})});
return function(){F.forEach(function(G){return void G.unsubscribe()})}})};
JEU=function(D,Y,R){function Z(){if(Y.debugChannel){var U=Y.debugChannel,K=U.next;var H={creativeId:Y.debugNames.getName(R),requiredSignals:t,signals:Object.assign({},X),hasPrematurelyCompleted:M,errorMessage:W,erroredSignalKey:z};H={specMajor:2,specMinor:0,specPatch:0,timestamp:Kj(Y.timeProvider.now(),new hF(0,Y.timeProvider.timeline)),instanceId:Y.debugNames.getName(Y.symbol),creativeState:H};K.call(U,H)}}
for(var t=Object.keys(D),X={},M=!1,W=null,z=null,I={},F=new Set,G=[],V=[],e=_.a(t),r=e.next(),l={};!r.done;l={key$jscomp$396:void 0},r=e.next())l.key$jscomp$396=r.value,r=D[l.key$jscomp$396],r instanceof jw?(I[l.key$jscomp$396]=r.value,F.add(l.key$jscomp$396),Y.debugChannel&&(X[String(l.key$jscomp$396)]=a7M(r.value))):(r=r.pipe(Q9(function(U,K){return X8n(U)||X8n(K)?!1:U===K}),vh(function(U){return function(K){Y.debugChannel&&(X[String(U.key$jscomp$396)]=a7M(K),Z());
var H={};return H[U.key$jscomp$396]=K,H}}(l)),qc(function(U){return function(K){if(K instanceof n0)throw new Nen(String(U.key$jscomp$396));
throw K;}}(l)),f79(function(U){return function(){F.add(U.key$jscomp$396)}}(l),function(U){return function(K){z=String(U.key$jscomp$396);
W=String(K);Z()}}(l),function(U){return function(){F.has(U.key$jscomp$396)||(M=!0,Z())}}(l))),V.push(l.key$jscomp$396),G.push(r));
(D=Object.keys(X).length>0)&&Z();e=yEn(Y.queue,G).pipe(qc(function(U){if(U instanceof n0)throw new lCb(String(V[U.inputObservableIndex]));throw U;}),vh(function(U){return Object.freeze(Object.assign.apply(Object,[{},
I].concat(_.oK(U))))}));
return(G=G.length>0)&&D?k3(eX(Object.freeze(I)),e):G?e:eX(Object.freeze(I))};
k_S=function(D,Y,R,Z,t){return D.performanceMonitor.timeExecution.bind(D.performanceMonitor)(733,function(){var X={};try{return Y.pipe(qc(function(M){Z(Object.assign({},X,{error:M}));return JF}),Nc(function(M){try{var W=R(D,M)}catch(I){return Z(Object.assign({},X,{error:I instanceof Error?I:String(I)})),JF}var z={};
return JEU(W,D,M.symbol).pipe(f79(function(I){z=I}),d9(1),$3()).pipe(t,qc(function(I){Z(Object.assign({},z,{error:I}));
return JF}),Bh(void 0),vh(function(){return!0}))})).pipe(i4(function(M){return M+1},0),qc(function(M){Z(Object.assign({},X,{error:M}));
return JF}))}catch(M){return Z(Object.assign({},X,{error:M})),JF}})()};
rX=function(D){var Y=new Map;if(typeof D!=="object"||D===null)return Y;Object.values(D).forEach(function(R){R&&typeof R.extrapolateToNow==="function"&&(Y.has(R.clock.timeline)||Y.set(R.clock.timeline,R.clock.now()))});
return Y};
UCM=function(D,Y){return typeof D==="string"?encodeURIComponent(D):typeof D==="number"?String(D):Array.isArray(D)?D.map(function(R){return UCM(R,Y)}).join(","):D instanceof hF?D.toString():D&&typeof D.extrapolateToNow==="function"?UCM(D.extrapolateUsingTimestampMap(Y).value,Y):D===!0?"1":D===!1?"0":D===void 0||D===null?null:D instanceof KmU?h7n(D):[D.top,
D.left,D.top+D.height,D.left+D.width].join()};
Lmj=function(D,Y){D=Object.entries(D).map(function(R){var Z=_.a(R);R=Z.next().value;Z=Z.next().value;Z=UCM(Z,Y);return Z===null?"":R+"="+Z}).filter(function(R){return R!==""});
return D.length?D.join("&"):""};
HGM=function(D,Y){var R=mC$,Z=qWb;Y=Y===void 0?.01:Y;return function(t){Y>0&&Math.random()<=Y&&(D.global.HTMLFencedFrameElement&&D.global.fence&&typeof D.global.fence.reportEvent==="function"&&D.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),t=Object.assign({},t,{errorMessage:t.error instanceof Error&&t.error.message?t.error.message:String(t.error),errorStack:t.error instanceof Error&&t.error.stack?String(t.error.stack):null,errorName:t.error instanceof
Error&&t.error.name?String(t.error.name):null,errorContext:String(D.performanceMonitor.timedFunctionContext),errorEscapedQueryId:t.escapedQueryId}),R(Object.assign({},t,{payloadMapper:function(){return function(X){try{return Z(Object.assign({},X))}catch(M){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),rX(t)).forEach(function(X){D.beaconFactory.makeBeacon(X).sendNow()}))}};
xC9=function(){var D=_.UN.apply(0,arguments);return function(Y){var R=Y.pipe(d9(1),$3());Y=D.map(function(Z){return R.pipe(Z,Bh(!0))});
return b4(Y).pipe(Ph(1),Hh())}};
Pg9=function(){var D=_.UN.apply(0,arguments);return function(Y){var R=Y.pipe(d9(1),$3());Y=D.map(function(Z){return R.pipe(Z,Bh(!0))});
return k3.apply(null,_.oK(Y)).pipe(Ph(1),Hh())}};
Q05=function(D,Y){return function(R){var Z=R.pipe(d9(1),$3());R=Z.pipe(D,Bh(!0));Z=Z.pipe(u4(Y,d9(),$3()),Bh(!0));R=b4([R,Z]);return twj(R,Z).pipe(Ph(1),Hh())}};
Be5=function(D,Y,R){R(!0)};
pB9=function(D,Y){return u4(D7(function(R){var Z=D(R),t=Y(R),X={};return Z&&t&&X?new aK(function(M){t(Z,X,function(W){M.next(Object.assign({},R,{canEmit:W}));M.complete()});
return function(){}}):wX}),Ux(function(R){return R.canEmit}))};
Ehj=function(D){var Y={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(R){return R.pipe(D7(function(Z){return new aK(function(t){function X(){W.disconnect();z.unsubscribe()}
var M=D.MutationObserver;if(M&&Z.ref!==void 0){var W=new M(function(I){t.next(I)});
W.observe(Z.ref,Y);var z=Z.JSC$9329_released.subscribe(X);return X}})}))}};
gho=function(D){if(D.measurementDeferralState===3)return null;if(D.timeOnScreenReason!==void 0){var Y=D.creativeFound===!1?"n":null;if(Y!==null)return Y}return D.geometricMeasurementErrors instanceof $2?"msf":D.contextValidationErrors instanceof bm?"c":D.contextVisibilityKnown===!1?"pv":D.geometricMeasurementErrors||D.contextValidationErrors?"x":null};
iGU=function(D,Y){return D.replace(dCl,function(R,Z){try{var t=_.y7.get(Y,Z);if(t==null||t.toString()==null)return R;t=t.toString();if(t==""||!_.M$(t==null?"":String(t)))return encodeURIComponent(t).replace(/%2C/g,",")}catch(X){}return R})};
OG9=function(D,Y){var R=Object.assign({},D),Z=D.userAgentClientHints;R=(delete R.userAgentClientHints,R);R=D.payloadMapper(R);var t=Lmj(R,Y);return _.N1(D.urlPrefixes,function(X){var M="";typeof Z==="string"&&(M="&"+Lmj({uach:Z},Y));var W={};return iGU(X,(W.VIEWABILITY=t,W))+M})};
mC$=function(D,Y){var R=D.payloadMapper(D),Z=Lmj(R,Y);return Z?_.N1(D.urlPrefixes,function(t){t=t.indexOf("?")>=0?t:t+"?";t="?&".indexOf(t.slice(-1))>=0?t:t+"&";return t+Z}):D.urlPrefixes};
cEr=function(){return u4(Ux(function(D){return D!==void 0}),vh(function(D){return D}))};
Dar=function(D){return u4(vh(function(){return!0}),Ox(!1),zI(D))};
YUU=function(D){return D.length<=0?JF:b4(D.map(function(Y){var R=0;return Y.pipe(vh(function(Z){return{index:R++,value:Z}}))})).pipe(Ux(function(Y){return Y.every(function(R){return R.index===Y[0].index})}),vh(function(Y){return Y.map(function(R){return R.value})}))};
Rpb=function(D,Y){D.currentState&&(D.previousState=D.currentState);D.currentState=Y;D.previousState&&D.previousState.value?(Y=Math.max(0,Kj(Y.timestamp,D.previousState.timestamp)),D.totalTime+=Y,D.consecutiveTime+=Y):D.consecutiveTime=0;return D};
Z49=function(){return u4(i4(Rpb,{totalTime:0,consecutiveTime:0}),vh(function(D){return D.totalTime}))};
ti5=function(){return u4(i4(Rpb,{totalTime:0,consecutiveTime:0}),vh(function(D){return D.consecutiveTime}))};
seU=function(D,Y){return function(R){return YUU(Y.map(function(Z){return R.pipe(D(Z))}))}};
X_5=function(){var D;return u4(f79(function(Y){return void(D=Y.timestamp)}),ti5(),vh(function(Y){return{timestamp:D,
value:Math.round(Y)}}))};
uD9=function(D,Y){return II(D.topWindowViewportExternalGeometry,Y.topWindowViewportExternalGeometry)&&II(D.elementGeometry,Y.elementGeometry)&&II(D.exposedViewportLocalGeometry,Y.exposedViewportLocalGeometry)&&II(D.intersectionGeometry,Y.intersectionGeometry)&&D.elementGeometrySourceName===Y.elementGeometrySourceName&&D.measurementRequests===Y.measurementRequests&&D.viewportGeometrySourceName===Y.viewportGeometrySourceName&&D.viewportLocalAppOffset.x===Y.viewportLocalAppOffset.x&&D.viewportLocalAppOffset.y===
Y.viewportLocalAppOffset.y};
Wgn=function(D,Y){return function(R){return function(Z){var t=Z.pipe(Ex(new um),$3());Z=R.element.pipe(Q9());t=t.pipe(vh(function(X){return X.value}));
return b4([Z,t,Y]).pipe(vh(function(X){var M=_.a(X);X=M.next().value;var W=M.next().value;M=M.next().value;if(X.ref===void 0)var z={top:0,left:0,width:0,height:0};else{z=X.ref.getBoundingClientRect();var I=X.ref,F=D.global,G=new _.lm(0,0),V=JZ(_.k2(I));if(AZo(V,"parent")){do{if(V==F)var e=_.UG(I);else e=aei(I),e=new _.lm(e.left,e.top);G.x+=e.x;G.y+=e.y}while(V&&V!=F&&V!=V.parent&&(I=V.frameElement)&&(V=V.parent))}z={top:G.y,left:G.x,width:z.width,height:z.height}}z=CgM(z,W.viewportLocalAppOffset);
F=MHo(z,W.exposedViewportLocalGeometry);G=D.timeProvider.now();V=Object;I=V.assign;if(M!==2||D.inCrossDomainIframe||F.width<=0||F.height<=0)var r=!1;else try{var l=D.document.elementFromPoint(F.left+F.width/2,F.top+F.height/2);r=l?!Mi$(l,X):!1}catch(U){r=!1}return{timestamp:G,value:I.call(V,{},W,{elementGeometrySourceName:"geo",intersectionGeometry:r?CM9.intersectionGeometry:F,elementGeometry:z})}}),C0(D.queue))}}};
Mi$=function(D,Y,R){R=R===void 0?0:R;return D.ref===void 0||Y.ref===void 0?!1:D.ref===Y.ref||_.K0(Y.ref,function(Z){return Z===D.ref})?!0:Y.ref.ownerDocument&&Y.ref.ownerDocument.defaultView&&Y.ref.ownerDocument.defaultView===Y.ref.ownerDocument.defaultView.top?!1:R<10&&Y.ref.ownerDocument&&Y.ref.ownerDocument.defaultView&&Y.ref.ownerDocument.defaultView.frameElement?Mi$(D,new hZ(Y.ref.ownerDocument.defaultView.frameElement),R+1):!0};
T2r=function(D){return function(Y){return Y.pipe(D.ResizeObserver?zpS(D):SUl(D),d9(1),$3())}};
zpS=function(D){return function(Y){return Y.pipe(D7(function(R){var Z=D.ResizeObserver;if(!Z||R.ref===void 0)return eX(CM9.elementGeometry);var t=(new aK(function(X){function M(){R.ref!==void 0&&W.unobserve(R.ref);W.disconnect();z.unsubscribe()}
if(R.ref===void 0)return X.complete(),function(){};
var W=new Z(function(I){I.forEach(function(F){X.next(F)})});
W.observe(R.ref);var z=R.JSC$9329_released.subscribe(M);return M})).pipe(m_(D.performanceMonitor,736),vh(function(X){return X.contentRect}));
return k3(eX(R.ref.getBoundingClientRect()),t)}),Q9(II))}};
SUl=function(D){return function(Y){var R=Y.pipe(Ehj(D)),Z=D.onResize;R=k3(Y.pipe(vh(function(){return x1b("resize")})),R,Z);
return b4(Y,R).pipe(m_(D.performanceMonitor,737),vh(function(t){t=_.a(t).next().value;return t.ref===void 0?void 0:t.ref.getBoundingClientRect()}),cEr(),Q9(II))}};
FgU=function(D,Y){var R=je9(D,Y).pipe(d9(1),$3());return function(Z){return function(t){t=t.pipe(D7(function(X){return X.element}),Q9());
return b4([R,t]).pipe(D7(function(X){var M=_.a(X);X=M.next().value;M=M.next().value;return Iey(D,X.intersectionObserver,T2r(D),X.observations,Z,X.flushRecords,M)}),C0(D.queue))}}};
Gk$=function(D){return vh(function(Y){return Y.value.viewportGeometrySourceName!=="nio"?Y:Object.assign({},Y,{value:Object.assign({},Y.value,{exposedViewportLocalGeometry:L0(D,!0),topWindowViewportExternalGeometry:L0(D,!0)})})})};
ViU=function(D,Y){return eX(Y).pipe(D,vh(function(){return Y}))};
je9=function(D,Y){return D.timeProvider.timeline!==feU?nj(new $2(2)):D.MutationObserver?typeof IntersectionObserver==="undefined"?nj(new $2(0)):(new aK(function(R){var Z=new um,t=new mJ(Z.next.bind(Z),{threshold:[].concat(_.oK(Y))});R.next({observations:Z.pipe(m_(D.performanceMonitor,735)),intersectionObserver:t,flushRecords:function(X){X=t.takeRecords(X);X.length>0&&Z.next(X)}})})).pipe(Ph(1),d9(1),$3()):nj(new $2(1))};
epo=function(D){return whb(D.sort(function(Y,R){return Y.time-R.time}),klU)};
Iey=function(D,Y,R,Z,t,X,M){return new aK(function(W){function z(){r||(r=!0,M.ref!==void 0&&Y.unobserve(t,M.ref),F.unsubscribe(),e.unsubscribe(),V.unsubscribe(),l.unsubscribe())}
if(M.ref!==void 0){Atj(Y,t);Y.observe(t,M.ref);var I=new q1({timestamp:D.timeProvider.now(),value:Object.assign({},CM9,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),F=Z.pipe(Nc(function(U){return epo(U)}),Ux(function(U){return U.target===M.ref}),vh(function(U){return{timestamp:new hF(U.time,feU),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:U.rootBounds||H8,topWindowViewportExternalGeometry:U.rootBounds||L0(D,!0),measurementRequests:G,elementGeometrySourceName:"nio",intersectionGeometry:U.intersectionRect,elementGeometry:U.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:U.isIntersecting,isV2Visible:U.isVisible}}}),Ex(I),$3()).subscribe(W),G=new um,V=G.subscribe(function(){X(t);
W.next({timestamp:D.timeProvider.now(),value:I.value.value});M.ref!==void 0&&(Y.unobserve(t,M.ref),Y.observe(t,M.ref))}),e=ViU(R,M).subscribe(function(){G.next()}),r=!1,l=M.JSC$9329_released.subscribe(function(){return z()});
return z}})};
ndj=function(D,Y){var R=D.getOnBackgrounded().pipe(vh(function(){return"b"}));
return twj(Y,R).pipe(Ph(1),zI(D.queue))};
x2=function(D){return function(Y){var R;return Y.pipe(f79(function(Z){return void(R=Z.timestamp)}),vh(function(Z){return Z.value}),D,vh(function(Z){return{timestamp:R,
value:Z}}))}};
rtb=function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.elementGeometry.width*D.elementGeometry.height)};
P8=function(D,Y,R){R=R===void 0?function(Z,t){return Z===t}:R;
return D.timestamp.equals(Y.timestamp)&&R(D.value,Y.value)};
p0=function(D,Y){return Y.pipe(vh(function(R){return new B8(D.timeProvider,{timestamp:D.timeProvider.now(),value:R})}))};
w_j=function(D){return function(Y){return Y.pipe(e3r(D),vh(function(R){var Z=_.a(R);R=Z.next().value;Z=Z.next().value;var t=R.value;return{timestamp:R.timestamp,value:t>=1?!0:t<=0?!1:t>=Z}}))}};
vdU=function(){return u4(Ux(function(D,Y){return Y>0}),$ar,Ox(-1),Q9())};
odo=function(D,Y,R){return D?b4([Y,R]).pipe(Ux(function(Z){var t=_.a(Z);Z=t.next().value;t=t.next().value;return Z.timestamp.equals(t.timestamp)}),vh(function(Z){var t=_.a(Z);
Z=t.next().value;t=t.next().value;return Z.value>t.value?Z:t})):Y};
N25=function(D){return function(Y){var R=Y.pipe(b4M),Z=Y.pipe(yti);return D instanceof aK?D.pipe(D7(function(t){return odo(t,R,Z)})):odo(D.value,R,Z)}};
H4M=function(D,Y,R,Z){var t=Z.geometryIsOccluded,X=Z.exposureThreshold,M=Z.wasLargeAdAtRender,W=Z.allowLargeAdThreshold,z=Z.largeAdExposureThreshold,I=Z.mayUseViewportShareExposure,F=Z.hasMeasurementStarted;Z=Z.useIntersectionObserverV2;Y=le5(D,R,Y);R=JtU(D,R);Z=kky(Y,Z);var G=Uai(D,t,I,Y),V=G.pipe(vh(function(E){return E.value}),Q9(),zI(D),i4(function(E,B){return Math.max(E,B)},0)),e=G.pipe(vh(function(E){return E.value}),vdU(),zI(D)),r=Y.pipe(Kg9,vh(function(E){return E.value}),Ph(2),Q9(),zI(D));
M=hp5(D,Y,M,W);var l=M.pipe(Ox(!1),Q9(),vh(function(E){return E?z:X}));
W=G.pipe(w_j(l),Q9(),zI(D));var U=b4([W,Y]).pipe(Ux(function(E){var B=_.a(E);E=B.next().value;B=B.next().value;return E.timestamp.equals(B.timestamp)}),vh(function(E){var B=_.a(E);
E=B.next().value;B=B.next().value;return{visible:E.value,geometry:B.value.elementGeometry}}),i4(function(E,B){return!B.visible&&E.visible?E:B},{visible:!1,
geometry:H8}),vh(function(E){return E.geometry}),Ox(H8),zI(D),Q9(II));
I=I instanceof aK?I.pipe(Q9(),x3()):wX;l=b4([I,l]).pipe(x3());var K=Y.pipe(Ux(function(E){return E.value.viewportGeometrySourceName!=="ns"&&E.value.elementGeometrySourceName!=="ns"}),i4(function(E){return E+1},0),Ox(0),zI(D)),H=R.pipe(x3(!0),Ox(!1),zI(D));
H=b4([F,H]).pipe(vh(function(E){var B=_.a(E);E=B.next().value;B=B.next().value;return E&&!B}),zI(D));
var c=Y.pipe(Lgy,Q9()),Q=c.pipe(vh(function(E){return E.value}),i4(function(E,B){return Math.max(E,B)},0),Q9(),zI(D));
D=c.pipe(vh(function(E){return E.value}),vdU(),zI(D));
return{shouldResetExposureSignals:I,shouldResetViewabilitySignals:l,geometrySignals:{readyGeometryWithDefault:Y,measurementStrategy:Y.pipe(mab),creativePosition:U.pipe(Q9(II)),visible:W.pipe(Q9(P8)),timestampedExposure:G.pipe(Q9(P8)),maximumExposure:V,minimumExposure:e,browserSize:Y.pipe(qU9,Q9(_.gr)),timestampedScreenShare:c,maxScreenShare:Q,minScreenShare:D,geometricMeasurementErrors:R,measurementRequests:Y.pipe(vh(function(E){return E.value.measurementRequests})),
isLargeAd:M,geometryIsOccluded:t,hasMeasurementStarted:F,geometryMeasurable:H,validMeasurementCount:K,loadTimeExposure:r,v2VisibilityBitVector:Z}}};
JtU=function(D,Y){return Y.pipe(Ux(function(){return!1}),vh(function(R){return R}),qc(function(R){return EG(new jw(R),D)}))};
le5=function(D,Y,R){return Y.pipe(R3U(wX),zI(D)).pipe(Q9(function(Z,t){return P8(Z,t,uD9)}),Ox({timestamp:R.now(),
value:CM9}),zI(D))};
Uai=function(D,Y,R,Z){R=Z.pipe(N25(R),x2(vh(function(t){return Math.round(t*100)/100})),zI(D));
return Y instanceof jw?R:b4([R,Y]).pipe(vh(function(t){var X=_.a(t);t=X.next().value;X=X.next().value;return{timestamp:X.timestamp.maximum(t.timestamp),value:X.value?0:t.value}}),Q9(P8),zI(D))};
hp5=function(D,Y,R,Z){Y=[Y.pipe(vh(function(t){return t.value.elementGeometry.width*t.value.elementGeometry.height>=242500}))];
R instanceof aK&&Y.push(R.pipe(vh(function(t){return!!t})));
R=b4(Y);return Z?R.pipe(vh(function(t){return t.some(function(X){return X})}),Ox(!1),Q9(),zI(D)):EG(new jw(!1),D)};
kky=function(D,Y){D=b4([D,Y]).pipe(vh(function(t){var X=_.a(t);t=X.next().value;if(X.next().value&&t.value.isIntersecting)return t.value.isV2Visible}),Q9());
var R=D.pipe(vh(function(t){return t===void 0?!0:t}),i4(function(t,X){return t||!X},!1)),Z=D.pipe(i4(function(t,X){return X===void 0?t:X?!1:t!=null?t:!0},void 0),vh(function(t){return!!t}));
return b4([Y,sIj(D,R,Z)]).pipe(vh(function(t){var X=_.a(t);t=X.next().value;var M=_.a(X.next().value);X=M.next().value;var W=M.next().value;M=M.next().value;var z=0;if(!t)return 0;if(X===void 0)return 16;X&&(z|=1);X||(z|=2);W&&(z|=4);M&&(z|=8);return z}))};
EdS=function(D,Y,R,Z,t){var X=xaS.timeThresholdMs;var M=M===void 0?new PMU(Y,Z):M;return(new aK(function(W){var z=R.pipe(Ox(void 0),D7(function(){return Qe$(t)})).pipe(vh(function(I){var F=I.value;
I=I.timestamp;var G=F.visible;F=F.consecutiveViewTime;var V=F>=X;V||!G?B2U(M):(I=Math.max(0,Kj(Y.now(),I)),p_r(M,Math.max(0,X-F-I)));return V}),i4(function(I,F){return F||I},!1),Q9()).subscribe(W);
return function(){M.dispose();z.unsubscribe()}})).pipe(Y2(function(W){return!W},!0),zI(D))};
Qe$=function(D){return YUU([D,D.pipe(X_5())]).pipe(vh(function(Y){var R=_.a(Y);Y=R.next().value;R=R.next().value;return{timestamp:Y.timestamp,value:{visible:Y.value,consecutiveViewTime:R.value}}}),Q9(function(Y,R){return P8(Y,R,function(Z,t){return Z.consecutiveViewTime===t.consecutiveViewTime&&Z.visible===t.visible})}))};
gdM=function(){return u4(ti5(),i4(function(D,Y){return Math.max(D,Y)},0),vh(function(D){return Math.round(D)}))};
daM=function(D){return u4(w_j(eX(D)),gdM())};
i4b=function(D,Y){return Y instanceof aK?Y.pipe(D7(function(R){return(R=R?15:null)?nj(new $2(R)):D})):(Y=Y.value?15:null)?nj(new $2(Y)):D};
O4l=function(D){var Y=new $2(13);if(D.length<1)return{chain:JF,capturedErrors:JF};var R=new um,Z=D[0];return{chain:D.slice(1).reduce(function(t,X){return t.pipe(qc(function(M){R.next(M);return X}))},Z).pipe(qc(function(t){R.next(t);
return nj(Y)}),Ex(new um),$3()),
capturedErrors:R}};
cto=function(D,Y){var R=D.pipe(Ex(new um),$3());return D7(function(Z){return R.pipe(Y(Z))})};
Y3l=function(D,Y){if(D.inCrossDomainIframe)return nj(new $2(6));var R=new um;return k3(eX({}),Y,R).pipe(vh(function(){return{timestamp:D.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:DJy(D),topWindowViewportExternalGeometry:L0(D,!0),measurementRequests:R,viewportLocalAppOffset:{x:0,y:0}}}}),C0(D.queue))};
DJy=function(D){var Y=L0(D,!1);if(!D.inIframe||!n2y(D.global.parent)||D.global.parent===D.global)return Y;var R=new gX(D.global.parent,D.debugChannel);R.beaconFactory=D.beaconFactory;R=DJy(R);D=D.global.frameElement.getBoundingClientRect();return MHo(CgM(MHo(R,D),{x:Y.left-D.left,y:Y.top-D.top}),Y)};
Rti=function(D){if(D.prerendering)return 3;var Y;return(Y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[D.visibilityState||D.webkitVisibilityState||D.mozVisibilityState||""])!=null?Y:0};
Zbi=function(D){return D.document.JSC$9340_onVisibilityChange.pipe(vh(function(Y){return Y==="visible"}),Q9(),zI(D.queue))};
tjb=function(D,Y,R){var Z;return Y.pipe(Q9(),D7(function(t){return R.pipe(vh(function(){if(!Z){Z=!0;try{t.next()}finally{Z=!1}}return!0}))}),Ox(!1),zI(D.queue))};
spb=function(D){return u4(x2(vh(function(Y){return Y>=1?!0:Y<=0?!1:Y>=D})),Z49(),vh(function(Y){return Math.round(Y)}))};
uPr=function(D,Y,R,Z,t){var X=XD$;if(X.length>1)for(var M=0;M<X.length-1;M++)if(X[M]<X[M+1])throw Error();M=t.pipe(Ox(void 0),D7(function(){return R.pipe(X_5())}),Q9(),zI(D));
t=t.pipe(Ox(void 0),D7(function(){return R.pipe(gdM())}),Q9(),zI(D));
return{totalMeasurementTime:Z.pipe(Ox(void 0),D7(function(){return Y.pipe(vh(function(W){return{timestamp:W.timestamp,value:!0}}),Z49())}),Q9(),zI(D)),
totalUnviewedTime:Z.pipe(Ox(void 0),D7(function(){return Y.pipe(vh(function(W){return{timestamp:W.timestamp,value:W.value===0}}),Z49())}),Q9(),zI(D)),
maxTimeOnScreen:Z.pipe(Ox(void 0),D7(function(){return Y.pipe(seU(daM,X))}),Q9(_.gr),zI(D)),
timeOnScreen:Z.pipe(Ox(void 0),D7(function(){return Y.pipe(seU(spb,X),vh(function(W){return W.map(function(z,I){return I>0?z-W[I-1]:z})}))}),Q9(_.gr),zI(D)),
maxConsecutiveViewTime:t,consecutiveViewTime:M.pipe(Q9(P8),zI(D))}};
Mjo=function(D){var Y=!0;Y=Y===void 0?!1:Y;return u4(D7(function(R){return a1b(D.document,R,Y)}),zI(D.queue))};
C1o=function(D,Y,R){var Z=R.pipe(vh(function(t){return{value:t,timestamp:D.timeProvider.now()}}),Q9(P8));
return Y instanceof aK?Y.pipe(Q9(),D7(function(t){return t?EG(new jw({value:!1,timestamp:D.timeProvider.now()}),D.queue):Z})):Y.value===!1?Z:new jw(!1)};
Wf5=function(D,Y,R,Z,t,X,M){var W=xaS;Y=Y instanceof aK?Y.pipe(Ox(!1),Q9()):Y;var z=!D.isMobile();R=C1o(D,R,Z);D=M.measurableCreative.pipe(Dar(D.queue));return Object.assign({},W,{geometryIsOccluded:R,wasLargeAdAtRender:t,allowLargeAdThreshold:z,mayUseViewportShareExposure:Y,hasMeasurementStarted:D,useIntersectionObserverV2:X})};
S3U=function(D,Y,R,Z,t,X){var M=1;X=X===void 0?!0:X;M=M===void 0?.01:M;var W=W===void 0?D.timeProvider.intervalObservable(100).pipe(zI(D.queue)):W;return D.performanceMonitor.timeExecution(916,function(){return zt9(D,Y.pipe(C0(D.queue)),R.pipe(C0(D.queue)),Z,t,X,M,W)})()};
zt9=function(D,Y,R,Z,t,X,M,W){var z=Zbi(D).pipe(vh(function(F){return!F})),I=new Tfl(D,[new jpS(D,XD$),
new I1S(D,W)]);W=xC9(Ffl,G6n);return k_S(D,Y,function(F,G){var V=EG(new jw(G.element),F.queue).pipe(Mjo(F),zI(F.queue)),e={loadedElement:V,shouldMeasure:V.pipe(x3(!0)),measurableCreative:V.pipe(vh(function(E){var B=B===void 0?Symbol():B;return Object.freeze({symbol:B,element:EG(new jw(E),F.queue)})})),
creativeSearchResult:EG(new jw("mue"),F.queue)},r=new jw(!1),l=new jw(!1),U=new jw(17),K=new jw(!1),H=new jw(!1),c=EG(dX,F.queue);r=I.buildGeometrySource(e,{inApp:r,useV2:!1,requestSource:EG(U,F.queue)}).geometrySource;e=Wf5(F,K,l,z,H,c,e);l=H4M(F.queue,F.timeProvider,r,e);e=l.geometrySignals;K=l.shouldResetViewabilitySignals;l=uPr(F.queue,e.timestampedExposure,e.visible,l.shouldResetExposureSignals,K);K=EdS(F.queue,F.timeProvider,K,e.measurementRequests,e.visible);H=R.pipe(Ux(function(E){return E===
G.element.ref}),vh(function(){return"ur"}));
c=Mwi(F.timeProvider,t).pipe(x3("t"));H=ndj(F,k3(H,c));c=tjb(F,e.measurementRequests,H.pipe(Ux(function(E){return E!==null})));
r=H.pipe(Ux(function(E){return E!==null}),vh(function(){return Rti(F.global.document)===1}));
var Q=VjM(F.document);return Object.assign({},{beaconFactory:new jw(F.beaconFactory),context:new jw(F),inferredPingId:new jw("lidar2"),timeOnScreenPingId:new jw("lidartos"),binaryContext:new jw(17),binaryVersion:new jw(Z),requestSource:U,contextValidationErrors:new jw(F.validate()?null:new bm),contextVisibilityKnown:new jw(Q),payloadMapper:new jw(qWb),endOfSessionReason:H,timeOnScreenReason:H,requestMeasurementOnEndOfSession:c,hasImpressionFired:f15,crossDomainIframeState:new jw(F.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:dX,inFetchLaterBeaconExperiment:dX,isTurtlex:dX,turtlexReportEventData:new jw(""),reportFencedFrameEvent:wX,isViewableAttributionEnabled:dX,inViewableAttributionExperiment:new jw(0),fetchBeaconFactory:wX,supportsPendingBeacon:dX,supportsFetchLater:dX,emit:new jw(Be5),beginToRenderEvent:new jw(Symbol()),activeViewUnmeasurableEvent:new jw(Symbol()),activeViewViewableEvent:new jw(Symbol()),creativeFound:f15,immediateUrlPrefixes:new jw(G.immediateUrls),timeOnScreenUrlPrefixes:new jw(G.timeOnScreenUrls),
cpmavUrls:wX,viewableRelayUrls:wX,measurementDeferralState:new jw(2),urlSerializer:new jw(OG9),viewUrlSerializer:new jw(etn),isCreativeLoaded:V.pipe(Dar(F.queue)),pageVisible:z.pipe(vh(function(E){return!E})),
eosPageVisible:r,timestampedExposureHistory:e.timestampedExposure.pipe(i4(function(E,B){E.push(B);return E},[]))},e,{viewable:p0(F,K),
maxTimeOnScreen:p0(F,l.maxTimeOnScreen),timeOnScreen:p0(F,l.timeOnScreen),maxConsecutiveViewTime:p0(F,l.maxConsecutiveViewTime),consecutiveViewTime:l.consecutiveViewTime.pipe(vh(function(E){return new B8(F.timeProvider,E)})),
totalMeasurementTime:p0(F,l.totalMeasurementTime),totalUnviewedTime:p0(F,l.totalUnviewedTime),userAgentClientHints:H0S(F),clientOrderPingCounter:new jw(new KmU)})},HGM(D,M),Pg9(X?Q05(W,AQS):Q05(W,nsU),rQb))};
wD$=function(D){var Y=_.UN.apply(1,arguments).filter(Boolean).join("&");if(!Y)return D;var R=D.match(/[?&]adurl=/);return R?D.slice(0,R.index+1)+Y+"&"+D.slice(R.index+1):D+(D.indexOf("?")<0?"?":"&")+Y};
im=function(D,Y){return Y?"&"+D+"="+encodeURIComponent(Y):""};
$JS=function(){try{var D,Y;return!!((D=window)==null?0:(Y=D.top)==null?0:Y.location.href)&&!1}catch(R){return!0}};
_.OG=function(D){D&&typeof D.dispose=="function"&&D.dispose()};
_.c8=function(D){for(var Y=0,R=arguments.length;Y<R;++Y){var Z=arguments[Y];_.xn(Z)?_.c8.apply(null,Z):_.OG(Z)}};
osS=function(){var D=vsU();D=D===void 0?"bevasrsg":D;return new Promise(function(Y){var R=window===window.top?window:$JS()?window:window.top,Z=R[D],t;((t=Z)==null?0:t.bevasrs)?Y(new DC(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),R[D]=Z),Z.nqfbel.push(function(X){Y(new DC(X))}))})};
bbo=function(D){var Y={c:D.lp,e:D.ggb,mc:D.oPq,me:D.f4C};D.kw&&(Y.co={c:D.kw.sXz,a:D.kw.k0q,s:D.kw.ssq});return Y};
yQU=function(D){var Y,R,Z={lp:D.c,ggb:D.e,oPq:(Y=D.mc)!=null?Y:!1,f4C:(R=D.me)!=null?R:!1};D.co&&(Z.kw={sXz:D.co.c,k0q:D.co.a,ssq:D.co.s});return Z};
NfS=function(D){return function(){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D(),2);Y=R.yieldResult;return R.return({f:function(){return Y.ybs()},
c:function(Z){return Y.wOf(Z)},
m:function(Z){return Y.ct(yQU(Z))},
mws:function(Z){return Y.skz(yQU(Z))}})})}};
l1n=function(D,Y){var R=vsU();R=R===void 0?"bevasrsg":R;Y={s:function(X){var M;return D.snapshot(Object.assign({},X.c&&{lp:X.c},X.s&&{jrl:X.s},{jHb:(M=X.p)!=null?M:!0}))},
e:function(X){var M;return void((M=D.xyk)==null?void 0:M.call(D,X))},
c:function(X,M){return D.rS6(X,M)},
p:D.mIM,l:function(){return D.zf0()},
wpc:Y?NfS(Y):void 0};var Z=window===window.top?window:$JS()?window:window.top,t=Z[R];if(t){t.bevasrs=Y;if(t.nqfbel!==void 0)for(R=_.a(t.nqfbel),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z(Y);t.nqfbel=void 0}else t={},t=(t.bevasrs=Y,t.nqfbel=void 0,t),Z[R]=t};
k6y=function(D){var Y=Y===void 0?51:Y;var R=[];_.Yh(D,JQU,6,_.R0()).forEach(function(Z){_.ZC(Z,2)<=Y&&R.push(_.ZC(Z,1))});
return R};
UJ$=function(D){var Y=Y===void 0?51:Y;var R=[];_.Yh(D,JQU,6,_.R0()).forEach(function(Z){_.ZC(Z,2)>Y&&R.push(_.ZC(Z,1))});
return R};
Kfj=function(D){D.then(function(){},function(){})};
tE=function(D){return{fieldType:1,fieldName:D}};
sW=function(D){return{fieldType:2,fieldName:D}};
_.X_=function(D){return{fieldType:3,fieldName:D}};
htS=function(){function D(){t[0]=1732584193;t[1]=4023233417;t[2]=2562383102;t[3]=271733878;t[4]=3285377520;F=I=0}
function Y(G){for(var V=M,e=0;e<64;e+=4)V[e/4]=G[e]<<24|G[e+1]<<16|G[e+2]<<8|G[e+3];for(e=16;e<80;e++)G=V[e-3]^V[e-8]^V[e-14]^V[e-16],V[e]=(G<<1|G>>>31)&4294967295;G=t[0];var r=t[1],l=t[2],U=t[3],K=t[4];for(e=0;e<80;e++){if(e<40)if(e<20){var H=U^r&(l^U);var c=1518500249}else H=r^l^U,c=1859775393;else e<60?(H=r&l|U&(r|l),c=2400959708):(H=r^l^U,c=3395469782);H=((G<<5|G>>>27)&4294967295)+H+K+c+V[e]&4294967295;K=U;U=l;l=(r<<30|r>>>2)&4294967295;r=G;G=H}t[0]=t[0]+G&4294967295;t[1]=t[1]+r&4294967295;t[2]=
t[2]+l&4294967295;t[3]=t[3]+U&4294967295;t[4]=t[4]+K&4294967295}
function R(G,V){if(typeof G==="string"){G=unescape(encodeURIComponent(G));for(var e=[],r=0,l=G.length;r<l;++r)e.push(G.charCodeAt(r));G=e}V||(V=G.length);e=0;if(I==0)for(;e+64<V;)Y(G.slice(e,e+64)),e+=64,F+=64;for(;e<V;)if(X[I++]=G[e++],F++,I==64)for(I=0,Y(X);e+64<V;)Y(G.slice(e,e+64)),e+=64,F+=64}
function Z(){var G=[],V=F*8;I<56?R(W,56-I):R(W,64-(I-56));for(var e=63;e>=56;e--)X[e]=V&255,V>>>=8;Y(X);for(e=V=0;e<5;e++)for(var r=24;r>=0;r-=8)G[V++]=t[e]>>r&255;return G}
for(var t=[],X=[],M=[],W=[128],z=1;z<64;++z)W[z]=0;var I,F;D();return{reset:D,update:R,digest:Z,digestString:function(){for(var G=Z(),V="",e=0;e<G.length;e++)V+="0123456789ABCDEF".charAt(Math.floor(G[e]/16))+"0123456789ABCDEF".charAt(G[e]%16);return V}}};
P19=function(D,Y){Y=Y===void 0?Lf9:Y;if(!mJU){var R;D=(R=D.navigator)==null?void 0:R.userAgentData;if(!D||typeof D.getHighEntropyValues!=="function"||D.brands&&typeof D.brands.map!=="function")return Promise.reject(Error("ua"));q3o((D.brands||[]).map(function(t){var X=new Hb5;X=_.ew(X,1,t.brand);return _.ew(X,2,t.version)}));
typeof D.mobile==="boolean"&&_.ug(xJU,2,D.mobile);mJU=D.getHighEntropyValues(Y)}var Z=new Set(Y);return mJU.then(function(t){var X=xJU.clone();Z.has("platform")&&_.ew(X,3,t.platform);Z.has("platformVersion")&&_.ew(X,4,t.platformVersion);Z.has("architecture")&&_.ew(X,5,t.architecture);Z.has("model")&&_.ew(X,6,t.model);Z.has("uaFullVersion")&&_.ew(X,7,t.uaFullVersion);return X.serialize()}).catch(function(){return xJU.serialize()})};
a0=function(D,Y,R,Z){this.initialValue_=D;this.maxValue_=Y;this.currBaseValue_=this.currValue_=D;this.randomFactor_=R||0;this.backoffFactor_=Z||2};
MC=function(D){this.src=D;this.listeners={};this.typeCount_=0};
Eso=function(){for(var D;D=Qpb.remove();){try{D.fn.call(D.scope)}catch(Y){tS(Y)}Bfn.put(D)}pDU=!1};
_.gs5=function(D){switch(D){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}};
dJb=function(D){switch(D){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""}};
_.ibb=function(){};
Xrl=function(D,Y,R,Z){D=ObU(cQi(DE9(new _.CG(1828,"0"),D),new YKU)).disableWithCredentials();Y.length&&RrS(D,Zvi(new t$U,Y));Z!==void 0&&(D.destinationUrl=Z);var t=new snl(1828,"","",!1,"",D.build());_.WB(t,D);var X=new z_({flush:function(M){try{t.flush(M)}catch(W){R(W)}}});
X.addOnDisposeCallback(function(){setTimeout(function(){try{X.snapshotAndFlush()}finally{t.dispose()}})});
X.invocationLimit=1E5;X.flushInterval=3E4;X.JSC$9756_flushTimer.setInterval(3E4);return X};
SH=function(){var D,Y,R;return(R=(D=globalThis.performance)==null?void 0:(Y=D.now)==null?void 0:Y.call(D))!=null?R:Date.now()};
M$o=function(D,Y){if(D.disable)return new uWr;Y=Y?k6y(Y):[];D={yz:D.yz,eYh:D.fal,yKv:D.w8q,destinationUrl:D.destinationUrl,hhM:D.hhM,rbh:D.rbh};Y=Y===void 0?[]:Y;return new aHb(D,Y)};
Cxj=function(D){if(!D)return null;D=_.jH(D,2);return D===null||D===void 0?null:qy(D)};
_.WzU=function(D){if(!D)return null;D=_.jH(D,4);return D===null||D===void 0?null:_.Af(D)};
TPb=function(D,Y){return Y?zri(Y):D?SKl(D):Promise.resolve()};
zri=function(D){return new Promise(function(Y,R){var Z=_.I0("SCRIPT"),t=_.WzU(D);_.dg(Z,t);Z.onload=function(){_.F_(Z);Y()};
Z.onerror=function(){_.F_(Z);R(Error("Fa"))};
(G_("HEAD")[0]||document.documentElement).appendChild(Z)})};
SKl=function(D){return new Promise(function(Y){var R=_.I0("SCRIPT");if(D){var Z=_.jH(D,6);Z=Z===null||Z===void 0?null:_.EN(Z)}else Z=null;_.gg(R,Z);(G_("HEAD")[0]||document.documentElement).appendChild(R);_.F_(R);Y()})};
VJ=function(D,Y,R){var Z,t=new Promise(function(X){Z=setTimeout(X,Y)});
return Promise.race([D.finally(function(){return void clearTimeout(Z)}),
t.then(R)])};
jnr=function(D,Y){try{return globalThis.sessionStorage.setItem(D,Y),!0}catch(R){return!1}};
JT9=function(D,Y,R,Z){Y=Y===void 0?0:Y;R=R===void 0?D.length:R;var t=0;for(Z&&(t=JT9(Z));Y<R;Y++)Z=typeof D==="string"?D.charCodeAt(Y):D[Y],t=kZU(31,t)+Z|0;return t};
UEy=function(D,Y){return[JT9(D,0,D.length>>1,Y),JT9(D,D.length>>1)]};
Kzl=function(D){var Y=_.a(UEy(D,fG));D=Y.next().value;Y=Y.next().value;return D.toString(16)+Y.toString(16)};
hrn=function(D,Y){var R=UEy(Y);D=new Uint32Array(D.buffer);Y=D[0];var Z=_.a(R);R=Z.next().value;Z=Z.next().value;for(var t=1;t<D.length;t+=2){for(var X=Y,M=t,W=R,z=Z,I=0;I<22;I++)M=M>>>8|M<<24,M+=X|0,M^=W+38293,X=X<<3|X>>>29,X^=M,z=z>>>8|z<<24,z+=W|0,z^=I+38293,W=W<<3|W>>>29,W^=z;X=[X,M];D[t]^=X[0];t+1<D.length&&(D[t+1]^=X[1])}};
Lz$=function(D,Y,R,Z,t){var X=(4-(fG.length+R.length)%4)%4,M=new Uint8Array(4+X+fG.length+4+R.length),W=new DataView(M.buffer),z=0;W.setUint32(z,Math.random()*4294967295);z=z+4+X;M.set(fG,z);z+=fG.length;W.setUint32(z,t);M.set(R,z+4);hrn(M,Z);return D.insert(Y,function(I){return void globalThis.sessionStorage.removeItem(I)})?jnr(Y,_.rb(M))?"s":"t":"i"};
mEy=function(D,Y){var R=globalThis.sessionStorage.getItem(D);if(!R)return["m"];try{var Z=_.dr(R);hrn(Z,Y)}catch(t){return globalThis.sessionStorage.removeItem(D),["c"]}for(Y=4;Y<7&&Z[Y]===0;)Y++;for(R=0;R<fG.length;R++)if(Z[Y++]!==fG[R])return globalThis.sessionStorage.removeItem(D),["d"];R=(new DataView(Z.buffer)).getUint32(Y);return Math.floor(Date.now()/1E3)>=R?(globalThis.sessionStorage.removeItem(D),["e"]):["a",new Uint8Array(Z.buffer,Y+4)]};
qKy=function(D){return globalThis.TextEncoder?(new TextEncoder).encode(D):_.eH(D)};
HvU=function(D){var Y=D,R;return function(){if(Y){var Z=Y;Y=void 0;R=Z.apply(this,arguments)}return R}};
Px5=function(D){return lU(function(Y){if(Y instanceof D)return!0;var R,Z,t=Y==null?void 0:(R=Y.ownerDocument)==null?void 0:(Z=R.defaultView)==null?void 0:Z[D.name];return xEy(t)&&Y instanceof t})};
_.re=function(D,Y,R){_.AE.call(this);this.JSC$9969_listener_=D;this.JSC$9969_interval_=Y||0;this.handler_=R;this.callback_=(0,_.nG)(this.JSC$9971_doAction_,this)};
_.we=function(D){D=Qni(D);return _.Af(D)};
Qni=function(D){return D===null?"null":D===void 0?"undefined":D};
prb=function(D){if(D&&D.focus)if(D!==document.activeElement)D.focus();else return BP5(function(){return _.C(function(Y){document.activeElement&&document.activeElement.blur();return Y.return(BP5(function(){D.focus()}))})})};
_.EwU=function(D){var Y=Y===void 0?5:Y;setTimeout(function(){var R;return _.C(function(Z){Z.nextAddress==1&&(R=document.activeElement);if(Z.nextAddress!=5)return(document.activeElement===R||document.activeElement===document.body)&&Y>=0&&D?Z.yield(prb(D),5):Z.jumpTo(0);if(document.activeElement===D)return Z.return();D=D.parentElement;--Y;return Z.jumpTo(2)})},15)};
BP5=function(D){return new Promise(function(Y){requestAnimationFrame(function(){Y(D())})})};
dEn=function(D){if(_.$h)D(_.$h);else{var Y;((Y=gwb)!=null?Y:gwb=[]).push(D)}};
o0=function(){!_.$h&&_.vB&&_.ivU(_.vB());return _.$h};
_.ivU=function(D){_.$h=D;var Y;(Y=gwb)==null||Y.forEach(dEn);gwb=void 0};
_.bg=function(D){_.$h&&_.$h.beforeLoadModuleCode(D)};
_.yJ=function(){_.$h&&_.$h.JSC$10956_setLoaded()};
NC=function(D){return oES(D)?Number(D):String(D)};
OvU=function(D){this.action=D;this.wfv=!1};
cTn=function(D,Y){OvU.call(this,"set-drive-options");this.appId=D;this.appOrigin=Y};
DsU=function(D){OvU.call(this,"visibility");this.visible=D};
Y1b=function(D,Y,R){lg.call(this,D,Y,R)};
R2y=function(D){JE.call(this,D)};
Zq5=function(D){D=D&&D.getWindow()||window;return D.gadgets&&D.gadgets.rpc};
sEo=function(D,Y){var R=Y&&Y.getWindow()||window;if(Zq5(Y))D();else if(thj)thj.push(D);else var Z=thj=[D],t=R.setInterval(function(){if(Zq5(Y)){R.clearInterval(t);for(var X=0;X<Z.length;X++)Z[X]();thj=null}},100)};
uGU=function(D,Y){var R=new UW(D);_.WB(Y,R);var Z={passive:!1};Y.listen(R,"mousewheel",function(t){return void Xgi(D,t)},Z).listen(D,"scroll",function(t){return void Xgi(D,t)},Z)};
Xgi=function(D,Y){var R;a:{for(R=Y.target;R;){if(R.nodeType==1){var Z=_.KG(R,"overflowY");if(Z=="auto"||Z=="scroll")break a}R=R.parentNode}R=null}if(!R||!_.hE(D,R)||R.scrollHeight==R.clientHeight||Y.deltaY>0&&Math.abs(R.scrollTop-(R.scrollHeight-R.clientHeight))<=1||Y.deltaY<0&&R.scrollTop==0)Y.preventDefault(),Y.stopPropagation()};
QJ=function(D,Y,R,Z,t,X,M,W,z){W=W===void 0?!1:W;z=z===void 0?!1:z;lg.call(this,void 0,void 0,void 0);lg.call(this,X?X+" picker modal-dialog":"picker modal-dialog",!0,R);_.LG(D,"protocol");this.iframeManager_=new aOU;this.targetId_=mm();this.rpcToken_=mm();D=_.qC(D);_.HB(D,"hostId");R=_.HB(D,"parent");this.useGapi_=!z&&!0||(R==null?void 0:R.includes("onepick.corp.google.com"));W&&_.xh(D,"fv2","true");this.setUrl(D.toString());this.preferredDialogWidth_=Z;this.preferredDialogHeight_=t;Z!==void 0||
t!==void 0?Z=!0:(Z=_.HB(_.qC(D.toString()),"hostId"),Mhl||(Mhl=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),Z=!Mhl.has(Z));this.autoSizeDialog_=Z;this.JSC$10159_gadgetsDomHelper_=M||this.JSC$10110_dom_;Y&&(M=this.JSC$10159_gadgetsDomHelper_,Y=_.HB(_.qC(this.JSC$10161_url_),"grugl")=="true"?CDr:Wio,Zq5(M)||(M=M||f0(document),Z=M.createElement("SCRIPT"),_.dg(Z,Y),Z.type="text/javascript",M.JSC$9295_document_.body.appendChild(Z)));
D=D.toString();Y=null;M=D.indexOf("/picker?");M>-1?Y=D.substring(0,M+8-1):u9(D,"/picker")&&(Y=D);Y&&this.setRelayUrl(Y+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(D=this.buttons_,D.JSC$10144_element_=this.buttonEl_,D.render()):_.iT(this.buttonEl_,z2j),_.PB(this.buttonEl_,!!this.buttons_))};
_.IOy=function(D){var Y=Y===void 0?S1j:Y;var R=_.Ey(D),Z=function(X){X=_.a(X);X.next();X=BB(X);return Y(R,X)},t=function(X){var M=_.a(X);
X=M.next().value;M=BB(M);return D.apply(X,M)};
return function(){var X=_.UN.apply(0,arguments),M=this||_.ZU,W=TRM.get(M);W||(W={},TRM.set(M,W));return jEM(W,[this].concat(_.oK(X)),t,Z)}};
pG=function(D){var Y={};D=D.replace(/\r/g,"").split("\n");for(var R=0;R<D.length;R++){var Z=D[R],t=Z.indexOf(":");t<0||(Y[Z.substring(0,t)]=Z.substring(t+2,Z.length))}return Y};
FiU=function(D,Y,R){R=R===void 0?function(){}:R;
return D?Y():R()};
_.Vhb=function(D){var Y;return((Y=GFl.documentOverride)!=null?Y:D).__wizdispatcher};
_.ge=function(D){var Y=EW;EW=D;return Y};
_.e29=function(D){return D===fOn||(D==null?void 0:D.name)==="\u0275NotFound"};
_.de=function(D,Y){var R;if((R=D)==null?0:R.isDisposed)throw Error("jb`"+String(D.debugName));for(;D!==void 0;){R=D;if(R.retrieve)return R.retrieve(Y,{optional:!0});D=D.parent}return fOn};
ig=function(D){return{"\u0275prov":{providedIn:"root",token:Symbol(D),factory:void 0,value:void 0}}};
_.APn=function(D){var Y=EW;if(!Y){switch(D===void 0?3:D){case 0:D=Error("ib");break;case 1:D=Error("kb");break;case 2:D=Error("lb");break;default:D=Error("mb")}throw D;}return Y};
nQy=function(D){var Y=_.ge(D);D={};return D[Symbol.dispose]=function(){_.ge(Y)},D};
rPi=function(D,Y){D.disposables||(D.disposables=[]);D.disposables.push(Y)};
OW=function(D){var Y=EW;Y&&!Y.isDisposed&&(rPi(Y,D),D.parent=Y)};
$sl=function(D){if(D.disposables){for(var Y=_.a(D.disposables),R=Y.next();!R.done;R=Y.next())R=R.value,typeof R==="function"?R():wgj(R);D.disposables.length=0}};
wgj=function(D){if(!D.isDisposed){D.isDisposed=!0;var Y;(Y=D[Symbol.dispose])==null||Y.call(D);delete D.parent;$sl(D)}};
Us5=function(D){var Y={retrieve:function(R){switch(R.\u0275prov.token){case vQl.\u0275prov.token:var Z=D.asyncDeps;break;case _.oQn.\u0275prov.token:Z=D.rootElement;break;case bqb.\u0275prov.token:Z=D.modelRootElement;break;case yPU.\u0275prov.token:Z=D.appContext;break;case NRU.\u0275prov.token:Z=D.rendererData;break;case lOj.\u0275prov.token:Z=D.injectingConstructor;break;case JPj.\u0275prov.token:Z=D.dispatcher}if(Z)R=Z;else a:{for(Z=Y.parent;Z;){var t=Z;if(t.retrieve){R=t.retrieve(R);break a}Z=
Z.parent}Z=R.\u0275prov.token;t=kFy[Z];t!==void 0?R=t:(t=R.\u0275prov.providedIn,R.\u0275prov.factory?(R=R.\u0275prov.factory(),Z&&t==="root"&&(kFy[Z]=R)):R=fOn)}return R}};
OW(Y);return Y};
KiU=function(){var D=_.APn(1),Y=_.de(D,yPU);_.e29(Y)&&(D=_.de(D,JPj),_.e29(D)||D.getOptionalAppContext())};
h25=function(D){if(typeof document!=="undefined"&&document&&document.getElementById&&(D=document.getElementById(D))){var Y=D.tagName.toUpperCase();if(Y=="SCRIPT"||Y=="LINK")return D}return null};
mso=function(D,Y){if((D=D===void 0?"":D)&&Y)throw Error("sb");var R="";var Z=_.ZU._F_jsUrl;(D=Y||h25(D))&&(R=D.src?D.src:D.getAttribute("href"));if(Z&&R){if(Z!=R)throw Error("tb`"+Z+"`"+R);R=Z}else R=Z||R;if(!Lib(R))throw Error("ub");return R};
PD$=function(){if(!q1b){q1b=!0;try{var D=mso(_.ZU._F_jsUrl?"":"base-js")}catch(Z){return}var Y=Hqi(xsi(D)),R=Object.keys(Y);R.length!==0&&dEn(function(Z){for(var t=_.a(R),X=t.next();!X.done;X=t.next()){X=X.value;for(var M=_.a(Object.keys(Y[X])),W=M.next();!W.done;W=M.next())Z.addExtraEdge(X,W.value)}})}};
BR$=function(){var D=Object.assign({},QEy);Object.getOwnPropertyNames(QEy).forEach(function(Y){cB[Y]!==void 0&&(D[Y]=cB[Y])});
return D};
pgl=function(D,Y){if(cB.enablePerformanceTiming){var R,Z;(Z=(R=performance).mark)==null||Z.call(R,D+"Start__"+Y)}};
EQj=function(D,Y){if(cB.enablePerformanceTiming){var R,Z;(Z=(R=performance).measure)==null||Z.call(R,D+"__"+Y,D+"Start__"+Y)}};
gQy=function(D,Y,R){var Z;return D&&Y?D+"__"+Y:(Z=D!=null?D:Y)!=null?Z:R};
iqM=function(D,Y){var R=Object.create(dsU);R.debugName=Y;!EW||OW(R);Y=_.ge(R);try{D(R)}finally{_.ge(Y)}return function(){return void wgj(R)}};
cPU=function(D){return De(D)&&Oq9 in D};
DbU=function(D,Y){return Object.is(D,Y)};
Re=function(D){var Y=Yd;Yd=D;return Y};
Rko=function(D){if(Ze)throw Error("Z");if(Yd!==null){var Y=Yd.producersTail;if(Y===void 0||Y.producer!==D){var R=void 0,Z=Yd.recomputing;if(Z&&(R=Y!==void 0?Y.nextProducer:Yd.producers,R!==void 0&&R.producer===D)){Yd.producersTail=R;R.lastReadVersion=D.version;return}var t=D.consumersTail,X;if(!(X=t===void 0||t.consumer!==Yd)){if(Z){a:{X=Yd;Z=X.producersTail;if(Z!==void 0){X=X.producers;do{if(X===t){Z=!0;break a}if(X===Z)break;X=X.nextProducer}while(X!==void 0)}Z=!1}Z=!Z}X=Z}X&&(Z=tt(Yd),R={producer:D,
consumer:Yd,nextProducer:R,prevConsumer:t,lastReadVersion:D.version,nextConsumer:void 0},Yd.producersTail=R,Y!==void 0?Y.nextProducer=R:Yd.producers=R,Z&&Y95(D,R))}}};
soU=function(D){if(!tt(D)||D.dirty)if(D.dirty||D.lastCleanEpoch!==ZIo)(D.producerMustRecompute(D)||tqM(D))&&D.producerRecomputeValue(D),D.dirty=!1,D.lastCleanEpoch=ZIo};
XmM=function(D){if(D.consumers!==void 0){var Y=Ze;Ze=!0;try{for(var R=D.consumers;R!==void 0;R=R.nextConsumer){var Z=R.consumer;Z.dirty||(D=void 0,Z.dirty=!0,XmM(Z),(D=Z.consumerMarkedDirty)==null||D.call(Z,Z))}}finally{Ze=Y}}};
unb=function(){var D;return((D=Yd)==null?void 0:D.consumerAllowSignalWrites)!==!1};
aL5=function(D){D&&(D.producersTail=void 0,D.recomputing=!0);return Re(D)};
CoS=function(D,Y){Re(Y);if(D){D.recomputing=!1;Y=D.producersTail;var R=Y!==void 0?Y.nextProducer:D.producers;if(R!==void 0){if(tt(D)){do R=Mqj(R);while(R!==void 0)}Y!==void 0?Y.nextProducer=void 0:D.producers=void 0}}};
tqM=function(D){for(D=D.producers;D!==void 0;D=D.nextProducer){var Y=D.producer,R=D.lastReadVersion;if(R!==Y.version)return!0;soU(Y);if(R!==Y.version)return!0}return!1};
Y95=function(D,Y){var R=D.consumersTail,Z=tt(D);R!==void 0?(Y.nextConsumer=R.nextConsumer,R.nextConsumer=Y):(Y.nextConsumer=void 0,D.consumers=Y);Y.prevConsumer=R;D.consumersTail=Y;if(!Z)for(D=D.producers;D!==void 0;D=D.nextProducer)Y95(D.producer,D)};
Mqj=function(D){var Y=D.producer,R=D.nextProducer,Z=D.nextConsumer,t=D.prevConsumer;D.nextConsumer=void 0;D.prevConsumer=void 0;Z!==void 0?Z.prevConsumer=t:Y.consumersTail=t;if(t!==void 0)t.nextConsumer=Z;else if(Y.consumers=Z,!tt(Y))for(D=Y.producers;D!==void 0;)D=Mqj(D);return R};
tt=function(D){return D.consumerIsAlwaysLive||D.consumers!==void 0};
zkb=function(D){var Y=Object.create(WyU);Y.computation=D;D=function(){soU(Y);Rko(Y);if(Y.value===sU)throw Y.error;return Y.value};
D[XD]=Y;return D};
IL$=function(D,Y){var R=Object.create(S9U);R.value=D;Y!==void 0&&(R.equal=Y);D=function(){Rko(R);return R.value};
D[XD]=R;return[D,function(Z){return TIi(R,Z)},
function(Z){unb()||joS(R);TIi(R,Z(R.value))}]};
TIi=function(D,Y){unb()||joS(D);if(!D.equal(D.value,Y)){D.value=Y;D.version++;ZIo++;XmM(D);var R;(R=Fyi)==null||R(D)}};
uM=function(D){var Y=Re(null);try{return D()}finally{Re(Y)}};
_.ae=function(D,Y,R){R=R===void 0?"":R;D=IL$(D,Y==null?void 0:Y.equals);var Z=D[0],t=Z[XD];t.debugName=gQy(Y==null?void 0:Y.debugName,R,"[signal]");if(!cB.enablePerformanceTiming)return D;var X=D[1],M=D[2];return[Z,function(W){Gzi(function(){return void X(W)},t)},
function(W){Gzi(function(){return void M(W)},t)}]};
Gzi=function(D,Y){pgl("signalSet",Y.debugName);try{D()}finally{EQj("signalSet",Y.debugName)}};
fLj=function(D,Y){var R=_.a(_.ae(D,void 0,"cPpJzc"));D=R.next().value;R=R.next().value;D[Vqj]=R;D[Ma]=Y;return D};
ekM=function(D){return!!D&&typeof D==="object"&&Object.getPrototypeOf(D)===Object.prototype};
Akj=function(D){return typeof D==="function"&&Vqj in D&&typeof D[Vqj]==="function"};
nNn=function(D,Y){Object.defineProperty(D,Ma,{get:function(){return Y}})};
W_=function(D,Y){if(C4(D)){var R=D.map(function(X){return W_(X,Y)});
nNn(R,Y);return R}if(ekM(D)){R={};D=_.a(Object.entries(D));for(var Z=D.next();!Z.done;Z=D.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;R[Z]=W_(t,Y)}nNn(R,Y);return R}return fLj(D,Y)};
rkU=function(D){if(C4(D))return D.map(function(t){return rkU(t)});
if(ekM(D)){var Y={};D=_.a(Object.entries(D));for(var R=D.next();!R.done;R=D.next()){var Z=_.a(R.value);R=Z.next().value;Z=Z.next().value;Y[R]=rkU(Z)}return Y}return Akj(D)?D():D};
$bo=function(){var D={height:0,width:0};if(!ekM(D))throw Error("Gb");var Y=Symbol("Hb");return[W_(D,Y),function(R,Z){if(R[Ma]===Y)if(typeof Z==="function"){var t=[].concat(_.oK(rkU(R)));Z=Z(t)||t;wmr(R,[].concat(_.oK(Z)))}else wmr(R,Z);else throw Error("Ib");}]};
wmr=function(D,Y){if(Akj(D))D[Vqj](Y);else if(C4(D)&&C4(Y))Y=W_(Y,D[Ma]),D.length=0,D.push.apply(D,_.oK(Y));else if((ekM(D)||C4(D))&&(C4(Y)||typeof Y==="object"&&Y!==null)){Y=_.a(Object.entries(Y));for(var R=Y.next();!R.done;R=Y.next()){var Z=_.a(R.value);R=Z.next().value;Z=Z.next().value;var t=D,X=t[R];Object.hasOwn(D,R)?wmr(X,Z):t[R]=W_(Z,D[Ma])}}else throw Error("Jb");};
vNM=function(D){return Object.create(Object.assign({},zk,D))};
bIb=function(){var D;return(D=oN$)!=null?D:oN$=vNM({consumerAllowSignalWrites:!0})};
_.Si=function(D,Y,R){R=R===void 0?"":R;D=zkb(D);var Z=D[XD];Z.debugName=gQy(Y==null?void 0:Y.debugName,R,"[computed]");(Y==null?void 0:Y.equals)!=null&&(Z.equal=Y.equals);return D};
Tk=function(D){var Y=Re(ykr);try{D()}finally{Re(Y)}};
Kyr=function(D){if(!D.isDisposed)switch(D.effectType){case ji:NIU.schedule(D);break;case lLi:Jkl.schedule(D);break;case kzS:Ub5.schedule(D);break;default:_.qU(D.effectType)}};
LyS=function(D){hkn.push(D);return function(){var Y=hkn.indexOf(D);Y!==-1&&hkn.splice(Y,1)}};
q9U=function(){if(Ie>0)cB.flushRenderEffectsDuringRender&&NIU.flush();else for(var D=_.a(mbj),Y=D.next();!Y.done;Y=D.next())Y.value.flush()};
xbU=function(D){FD=!0;try{for(var Y=_.a(D),R=Y.next();!R.done;R=Y.next()){for(var Z=R.value,t=[Z],X=Z;X.parent!==void 0;)X=X.parent,HI5(X)&&D.has(X)&&t.push(X);for(;t.length>0;){var M=t.pop();D.delete(M);M.run()}}}finally{FD=!1}};
Gk=function(D){Ie--;if(D){D=_.a(mbj);for(var Y=D.next();!Y.done;Y=D.next())Y.value.clear()}else Ie>0||FD&&!cB.flushRenderEffectsDuringRender||q9U()};
Qoj=function(D,Y,R){var Z=Poi(D);VE={name:R?Z+" ("+R+")":Z,isReactive:D.componentType!==f4,parent:VE};D=Y();VE=VE.parent;return D};
ei=function(){var D=VE;return D?D.isReactive:!1};
n4=function(D,Y,R){var Z=VE;Y&&(VE=Y);try{return R==null?D():D.call(R)}catch(X){D=X;At(D,VE);if(D!==BIU){pmi=VE;Y=[];for(R=EW;R;){var t=void 0;Y.push((t=R.debugName)!=null?t:"[context]");t=void 0;R=(t=R.parent)!=null?t:null}EN9=Y.reverse()}BIU=D;throw D;}finally{VE=Z}};
At=function(D,Y){try{var R=gNr(Y);if(R&&!D.componentStack&&(D.componentStack=R,cB.enableComponentStacksInErrorMessages)){var Z=D.message+"\n\nComponent stack: "+R;D.stack&&(D.stack=D.stack.replace(D.message,Z));D.message=Z}}catch(t){}};
gNr=function(D){if(De(D)&&D.name!==void 0&&D.isReactive!==void 0&&D.parent!==void 0||D===null){for(var Y=0,R="";Y<20&&D;)R+=D.name+" > ",D=D.parent,Y++;D=R.slice(0,-3)}else if(cB.enableContextBasedComponentStacks){a:{for(D=D===void 0?EW:D;D;){if(cPU(D))break a;Y=void 0;D=(Y=D.parent)!=null?Y:null}D=null}D=D.getComponentStack().slice(0,20).join(" > ")}else D="";return D};
Poi=function(D){return D.debugName||D.name||"[component]"};
db5=function(D,Y,R){Y=Object.create(Y);D&&(Y.effectFn=D);R&&(Y.debugName=R);OW(Y);Y.componentStack=VE;return Y};
_.r2=function(D,Y){D=db5(D,iIM,Y);Kyr(D)};
_.w2=function(D){var Y=EW;if(Y){var R=VE;rPi(Y,function(){var Z=Re(bIb());try{n4(function(){return void D()},R)}catch(t){throw cB.enableContextBasedComponentStacks&&At(t),t;
}finally{Re(Z)}})}};
$d=function(D,Y){var R={};(Y===void 0||Y)&&OW(R);Y=_.ge(R);try{D(R)}finally{_.ge(Y)}return function(){return void wgj(R)}};
_.v_=function(D){return typeof D==="function"?D():(D==null?0:D[OIU])?D.get():D};
_.oe=function(D,Y){D=db5(D,ckU,Y);Kyr(D)};
D7$=function(D){if(EW)throw Error("nb");$d(D,!1)};
bM=function(D,Y){D=_.ge(D);try{return uM(Y)}finally{_.ge(D)}};
yE=function(D,Y){var R=gNr(pmi),Z,t;var X=(t=(Z=EN9)==null?void 0:Z.slice())!=null?t:[];Y={componentStack:R,contextTrace:X,errorSeverity:3,featureFlags:BR$(),tagName:Y};return[D,Y]};
ZFM=function(D,Y,R){if(Object.hasOwnProperty.call(Yw$,D)&&(D=Yw$[D],Object.hasOwnProperty.call(D,Y)&&(D=D[Y],D instanceof Array))){for(var Z=null,t=!1,X=0,M=D.length;X<M;++X){var W=D[X],z=W.contingentAttribute;if(!z)return W.contract;Z===null&&(Z={});z=Object.hasOwnProperty.call(Z,z)?Z[z]:Z[z]=R(z);if(z===W.requiredValue)return W.contract;z==null&&(t=!0)}if(t)return null}Y=RMU[Y];return typeof Y==="number"?Y:null};
Xyb=function(D,Y,R){var Z=null;(D=tYS[D])&&(Z=D[Y]);return typeof Z!=="number"&&((D=tYS["*"])&&(Z=D[Y]),typeof Z!=="number")?!1:!0===sDS[Z][String(R).toLowerCase()]};
aqn=function(D,Y){Y=ZFM(D.toLowerCase(),Y,function(){var Z;(Z=cB.handleError)==null||Z.call.apply(Z,[cB].concat(_.oK(yE(Error("Ob"),D.toLowerCase()))))});
if(Y===null)return null;var R;return(R=uoo[Y])!=null?R:null};
MYj=function(D,Y,R){if(R===null||R===void 0)return R;Y=Y.toLowerCase();D=aqn(D,Y);return D===null?R:D(Y,R)};
Cyo=function(){};
Na=function(D,Y){for(;D.length>Y;)D.pop()};
WBU=function(D){D=Array(D);Na(D,0);return D};
Jt=function(D,Y,R){if(R==null)D.removeAttribute(Y);else{var Z;(Z=Y.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":Y.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?D.setAttributeNS(Z,Y,R):D.setAttribute(Y,R)}};
zMn=function(D,Y,R){D[Y]=R};
TuU=function(D,Y,R){D=D.style;if(typeof R==="string")D.cssText=R;else{D.cssText="";for(var Z in R)if(Swi.call(R,Z)){Y=D;var t=Z,X=R[Z];t.indexOf("-")>=0?Y.setProperty(t,X):Y[t]=X}}};
jDn=function(D,Y,R){var Z=typeof R;Z==="object"||Z==="function"?D[Y]=R:Jt(D,Y,R)};
IqU=function(){var D=new Cyo;D[kd.default]=jDn;D.style=TuU;return D};
FBb=function(D,Y,R,Z){(Z[Y]||Z[kd.default])(D,Y,R)};
VY9=function(D,Y,R){Y=new GyM(Y,R);return D.__incrementalDOMData=Y};
UU=function(D,Y){if(D.__incrementalDOMData)return D.__incrementalDOMData;var R=D.nodeType===1?D.localName:D.nodeName,Z=D.nodeType===1?D.getAttribute("key"):null;Y=VY9(D,R,D.nodeType===1?Z||Y:null);if(D.nodeType===1&&(D=D.attributes,R=D.length)){Z=Y._attrsArr||(Y._attrsArr=WBU(R*2));for(var t=0,X=0;t<R;t+=1,X+=2){var M=D[t],W=M.value;Z[X]=M.name;Z[X+1]=W}}return Y};
fqy=function(D,Y,R,Z,t){return Y==R&&Z==t};
eMr=function(D){for(var Y=L4,R=mg();R!==D;){var Z=R.nextSibling;Y.removeChild(R);qa.deleted.push(R);R=Z}};
mg=function(){return H_?H_.nextSibling:L4.firstChild};
xd=function(){H_=mg()};
rN9=function(D,Y,R){xd();var Z;a:{if(Z=H_){do{var t=Z,X=D,M=Y,W=UU(t,M);if(ANl(t,X,W.nameOrCtor,M,W.key))break a}while(Y&&(Z=Z.nextSibling))}Z=null}Z||(D==="#text"?(R=P_.createTextNode(""),VY9(R,"#text",null),D=R):(Z=P_,t=L4,typeof D==="function"?Z=new D:Z=(t=D==="svg"?"http://www.w3.org/2000/svg":D==="math"?"http://www.w3.org/1998/Math/MathML":t==null||UU(t).nameOrCtor==="foreignObject"?null:t.namespaceURI)?Z.createElementNS(t,D):Z.createElement(D),VY9(Z,D,Y),D=Z,R&&D.setAttribute("nonce",R)),qa.created.push(D),
Z=D);R=Z;if(R!==H_){if(nMy.indexOf(R)>=0)for(D=L4,Y=R.nextSibling,Z=H_;Z!==null&&Z!==R;)t=Z.nextSibling,D.insertBefore(Z,Y),Z=t;else L4.insertBefore(R,H_);H_=R}};
wyi=function(D,Y,R){rN9(D,Y,R);L4=H_;H_=null;return L4};
$7$=function(){eMr(null);H_=L4;L4=L4.parentNode};
vM5=function(){H_=L4.lastChild};
yNb=function(D,Y){Y=Y===void 0?{}:Y;var R=Y.matches===void 0?fqy:Y.matches;return function(Z,t,X){var M=qa,W=P_,z=nMy,I=QE,F=B_,G=H_,V=L4,e=ANl;P_=Z.ownerDocument;qa=new oMi(Z);ANl=R;QE=[];B_=[];H_=null;var r=L4=Z.parentNode,l,U=bFU.call(Z);if((l=U.nodeType===11||U.nodeType===9?U.activeElement:null)&&Z.contains(l)){for(U=[];l!==r;)U.push(l),l=l.parentNode||(r?l.host:null);r=U}else r=[];nMy=r;try{return D(Z,t,X)}finally{Z=qa,p4&&Z.deleted.length>0&&p4(Z.deleted),P_=W,qa=M,ANl=e,QE=I,B_=F,H_=G,L4=V,
nMy=z}}};
Nul=function(D,Y,R,Z){EU.push(FBb);EU.push(D);EU.push(Y);EU.push(R);EU.push(Z)};
JN9=function(D,Y,R){var Z=B_;Y=Y._attrsArr||(Y._attrsArr=WBU(Z.length));for(var t=!Y.length||!1,X=0;X<Z.length;X+=2){var M=Z[X];if(t)Y[X]=M;else if(Y[X]!==M)break;var W=Z[X+1];if(t||Y[X+1]!==W)Y[X+1]=W,Nul(D,M,W,R)}if(X<Z.length||X<Y.length){for(X=t=X;X<Y.length;X+=2)g2[Y[X]]=Y[X+1];for(X=t;X<Z.length;X+=2)t=Z[X],M=Z[X+1],g2[t]!==M&&Nul(D,t,M,R),Y[X]=t,Y[X+1]=M,delete g2[t];Na(Y,Z.length);for(var z in g2)Nul(D,z,void 0,R),delete g2[z]}D=lqM;lqM=R=EU.length;for(z=D;z<R;z+=5)(0,EU[z])(EU[z+1],EU[z+
2],EU[z+3],EU[z+4]);lqM=D;Na(EU,D);Na(Z,0)};
kyb=function(D){rN9("#text",null);var Y=H_;var R=UU(Y);if(R.text!==D){R=R.text=D;for(var Z=1;Z<arguments.length;Z+=1)R=(0,arguments[Z])(R);Y.data!==R&&(Y.data=R)}};
HFo=function(D,Y,R){if(R===!1&&U75.has(Y))Jt(D,Y,null);else if(Y!=="idomKey"&&Y!=="skip"&&Y!=="skipchildren"&&Y!=="children"&&Y!=="el")if(Y.startsWith("on")){if(Y[2]!==":")throw Error("Nb`"+Y);if(R===void 0||R===null){var Z;(Z=cB.handleError)==null||Z.call.apply(Z,[cB].concat(_.oK(yE(Error("Sb`"+Y),D.tagName))));D[Y]=void 0}else{var t=Y.slice(3);Z=ei();if(t==="jsaction"){R=Array.isArray(R)?R:[R];R=_.a(R);for(var X=R.next();!X.done;X=R.next()){X=X.value;if(typeof X!=="object"||X===null||typeof X.selfReg!==
"function")throw Error("Vb`"+Y);X.selfReg(0,D,Z?_.w2:function(){})}}else{if(typeof R!=="object"||R===null)throw Error("Tb`"+Y+"`"+typeof R);
if(typeof R.getFn!=="function")throw Error("Ub`"+Y+"`"+Object.keys(R));if(R.selfReg)R.selfReg(0,D,t,Z?_.w2:function(){});
else if(Z&&D["on"+t]===void 0){var M=R.getFn(0);D.addEventListener(t,M);_.w2(function(){return void D.removeEventListener(t,M)})}else if(Z||!KBj.includes(t))D["on"+t]=R.getFn(0)}}}else{if(Y.startsWith("data-")&&typeof R==="string")try{R=hM$(R)}catch(W){R="zSoyz"}typeof R!=="function"||D._disposeEffects!=null?((Z=Y.startsWith("prop:"))&&(Y=Y.slice(5)),cB.enableAttributeSanitization&&(Z&&LBb(D.tagName)||(R=MYj(D.tagName,Y,R))),Y==="style"?("function"==typeof _.d2&&R instanceof _.d2&&(R=R.toString()),
m7l(D,Y,R)):Z?D[Y]=R:qwM(D,Y,R)):(D._signalProps||(D._signalProps=[]),D._signalValues||(D._signalValues=[]),D._signalProps.push(Y))}};
x7M=function(D,Y,R){R=(R===void 0?{}:R).isReactive;if(Y==null?0:Y.el){var Z=Y.el;if(typeof Z==="function")Z(D);else{var t;(t=Z.onRender)==null||t.call(Z,D);D._disposeRef||(D._disposeRef=function(){var X;(X=Z.onUnmount)==null||X.call(Z);delete D._disposeRef},R&&_.w2(function(){var X;
(X=D._disposeRef)==null||X.call(D)}))}}};
LBb=function(D){return D.length>0&&D.includes("-")&&!Pyl.includes(D.toLowerCase())};
QD5=function(D){return De(D)&&iM in D};
BuU=function(D){return QD5(D)?D[iM].flattened:D};
pyM=function(D,Y){var R=_.UN.apply(2,arguments),Z;Y=(Z=Y)!=null?Z:{};Z={};return Z.type=D,Z.props=Y,Z.children=R,Z[OU]=!0,Z};
_.c_=function(D){return D.children};
D1=function(D){var Y=EMj!==pyM;EMj=D?gM9:pyM;return Y};
_.Ys=function(D){return _.Bo(D)?"nodeType"in D:!1};
Rp=function(){return document.createTextNode("")};
Z1=function(D){D=document.createTextNode(String(D));D._isSignalTextNode=!0;return D};
iFb=function(D){return D!=null&&D.contentKind===tQ||D instanceof mS||d79(D)};
OFl=function(D){var Y=document.createElement("div");if(d79(D)&&Cxj(D))_.iT(Y,Cxj(D));else if(D instanceof mS)_.iT(Y,D);else if(D!=null&&D.contentKind===tQ){if(D.contentKind!==tQ)throw Error("Rb");D=qy(D.toString());_.iT(Y,D)}D=_.a(Y.childNodes);for(var R=D.next();!R.done;R=D.next())R.value._isSafeOrSanitizedHtmlNode=!0;return Y};
s3=function(D){D=typeof D;return D==="string"||D==="number"||D==="boolean"};
cNU=function(D){return D instanceof ef||vZ(D)||D instanceof Dd||"function"==typeof _.d2&&D instanceof _.d2};
DAU=function(D,Y){var R=D.parentElement;if(!R)return Y;R.replaceChild(Y,D);return Y};
Ydy=function(D,Y){var R=D[0].parentElement;if(R)if(D[0].previousSibling||D[D.length-1].nextSibling){R.insertBefore(Y,D[0]);for(var Z=D.length-1;Z>=0;Z--)R.removeChild(D[Z])}else R.textContent="",R.appendChild(Y);return Y};
Ro5=function(D,Y){if(D[0].parentElement)for(var R=D[0].parentElement,Z=Y.length,t=D.length,X=Z,M=0,W=0,z=D[t-1].nextSibling,I=null;M<t||W<X;)if(D[M]===Y[W])M++,W++;else{for(;D[t-1]===Y[X-1];)t--,X--;if(t===M)for(var F=X<Z?W?Y[W-1].nextSibling:Y[X-W]:z;W<X;){var G=Y[W++];R.insertBefore(G,F)}else if(X===W)for(;M<t;)F=D[M],I&&I.has(F)||R.removeChild(F),M++;else if(D[M]===Y[X-1]&&Y[W]===D[t-1])F=D[--t].nextSibling,R.insertBefore(Y[W++],D[M++].nextSibling),R.insertBefore(Y[--X],F),D[t]=Y[X];else{if(!I)for(I=
new Map,F=W;F<X;)I.set(Y[F],F++);F=I.get(D[M]);if(F==null)R.removeChild(D[M]),M++;else if(W<F&&F<X){G=M;for(var V=1,e=void 0;++G<t&&G<X&&(e=I.get(D[G]))!=null&&e===F+V;)V++;if(V>F-W)for(G=D[M];W<F;)R.insertBefore(Y[W++],G);else R.replaceChild(Y[W++],D[M++])}else M++}}return Y};
tPb=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("dc`"+D.length+"`"+D.map(Z2y).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof _.p$)){var Y,R;if((Y=window)==null?0:(R=Y.trustedTypes)==null?0:R.isScript(D))throw Error("cc");if(String(D).trim().length===0)return null;throw Error("ec`"+Z2y(D));}return D};
sRb=function(D,Y){Y=tPb(Y);Y!==null&&_.gg(D,Y)};
XOU=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("fc`"+D.length+"`"+D.map(Z2y).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof Dd)){if(String(D).trim().length===0)return null;throw Error("gc`"+Z2y(D));}return D};
u39=function(D,Y){Y=XOU(Y);Y!==null&&(D.textContent=MX5(Y))};
Z2y=function(D){return"("+typeof D+") "+(D!=null&&typeof D==="object"?D.constructor.name:typeof D)+" "+D};
aa9=function(){};
MJ=function(D,Y){Y=Y===void 0?{}:Y;var R=MPy();cB.legacyTriggerSoyRendererEvents&&KiU();_.oe(function(){XP.setUp();Y.isControlFlowComponent&&Ie++;var Z=R[0],t=R[iM].flattened,X=D1(!0);try{var M=D(),W=ClU(Z,M,R);Array.isArray(W)||(R[iM].flattened=[W]);var z=R[iM].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var I=Array.isArray(t)?t[0]:t,F=I[ap],G=I._disposeEffects;I._disposeEffects=void 0;I=Array.isArray(z)?z[0]:z;I[ap]=F;I[ap]&&(I[ap].numNodes=I===z?1:z.length);I._disposeEffects=G}R[0]=W;Y.isControlFlowComponent&&
Gk(!1)}catch(V){throw Y.isControlFlowComponent&&Gk(!0),V;}finally{D1(X),XP.tearDown()}},Y.debugName);
return R};
ClU=function(D,Y,R){for(;typeof Y==="function";)Y=Y();if(Y!=null&&Y[OU]){var Z,t,X;(X=cB.handleError)==null||X.call.apply(X,[cB].concat(_.oK(yE(Error("hc`"+((Z=Y.type)==null?void 0:Z.TAG_NAME)),(t=Y.type)==null?void 0:t.TAG_NAME))))}if(D==null)return Y==null?Rp():s3(Y)?Z1(Y):cNU(Y)?Z1(Y.toString()):_.Ys(Y)?Y:Y.length===0?Rp():WUo(Y,R);if(_.Ys(D)){if(Y==null)return DAU(D,Rp());if(s3(Y))return zob(D,Y);if(cNU(Y))return zob(D,Y.toString());if(_.Ys(Y))return DAU(D,Y);if(Y.length===0)return DAU(D,Rp());
Y=WUo(Y,R);Ro5([D],R[iM].flattened);return Y}D=Cb(D);if(Y==null)return Ydy(D,Rp());if(s3(Y))return Ydy(D,Z1(Y));if(cNU(Y))return Ydy(D,Z1(Y.toString()));if(_.Ys(Y))return Ro5(D,[Y])[0];if(Y.length===0)return Ydy(D,Rp());Y=WUo(Y,R);Ro5(D,R[iM].flattened);return Y};
zob=function(D,Y){D.nodeType===Node.TEXT_NODE?D.textContent!==String(Y)&&(D.textContent=String(Y)):D=DAU(D,Z1(Y));return D};
Cb=function(D,Y,R){return Sdr(D,Y!=null?Y:[],R===void 0?!1:R)};
WUo=function(D,Y){var R=Cb(D,void 0,!0);if(R.length===0)return Rp();Y[iM].flattened=R;return D};
Sdr=function(D,Y,R,Z,t){Y=Y===void 0?[]:Y;R=R===void 0?!1:R;t=t===void 0?-1:t;if(D==null)return Y;if(D instanceof WD){var X=D.render();return Sdr(X,Y,R,Z,t)}if(_.Ys(Y)&&Y.nodeType===Node.ELEMENT_NODE)switch(Y.tagName){case "SCRIPT":sRb(Y,D);return;case "STYLE":u39(Y,D);return}s3(D)&&(D=Z1(D),Z&&R&&(Z[t]=D));if(iFb(D)){R=OFl(D);R=Array.from(R.childNodes);R=_.a(R);for(X=R.next();!X.done;X=R.next())TZU(Y,X.value);return Y}cNU(D)&&(D=Z1(D.toString()),Z&&R&&(Z[t]=D));if(_.Ys(D))return TZU(Y,D);if(Array.isArray(D)){for(X=
0;X<D.length;X++)Sdr(D[X],Y,R,D,X);return Y}if(typeof D==="function"){X=MJ(function(){var W=D();return W!=null&&!s3(W)&&iFb(W)?(W=OFl(W),Array.from(W.childNodes)):W},{debugName:"qmF2ne",
debugFn:D})[0];if(Array.isArray(X)){R=_.a(X);for(X=R.next();!X.done;X=R.next())TZU(Y,X.value);return Y}Z&&R&&(Z[t]=X);return TZU(Y,X)}if(D!=null&&D[OU]){Z=D;t=D1(!0);var M=EMj;try{X=M.apply(null,[Z.type,Z.props].concat(_.oK(Z.children)))}finally{D1(t)}return Sdr(X,Y,R)}(M=cB.handleError)==null||M.call.apply(M,[cB].concat(_.oK(yE(Error("ic")))));return Y};
MPy=function(D){var Y={};Y=Object.assign([],(Y[iM]={flattened:[]},Y));if(!D)return Y;Y[0]=WUo(D,Y);return Y};
TZU=function(D,Y){Array.isArray(D)?D.push(Y):D.appendChild(Y);return D};
z6=function(D){if(!cB.enableLazyTsx)return D;if(Array.isArray(D)){for(var Y=0;Y<D.length;Y++)D[Y]=z6(D[Y]);return D}return D instanceof WD?(D=D.render(),z6(D)):D};
Ian=function(D,Y){var R,Z,t=Poi(D),X=function(e){Z=e;e=D1(!0);var r=Re(Sj);pgl("render",t);try{R=z6(D(Y))}finally{EQj("render",t),Re(r),D1(e)}};
X=cB.enableContextPerComponent?iqM(X,t):$d(X,cB.alwaysTrackContexts||!!EW);cPU(Z);if(!Y.renderedFromIdom){var M=_.ge(Z);try{return jRo(D,Y,R),R}finally{_.ge(M)}}!QD5(R)&&Array.isArray(R)&&(R=MPy(R));var W=BuU(R);M=Array.isArray(W)?W[0]:W;var z=!1;if(M){var I,F=(I=Y==null?void 0:Y.idomKey)!=null?I:D;I=W!==M;M._disposeEffects=X;var G=M[ap]||{},V=QD5(R)?R:G.sourceDynamicRange;Object.assign(G,{key:F,numNodes:I?W.length:1,context:Z,higherOrder:!!M[ap],sourceDynamicRange:V});M[ap]=G}else z=!0;(function(){var e=
_.ge(Z);try{jRo(D,Y,W)}finally{_.ge(e)}})();
z&&X();return R};
FUU=function(D){var Y={},R;for(R in D)Y={prev$jscomp$23:void 0,next$jscomp$33:void 0},Y.prev$jscomp$23=T6[R],Y.next$jscomp$33=D[R],T6[R]=function(Z){return function(){var t=_.UN.apply(0,arguments);Z.prev$jscomp$23.apply(null,_.oK(t));Z.next$jscomp$33.apply(null,_.oK(t))}}(Y)};
GKM=function(){if(ei())throw Error("jc");return jj};
VPb=function(D,Y){if(!D.__unmounted&&Y){D.__unmounted=!0;try{D.didUnmount()}catch(t){var R,Z;(Z=cB.handleError)==null||Z.call.apply(Z,[cB].concat(_.oK(yE(t,(R=D.__type)==null?void 0:R.TAG_NAME))))}T6.didUnmount(D);D.el=null;Y.__instance&&delete Y.__instance}};
eoU=function(D,Y,R){D._signalProps!=null&&D._disposeEffects==null&&((R===void 0?0:R)?D._disposeEffects=$d(function(){return void faS(D,Y)},cB.alwaysTrackContexts||!!EW):faS(D,Y))};
faS=function(D,Y){_.oe(function(){for(var R=D._signalProps,Z=D._signalValues,t=0;t<R.length;t++){var X=R[t],M=Y[X]();Z[t]!==M&&(Z[t]=M,HFo(D,X,M))}},"e3YVbb")};
A59=function(D,Y,R){var Z,t=[];D._disposeEffects=$d(function(){_.oe(function(){var X=R();if(X===null||X===void 0)X="";if(s3(X)||X===null)Z!=null||(Z=document.createTextNode("")),Z.parentNode!==D&&(Z._isSignalTextNode=!0,D.insertBefore(Z,Y)),Z.textContent=String(X);else if(iFb(X)){for(var M=t.length>0?t[t.length-1].nextSibling:Y,W=_.a(t),z=W.next();!z.done;z=W.next())D.removeChild(z.value);X=OFl(X);t=Array.from(X.childNodes);X=_.a(t);for(W=X.next();!W.done;W=X.next())D.insertBefore(W.value,M)}else throw z=
(W=(M=VE)==null?void 0:M.name)!=null?W:"unknown",Error("Zb`"+z+"`"+typeof X);},"VvDgC")},cB.alwaysTrackContexts||!!EW)};
wOo=function(D,Y){var R=_.UN.apply(2,arguments);Y!=null||(Y={});return!cB.enableLazyTsx||VE!=null&&!ei()?nF5(D,Y,R):new r59(D,Y,R)};
nF5=function(D,Y,R){if(D===_.c_)return R;if(typeof D==="function")return VE&&!ei()&&(Y.renderedFromIdom=!0),Qoj(D,function(){var X=$AM(D,Y,R);if(X)return X;R.length>0&&(Y.children=R.length===1?R[0]:R);if(D.componentType===f4){var M;iqM(function(){var W=Y;if(D.componentType!==f4)M=!1;else{W||(W={});var z=new Ip(W,D),I=Re(Sj);try{var F=z.render(W)}finally{Re(I)}F instanceof HTMLElement?(F.__instance=z,z.el=F,z.__type=D,D.TAG_NAME=F.tagName.toLowerCase(),T6.didPatch(z),M=F):M=F}},D.name);
if(M)return M}return Ian(D,Y)},Y.debugInstance);
var Z=vFj(D,Y),t;for(t in Y)HFo(Z,t,Y[t]);eoU(Z,Y);Cb(R,Z);x7M(Z,Y,{isReactive:!0});oFo(Z,Y);return Z};
vFj=function(D,Y){D=(b2S.has(D.toLowerCase())?0:y5M.has(D.startsWith("svg:")?D.replace("svg:",""):D))?document.createElementNS("http://www.w3.org/2000/svg",D.startsWith("svg:")?D.replace("svg:",""):D):NZS(D,Y)||document.createElement(D);D[la5]=!0;return D};
J5U=function(D){if(D){var Y;(Y=D._disposeRef)==null||Y.call(D);var R;(R=D._disposeEffects)==null||R.call(D);D.__instance&&D.__instance instanceof FP&&(Y=D.__instance,VPb(Y,D),Y instanceof Ip&&Y.disposeEffects());for(Y=0;Y<D.childNodes.length;Y++)J5U(D.childNodes[Y])}};
UAi=function(D){kK9.push(D)===1&&requestAnimationFrame(function(){setTimeout(function(){var Y=[].concat(_.oK(kK9));kK9=[];Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;try{for(var Z=0;Z<R.length;Z++)J5U(R[Z])}catch(t){Z=R=void 0,(Z=(R=cB).handleError)==null||Z.call.apply(Z,[R].concat(_.oK(yE(t))))}}})})};
_.S=function(D,Y){return EMj.apply(null,[D,Y].concat(_.oK(_.UN.apply(2,arguments))))};
KUl=function(D,Y){Y=Y===void 0?new Map:Y;D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,!Y.has(R)){for(var Z=[],t=R.producers;t!==void 0;t=t.nextProducer)Z.push(t.producer);Y.set(R,Z);KUl(Z,Y)}return Y};
_.T=function(D){var Y=D.cond;if(Y===void 0)return D.else&&D.else();var R=_.Si(function(){return!!Y()},void 0,"JHVi8"),Z=function(){var t=Y();
if(!t){var X;(X=cB.handleError)==null||X.call.apply(X,[cB].concat(_.oK(yE(hoU.nonNullableCondIsNull()))))}return t};
return MJ(function(){var t=R(),X;$d(function(){var M=Re(Sj);try{X=z6(t?D.then(Z):D.else&&D.else())}finally{Re(M)}},!0);
return X},{debugName:D.debugInstance,
debugFn:D.then,isControlFlowComponent:!0})};
LUr=function(D){return _.T(D)};
_.G6=function(D){return D.keyBy==="INDEX"?mA5(D):qdl(D)};
H2r=function(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){var R=void 0;(R=Y.value)==null||R()}};
qdl=function(D){var Y=D.keyBy===void 0||D.keyBy==="REFERENCE",R=Y?function(F){return F}:D.keyBy,Z=[],t=[],X=[],M=[],W=[],z=[],I=!0;
_.w2(function(){H2r(M)});
return MJ(function(){var F=D.each(),G=F.length;if(G===0){if(Z.length===0&&!I)return X;H2r(M);Z=F;t=[];for(F=0;F<Z.length;F++)t.push(R(Z[F]));X=[];M=[];W=[];z=[];D.fallback&&(M[0]=xAS(function(){X[0]=z6(D.fallback())}));
I=!1;return X}for(var V=new PlU,e=Z.length-1;e>=0;e--)V.push(t[e],e);e=Array(G);for(var r=Array(G),l=Array(G),U=Array(G),K=Array(Y?0:G),H={i$jscomp$445:0};H.i$jscomp$445<G;H={i$jscomp$445:H.i$jscomp$445,item$jscomp$104:void 0,key$jscomp$550:void 0},H.i$jscomp$445++){H.item$jscomp$104=F[H.i$jscomp$445];H.key$jscomp$550=R(H.item$jscomp$104);var c=V.pop(H.key$jscomp$550);c!=null?(l[H.i$jscomp$445]=X[c],r[H.i$jscomp$445]=t[c],e[H.i$jscomp$445]=M[c],U[H.i$jscomp$445]=W[c],Y||(K[H.i$jscomp$445]=z[c]),Tk(function(Q){return function(){U[Q.i$jscomp$445](Q.i$jscomp$445);
if(!Y)K[Q.i$jscomp$445](Q.item$jscomp$104)}}(H)),delete M[c]):e[H.i$jscomp$445]=xAS(function(Q){return function(){var E=_.a(_.ae(Q.i$jscomp$445,void 0,"Fqk1zd")),B=E.next().value;
E=E.next().value;U[Q.i$jscomp$445]=E;r[Q.i$jscomp$445]=Q.key$jscomp$550;if(Y)l[Q.i$jscomp$445]=z6(D.children(Q.item$jscomp$104,B));else{var O=_.a(_.ae(Q.item$jscomp$104,void 0,"GBj5de"));E=O.next().value;O=O.next().value;K[Q.i$jscomp$445]=O;l[Q.i$jscomp$445]=z6(D.children(E,B))}}}(H))}H2r(M);
Z=F;t=r;X=l;M=e;W=U;z=K;I=!1;return l},{debugName:D.debugInstance,
debugFn:D.each,isControlFlowComponent:!0})};
mA5=function(D){var Y=[],R=[],Z=[],t=[],X=!1;_.w2(function(){for(var M=_.a(t),W=M.next();!W.done;W=M.next())W=W.value,W()});
return MJ(function(){var M=D.each();X&&M.length>0&&(t.pop()(),Y.pop(),X=!1);for(var W=Array(M.length),z={i$jscomp$446:0};z.i$jscomp$446<M.length;z={i$jscomp$446:z.i$jscomp$446},z.i$jscomp$446++)if(z.i$jscomp$446<Y.length)Y[z.i$jscomp$446]!==M[z.i$jscomp$446]&&(Tk(function(F){return function(){return void R[F.i$jscomp$446](M[F.i$jscomp$446])}}(z)),Y[z.i$jscomp$446]=M[z.i$jscomp$446]),W[z.i$jscomp$446]=Z[z.i$jscomp$446];
else{var I=xAS(function(F){return function(){Y[F.i$jscomp$446]=M[F.i$jscomp$446];var G=_.a(_.ae(M[F.i$jscomp$446],void 0,"JMMLmd")),V=G.next().value;G=G.next().value;R[F.i$jscomp$446]=G;W[F.i$jscomp$446]=z6(D.children(V,F.i$jscomp$446))}}(z));
t[z.i$jscomp$446]=I}for(;Y.length>M.length;)Y.pop(),t.pop()(),R.pop();M.length===0&&!X&&D.fallback&&(z=xAS(function(){W[0]=z6(D.fallback())}),t[0]=z,X=!0);
return Z=W},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
xAS=function(D){var Y=EW;return $d(function(R){var Z=Re(Sj);try{R.parent=Y,D(R)}finally{Re(Z)}},!1)};
_.VL=function(D){return D};
_.fb=function(D){return{isDefault:!0,children:D.children}};
_.ej=function(D){var Y=QRj(D),R=_.Si(function(){return BZi(Y)},void 0,"F1PF4");
return MJ(function(){var Z=R(),t;$d(function(){var X=Re(Sj);try{t=z6(Z())}finally{Re(X)}});
return t},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
QRj=function(D){D=D.children;return Array.isArray(D)?D:[D]};
pO$=function(D){var Y=D.props;D=D.getChildren()[0];return Y.when?{when:Y.when,children:D}:{isDefault:!0,children:D}};
BZi=function(D){var Y=function(){return null};
D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,R!=null&&R[OU]&&(R=R.type===_.fb?{isDefault:!0,children:R.children[0]}:{when:R.props.when,children:R.children[0]}),R instanceof WD&&(R=pO$(R)),R.isDefault)Y=R.children;else if(R.when())return R.children;return Y};
gFU=function(D){var Y=null,R,Z={get value(){var X,M;(M=(X=t).validateGetValue)==null||M.call(X);return t.__value},set value(X){var M,W;(W=(M=t).validateSetValue)==null||W.call(M,X);t.__value=X;t.__hasBeenSet=!0}},t=(Z.__value=null,Z.__hasBeenSet=!1,Z.__hasErrored=!1,Z.onRender=function(X){if(R&&X!==R){R._disposeRef=void 0;var M;(M=Y)==null||M()}R=X;Y=D(X)||null},Z.onUnmount=function(){var X;
(X=Y)==null||X();Y=t.value=null},Z[_.EFU]=!0,Z);
return t};
AQ=function(D){return typeof D==="symbol"};
i2i=function(D){var Y=GKM();if(Y==null)throw _.dAi.PRIMITIVE_INVALID_HOOK_CALL();var R=Y.hookCounter++;Y.hooks||(Y.hooks=[]);var Z=Y.hooks;Z[R]||(Z[R]={key:D,host:Y});if(D!==Z[R].key){if(Y.__type){var t;D=(t=Y.__type)==null?void 0:t.name}else D=Y instanceof Ip?Poi(Y.functionComponent):"<"+Y.el.tagName.toLowerCase()+">";throw _.dAi.OUT_OF_ORDER_HOOK_CALL(D);}return Z[R]};
O2M=function(D,Y){return!D||D.length!==(Y==null?void 0:Y.length)||D.some(function(R,Z){return R!==Y[Z]})};
c5o=function(D,Y){var R=i2i("onChange"),Z=GKM();O2M(R.deps,Y)&&(R.deps=Y,R.pendingEffect=D,Z.__syncEffects||(Z.__syncEffects=[]),Z.__syncEffects.push(R))};
_.nb=function(D,Y){var R=R===void 0?{}:R;R=R.appContext;var Z=!!cB.legacyTriggerSoyRendererEvents;XP.setUp();try{var t=DXn(D,Y,R);Z&&(Y=R,Y==null&&(Y=_.Vhb(document).getAppContext()),Y.get(Y7$).JSC$28894_getEventTarget().dispatchEvent(new Rb9(ZXi,D,tQ)));XP.log(D);return t}finally{XP.tearDown()}};
DXn=function(D,Y,R){var Z=n4(function(){var t=Re(Sj);try{return $d(function(){var X=_.Vhb(_.k2(D)),M;var W=Us5({rootElement:{value:D},appContext:R||(X==null?void 0:(M=X.getOptionalAppContext)==null?void 0:M.call(X)),dispatcher:X});X=_.ge(W);W=D1(!0);Ie++;try{Cb(Y(),D),Gk(!1)}catch(z){throw Gk(!0),z;}finally{D1(W),_.ge(X)}},!1)}catch(X){throw cB.enableContextBasedComponentStacks&&At(X),X;
}finally{Re(t)}});
D[teo]=!0;return function(){D.textContent="";Z();D[teo]=!1}};
_.rf=function(D){if(HI5(Yd)){var Y;(Y=cB.handleError)==null||Y.call.apply(Y,[cB].concat(_.oK(yE(Error("Yb")))))}var R=EW,Z=VE;Promise.resolve().then(function(){if(R&&!R.isDisposed){var t=_.ge(R);try{n4(function(){return void D()},Z)}catch(X){throw cB.enableContextBasedComponentStacks&&At(X),X;
}finally{_.ge(t)}}})};
_.wf=function(D,Y){c5o(function(){return uM(D)},Y)};
_.$s=function(D){ei()?_.rf(function(){uM(D)}):c5o(function(){return uM(D)},[])};
XC5=function(D){var Y=[].concat(_.oK(D));D.length=0;D=_.a(Y);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;sbr(Y);var R=Y.pendingEffect;Y.pendingEffect=null;if(R=R==null?void 0:R())Y.pendingCleanup=R}};
sbr=function(D){var Y=D.pendingCleanup;D.pendingCleanup=null;Y==null||Y()};
uab=function(D,Y){if(ei())return D();var R=i2i("useMemoInternal");O2M(R.deps,Y)&&(R.deps=Y,R.value=D());return R.value};
aij=function(D,Y){return uab(D,Y)};
op=function(D){return uab(D,[])};
b1=function(D){return op(function(){return{value:D}})};
_.yL=function(D,Y){if(!D)return null;D=Object.keys(D);D=_.a(D);for(var R=D.next();!R.done;R=D.next()){R=R.value;var Z=R.toLowerCase();if(Z.indexOf(Y,Z.length-Y.length)>-1)return R}return null};
_.l1=function(){var D=arguments,Y=_.NJ;D.length>1?Y[D[0]]=D[1]:D.length===1&&Object.assign(Y,D[0])};
_.JQ=function(D,Y){return D in _.NJ?_.NJ[D]:Y};
_.ks=function(D,Y){return!!_.JQ(D,Y)};
Meb=function(D){var Y=_.NJ.EXPERIMENT_FLAGS;return Y?Y[D]:void 0};
W3o=function(D){CiU.forEach(function(Y){return Y(D)})};
_.Lb=function(D){return D&&window.yterr?function(){try{return D.apply(this,arguments)}catch(Y){_.hQ(Y)}}:D};
_.hQ=function(D){var Y=_.mf("yt.logging.errors.log");Y?Y(D,"ERROR",void 0,void 0,void 0,void 0,void 0):(Y=_.JQ("ERRORS",[]),Y.push([D,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.l1("ERRORS",Y));W3o(D)};
_.qJ=function(D,Y,R,Z,t){var X=_.mf("yt.logging.errors.log");X?X(D,"WARNING",Y,R,Z,void 0,t):(X=_.JQ("ERRORS",[]),X.push([D,"WARNING",Y,R,Z,void 0,t]),_.l1("ERRORS",X))};
S7U=function(D,Y){Y=D.split(Y);for(var R={},Z=0,t=Y.length;Z<t;Z++){var X=Y[Z].split("=");if(X.length===1&&X[0]||X.length===2)try{var M=zbr(X[0]||""),W=zbr(X[1]||"");if(M in R){var z=R[M];Array.isArray(z)?_.Po(z,W):R[M]=[z,W]}else R[M]=W}catch(V){var I=V,F=X[0],G=String(S7U);I.args=[{key:F,value:X[1],query:D,method:TCr===G?"unchanged":G}];jbn.hasOwnProperty(F)||_.qJ(I)}}return R};
IiU=function(D){var Y=[];_.y7.forEach(D,function(R,Z){var t=_.HD(Z);R=Array.isArray(R)?R:[R];_.xs(R,function(X){X==""?Y.push(t):Y.push(t+"="+_.HD(X))})});
return Y.join("&")};
_.PD=function(D){D.charAt(0)==="?"&&(D=D.substring(1));return S7U(D,"&")};
_.QL=function(D){return D.indexOf("?")!==-1?(D=(D||"").split("#")[0],D=D.split("?",2),_.PD(D.length>1?D[1]:D[0])):{}};
_.BD=function(D,Y){return F3U(D,Y||{},!0)};
GA5=function(D,Y){return F3U(D,Y||{},!1)};
F3U=function(D,Y,R){var Z=D.split("#",2);D=Z[0];Z=Z.length>1?"#"+Z[1]:"";var t=D.split("?",2);D=t[0];t=_.PD(t[1]||"");for(var X in Y)if(R||!_.y7.containsKey(t,X))t[X]=Y[X];return _.pb(D,t)+Z};
i1=function(D){if(!Y)var Y=window.location.href;var R=_.E3(D)[1]||null,Z=_.gf(D);return R&&Z?df(D,Y):Z?_.gf(Y)===Z&&(Number(_.E3(Y)[4]||null)||null)===(Number(_.E3(D)[4]||null)||null):!0};
_.fi9=function(D){D=Vey(D);return D===null?!1:D[0]==="com"&&D[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Vey=function(D){D=_.gf(D);return D!==null?D.split(".").reverse():null};
zbr=function(D){return D&&D.match(ebr)?D:O3(D)};
_.cD=function(D){return new A49(D)};
_.DH=function(){n8n||(n8n=new r4n);return n8n};
$XU=function(){var D=wCS;return function(){var Y=_.DH();Y.resolve(_.cD(D))||Y.addProvider({provide:D,useClass:D});return Y.resolve(D)}};
o89=function(D){var Y=_.Yw,R,Z;_.C(function(t){R=_.DH();return(Z=R.resolve(_.cD(Y)))?(D(Z),t.return(Promise.resolve(Z))):t.return(R.resolve(new v8o(Y)).then(function(X){D(X);return X}))})};
_.f=function(D){D=Rn(D);return typeof D==="string"&&D==="false"?!1:!!D};
_.ZH=function(D,Y){D=Rn(D);return D===void 0&&Y!==void 0?Y:Number(D||0)};
bXM=function(D){D=Rn(D);return Array.isArray(D)?_.N1(D,function(Y){return Number(Y||0)}):[Number(D||0)]};
_.XW=function(D){D=Rn(D);return D!==void 0?String(D):""};
_.ux=function(D){D=Rn(D);return Array.isArray(D)?_.N1(D,function(Y){return String(Y||"")}):[String(D||"")]};
y4n=function(){return _.JQ("EXPERIMENTS_TOKEN","")};
Rn=function(D){return _.JQ("EXPERIMENT_FLAGS",{})[D]};
NCM=function(){for(var D=[],Y=_.JQ("EXPERIMENTS_FORCED_FLAGS",{}),R=_.a(Object.keys(Y)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,D.push({key:Z,value:String(Y[Z])});R=_.JQ("EXPERIMENT_FLAGS",{});Z=_.a(Object.keys(R));for(var t=Z.next();!t.done;t=Z.next())t=t.value,t.startsWith("force_")&&Y[t]===void 0&&D.push({key:t,value:String(R[t])});return D};
J4r=function(){if(!lio)return null;var D=lio();return"open"in D?D:null};
_.kAr=function(D){switch(_.an(D)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.an=function(D){return D&&"status"in D?D.status:-1};
_.ME=function(D,Y){typeof D==="function"&&(D=_.Lb(D));return window.setTimeout(D,Y)};
_.Cv=function(D,Y){typeof D==="function"&&(D=_.Lb(D));return window.setInterval(D,Y)};
_.Wr=function(D){window.clearTimeout(D)};
K3b=function(D){D=_.QL(D);for(var Y=_.a(UXo),R=Y.next();!R.done;R=Y.next())if(D[R.value]!==void 0)return!0;return!1};
mXU=function(D,Y,R,Z,t,X,M,W,z){R=R===void 0?"GET":R;Z=Z===void 0?"":Z;W=W===void 0?!1:W;var I=J4r();if(!I)return null;var F=function(){(I&&"readyState"in I?I.readyState:0)===4&&Y&&_.Lb(Y)(I)};
"onloadend"in I?I.addEventListener("loadend",F,!1):I.onreadystatechange=F;_.f("debug_forward_web_query_parameters")&&(D=hbU(D,window.location.search));I.open(R,D,!0);X&&(I.responseType=X);M&&(I.withCredentials=!0);R=R==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(t=L39(D,t))for(var G in t)I.setRequestHeader(G,t[G]),"content-type"===G.toLowerCase()&&(R=!1);R&&I.setRequestHeader("Content-Type","application/x-www-form-urlencoded");z&&"onprogress"in I&&(I.onprogress=function(){z(I.responseText)});
if(W&&"setAttributionReporting"in XMLHttpRequest.prototype){D={eventSourceEligible:!0,triggerEligible:!1};try{I.setAttributionReporting(D)}catch(V){_.qJ(V)}}I.send(Z);return I};
L39=function(D,Y){Y=Y===void 0?{}:Y;var R=i1(D),Z=_.JQ("INNERTUBE_CLIENT_NAME"),t=_.f("web_ajax_ignore_global_headers_if_set"),X;for(X in q7U){var M=_.JQ(q7U[X]),W=X==="X-Goog-AuthUser"||X==="X-Goog-PageId";X!=="X-Goog-Visitor-Id"||M||(M=_.JQ("VISITOR_DATA"));var z;if(!(z=!M)){if(!(z=R||(_.gf(D)?!1:!0))){z=D;var I;if(I=_.f("add_auth_headers_to_remarketing_google_dot_com_ping")&&X==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY"))I=Vey(z),I=I===null?!1:I[1]==="google"?
!0:I[2]==="google"?I[0]==="au"&&I[1]==="com"?!0:I[0]==="uk"&&I[1]==="co"?!0:!1:!1;I&&(z=_.zZ(z)||"",z=z.split("/"),z="/"+(z.length>1?z[1]:""),I=z==="/pagead");z=I?!0:!1}z=!z}z||t&&Y[X]!==void 0||Z==="TVHTML5_UNPLUGGED"&&W||(Y[X]=M)}"X-Goog-EOM-Visitor-Id"in Y&&"X-Goog-Visitor-Id"in Y&&delete Y["X-Goog-Visitor-Id"];if(R||!_.gf(D))Y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(R||!_.gf(D)){try{var F=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}F&&(Y["X-YouTube-Time-Zone"]=
F)}document.location.hostname.endsWith("youtubeeducation.com")||!R&&_.gf(D)||(Y["X-YouTube-Ad-Signals"]=IiU(HXn()));return Y};
_.xXl=function(D,Y){var R=_.gf(D);_.f("debug_handle_relative_url_for_query_forward_killswitch")||!R&&i1(D)&&(R=document.location.hostname);var Z=_.zZ(D);Z=(R=R&&(R.endsWith("youtube.com")||R.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!R||Z)return D;var t=_.PD(Y),X={};_.xs(UXo,function(M){t[M]&&(X[M]=t[M])});
return GA5(D,X)};
PiU=function(D,Y){Y.method="POST";Y.postParams||(Y.postParams={});return _.S$(D,Y)};
Qby=function(D,Y){var R=_.JQ("XSRF_FIELD_NAME"),Z;Y.headers&&(Z=Y.headers["Content-Type"]);return!Y.excludeXsrf&&(!_.gf(D)||Y.withCredentials||_.gf(D)===document.location.hostname)&&Y.method==="POST"&&(!Z||Z==="application/x-www-form-urlencoded")&&!(Y.postParams&&Y.postParams[R])};
_.S$=function(D,Y){var R=Y.format||"JSON";D=BCU(D,Y);var Z=pCU(D,Y),t=!1,X=E8U(D,function(z){if(!t){t=!0;W&&_.Wr(W);var I=_.kAr(z),F=null,G=400<=z.status&&z.status<500,V=500<=z.status&&z.status<600;if(I||G||V)F=g8b(D,R,z,Y.convertToSafeHtml);I&&(I=dXj(R,z,F));F=F||{};G=Y.context||_.ZU;I?Y.onSuccess&&Y.onSuccess.call(G,z,F):Y.onError&&Y.onError.call(G,z,F);Y.onFinish&&Y.onFinish.call(G,z,F)}},Y.method,Z,Y.headers,Y.responseType,Y.withCredentials,!1,Y.onProgress);
Z=Y.timeout||0;if(Y.onTimeout&&Z>0){var M=Y.onTimeout;var W=_.ME(function(){t||(t=!0,X.abort(),_.Wr(W),M.call(Y.context||_.ZU,X))},Z)}return X};
BCU=function(D,Y){Y.includeDomain&&(D=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+D);var R=_.JQ("XSRF_FIELD_NAME");if(Y=Y.urlParams)Y[R]&&delete Y[R],D=_.BD(D,Y);return D};
pCU=function(D,Y){var R=_.JQ("XSRF_FIELD_NAME"),Z=_.JQ("XSRF_TOKEN"),t=Y.postBody||"",X=Y.postParams;Qby(D,Y)&&(X||(X={}),X[R]=Z);(_.f("ajax_parse_query_data_only_when_filled")&&X&&Object.keys(X).length>0||X)&&typeof t==="string"&&(t=_.PD(t),_.y7.extend(t,X),t=Y.postBodyFormat&&Y.postBodyFormat==="JSON"?JSON.stringify(t):_.TZ(t));X=t||X&&!_.y7.isEmpty(X);!iX5&&X&&Y.method!=="POST"&&(iX5=!0,_.hQ(Error("Ec")));return t};
g8b=function(D,Y,R,Z){var t=null;switch(Y){case "JSON":try{var X=R.responseText}catch(M){throw Z=Error("Fc"),Z.params=D,_.qJ(Z),M;}D=R.getResponseHeader("Content-Type")||"";X&&D.indexOf("json")>=0&&(X.substring(0,5)===")]}'\n"&&(X=X.substring(5)),t=JSON.parse(X));break;case "XML":if(D=(D=R.responseXML)?OXn(D):null)t={},_.xs(D.getElementsByTagName("*"),function(M){t[M.tagName]=c4b(M)})}Z&&Dwb(t);
return t};
Dwb=function(D){if(_.Bo(D))for(var Y in D)Y==="html_content"||u9(Y,"_html")?D[Y]=qy(D[Y]):Dwb(D[Y])};
dXj=function(D,Y,R){if(Y&&Y.status===204)return!0;switch(D){case "JSON":return!!R;case "XML":return Number(R&&R.return_code)===0;case "RAW":return!0;default:return!!R}};
OXn=function(D){return D?(D=("responseXML"in D?D.responseXML:D).getElementsByTagName("root"))&&D.length>0?D[0]:null:null};
c4b=function(D){var Y="";_.xs(D.childNodes,function(R){Y+=R.nodeValue});
return Y};
YM9=function(D){if(D.name==="JavaException")return!0;D=D.stack;return D.includes("chrome://")||D.includes("-extension://")||D.includes("webkit-masked-url://")};
R1o=function(D){if(!D.stack)return!0;var Y=!D.stack.includes("\n");return Y&&D.stack.includes("ErrorType: ")||Y&&D.stack.includes("Anonymous function (Unknown script")||D.stack.toLowerCase()==="not available"||D.fileName==="user-script"||D.fileName.startsWith("user-script:")?!0:!1};
_.j$=function(D){_.AE.call(this);this.JSC$10448_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!D};
tCi=function(D,Y){var R=D.length,Z=0,t=function(){return D.charCodeAt(Z++)};
do{var X=ZhM(t);if(X===Infinity)break;var M=X>>3;switch(X&7){case 0:X=ZhM(t);if(M===Y)return X;break;case 1:if(M===Y)return;Z+=8;break;case 2:X=ZhM(t);if(M===Y)return D.substr(Z,X);Z+=X;break;case 5:if(M===Y)return;Z+=4;break;default:return}}while(Z<R)};
ZhM=function(D){var Y=D(),R=Y&127;if(Y<128)return R;Y=D();R|=(Y&127)<<7;if(Y<128)return R;Y=D();R|=(Y&127)<<14;if(Y<128)return R;Y=D();return Y<128?R|(Y&127)<<21:Infinity};
XU5=function(D,Y,R,Z){if(D)if(Array.isArray(D)){var t=Z;for(Z=0;Z<D.length&&!(D[Z]&&(t+=sky(Z,D[Z],Y,R),t>500));Z++);Z=t}else if(typeof D==="object")for(t in D){if(D[t]){var X=t;var M=D[t],W=Y,z=R;X=typeof M!=="string"||X!=="clickTrackingParams"&&X!=="trackingParams"?0:(M=tCi(atob(M.replace(/-/g,"+").replace(/_/g,"/")),2))?sky(X+".ve",M,W,z):0;Z+=X;Z+=sky(t,D[t],Y,R);if(Z>500)break}}else R[Y]=In(D),Z+=R[Y].length;else R[Y]=In(D),Z+=R[Y].length;return Z};
sky=function(D,Y,R,Z){R+="."+D;D=In(Y);Z[R]=D;return R.length+D.length};
In=function(D){try{return(typeof D==="string"?D:String(JSON.stringify(D))).substr(0,500)}catch(Y){return"unable to serialize "+typeof D+" ("+Y.message+")"}};
us5=function(D){switch(D){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}};
_.GZ=function(D,Y,R,Z,t){_.FW.set(D,Y,{maxAge:R,path:"/",domain:Z===void 0?"youtube.com":Z,secure:t===void 0?!1:t})};
_.aQ5=function(D,Y,R){_.FW.remove(D,Y===void 0?"/":Y,R===void 0?"youtube.com":R)};
_.Vf=function(){if(_.f("embeds_web_enable_cookie_detection_fix")){if(!_.ZU.navigator.cookieEnabled)return!1}else if(!_.FW.isEnabled())return!1;if(!_.FW.isEmpty())return!0;_.f("embeds_web_enable_cookie_detection_fix")?_.FW.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.FW.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.FW.get("TESTCOOKIESENABLED")!=="1")return!1;_.FW.remove("TESTCOOKIESENABLED");return!0};
MCU=function(){var D=_.ZU.navigator;return D?D.connection:void 0};
C09=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(D){}};
_.z1M=function(){var D=MCU();if(D){var Y=WWr[D.type||"unknown"]||"CONN_UNKNOWN";D=WWr[D.effectiveType||"unknown"]||"CONN_UNKNOWN";Y==="CONN_CELLULAR_UNKNOWN"&&D!=="CONN_UNKNOWN"&&(Y=D);if(Y!=="CONN_UNKNOWN")return Y;if(D!=="CONN_UNKNOWN")return D}};
TLy=function(){var D=MCU();if(D!=null&&D.effectiveType)return SM5.hasOwnProperty(D.effectiveType)?SM5[D.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.e$=function(){try{return _.fv(),!0}catch(D){return!1}};
_.fv=function(D){if(_.JQ("DATASYNC_ID")!==void 0)return _.JQ("DATASYNC_ID");throw new _.AT("Datasync ID not set",D===void 0?"unknown":D);};
_.nv=function(D){this.mechanism=D};
rP=function(D){this.mechanism=D};
wP=function(D){this.storage_=D;this.cachedIsStorageAvailable_=null};
jki=function(){var D=null;try{D=_.ZU.localStorage||null}catch(Y){}wP.call(this,D)};
IQU=function(){var D=null;try{D=_.ZU.sessionStorage||null}catch(Y){}wP.call(this,D)};
$w=function(D,Y){this.mechanism_=D;this.JSC$10550_prefix_=Y+"::"};
_.FWo=function(D){var Y=new jki;return Y.isAvailable()?D?new $w(Y,D):Y:null};
_.GLM=function(D){var Y=new IQU;return Y.isAvailable()?D?new $w(Y,D):Y:null};
fQi=function(){var D;return(D=VCn())==null?void 0:D.get("LAST_RESULT_ENTRY_KEY",!0)};
_.bx=function(D){e1l||(_.vr?_.vr.logError(D):(_.on.push({type:"ERROR",payload:D}),_.on.length>10&&_.on.shift()))};
yf=function(D,Y){e1l||(_.vr?_.vr.logEvent(D,Y):(_.on.push({type:"EVENT",eventType:D,payload:Y}),_.on.length>10&&_.on.shift()))};
NE=function(D){if(D.indexOf(":")>=0)throw Error("Mc");};
lx=function(D){return D.substr(0,D.indexOf(":"))||D};
ru$=function(){return(Au5||nx$)&&JT("applewebkit")&&!JT("version")&&(!JT("safari")||JT("gsa/"))};
JT=function(D){var Y=_.Il();return Y?Y.toLowerCase().indexOf(D)>=0:!1};
vx9=function(D,Y,R,Z){Y=lx(Y);var t=D instanceof Error?D:Error("Nc`"+D);if(t instanceof kw)return t;D={objectStoreNames:R,dbName:Y,dbVersion:Z};if(t.name==="QuotaExceededError")return new kw("QUOTA_EXCEEDED",D);if(_.UK&&t.name==="UnknownError")return new kw("QUOTA_MAYBE_EXCEEDED",D);if(t instanceof wUj)return new kw("MISSING_INDEX",Object.assign({},D,{objectStore:t.objectStore,index:t.index}));if(t.name==="InvalidStateError"&&$wU.some(function(X){return t.message.includes(X)}))return new kw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
D);
if(t.name==="AbortError")return new kw("UNKNOWN_ABORT",D,t.message);t.args=[Object.assign({},D,{name:"IdbError",originalName:t.name})];t.level="WARNING";return t};
Kv=function(D,Y,R){var Z=fQi();return new kw("IDB_NOT_SUPPORTED",{context:{caller:D,publicName:Y,version:R,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})};
oxi=function(D){if(!D)throw Error();throw D;};
bhU=function(D){return D};
yuS=function(D,Y,R){var Z=function(){try{D.removeEventListener("success",t),D.removeEventListener("error",X)}catch(M){}},t=function(){Y(D.result);
Z()},X=function(){R(D.error);
Z()};
D.addEventListener("success",t);D.addEventListener("error",X)};
NLM=function(D){return new Promise(function(Y,R){yuS(D,Y,R)})};
mz=function(D){return new hT(new Lv(function(Y,R){yuS(D,Y,R)}))};
lQi=function(D,Y){return new hT(new Lv(function(R,Z){var t=function(){var X=D?Y(D):null;X?X.then(function(M){D=M;t()},Z):R()};
t()}))};
Ju9=function(D,Y,R){return new Promise(function(Z,t){var X=Y!==void 0?self.indexedDB.open(D,Y):self.indexedDB.open(D);var M=R.blocked,W=R.blocking,z=R.terminated,I=R.upgrade,F=R.closed,G,V=function(){G||(G=new qE(X.result,{closed:F}));return G};
X.addEventListener("upgradeneeded",function(e){try{if(e.newVersion===null)throw Error("Sc");if(X.transaction===null)throw Error("Tc");e.dataLoss&&e.dataLoss!=="none"&&yf("IDB_DATA_CORRUPTED",{reason:e.dataLossMessage||"unknown reason",dbName:lx(D)});var r=V(),l=new Hr(X.transaction);I&&I(r,function(U){return e.oldVersion<U&&e.newVersion>=U},l);
l.done.catch(function(U){t(U)})}catch(U){t(U)}});
X.addEventListener("success",function(){var e=X.result;W&&e.addEventListener("versionchange",function(){W(V())});
e.addEventListener("close",function(){yf("IDB_UNEXPECTEDLY_CLOSED",{dbName:lx(D),dbVersion:e.version});z&&z()});
Z(V())});
X.addEventListener("error",function(){t(X.error)});
M&&X.addEventListener("blocked",function(){M()})})};
kLl=function(D,Y,R){R=R===void 0?{}:R;return Ju9(D,Y,R)};
_.Pr=function(D,Y){Y=Y===void 0?{}:Y;var R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return _.SX(M,2),R=self.indexedDB.deleteDatabase(D),Z=Y,(t=Z.blocked)&&R.addEventListener("blocked",function(){t()}),M.yield(NLM(R),4);
if(M.nextAddress!=2)return _.xw(M,0);X=_.Gl(M);throw vx9(X,D,"",-1);})};
KWb=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.Qf(UwU,Y),2);R=Z.yieldResult;return Z.return(_.Br(R,["databases"],{enableRetries:!0,mode:"readwrite"},function(t){var X=t.objectStore("databases");return X.get(D.actualName).then(function(M){if(M?D.actualName!==M.actualName||D.publicName!==M.publicName||D.userIdentifier!==M.userIdentifier:1)return X.put(D).then(function(){})})}))})};
_.pv=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1)return D?Z.yield(_.Qf(UwU,Y),2):Z.return();R=Z.yieldResult;return Z.return(R.delete("databases",D))})};
_.h19=function(D,Y){var R,Z;return _.C(function(t){return t.nextAddress==1?(R=[],t.yield(_.Qf(UwU,Y),2)):t.nextAddress!=3?(Z=t.yieldResult,t.yield(_.Br(Z,["databases"],{enableRetries:!0,mode:"readonly"},function(X){R.length=0;return EK(X.objectStore("databases"),{},function(M){D(M.getValue())&&R.push(M.getValue());return M.continue()})}),3)):t.return(R)})};
LWn=function(D,Y){return _.h19(function(R){return R.publicName===D&&R.userIdentifier!==void 0},Y)};
Hhy=function(){var D,Y,R,Z;return _.C(function(t){switch(t.nextAddress){case 1:D=fQi();if((Y=D)==null?0:Y.hasSucceededOnce)return t.return(!0);var X;if(X=mwr)X=/WebKit\/([0-9]+)/.exec(_.Il()),X=!!(X&&parseInt(X[1],10)>=600);X&&(X=/WebKit\/([0-9]+)/.exec(_.Il()),X=!(X&&parseInt(X[1],10)>=602));if(X||gP)return t.return(!1);try{if(R=self,!(R.indexedDB&&R.IDBIndex&&R.IDBKeyRange&&R.IDBObjectStore))return t.return(!1)}catch(M){return t.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return t.return(!1);
_.SX(t,2);Z={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return t.yield(KWb(Z,qMj),4);case 4:return t.yield(_.pv("yt-idb-test-do-not-use",qMj),5);case 5:return t.return(!0);case 2:return _.Gl(t),t.return(!1)}})};
P0M=function(){if(xwn!==void 0)return xwn;e1l=!0;return xwn=Hhy().then(function(D){e1l=!1;var Y;if((Y=VCn())!=null&&Y.expiringStorage_){var R;Y={hasSucceededOnce:((R=fQi())==null?void 0:R.hasSucceededOnce)||D};var Z;(Z=VCn())==null||Z.set("LAST_RESULT_ENTRY_KEY",Y,2592E3,!0)}return D})};
dP=function(){return _.mf("ytglobal.idbToken_")||void 0};
_.OK=function(){var D=dP();return D?Promise.resolve(D):P0M().then(function(Y){(Y=Y?qMj:void 0)&&_.ix("ytglobal.idbToken_",Y);return Y})};
QkU=function(D){if(!_.e$())throw D=new kw("AUTH_INVALID",{dbName:D}),_.bx(D),D;var Y=_.fv();return{actualName:D+":"+Y,publicName:D,userIdentifier:Y}};
BLo=function(D,Y,R,Z){var t,X,M,W,z,I;return _.C(function(F){switch(F.nextAddress){case 1:return X=(t=Error().stack)!=null?t:"",F.yield(_.OK(),2);case 2:M=F.yieldResult;if(!M)throw W=Kv("openDbImpl",D,Y),_.f("ytidb_async_stack_killswitch")||(W.stack=W.stack+"\n"+X.substring(X.indexOf("\n")+1)),_.bx(W),W;NE(D);z=R?{actualName:D,publicName:D,userIdentifier:void 0}:QkU(D);_.SX(F,3);return F.yield(KWb(z,M),5);case 5:return F.yield(kLl(z.actualName,Y,Z),6);case 6:return F.return(F.yieldResult);case 3:return I=
_.Gl(F),_.SX(F,7),F.yield(_.pv(z.actualName,M),9);case 9:_.xw(F,8);break;case 7:_.Gl(F);case 8:throw I;}})};
pUU=function(D,Y,R){R=R===void 0?{}:R;return BLo(D,Y,!1,R)};
ExS=function(D,Y,R){R=R===void 0?{}:R;return BLo(D,Y,!0,R)};
gxM=function(D,Y){Y=Y===void 0?{}:Y;var R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(_.OK(),2);if(t.nextAddress!=3){R=t.yieldResult;if(!R)return t.return();NE(D);Z=QkU(D);return t.yield(_.Pr(Z.actualName,Y),3)}return t.yield(_.pv(Z.actualName,R),0)})};
dwM=function(D,Y,R){D=D.map(function(Z){return _.C(function(t){return t.nextAddress==1?t.yield(_.Pr(Z.actualName,Y),2):t.yield(_.pv(Z.actualName,R),0)})});
return Promise.all(D).then(function(){})};
ihl=function(D){var Y=Y===void 0?{}:Y;var R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(_.OK(),2);if(t.nextAddress!=3){R=t.yieldResult;if(!R)return t.return();NE(D);return t.yield(LWn(D,R),3)}Z=t.yieldResult;return t.yield(dwM(Z,Y,R),0)})};
Ohr=function(D,Y){Y=Y===void 0?{}:Y;var R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.OK(),2);if(Z.nextAddress!=3){R=Z.yieldResult;if(!R)return Z.return();NE(D);return Z.yield(_.Pr(D,Y),3)}return Z.yield(_.pv(D,R),0)})};
cr=function(D,Y){return cu9(D,Y)};
Y$l=function(D){return _.Qf(D3U(),D)};
Rs9=function(D,Y,R,Z){var t,X,M;return _.C(function(W){switch(W.nextAddress){case 1:return t={config:D,hashData:Y,timestamp:Z!==void 0?Z:(0,_.DO)()},W.yield(Y$l(R),2);case 2:return X=W.yieldResult,W.yield(X.clear("hotConfigStore"),3);case 3:return W.yield(X.put("hotConfigStore",t),4);case 4:return M=W.yieldResult,W.return(M)}})};
Zn$=function(D,Y,R,Z,t){var X,M,W;return _.C(function(z){switch(z.nextAddress){case 1:return X={config:D,hashData:Y,configData:R,timestamp:t!==void 0?t:(0,_.DO)()},z.yield(Y$l(Z),2);case 2:return M=z.yieldResult,z.yield(M.clear("coldConfigStore"),3);case 3:return z.yield(M.put("coldConfigStore",X),4);case 4:return W=z.yieldResult,z.return(W)}})};
tIM=function(D){var Y,R;return _.C(function(Z){return Z.nextAddress==1?Z.yield(Y$l(D),2):Z.nextAddress!=3?(Y=Z.yieldResult,R=void 0,Z.yield(_.Br(Y,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.YQ(t.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(X){R=X.getValue()})}),3)):Z.return(R)})};
sQj=function(D){var Y,R;return _.C(function(Z){return Z.nextAddress==1?Z.yield(Y$l(D),2):Z.nextAddress!=3?(Y=Z.yieldResult,R=void 0,Z.yield(_.Br(Y,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(t){return _.YQ(t.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(X){R=X.getValue()})}),3)):Z.return(R)})};
XGb=function(){return _.C(function(D){return D.yield(ihl("ytGcfConfig"),0)})};
u9b=function(){return"INNERTUBE_API_KEY"in _.NJ&&"INNERTUBE_API_VERSION"in _.NJ};
_.RE=function(){return{innertubeApiKey:_.JQ("INNERTUBE_API_KEY"),innertubeApiVersion:_.JQ("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.JQ("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.JQ("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.JQ("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.JQ("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.JQ("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.ks("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.ks("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.JQ("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.T$U=function(D){var Y={client:{hl:D.innertubeContextHostLanguage,gl:D.innertubeContextGeoLocation,clientName:D.innertubeContextClientName,clientVersion:D.innertubeContextClientVersion,configInfo:D.innertubeContextClientConfigInfo}};navigator.userAgent&&(Y.client.userAgent=String(navigator.userAgent));var R=_.ZU.devicePixelRatio;R&&R!=1&&(Y.client.screenDensityFloat=String(R));R=y4n();R!==""&&(Y.client.experimentsToken=R);R=NCM();R.length>0&&(Y.request={internalExperimentFlags:R});al9(D,void 0,Y);
MI9(void 0,Y);CXi(void 0,Y);WVr(D,void 0,Y);zsU(void 0,Y);_.f("start_client_gcf")&&S$i(void 0,Y);_.JQ("DELEGATED_SESSION_ID")&&!_.f("pageid_as_header_web")&&(Y.user={onBehalfOfUser:_.JQ("DELEGATED_SESSION_ID")});!_.f("fill_delegate_context_in_gel_killswitch")&&(D=_.JQ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Y.user=Object.assign({},Y.user,{serializedDelegationContext:D}));D=_.JQ("INNERTUBE_CONTEXT");var Z;if(_.f("enable_persistent_device_token")&&(D==null?0:(Z=D.client)==null?0:Z.rolloutToken)){var t;
Y.client.rolloutToken=D==null?void 0:(t=D.client)==null?void 0:t.rolloutToken}Z=Object;t=Z.assign;D=Y.client;R={};for(var X=_.a(Object.entries(_.PD(_.JQ("DEVICE","")))),M=X.next();!M.done;M=X.next()){var W=_.a(M.value);M=W.next().value;W=W.next().value;M==="cbrand"?R.deviceMake=W:M==="cmodel"?R.deviceModel=W:M==="cbr"?R.browserName=W:M==="cbrver"?R.browserVersion=W:M==="cos"?R.osName=W:M==="cosver"?R.osVersion=W:M==="cplatform"&&(R.platform=W)}Y.client=t.call(Z,D,R);return Y};
al9=function(D,Y,R){D=D.innertubeContextClientName;if(D==="WEB"||D==="MWEB"||D===1||D===2)if(Y){R=_.tP(Y,jQU,96)||new jQU;var Z=IlU();Z=Object.keys(FVb).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&_.s1(R,3,Z);_.To(Y,96,R)}else R&&(R.client.mainAppWebInfo=(Z=R.client.mainAppWebInfo)!=null?Z:{},R.client.mainAppWebInfo.webDisplayMode=IlU())};
MI9=function(D,Y){var R=_.mf("yt.embedded_player.embed_url");R&&(D?(Y=_.tP(D,Gab,7)||new Gab,_.ew(Y,4,R),_.To(D,7,Y)):Y&&(Y.thirdParty={embedUrl:R}))};
CXi=function(D,Y){var R;if(_.f("web_log_memory_total_kbytes")&&((R=_.ZU.navigator)==null?0:R.deviceMemory)){var Z;R=(Z=_.ZU.navigator)==null?void 0:Z.deviceMemory;D?_.XG(D,95,sz(R*1E6)):Y&&(Y.client.memoryTotalKbytes=""+R*1E6)}};
WVr=function(D,Y,R){if(D.appInstallData)if(Y){var Z;R=(Z=_.tP(Y,uD,62))!=null?Z:new uD;_.ew(R,6,D.appInstallData);_.To(Y,62,R)}else R&&(R.client.configInfo=R.client.configInfo||{},R.client.configInfo.appInstallData=D.appInstallData)};
zsU=function(D,Y){var R=_.z1M();R&&(D?_.s1(D,61,VIU[R]):Y&&(Y.client.connectionType=R));_.f("web_log_effective_connection_type")&&(R=TLy())&&(D?_.s1(D,94,flU[R]):Y&&(Y.client.effectiveConnectionType=R))};
_.nIb=function(D,Y,R){R=R===void 0?{}:R;var Z={};_.JQ("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":_.JQ("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":R.visitorData||_.JQ("VISITOR_DATA","")};if(Y&&Y.includes("www.youtube-nocookie.com"))return Z;Y=R.authorization||_.JQ("AUTHORIZATION");Y||(D?Y="Bearer "+_.mf("gapi.auth.getToken")().access_token:(esU.instance||(esU.instance=new esU),D=A6U(),_.f("pageid_as_header_web")||delete D["X-Goog-PageId"],Z=Object.assign({},Z,D)));Y&&(Z.Authorization=Y);return Z};
S$i=function(D,Y){var R=r6y();if(R){var Z=R.coldConfigData,t=R.coldHashData;R=R.hotHashData;if(D){var X;Y=(X=_.tP(D,uD,62))!=null?X:new uD;Z=_.ew(Y,1,Z);_.ew(Z,3,t).setHotHashData(R);_.To(D,62,Y)}else Y&&(Y.client.configInfo=Y.client.configInfo||{},Z&&(Y.client.configInfo.coldConfigData=Z),t&&(Y.client.configInfo.coldHashData=t),R&&(Y.client.configInfo.hotHashData=R))}};
aE=function(D){for(var Y=D.length;--Y>=0;)D[Y]=0};
wGU=function(D,Y,R,Z,t){this.static_tree=D;this.extra_bits=Y;this.extra_base=R;this.elems=Z;this.max_length=t;this.has_stree=D&&D.length};
$39=function(D,Y){this.dyn_tree=D;this.max_code=0;this.stat_desc=Y};
Ms=function(D,Y){D.pending_buf[D.pending++]=Y&255;D.pending_buf[D.pending++]=Y>>>8&255};
Cq=function(D,Y,R){D.bi_valid>16-R?(D.bi_buf|=Y<<D.bi_valid&65535,Ms(D,D.bi_buf),D.bi_buf=Y>>16-D.bi_valid,D.bi_valid+=R-16):(D.bi_buf|=Y<<D.bi_valid&65535,D.bi_valid+=R)};
Wg=function(D,Y,R){Cq(D,R[Y*2],R[Y*2+1])};
vIU=function(D,Y){var R=0;do R|=D&1,D>>>=1,R<<=1;while(--Y>0);return R>>>1};
oI9=function(D,Y,R){var Z=Array(16),t=0,X;for(X=1;X<=15;X++)Z[X]=t=t+R[X-1]<<1;for(R=0;R<=Y;R++)t=D[R*2+1],t!==0&&(D[R*2]=vIU(Z[t]++,t))};
bnn=function(D){var Y;for(Y=0;Y<286;Y++)D.dyn_ltree[Y*2]=0;for(Y=0;Y<30;Y++)D.dyn_dtree[Y*2]=0;for(Y=0;Y<19;Y++)D.bl_tree[Y*2]=0;D.dyn_ltree[512]=1;D.opt_len=D.static_len=0;D.last_lit=D.matches=0};
y6o=function(D){D.bi_valid>8?Ms(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf);D.bi_buf=0;D.bi_valid=0};
N$y=function(D,Y,R){y6o(D);Ms(D,R);Ms(D,~R);zF.arraySet(D.pending_buf,D.window,Y,R,D.pending);D.pending+=R};
llr=function(D,Y,R,Z){var t=Y*2,X=R*2;return D[t]<D[X]||D[t]===D[X]&&Z[Y]<=Z[R]};
J6r=function(D,Y,R){for(var Z=D.heap[R],t=R<<1;t<=D.heap_len;){t<D.heap_len&&llr(Y,D.heap[t+1],D.heap[t],D.depth)&&t++;if(llr(Y,Z,D.heap[t],D.depth))break;D.heap[R]=D.heap[t];R=t;t<<=1}D.heap[R]=Z};
LVi=function(D,Y,R){var Z=0;if(D.last_lit!==0){do{var t=D.pending_buf[D.d_buf+Z*2]<<8|D.pending_buf[D.d_buf+Z*2+1];var X=D.pending_buf[D.l_buf+Z];Z++;if(t===0)Wg(D,X,Y);else{var M=Sh[X];Wg(D,M+256+1,Y);var W=kaS[M];W!==0&&(X-=U3M[M],Cq(D,X,W));t--;M=t<256?TF[t]:TF[256+(t>>>7)];Wg(D,M,R);W=KVU[M];W!==0&&(t-=hsy[M],Cq(D,t,W))}}while(Z<D.last_lit)}Wg(D,256,Y)};
m3y=function(D,Y){var R=Y.dyn_tree,Z=Y.stat_desc.static_tree,t=Y.stat_desc.has_stree,X=Y.stat_desc.elems,M,W=-1;D.heap_len=0;D.heap_max=573;for(M=0;M<X;M++)R[M*2]!==0?(D.heap[++D.heap_len]=W=M,D.depth[M]=0):R[M*2+1]=0;for(;D.heap_len<2;){var z=D.heap[++D.heap_len]=W<2?++W:0;R[z*2]=1;D.depth[z]=0;D.opt_len--;t&&(D.static_len-=Z[z*2+1])}Y.max_code=W;for(M=D.heap_len>>1;M>=1;M--)J6r(D,R,M);z=X;do M=D.heap[1],D.heap[1]=D.heap[D.heap_len--],J6r(D,R,1),Z=D.heap[1],D.heap[--D.heap_max]=M,D.heap[--D.heap_max]=
Z,R[z*2]=R[M*2]+R[Z*2],D.depth[z]=(D.depth[M]>=D.depth[Z]?D.depth[M]:D.depth[Z])+1,R[M*2+1]=R[Z*2+1]=z,D.heap[1]=z++,J6r(D,R,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1];M=Y.dyn_tree;z=Y.max_code;Z=Y.stat_desc.static_tree;t=Y.stat_desc.has_stree;X=Y.stat_desc.extra_bits;var I=Y.stat_desc.extra_base,F=Y.stat_desc.max_length,G,V=0;for(G=0;G<=15;G++)D.bl_count[G]=0;M[D.heap[D.heap_max]*2+1]=0;for(Y=D.heap_max+1;Y<573;Y++){var e=D.heap[Y];G=M[M[e*2+1]*2+1]+1;G>F&&(G=F,V++);M[e*2+1]=G;if(!(e>
z)){D.bl_count[G]++;var r=0;e>=I&&(r=X[e-I]);var l=M[e*2];D.opt_len+=l*(G+r);t&&(D.static_len+=l*(Z[e*2+1]+r))}}if(V!==0){do{for(G=F-1;D.bl_count[G]===0;)G--;D.bl_count[G]--;D.bl_count[G+1]+=2;D.bl_count[F]--;V-=2}while(V>0);for(G=F;G!==0;G--)for(e=D.bl_count[G];e!==0;)Z=D.heap[--Y],Z>z||(M[Z*2+1]!==G&&(D.opt_len+=(G-M[Z*2+1])*M[Z*2],M[Z*2+1]=G),e--)}oI9(R,W,D.bl_count)};
q$n=function(D,Y,R){var Z,t=-1,X=Y[1],M=0,W=7,z=4;X===0&&(W=138,z=3);Y[(R+1)*2+1]=65535;for(Z=0;Z<=R;Z++){var I=X;X=Y[(Z+1)*2+1];++M<W&&I===X||(M<z?D.bl_tree[I*2]+=M:I!==0?(I!==t&&D.bl_tree[I*2]++,D.bl_tree[32]++):M<=10?D.bl_tree[34]++:D.bl_tree[36]++,M=0,t=I,X===0?(W=138,z=3):I===X?(W=6,z=3):(W=7,z=4))}};
Hnr=function(D,Y,R){var Z,t=-1,X=Y[1],M=0,W=7,z=4;X===0&&(W=138,z=3);for(Z=0;Z<=R;Z++){var I=X;X=Y[(Z+1)*2+1];if(!(++M<W&&I===X)){if(M<z){do Wg(D,I,D.bl_tree);while(--M!==0)}else I!==0?(I!==t&&(Wg(D,I,D.bl_tree),M--),Wg(D,16,D.bl_tree),Cq(D,M-3,2)):M<=10?(Wg(D,17,D.bl_tree),Cq(D,M-3,3)):(Wg(D,18,D.bl_tree),Cq(D,M-11,7));M=0;t=I;X===0?(W=138,z=3):I===X?(W=6,z=3):(W=7,z=4)}}};
x3U=function(D){var Y=4093624447,R;for(R=0;R<=31;R++,Y>>>=1)if(Y&1&&D.dyn_ltree[R*2]!==0)return 0;if(D.dyn_ltree[18]!==0||D.dyn_ltree[20]!==0||D.dyn_ltree[26]!==0)return 1;for(R=32;R<256;R++)if(D.dyn_ltree[R*2]!==0)return 1;return 0};
jh=function(D,Y,R){D.pending_buf[D.d_buf+D.last_lit*2]=Y>>>8&255;D.pending_buf[D.d_buf+D.last_lit*2+1]=Y&255;D.pending_buf[D.l_buf+D.last_lit]=R&255;D.last_lit++;Y===0?D.dyn_ltree[R*2]++:(D.matches++,Y--,D.dyn_ltree[(Sh[R]+256+1)*2]++,D.dyn_dtree[(Y<256?TF[Y]:TF[256+(Y>>>7)])*2]++);return D.last_lit===D.lit_bufsize-1};
FG=function(D,Y){D.msg=IE[Y];return Y};
GF=function(D){for(var Y=D.length;--Y>=0;)D[Y]=0};
Vc=function(D){var Y=D.state,R=Y.pending;R>D.avail_out&&(R=D.avail_out);R!==0&&(zF.arraySet(D.output,Y.pending_buf,Y.pending_out,R,D.next_out),D.next_out+=R,Y.pending_out+=R,D.total_out+=R,D.avail_out-=R,Y.pending-=R,Y.pending===0&&(Y.pending_out=0))};
AP=function(D,Y){var R=D.block_start>=0?D.block_start:-1,Z=D.strstart-D.block_start,t=0;if(D.level>0){D.strm.data_type===2&&(D.strm.data_type=x3U(D));m3y(D,D.l_desc);m3y(D,D.d_desc);q$n(D,D.dyn_ltree,D.l_desc.max_code);q$n(D,D.dyn_dtree,D.d_desc.max_code);m3y(D,D.bl_desc);for(t=18;t>=3&&D.bl_tree[PXy[t]*2+1]===0;t--);D.opt_len+=3*(t+1)+5+5+4;var X=D.opt_len+3+7>>>3;var M=D.static_len+3+7>>>3;M<=X&&(X=M)}else X=M=Z+5;if(Z+4<=X&&R!==-1)Cq(D,Y?1:0,3),N$y(D,R,Z);else if(D.strategy===4||M===X)Cq(D,2+(Y?
1:0),3),LVi(D,fq,eh);else{Cq(D,4+(Y?1:0),3);R=D.l_desc.max_code+1;Z=D.d_desc.max_code+1;t+=1;Cq(D,R-257,5);Cq(D,Z-1,5);Cq(D,t-4,4);for(X=0;X<t;X++)Cq(D,D.bl_tree[PXy[X]*2+1],3);Hnr(D,D.dyn_ltree,R-1);Hnr(D,D.dyn_dtree,Z-1);LVi(D,D.dyn_ltree,D.dyn_dtree)}bnn(D);Y&&y6o(D);D.block_start=D.strstart;Vc(D.strm)};
nq=function(D,Y){D.pending_buf[D.pending++]=Y};
rR=function(D,Y){D.pending_buf[D.pending++]=Y>>>8&255;D.pending_buf[D.pending++]=Y&255};
QQS=function(D,Y){var R=D.max_chain_length,Z=D.strstart,t=D.prev_length,X=D.nice_match,M=D.strstart>D.w_size-262?D.strstart-(D.w_size-262):0,W=D.window,z=D.w_mask,I=D.prev,F=D.strstart+258,G=W[Z+t-1],V=W[Z+t];D.prev_length>=D.good_match&&(R>>=2);X>D.lookahead&&(X=D.lookahead);do{var e=Y;if(W[e+t]===V&&W[e+t-1]===G&&W[e]===W[Z]&&W[++e]===W[Z+1]){Z+=2;for(e++;W[++Z]===W[++e]&&W[++Z]===W[++e]&&W[++Z]===W[++e]&&W[++Z]===W[++e]&&W[++Z]===W[++e]&&W[++Z]===W[++e]&&W[++Z]===W[++e]&&W[++Z]===W[++e]&&Z<F;);
e=258-(F-Z);Z=F-258;if(e>t){D.match_start=Y;t=e;if(e>=X)break;G=W[Z+t-1];V=W[Z+t]}}}while((Y=I[Y&z])>M&&--R!==0);return t<=D.lookahead?t:D.lookahead};
$Q=function(D){var Y=D.w_size,R;do{var Z=D.window_size-D.lookahead-D.strstart;if(D.strstart>=Y+(Y-262)){zF.arraySet(D.window,D.window,Y,Y,0);D.match_start-=Y;D.strstart-=Y;D.block_start-=Y;var t=R=D.hash_size;do{var X=D.head[--t];D.head[t]=X>=Y?X-Y:0}while(--R);t=R=Y;do X=D.prev[--t],D.prev[t]=X>=Y?X-Y:0;while(--R);Z+=Y}if(D.strm.avail_in===0)break;t=D.strm;R=D.window;X=D.strstart+D.lookahead;var M=t.avail_in;M>Z&&(M=Z);M===0?R=0:(t.avail_in-=M,zF.arraySet(R,t.input,t.next_in,M,X),t.state.wrap===
1?t.adler=B$9(t.adler,R,M,X):t.state.wrap===2&&(t.adler=wR(t.adler,R,M,X)),t.next_in+=M,t.total_in+=M,R=M);D.lookahead+=R;if(D.lookahead+D.insert>=3)for(Z=D.strstart-D.insert,D.ins_h=D.window[Z],D.ins_h=(D.ins_h<<D.hash_shift^D.window[Z+1])&D.hash_mask;D.insert&&!(D.ins_h=(D.ins_h<<D.hash_shift^D.window[Z+3-1])&D.hash_mask,D.prev[Z&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=Z,Z++,D.insert--,D.lookahead+D.insert<3););}while(D.lookahead<262&&D.strm.avail_in!==0)};
pGU=function(D,Y){for(var R;;){if(D.lookahead<262){$Q(D);if(D.lookahead<262&&Y===0)return 1;if(D.lookahead===0)break}R=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,R=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);R!==0&&D.strstart-R<=D.w_size-262&&(D.match_length=QQS(D,R));if(D.match_length>=3)if(R=jh(D,D.strstart-D.match_start,D.match_length-3),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=3){D.match_length--;
do D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart;while(--D.match_length!==0);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else R=jh(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(R&&(AP(D,!1),D.strm.avail_out===0))return 1}D.insert=D.strstart<2?D.strstart:2;return Y===4?(AP(D,
!0),D.strm.avail_out===0?3:4):D.last_lit&&(AP(D,!1),D.strm.avail_out===0)?1:2};
vg=function(D,Y){for(var R,Z;;){if(D.lookahead<262){$Q(D);if(D.lookahead<262&&Y===0)return 1;if(D.lookahead===0)break}R=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,R=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);D.prev_length=D.match_length;D.prev_match=D.match_start;D.match_length=2;R!==0&&D.prev_length<D.max_lazy_match&&D.strstart-R<=D.w_size-262&&(D.match_length=QQS(D,R),D.match_length<=5&&(D.strategy===1||D.match_length===3&&
D.strstart-D.match_start>4096)&&(D.match_length=2));if(D.prev_length>=3&&D.match_length<=D.prev_length){Z=D.strstart+D.lookahead-3;R=jh(D,D.strstart-1-D.prev_match,D.prev_length-3);D.lookahead-=D.prev_length-1;D.prev_length-=2;do++D.strstart<=Z&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);while(--D.prev_length!==0);D.match_available=0;D.match_length=2;D.strstart++;if(R&&(AP(D,!1),D.strm.avail_out===0))return 1}else if(D.match_available){if((R=
jh(D,0,D.window[D.strstart-1]))&&AP(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return 1}else D.match_available=1,D.strstart++,D.lookahead--}D.match_available&&(jh(D,0,D.window[D.strstart-1]),D.match_available=0);D.insert=D.strstart<2?D.strstart:2;return Y===4?(AP(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(AP(D,!1),D.strm.avail_out===0)?1:2};
EIy=function(D,Y){for(var R,Z,t,X=D.window;;){if(D.lookahead<=258){$Q(D);if(D.lookahead<=258&&Y===0)return 1;if(D.lookahead===0)break}D.match_length=0;if(D.lookahead>=3&&D.strstart>0&&(Z=D.strstart-1,R=X[Z],R===X[++Z]&&R===X[++Z]&&R===X[++Z])){for(t=D.strstart+258;R===X[++Z]&&R===X[++Z]&&R===X[++Z]&&R===X[++Z]&&R===X[++Z]&&R===X[++Z]&&R===X[++Z]&&R===X[++Z]&&Z<t;);D.match_length=258-(t-Z);D.match_length>D.lookahead&&(D.match_length=D.lookahead)}D.match_length>=3?(R=jh(D,1,D.match_length-3),D.lookahead-=
D.match_length,D.strstart+=D.match_length,D.match_length=0):(R=jh(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++);if(R&&(AP(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return Y===4?(AP(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(AP(D,!1),D.strm.avail_out===0)?1:2};
gIn=function(D,Y){for(var R;;){if(D.lookahead===0&&($Q(D),D.lookahead===0)){if(Y===0)return 1;break}D.match_length=0;R=jh(D,0,D.window[D.strstart]);D.lookahead--;D.strstart++;if(R&&(AP(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return Y===4?(AP(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(AP(D,!1),D.strm.avail_out===0)?1:2};
oE=function(D,Y,R,Z,t){this.good_length=D;this.max_lazy=Y;this.nice_length=R;this.max_chain=Z;this.func=t};
d3U=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 zF.Buf16(1146);this.dyn_dtree=new zF.Buf16(122);this.bl_tree=new zF.Buf16(78);GF(this.dyn_ltree);GF(this.dyn_dtree);GF(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new zF.Buf16(16);this.heap=new zF.Buf16(573);GF(this.heap);this.heap_max=this.heap_len=0;this.depth=new zF.Buf16(573);GF(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};
iny=function(D,Y){if(!D||!D.state||Y>5||Y<0)return D?FG(D,-2):-2;var R=D.state;if(!D.output||!D.input&&D.avail_in!==0||R.status===666&&Y!==4)return FG(D,D.avail_out===0?-5:-2);R.strm=D;var Z=R.last_flush;R.last_flush=Y;if(R.status===42)if(R.wrap===2)D.adler=0,nq(R,31),nq(R,139),nq(R,8),R.gzhead?(nq(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),nq(R,R.gzhead.time&255),nq(R,R.gzhead.time>>8&255),nq(R,R.gzhead.time>>16&255),nq(R,R.gzhead.time>>
24&255),nq(R,R.level===9?2:R.strategy>=2||R.level<2?4:0),nq(R,R.gzhead.os&255),R.gzhead.extra&&R.gzhead.extra.length&&(nq(R,R.gzhead.extra.length&255),nq(R,R.gzhead.extra.length>>8&255)),R.gzhead.hcrc&&(D.adler=wR(D.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=69):(nq(R,0),nq(R,0),nq(R,0),nq(R,0),nq(R,0),nq(R,R.level===9?2:R.strategy>=2||R.level<2?4:0),nq(R,3),R.status=113);else{var t=8+(R.w_bits-8<<4)<<8;t|=(R.strategy>=2||R.level<2?0:R.level<6?1:R.level===6?2:3)<<6;R.strstart!==0&&(t|=
32);R.status=113;rR(R,t+(31-t%31));R.strstart!==0&&(rR(R,D.adler>>>16),rR(R,D.adler&65535));D.adler=1}if(R.status===69)if(R.gzhead.extra){for(t=R.pending;R.gzindex<(R.gzhead.extra.length&65535)&&(R.pending!==R.pending_buf_size||(R.gzhead.hcrc&&R.pending>t&&(D.adler=wR(D.adler,R.pending_buf,R.pending-t,t)),Vc(D),t=R.pending,R.pending!==R.pending_buf_size));)nq(R,R.gzhead.extra[R.gzindex]&255),R.gzindex++;R.gzhead.hcrc&&R.pending>t&&(D.adler=wR(D.adler,R.pending_buf,R.pending-t,t));R.gzindex===R.gzhead.extra.length&&
(R.gzindex=0,R.status=73)}else R.status=73;if(R.status===73)if(R.gzhead.name){t=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>t&&(D.adler=wR(D.adler,R.pending_buf,R.pending-t,t)),Vc(D),t=R.pending,R.pending===R.pending_buf_size)){var X=1;break}X=R.gzindex<R.gzhead.name.length?R.gzhead.name.charCodeAt(R.gzindex++)&255:0;nq(R,X)}while(X!==0);R.gzhead.hcrc&&R.pending>t&&(D.adler=wR(D.adler,R.pending_buf,R.pending-t,t));X===0&&(R.gzindex=0,R.status=91)}else R.status=91;if(R.status===
91)if(R.gzhead.comment){t=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>t&&(D.adler=wR(D.adler,R.pending_buf,R.pending-t,t)),Vc(D),t=R.pending,R.pending===R.pending_buf_size)){X=1;break}X=R.gzindex<R.gzhead.comment.length?R.gzhead.comment.charCodeAt(R.gzindex++)&255:0;nq(R,X)}while(X!==0);R.gzhead.hcrc&&R.pending>t&&(D.adler=wR(D.adler,R.pending_buf,R.pending-t,t));X===0&&(R.status=103)}else R.status=103;R.status===103&&(R.gzhead.hcrc?(R.pending+2>R.pending_buf_size&&Vc(D),
R.pending+2<=R.pending_buf_size&&(nq(R,D.adler&255),nq(R,D.adler>>8&255),D.adler=0,R.status=113)):R.status=113);if(R.pending!==0){if(Vc(D),D.avail_out===0)return R.last_flush=-1,0}else if(D.avail_in===0&&(Y<<1)-(Y>4?9:0)<=(Z<<1)-(Z>4?9:0)&&Y!==4)return FG(D,-5);if(R.status===666&&D.avail_in!==0)return FG(D,-5);if(D.avail_in!==0||R.lookahead!==0||Y!==0&&R.status!==666){Z=R.strategy===2?gIn(R,Y):R.strategy===3?EIy(R,Y):bD[R.level].func(R,Y);if(Z===3||Z===4)R.status=666;if(Z===1||Z===3)return D.avail_out===
0&&(R.last_flush=-1),0;if(Z===2&&(Y===1?(Cq(R,2,3),Wg(R,256,fq),R.bi_valid===16?(Ms(R,R.bi_buf),R.bi_buf=0,R.bi_valid=0):R.bi_valid>=8&&(R.pending_buf[R.pending++]=R.bi_buf&255,R.bi_buf>>=8,R.bi_valid-=8)):Y!==5&&(Cq(R,0,3),N$y(R,0,0),Y===3&&(GF(R.head),R.lookahead===0&&(R.strstart=0,R.block_start=0,R.insert=0))),Vc(D),D.avail_out===0))return R.last_flush=-1,0}if(Y!==4)return 0;if(R.wrap<=0)return 1;R.wrap===2?(nq(R,D.adler&255),nq(R,D.adler>>8&255),nq(R,D.adler>>16&255),nq(R,D.adler>>24&255),nq(R,
D.total_in&255),nq(R,D.total_in>>8&255),nq(R,D.total_in>>16&255),nq(R,D.total_in>>24&255)):(rR(R,D.adler>>>16),rR(R,D.adler&65535));Vc(D);R.wrap>0&&(R.wrap=-R.wrap);return R.pending!==0?0:1};
OnM=function(D){if(!(this instanceof OnM))return new OnM(D);D=this.options=zF.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},D||{});D.raw&&D.windowBits>0?D.windowBits=-D.windowBits:D.gzip&&D.windowBits>0&&D.windowBits<16&&(D.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new c6o;this.strm.avail_out=0;var Y=this.strm;var R=D.level,Z=D.method,t=D.windowBits,X=D.memLevel,M=D.strategy;if(Y){var W=1;R===-1&&(R=6);t<0?(W=0,t=-t):t>15&&
(W=2,t-=16);if(X<1||X>9||Z!==8||t<8||t>15||R<0||R>9||M<0||M>4)Y=FG(Y,-2);else{t===8&&(t=9);var z=new d3U;Y.state=z;z.strm=Y;z.wrap=W;z.gzhead=null;z.w_bits=t;z.w_size=1<<z.w_bits;z.w_mask=z.w_size-1;z.hash_bits=X+7;z.hash_size=1<<z.hash_bits;z.hash_mask=z.hash_size-1;z.hash_shift=~~((z.hash_bits+3-1)/3);z.window=new zF.Buf8(z.w_size*2);z.head=new zF.Buf16(z.hash_size);z.prev=new zF.Buf16(z.w_size);z.lit_bufsize=1<<X+6;z.pending_buf_size=z.lit_bufsize*4;z.pending_buf=new zF.Buf8(z.pending_buf_size);
z.d_buf=z.lit_bufsize;z.l_buf=3*z.lit_bufsize;z.level=R;z.strategy=M;z.method=Z;if(Y&&Y.state){Y.total_in=Y.total_out=0;Y.data_type=2;R=Y.state;R.pending=0;R.pending_out=0;R.wrap<0&&(R.wrap=-R.wrap);R.status=R.wrap?42:113;Y.adler=R.wrap===2?0:1;R.last_flush=0;if(!DB$){Z=Array(16);for(X=M=0;X<28;X++)for(U3M[X]=M,t=0;t<1<<kaS[X];t++)Sh[M++]=X;Sh[M-1]=X;for(X=M=0;X<16;X++)for(hsy[X]=M,t=0;t<1<<KVU[X];t++)TF[M++]=X;for(M>>=7;X<30;X++)for(hsy[X]=M<<7,t=0;t<1<<KVU[X]-7;t++)TF[256+M++]=X;for(t=0;t<=15;t++)Z[t]=
0;for(t=0;t<=143;)fq[t*2+1]=8,t++,Z[8]++;for(;t<=255;)fq[t*2+1]=9,t++,Z[9]++;for(;t<=279;)fq[t*2+1]=7,t++,Z[7]++;for(;t<=287;)fq[t*2+1]=8,t++,Z[8]++;oI9(fq,287,Z);for(t=0;t<30;t++)eh[t*2+1]=5,eh[t*2]=vIU(t,5);YgU=new wGU(fq,kaS,257,286,15);RJl=new wGU(eh,KVU,0,30,15);Zr5=new wGU([],tNU,0,19,7);DB$=!0}R.l_desc=new $39(R.dyn_ltree,YgU);R.d_desc=new $39(R.dyn_dtree,RJl);R.bl_desc=new $39(R.bl_tree,Zr5);R.bi_buf=0;R.bi_valid=0;bnn(R);R=0}else R=FG(Y,-2);R===0&&(Y=Y.state,Y.window_size=2*Y.w_size,GF(Y.head),
Y.max_lazy_match=bD[Y.level].max_lazy,Y.good_match=bD[Y.level].good_length,Y.nice_match=bD[Y.level].nice_length,Y.max_chain_length=bD[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=2,Y.match_available=0,Y.ins_h=0);Y=R}}else Y=-2;if(Y!==0)throw Error(IE[Y]);D.header&&(Y=this.strm)&&Y.state&&Y.state.wrap===2&&(Y.state.gzhead=D.header);if(D.dictionary){var I;typeof D.dictionary==="string"?I=sU5(D.dictionary):XEU.call(D.dictionary)==="[object ArrayBuffer]"?
I=new Uint8Array(D.dictionary):I=D.dictionary;D=this.strm;X=I;M=X.length;if(D&&D.state)if(I=D.state,Y=I.wrap,Y===2||Y===1&&I.status!==42||I.lookahead)Y=-2;else{Y===1&&(D.adler=B$9(D.adler,X,M,0));I.wrap=0;M>=I.w_size&&(Y===0&&(GF(I.head),I.strstart=0,I.block_start=0,I.insert=0),R=new zF.Buf8(I.w_size),zF.arraySet(R,X,M-I.w_size,I.w_size,0),X=R,M=I.w_size);R=D.avail_in;Z=D.next_in;t=D.input;D.avail_in=M;D.next_in=0;D.input=X;for($Q(I);I.lookahead>=3;){X=I.strstart;M=I.lookahead-2;do I.ins_h=(I.ins_h<<
I.hash_shift^I.window[X+3-1])&I.hash_mask,I.prev[X&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=X,X++;while(--M);I.strstart=X;I.lookahead=2;$Q(I)}I.strstart+=I.lookahead;I.block_start=I.strstart;I.insert=I.lookahead;I.lookahead=0;I.match_length=I.prev_length=2;I.match_available=0;D.next_in=Z;D.input=t;D.avail_in=R;I.wrap=Y;Y=0}else Y=-2;if(Y!==0)throw Error(IE[Y]);this._dict_set=!0}};
uvj=function(D,Y){Y=Y||{};Y.gzip=!0;Y=new OnM(Y);Y.push(D,!0);if(Y.err)throw Y.msg||IE[Y.err];return Y.result};
MN$=function(D,Y){var R=ahn();R&&R.publish.call(R,D.toString(),D,Y)};
TdU=function(D,Y,R){var Z=ahn();if(!Z)return 0;var t=Z.subscribe(D.toString(),function(X,M){var W=_.mf("ytPubsub2Pubsub2SkipSubKey");W&&W==t||(W=function(){if(CPy[t])try{if(M&&D instanceof W4b&&D!=X)try{var z=D.dataClass,I=M;if(!I.args||!I.version)throw Error("Vc");try{if(!z.version_){var F=new z;z.version_=F.version}var G=z.version_}catch(V){}if(!G||I.version!=G)throw Error("Wc");try{M=Reflect.construct(z,_.q$(I.args))}catch(V){throw V.message="yt.pubsub2.Data.deserialize(): "+V.message,V;}}catch(V){throw V.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+D.toString()+": "+V.message,V;}Y.call(R||window,M)}catch(V){_.hQ(V)}},zJU[D.toString()]?_.mf("yt.scheduler.instance")?_.yc.addLowPriorityJob(W):_.ME(W,0):W())});
CPy[t]=!0;Sgn[D.toString()]||(Sgn[D.toString()]=[]);Sgn[D.toString()].push(t);return t};
GmU=function(){var D=jUb,Y=TdU(Ih5,function(R){D.apply(void 0,arguments);F4U(Y)});
return Y};
F4U=function(D){var Y=ahn();Y&&(typeof D==="number"&&(D=[D]),_.xs(D,function(R){Y.unsubscribeByKey(R);delete CPy[R]}))};
ahn=function(){return _.mf("ytPubsub2Pubsub2Instance")};
VNo=function(D,Y,R){R=R===void 0?{sampleRate:.1}:R;Math.random()<Math.min(.02,R.sampleRate/100)&&MN$("meta_logging_csi_event",{timerName:D,timelineData:Y})};
_.fho=function(D){return D?(D=D.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.EN(D):null:null};
_.Ns=function(D){return D?(D=D.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Af(D):null:null};
Ajj=function(){eJi||(eJi=_.Ns(_.JQ("WORKER_SERIALIZATION_URL")));return eJi||void 0};
_.rjU=function(){var D=Ajj();nyy||D===void 0||(nyy=new Worker(_.n$(D),void 0));return nyy};
_.wEj=function(){return typeof Worker==="function"&&Ajj()?!0:!1};
_.brj=function(){if(_.wEj()&&!$BS){var D=function(R){R=R.data;if(R.op==="gzippedGelBatch"){var Z=vyj.get(R.key);Z&&(oyi(R.gzippedBatch,Z.latencyPayload,Z.url,Z.options,Z.sendFn),vyj.delete(R.key))}},Y=_.rjU();
Y&&(Y.addEventListener("message",D),Y.onerror=function(){vyj.clear()},$BS=!0)}};
K4S=function(D,Y,R,Z,t){t=t===void 0?!1:t;var X={startTime:(0,_.DO)(),ticks:{},infos:{}};if(lD)try{var M=yjU(Y);if(M!=null&&(M>Nd5||M<lhr))Z(D,R);else{if(_.f("gzip_gel_with_worker")&&(_.f("initial_gzip_use_main_thread")&&!Jjn||!_.f("initial_gzip_use_main_thread"))){$BS||_.brj();var W=_.rjU();if(W&&!t){vyj.set(kmU,{latencyPayload:X,url:D,options:R,sendFn:Z});W.postMessage({op:"gelBatchToGzip",serializedBatch:Y,key:kmU});kmU++;return}}var z=uvj(UBU(Y));oyi(z,X,D,R,Z)}}catch(I){_.qJ(I),Z(D,R)}else Z(D,
R)};
oyi=function(D,Y,R,Z,t){Jjn=!1;var X=(0,_.DO)();Y.ticks.gelc=X;JP++;_.f("disable_compression_due_to_performance_degredation")&&X-Y.startTime>=hJM&&(L4o++,_.f("abandon_compression_after_N_slow_zips")?JP===_.ZH("compression_disable_point")&&L4o>mBU&&(lD=!1):lD=!1);qgy(Y);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=D;Z.postParams=void 0;t(R,Z)};
HrU=function(D){var Y=Y===void 0?!1:Y;var R=R===void 0?!1:R;var Z=(0,_.DO)(),t={startTime:Z,ticks:{},infos:{}},X=Y?_.mf("yt.logging.gzipForFetch",!1):!0;if(lD&&X){if(!D.body)return D;try{var M=R?D.body:typeof D.body==="string"?D.body:JSON.stringify(D.body);X=M;if(!R&&typeof M==="string"){var W=yjU(M);if(W!=null&&(W>Nd5||W<lhr))return D;R=Y?{level:1}:void 0;X=uvj(UBU(M),R);var z=(0,_.DO)();t.ticks.gelc=z;if(Y){JP++;if((_.f("disable_compression_due_to_performance_degredation")||_.f("disable_compression_due_to_performance_degradation_lr"))&&
z-Z>=hJM)if(L4o++,_.f("abandon_compression_after_N_slow_zips")||_.f("abandon_compression_after_N_slow_zips_lr")){Y=L4o/JP;var I=mBU/_.ZH("compression_disable_point");JP>0&&JP%_.ZH("compression_disable_point")===0&&Y>=I&&(lD=!1)}else lD=!1;qgy(t)}}D.headers=Object.assign({},{"Content-Encoding":"gzip"},D.headers||{});D.body=X;return D}catch(F){return _.qJ(F),D}}else return D};
yjU=function(D){try{return(new Blob(D.split(""))).size}catch(Y){return _.qJ(Y),null}};
qgy=function(D){_.f("gel_compression_csi_killswitch")||!_.f("log_gel_compression_latency")&&!_.f("log_gel_compression_latency_lr")||VNo("gel_compression",D,{sampleRate:.1})};
xBi=function(){this.blockSize=-1};
kQ=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var D=1;D<this.blockSize;++D)this.pad_[D]=0;this.total_=this.inbuf_=0;this.reset()};
QUo=function(D){D=Object.assign({},D);delete D.Authorization;var Y=_.PPU();if(Y){var R=new kQ;R.update(_.JQ("INNERTUBE_API_KEY"));R.update(Y);D.hash=_.rb(R.digest(),3)}return D};
Kq=function(){BdM||(BdM=new _.U1("yt.innertube"));return BdM};
pEl=function(D,Y,R,Z){if(Z)return null;Z=Kq().get("nextId",!0)||1;var t=Kq().get("requests",!0)||{};t[Z]={method:D,request:Y,authState:QUo(R),requestTime:Math.round((0,_.DO)())};Kq().set("nextId",Z+1,86400,!0);Kq().set("requests",t,86400,!0);return Z};
Eyn=function(D){var Y=Kq().get("requests",!0)||{};delete Y[D];Kq().set("requests",Y,86400,!0)};
dBi=function(D){var Y=Kq().get("requests",!0);if(Y){for(var R in Y){var Z=Y[R];if(!(Math.round((0,_.DO)())-Z.requestTime<6E4)){var t=Z.authState,X=QUo(_.nIb(!1));_.y7.equals(t,X)&&(t=Z.request,"requestTimeMs"in t&&(t.requestTimeMs=Math.round((0,_.DO)())),gyU(D,Z.method,t,{}));delete Y[R]}}Kq().set("requests",Y,86400,!0)}};
irb=function(D){var Y;return(D=D==null?void 0:(Y=D.error)==null?void 0:Y.code)&&D>=400&&D<=599?!1:!0};
Or9=function(D){var Y;D=D==null?void 0:(Y=D.error)==null?void 0:Y.code;return!(D!==400&&D!==415)};
DIU=function(){if(cj9)return cj9();var D={};cj9=cr("LogsDatabaseV2",{objectStores:(D.LogsRequestsStore={addedAtVersion:2},D),shared:!1,upgrade:function(Y,R,Z){R(2)&&hP(Y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});R(3);R(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.JSC$10609_wrapped.indexNames.contains("newRequest")&&Z.JSC$10609_wrapped.deleteIndex("newRequest"),Lq(Z,"newRequestV2",["status","interface","timestamp"]));R(7)&&Y.JSC$10594_wrapped.objectStoreNames.contains("sapisid")&&Y.JSC$10594_wrapped.deleteObjectStore("sapisid");
R(9)&&Y.JSC$10594_wrapped.objectStoreNames.contains("SWHealthLog")&&Y.JSC$10594_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return cj9()};
mi=function(D){return _.Qf(DIU(),D)};
RUS=function(D,Y){var R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return R={startTime:(0,_.DO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},M.yield(mi(Y),2);if(M.nextAddress!=3)return Z=M.yieldResult,t=Object.assign({},D,{options:JSON.parse(JSON.stringify(D.options)),interface:_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),M.yield(Z.put("LogsRequestsStore",t),3);X=M.yieldResult;R.ticks.tc=(0,_.DO)();Y4l(R);return M.return(X)})};
Z8U=function(D,Y){var R,Z,t,X,M,W,z,I,F;return _.C(function(G){if(G.nextAddress==1)return R={startTime:(0,_.DO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},G.yield(mi(Y),2);if(G.nextAddress!=3)return Z=G.yieldResult,t=_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME",0),X=[D,t,0],M=[D,t,(0,_.DO)()],W=IDBKeyRange.bound(X,M),z="prev",_.f("use_fifo_for_networkless")&&(z="next"),I=void 0,F=D==="NEW"?"readwrite":"readonly",_.f("use_readonly_for_get_most_recent_by_status_killswitch")&&(F="readwrite"),
G.yield(_.Br(Z,["LogsRequestsStore"],{mode:F,enableRetries:!0},function(V){return _.YQ(V.objectStore("LogsRequestsStore").index("newRequestV2"),{query:W,direction:z},function(e){e.getValue()&&(I=e.getValue(),D==="NEW"&&(I.status="QUEUED",e.update(I)))})}),3);
R.ticks.tc=(0,_.DO)();Y4l(R);return G.return(I)})};
tvS=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(mi(Y),2);R=Z.yieldResult;return Z.return(_.Br(R,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){var X=t.objectStore("LogsRequestsStore");return X.get(D).then(function(M){if(M)return M.status="QUEUED",X.put(M).then(function(){return M})})}))})};
sTU=function(D,Y,R,Z){R=R===void 0?!0:R;var t;return _.C(function(X){if(X.nextAddress==1)return X.yield(mi(Y),2);t=X.yieldResult;return X.return(_.Br(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var W=M.objectStore("LogsRequestsStore");return W.get(D).then(function(z){return z?(z.status="NEW",R&&(z.sendCount+=1),Z!==void 0&&(z.options.compress=Z),W.put(z).then(function(){return z})):hT.resolve(void 0)})}))})};
XL5=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(mi(Y),2);R=Z.yieldResult;return Z.return(R.delete("LogsRequestsStore",D))})};
uKS=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(mi(D),2);Y=Z.yieldResult;R=(0,_.DO)()-2592E6;return Z.yield(_.Br(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(t){return EK(t.objectStore("LogsRequestsStore"),{},function(X){if(X.getValue().timestamp<=R)return X.delete().then(function(){return X.continue()})})}),0)})};
aXl=function(){_.C(function(D){return D.yield(ihl("LogsDatabaseV2"),0)})};
Y4l=function(D){_.f("nwl_csi_killswitch")||VNo("networkless_performance",D,{sampleRate:1})};
_.CfU=function(D){return _.Qf(Mv5(),D)};
WQU=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.CfU(D),2);Y=Z.yieldResult;R=(0,_.DO)()-2592E6;return Z.yield(_.Br(Y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){return EK(t.objectStore("SWHealthLog"),{},function(X){if(X.getValue().timestamp<=R)return X.delete().then(function(){return X.continue()})})}),0)})};
zUi=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(_.CfU(D),2);Y=R.yieldResult;return R.yield(Y.clear("SWHealthLog"),0)})};
_.qs=function(D,Y,R,Z,t,X,M){t=t===void 0?"":t;X=X===void 0?!1:X;M=M===void 0?!1:M;if(D)if(R&&!JT("cobalt"))_.qJ(new _.AT("Legacy referrer-scrubbed ping detected")),D&&S4l(D,void 0,{scrubReferrer:!0});else if(t)mXU(D,Y,"POST",t,Z);else if(_.JQ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||M)mXU(D,Y,"GET","",Z,void 0,X,M);else{b:{try{c:{var W=new TsM({url:D});if(W.urlParamValues_.dsh==="1")var z=null;else{var I=W.urlParamValues_.ae;if(I==="1"){var F=W.urlParamValues_.adurl;if(F)try{z={version:3,directUrl:decodeURIComponent(F),
asyncUrl:wD$(W.JSC$9445_url_,"act=1","ri=1",jT5(W))};break c}catch(r){}}z=I==="2"?{version:4,directUrl:wD$(W.JSC$9445_url_,"dct=1","suid="+W.suid_,""),asyncUrl:wD$(W.JSC$9445_url_,"act=1","ri=1","suid="+W.suid_)}:null}}if(z){var G=_.zZ(D);var V=!(!G||!G.endsWith("/aclk")||_.LG(D,"ri")!=="1");break b}}catch(r){}V=!1}if(V){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(D,"")){var e=!0;break b}}catch(r){}e=!1}e?(Y&&Y(),R=!0):R=!1}else R=!1;R||S4l(D,Y)}};
S4l=function(D,Y,R){R=R===void 0?{}:R;var Z=new Image,t=""+IXU++;FQU[t]=Z;Z.onload=Z.onerror=function(){Y&&FQU[t]&&Y();delete FQU[t]};
R.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=D};
Hg=function(D,Y){GDU(D,Y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
VvM=function(D){var Y;return((Y=document.featurePolicy)==null?0:Y.allowedFeatures().includes("attribution-reporting"))?D+"&nis=6":D+"&nis=5"};
fXn=function(D){if(!D)return!1;try{var Y;if(((Y=_.PD(D))==null?void 0:Y.asm)==="4")return!0}catch(R){_.hQ(R)}return!1};
GDU=function(D,Y){Y?(D=VvM(D),_.qs(D,void 0,void 0,void 0,"",!0,!0)):_.qs(D)};
Air=function(){eUb||(eUb=new _.U1("yt.offline"));return eUb};
nCy=function(D){if(_.f("offline_error_handling")){var Y=Air().get("errors",!0)||{};Y[D.message]={name:D.name,stack:D.stack};D.level&&(Y[D.message].level=D.level);Air().set("errors",Y,2592E3,!0)}};
wLb=function(D,Y,R,Z){Z=Z===void 0?!1:Z;Y=_.f("web_fp_via_jspb")?Object.assign({},Y):Y;_.f("use_cfr_monitor")&&riU(D,Y);if(_.f("use_request_time_ms_header"))Y.headers&&i1(D)&&(Y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.DO)())));else{var t;if((t=Y.postParams)==null?0:t.requestTimeMs)Y.postParams.requestTimeMs=Math.round((0,_.DO)())}R&&Object.keys(Y).length===0?_.qs(D):Y.compress?Y.postBody?(typeof Y.postBody!=="string"&&(Y.postBody=JSON.stringify(Y.postBody)),K4S(D,Y.postBody,
Y,_.S$,Z)):K4S(D,JSON.stringify(Y.postParams),Y,PiU,Z):_.S$(D,Y)};
$Ij=function(D,Y){_.f("use_event_time_ms_header")&&i1(D)&&(Y.headers||(Y.headers={}),Y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.DO)())));return Y};
_.oCn=function(){vC5||(vC5=new _.xQ({logOfflineErrors:!0,enablePolling:!0}));return vC5};
riU=function(D,Y){var R=Y.onError?Y.onError:function(){};
Y.onError=function(t,X){Pg().requestComplete(D,!1);R(t,X)};
var Z=Y.onSuccess?Y.onSuccess:function(){};
Y.onSuccess=function(t,X){Pg().requestComplete(D,!0);Z(t,X)}};
_.b8U=function(){return _.gf(document.location.toString())!=="www.youtube-nocookie.com"};
_.lXr=function(){return _.mf("ytNetworklessLoggingInitializationOptions")?_.yiM.isNwlInitialized:_.NsU};
Jio=function(D,Y){if(_.f("polymer_on_demand_shady_dom")){var R;var Z=(R=D.__shady_native_firstElementChild)!=null?R:D.firstElementChild}else Z=D.firstElementChild;for(;Z;){if(D=Y(Z)?Z:Jio(Z,Y))return D;Z=Z.nextElementSibling}return null};
UIo=function(){var D=document;if("visibilityState"in D)return D.visibilityState;var Y=kD$+"VisibilityState";if(Y in D)return D[Y]};
_.KQn=function(D,Y){var R;Qc(D,function(Z){R=Y[Z];return!!R});
return R};
_.pq=function(D){var Y=hU$(D);Y?Y.focus(void 0):_.Bg(D)};
hU$=function(D){return(D=Jio(D,function(Y){return _.gR(Y)?LQn(Y)&&!!Y.offsetParent:!1}))?D:null};
_.Bg=function(D,Y){D.hasAttribute("tabindex")||D.setAttribute("tabindex","-1");D.focus(Y)};
mIU=function(D,Y,R,Z){Z=Z===void 0?{}:Z;D.addEventListener&&(Y!="mouseenter"||"onmouseenter"in document?Y!="mouseleave"||"onmouseenter"in document?Y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Y="MozMousePixelScroll"):Y="mouseout":Y="mouseover");return _.y7.findKey(dR,function(t){var X=typeof t[4]==="boolean"&&t[4]==!!Z,M=_.Bo(t[4])&&_.Bo(Z)&&_.y7.equals(t[4],Z);return!!t.length&&t[0]==D&&t[1]==Y&&t[2]==R&&(X||M)})};
_.O1=function(D,Y,R,Z){Z=Z===void 0?{}:Z;if(!D||!D.addEventListener&&!D.attachEvent)return"";var t=mIU(D,Y,R,Z);if(t)return t;t=++q4r.count+"";var X=!(Y!="mouseenter"&&Y!="mouseleave"||!D.addEventListener||"onmouseenter"in document);var M=X?function(W){W=new iD(W);if(!_.K0(W.relatedTarget,function(z){return z==D},!0))return W.currentTarget=D,W.type=Y,R.call(D,W)}:function(W){W=new iD(W);
W.currentTarget=D;return R.call(D,W)};
M=_.Lb(M);D.addEventListener?(Y=="mouseenter"&&X?Y="mouseover":Y=="mouseleave"&&X?Y="mouseout":Y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Y="MozMousePixelScroll"),H8r()||typeof Z==="boolean"?D.addEventListener(Y,M,Z):D.addEventListener(Y,M,!!Z.capture)):D.attachEvent("on"+Y,M);dR[t]=[D,Y,R,M,Z];return t};
_.Pfn=function(D,Y,R){var Z=Z===void 0?{}:Z;var t=_.O1(D,Y,function(){_.xIo(t);R.apply(D,arguments)},Z)};
_.xIo=function(D){D&&(typeof D=="string"&&(D=[D]),_.xs(D,function(Y){if(Y in dR){var R=dR[Y],Z=R[0],t=R[1],X=R[3];R=R[4];Z.removeEventListener?H8r()||typeof R==="boolean"?Z.removeEventListener(t,X,R):Z.removeEventListener(t,X,!!R.capture):Z.detachEvent&&Z.detachEvent("on"+t,X);delete dR[Y]}}))};
DL=function(D){this.callback_=D;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(D=0;D<4;D++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.O1(window,"mousemove",(0,_.nG)(this.onMouseMove_,this));this.timerId_=_.Cv((0,_.nG)(this.checkPosition_,this),25)};
BsM=function(){var D={};var Y=D.preferMobileEvents===void 0?!1:D.preferMobileEvents;D=D.enableScrollEventListener===void 0?!0:D.enableScrollEventListener;if(_.mf("_lact",window)==null){var R=parseInt(_.JQ("LACT"),10);R=isFinite(R)?Date.now()-Math.max(R,0):-1;_.ix("_lact",R,window);_.ix("_fact",R,window);R==-1&&_.YN();_.O1(document,"keydown",_.YN);_.O1(document,"keyup",_.YN);_.O1(document,"mousedown",_.YN);_.O1(document,"mouseup",_.YN);Y?_.O1(window,"touchmove",function(){QTi("touchmove",200)},{passive:!0}):
(_.O1(window,"resize",function(){QTi("resize",200)}),D&&_.O1(window,"scroll",function(){QTi("scroll",200)}));
new DL(function(){QTi("mouse",100)});
_.O1(document,"touchstart",_.YN,{passive:!0});_.O1(document,"touchend",_.YN,{passive:!0})}};
QTi=function(D,Y){pLU[D]||(pLU[D]=!0,_.yc.addLowPriorityJob(function(){_.YN();pLU[D]=!1},Y))};
_.YN=function(){_.mf("_lact",window)==null&&BsM();var D=Date.now();_.ix("_lact",D,window);_.mf("_fact",window)==-1&&_.ix("_fact",D,window);(D=_.mf("ytglobal.ytUtilActivityCallback_"))&&D()};
_.Ro=function(){var D=_.mf("_lact",window);return D==null?-1:Math.max(Date.now()-D,0)};
_.Xn=function(D,Y,R){var Z=_.ZL();if(Z&&Y){var t=Z.subscribe(D,function(){var X=arguments,M=function(){tk[t]&&Y.apply&&typeof Y.apply=="function"&&Y.apply(R||window,X)};
try{_.EC9[D]?M():_.ME(M,0)}catch(W){_.hQ(W)}},R);
tk[t]=!0;s9[D]||(s9[D]=[]);s9[D].push(t);return t}return 0};
_.gCS=function(D){var Y=_.ZL();Y&&(typeof D==="number"?D=[D]:typeof D==="string"&&(D=[parseInt(D,10)]),_.xs(D,function(R){Y.unsubscribeByKey(R);delete tk[R]}))};
_.dI9=function(D,Y){var R=_.ZL();R&&R.publish.apply(R,arguments)};
_.O8j=function(D){var Y=_.ZL();if(Y)if(Y.clear(D),D)i8b(D);else for(var R in s9)i8b(R)};
_.ZL=function(){return _.ZU.ytPubsubPubsubInstance};
i8b=function(D){s9[D]&&(D=s9[D],_.xs(D,function(Y){tk[Y]&&delete tk[Y]}),D.length=0)};
cib=function(){var D,Y;return"h5vcc"in uo&&((D=uo.h5vcc.traceEvent)==null?0:D.traceBegin)&&((Y=uo.h5vcc.traceEvent)==null?0:Y.traceEnd)?1:"performance"in uo&&uo.performance.mark&&uo.performance.measure?2:0};
DWU=function(D){var Y=cib();switch(Y){case 1:uo.h5vcc.traceEvent.traceBegin("YTLR",D);break;case 2:uo.performance.mark(D+"-start");break;case 0:break;default:_.qU(Y,"unknown trace type")}};
YDo=function(D){var Y=cib();switch(Y){case 1:uo.h5vcc.traceEvent.traceEnd("YTLR",D);break;case 2:Y=D+"-start";var R=D+"-end";uo.performance.mark(R);uo.performance.measure(D,Y,R);break;case 0:break;default:_.qU(Y,"unknown trace type")}};
RlS=function(D){var Y,R;(R=(Y=window).onerror)==null||R.call(Y,D.message,"",0,0,D)};
ZBU=function(D){if(_.f("web_lifecycle_error_handling_killswitch"))return D();try{return D()}catch(Y){RlS(Y)}};
t75=function(D){return[D.auth===void 0?"undefined":D.auth,D.isJspb===void 0?"undefined":D.isJspb,D.cttAuthInfo===void 0?"undefined":D.cttAuthInfo,D.tier===void 0?"undefined":D.tier].join("/")};
_.A=function(D,Y){if(D)return D[Y.name]};
Mb=function(){var D=_.mf("yt.logging.ims");D||(D=new ao,_.ix("yt.logging.ims",D));return D};
SD5=function(D,Y){if(D.endpoint==="log_event"){st9(D);var R=XNS(D),Z=u4U(D.payload)||"",t=aTn(Z),X=200;if(t){if(t.enabled===!1&&!_.f("web_payload_policy_disabled_killswitch"))return;X=M7M(t.tier);if(X===400){Cqi(D,Y);return}}CI[R]=!0;R={cttAuthInfo:R,isJspb:!1,tier:X};Mb().storePayload(R,D.payload);WIj(Y,!1,R,zlr(Z))}};
jt$=function(D,Y,R){if(Y.endpoint==="log_event"){st9(void 0,Y);var Z=XNS(Y,!0),t=aTn(D),X=200;if(t){if(t.enabled===!1&&!_.f("web_payload_policy_disabled_killswitch"))return;X=M7M(t.tier);if(X===400){T1o(D,Y,R);return}}CI[Z]=!0;Z={cttAuthInfo:Z,isJspb:!0,tier:X};Mb().storePayload(Z,yI(Y.payload));WIj(R,!0,Z,zlr(D))}};
WIj=function(D,Y,R,Z){Y=Y===void 0?!1:Y;Z=Z===void 0?!1:Z;D&&(Wm=new D);D=_.ZH("tvhtml5_logging_max_batch_ads_fork")||_.ZH("tvhtml5_logging_max_batch")||_.ZH("web_logging_max_batch")||100;var t=(0,_.DO)(),X=ITM(Y,R.tier),M=X.lastDebounceQueueFromLogTimeMs;Z&&(X.useVideoStatsEndPoint=!0);Z=0;R&&(Z=Mb().getSequenceCount(R));var W=function(){FIU({writeThenSend:!0},Y,R.tier)};
Z>=1E3?W():Z>=D?Gfb||(Gfb=V75(function(){W();Gfb=void 0},0)):t-M>=10&&(fTM(Y,R.tier),X.lastDebounceQueueFromLogTimeMs=t)};
Cqi=function(D,Y){if(D.endpoint==="log_event"){_.f("more_accurate_gel_parser")&&Mb().storePayload({isJspb:!1},D.payload);st9(D);var R=XNS(D),Z=new Map;Z.set(R,[D.payload]);var t=u4U(D.payload)||"";Y&&(Wm=new Y);return new _.zz(function(X,M){Wm&&Wm.isReady()?elU(Z,Wm,X,M,{bypassNetworkless:!0},!0,zlr(t)):X()})}};
T1o=function(D,Y,R){if(Y.endpoint==="log_event"){st9(void 0,Y);var Z=XNS(Y,!0),t=new Map;t.set(Z,[yI(Y.payload)]);R&&(Wm=new R);return new _.zz(function(X){Wm&&Wm.isReady()?ApU(t,Wm,X,{bypassNetworkless:!0},!0,zlr(D)):X()})}};
XNS=function(D,Y){var R="";if(D.dangerousLogToVisitorSession)R="visitorOnlyApprovedKey";else if(D.cttAuthInfo){if(Y===void 0?0:Y){Y=D.cttAuthInfo.token;R=D.cttAuthInfo;var Z=new nPb;R.videoId?Z.setVideoId(R.videoId):R.playlistId&&Sq(Z,2,rpM,Wu(R.playlistId));wNn[Y]=Z}else Y=D.cttAuthInfo,R={},Y.videoId?R.videoId=Y.videoId:Y.playlistId&&(R.playlistId=Y.playlistId),$WU[D.cttAuthInfo.token]=R;R=D.cttAuthInfo.token}return R};
FIU=function(D,Y,R){D=D===void 0?{}:D;Y=Y===void 0?!1:Y;new _.zz(function(Z,t){var X=ITM(Y,R),M=X.useVideoStatsEndPoint;X.useVideoStatsEndPoint=!1;vPU(X.queueTimer);vPU(X.queueMaxTimer);X.queueMaxTimer=0;Wm&&Wm.isReady()?R===void 0&&_.f("enable_web_tiered_gel")?oPU(Z,t,D,Y,300,M):oPU(Z,t,D,Y,R,M):(fTM(Y,R),Z())})};
oPU=function(D,Y,R,Z,t,X){var M=Wm;R=R===void 0?{}:R;Z=Z===void 0?!1:Z;t=t===void 0?200:t;X=X===void 0?!1:X;var W=new Map,z=new Map,I={isJspb:Z,cttAuthInfo:void 0,tier:t},F={isJspb:Z,cttAuthInfo:void 0};if(Z){Y=_.a(Object.keys(CI));for(t=Y.next();!t.done;t=Y.next())t=t.value,z=_.f("enable_web_tiered_gel")?Mb().smartExtractMatchingEntries({keys:[I,F],sizeLimit:1E3}):Mb().extractMatchingEntries({isJspb:!0,cttAuthInfo:t}),z.length>0&&W.set(t,z),(_.f("web_fp_via_jspb_and_json")&&R.writeThenSend||!_.f("web_fp_via_jspb_and_json"))&&
delete CI[t];ApU(W,M,D,R,!1,X)}else{W=_.a(Object.keys(CI));for(I=W.next();!I.done;I=W.next())I=I.value,F=_.f("enable_web_tiered_gel")?Mb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:I,tier:t},{isJspb:!1,cttAuthInfo:I}],sizeLimit:1E3}):Mb().extractMatchingEntries({isJspb:!1,cttAuthInfo:I}),F.length>0&&z.set(I,F),(_.f("web_fp_via_jspb_and_json")&&R.writeThenSend||!_.f("web_fp_via_jspb_and_json"))&&delete CI[I];elU(z,M,D,Y,R,!1,X)}};
fTM=function(D,Y){D=D===void 0?!1:D;Y=Y===void 0?200:Y;var R=function(){FIU({writeThenSend:!0},D,Y)},Z=ITM(D,Y),t=Z===bB9||Z===ypU?5E3:N1U;
_.f("web_gel_timeout_cap")&&!Z.queueMaxTimer&&(t=V75(function(){R()},t),Z.queueMaxTimer=t);
vPU(Z.queueTimer);t=_.JQ("LOGGING_BATCH_TIMEOUT",_.ZH("web_gel_debounce_ms",1E4));_.f("shorten_initial_gel_batch_timeout")&&lTU&&(t=Jpb);t=V75(function(){_.ZH("gel_min_batch_size")>0?Mb().getSequenceCount({cttAuthInfo:void 0,isJspb:D,tier:Y})>=kfy&&R():R()},t);
Z.queueTimer=t};
elU=function(D,Y,R,Z,t,X,M){t=t===void 0?{}:t;var W=Math.round((0,_.DO)()),z=D.size,I=UWi(M);D=_.a(D);var F=D.next();for(M={};!F.done;M={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},F=D.next()){var G=_.a(F.value);F=G.next().value;G=G.next().value;M.batchRequest=_.y7.unsafeClone({context:_.T$U(Y.config_||_.RE())});if(!_.xn(G)&&!_.f("throw_err_when_logevent_malformed_killswitch")){Z();break}M.batchRequest.events=G;
(G=$WU[F])&&KIU(M.batchRequest,F,G);delete $WU[F];M.dangerousLogToVisitorSession=F==="visitorOnlyApprovedKey";hlS(M.batchRequest,W,M.dangerousLogToVisitorSession);LIl(t);M.onSuccess$jscomp$3=function(V){_.f("start_client_gcf")&&_.yc.addLowPriorityJob(function(){return _.C(function(e){return e.yield(mWU(V),0)})});
z--;z||R()};
M.networkFailures=0;M.onError$jscomp$5=function(V){return function(){V.networkFailures++;if(t.bypassNetworkless&&V.networkFailures===1)try{gyU(Y,I,V.batchRequest,qD5({writeThenSend:!0},V.dangerousLogToVisitorSession,V.onSuccess$jscomp$3,V.onError$jscomp$5,X)),lTU=!1}catch(e){_.hQ(e),Z()}z--;z||R()}}(M);
try{gyU(Y,I,M.batchRequest,qD5(t,M.dangerousLogToVisitorSession,M.onSuccess$jscomp$3,M.onError$jscomp$5,X)),lTU=!1}catch(V){_.hQ(V),Z()}}};
ApU=function(D,Y,R,Z,t,X){Z=Z===void 0?{}:Z;var M=Math.round((0,_.DO)()),W={value:D.size},z=new Map([].concat(_.oK(D)));z=_.a(z);for(var I=z.next();!I.done;I=z.next()){var F=_.a(I.value).next().value,G=D.get(F);I=new HBy;var V=Y.config_||_.RE(),e=new Tz,r=new xW$;_.ew(r,1,V.innertubeContextHostLanguage);_.ew(r,2,V.innertubeContextGeoLocation);_.s1(r,16,V.innertubeContextClientNameFieldNumber);_.ew(r,17,V.innertubeContextClientVersion);if(V.innertubeContextClientConfigInfo){var l=V.innertubeContextClientConfigInfo,
U=new uD;l.coldConfigData&&_.ew(U,1,l.coldConfigData);l.appInstallData&&_.ew(U,6,l.appInstallData);l.coldHashData&&_.ew(U,3,l.coldHashData);l.hotHashData&&U.setHotHashData(l.hotHashData);_.To(r,62,U)}(l=_.ZU.devicePixelRatio)&&l!=1&&_.XG(r,65,_.xE(l));l=y4n();l!==""&&_.ew(r,54,l);l=NCM();if(l.length>0){U=new Pqi;for(var K=0;K<l.length;K++){var H=new jq;H.setKey(l[K].key);Sq(H,2,QtU,Wu(l[K].value));Io(U,15,jq,H)}_.To(e,5,U)}al9(V,r);MI9(e);CXi(r);WVr(V,r);zsU(r);_.f("start_client_gcf")&&S$i(r);_.JQ("DELEGATED_SESSION_ID")&&
!_.f("pageid_as_header_web")&&(V=new Fn,_.ew(V,3,_.JQ("DELEGATED_SESSION_ID")));!_.f("fill_delegate_context_in_gel_killswitch")&&(l=_.JQ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(U=_.tP(e,Fn,3)||new Fn,V=e,l=_.ew(U,18,l),_.To(V,3,l));V=r;l=_.a(Object.entries(_.PD(_.JQ("DEVICE",""))));for(U=l.next();!U.done;U=l.next())K=_.a(U.value),U=K.next().value,K=K.next().value,U==="cbrand"?_.ew(V,12,K):U==="cmodel"?_.ew(V,13,K):U==="cbr"?_.ew(V,87,K):U==="cbrver"?_.ew(V,88,K):U==="cos"?_.ew(V,18,
K):U==="cosver"?_.ew(V,19,K):U==="cplatform"&&_.s1(V,42,us5(K));e.setClient(r);_.To(I,1,e);if(r=wNn[F])a:{if(_.jH(r,Gz(r,rpM,1)))e=1;else if(r.getPlaylistId())e=2;else break a;_.To(I,4,r);r=I.getContext()||new Tz;V=_.tP(r,Fn,3)||new Fn;l=new Vj;l.setToken(F);_.s1(l,1,e);Io(V,12,Vj,l);_.To(r,3,V)}delete wNn[F];F=F==="visitorOnlyApprovedKey";B1n()||_.fI(I,2,M);!F&&(e=_.JQ("EVENT_ID"))&&(r=pNM(),V=new EPl,_.ew(V,1,e),_.fI(V,2,r),_.To(I,5,V));LIl(Z);if(_.f("jspb_serialize_with_worker")&&(e=_.rjU())&&
Z.writeThenSend){_.gP9.set(dWj,{client:Y,resolve:R,networklessOptions:Z,isIsolated:t,useVSSEndpoint:X,dangerousLogToVisitorSession:F,requestsOutstanding:W});e.postMessage({op:"gelBatchToSerialize",batchRequest:yI(I),clientEvents:G,key:dWj});dWj++;break}if(G){e=[];for(r=0;r<G.length;r++)try{e.push(new eq(G[r]))}catch(c){_.hQ(new _.AT("Transport failed to deserialize "+String(G[r])))}G=e}else G=[];G=_.a(G);for(e=G.next();!e.done;e=G.next())Io(I,3,eq,e.value);G={startTime:(0,_.DO)(),ticks:{},infos:{}};
I=I.serialize();G.ticks.geljspc=(0,_.DO)();_.f("log_jspb_serialize_latency")&&VNo("gel_jspb_serialize",G,{sampleRate:.1});_.iB5(I,Y,R,Z,t,X,F,W)}};
_.iB5=function(D,Y,R,Z,t,X,M,W){Z=Z===void 0?{}:Z;W=W===void 0?{value:0}:W;X=UWi(X);Z=qD5(Z,M,function(z){_.f("start_client_gcf")&&_.yc.addLowPriorityJob(function(){return _.C(function(I){return I.yield(mWU(z),0)})});
W.value--;W.value||R()},function(){W.value--;
W.value||R()},t);
Z.headers["Content-Type"]="application/json+protobuf";Z.postBodyFormat="JSPB";Z.postBody=D;gyU(Y,X,"",Z);lTU=!1};
LIl=function(D){_.f("always_send_and_write")&&(D.writeThenSend=!1)};
qD5=function(D,Y,R,Z,t){D={retry:!0,onSuccess:R,onError:Z,networklessOptions:D,dangerousLogToVisitorSession:Y,bypassMonitoring:!!t,headers:{},postBodyFormat:"",postBody:"",compress:_.f("compress_gel")||_.f("compress_gel_lr")};B1n()&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.DO)())));return D};
hlS=function(D,Y,R){B1n()||(D.requestTimeMs=String(Y));_.f("unsplit_gel_payloads_in_logs")&&(D.unsplitGelPayloadsInLogs=!0);!R&&(Y=_.JQ("EVENT_ID"))&&(R=pNM(),D.serializedClientEventId={serializedEventId:Y,clientCounter:String(R)})};
pNM=function(){var D=_.JQ("BATCH_CLIENT_COUNTER")||0;D||(D=Math.floor(Math.random()*65535/2));D++;D>65535&&(D=1);_.l1("BATCH_CLIENT_COUNTER",D);return D};
KIU=function(D,Y,R){if(R.videoId)var Z="VIDEO";else if(R.playlistId)Z="PLAYLIST";else return;D.credentialTransferTokenTargetId=R;D.context=D.context||{};D.context.user=D.context.user||{};D.context.user.credentialTransferTokens=[{token:Y,scope:Z}]};
st9=function(D,Y){var R=_.XW("il_payload_scraping")==="enable_il_payload_scraping";if(!_.mf("yt.logging.transport.enableScrapingForTest"))if(R)OBj=[],_.ix("yt.logging.transport.enableScrapingForTest",!0),_.ix("yt.logging.transport.scrapedPayloadsForTesting",OBj),_.ix("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.ix("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.ix("yt.logging.transport.scrapeClientEvent",!0);else return;R=_.mf("yt.logging.transport.scrapedPayloadsForTesting");var Z=_.mf("yt.logging.transport.payloadToScrape");Y&&(Y=_.mf("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Y.payload)())&&R.push(Y);Y=_.mf("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var t=0;t<Z.length;t++)if(D&&D.payload[Z[t]])if(Y)R.push(D.payload);else{var X=void 0;R.push(((X=D)==null?void 0:X.payload)[Z[t]])}_.ix("yt.logging.transport.scrapedPayloadsForTesting",
R)};
B1n=function(){return _.f("use_request_time_ms_header")||_.f("lr_use_request_time_ms_header")};
V75=function(D,Y){return _.f("transport_use_scheduler")===!1?_.ME(D,Y):_.f("logging_avoid_blocking_during_navigation")||_.f("lr_logging_avoid_blocking_during_navigation")?_.Ak(_.yc,function(){if(_.cpM().currentState==="none")D();else{var R={};_.cpM().install((R.none={callback:D},R))}},Y):_.Ak(_.yc,D,Y)};
vPU=function(D){_.f("transport_use_scheduler")?_.yc.cancelJob(D):_.Wr(D)};
mWU=function(D){var Y,R,Z,t,X,M,W,z,I,F;return _.C(function(G){return G.nextAddress==1?(Z=(Y=D)==null?void 0:(R=Y.responseContext)==null?void 0:R.globalConfigGroup,t=_.A(Z,DPU),M=(X=Z)==null?void 0:X.hotHashData,W=_.A(Z,Yml),I=(z=Z)==null?void 0:z.coldHashData,(F=_.DH().resolve(_.cD(nI)))?M?t?G.yield(RFj(F,M,t),2):G.yield(RFj(F,M),2):G.jumpTo(2):G.return()):I?W?G.yield(ZHU(F,I,W),0):G.yield(ZHU(F,I),0):G.jumpTo(0)})};
ITM=function(D,Y){Y=Y===void 0?200:Y;return D?Y===300?bB9:tGM:Y===300?ypU:sPn};
aTn=function(D){if(_.f("enable_web_tiered_gel")){D=XKn[D||""];var Y,R,Z,t=_.DH().resolve(_.cD(nI))==null?void 0:(Y=rI())==null?void 0:(R=Y.loggingHotConfig)==null?void 0:(Z=R.eventLoggingConfig)==null?void 0:Z.payloadPolicies;if(t)for(Y=0;Y<t.length;Y++)if(t[Y].payloadNumber===D)return t[Y]}};
u4U=function(D){D=Object.keys(D);D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,XKn[Y])return Y};
M7M=function(D){switch(D){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}};
zlr=function(D){return D==="gelDebuggingEvent"};
UWi=function(D){return(D===void 0?0:D)&&_.f("vss_through_gel_video_stats")?"video_stats":"log_event"};
$N=function(D,Y,R,Z){Z=Z===void 0?{}:Z;var t={},X=Math.round(Z.timestamp||(0,_.DO)());t.eventTimeMs=X<Number.MAX_SAFE_INTEGER?X:0;t[D]=Y;D=_.Ro();t.context={lastActivityMs:String(Z.timestamp||!isFinite(D)?-1:D)};Z.sequenceGroup&&!_.f("web_gel_sequence_info_killswitch")&&(D=t.context,Y=Z.sequenceGroup,Y={index:uU$(Y),groupKey:Y},D.sequence=Y,Z.endOfSequence&&delete wI[Z.sequenceGroup]);_.f("web_tag_automated_log_events")&&(t.context.automatedLogEventSource=Z.automatedLogEventSource);(Z.sendIsolatedPayload?
Cqi:SD5)({endpoint:"log_event",payload:t,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},R)};
uU$=function(D){wI[D]=D in wI?wI[D]+1:0;return wI[D]};
_.bo=function(D,Y,R){R=R===void 0?{}:R;var Z=oo;_.ks("ytLoggingEventsDefaultDisabled",!1)&&oo===oo&&(Z=null);$N(D,Y,Z,R)};
_.yj=function(){if(_.f("web_fp_via_jspb")){var D=!0;D=D===void 0?!1:D;var Y=a4U;a4U=[];if(Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,D?$N(R.payloadName,R.payload,oo,R.options):_.bo(R.payloadName,R.payload,R.options)}FIU(void 0,!0);if(!_.f("web_fp_via_jspb_and_json"))return}FIU(void 0,!1)};
MG5=function(D,Y){var R;if((R=Y)==null?0:R.componentStack)return Y;if(D=D.componentStack)Y||(Y={}),Y.componentStack=D;return Y};
CIo=function(){_.xs(_.JQ("ERRORS")||[],function(D){_.Nb.apply(null,D)});
_.l1("ERRORS",[])};
_.lo=function(D){_.Nb(D)};
_.Jk=function(D){_.Nb(D,"WARNING")};
Wp9=function(D){D instanceof Error?_.Nb(D):(D=_.Bo(D)?JSON.stringify(D):String(D),D=new _.AT(D),D.name="RejectedPromiseError",_.Jk(D))};
zFS=function(D,Y,R,Z,t,X){Y=Y===void 0?"Unknown file":Y;R=R===void 0?0:R;var M=!1,W=Meb("log_window_onerror_fraction");if(W&&Math.random()<W)M=!0;else{W=document.getElementsByTagName("script");for(var z=0,I=W.length;z<I;z++)if(W[z].src.indexOf("/debug-")>0){M=!0;break}}M&&(M=!1,t?M=!0:(typeof D==="string"?W=D:ErrorEvent&&D instanceof ErrorEvent?(M=!0,W=D.message,Y=D.filename,R=D.lineno,Z=D.colno):(W="Unknown error",Y="Unknown file",R=0),t=new _.AT(W),t.name="UnhandledWindowError",t.message=W,t.fileName=
Y,t.lineNumber=R,isNaN(Z)?delete t.columnNumber:t.columnNumber=Z),_.f("wiz_enable_component_stack_propagation_killswitch")||(X=MG5(t,X)),X&&_.kN(t,X),M?_.Nb(t):_.Jk(t))};
_.Nb=function(D,Y,R,Z,t,X,M,W){X=X===void 0?{}:X;X.name=R||_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME",1);X.version=Z||_.JQ("INNERTUBE_CONTEXT_CLIENT_VERSION");R=X;Y=Y===void 0?"ERROR":Y;M=M===void 0?!1:M;Y=Y===void 0?"ERROR":Y;M=M===void 0?!1:M;if(D&&(D.hasOwnProperty("level")&&D.level&&(Y=D.level),_.f("console_log_js_exceptions")&&(Z=[],Z.push("Name: "+D.name),Z.push("Message: "+D.message),D.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(D.params)),D.hasOwnProperty("args")&&Z.push("Error args: "+
JSON.stringify(D.args)),Z.push("File name: "+D.fileName),Z.push("Stacktrace: "+D.stack),Z=Z.join("\n"),window.console.log(Z,D)),!(Smj>=5))){Z=[];t=_.a(Tqo);for(X=t.next();!X.done;X=t.next()){X=X.value;try{X()&&Z.push(X())}catch(U){}}Z=[].concat(_.oK(jPl),_.oK(Z));var z=I45(D);t=z.message||"Unknown Error";X=z.name||"UnknownError";var I=z.stack||D.stacktrace||"Not available";if(I.startsWith(X+": "+t)){var F=I.split("\n");F.shift();I=F.join("\n")}F=z.lineNumber||"Not available";z=z.fileName||"Not available";
var G=0;if(D.hasOwnProperty("args")&&D.args&&D.args.length)for(var V=0;V<D.args.length&&!(G=XU5(D.args[V],"params."+V,R,G),G>=500);V++);else if(D.hasOwnProperty("params")&&D.params){var e=D.params;if(typeof D.params==="object")for(V in e){if(e[V]){var r="params."+V,l=In(e[V]);R[r]=l;G+=r.length+l.length;if(G>500)break}}else R.params=In(e)}if(Z.length)for(V=0;V<Z.length&&!(G=XU5(Z[V],"params.context."+V,R,G),G>=500);V++);navigator.vendor&&!R.hasOwnProperty("vendor")&&(R["device.vendor"]=navigator.vendor);
V={message:t,name:X,lineNumber:F,fileName:z,stack:I,params:R,sampleWeight:1};R=Number(D.columnNumber);isNaN(R)||(V.lineNumber=V.lineNumber+":"+R);if(D.level==="IGNORED")D=0;else a:{D=Fpi();R=_.a(D.messageWeights);for(Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,V.message&&V.message.match(Z.messageRegExp)){D=Z.weight;break a}D=_.a(D.callbackWeights);for(R=D.next();!R.done;R=D.next())if(R=R.value,R.callback(V)){D=R.weight;break a}D=1}V.sampleWeight=D;D=_.a(GPj);for(R=D.next();!R.done;R=D.next())if(R=
R.value,R.patternsForType[V.name])for(t=_.a(R.patternsForType[V.name]),Z=t.next();!Z.done;Z=t.next())if(X=Z.value,Z=V.message.match(X.regexp)){V.params["params.error.original"]=Z[0];t=X.groups;X={};for(F=0;F<t.length;F++)X[t[F]]=Z[F+1],V.params["params.error."+t[F]]=Z[F+1];V.message=R.messageFn(X);break}V.params||(V.params={});D=Fpi();V.params["params.errorServiceSignature"]="msg="+D.messageWeights.length+"&cb="+D.callbackWeights.length;V.params["params.serviceWorker"]="false";_.ZU.document&&_.ZU.document.querySelectorAll&&
(V.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new hk(VGi,"sample")).constructor!==hk&&(V.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(V);if(V.sampleWeight!==0&&!f4n.has(V.message)){if(M&&_.f("web_enable_error_204"))eFb(Y===void 0?"ERROR":Y,V);else{Y=Y===void 0?"ERROR":Y;Y==="ERROR"?(Axb.publish("handleError",V),_.f("record_app_crashed_web")&&ncU===0&&V.sampleWeight===1&&(ncU++,M={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.f("report_client_error_with_app_crash_ks")||(M.systemHealth={crashData:{clientError:{logMessage:{message:V.message}}}}),_.bo("appCrashed",M)),rxn++):Y==="WARNING"&&Axb.publish("handleWarning",V);if(_.f("kevlar_gel_error_routing")){M=Y;W=W===void 0?{}:W;b:{D=_.a(wKU);for(R=D.next();!R.done;R=D.next())if(JT(R.value.toLowerCase())){D=!0;break b}D=!1}if(D)W=void 0;else{R={stackTrace:V.stack};V.fileName&&(R.filename=V.fileName);D=V.lineNumber&&V.lineNumber.split?V.lineNumber.split(":"):[];D.length!==
0&&(D.length!==1||isNaN(Number(D[0]))?D.length!==2||isNaN(Number(D[0]))||isNaN(Number(D[1]))||(R.lineNumber=Number(D[0]),R.columnNumber=Number(D[1])):R.lineNumber=Number(D[0]));D={level:"ERROR_LEVEL_UNKNOWN",message:V.message,errorClassName:V.name,sampleWeight:V.sampleWeight};M==="ERROR"?D.level="ERROR_LEVEL_ERROR":M==="WARNING"&&(D.level="ERROR_LEVEL_WARNNING");R={isObfuscated:!0,browserStackInfo:R};W.pageUrl=window.location.href;W.kvPairs=[];_.JQ("FEXP_EXPERIMENTS")&&(W.experimentIds=_.JQ("FEXP_EXPERIMENTS"));
Z=_.JQ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Meb("web_disable_gel_stp_ecatcher_killswitch")&&Z)for(t=_.a(Object.keys(Z)),X=t.next();!X.done;X=t.next())X=X.value,W.kvPairs.push({key:X,value:String(Z[X])});if(Z=V.params)for(t=_.a(Object.keys(Z)),X=t.next();!X.done;X=t.next())X=X.value,W.kvPairs.push({key:"client."+X,value:String(Z[X])});Z=_.JQ("SERVER_NAME");t=_.JQ("SERVER_VERSION");Z&&t&&(W.kvPairs.push({key:"server.name",value:Z}),W.kvPairs.push({key:"server.version",value:t}));W={errorMetadata:W,
stackTrace:R,logMessage:D}}W&&(_.bo("clientError",W),(M==="ERROR"||_.f("errors_flush_gel_always_killswitch"))&&_.yj())}_.f("suppress_error_204_logging")||eFb(Y,V)}try{f4n.add(V.message)}catch(U){}Smj++}}};
eFb=function(D,Y){var R=Y.params||{};D={urlParams:{a:"logerror",t:"jserror",type:Y.name,msg:Y.message.substr(0,250),line:Y.lineNumber,level:D,"client.name":R.name},postParams:{url:_.JQ("PAGE_NAME",window.location.href),file:Y.fileName},method:"POST"};R.version&&(D["client.version"]=R.version);if(D.postParams){Y.stack&&(D.postParams.stack=Y.stack);Y=_.a(Object.keys(R));for(var Z=Y.next();!Z.done;Z=Y.next())Z=Z.value,D.postParams["client."+Z]=R[Z];if(R=_.JQ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Y=
_.a(Object.keys(R)),Z=Y.next();!Z.done;Z=Y.next())Z=Z.value,D.postParams[Z]=R[Z];(R=_.JQ("LAVA_VERSION"))&&(D.postParams["lava.version"]=R);R=_.JQ("SERVER_NAME");Y=_.JQ("SERVER_VERSION");R&&Y&&(D.postParams["server.name"]=R,D.postParams["server.version"]=Y)}_.S$(_.JQ("ECATCHER_REPORT_HOST","")+"/error_204",D)};
_.$Pr=function(D,Y){Y=Y===void 0?"ERROR":Y;var R=R===void 0?{}:R;var Z=_.mf("ytbin.polymer.shared.lib.tampering.info");Z&&(Z=Z())&&(R["params.tamperingInfo"]=Z.sort().join(","));_.Nb(D,Y,void 0,void 0,!0,R)};
_.kN=function(D){var Y=_.UN.apply(1,arguments);D.args||(D.args=[]);Array.isArray(D.args)&&D.args.push.apply(D.args,_.oK(Y))};
vc5=function(D){D.level="IGNORED"};
ocb=function(D,Y){jPl.push(D);Y();jPl.pop()};
my=function(D,Y){for(var R in Y)Y.hasOwnProperty(R)&&(D=_.LI(D,R,Y[R]));return D};
_.bHS=function(D,Y,R){R=R===void 0?!1:R;if(!D)return null;if(D.adInfoDialogEndpoint||D.backstageImageUploadEndpoint||D.confirmDialogEndpoint||D.clientActionEndpoint||D.createBackstagePostDialogEndpoint||D.createCommentReplyDialogEndpoint||D.flowEndpoint||D.guideBuilderEndpoint||D.liveChatDialogEndpoint||D.modalEndpoint||D.openPopupAction||D.shareEndpoint||D.shareEntityEndpoint||D.showLiveChatItemEndpoint||D.subscriptionManagerEndpoint||D.unlimitedCreateFamilyEndpoint||D.unlimitedFamilyFlowEndpoint||
D.updateCommentDialogEndpoint||D.updateCommentReplyDialogEndpoint||D.userFeedbackEndpoint||D.videoEditorEndpoint||D.ypcCancelSurveyEndpoint)return Y=_.ZH("polymer_report_client_url_requested_rate"),!R&&Math.random()<Y&&_.Jk(new _.AT("urlForEndpoint used on client endpoint",D)),null;var Z=_.ZH("polymer_report_missing_web_navigation_endpoint_rate");if(D.liveChatEndpoint||D.liveChatReplayEndpoint)Z=0;if(!D.commandMetadata&&!D.clickTrackingParams&&Math.random()<Z){var t={},X;for(X in D)t[X]="1";_.Jk(new _.AT("Missing navigation data",
t))}t="";if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url)t=D.commandMetadata.webCommandMetadata.url;else if(D.searchEndpoint)Math.random()<Z&&_.Jk(new _.AT("Should not manually handle search",D)),t="/results?search_query="+encodeURIComponent(D.searchEndpoint.query).replace(/%20/g,"+"),D.searchEndpoint.params&&(t+="&sp="+D.searchEndpoint.params);else if(D.watchEndpoint)Math.random()<Z&&_.Jk(new _.AT("Should not manually handle watch",D)),t="/watch?v="+
D.watchEndpoint.videoId,D.watchEndpoint.playlistId&&(t+="&list="+D.watchEndpoint.playlistId),D.watchEndpoint.index&&(t+="&index="+D.watchEndpoint.index),D.watchEndpoint.startTimeSeconds&&(t+="&t="+D.watchEndpoint.startTimeSeconds);else if(D.browseEndpoint)Z=D.browseEndpoint.browseId,(X=D.browseEndpoint.canonicalBaseUrl)?t=X:Z&&(t=Z.substr(0,2),t=t==="FE"?Z==="FEwhat_to_watch"?"/":Z==="FEmy_videos"?"/my_videos":"/feed/"+Z.substr(2):t==="VL"?"/playlist?list="+Z.substr(2):"/channel/"+Z),t&&D.browseEndpoint.query&&
(t=my(t+"/search",{query:D.browseEndpoint.query})),t&&D.browseEndpoint.params&&(t=my(t,{params:D.browseEndpoint.params}));else{if(D.urlEndpoint)return D.urlEndpoint.url;D.signInEndpoint?(t="https://accounts.google.com/ServiceLogin",Z={},_.y7.extend(Z,Y||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),Y=Z):D.uploadEndpoint?t="//www.youtube.com/upload":D.liveChatEndpoint?(t=D.liveChatEndpoint,Z=_.y7.clone(t),_.Bo(t.continuation)&&(X=Object.keys(t.continuation)[0],
Z.continuation=t.continuation[X].continuation),t=my("/youtubei/v1/live_chat/get_live_chat",Z)):D.liveChatReplayEndpoint?(t=_.y7.clone(D.liveChatReplayEndpoint),t.currentPlayerState&&(_.y7.extend(t,t.currentPlayerState),delete t.currentPlayerState),t=my("/youtubei/v1/live_chat/get_live_chat_replay",t)):D.liveChatItemContextMenuEndpoint?t=my("/youtubei/v1/live_chat/get_item_context_menu",D.liveChatItemContextMenuEndpoint):D.liveChatPurchaseMessageEndpoint?t=my("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
D.liveChatPurchaseMessageEndpoint):D.openSuperStickerBuyFlowCommand?t=my("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",D.openSuperStickerBuyFlowCommand):D.videoEditEndpoint?t=my("/edit",{video_id:D.videoEditEndpoint.videoId}):D.liveDashboardEndpoint?t=D.liveDashboardEndpoint.videoId?my("/live_dashboard",{v:D.liveDashboardEndpoint.videoId}):"/live_dashboard":D.signalNavigationEndpoint&&D.signalNavigationEndpoint.signal&&D.signalNavigationEndpoint.signal==="WEBCAM"?t="/webcam":D.getPdgBuyFlowCommand&&
(t=my(D.getPdgBuyFlowCommand.buyflowApiPath,{params:D.getPdgBuyFlowCommand.params}))}return t||R?my(t,Y||{}):(_.Jk(new _.AT("Error: Can't construct url for endpoint","keys:"+Object.keys(D).sort().join(","),D)),null)};
yxi=function(D){if(D){if(D.browseEndpoint)return!!D.browseEndpoint.nofollow;if(D.watchEndpoint)return!!D.watchEndpoint.nofollow;if(D.urlEndpoint)return!!D.urlEndpoint.nofollow}return!1};
_.l4U=function(D,Y){var R=Y+D,Z=Nql.get(R);if(Z)return Z;D=Y+"-"+D.replace(/([A-Z])/g,"-$1").toLowerCase();Nql.set(R,D);return D};
JxU=function(D){var Y=_.yL(D,"action")||_.yL(D,"command")||_.yL(D,"endpoint");if(!Y)return null;Y=_.l4U(Y,"yt");_.A(D,_.qb)&&(Y+="-"+_.A(D,_.qb).signal.toLowerCase().replace(/_/g,"-"));return Y};
hFU=function(D){try{var Y=Object.keys(D)}catch(t){return[]}for(var R=0;R<Y.length;R++){var Z=Y[R];if(kPr.test(Z)||UPo.test(Z))return KpS(D[Z])}return[]};
KpS=function(D){return D.command?[D.command]:D.onExecutionAction?[D.onExecutionAction]:D.onResponseReceivedCommand?[D.onResponseReceivedCommand]:D.updateFlowCommand?[D.updateFlowCommand]:D.clientActions?D.clientActions:D.action?[D.action]:D.actions||D.commands||D.onResponseReceivedActions||D.onResponseReceivedCommands||D.onResponseReceivedEndpoints||[]};
mPn=function(D,Y){Y=Y===void 0?!1:Y;var R=_.DH().resolve(_.cD(Pm));R||(R=new LpU,_.DH().addProvider({provide:Pm,useValue:R}));return R&&D&&!_.y7.isEmpty(D)?R.getUrl(D,Y):""};
qmU=function(D,Y,R){R=R===void 0?"":R;if(Y){D.data=Y;var Z=mPn(Y);Z?(_.L$(D,Z),yxi(Y)||!i1(Z)?D.rel="nofollow":D.removeAttribute("rel"),_.A(Y,_.Qj)&&_.A(Y,_.Qj).target==="TARGET_NEW_WINDOW"?D.target="_blank":R?D.target=R:D.removeAttribute("target")):(D.removeAttribute("href"),D.removeAttribute("rel"),D.removeAttribute("target"))}};
_.gI=function(D,Y){var R=EW;if(ei())HHU(D,function(){var X=_.UN.apply(0,arguments);bM(R,function(){Y.apply(null,_.oK(X))})});
else{var Z=_.Bm.getInstance(),t=b1(Y);c5o(function(){t.value=Y});
_.$s(function(){var X={},M=_.pI(Z,(X[D]=function(){var W=_.UN.apply(0,arguments);bM(R,function(){t.value.apply(t,_.oK(W))})},X));
return function(){var W={};_.E9(Z,(W[D]="",W),M)}})}};
_.dI=function(D,Y){return xPn(D,!1,Y)};
_.io=function(D,Y){return xPn(D,!0,Y)};
xPn=function(D,Y,R){return ei()?PIl(D,Y,R):QP5(D,Y,R)};
QP5=function(D,Y,R){return op(function(){return PIl(D,Y,R)})};
PIl=function(D,Y,R){var Z=gFU(function(t){Z.value=t;var X=function(){var M=Re(null);try{return R==null?void 0:R(t)}finally{Re(M)}}();
return function(){X==null||X()}});
Z.__expectedTagName=D;Z.__optional=Y;Z.isIdom=!ei();return Z};
Bqr=function(D){var Y=EW,R=VE;return{getFn:function(){return function(Z){Y.isDisposed||n4(function(){return uM(function(){return D(Z)})},R)!==!0&&Z.stopPropagation()}}}};
O9=function(D){if(typeof D.children==="function")return D.children(),null;D=_.a(D.children);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y();return null};
pKr=function(D){var Y;return((Y=D.prototype)==null?void 0:Y.render)===void 0};
Ecj=function(D){return D.items.map(D.children)};
dP9=function(D,Y,R){R=R===void 0?!1:R;n4(function(){return gcM(D,Y,R)})};
gcM=function(D,Y,R){var Z=null;Ie++;R=(R===void 0?0:R)?iHS:OHy;try{Z=R(D,function(){cm(Y)}),Gk(!1)}catch(t){throw Gk(!0),t;
}return Z===null?D:Z};
cm=function(D){if(D!==void 0&&D!==null)if(D instanceof WD)for(var Y=L4;mg()!=null&&la5 in mg()&&Y.contains(mg());)xd();else if(Array.isArray(D))for(Y=_.a(D),D=Y.next();!D.done;D=Y.next())cm(D.value);else if(D instanceof ef||D instanceof Dd||"function"==typeof _.d2&&D instanceof _.d2)kyb(D.toString());else if(_.Ys(D)){if(mg()!==D){var R,Z;Y=(Z=(R=VE)==null?void 0:R.name)!=null?Z:"unknown";throw Error("bc`"+D.tagName+"`"+Y);}xd()}else if(D!=null&&D.contentKind===tQ||D instanceof mS||d79(D))for(Y=OFl(D),
Y=Array.from(Y.childNodes),Y=_.a(Y),D=Y.next();!D.done;D=Y.next())L4.appendChild(D.value),xd();else if(vZ(D)&&(D=D.toString()),R=typeof D,R==="boolean"||R==="number"||R==="string")kyb(D);else if(typeof D==="function"){Y=L4;var t=mg();t&&(t._isSignalTextNode||t._isSafeOrSanitizedHtmlNode)||A59(Y,t,D);xd()}else if(D.type===Ecj)cm(D.type(Object.assign({},D.props,{children:D.children[0]})));else{T6.beforeVisit(D);if(typeof D.type==="string"){a:{D.__open||wyi(D.type,D.props.idomKey);t=L4;for(Y in D.props)if(D.props[Y]!==
cxj){var X=D.props[Y];R=B_;R.push(Y);R.push(X)}Y=cB.attributes;Y=Y===void 0?Dq:Y;X=L4;R=UU(X);JN9(X,R,Y);eoU(t,D.props,!0);if((D.props.skip||D.props.skipchildren)&&L4.hasChildNodes())vM5();else{if(D.type==="style"&&XOU(D.children)===null){vM5();Y=void 0;break a}cm(D.children)}$7$();D.__open&&(D.__open=!1);x7M(t,D.props);Y=t}return Y}if(D.type===_.c_)cm(D.children);else if(!DV$(D)){Y=D;try{Y0b(Y)}catch(M){D=M,(X=cB.handleError)==null||X.call.apply(X,[cB].concat(_.oK(yE(D,(t=Y.type)==null?void 0:t.TAG_NAME))))}Y.__open&&
($7$(),Y.__open=!1)}}};
RIj=function(D,Y){var R;pKr(D)?R=new Ip(Y,D):R=new D(Y);R.__type=D;R.__updateContext={nextState:R.state,isForced:!1};return R};
Y0b=function(D){var Y=D.type,R=Y.TAG_NAME;if(Y===O9)D.props.children=D.children,Y(D.props);else{D.children.length>0&&(D.props.children=D.children);var Z;(Z=D.props).idomKey||(Z.idomKey=Y);if(R){var t=wyi(R,D.props.idomKey);D.__open=!0;var X=t.__instance}X||(X=RIj(Y,D.props),X.props=null,t&&(t.__instance=X,X.el=t));var M;R=((M=X.__updateContext)!=null?M:{nextState:X.state,isForced:!1}).nextState;X.__updateContext=void 0;Y.getDerivedStateFromProps&&(R=Y.getDerivedStateFromProps(D.props,R));X.props=
D.props;X.state=R;M=function(){var W=X;T6.beforeRender(W);var z=W.render(W.props);T6.afterRender(W,z);z?(W.props.idomKey&&(z.props.idomKey=W.props.idomKey),W=z):W=void 0;if(z=W)if(z.__open=D.__open,W=cm(z),D.__open=z.__open,!Y.TAG_NAME)if(W)Y.TAG_NAME=W.tagName.toLowerCase(),W.__instance=X,X.el=W;else{var I;if((I=X.hooks)==null?0:I.length){var F;(F=cB.handleError)==null||F.call.apply(F,[cB].concat(_.oK(yE(Error("id")))))}}X.didPatch();T6.didPatch(X)};
(R=X.functionComponent)?Qoj(R,M,X.props.debugInstance):M()}};
DV$=function(D){var Y=D.type;if(!pKr(Y)||Y===O9||Y.componentType===f4)return!1;D.props.children=D.children.length>1?D.children:D.children[0];var R,Z=(R=D.props.idomKey)!=null?R:D.type,t;if(mg()&&((t=mg()[ap])==null?void 0:t.key)===Z){var X=mg(),M=X[ap];if(!M)throw Error("ac`"+X.tagName);var W;(W=M.updateSignalsFromIdomProps)==null||W.call(M,D.props);Z95(M);return!0}if(tVj.has(Y.name))throw W=Y.name,Y=(M=(X=VE)==null?void 0:X.name)!=null?M:"unknown",Error("$b`"+W+"`"+Y);$AM(D.type,D.props,D.children);
D.props.renderedFromIdom=!0;(W=Qoj(D.type,function(){return Ian(D.type,D.props)},D.props.debugInstance))&&sZ9(W);
return!0};
Xly=function(D){for(var Y=0;Y<Cb(D).length;Y++)xd()};
Z95=function(D){var Y=uFn();if(Y)Xly(Y);else for(var R=0;R<D.numNodes;R++)(Y=uFn())?Xly(Y):xd()};
uFn=function(){var D;return(D=mg()[ap])==null?void 0:D.sourceDynamicRange};
sZ9=function(D){D=BuU(D);D=Array.isArray(D)?D:[D];D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())L4.insertBefore(Y.value,mg()),xd()};
axU=function(D){var Y=GKM(),R=op(function(){return{value:typeof D==="function"?D():D}});
return[R.value,function(Z){if(jj!==null){var t;(t=cB.handleError)==null||t.call.apply(t,[cB].concat(_.oK(yE(Error("jd")))))}R.value=typeof Z==="function"?Z(R.value):Z;Y.__updateContext={nextState:Y.state,isForced:!0};Z=_.ge(Y.effectContext);t=D1(!1);try{if(Y.el){var X,M={},W=(M.props=Y.props,M.type=Y.__type,M.children=(X=Y.props.children)!=null?X:[],M[OU]=!0,M);try{dP9(Y.el,W,!0)}catch(F){var z,I;(I=cB.handleError)==null||I.call.apply(I,[cB].concat(_.oK(yE(F,(z=Y.__type)==null?void 0:z.TAG_NAME))))}}}finally{D1(t),
_.ge(Z)}}]};
YM=function(D,Y){var R=EW,Z=function(t){bM(R,function(){Y(t)})};
window.addEventListener(D,Z,void 0);_.w2(function(){window.removeEventListener(D,Z,void 0)})};
_.Zq=function(D){var Y=EW;return function(R){var Z,t=(Z=D.observer)!=null?Z:_.DH().resolve(RD);Z=MVi(R);var X=[];D.showOption&&X.push(t.observe(R,function(){bM(Y,function(){D.visibilityCallback(!0,R)})},D.showOption));
D.hideOption&&X.push(t.observe(R,function(){bM(Y,function(){D.visibilityCallback(!1,R)})},D.hideOption));
D.prescanOption&&D.prescanCallback&&X.push(t.observe(R,function(){bM(Y,function(){D.prescanCallback()})},D.prescanOption));
var M;Z.visibilityMonitorKeys=((M=Z.visibilityMonitorKeys)!=null?M:[]).concat(X)}};
MVi=function(D){var Y;return(Y=D.polymerController)!=null?Y:D};
_.tN=function(D){D.componentType=f4};
S0y=function(D,Y){var R=CEj;return _.S(_.c_,null,FiU(cB.enableLazyTsx,function(){return _.S(Wuo,{id:R,value:D,children:Y})},function(){var Z=zI$(R,D);
OW(Z);Z=_.ge(Z);try{return Y()}finally{_.ge(Z)}}))};
Wuo=function(D){var Y=D.children;D=zI$(D.id,D.value);OW(D);D=_.ge(D);try{return _.S(_.c_,null,z6(Y()))}finally{_.ge(D)}};
zI$=function(D,Y){return Object.assign(Object.create(TKy),{id:D,contextValue:Y})};
jZU=function(D){var Y,R=EW;_.oe(function(){var Z=_.ge(R),t=D1(!Y);try{if(Y)dP9(Y,D.children(),!0);else if(Y=z6(D.children()),!(Y instanceof Element))throw Error("kd");}finally{D1(t),_.ge(Z)}});
return Y};
_.Ixn=function(D,Y){var R;Y=$d(function(){var Z=D1(!0);Ie++;try{R=Cb(D()),Gk(!1)}catch(t){throw Gk(!0),t;}finally{D1(Z)}},Y===void 0?!1:Y);
return[R,Y]};
GbS=function(D){D=D.buf.charCodeAt(D.pos++);return Fuj[D]};
sw=function(D){var Y=0,R=0;do{var Z=GbS(D);Y|=(Z&31)<<R;R+=5}while(Z&32);return Y<0?Y+4294967296:Y};
eIM=function(D,Y,R){VVi(D,Y);D[Y][fxi].unshift(R)};
VVi=function(D,Y){if(!D[Y]||!D[Y][fxi]){var R=D[Y],Z=R?[R]:[];D[Y]=function(){for(var t=_.a(Z),X=t.next();!X.done;X=t.next())X.value.apply(this,arguments)};
D[Y][fxi]=Z}};
ARj=function(D){if(!D)return[];var Y=[];D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,Array.isArray(R)?Y.push.apply(Y,_.oK(ARj(R))):Y.push(R);return Y};
_.uy=function(D,Y){if(D&&n6i.test(D)||D==="//")return D;if(rRS===void 0){rRS=!1;try{var R=new URL("b","http://a");R.pathname="c%20d";rRS=R.href==="http://a/c%20d"}catch(Z){}}Y||(Y=document.baseURI||window.location.href);if(rRS)try{return(new URL(D,Y)).href}catch(Z){return D}Xo||(Xo=document.implementation.createHTMLDocument("temp"),Xo.base=Xo.createElement("base"),Xo.head.appendChild(Xo.base),Xo.anchor=Xo.createElement("a"),Xo.body.appendChild(Xo.anchor));Xo.base.href=Y;Xo.anchor.href=D;return Xo.anchor.href||
D};
$Vj=function(D,Y){return D.replace(wlj,function(R,Z,t,X){return Z+"'"+_.uy(t.replace(/["']/g,""),Y)+"'"+X})};
v65=function(D){return D.substring(0,D.lastIndexOf("/")+1)};
yRU=function(){o6y=!1;for(var D=aD.length,Y=0;Y<D;Y++){var R=aD[Y];if(R)try{R()}catch(Z){setTimeout(function(){throw Z;})}}aD.splice(0,D);
b9n+=D};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(D){console.log("["+D.is+"]: registered")};
lxU=function(D){NK9.push(D)};
M7=function(D){return JRU[D]||(JRU[D]=D.indexOf("-")<0?D:D.replace(kbM,function(Y){return Y[1].toUpperCase()}))};
CF=function(D){return JRU[D]||(JRU[D]=D.replace(UVl,"-$1").toLowerCase())};
KuU=function(D,Y){var R=Y.parentInfo&&KuU(D,Y.parentInfo);if(R)for(D=R.firstChild,R=0;D;D=D.nextSibling){if(Y.parentIndex===R++)return D}else return D};
hI9=function(D,Y){D=D._methodHost||D;return function(R){if(D[Y])D[Y](R,R.detail);else console.warn("listener method `"+Y+"` not defined")}};
Wy=function(D){return D.indexOf(".")>=0};
zy=function(D){var Y=D.indexOf(".");return Y===-1?D:D.slice(0,Y)};
LuU=function(D,Y){return D.indexOf(Y+".")===0};
SY=function(D,Y){return Y.indexOf(D+".")===0};
Ty=function(D,Y,R){return Y+R.slice(D.length)};
mV5=function(D,Y){return D===Y||LuU(D,Y)||SY(D,Y)};
jY=function(D){if(Array.isArray(D)){for(var Y=[],R=0;R<D.length;R++)for(var Z=D[R].toString().split("."),t=0;t<Z.length;t++)Y.push(Z[t]);return Y.join(".")}return D};
q0U=function(D){return Array.isArray(D)?jY(D).split("."):D.toString().split(".")};
ID=function(D,Y,R){Y=q0U(Y);for(var Z=0;Z<Y.length;Z++){if(!D)return;D=D[Y[Z]]}R&&(R.path=Y.join("."));return D};
H9l=function(D,Y,R){var Z=q0U(Y),t=Z[Z.length-1];if(Z.length>1){for(Y=0;Y<Z.length-1;Y++)if(D=D[Z[Y]],!D)return;D[t]=R}else D[Y]=R;return Z.join(".")};
xVS=function(D,Y,R){var Z=D[Y];if(!Z)Z=D[Y]={};else if(!D.hasOwnProperty(Y)&&(Z=D[Y]=Object.create(D[Y]),R))for(var t in Z)for(D=Z[t],Y=Z[t]=Array(D.length),R=0;R<D.length;R++)Y[R]=D[R];return Z};
Gy=function(D,Y,R,Z,t,X){if(Y){var M=!1,W=Fo++,z;for(z in R){var I=t?zy(z):z;if(I=Y[I])for(var F=0,G=I.length,V=void 0;F<G&&(V=I[F]);F++)V.info&&V.info.lastRun===W||t&&!PEM(z,V.trigger)||(V.info&&(V.info.lastRun=W),V.fn(D,z,R,Z,V.info,t,X),M=!0)}return M}return!1};
PEM=function(D,Y){if(Y){var R=Y.name;return R==D||!(!Y.structured||!LuU(R,D))||!(!Y.wildcard||!SY(R,D))}return!0};
QZi=function(D,Y,R,Z,t){Y=typeof t.method==="string"?D[t.method]:t.method;R=t.property;Y?Y.call(D,D.__data[R],Z[R]):t.dynamicFn||console.warn("observer method `"+t.method+"` not defined")};
BKl=function(D,Y,R,Z){R={value:R,queueProperty:!0};Z&&(R.path=Z);(0,_.Vt)(D).dispatchEvent(new CustomEvent(Y,{detail:R}))};
pl$=function(D,Y,R,Z,t,X){X=(Z=(X?zy(Y):Y)!=Y?Y:null)?ID(D,Z):D.__data[Y];Z&&X===void 0&&(X=R[Y]);BKl(D,t.eventName,X,Z)};
E6S=function(D,Y,R,Z,t){R=D.__data[Y];fF&&(R=fF(R,t.attrName,"attribute",D));D._propertyToAttribute(Y,t.attrName,R)};
dV5=function(D){var Y=D.constructor.__orderedComputedDeps;if(!Y){Y=new Map;for(var R=D.__computeEffects,Z=g6b(D),t=Z.counts,X=Z.ready,M=Z.total;Z=X.shift();)Y.set(Z,Y.size),(Z=R[Z])&&Z.forEach(function(W){W=W.info.methodInfo;--M;--t[W]===0&&X.push(W)});
M!==0&&console.warn("Computed graph for "+D.localName+" incomplete; circular?");D.constructor.__orderedComputedDeps=Y}return Y};
g6b=function(D){var Y=D.__computeInfo,R={};D=D.__computeEffects;var Z=[],t=0,X;for(X in Y){var M=Y[X];t+=R[X]=M.args.filter(function(z){return!z.literal}).length+(M.dynamicFn?1:0)}for(var W in D)Y[W]||Z.push(W);
return{counts:R,ready:Z,total:t}};
O9U=function(D,Y,R,Z,t){Y=i99(D,Y,R,Z,t);if(Y===AN)return!1;t=t.methodInfo;if(D.__dataHasAccessor&&D.__dataHasAccessor[t])return D._setPendingProperty(t,Y,!0);D[t]=Y;return!1};
YRy=function(D,Y,R,Z,t,X,M){R.bindings=R.bindings||[];Z={kind:Z,target:t,parts:X,literal:M,isCompound:X.length!==1};R.bindings.push(Z);Z.target&&Z.kind!="attribute"&&Z.kind!="text"&&!Z.isCompound&&Z.parts[0].mode==="{"&&(R=Z.parts[0],X=R.negate,Z.listenerEvent=R.event||CF(t)+"-changed",Z.listenerNegate=X);t=Y.nodeInfoList.length;for(R=0;R<Z.parts.length;R++){var W=Z.parts[R];W.compoundIndex=R;X=D;M=Y;var z=Z,I=W,F=t;if(!I.literal)if(z.kind==="attribute"&&z.target[0]==="-")console.warn("Cannot set attribute "+
z.target+' because "-" is not a valid attribute starting character');else for(W=I.dependencies,z={index:F,binding:z,part:I,evaluator:X},I=0;I<W.length;I++)F=W[I],typeof F=="string"&&(F=cRU(F),F.wildcard=!0),X._addTemplatePropertyEffect(M,F.rootProperty,{fn:Di9,info:z,trigger:F})}};
Di9=function(D,Y,R,Z,t,X,M){M=M[t.index];var W=t.binding,z=t.part;X&&z.source&&Y.length>z.source.length&&W.kind=="property"&&!W.isCompound&&M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[W.target]?(R=R[Y],Y=Ty(z.source,W.target,Y),M._setPendingPropertyOrPath(Y,R,!1,!0)&&D._enqueueClient(M)):(Y=t.evaluator._evaluateBinding(D,z,Y,R,Z,X),Y!==AN&&(W.isCompound&&(R=M.__dataCompoundStorage[W.target],R[z.compoundIndex]=Y,Y=R.join("")),W.kind==="attribute"||W.target!=="textContent"&&
(W.target!=="value"||M.localName!=="input"&&M.localName!=="textarea")||(Y=Y==void 0?"":Y),z=Y,fF&&(z=fF(z,W.target,W.kind,M)),W.kind=="attribute"?D._valueToNodeAttribute(M,z,W.target):(W=W.target,M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[W]?M.__readOnly&&M.__readOnly[W]||M._setPendingProperty(W,z)&&D._enqueueClient(M):D._setUnmanagedPropertyToNode(M,W,z))))};
RGb=function(D,Y,R){if(R.listenerEvent){var Z=R.parts[0];D.addEventListener(R.listenerEvent,function(t){var X=R.target,M=Z.source,W=Z.negate,z=t.detail,I=z&&z.path;I?(M=Ty(X,M,I),t=z&&z.value):t=t.currentTarget[X];Y.__readOnly&&Y.__readOnly[M]||!Y._setPendingPropertyOrPath(M,W?!t:t,!0,!!I)||z&&z.queueProperty||Y._invalidateProperties()})}};
Zoi=function(D,Y,R,Z,t,X){X=Y.static||X&&(typeof X!=="object"||X[Y.methodName]);t={methodName:Y.methodName,args:Y.args,methodInfo:t,dynamicFn:X};for(var M=0,W=void 0;M<Y.args.length&&(W=Y.args[M]);M++)W.literal||D._addPropertyEffect(W.rootProperty,R,{fn:Z,info:t,trigger:W});X&&D._addPropertyEffect(Y.methodName,R,{fn:Z,info:t});return t};
i99=function(D,Y,R,Z,t){Z=D._methodHost||D;var X=Z[t.methodName];if(X)return D=D._marshalArgs(t.args,Y,R),D===AN?AN:X.apply(Z,D);t.dynamicFn||console.warn("method `"+t.methodName+"` not defined")};
t3l=function(D){for(var Y="",R=0;R<D.length;R++)Y+=D[R].literal||"";return Y};
ucl=function(D){if(D=D.match(/([^\s]+?)\(([\s\S]*)\)/)){var Y={methodName:D[1],static:!0,args:saS};return D[2].trim()?Xf5(D[2].replace(/\\,/g,"&comma;").split(","),Y):Y}return null};
Xf5=function(D,Y){Y.args=D.map(function(R){R=cRU(R);R.literal||(Y.static=!1);return R},this);
return Y};
cRU=function(D){D=D.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var Y={name:D,value:"",literal:!1},R=D[0];R==="-"&&(R=D[1]);R>="0"&&R<="9"&&(R="#");switch(R){case "'":case '"':Y.value=D.slice(1,-1);Y.literal=!0;break;case "#":Y.value=Number(D),Y.literal=!0}Y.literal||(Y.rootProperty=zy(D),Y.structured=Wy(D),Y.structured&&(Y.wildcard=D.slice(-2)==".*",Y.wildcard&&(Y.name=D.slice(0,-2))));return Y};
aFU=function(D,Y,R){D=ID(D,R);D===void 0&&(D=Y[R]);return D};
M39=function(D,Y,R,Z){Z={indexSplices:Z};nF&&!D._overrideLegacyUndefined&&(Y.splices=Z);D.notifyPath(R+".splices",Z);D.notifyPath(R+".length",Y.length);nF&&!D._overrideLegacyUndefined&&(Z.indexSplices=[])};
ru=function(D,Y,R,Z,t,X){M39(D,Y,R,[{index:Z,addedCount:t,removed:X,object:Y,type:"splice"}])};
C$y=function(D){D=$Vj((D.body?D.body:D).textContent,D.baseURI);var Y=document.createElement("style");Y.textContent=D;return Y};
zGo=function(D){D=D.trim().split(/\s+/);for(var Y=[],R=0;R<D.length;R++)Y.push.apply(Y,_.oK(WLr(D[R])));return Y};
WLr=function(D){var Y=wu.import(D);if(!Y)return console.warn("Could not find style data in module named",D),[];if(Y._styles===void 0){D=[];D.push.apply(D,_.oK(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y)));var R=Y.querySelector("template");R&&D.push.apply(D,_.oK(SRM(R,Y.assetpath)));Y._styles=D}return Y._styles};
SRM=function(D,Y){if(!D._styles){for(var R=[],Z=D.content.querySelectorAll("style"),t=0;t<Z.length;t++){var X=Z[t],M=X.getAttribute("include");M&&R.push.apply(R,_.oK(zGo(M).filter(function(W,z,I){return I.indexOf(W)===z})));
Y&&(X.textContent=$Vj(X.textContent,Y));R.push(X)}D._styles=R}return D._styles};
TYS=function(D){return(D=wu.import(D))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var Y=[];D=D.querySelectorAll("link[rel=import][type~=css]");for(var R=0;R<D.length;R++){var Z=D[R];if(Z.import){var t=Z.import;if((Z=Z.hasAttribute("shady-unscoped"))&&!t._unscopedStyle){var X=C$y(t);X.setAttribute("shady-unscoped","");t._unscopedStyle=X}else t._style||(t._style=C$y(t));Y.push(Z?t._unscopedStyle:t._style)}}return Y};
IFy=function(D){D=D.trim().split(/\s+/);for(var Y="",R=0;R<D.length;R++)Y+=jaU(D[R]);return Y};
jaU=function(D){var Y=wu.import(D);if(Y&&Y._cssText===void 0){var R=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y),Z=Y.querySelector("template");Z&&(R+=FLb(Z,Y.assetpath));Y._cssText=R||null}Y||console.warn("Could not find style data in module named",D);return Y&&Y._cssText||""};
FLb=function(D,Y){var R="";D=SRM(D,Y);for(Y=0;Y<D.length;Y++){var Z=D[Y];Z.parentNode&&Z.parentNode.removeChild(Z);R+=Z.textContent}return R};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var Y="";D=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D);for(var R=0;R<D.length;R++)Y+=D[R].textContent;return Y};
$M=function(D,Y){return{index:D,removed:[],addedCount:Y}};
V3U=function(D,Y,R,Z){var t=0,X=0,M=0,W=0,z=Math.min(Y-t,Z-X);if(t==0&&X==0)a:{for(M=0;M<z;M++)if(D[M]!==R[M])break a;M=z}if(Y==D.length&&Z==R.length){W=D.length;for(var I=R.length,F=0;F<z-M&&G3l(D[--W],R[--I]);)F++;W=F}t+=M;X+=M;Y-=W;Z-=W;if(Y-t==0&&Z-X==0)return[];if(t==Y){for(Y=$M(t,0);X<Z;)Y.removed.push(R[X++]);return[Y]}if(X==Z)return[$M(t,Y-t)];z=t;M=X;Z=Z-M+1;W=Y-z+1;Y=Array(Z);for(I=0;I<Z;I++)Y[I]=Array(W),Y[I][0]=I;for(I=0;I<W;I++)Y[0][I]=I;for(I=1;I<Z;I++)for(F=1;F<W;F++)if(D[z+F-1]===
R[M+I-1])Y[I][F]=Y[I-1][F-1];else{var G=Y[I-1][F]+1,V=Y[I][F-1]+1;Y[I][F]=G<V?G:V}z=Y.length-1;M=Y[0].length-1;Z=Y[z][M];for(D=[];z>0||M>0;)z==0?(D.push(2),M--):M==0?(D.push(3),z--):(W=Y[z-1][M-1],I=Y[z-1][M],F=Y[z][M-1],G=I<F?I<W?I:W:F<W?F:W,G==W?(W==Z?D.push(0):(D.push(1),Z=W),z--,M--):G==I?(D.push(3),z--,Z=I):(D.push(2),M--,Z=F));D.reverse();Y=void 0;z=[];for(M=0;M<D.length;M++)switch(D[M]){case 0:Y&&(z.push(Y),Y=void 0);t++;X++;break;case 1:Y||(Y=$M(t,0));Y.addedCount++;t++;Y.removed.push(R[X]);
X++;break;case 2:Y||(Y=$M(t,0));Y.addedCount++;t++;break;case 3:Y||(Y=$M(t,0)),Y.removed.push(R[X]),X++}Y&&z.push(Y);return z};
fF$=function(D,Y){return V3U(D,D.length,Y,Y.length)};
G3l=function(D,Y){return D===Y};
AnU=function(D){if(D instanceof eG9)return D.value;throw Error("Bd`"+D);};
n5U=function(D,Y){for(var R in Y)R===null?D.style.removeProperty(R):D.style.setProperty(R,Y[R])};
rny=function(D,Y){return(D=window.getComputedStyle(D).getPropertyValue(Y))?D.trim():""};
o5y=function(D){requestAnimationFrame(function(){wfn?wfn(D):($i9||($i9=new Promise(function(Y){v5$=Y}),document.readyState==="complete"?v5$():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&v5$()})),$i9.then(function(){D&&D()}))})};
NYn=function(D){boi=D&&D.shimcssproperties?!1:ynr||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
KLo=function(D){if(!(lFU.indexOf(D)>-1)&&D!=="touchend"&&Jn5&&k3r&&Uiy)return{passive:!0}};
qRr=function(D){for(var Y=hGy?["click"]:lFU,R=0,Z;R<Y.length;R++)Z=Y[R],D?(LLn.length=0,document.addEventListener(Z,miU,!0)):document.removeEventListener(Z,miU,!0)};
vy=function(D){var Y=D.type;return lFU.indexOf(Y)>-1?Y==="mousemove"?(Y=D.buttons===void 0?1:D.buttons,D instanceof window.MouseEvent&&!Ho5&&(Y=xij[D.which]||0),!!(Y&1)):(D.button===void 0?0:D.button)===0:!1};
P$l=function(D){if(D.type==="click"){if(D.detail===0)return!0;var Y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);if(!Y.nodeType||Y.nodeType!==Node.ELEMENT_NODE)return!0;Y=Y.getBoundingClientRect();var R=D.pageX;D=D.pageY;return!(R>=Y.left&&R<=Y.right&&D>=Y.top&&D<=Y.bottom)}return!1};
Qa9=function(D,Y,R){D.movefn=Y;D.upfn=R;document.addEventListener("mousemove",Y);document.addEventListener("mouseup",R)};
oD=function(D){document.removeEventListener("mousemove",D.movefn);document.removeEventListener("mouseup",D.upfn);D.movefn=null;D.upfn=null};
BY$=function(D,Y){for(var R=document.elementFromPoint(D,Y),Z=R;Z&&Z.shadowRoot&&!window.ShadyDOM;){var t=Z;Z=Z.shadowRoot.elementFromPoint(D,Y);if(t===Z)break;Z&&(R=Z)}return R};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var Y=pfl(D);return Y.length>0?Y[0]:D.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var Y=D.type,R=D.currentTarget.__polymerGestures;if(R&&(R=R[Y])){if(!D.__polymerGesturesHandled&&(D.__polymerGesturesHandled={},Y.slice(0,5)==="touch")){var Z=D.changedTouches[0];Y==="touchstart"&&D.touches.length===1&&(E5b=Z.identifier);if(E5b!==Z.identifier)return;Jn5||(Y==="touchstart"||Y==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)}Z=
D.__polymerGesturesHandled;if(!Z.skip){for(var t=0,X;t<ly.length;t++)X=ly[t],R[X.name]&&!Z[X.name]&&X.flow&&X.flow.start.indexOf(D.type)>-1&&X.reset&&X.reset();for(t=0;t<ly.length;t++)X=ly[t],R[X.name]&&!Z[X.name]&&(Z[X.name]=!0,X[Y](D))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var Y=D.changedTouches[0],R=D.type;if(R==="touchstart")g5i=Y.clientX,dib=Y.clientY,ioj=!1;else if(R==="touchmove"&&!ioj){ioj=!0;R="auto";for(var Z=pfl(D),t=0,X;t<Z.length;t++)if(X=Z[t],X.__polymerGesturesTouchAction){R=X.__polymerGesturesTouchAction;break}Z=!1;t=Math.abs(g5i-Y.clientX);Y=Math.abs(dib-Y.clientY);D.cancelable&&(R==="none"?Z=!0:R==="pan-x"?Z=Y>t:R==="pan-y"&&(Z=t>Y));Z?D.preventDefault():
JN("track")}};
Uw=function(D,Y,R){return kM[Y]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,Y,R),!0):!1};
KF=function(D,Y,R){return kM[Y]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,Y,R),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,Y,R){var Z=kM[Y],t=Z.deps,X=Z.name,M=D.__polymerGestures;M||(D.__polymerGestures=M={});for(var W=0,z,I;W<t.length;W++)z=t[W],hGy&&lFU.indexOf(z)>-1&&z!=="click"||((I=M[z])||(M[z]=I={_count:0}),I._count===0&&D.addEventListener(z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,KLo(z)),I[X]=(I[X]||0)+1,I._count=(I._count||0)+1);D.addEventListener(Y,R);Z.touchAction&&_.hN(D,Z.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,Y,R){var Z=kM[Y],t=Z.deps;Z=Z.name;var X=D.__polymerGestures;if(X)for(var M=0,W,z;M<t.length;M++)W=t[M],(z=X[W])&&z[Z]&&(z[Z]=(z[Z]||1)-1,z._count=(z._count||1)-1,z._count===0&&D.removeEventListener(W,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,KLo(W)));D.removeEventListener(Y,R)};
Ool=function(D){ly.push(D);for(var Y=0;Y<D.emits.length;Y++)kM[D.emits[Y]]=D};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){for(var Y=0,R;Y<ly.length;Y++){R=ly[Y];for(var Z=0,t;Z<R.emits.length;Z++)if(t=R.emits[Z],t===D)return R}return null};
_.hN=function(D,Y){Jn5&&D instanceof HTMLElement&&LF.run(function(){D.style.touchAction=Y});
D.__polymerGesturesTouchAction=Y};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,Y,R){Y=new Event(Y,{bubbles:!0,cancelable:!0,composed:!0});Y.detail=R;(0,_.Vt)(D).dispatchEvent(Y);Y.defaultPrevented&&(D=R.preventer||R.sourceEvent)&&D.preventDefault&&D.preventDefault()};
JN=function(D){D=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D.info&&(D.info.prevent=!0)};
mB=function(D,Y,R,Z){Y&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,D,{x:R.clientX,y:R.clientY,sourceEvent:R,preventer:Z,prevent:function(t){return JN(t)}})};
cnn=function(D,Y,R){if(D.prevent)return!1;if(D.started)return!0;R=Math.abs(D.y-R);return Math.abs(D.x-Y)>=5||R>=5};
DpU=function(D,Y,R){if(Y){var Z=D.moves[D.moves.length-2],t=D.moves[D.moves.length-1],X=t.x-D.x,M=t.y-D.y,W=0;if(Z){var z=t.x-Z.x;W=t.y-Z.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,"track",{state:D.state,x:R.clientX,y:R.clientY,dx:X,dy:M,ddx:z,ddy:W,sourceEvent:R,hover:function(){return BY$(R.clientX,R.clientY)}})}};
R9M=function(D,Y,R){var Z=Math.abs(Y.clientX-D.x),t=Math.abs(Y.clientY-D.y),X=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R||Y);!X||Ybn[X.localName]&&X.hasAttribute("disabled")||!(isNaN(Z)||isNaN(t)||Z<=25&&t<=25||P$l(Y))||D.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,"tap",{x:Y.clientX,y:Y.clientY,sourceEvent:Y,preventer:R})};
ZwU=function(D,Y,R,Z,t){var X;t&&(X=typeof R==="object"&&R!==null)&&(Z=D.__dataTemp[Y]);Z=Z!==R&&(Z===Z||R===R);X&&Z&&(D.__dataTemp[Y]=R);return Z};
scU=function(){if(q7&&!Hy){if(!tsj){tsj=!0;var D=document.createElement("style");D.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(D)}return!0}return!1};
uNU=function(){return XQ9};
aDb=function(D,Y){XQ9=D;Object.setPrototypeOf(D,Y.prototype);new Y;XQ9=null};
Msl=function(D,Y){for(var R=0;R<Y.length;R++){var Z=Y[R];if(!!D!=!!Z.__hideTemplateChildren__)if(Z.nodeType===Node.TEXT_NODE)D?(Z.__polymerTextContent__=Z.textContent,Z.textContent=""):Z.textContent=Z.__polymerTextContent__;else if(Z.localName==="slot")if(D)Z.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Vt)((0,_.Vt)(Z).parentNode).replaceChild(Z.__polymerReplaced__,Z);else{var t=Z.__polymerReplaced__;t&&(0,_.Vt)((0,_.Vt)(t).parentNode).replaceChild(Z,t)}else Z.style&&(D?(Z.__polymerDisplay__=
Z.style.display,Z.style.display="none"):Z.style.display=Z.__polymerDisplay__);Z.__hideTemplateChildren__=D;Z._showHideChildren&&Z._showHideChildren(D)}};
ChU=function(D){return(D=D.__dataHost)&&D._methodHost||D};
SbU=function(D,Y,R){var Z=R.mutableData?Woi:xM;Py.mixin&&(Z=Py.mixin(Z));var t=function(){return Z.apply(this,arguments)||this};
_.n(t,Z);t.prototype.__templatizeOptions=R;t.prototype._bindTemplate(D);z9i(t,D,Y,R);return t};
GXb=function(D,Y,R,Z){var t=R.forwardHostProp;if(t&&Y.hasHostProps){var X=D.localName=="template",M=Y.templatizeTemplateClass;if(!M){if(X){var W=R.mutableData?T0b:jcS;M=function(){return W.apply(this,arguments)||this};
_.n(M,W);M=Y.templatizeTemplateClass=M}else{var z=D.constructor;M=function(){return z.apply(this,arguments)||this};
_.n(M,z);M=Y.templatizeTemplateClass=M}var I=Y.hostProps,F;for(F in I)M.prototype._addPropertyEffect("_host_"+F,M.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:IDi(t)}),M.prototype._createNotifyingProperty("_host_"+F);Qt&&Z&&Fo9(Y,R,Z)}D.__dataProto&&Object.assign(D.__data,D.__dataProto);if(X)aDb(D,M),D.__dataTemp={},D.__dataPending=null,D.__dataOld=null,D._enableProperties();else{Object.setPrototypeOf(D,M.prototype);Y=Y.hostProps;for(var G in Y)G="_host_"+G,G in D&&(Y=D[G],delete D[G],D.__data[G]=
Y)}}};
IDi=function(D){return function(Y,R,Z){D.call(Y.__templatizeOwner,R.substring(6),Z[R])}};
z9i=function(D,Y,R,Z){var t=R.hostProps||{},X;for(X in Z.instanceProps){delete t[X];var M=Z.notifyInstanceProp;M&&D.prototype._addPropertyEffect(X,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Vsl(M)})}if(Z.forwardHostProp&&Y.__dataHost)for(var W in t)R.hasHostProps||(R.hasHostProps=!0),D.prototype._addPropertyEffect(W,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:fDy()})};
Vsl=function(D){return function(Y,R,Z){D.call(Y.__templatizeOwner,Y,R,Z[R])}};
fDy=function(){return function(D,Y,R){D.__dataHost._setPendingPropertyOrPath("_host_"+Y,R[Y],!0,!0)}};
Py=function(D,Y,R){if(By&&!ChU(D))throw Error("Hd");R=R||{};if(D.__templatizeOwner)throw Error("Id");D.__templatizeOwner=Y;var Z=(Y?Y.constructor:xM)._parseTemplate(D),t=Z.templatizeInstanceClass;t||(t=SbU(D,Z,R),Z.templatizeInstanceClass=t);var X=ChU(D);GXb(D,Z,R,X);R=function(){return t.apply(this,arguments)||this};
_.n(R,t);R.prototype._methodHost=X;R.prototype.__dataHost=D;R.prototype.__templatizeOwner=Y;R.prototype.__hostProps=Z.hostProps;return R};
Fo9=function(D,Y,R){R=R.constructor._properties;D=D.propertyEffects;Y=Y.instanceProps;for(var Z in D)if(!(R[Z]||Y&&Y[Z]))for(var t=D[Z],X=0;X<t.length;X++){var M=t[X].info.part;if(!M.signature||!M.signature.static){console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
e9M=function(D,Y){for(var R;Y;)if(R=Y.__dataHost?Y:Y.__templatizeInstance)if(R.__dataHost!=D)Y=R.__dataHost;else return R;else Y=(0,_.Vt)(Y).parentNode;return null};
pF=function(D){return D.localName==="slot"};
ArU=function(){for(var D=Ew.prototype,Y="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),R={},Z=0;Z<Y.length;R={method$jscomp$33:void 0},Z++)R.method$jscomp$33=Y[Z],D[R.method$jscomp$33]=function(t){return function(){return this.node[t.method$jscomp$33].apply(this.node,arguments)}}(R)};
n09=function(D,Y){for(var R={},Z=0;Z<Y.length;R={name$jscomp$422:void 0},Z++)R.name$jscomp$422=Y[Z],Object.defineProperty(D,R.name$jscomp$422,{get:function(t){return function(){return this.node[t.name$jscomp$422]}}(R),
configurable:!0})};
rro=function(){for(var D=Ew.prototype,Y=["textContent","innerHTML","className"],R={},Z=0;Z<Y.length;R={name$jscomp$423:void 0},Z++)R.name$jscomp$423=Y[Z],Object.defineProperty(D,R.name$jscomp$423,{get:function(t){return function(){return this.node[t.name$jscomp$423]}}(R),
set:function(t){return function(X){this.node[t.name$jscomp$423]=X}}(R),
configurable:!0})};
wQr=function(){gu=document.documentElement.getAttribute("dir");gu=document.documentElement.getAttribute("dir");for(var D=0;D<du.length;D++){var Y=du[D];Y.__autoDirOptOut||Y.setAttribute("dir",gu)}};
bwl=function(){iy=!0;requestAnimationFrame(function(){iy=!1;$p9(v0U);setTimeout(function(){for(var D=0,Y=Ow.length;D<Y;D++)o0S(Ow.shift())})})};
$p9=function(D){for(;D.length;)o0S(D.shift())};
o0S=function(D){var Y=D[0],R=D[1];D=D[2];try{R.apply(Y,D)}catch(Z){setTimeout(function(){throw Z;})}};
_.yri=function(D,Y,R){iy||bwl();v0U.push([D,Y,R])};
_.cy=function(D,Y,R){iy||bwl();Ow.push([D,Y,R])};
Jry=function(D,Y){Y=Y===void 0?!1:Y;if(!N05||!lD9||!N05.handlesDynamicScoping)return null;var R=lD9.ScopingShim;if(!R)return null;var Z=R.scopeForNode(D),t=(0,_.Vt)(D).getRootNode(),X=function(M){if((0,_.Vt)(M).getRootNode()===t){var W=Array.from(N05.nativeMethods.querySelectorAll.call(M,"*"));W.push(M);for(M=0;M<W.length;M++){var z=W[M];if((0,_.Vt)(z).getRootNode()===t){var I=R.currentScopeForNode(z);I!==Z&&(I!==""&&R.unscopeNode(z,I),R.scopeNode(z,Z))}}}};
X(D);return Y?(Y=new MutationObserver(function(M){for(var W=0;W<M.length;W++)for(var z=M[W],I=0;I<z.addedNodes.length;I++){var F=z.addedNodes[I];F.nodeType===Node.ELEMENT_NODE&&X(F)}}),Y.observe(D,{childList:!0,
subtree:!0}),Y):null};
kXo=function(){document.body.removeAttribute("unresolved")};
mpU=function(D){var Y=D=D.replace(Upo,"").replace(Kob,""),R=new h9n;R.start=0;R.end=Y.length;for(var Z=R,t=0,X=Y.length;t<X;t++)if(Y[t]==="{"){Z.rules||(Z.rules=[]);var M=Z,W=M.rules[M.rules.length-1]||null;Z=new h9n;Z.start=t+1;Z.parent=M;Z.previous=W;M.rules.push(Z)}else Y[t]==="}"&&(Z.end=t+1,Z=Z.parent||R);return Lo5(R,D)};
Lo5=function(D,Y){var R=Y.substring(D.start,D.end-1);D.parsedCssText=D.cssText=R.trim();D.parent&&(R=Y.substring(D.previous?D.previous.end:D.parent.start,D.start-1),R=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(R),R=R.replace(qbl," "),R=R.substring(R.lastIndexOf(";")+1),R=D.parsedSelector=D.selector=R.trim(),D.atRule=R.indexOf("@")===0,D.atRule?R.indexOf("@media")===0?D.type=4:R.match(HwU)&&(D.type=7,D.keyframesName=D.selector.split(qbl).pop()):R.indexOf("--")===
0?D.type=1E3:D.type=1);if(R=D.rules)for(var Z=0,t=R.length,X=void 0;Z<t&&(X=R[Z]);Z++)Lo5(X,Y);return D};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){return D.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var Y=arguments[1],R=6-Y.length;R--;)Y="0"+Y;return"\\"+Y})};
xpy=function(D,Y,R){R=R===void 0?"":R;var Z="";if(D.cssText||D.rules){var t=D.rules;if(t&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(t))for(var X=0,M=t.length,W=void 0;X<M&&(W=t[X]);X++)Z=xpy(W,Y,Z);else Y?Y=D.cssText:(Y=D.cssText,Y=Y.replace(PhU,"").replace(QcU,""),Y=Y.replace(B0U,"").replace(pQU,"")),(Z=Y.trim())&&(Z="  "+Z+"\n")}Z&&(D.selector&&(R+=D.selector+" {\n"),R+=Z,D.selector&&(R+="}\n\n"));return R};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){D=D[0];return!!D&&!!D.selector&&D.selector.indexOf("--")===0};
g0i=function(D){if(D=E0i[D])D._applyShimCurrentVersion=D._applyShimCurrentVersion||0,D._applyShimValidatingVersion=D._applyShimValidatingVersion||0,D._applyShimNextVersion=(D._applyShimNextVersion||0)+1};
dpU=function(D){return D._applyShimCurrentVersion===D._applyShimNextVersion};
Owr=function(D){D._applyShimValidatingVersion=D._applyShimNextVersion;D._validating||(D._validating=!0,iw5.then(function(){D._applyShimCurrentVersion=D._applyShimNextVersion;D._validating=!1}))};
Dql=function(D){if(!D)return"";typeof D==="string"&&(D=mpU(D));return xpy(D,cri)};
Yrr=function(D){!D.__cssRules&&D.textContent&&(D.__cssRules=mpU(D.textContent));return D.__cssRules||null};
ZCy=function(D,Y,R,Z){if(D){var t=!1,X=D.type;if(Z&&X===4){var M=D.selector.match(RDU);M&&(window.matchMedia(M[1]).matches||(t=!0))}X===1?Y(D):R&&X===7?R(D):X===1E3&&(t=!0);if((D=D.rules)&&!t)for(t=0,X=D.length,M=void 0;t<X&&(M=D[t]);t++)ZCy(M,Y,R,Z)}};
tUi=function(D,Y){var R=D.indexOf("var(");if(R===-1)return Y(D,"","","");a:{var Z=0;var t=R+3;for(var X=D.length;t<X;t++)if(D[t]==="(")Z++;else if(D[t]===")"&&--Z===0)break a;t=-1}Z=D.substring(R+4,t);R=D.substring(0,R);D=tUi(D.substring(t+1),Y);X=Z.indexOf(",");if(X===-1)return Y(R,Z.trim(),"",D);t=Z.substring(0,X).trim();Z=Z.substring(X+1).trim();return Y(R,t,Z,D)};
sgy=function(D){if(Da!==void 0)return Da;if(D.__cssBuild===void 0){var Y=D.getAttribute("css-build");if(Y)D.__cssBuild=Y;else{a:{Y=D.localName==="template"?D.content.firstChild:D.firstChild;if(Y instanceof Comment&&(Y=Y.textContent.trim().split(":"),Y[0]==="css-build")){Y=Y[1];break a}Y=""}if(Y!==""){var R=D.localName==="template"?D.content.firstChild:D.firstChild;R.parentNode.removeChild(R)}D.__cssBuild=Y}}return D.__cssBuild||""};
uIi=function(D,Y,R,Z){for(var t=Y._noAccessors,X=Object.getOwnPropertyNames(Y),M=0;M<X.length;M++){var W=X[M];if(!(W in Z))if(t)D[W]=Y[W];else{var z=Object.getOwnPropertyDescriptor(Y,W);z&&(z.configurable=!0,Object.defineProperty(D,W,z))}}for(var I in Xj9)Y[I]&&(R[I]=R[I]||[],R[I].push(Y[I]))};
aob=function(D,Y,R){Y=Y||[];for(var Z=D.length-1;Z>=0;Z--){var t=D[Z];t?Array.isArray(t)?aob(t,Y):Y.indexOf(t)<0&&(!R||R.indexOf(t)<0)&&Y.unshift(t):console.warn("behavior is null, check for missing or 404 import")}return Y};
MU$=function(D,Y){for(var R in Y){var Z=D[R],t=Y[R];D[R]=!("value"in t)&&Z&&"value"in Z?Object.assign({value:Z.value},t):t}};
zDo=function(D,Y,R){var Z={},t=function(){return Y.apply(this,arguments)||this};
_.n(t,Y);t._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(M)for(var z=0,I;z<M.length;z++)I=M[z],I.properties&&this.createProperties(I.properties),I.observers&&this.createObservers(I.observers,I.properties);D.properties&&this.createProperties(D.properties);D.observers&&this.createObservers(D.observers,D.properties);this._prepareTemplate()}else Y._finalizeClass.call(this)};
t.prototype.created=function(){Y.prototype.created.call(this);var z=Z.created;if(z)for(var I=0;I<z.length;I++)z[I].call(this)};
t.prototype._registered=function(){var z=t.prototype;if(!z.hasOwnProperty("__hasRegisterFinished")){z.__hasRegisterFinished=!0;Y.prototype._registered.call(this);q7&&W(z);z=Object.getPrototypeOf(this);var I=Z.beforeRegister;if(I)for(var F=0;F<I.length;F++)I[F].call(z);if(I=Z.registered)for(F=0;F<I.length;F++)I[F].call(z)}};
t.prototype._applyListeners=function(){Y.prototype._applyListeners.call(this);var z=Z.listeners;if(z)for(var I=0;I<z.length;I++){var F=z[I];if(F)for(var G in F)this._addMethodEventListenerToNode(this,G,F[G])}};
t.prototype._ensureAttributes=function(){var z=Z.hostAttributes;if(z)for(var I=z.length-1;I>=0;I--){var F=z[I],G;for(G in F)this._ensureAttribute(G,F[G])}Y.prototype._ensureAttributes.call(this)};
t.prototype.ready=function(){Y.prototype.ready.call(this);var z=Z.ready;if(z)for(var I=0;I<z.length;I++)z[I].call(this)};
t.prototype.attached=function(){Y.prototype.attached.call(this);var z=Z.attached;if(z)for(var I=0;I<z.length;I++)z[I].call(this)};
t.prototype.detached=function(){Y.prototype.detached.call(this);var z=Z.detached;if(z)for(var I=0;I<z.length;I++)z[I].call(this)};
t.prototype.attributeChanged=function(z,I,F){Y.prototype.attributeChanged.call(this);var G=Z.attributeChanged;if(G)for(var V=0;V<G.length;V++)G[V].call(this,z,I,F)};
_.YF.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){var z={};if(M)for(var I=0;I<M.length;I++)MU$(z,M[I].properties);MU$(z,D.properties);return z}},
observers:{configurable:!0,enumerable:!0,get:function(){var z=[];if(M)for(var I=0,F;I<M.length;I++)F=M[I],F.observers&&(z=z.concat(F.observers));D.observers&&(z=z.concat(D.observers));return z}}});
if(R){Array.isArray(R)||(R=[R]);var X=Y.prototype.behaviors;var M=aob(R,null,X);t.prototype.behaviors=X?X.concat(R):M}var W=function(z){if(M)for(var I=M,F=0;F<I.length;F++)uIi(z,I[F],Z,C3r);uIi(z,D,Z,Wcr)};
q7||W(t.prototype);t.generatedFrom=D;return t};
IoU=function(D){var Y=typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0};Y.fastInit===void 0&&(Y.fastInit=!0);return function(R){if(!Y.disableInheritanceCheck&&Object.getPrototypeOf(R.prototype).constructor!==_.RR)throw Error("Md");var Z=R.prototype;Z.is=Y.is;eIM(Z,"created",function(){this.hostElement=this;this.polymerController=this});
Sr5(Z,R,Y.fastInit);Y.notifyObserversOnUndefined&&(Z._overrideLegacyUndefined=!0);if(Tyy)for(var t=_.a(Object.getOwnPropertyNames(Z)),X=t.next();!X.done;X=t.next()){X=X.value;var M=Object.getOwnPropertyDescriptor(Z,X);M.enumerable===!1&&(M.enumerable=!0,Object.defineProperty(Z,X,M))}if("template"in R)var W=function(){return R.template};
else Y.template!==void 0&&(W=Y.template);if(W!==void 0){var z;Object.defineProperty(Z,"_template",{get:function(){z===void 0&&(z=W());return z},
set:function(I){z=I},
configurable:!0,enumerable:!0})}Polymer(Z);R[jgi]=Z}};
FcU=function(D){D=D===void 0?{}:D;D.fastInit===void 0&&(D.fastInit=!0);return function(Y){if(!D.disableInheritanceCheck&&Object.getPrototypeOf(Y.prototype).constructor!==Za)throw Error("Nd");Sr5(Y.prototype,Y,D.fastInit)}};
Sr5=function(D,Y,R){R=R===void 0?!1:R;Gt$(Y);R?eIM(D,"created",function(){this.disableEnforceFastDefaultValuesCheck||VU5(Y,this)}):eIM(D,"ready",function(){for(var Z={},t=_.a(ARj(this.behaviors)),X=t.next();!X.done;X=t.next())X=X.value,X.properties&&Object.assign(Z,foS(this,X.properties));
Object.assign(Z,foS(this,this.properties));VU5(Y,this);t=_.a(Object.keys(Z));for(X=t.next();!X.done;X=t.next())X=X.value,this[X]=Z[X]})};
VU5=function(D,Y){if(Tyy){D=new D;for(var R=_.a(Object.getOwnPropertyNames(D)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Y[Z]=D[Z];for(R=Y;R&&R!==Object.prototype;R=Object.getPrototypeOf(R)){Z=_.a(Object.getOwnPropertyNames(R));for(var t=Z.next();!t.done;t=Z.next())t=t.value,D.hasOwnProperty(t)||Object.defineProperty(D,t,eDU(Y,t))}}else D.apply(Y)};
eDU=function(D,Y){return{get:function(){var R=D[Y];return R instanceof Function?R.bind(D):R},
set:function(R){D[Y]=R}}};
foS=function(D,Y){if(!Y)return{};for(var R={},Z=_.a(Object.keys(Y)),t=Z.next();!t.done;t=Z.next())if(t=t.value,!Y[t].readOnly){var X=D[t];X!==void 0&&(R[t]=X)}return R};
Gt$=function(D){var Y=new D;D=D.prototype.properties||{};for(var R=_.a(Object.keys(D)),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Y.hasOwnProperty(Z)){var t=D[Z];typeof t==="function"&&(D[Z]=t={type:t});Y[Z]!=null&&t.type===Object&&(t.type=A0U(Y[Z].constructor))}};
A0U=function(D){for(var Y=_.a(nrl),R=Y.next();!R.done;R=Y.next())if(R=R.value,D===R)return R;return Object};
r0n=function(D){return function(Y,R){Y.behaviors=Y.behaviors||[];Y.behaviors.push(D||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",Y,R).prototype:void 0));Object.defineProperty(Y,R,{get:function(){return this},
enumerable:!0,configurable:!0})}};
wjj=function(D){D=D===void 0?{}:D;return function(Y,R){Y.properties=Y.properties||{};D.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?D.type=A0U(Reflect.getMetadata("design:type",Y,R)):D.type=String);var Z=D,t=Y.properties[R];Y.properties[R]=t?Object.assign({},t,Z):Z}};
$qb=function(D){return function(Y,R){Y.listeners=Y.listeners||{};Y.listeners[D]=R}};
vr5=function(){var D=_.UN.apply(0,arguments);if(D.length===0)throw Error("Od");return function(Y,R){Y.observers=Y.observers||[];Y.observers.push(R+"("+D.join(",")+")")}};
orr=function(){var D=_.UN.apply(0,arguments);return function(Y,R,Z){var t=Object.getOwnPropertyDescriptor(Y,R).get,X="__compute__"+R;Object.defineProperty(Y,X,{value:t,enumerable:!0});Y.properties=Y.properties||{};t=Y.properties[R];t||(t={},Y.properties[R]=t);t.computed=X+"("+D.join(",")+")";Z.get=void 0}};
_.t5=function(D,Y,R){_.AE.call(this);this.JSC$11223_id_=null;this.usingListeners_=!1;this.JSC$11223_listener_=D;this.handler_=R;this.JSC$11223_win_=Y||window;this.callback_=(0,_.nG)(this.JSC$11225_doAction_,this)};
sd=function(D){this.range_=D};
X3=function(D){this.range_=D};
MA=function(D,Y,R){_.AE.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=D;this.scrollTimer_=new _.ul(50);this.JSC$11302_eventHandler_=new _.aR(this);this.scrollDelta_=new _.lm;this.containerIsActuallyContent_=D.tagName==="BODY"||D.tagName==="HTML";this.containerBounds_=bC$(D);this.containerIsActuallyContent_&&(D=_.GI(),this.containerBounds_.height=D.height,this.containerBounds_.width=D.width);this.margin_=Y||0;if(Y){if(Y=this.containerBounds_.clone(),D=this.margin_){var Z=
Math.min(D,Y.height*.25);Y.top+=Z;Y.height-=2*Z;D=Math.min(D,Y.width*.25);Y.left+=D;Y.width-=2*D}}else Y=this.containerBounds_;this.scrollBounds_=Y;R||this.JSC$11302_eventHandler_.listen(_.k2(this.containerNode_),"mousemove",this.JSC$11304_onMouseMove);this.JSC$11302_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11304_onTick_)};
_.C2=function(D){this.mechanism=D};
WO=function(D,Y){this.JSC$11400_key_=D;this.JSC$11400_value_=Y};
NyU=function(D){if(D>=55296&&D<=57343||D>1114111)return"\ufffd";D in y0i&&(D=y0i[D]);var Y="";D>65535&&(D-=65536,Y+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023);return Y+=String.fromCharCode(D)};
loU=function(D,Y){return D<Y?1:-1};
ktb=function(){return function(D){return D.charAt(1)==="#"?D.charAt(2)==="X"||D.charAt(2)==="x"?NyU(parseInt(D.substr(3),16)):NyU(parseInt(D.substr(2),10)):J0l[D.slice(1,-1)]}};
LcM=function(D){return D.slice(1,D.length-1).trim().replace(UqS,function(Y){return hDU[Y]||" "})};
zK=function(D){return D===32||D===9};
SP=function(D,Y){return Y<D.length?D.charCodeAt(Y):-1};
mqn=function(D){for(;D;){if(D._lastLineBlank)return!0;var Y=D.type;if(Y==="list"||Y==="item")D=D._lastChild;else break}return!1};
TK=function(D){if(qry.test(D)){var Y=1,R=0,Z=0;for(D[R]=="|"&&R++;R<D.length;){switch(D[R]){case "|":Z=1;break;case " ":break;case "\t":break;default:Z&&(Z=0,Y++)}R++}return HCn.test(D)?-Y:Y}return 0};
xqS=function(D){return D=="table"||D=="row"||D=="cell"};
P3U=function(){return new jP("document",[[1,1],[0,0]])};
Qg$=function(){};
IR=function(){var D={safe:!1};D=D||{};D.softbreak=D.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=D};
dqM=function(D,Y){var R="";if(D)if(D=D.toLowerCase(),D===" "||ByS.test(D))R="space";else if(pjo.test(D))R="esc";else if(D.length==1){if(!Y||ErS.test(D))R=D}else R=grl.test(D)?D.replace("arrow",""):D=="multiply"?"*":D;return R};
DZl=function(D,Y){var R=D.hasModifiers;if(Y.key)R=dqM(Y.key,R);else if(Y.detail&&Y.detail.key)R=dqM(Y.detail.key,R);else{R=Y.keyIdentifier;var Z="";R&&(R in iCr?Z=iCr[R]:OCj.test(R)?(R=parseInt(R.replace("U+","0x"),16),Z=String.fromCharCode(R).toLowerCase()):Z=R.toLowerCase());(R=Z)||(R=Y.keyCode,Z="",Number(R)&&(R>=65&&R<=90?Z=String.fromCharCode(32+R):R>=112&&R<=123?Z="f"+(R-112+1):R>=48&&R<=57?Z=String(R-48):R>=96&&R<=105?Z=String(R-96):Z=c0U[R]),R=Z);R=R||""}return R===D.key&&(!D.hasModifiers||
!!Y.shiftKey===!!D.shiftKey&&!!Y.ctrlKey===!!D.ctrlKey&&!!Y.altKey===!!D.altKey&&!!Y.metaKey===!!D.metaKey)};
RcS=function(D){return D.length===1?{combo:D,key:D,event:"keydown"}:D.split("+").reduce(function(Y,R){var Z=R.split(":");R=Z[0];Z=Z[1];R in Yk5?(Y[Yk5[R]]=!0,Y.hasModifiers=!0):(Y.key=R,Y.event=Z||"keydown");return Y},{combo:D.split(":").shift()})};
Zgj=function(D){return D.trim().split(" ").map(function(Y){return RcS(Y)})};
tE9=function(D,Y){if(D&&D.fn){var R=D.fn;D.fn=function(){try{R.apply(this,arguments)}catch(Z){if(Z instanceof F3)console.warn("Argument '"+Z.arg+"'"+(Y?" for method '"+Y+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Z;}}}return D};
sFj=function(){var D=_.UN.apply(0,arguments);return D.length===0?function(Y){return Y}:D.length===1?D[0]:D.reduce(function(Y,R){return function(){return Y(R.apply(null,_.oK(_.UN.apply(0,arguments))))}})};
XPS=function(){var D=_.UN.apply(0,arguments);return function(Y){return function(R,Z){R=Y(R,Z);var t=function(){throw Error("ye");},X={getState:R.getState,
dispatch:function(M){return t.apply(null,[M].concat(_.oK(_.UN.apply(1,arguments))))}};
Z=D.map(function(M){return M(X)});
t=sFj.apply(null,_.oK(Z))(R.dispatch);return Object.assign({},R,{dispatch:t})}}};
MEy=function(D){Object.keys(D).forEach(function(Y){var R=D[Y];if(typeof R(void 0,{type:uQi})==="undefined")throw Error("ze`"+Y);if(typeof R(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+aWr()})==="undefined")throw Error("Ae`"+Y+"`"+uQi);})};
GK=function(D){for(var Y=Object.keys(D),R={},Z=0;Z<Y.length;Z++){var t=Y[Z];typeof D[t]==="function"&&(R[t]=D[t])}var X=Object.keys(R);try{MEy(R)}catch(W){var M=W}return function(W,z){W=W===void 0?{}:W;if(M)throw M;for(var I=!1,F={},G=0;G<X.length;G++){var V=X[G],e=W[V],r=(0,R[V])(e,z);if(typeof r==="undefined")throw W=z&&z.type,Error("Be`"+(W?'"'+String(W)+'"':"(unknown type)")+"`"+V);F[V]=r;I=I||r!==e}return(I=I||X.length!==Object.keys(W).length)?F:W}};
CQl=function(D,Y,R){function Z(){if(F)throw Error("Ce");return W}
function t(e){if(typeof e!=="function")throw Error("De`"+typeof e);if(F)throw Error("Ee");var r=!0;I===z&&(I=z.slice());I.push(e);return function(){if(r){if(F)throw Error("Fe");r=!1;I===z&&(I=z.slice());var l=I.indexOf(e);I.splice(l,1);z=null}}}
function X(e){if(typeof e!=="object"||e===null)var r=!1;else{for(r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);r=Object.getPrototypeOf(e)===r}if(!r)throw Error("Ge`"+typeof e);if(typeof e.type==="undefined")throw Error("He");if(F)throw Error("Ie");try{F=!0,W=M(W,e)}finally{F=!1}r=z=I;for(var l=0;l<r.length;l++)(0,r[l])();return e}
if(typeof Y==="function"&&typeof R==="function"||typeof R==="function"&&typeof arguments[3]==="function")throw Error("Je");typeof Y==="function"&&typeof R==="undefined"&&(R=Y,Y=void 0);if(typeof R!=="undefined"){if(typeof R!=="function")throw Error("Ke`"+typeof R);return R(CQl)(D,Y)}if(typeof D!=="function")throw Error("Le`"+typeof D);var M=D,W=Y,z=[],I=z,F=!1;X({type:uQi});var G={},V=(G.dispatch=X,G.subscribe=t,G.getState=Z,G.replaceReducer=function(e){if(typeof e!=="function")throw Error("Me`"+
typeof e);M=e;X({type:WPl});return V},G[zcj]=function(){var e={};
return e.subscribe=function(r){function l(){r.next&&r.next(Z())}
if(typeof r!=="object"||r===null)throw new TypeError("Ne`"+typeof r);l();return{unsubscribe:t(l)}},e[zcj]=function(){return this},e},G);
return V};
SkM=function(D){function Y(){t&&(t=!1,D());X&&Z()}
function R(){requestAnimationFrame(Y)}
function Z(){var W=Date.now();if(t){if(W-M<2)return;X=!0}else t=!0,X=!1,setTimeout(R,20);M=W}
var t=!1,X=!1,M=0;return Z};
VQ=function(D){return typeof D==="number"?D:parseFloat(D)||0};
T3i=function(D){return _.UN.apply(1,arguments).reduce(function(Y,R){return Y+VQ(D["border-"+R+"-width"])},0)};
_.w=function(D,Y){Y=HZ(qy(Y));D.innerHTML=Y};
FPo=function(D){var Y=jFj;Y||(Y=IWU(),Y=jFj=_.y7.transpose(Y));Y=Y[D];return typeof Y==="string"?Y:_.f2(D)};
Ggj=function(D){D=String(D).toLowerCase();var Y=IWU()[D];return typeof Y==="string"?Y:_.eP(D)};
VEn=function(D){D=D.toLowerCase();D=IWU()[D];return typeof D==="string"?D:null};
IWU=function(){if(!fWj){for(var D=Object.assign({},ecU),Y=_.a(Alo),R=Y.next();!R.done;R=Y.next())R=R.value,D[R.toLowerCase()]=R;fWj=D}return fWj};
wPU=function(D,Y){var R=window.customElements;return R&&R.get(D)||nBl[D]===!0?2:Y.name==="HTMLUnknownElement"?1:Y.name==="HTMLElement"&&rln.test(D)?3:0};
oBr=function(D,Y){switch(Y){case "innerHTML":return $Zj(D)===1?2:null;case "textContent":return D=$Zj(D),D===1||D===6?1:null;default:var R,Z;return(Z=(R=vBn[D.localName])==null?void 0:R[Y])!=null?Z:null}};
$Zj=function(D){var Y=D.localName,R=wPU(Y,D.constructor);switch(R){case 0:case 1:return bg$(Y,D);case 3:case 2:return 1;default:_.qU(R,"got an unknown element classification")}};
bg$=function(D,Y){var R=Object.hasOwnProperty.call(ylS,D)?ylS[D]:null;return R!==null?R:Object.hasOwnProperty.call(N3l,D)&&Y instanceof SVGElement?N3l[D]:null};
lWM=function(D,Y){return Y};
kgU=function(D){return(D=D.split(Jll,2))?{url:D[0],metadata:D[1]}:null};
KPy=function(D){var Y=String(D.url).replace(UZl,encodeURIComponent);if(D=D.metadata){UZl.lastIndex=0;if(UZl.test(D))return null;Y+=" "+D}return Y};
qkr=function(D){function Y(I){var F=I.localName;if(!I.getAttribute("is")&&wPU(F,I.constructor)===2){var G;return(G=z)!=null?G:z=document.createElement("polyresinuncustomized")}(I=W[F])||(I=W[F]=document.createElement(F));return I}
var R=D.reportHandler||void 0,Z=D.safeTypesBridge||hcU,t=/^$/;if(D=D.allowedIdentifierPrefixes){D=_.a(D);for(var X=D.next();!X.done;X=D.next())t=new RegExp(t.source+"|^"+_.LPo(X.value))}R&&R(!1,"initResin",null);var M=mZU(t,Z,R),W={},z=null;return function(I,F,G){var V=I.nodeType;if(V!==Node.ELEMENT_NODE){if(V===Node.TEXT_NODE){F=I.parentElement;G=!F;if(F&&F.nodeType===Node.ELEMENT_NODE){V=F.localName;var e=wPU(V,F.constructor);switch(e){case 0:case 1:F=bg$(V,F);G=F===1||F===6;break;case 3:case 2:G=
!0;break;default:_.qU(e,"got an unknown element classification")}}if(G)return function(K){return""+Z(K,"STRING",K)}}return function(K){if(!K&&K!==document.all)return K;
R&&R(!0,"Failed to sanitize "+(I.parentElement&&I.parentElement.nodeName)+" #text node to value "+K,I.parentElement);return A5}}var r=I.localName;
V=Y(I);var l=null;switch(G){case "attribute":if(Ggj(F)in V)break;return function(K){return K};
case "property":if(F in V){l=oBr(V,F);break}if((e=VEn(F))&&e in V)break;return function(K){return K};
default:_.qU(G,"got an unknown resin type, expected either 'property' or 'attribute'")}var U=G==="attribute"?F.toLowerCase():FPo(F);l||(l=ZFM(r,U,function(K){var H=I.getAttribute(K);return!H||/[\[\{]/.test(K)?null:H}));
return function(K){var H=n2,c=null;if(!K&&K!==document.all)return K;if(l!=null){var Q=M[l],E=Q.safeType;c=Q.safeReplacement;E&&(H=Z(K,E,n2));H===n2&&(Q.filterString?(H=String(Z(K,"STRING",K)),H=Q.filterString(r,U,H)):Q.filterRaw&&(H=Q.filterRaw(r,U,K,I)),H===c&&(H=n2))}H===n2&&(H=c||A5,R&&R(!0,"Failed to sanitize attribute of <"+r+">: <"+r+" "+U+'="'+K+'">',I));return H}}};
mZU=function(D,Y,R){return[,{filterRaw:function(Z,t,X){return X},
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:Hgo,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Hgo,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:A5,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:xZU,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Z,t,X){X=
String(X).toLowerCase();return Xyb(Z,t,X)?X:A5},
safeReplacement:A5,safeType:void 0},,{filterRaw:void 0,filterString:function(Z,t,X){return D.test(X)?X:A5},
safeReplacement:A5,safeType:"CONSTANT"},{filterRaw:function(Z,t,X,M){if(typeof X==="string")var W=(W=X.match(PQr))?W.map(kgU).filter(Boolean):[];else if(Array.isArray(X))W=X;else return Hgo;var z=W;W=[];var I=[],F={};if(Array.isArray(z))for(var G=0,V=z.length;G<V;++G){var e=z[G],r=e&&e.url;if(r){var l=Y(r,"URL",F);if(l){var U=l!==F;(U?W:I).push({url:U?l:r,metadata:e.metadata})}}}else I.push(z);z=I.length?JSON.stringify(I):null;I=n2;if(W.length){if(!Array.isArray(W))throw Error();I=W.map(KPy).filter(Boolean).join(" , ")||
n2}z&&R&&R(!0,"Failed to sanitize attribute value of <"+Z+">: <"+Z+" "+t+'="'+X+'">: '+z,M);return I===n2?Hgo:I},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
QFy=function(D){var Y=qkr(D);return function(R,Z,t,X){return X||X===document.all?Y(R,Z,t)(X):X}};
rZ=function(D,Y){function R(){function t(W,z,I){for(z=Reflect.getMetadata("parameters",W)||[];z.length<=I;)z.push(null);z[I]=z[I]||[];z[I].push(M);Reflect.defineMetadata(z,W);return W}
var X=_.UN.apply(0,arguments);if(this instanceof R)return Z.apply(this,X),this;var M=new (Function.prototype.bind.apply(R,[null].concat(_.oK(X))));t.annotation=M;return t}
var Z=B39(Y);R.prototype.toString=function(){return"@"+D};
return R.annotationCls=R};
B39=function(D){return function(){var Y=_.UN.apply(0,arguments),R=this;D.forEach(function(Z,t){t=Y[t];if(Array.isArray(Z))R[Z[0]]=t&&t!==void 0?t:Z[1];else for(var X in Z)R[X]=t&&t[X]!==void 0?t[X]:Z[X]})}};
pPU=function(D){return D!==void 0&&D!==null};
wZ=function(D){if(typeof D==="string")return D;if(D===void 0||D===null)return""+D;if(D.overriddenName)return D.overriddenName;if(D.name)return D.name;D=D.toString();var Y=D.indexOf("\n");return Y===-1?D:D.substring(0,Y)};
EBl=function(D){D.__forward_ref__=EBl;D.toString=function(){return wZ(this())};
return D};
$F=function(D){return typeof D==="function"&&D.hasOwnProperty("__forward_ref__")&&D.__forward_ref__===EBl?D():D};
gBr=function(D){return D?D.map(function(Y){return new (Function.prototype.bind.apply(Y.type.annotationCls,[null].concat(_.oK(Y.args?Y.args:[]))))}):[]};
dZU=function(D){for(var Y=[],R=0;R<D.length;++R){if(Y.indexOf(D[R])>-1){Y.push(D[R]);break}Y.push(D[R])}return Y};
igM=function(D){return D.length>1?" ("+dZU(D.slice().reverse()).map(function(Y){return wZ(Y.token)}).join(" -> ")+")":""};
clU=function(D,Y,R,Z){if(Z){var t=Error("Ue``"+(Z instanceof Error?Z.message:Z));t.ngOriginalError=Z}else t=Error();t.addKey=Ogn;t.keys=[Y];t.injectors=[D];t.constructResolvingMessage=R;t.message=t.constructResolvingMessage();t.ngOriginalError=Z;return t};
Ogn=function(D,Y){this.injectors.push(D);this.keys.push(Y);this.message=this.constructResolvingMessage()};
Dlb=function(D,Y){return clU(D,Y,function(){return"No provider for "+wZ(this.keys[0].token)+"!"+igM(this.keys)})};
YSU=function(D,Y){return clU(D,Y,function(){return"Cannot instantiate cyclic dependency!"+igM(this.keys)})};
RXr=function(D,Y,R){return clU(D,R,function(){var Z=wZ(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Z+"!"+igM(this.keys)+"."},Y)};
Zfy=function(D,Y){for(var R=[],Z=0,t=Y.length;Z<t;Z++){var X=Y[Z];X&&X.length!=0?R.push(X.map(wZ).join(" ")):R.push("?")}return Error("Ye`"+wZ(D)+"`"+R.join(", ")+"`"+wZ(D))};
CCj=function(D){var Y=void 0,R=void 0;if(D&&D.useClass!==void 0){Y=D.useClass;var Z=$F(D.useClass);var t=t_i.factory(Z);Z=ssl(Z)}else D&&D.useExisting!==void 0?(t=function(X){return X},Z=[XFM(vO.get($F(D.useExisting)))]):D&&D.useFactory!==void 0?(t=D.useFactory,Z=u$r(D.useFactory,D.deps)):(R=D.useValue,t=function(){return D.useValue},Z=aso);
return new M_y(t,Z,Y,R)};
zXi=function(D){return new WkM(vO.get($F(D.provide)),[CCj(D)],D.multi)};
TQj=function(D){D=SSi(D,[]).map(zXi);for(var Y=new Map,R=0;R<D.length;R++){var Z=D[R],t=Y.get(Z.key.id);if(t){if(Z.multiProvider!==t.multiProvider)throw Error("$e`"+t+"`"+Z);if(Z.multiProvider)for(var X=0;X<Z.resolvedFactories.length;X++)t.resolvedFactories.push(Z.resolvedFactories[X]);else Y.set(Z.key.id,Z)}else t=void 0,Z.multiProvider?t=new WkM(Z.key,Z.resolvedFactories.slice(),Z.multiProvider):t=Z,Y.set(Z.key.id,t)}return Array.from(Y.values())};
SSi=function(D,Y){D.forEach(function(R){if(R instanceof jso)Y.push({provide:R,useClass:R});else if(R&&typeof R=="object"&&R.provide!==void 0)Y.push(R);else if(R instanceof Array)SSi(R,Y);else throw Error("Xe`"+R);});
return Y};
u$r=function(D,Y){if(Y){var R=Y.map(function(Z){return[Z]});
return Y.map(function(Z){return Isr(D,Z,R)})}return ssl(D)};
ssl=function(D){var Y=t_i.parameters(D);if(!Y)return[];if(Y.some(function(R){return R==null}))throw Zfy(D,Y);
return Y.map(function(R){return Isr(D,R,Y)})};
Isr=function(D,Y,R){var Z=null,t=!1;if(!Array.isArray(Y))return Y instanceof FkU?GRl(Y.token,t,null):GRl(Y,t,null);for(var X=null,M=0;M<Y.length;++M){var W=Y[M];if(W instanceof jso)Z=W;else if(W instanceof FkU)Z=W.token;else if(W instanceof V_n)t=!0;else if(W instanceof fsy||W instanceof eXo)X=W}Z=$F(Z);if(Z!=null)return GRl(Z,t,X);throw Zfy(D,R);};
GRl=function(D,Y,R){return new AmM(vO.get($F(D)),Y,R)};
nOj=function(D,Y){for(var R=Array(D.providers.length),Z=0;Z<D.providers.length;++Z){var t=Z;if(Z<0||Z>=D.providers.length)throw Error("Ze`"+Z);R[t]=Y(D.providers[Z])}return R};
rmj=function(D){return typeof D==="function"&&t_i.parameters(D).every(function(Y){return!!Y})};
vOn=function(D){var Y=wFo;$lU.get(D)||$lU.set(D,new Y);return $lU.get(D)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,Y){var R,Z;if(D.contains(Y))return!0;D=_.oR(D).querySelectorAll("content,slot");for(R=0;R<D.length;++R){var t=_.oR(D[R]).getDistributedNodes();for(Z=0;Z<t.length;++Z)if(t[Z].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t[Z],Y))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){D.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D)&&D.preventDefault();D.targetTouches&&(D=D.targetTouches[0],oO9=D.pageX,bf9=D.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 D=0,Y=bl.length;D<Y;D++)document.addEventListener(bl[D],_._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 D=0,Y=bl.length;D<Y;D++)document.removeEventListener(bl[D],_._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(D){var Y=_.oR(D).rootTarget;D.type!=="touchmove"&&ym$!==Y&&(ym$=Y,NQS=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.oR(D).path));if(!NQS.length)return!0;if(D.type==="touchstart")return!1;D=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(NQS,D.deltaX,D.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){for(var Y=[],R=D.indexOf(lsM),Z=0;Z<=R;Z++)if(D[Z].nodeType===Node.ELEMENT_NODE){var t=D[Z],X=t.style;X.overflow!=="scroll"&&X.overflow!=="auto"&&(X=window.getComputedStyle(t));X.overflow!=="scroll"&&X.overflow!=="auto"||Y.push(t)}return Y};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,Y,R){if(Y||R)for(var Z=Math.abs(R)>=Math.abs(Y),t=0;t<D.length;t++){var X=D[t];if(Z?R<0?X.scrollTop>0:X.scrollTop<X.scrollHeight-X.clientHeight:Y<0?X.scrollLeft>0:X.scrollLeft<X.scrollWidth-X.clientWidth)return X}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){var Y={deltaX:D.deltaX,deltaY:D.deltaY};"deltaX"in D||("wheelDeltaX"in D&&"wheelDeltaY"in D?(Y.deltaX=-D.wheelDeltaX,Y.deltaY=-D.wheelDeltaY):"wheelDelta"in D?(Y.deltaX=0,Y.deltaY=-D.wheelDelta):"axis"in D?(Y.deltaX=D.axis===1?D.detail:0,Y.deltaY=D.axis===2?D.detail:0):D.targetTouches&&(D=D.targetTouches[0],Y.deltaX=oO9-D.pageX,Y.deltaY=bf9-D.pageY));return Y};
Jm9=function(D){this.element=D;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Ull=function(D){this.element=D;this.color=window.getComputedStyle(D).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");_.oR(this.waveContainer).appendChild(this.wave);kR5(this)};
yQ=function(D,Y){for(var R in D)if(R.toLowerCase()===Y.toLowerCase())return D[R]};
KkS=function(D,Y){for(var R in D)if(R.toLowerCase()===Y.toLowerCase()){delete D[R];break}};
Lkl=function(D){D=_.y7.clone(D);for(var Y=0;Y<hXy.length;++Y){var R=hXy[Y],Z=yQ(D,R);Z&&(D["X-Goog-Upload-Header-"+R]=Z,KkS(D,R))}return D};
ml$=function(D){D=_.y7.clone(D);KkS(D,"X-Goog-Upload-Status")};
Hf9=function(D){return qSy.some(function(Y){return Y.test(D)})};
BQy=function(D,Y){var R;var Z=(R=D.formContent)==null?void 0:R.locale;R=Z==null?void 0:Z.split("-")[0];Z=Z&&xlj.includes(Z)?Z:R&&xlj.includes(R)?R:void 0;Z=(Z!=null?Z:"en").replaceAll("-","_").toLowerCase();var t;D=((t=D.initializationData)==null?0:t.useNightlyRelease)?"nightly":"live";var X;return(Y==null?0:(X=Y.getEnableAlohaBinarySplit)==null?0:X.call(Y))?_.tZ(PCn,D):_.tZ(Qs5,D,Z)};
gOl=function(D,Y,R,Z){if(pFS&&EOi===Y)return pFS;EOi=Y;var t=BQy(D,Z);return pFS=Y.feedbackV2GlobalObject?Promise.resolve(Y.feedbackV2GlobalObject):new Promise(function(X,M){var W=_.I0("SCRIPT");_.dg(W,t);W.onload=function(){Y.feedbackV2GlobalObject?X(Y.feedbackV2GlobalObject):M(Error("cf"))};
W.onerror=function(){M(Error("df`"+t.toString()))};
R.body.appendChild(W)})};
OfM=function(D,Y,R,Z){if(dlo&&ifl===Y)return dlo;ifl=Y;var t=BQy(D,Z);return dlo=Y.feedbackV2GlobalObject?Promise.resolve(Y.feedbackV2GlobalObject):new Promise(function(X,M){var W=_.I0("SCRIPT");_.dg(W,t);W.onload=function(){Y.feedbackV2GlobalObject?X(Y.feedbackV2GlobalObject):M(Error("cf"))};
W.onerror=function(){M(Error("df`"+t.toString()))};
R.body.appendChild(W)})};
cmU=function(D,Y,R,Z,t){t=t===void 0?!0:t;var X,M,W,z,I;return _.C(function(F){switch(F.nextAddress){case 1:return X=Date.now(),F.yield(gOl(D,R,Z,Y),2);case 2:M=F.yieldResult;if(!(t||((z=D.initializationData)==null?0:z.useNightlyRelease)||((I=D.initializationData)==null?0:I.isLocalServer))){W=M.initializeFeedbackClient(D,X,Y);F.jumpTo(3);break}return F.yield(M.initializeFeedbackClientAsync(D,X,Y),4);case 4:W=F.yieldResult;case 3:return W.initiateAloha(),F.return(W)}})};
DF9=function(D,Y,R,Z){var t,X,M;return _.C(function(W){if(W.nextAddress==1)return t=Date.now(),W.yield(OfM(D,R,Z.document,Y),2);if(W.nextAddress!=3)return X=W.yieldResult,W.yield(X.initializeFeedbackClientAsync(D,t,Y,Z),3);M=W.yieldResult;M.initiateAloha();return W.return(M)})};
YFb=function(D,Y,R){var Z=!0;Z=Z===void 0?!0:Z;var t,X,M,W,z,I,F,G,V,e;return _.C(function(r){t=R||_.ZU;if((X=Y)==null?0:(W=(M=X).getEnableAlohaBinarySplit)==null?0:W.call(M)){z=t;if(z.isFormOpened)throw I=Error("ef"),I.name="DuplicateFormError",I;z.isFormOpened=!0;D.callbacks=D.callbacks||{};F=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(l){z.isFormOpened=!1;F(l)};
try{return r.return(DF9(D,Y,z,t))}catch(l){throw z.isFormOpened=!1,l;}}else{G=t;if(G.isFormOpened)throw V=Error("ef"),V.name="DuplicateFormError",V;G.isFormOpened=!0;D.callbacks=D.callbacks||{};e=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(l){G.isFormOpened=!1;e(l)};
try{return r.return(cmU(D,Y,G,t.document,Z))}catch(l){throw G.isFormOpened=!1,l;}}_.V9(r)})};
XAj=function(D,Y){return _.C(function(R){return R.return(new Promise(function(Z){var t=RA5(Y!=null?Y:"")+"/aloha_form_properties?productId="+D;ZKo(t,function(X){X=X.target;var M=null;try{var W=JSON,z=W.stringify;if(X.JSC$9765_xhr_){var I=X.JSC$9765_xhr_.responseText;I.indexOf(")]}'\n")==0&&(I=I.substring(5));var F=(0,_.NA)(I)}else F=void 0;M=LSU(tQS,z.call(W,F))}catch(G){z=new tQS,F=s6n(),F=_.ll(F,13,!1),F=_.ll(F,14,!0),F=_.ll(F,15,!0),F=_.ll(F,20,!1),M=_.To(z,1,F)}Z(M)},"GET","",{},2E3,!0)}))})};
RA5=function(D){return Hf9(D)?D:"https://www.google.com/tools/feedback"};
CRS=function(D){D=D.match(new RegExp(ull,"gi"))||[];D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;a:{var R=_.a(avo);for(var Z=R.next();!Z.done;Z=R.next())if(Z.value.test(Y)){R=!1;break a}R=!0}if(!R)a:{R=_.a(MQy);for(Z=R.next();!Z.done;Z=R.next())if(Z.value.test(Y)){R=!0;break a}R=!1}if(R)return!0}return!1};
Wvr=function(D,Y){var R={},Z=Object.keys(D);Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next())t=t.value,R[t]=Y(t,D[t]);return R};
zAn=function(D){switch(D){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"}};
Tky=function(D){if(window.crypto&&window.crypto.getRandomValues)try{var Y=Array(D),R=new Uint8Array(D);window.crypto.getRandomValues(R);for(var Z=0;Z<Y.length;Z++)Y[Z]=R[Z];return Y}catch(X){}Y=Array(D);for(R=0;R<D;R++){Z=Date.now();for(var t=0;t<Z%23;t++)Y[R]=Math.random();Y[R]=Math.floor(Math.random()*256)}if(SFU)for(R=1,Z=0;Z<SFU.length;Z++)Y[R%D]^=Y[(R-1)%D]/4^SFU.charCodeAt(Z),R++;return Y};
J5=function(D){D=Tky(D);for(var Y=[],R=0;R<D.length;R++)Y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[R]&63));return Y.join("")};
j69=function(){var D=_.ZU.ytLoggingDocDocumentNonce_;D||(D=J5(16),_.ix("ytLoggingDocDocumentNonce_",D));return D};
Fv9=function(D){D&&_.bo("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Ivi,clientScreenNonce:D})};
GSy=function(D){return _.JQ("client-screen-nonce-store",{})[D===void 0?0:D]};
VQo=function(D,Y){Y=Y===void 0?0:Y;var R=_.JQ("client-screen-nonce-store");R||(R={},_.l1("client-screen-nonce-store",R));R[Y]=D};
fvS=function(D){D=D===void 0?0:D;return D===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+D};
eAo=function(D){return _.JQ(fvS(D===void 0?0:D))};
_.Ud=function(D){return(D=eAo(D===void 0?0:D))?new kF({veType:D,youtubeData:void 0,jspbYoutubeData:void 0}):null};
AH5=function(){var D=_.JQ("csn-to-ctt-auth-info");D||(D={},_.l1("csn-to-ctt-auth-info",D));return D};
nSr=function(){return Object.values(_.JQ("client-screen-nonce-store",{})).filter(function(D){return D!==void 0})};
_.K2=function(D){D=GSy(D===void 0?0:D);if(!D&&!_.ks("USE_CSN_FALLBACK",!0))return null;D||(D="UNDEFINED_CSN");return D?D:null};
wA$=function(D){for(var Y=_.a(Object.values(rHS)),R=Y.next();!R.done;R=Y.next())if(_.K2(R.value)===D)return!0;return!1};
$Fn=function(D,Y,R){var Z=AH5();(R=_.K2(R))&&delete Z[R];Y&&(Z[D]=Y)};
h5=function(D){return AH5()[D]};
_.L2=function(D,Y,R,Z){R=R===void 0?0:R;if(D!==GSy(R)||Y!==_.JQ(fvS(R)))if($Fn(D,Z,R),VQo(D,R),_.l1(fvS(R),Y),Y=function(){setTimeout(function(){Fv9(D)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Y)}catch(t){Y()}else Y()};
vSM=function(D,Y){Y=Y===void 0?"":Y;var R=[],Z;for(Z in D)if(D.hasOwnProperty(Z)){var t=Y!==""?Y+"."+Z:Z;typeof D[Z]==="object"?R.push.apply(R,_.oK(vSM(D[Z],t))):R.push([t,D[Z]])}R.sort();return R};
_.qA=function(D){var Y=_.UN.apply(1,arguments);if(!mU(D)||Y.some(function(Z){return!mU(Z)}))throw Error("ff");
Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())oSi(D,R.value)};
oSi=function(D,Y){for(var R in Y)if(mU(Y[R])){if(R in D&&!mU(D[R]))throw Error("gf");R in D||(D[R]={});oSi(D[R],Y[R])}else if(bKo(Y[R])){if(R in D&&!bKo(D[R]))throw Error("hf");R in D||(D[R]=[]);yHr(D[R],Y[R])}else D[R]=Y[R];return D};
yHr=function(D,Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,mU(R)?D.push(oSi({},R)):bKo(R)?D.push(yHr([],R)):D.push(R);return D};
mU=function(D){return typeof D==="object"&&!Array.isArray(D)};
bKo=function(D){return typeof D==="object"&&Array.isArray(D)};
lvy=function(D){for(var Y=_.a(Object.entries(Nk5)),R=Y.next();!R.done;R=Y.next())if(R=_.a(R.value),R.next(),R=R.next().value,R==="SLI_STATUS_"+D)return R;return"SLI_STATUS_UNKNOWN"};
_.HO=function(D,Y,R,Z){return JHr(D,Y,function(){return new _.kSU(D,Y,R,Z)})};
_.UFi=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Kv9=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
xF=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
hA$=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Lvj=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
mFr=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
xF9=function(D){D&&(D.dataset?D.dataset[qF$()]="true":_.ON([_.RI(HKS)],D,"data-loaded","true".toString()))};
PRU=function(D){return D?D.dataset?D.dataset[qF$()]:D.getAttribute("data-loaded"):null};
qF$=function(){return Q65.loaded||(Q65.loaded="loaded".replace(/\-([a-z])/g,function(D,Y){return Y.toUpperCase()}))};
_.PO=function(D,Y,R){Bky(D,Y,R===void 0?null:R)};
_.ESU=function(D,Y){D&&Y&&(D=""+_.Ey(Y),(D=pAM[D])&&_.gCS(D))};
Bky=function(D,Y,R){R=R===void 0?null:R;var Z=_.gSy(typeof D==="string"?D:D.toString()),t=document.getElementById(Z),X=t&&PRU(t),M=t&&!X;X?Y&&Y():(Y&&(X=_.Xn(Z,Y),Y=""+_.Ey(Y),pAM[Y]=X),M||(t=dFU(D,Z,function(){PRU(t)||(xF9(t),_.dI9(Z),_.ME(function(){_.O8j(Z)},0))},R)))};
dFU=function(D,Y,R,Z){Z=Z===void 0?null:Z;var t=_.I0("SCRIPT");t.id=Y;t.onload=function(){R&&setTimeout(R,0)};
t.onreadystatechange=function(){switch(t.readyState){case "loaded":case "complete":t.onload()}};
Z&&t.setAttribute("nonce",Z);_.dg(t,typeof D==="string"?_.we(D):D);D=document.getElementsByTagName("head")[0]||document.body;D.insertBefore(t,D.firstChild);return t};
_.gSy=function(D){var Y=document.createElement("a");_.L$(Y,D);return"js-"+QQ(Y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
iKb=function(D){var Y=_.JQ("INNERTUBE_HOST_OVERRIDE");Y&&(D=String(Y)+String(_.BO(D)));return D};
OKM=function(D){var Y={};_.f("json_condensed_response")&&(Y.prettyPrint="false");return D=GA5(D,Y)};
_.p2=function(D){return i1(D)?"same-origin":"include"};
_.Ed=function(D){return i1(D)?"same-origin":"cors"};
gZ=function(D,Y,R){R=R===void 0?{}:R;D={method:Y===void 0?"POST":Y,mode:_.Ed(D),credentials:_.p2(D)};Y={};for(var Z=_.a(Object.keys(R)),t=Z.next();!t.done;t=Z.next())t=t.value,R[t]&&(Y[t]=R[t]);Object.keys(Y).length>0&&(D.headers=Y);return D};
_.dZ=function(D,Y){Y=Y===void 0?{}:Y;return"service:"+D+"/"+Object.keys(Y).sort().map(function(R){return R+":"+Y[R]}).join("/")};
cHU=function(D){var Y,R,Z,t;D=(Y=_.A(D,_.Od))==null?void 0:(R=Y.watchEndpointSupportedOnesieConfig)==null?void 0:(Z=R.html5PlaybackOnesieConfig)==null?void 0:(t=Z.commonConfig)==null?void 0:t.url;if(!D)return[];Y=new _.cO(D);return Y.JSC$10000_domain_?["https://"+Y.JSC$10000_domain_+"/generate_204"]:[]};
_.RRr=function(){return D0r()||ru$()||Yol&&JT("version/")?!0:_.JQ("EOM_VISITOR_DATA")?!1:!0};
ZDj=function(D){var Y=D.docid||D.video_id||D.videoId||D.id;if(Y)return Y;Y=D.raw_player_response;Y||(D=D.player_response)&&(Y=JSON.parse(D));return Y&&Y.videoDetails&&Y.videoDetails.videoId||null};
tRU=function(D){return D.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Di=function(D){return!isNaN(Number(D))&&!_.M$(D)};
_.Rb=function(D,Y,R,Z){Z=Z===void 0?!0:Z;var t=_.JQ("VALID_SESSION_TEMPDATA_DOMAINS",[]),X=_.gf(window.location.href);X&&t.push(X);X=_.gf(D);if(_.LM(t,X)||!X&&_.Xi(D,"/"))if(t=document.createElement("a"),_.L$(t,D),D=t.href)if(D=_.BO(D),D=_.Y8(D))Z&&!Y.csn&&(Y.itct||Y.ved)&&(Y=Object.assign({csn:_.K2()},Y)),R?(R=parseInt(R,10),isFinite(R)&&R>0&&sho(D,Y,R)):sho(D,Y)};
uSM=function(D){var Y=_.JQ("VALID_SESSION_TEMPDATA_DOMAINS",[]),R=_.gf(window.location.href);R&&Y.push(R);R=_.gf(D);if(!(_.LM(Y,R)||!R&&_.Xi(D,"/")))return null;D=_.BO(D);(D=_.Y8(D))?(D=XXi(D),D=(D=_.FW.get(D,void 0)||null)?_.PD(D):{}):D=null;return D};
sho=function(D,Y,R){D=XXi(D);Y=Y?_.TZ(Y):"";R=R||5;_.RRr()&&_.GZ(D,Y,R)};
XXi=function(D){for(var Y=_.a(aB5),R=Y.next();!R.done;R=Y.next())D=_.Zi(D,R.value);return"ST-"+QQ(D).toString(36)};
_.MRM=function(D){if(D.requestFullscreen)D=D.requestFullscreen(void 0);else if(D.webkitRequestFullscreen)D=D.webkitRequestFullscreen();else if(D.mozRequestFullScreen)D=D.mozRequestFullScreen();else if(D.msRequestFullscreen)D=D.msRequestFullscreen();else if(D.webkitEnterFullscreen)D=D.webkitEnterFullscreen();else return Promise.reject(Error("rf"));return D instanceof Promise?D:Promise.resolve()};
_.s7=function(D){var Y;_.KQn(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.t4()==D&&(Y=document):Y=D;if(Y&&(D=_.KQn(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Y))){D.call(Y)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.t4=function(){var D=D===void 0?!1:D;var Y=_.KQn(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(D)for(;Y&&Y.shadowRoot;)Y=Y.shadowRoot.fullscreenElement;return Y?Y:null};
_.Xa=function(D,Y){Y=Y===void 0?!0:Y;D.addEventListener("wheel",Cjn);D.overscrollConfig={cooldown:Y}};
_.ui=function(D){D.overscrollConfig=void 0;D.removeEventListener("wheel",Cjn)};
Cjn=function(D){var Y=D.deltaY,R=D.target,Z=null;if(window.Polymer&&window.Polymer.Element){if(R=D.path||D.composedPath&&D.composedPath()){R=_.a(R);for(var t=R.next();!t.done&&(t=t.value,!WwU(t,Y));t=R.next())if(t.overscrollConfig){Z=t;break}}}else for(;R&&!WwU(R,Y);){if(R.overscrollConfig){Z=R;break}R=R.parentElement}Z&&(Y=Z.overscrollConfig,Y.cooldown?(Z=D.deltaY,R=Y.lastDeltaY||0,Y.lastDeltaY=Z,t=Y.lastStopped||0,R&&t&&R>0==Z>0?Math.abs(R)>=Math.abs(Z)?(Z=t+1200,R=!1):(Z=t+600,R=!0):(Z=Date.now()+
600,R=!0),Z>Date.now()&&(D.preventDefault(),R&&(Y.lastStopped=Date.now()))):D.preventDefault())};
WwU=function(D,Y){return Y<0&&D.scrollTop>0||Y>0&&D.scrollTop<D.scrollHeight-D.clientHeight-1?(D=getComputedStyle(D).overflowY,D=="auto"||D=="scroll"):!1};
_.MX=function(D,Y,R,Z){Z||(Z={bubbles:!0,cancelable:!1,composed:!0});R!==null&&R!==void 0&&(Z.detail=R);var t=new CustomEvent(Y,Z);_.f("untrack_fire_custom_event_killswitch")?D.dispatchEvent(t):uM(function(){return void D.dispatchEvent(t)});
return t};
zRn=function(D){var Y=window,R=function(Z){Y.removeEventListener("yt-navigate-start",R);return D.call(Y,Z)};
Y.addEventListener("yt-navigate-start",R,void 0)};
_.CX=function(D,Y,R,Z){Y=new So5(Y,!(Z===void 0||!Z),R);_.MX(D,"yt-action",Y);return Y.returnValue};
_.WC=function(D,Y,R){return _.CX(D,Y,R,!0)};
_.Se=function(D,Y,R,Z){Y&&Y.length&&Y.forEach(function(t){var X=JxU(t);X&&(_.f("handle_service_request_actions")&&t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.sendPost?_.zA(R?R:D,[t]):_.WC(D,X,[t,R,Z]))})};
_.zA=function(D,Y){var R=[D];Y&&R.push.apply(R,Y);Y=_.CX(D,"yt-service-request",R);return Y.length>0&&(Y=Y[0],_.MX(D,"yt-service-request-sent",Y),Y&&Y.ajaxPromise)?(Y.ajaxPromise.then(function(Z){_.MX(D,"yt-service-request-completed",Z)},function(Z){_.MX(D,"yt-service-request-error",{error:Z,
params:R})},D),Y.ajaxPromise):_.TA()};
_.Ib=function(D,Y){if(_.f("handle_service_request_actions"))_.Se(Y,D,Y);else{D=_.a(D);for(var R=D.next();!R.done;R=D.next()){R=R.value;var Z=void 0;((Z=_.A(R,_.je))==null?0:Z.commands)?_.Ib(_.A(R,_.je).commands,Y):(Z=void 0,((Z=_.A(R,_.Fa))==null?0:Z.actions)?_.Ib(_.A(R,_.Fa).actions,Y):(Z=void 0,((Z=_.A(R.commandMetadata,_.GA))==null?0:Z.sendPost)?_.zA(Y,[R]):_.Se(Y,[R],Y)))}}};
_.jhj=function(D,Y,R){Y=Y===void 0?{}:Y;typeof Y==="function"&&(Y={callback:Y});R||Y._c&&Y._c.jsl&&Y._c.jsl.h||_.y7.extend(Y,{_c:{jsl:{h:_.JQ("GAPI_HINT_PARAMS")}}});(Y.gapiHintOverride||_.JQ("GAPI_HINT_OVERRIDE"))&&(R=_.QL(document.location.href).gapi_jsh)&&_.y7.extend(Y,{_c:{jsl:{h:R}}});T7U(D,Y)};
_.fX=function(D,Y,R){Y=Y===void 0?{}:Y;D=(D=D in Vk?Vk[D]:R)||"";R={};for(var Z in Y){R={key$jscomp$818:R.key$jscomp$818};R.key$jscomp$818=Z;var t=function(X){return function(){return String(Y[X.key$jscomp$818])}}(R);
D=D.replace(new RegExp("\\$\\{"+R.key$jscomp$818+"\\}","gi"),t);D=D.replace(new RegExp("\\$"+R.key$jscomp$818,"gi"),t)}return D};
_.ee=function(D,Y){return IB$(D in Vk?Vk[D]:{},Y)};
IB$=function(D,Y){var R=_.JQ("I18N_PLURAL_RULES");R||(R=function(Z){return Z==1?"one":"other"});
return(D=D["case"+Y]||D[R(Y)])?D.replace("#",Y.toString()):Y+""};
VRU=function(D){var Y=Fwb(D),R=document.getElementById(Y),Z=R&&PRU(R);Z||R&&!Z||(R=GpU(D,Y,function(){if(!PRU(R)){xF9(R);_.dI9(Y);var t=_.A4(_.O8j,Y);_.ME(t,0)}}))};
GpU=function(D,Y,R){var Z=document.createElement("link");Z.id=Y;Z.onload=function(){R&&setTimeout(R,0)};
D=_.we(D);_.cZ(Z,D,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Z);return Z};
Fwb=function(D){var Y=_.I0("A");_.L$(Y,$7(D));return"css-"+QQ(Y.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.eRo=function(D){var Y=fBb();D!==Y&&(Y=_.nX(),!_.f("web_autonav_allow_off_by_default")&&D||_.rC(0,141,!0),_.rC(0,140,!D),Y.save())};
fBb=function(){var D=_.nX();return _.f("web_autonav_allow_off_by_default")&&!D.getFlag(141)&&_.JQ("AUTONAV_OFF_BY_DEFAULT")?!1:!D.getFlag(140)};
Awb=function(D,Y){var R,Z;D=((R=D.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=R.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(R=0;R<D.length;++R)if(D[R].scope===Y)return D[R].token||void 0};
nLS=function(D){for(var Y=0,R=0;R<D.length;R++)Y=Y*31+D.charCodeAt(R),R<D.length-1&&(Y%=0x800000000000);return Y%1E5};
_.wC=function(D){return _.mf("ytcsi."+(D||"")+"data_")||rwl(D)};
_.wXj=function(D){D=_.wC(D);D.metadata||(D.metadata={});return D.metadata};
_.$0U=function(D){D=_.wC(D);D.tick||(D.tick={});return D.tick};
_.$8=function(D){D=_.wC(D);if(D.gel){var Y=D.gel;Y.gelInfos||(Y.gelInfos={});Y.gelTicks||(Y.gelTicks={})}else D.gel={gelTicks:{},gelInfos:{}};return D.gel};
_.vL5=function(D){D=_.$8(D);D.gelInfos||(D.gelInfos={});return D.gelInfos};
oLl=function(D){var Y=_.wC(D).nonce;Y||(Y=J5(16),_.wC(D).nonce=Y);return Y};
rwl=function(D){var Y={tick:{},info:{}};_.ix("ytcsi."+(D||"")+"data_",Y);return Y};
bDl=function(){var D=_.mf("ytcsi.debug");D||(D=[],_.ix("ytcsi.debug",D),_.ix("ytcsi.reference",{}));return D};
_.vC=function(D){D=D||"";var Y=yw5();if(Y[D])return Y[D];var R=bDl(),Z={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};R.push(Z);return Y[D]=Z};
N75=function(D){D=D||"";var Y=yw5();Y[D]&&delete Y[D];var R=bDl(),Z={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};R.push(Z);Y[D]=Z};
yw5=function(){var D=_.mf("ytcsi.reference");if(D)return D;bDl();return _.mf("ytcsi.reference")};
_.Jw$=function(D){return lBr[D]||"LATENCY_ACTION_UNKNOWN"};
hRU=function(D,Y,R){R=R===void 0?{}:R;var Z=!1;_.ks("ytLoggingEventsDefaultDisabled",!1)&&(Z=!0);Z=Z?null:oo;R=R===void 0?{}:R;var t=Math.round(R.timestamp||(0,_.DO)());_.fI(Y,1,t<Number.MAX_SAFE_INTEGER?t:0);t=new kp$;if(R.lact)_.fI(t,1,isFinite(R.lact)?R.lact:-1);else if(R.timestamp)_.fI(t,1,-1);else{var X=_.Ro();_.fI(t,1,isFinite(X)?X:-1)}if(R.sequenceGroup&&!_.f("web_gel_sequence_info_killswitch")){X=R.sequenceGroup;var M=uU$(X),W=new U0o;_.fI(W,2,M);_.ew(W,1,X);_.To(t,3,W);R.endOfSequence&&delete Kwy[R.sequenceGroup]}_.To(Y,
33,t);(R.sendIsolatedPayload?T1o:jt$)(D,{endpoint:"log_event",payload:Y,cttAuthInfo:R.cttAuthInfo,dangerousLogToVisitorSession:R.dangerousLogToVisitorSession},Z)};
_.bi=function(){return(_.f("csi_use_time_origin")||_.f("csi_use_time_origin_tvhtml5"))&&_.ob.timeOrigin?Math.floor(_.ob.timeOrigin):_.ob.timing.navigationStart};
_.Lwo=function(D,Y){_.yk("_start",D,Y)};
_.NX=function(D,Y){if(!_.f("web_csi_action_sampling_enabled")||!_.wC(Y).actionDisabled){var R=_.vC(Y||"");_.qA(R.info,D);D.loadType&&(R=D.loadType,_.wXj(Y).loadType=R);_.qA(_.vL5(Y),D);R=oLl(Y);Y=_.wC(Y).cttAuthInfo;m0j().info(D,R,Y)}};
qon=function(){var D,Y,R,Z;return((Z=_.DH().resolve(_.cD(nI))==null?void 0:(D=rI())==null?void 0:(Y=D.loggingHotConfig)==null?void 0:(R=Y.csiConfig)==null?void 0:R.debugTicks)!=null?Z:[]).map(function(t){return Object.values(t)[0]})};
_.yk=function(D,Y,R){if(!_.f("web_csi_action_sampling_enabled")||!_.wC(R).actionDisabled){var Z=oLl(R),t;if(t=_.f("web_csi_debug_sample_enabled")&&Z){(_.DH().resolve(_.cD(nI))==null?0:rI())&&!HDi&&(HDi=!0,_.yk("gcfl",(0,_.DO)(),R));var X,M,W;t=(_.DH().resolve(_.cD(nI))==null?void 0:(X=rI())==null?void 0:(M=X.loggingHotConfig)==null?void 0:(W=M.csiConfig)==null?void 0:W.debugSampleWeight)||0;if(X=t!==0)b:{X=qon();if(X.length>0)for(M=0;M<X.length;M++)if(D===X[M]){X=!0;break b}X=!1}X?(t=nLS(Z)%t!==0,
_.wC(R).debugTicksExcludedLogged||(X={},X.debugTicksExcluded=t,_.NX(X,R)),_.wC(R).debugTicksExcludedLogged=!0):t=!1}if(!t){D[0]!=="_"&&x0l(D,R,Y);t=_.vC(R||"");t.tick[D]=Y||(0,_.DO)();if(t.callback&&t.callback[D])for(t=_.a(t.callback[D]),X=t.next();!X.done;X=t.next())X=X.value,X();t=_.$8(R);t.gelTicks&&(t.gelTicks[D]=!0);X=_.$0U(R);t=Y||(0,_.DO)();_.f("log_repeated_ytcsi_ticks")?D in X||(X[D]=t):X[D]=t;X=_.wC(R).cttAuthInfo;D==="_start"?m0j().baseline(Z,Y,X):m0j().tick(D,Z,Y,X);_.Pjb(R);return t}}};
x0l=function(D,Y,R){if(_.ob.mark)if(D.startsWith("mark_")||(D="mark_"+D),Y&&(D+=" ("+Y+")"),R===void 0||_.f("web_csi_disable_alt_time_performance_mark"))_.ob.mark(D);else{R=_.f("csi_use_performance_navigation_timing")?R-_.ob.timeOrigin:R-(_.ob.timeOrigin||_.ob.timing.navigationStart);try{_.ob.mark(D,{startTime:R})}catch(Z){}}};
Qhy=function(){var D,Y=(D=_.ob.getEntriesByType)==null?void 0:D.call(_.ob,"mark");Y&&Y.forEach(function(R){if(R.name.startsWith("mark_")){var Z;(Z=_.ob.clearMarks)==null||Z.call(_.ob,R.name)}})};
_.B7U=function(){switch(UIo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.pXr=function(D){var Y={},R=function(X,M,W){M=M.match("_rid")?M.split("_rid")[0]:M;typeof W==="number"&&(W=JSON.stringify(W));X.requestIds?X.requestIds.push({endpoint:M,id:W}):X.requestIds=[{endpoint:M,id:W}]};
D=_.a(Object.entries(D));for(var Z=D.next();!Z.done;Z=D.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;switch(Z){case "GetBrowse_rid":R(Y,Z,t);break;case "GetGuide_rid":R(Y,Z,t);break;case "GetHome_rid":R(Y,Z,t);break;case "GetPlayer_rid":R(Y,Z,t);break;case "GetSearch_rid":R(Y,Z,t);break;case "GetSettings_rid":R(Y,Z,t);break;case "GetTrending_rid":R(Y,Z,t);break;case "GetWatchNext_rid":R(Y,Z,t);break;case "yt_red":Y.isRedSubscriber=!!t;break;case "yt_ad":Y.isMonetized=!!t}}return Y};
gLo=function(D,Y,R,Z,t,X){if(!_.f("web_csi_action_sampling_enabled")||!_.wC(X).actionDisabled){var M=_.$8(X);if(M.gelSpans)M.gelSpans[D]=!0;else{var W={};M.gelSpans=(W[D]=!0,W)}ELi++;D={spanName:D,spanLengthUsec:String(Math.round(Y*1E3)),spanNonce:ELi};Z&&(D.spanInfo=Z);t&&(D.parentSpanNonce=t);R&&(D.spanStartTimeUsec=String(Math.round(R*1E3)));_.vC(X||"").span[String(D.spanName)]=D;R=_.$8(X);R.gelSpans||(R.gelSpans={});_.qA(R.gelSpans,D);R=oLl(X);X=_.wC(X).cttAuthInfo;m0j().span(D,R,X);return D.spanNonce}};
_.d0U=function(D){var Y=_.li("aft",D);if(Y)return Y;Y=_.JQ((D||"")+"TIMING_AFT_KEYS",["ol"]);for(var R=Y.length,Z=0;Z<R;Z++){var t=_.li(Y[Z],D);if(t)return t}return NaN};
_.iD5=function(D,Y){_.ix("ytglobal.timing"+(Y||"")+"ready_",D)};
_.li=function(D,Y){if(D=_.$0U(Y)[D])return typeof D==="number"?D:D[D.length-1]};
_.Pjb=function(D){var Y=_.li("_start",D),R=_.d0U(D),Z=!OD9;Y&&R&&Z&&(MN$(cwo,new DKU(Math.round(R-Y),D)),OD9=!0)};
RmU=function(D){rwl(D);YPj();Qhy();D||(_.JQ("TIMING_ACTION")&&_.l1("PREVIOUS_ACTION",_.JQ("TIMING_ACTION")),_.l1("TIMING_ACTION",""))};
_.ZJ$=function(D){D=D===void 0?{}:D;_.Lb(function(){J4();N75();RmU();_.iD5(!1);D.cttAuthInfo&&(_.wC().cttAuthInfo=D.cttAuthInfo);_.l1("TIMING_AFT_KEYS",[]);D.isHot?_.k8({loadType:"hot"}):_.k8({loadType:"warm"});_.l1("TIMING_ACTION","");delete _.JQ("TIMING_INFO",{}).yt_lt;_.Lb(_.Lwo)(D.startTime,void 0)})()};
_.U7=function(D,Y,R,Z){Y=Y===void 0?{}:Y;_.Lb(function(){var t=R?R:D;s1r(t);var X=Y.sampleRate;if(!_.f("web_csi_action_sampling_enabled")||X===void 0||X<=1)X=!1;else{var M=oLl(t);X=nLS(M)%X!==0}X&&(_.wC(t).actionDisabled=!0);_.vC(t||"").info.actionType=D;Y.cttAuthInfo&&(_.wC(t).cttAuthInfo=Y.cttAuthInfo);_.l1(t+"TIMING_ACTION",D);_.Lb(_.Lwo)(Y.startTime,t);X={actionType:Z||_.Jw$(D)};Y.logPreviousAction&&(X.previousAction=_.Jw$(_.JQ("TIMING_ACTION")));(M=_.K2())&&M!=="UNDEFINED_CSN"&&(X.clientScreenNonce=
M);_.k8(X,t);_.iD5(!0,t)})()};
s1r=function(D){_.Lb(function(){J4(D);N75(D);RmU(D)})()};
X6j=function(){_.Lb(function(){var D=[],Y;for(Y in _.mf("ytcsi.".slice(0,-1)))Y.endsWith("data_")&&D.push(Y.slice(0,-5));D=_.a(D);for(Y=D.next();!Y.done;Y=D.next())s1r(Y.value);J4()})()};
_.aSj=function(D){return _.Lb(function(){return _.uel("_start",D)})()};
_.k8=function(D,Y,R){_.Lb(_.NX)(D,Y,R===void 0?!1:R)};
_.KX=function(D,Y,R){return _.Lb(_.yk)(D,Y,R)};
_.uel=function(D,Y){return _.Lb(function(){var R=_.$0U(Y);return D in R})()};
C_U=function(D){if(!_.f("universal_csi_network_ticks"))return"";D=_.zZ(D)||"";for(var Y=Object.keys(MtU),R=0;R<Y.length;R++){var Z=Y[R];if(D.includes(Z))return Z}return""};
zmr=function(D){if(!_.f("universal_csi_network_ticks"))return function(){};
var Y=MtU[D];return Y?(_.h4(Y),function(){var R=_.f("universal_csi_network_ticks")?(R=Way[D])?_.h4(R):!1:!1;return R}):function(){}};
_.h4=function(D,Y,R){return _.Lb(function(){if(_.uel(D,R))return!1;_.KX(D,Y,R);return!0})()};
_.LX=function(D,Y,R){_.Lb(function(){if(!_.aSj(R)||_.uel(D,R))return!1;_.KX(D,Y,R);return!0})()};
_.m3=function(D){return _.Lb(_.li)(D,void 0)};
J4=function(D){_.aSj(D)&&_.KX("aa",void 0,D)};
_.Faj=function(D,Y,R,Z,t,X,M,W,z){var I=SPj();W=new kF({veType:Y,youtubeData:X,jspbYoutubeData:W});X=qX({},I);t&&(X.cttAuthInfo=t);t={csn:I,pageVe:W.getAsJson()};_.f("expectation_logging")&&z&&z.screenCreatedLoggingExpectations&&(t.screenCreatedLoggingExpectations=z.screenCreatedLoggingExpectations);R&&R.visualElement?(t.implicitGesture={parentCsn:R.clientScreenNonce,gesturedVe:R.visualElement.getAsJson()},M&&(t.implicitGesture.gestureType=M)):R&&_.Jk(new _.AT("newScreen() parent element does not have a VE - rootVe",
Y));Z&&(t.cloneCsn=Z);D?$N("screenCreated",t,D,X):_.bo("screenCreated",t,X);MN$(Ih5,new TpU(I));HC.clear();j1S.clear();ISn.clear();return I};
x8=function(D,Y,R,Z,t,X){X=X===void 0?{}:X;GYU(D,Y,R,[Z],t===void 0?!1:t,X)};
GYU=function(D,Y,R,Z,t,X){t=t===void 0?!1:t;X=X===void 0?{}:X;Object.assign(X,qX({cttAuthInfo:h5(Y)||void 0},Y));for(var M=_.a(Z),W=M.next();!W.done;W=M.next()){W=W.value;var z=W.getAsJson();(_.y7.isEmpty(z)||!z.trackingParams&&!z.veType)&&_.Jk(Error("sf"));if(_.f("no_client_ve_attach_unless_shown")){var I=Vt$(W,Y);if(z.veType&&!j1S.has(I)&&!ISn.has(I)&&!t){if(!_.f("il_attach_cache_limit")||HC.size<1E3){HC.set(I,[D,Y,R,W]);return}_.f("il_attach_cache_limit")&&HC.size>1E3&&_.Jk(new _.AT("IL Attach cache exceeded limit"))}W=
Vt$(R,Y);HC.has(W)?fSU(R,Y):ISn.set(W,!0)}}Z=Z.filter(function(F){F.csn!==Y?(F.csn=Y,F=!0):F=!1;return F});
R={csn:Y,parentVe:R.getAsJson(),childVes:_.N1(Z,function(F){return F.getAsJson()})};
Y==="UNDEFINED_CSN"?PC("visualElementAttached",X,R):D?$N("visualElementAttached",R,D,X):_.bo("visualElementAttached",R,X)};
A2r=function(D,Y,R,Z,t){em5(D,Y,R,t)};
em5=function(D,Y,R,Z){nlU(R,Y);var t=qX({cttAuthInfo:h5(Y)||void 0},Y);R={csn:Y,ve:R.getAsJson(),eventType:1};Z&&(R.clientData=Z);Y==="UNDEFINED_CSN"?PC("visualElementShown",t,R):D?$N("visualElementShown",R,D,t):_.bo("visualElementShown",R,t)};
r29=function(D,Y,R,Z){nlU(R,Y);var t=qX({cttAuthInfo:h5(Y)||void 0},Y);R={csn:Y,ve:R.getAsJson(),eventType:4};Z&&(R.clientData=Z);Y==="UNDEFINED_CSN"?PC("visualElementShown",t,R):D?$N("visualElementShown",R,D,t):_.bo("visualElementShown",R,t)};
w6M=function(D,Y,R,Z,t){var X=(Z=Z===void 0?!1:Z)?16:8;Z=qX({cttAuthInfo:h5(Y)||void 0,endOfSequence:Z},Y);R={csn:Y,ve:R.getAsJson(),eventType:X};t&&(R.clientData=t);Y==="UNDEFINED_CSN"?PC("visualElementHidden",Z,R):D?$N("visualElementHidden",R,D,Z):_.bo("visualElementHidden",R,Z)};
vlr=function(D,Y,R,Z,t){$Kn(D,Y,R,void 0,Z,t)};
$Kn=function(D,Y,R,Z,t){nlU(R,Y);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var X=qX({cttAuthInfo:h5(Y)||void 0},Y);R={csn:Y,ve:R.getAsJson(),gestureType:Z};t&&(R.clientData=t);Y==="UNDEFINED_CSN"?PC("visualElementGestured",X,R):D?$N("visualElementGestured",R,D,X):_.bo("visualElementGestured",R,X)};
oly=function(D,Y,R,Z){var t=qX({cttAuthInfo:h5(Y)||void 0},Y);R={csn:Y,ve:R.getAsJson(),clientData:Z};Y==="UNDEFINED_CSN"?PC("visualElementStateChanged",t,R):D?$N("visualElementStateChanged",R,D,t):_.bo("visualElementStateChanged",R,t)};
bJU=function(){var D=Tky(16);for(var Y=[],R=0;R<D.length;R++)Y.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[R]&63));return Y.join("")};
PC=function(D,Y,R){y2U.push({payloadName:D,payload:R,jspbPayload:void 0,options:Y});NpU||(NpU=GmU())};
jUb=function(D){if(y2U){for(var Y=_.a(y2U),R=Y.next();!R.done;R=Y.next())R=R.value,R.payload&&(R.payload.csn=D.csn,_.bo(R.payloadName,R.payload,R.options));y2U.length=0}NpU=0};
Vt$=function(D,Y){return""+D.getAsJson().veType+D.getAsJson().veCounter+Y};
nlU=function(D,Y){if(_.f("no_client_ve_attach_unless_shown")){var R=Vt$(D,Y);j1S.set(R,!0);fSU(D,Y)}};
fSU=function(D,Y){D=Vt$(D,Y);HC.has(D)&&(Y=HC.get(D)||[],x8(Y[0],Y[1],Y[2],Y[3],!0),HC.delete(D))};
qX=function(D,Y){_.f("log_sequence_info_on_gel_web")&&(D.sequenceGroup=Y);return D};
_.Qk=function(D,Y,R){_.Lb(x8)(void 0,D,Y,R)};
_.BC=function(D,Y,R){_.Lb(GYU)(void 0,D,Y,R)};
_.pX=function(D,Y){_.Lb(A2r)(void 0,D,Y,void 0,void 0,void 0)};
_.E7=function(D,Y,R){_.Lb(function(){_.xs(Y,function(Z){r29(void 0,D,Z,R)})})()};
_.gC=function(D,Y,R,Z){_.Lb(function(){_.xs(Y,function(t){w6M(void 0,D,t,R,Z)})})()};
_.dC=function(D,Y,R){_.Lb(vlr)(void 0,D,Y,R,void 0)};
_.ii=function(D,Y,R,Z){_.Lb($Kn)(void 0,D,Y,R,Z,void 0)};
_.O7=function(D,Y,R){_.Lb(oly)(void 0,D,Y,R,void 0)};
lSS=function(D,Y){cC.set(D,Y)};
J2y=function(D){DQ={sessionId:D.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:D.enabledSpans}};
kYU=function(D){return DQ?DQ.enabledSpans?!!DQ.enabledSpans[D]:!0:!1};
UK9=function(D){if(!DQ)throw Error("vf");DQ.processors.push(D)};
Kan=function(D){var Y;return{id:D.id,traceId:D.traceId,sessionId:D.sessionId,name:D.name,attributes:D.attributes,startTime:D.startTime,endTime:D.endTime,status:D.status,parentId:(Y=D.parent)==null?void 0:Y.id}};
hm5=function(D,Y){if(D){Y=Y===void 0?1:Y;if(D&&(D.endTime=(0,_.DO)(),Y&&(D.status=Y),Y=DQ)){Y=_.a(Y.processors);for(var R=Y.next();!R.done;R=Y.next()){var Z=void 0,t=void 0;(t=(Z=R.value).onSpanEnd)==null||t.call(Z,D)}}if(Y=DQ){if(D!==Y.activeSpan)throw Error("wf");var X;Y.activeSpan=(X=Y.activeSpan)==null?void 0:X.parent}}};
La9=function(D,Y,R){var Z;if((Z=DQ)&&kYU(D)){var t=Z.nextSpanId++,X=Z.activeSpan;D={id:t,parent:X,name:D,attributes:Y,traceId:X?X.traceId:t,sessionId:Z.sessionId,startTime:(0,_.DO)(),status:0};if(Z.activeSpan){var M;(M=Z.activeSpan).children||(M.children=[]);Z.activeSpan.children.push(D)}Z=_.a(Z.processors);for(M=Z.next();!M.done;M=Z.next())t=Y=void 0,(t=(Y=M.value).onSpanStart)==null||t.call(Y,D);Z=D}else Z=void 0;D=DQ;Z=Z&&D?D.activeSpan=Z:void 0;if(!Z)return R();try{var W=R(Z);hm5(Z);return W}catch(z){throw hm5(Z,
2),z;}};
mKj=function(D,Y){var R=Object.keys(D);D=new _.AT("[Command Handler] "+Y,{filteredCommandNames:R,originalCommand:D});_.Nb(D)};
qP$=function(D,Y){mKj(D,Y+" was called but not set")};
HJo=function(D){return function(){return new D}};
Yx=function(D){return function(){return _.DH().resolve(D)}};
xKU=function(D,Y){var R=_.A(D,_.qb);if(R&&(R=Y[R.signal]))return R();D=_.a(Object.keys(D));for(R=D.next();!R.done;R=D.next())if(R=R.value,Y[R]&&(R=Y[R]))return R()};
_.Rk=function(D,Y,R,Z){return{browseEndpoint:{browseId:D},commandMetadata:{webCommandMetadata:{url:Y,rootVe:R,webPageType:Z===void 0?"WEB_PAGE_TYPE_BROWSE":Z}}}};
P_S=function(D,Y,R){var Z=Y=Y===void 0?0:Y;R=R===void 0?0:R;var t=R-Z;return _.ZQ(D,"PPSV",void 0,void 0,(t>600?0:t<60||R<=0||Z/R>.9)?0:Y)};
_.ZQ=function(D,Y,R,Z,t){var X="/watch?v="+D;D={videoId:D};Y&&(D.playlistId=Y,X+="&list="+Y);Z&&(X+="&pp="+Z);t&&(D.startTimeSeconds=t,X+="&t="+t+"s");Y={watchEndpoint:D,commandMetadata:{webCommandMetadata:{url:X,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};R&&(Y.clickTrackingParams=R);Z&&(_.A(Y,_.Od).playerParams=Z);return Y};
Q1y=function(D){return{browseEndpoint:{browseId:"VL"+D},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+D,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
BpM=function(D){if(D){var Y;if(D){var R=(Y=_.A(D.commandMetadata,_.GA))==null?void 0:Y.url;Y=!(!R||R==="/service_ajax")}else Y=!1;if(Y)return D;var Z;if(D=(Z=_.A(D,_.je))==null?void 0:Z.commands)for(Z=_.a(D),D=Z.next();!D.done;D=Z.next())if(D=BpM(D.value))return D}};
_.tu=function(D){return{runs:[{text:D}]}};
p6j=function(D,Y){return D&&Y?{runs:[{text:D,navigationEndpoint:Y}]}:void 0};
sM=function(D){return D?_.tu(D):void 0};
_.Xs=function(D){return D?{simpleText:D}:void 0};
_.u0=function(D){var Y=D.type;D=D.payload;Y={type:Y};D!==void 0&&(Y.payload=D);return Y};
ElS=function(D,Y,R){for(var Z=Object.assign({},D),t=_.a(Object.keys(Y)),X=t.next();!X.done;X=t.next()){X=X.value;var M=D[X],W=Y[X];if(W===void 0)delete Z[X];else if(M===void 0)Z[X]=W;else if(Array.isArray(W)&&Array.isArray(M))Z[X]=R?[].concat(_.oK(M),_.oK(W)):W;else if(!Array.isArray(W)&&_.Bo(W)&&!Array.isArray(M)&&_.Bo(M))Z[X]=ElS(M,W,R);else if(typeof W===typeof M)Z[X]=W;else return Y=new _.AT("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:X,originalValue:M,updateValue:W}),
_.Nb(Y),D}return Z};
iJl=function(D){if(!D.length)return"";try{if(gli)return gli.decode(D);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(D)}catch(M){}for(var Y=0,R=[],Z=D.length;Y<Z;){for(var t=0;t<1024&&Y<Z;){var X=D[Y++];if(X<128)dKU[t++]=X;else{if(X<224)X=(X&31)<<6|D[Y++]&63;else if(X<240)X=(X&15)<<12|(D[Y++]&63)<<6|D[Y++]&63;else{if(t+1===1024){--Y;break}X=(X&7)<<18|(D[Y++]&63)<<12|(D[Y++]&63)<<6|D[Y++]&63;X-=65536;dKU[t++]=55296|X>>10;X=56320|X&1023}dKU[t++]=X}}X=String.fromCharCode.apply(String,
dKU);t<1024&&(X=X.substring(0,t));R.push(X)}return R.join("")};
c2b=function(D,Y){var R;if((R=OJn)==null?0:R.encodeInto)return Y=OJn.encodeInto(D,Y),Y.read<D.length?D.length*4:Y.written;for(var Z=R=0;Z<D.length;Z++){var t=D.charCodeAt(Z);t<128?Y[R++]=t:(t<2048?Y[R++]=t>>6|192:((t&64512)===55296&&Z+1<D.length&&(D.charCodeAt(Z+1)&64512)===56320?(t=65536+((t&1023)<<10)+(D.charCodeAt(++Z)&1023),Y[R++]=t>>18|240,Y[R++]=t>>12&63|128):Y[R++]=t>>12|224,Y[R++]=t>>6&63|128),Y[R++]=t&63|128)}return R};
DvS=function(D,Y,R){if(Y&&R&&R.buffer===Y.exports.memory.buffer){var Z=Y.realloc(R.byteOffset,D);if(Z)return new Uint8Array(Y.exports.memory.buffer,Z,D)}D=Y?new Uint8Array(Y.exports.memory.buffer,Y.malloc(D),D):new Uint8Array(D);R&&D.set(R);return D};
_.Mw=function(D){D=new Y_r(new ROU([_.dr(decodeURIComponent(D))]));if(Zy5(D,2)){var Y=ak(D);var R=D.pos;var Z=D.arrayView;R=R===void 0?0:R;var t=Y===void 0?-1:Y;R=R===void 0?0:R;t=t===void 0?-1:t;if(Z.totalLength&&t){t<0&&(t=Z.totalLength-R);Z.focus(R);if(!(R-Z.arrayPos+t<=Z.arrays[Z.arrayIdx].length)){var X=Z.arrayIdx,M=Z.arrayPos;Z.focus(R+t-1);M=new Uint8Array(Z.arrayPos+Z.arrays[Z.arrayIdx].length-M);for(var W=0,z=X;z<=Z.arrayIdx;z++)M.set(Z.arrays[z],W),W+=Z.arrays[z].length;Z.arrays.splice(X,
Z.arrayIdx-X+1,M);Z.arrayIdx=0;Z.arrayPos=0;Z.focus(R)}X=Z.arrays[Z.arrayIdx];Z=new DataView(X.buffer,X.byteOffset+R-Z.arrayPos,t)}else Z=new DataView(new ArrayBuffer(0));Z=new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength);D.pos+=Y;Y=Z}else Y=void 0;Y=Y?iJl(Y):void 0;D=Zy5(D,4)?ak(D):void 0;Z=tBr[D];if(typeof Z==="undefined")throw D=new _.AT("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:D}),_.Nb(D),D;return{entityTypeFieldNumber:D,entityType:Z,entityId:Y}};
_.TL=function(D,Y,R){R=R===void 0?0:R;var Z=new s5b;if(OJn)D=OJn.encode(D);else{var t=new Uint8Array(Math.ceil(D.length*1.2)),X=c2b(D,t);t.length<X&&(t=new Uint8Array(X),X=c2b(D,t));t.length>X&&(t=t.subarray(0,X));D=t}D!==void 0&&(zL(Z,18),t=D.length,zL(Z,t),SC(Z,t),Z.buf.set(D,Z.pos),Z.pos+=t);D=XxM[Y];if(typeof D==="undefined")throw R=new _.AT("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Y}),_.Nb(R),R;D!==void 0&&(zL(Z,32),zL(Z,D));zL(Z,40);zL(Z,1);Y=new Uint8Array(Z.buf.buffer,
Z.buf.byteOffset,Z.pos);return encodeURIComponent(_.rb(Y,R))};
uAM=function(D){D=D.key||D.id;if(!D)throw Error("yf");return D};
MBy=function(D,Y){D=D===void 0?{}:D;return aVj(D,Y)};
CSU=function(D,Y,R,Z){if(Z===void 0)return Z=Object.assign({},D[Y]||{}),R=(delete Z[R],Z),Z={},Object.assign({},D,(Z[Y]=R,Z));var t={},X={};return Object.assign({},D,(X[Y]=Object.assign({},D[Y],(t[R]=Z,t)),X))};
WMo=function(D,Y,R,Z,t){var X=D[Y];if(X==null||!X[R])return D;Z=ElS(X[R],Z,t==="REPEATED_FIELDS_MERGE_OPTION_APPEND");t={};X={};return Object.assign({},D,(X[Y]=Object.assign({},D[Y],(t[R]=Z,t)),X))};
_.jC=function(D,Y,R){return D[Y]?D[Y][R]||null:null};
S_o=function(){if(zOy)return zOy();var D={};zOy=cr("PersistentEntityStoreDb",{objectStores:(D.EntityStore={addedAtVersion:1},D.EntityAssociationStore={addedAtVersion:2},D),shared:!1,upgrade:function(Y,R){R(1)&&Lq(hP(Y,"EntityStore",{keyPath:"key"}),"entityType","entityType");R(2)&&(Y=hP(Y,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Lq(Y,"byParentEntityKey","parentEntityKey"),Lq(Y,"byChildEntityKey","childEntityKey"))},
version:3});return zOy()};
Tin=function(D){return _.Qf(S_o(),D)};
Ik=function(D){return window.Int32Array?new Int32Array(D):Array(D)};
IVy=function(D){return _.Qf(j5$(),D)};
FMy=function(D){return new Fs("WRONG_DATA_TYPE",{encoderVersion:D})};
GBU=function(D){return D instanceof Error?new Fs("UNKNOWN_ENCODE_ERROR",{originalMessage:D.message}):new Fs("UNKNOWN_ENCODE_ERROR")};
VBU=function(D){return D instanceof Error?new Fs("UNKNOWN_DECODE_ERROR",{originalMessage:D.message}):new Fs("UNKNOWN_DECODE_ERROR")};
fVj=function(D,Y){D=D instanceof Fs?D:Y(D);_.Nb(D);throw D;};
eOr=function(D){D=(new TextEncoder).encode(D).subarray(0,16);var Y=new Uint8Array(16);Y.set(D);return Y};
nG5=function(D){var Y=AhU[D];if(Y)return Y;_.Jk(new _.AT("Entity model not found.",{entityType:D}))};
_.GL=function(){rhj||(rhj=wxo());return rhj};
wxo=function(){var D,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return _.SX(Z,2),Z.yield(_.OK(),4);if(Z.nextAddress!=2){D=Z.yieldResult;if(!D||!_.e$()||typeof _.ZU.BroadcastChannel==="undefined")return Z.return();Y=new $vU;return Z.return(new V5(D,Y))}R=_.Gl(Z);R instanceof Error&&_.Nb(R);return Z.return()})};
_.fh=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1){R=D.mutations;if(!R||R.length<=0)return Z.return();Y&&Y.dispatch(_.u0({type:"ENTITY_LOADED",payload:R}));return Z.yield(vGb(R),2)}R.length=0;_.V9(Z)})};
vGb=function(D){var Y;return _.C(function(R){return R.nextAddress==1?R.yield(_.GL(),2):(Y=R.yieldResult)?R.yield(_.eC(Y,"readwrite",function(Z){for(var t={},X=_.a(D),M=X.next(),W={};!M.done;W={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},M=X.next())W.mutation$jscomp$4=M.value,W.mutation$jscomp$4.entityKey&&oGy(W.mutation$jscomp$4)&&(W.mutationEntityType$jscomp$3=(0,_.y7.getAnyKey)(W.mutation$jscomp$4.payload),M=void 0,W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(M=function(z){return function(){return _.byo(Z,
z.mutation$jscomp$4.payload[z.mutationEntityType$jscomp$3],z.mutationEntityType$jscomp$3)}}(W)),W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(M=function(z){return function(){return yhS(Z,z.mutation$jscomp$4.entityKey)}}(W)),W.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(M=function(z){return function(){return Ni5(Z,z.mutation$jscomp$4.entityKey,z.mutation$jscomp$4.payload[z.mutationEntityType$jscomp$3],z.mutationEntityType$jscomp$3)}}(W)),M&&(t[W.mutation$jscomp$4.entityKey]=
t[W.mutation$jscomp$4.entityKey]?t[W.mutation$jscomp$4.entityKey].then(M):M()));
return hT.all(Object.values(t))}),0):R.return()})};
oGy=function(D){var Y;D=(Y=D.options)==null?void 0:Y.persistenceOption;return D==="ENTITY_PERSISTENCE_OPTION_PERSIST"||D==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
kBi=function(D,Y){var R,Z;_.C(function(t){if(t.nextAddress==1)return t.yield(_.GL(),2);if(t.nextAddress!=3)return(R=t.yieldResult)?t.yield(_.eC(R,"readonly",function(X){var M={},W=Object.keys(Y).map(function(z){var I=Y[z]?[].concat(_.oK(Y[z])):[];return lVy(X,z,I,M)});
return hT.all(W).then(function(){return M})}),3):t.return();
Z=t.yieldResult;Object.keys(Z).length>0&&D.dispatch(Jhr(Z));_.V9(t)})};
lVy=function(D,Y,R,Z){return Au(D,Y,R).then(function(t){Z[Y]=Uvn(R,t)})};
Uvn=function(D,Y){if(Y.length!==D.length)throw Error("Bf");return Y.reduce(function(R,Z,t){R[D[t]]=Z;return R},{})};
LMy=function(D){var Y=D.filter(function(t){var X;return(t==null?void 0:(X=t.transferEntity)==null?void 0:X.transferState)==="TRANSFER_STATE_COMPLETE"}).length,R=D.filter(function(t){var X;
return(t==null?void 0:(X=t.transferEntity)==null?void 0:X.transferState)==="TRANSFER_STATE_FAILED"}).length,Z=D.filter(function(t){var X;
return(t==null?void 0:(X=t.transferEntity)==null?void 0:X.transferState)&&KMy.includes(t.transferEntity.transferState)});
if(!(Y||Z!=null&&Z.length))return 0;Y=_.hOM(Z)+Y;D=D.length-R;return D===0?0:Math.round(Y*100/D)/100};
_.hOM=function(D){var Y=[];Y=Y.concat.apply(Y,_.oK(D.filter(function(X){return X.streamEntity}).map(function(X){var M=Object.assign({},X.streamEntity),W,z=(W=X.transferEntity)==null?void 0:W.transferState;
M.streamsProgress=M.streamsProgress||[];M.streamsProgress=M.streamsProgress.map(function(I){var F=Object.assign({},I);F.numBytesDownloaded=z==="TRANSFER_STATE_COMPLETE"?I.numTotalBytes:I.numBytesDownloaded;return F});
return M}).map(function(X){return X.streamsProgress})));
var R=D=0;Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){var t=Z.value;Z=Number(t.numBytesDownloaded);t=Number(t.numTotalBytes);R+=isNaN(Z)?0:Z;D+=isNaN(t)?0:t}return D===0?0:Math.round(R*100/D)/100};
mvU=function(D){if(!D||!D.expirationTimestamp||!D.action)return!1;var Y=(0,_.DO)()/1E3;return Number(D.expirationTimestamp)>=Y};
nh=function(D){return D&&D.expirationTimestamp&&D.action?mvU(D)&&D.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.rL=function(D){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(D||"TRANSFER_STATE_UNKNOWN")};
q_n=function(D){var Y=new s5b;if(D!==void 0){var R=Math.ceil(Math.log2(D.length*4+2)/7);R=R===void 0?2:R;zL(Y,10);Y.submessagePosStack.push(Y.pos);Y.submessagePosStack.push(R);Y.pos+=R;SC(Y,D.length*1.2);R=c2b(D,Y.buf.subarray(Y.pos));Y.pos+R>Y.buf.length&&(SC(Y,R),R=c2b(D,Y.buf.subarray(Y.pos)));Y.pos+=R;D=Y.submessagePosStack.pop();R=Y.submessagePosStack.pop();for(var Z=Y.pos-R-D;D--;){var t=D?128:0;Y.view.setUint8(R++,Z&127|t);Z>>=7}}Y=new Uint8Array(Y.buf.buffer,Y.buf.byteOffset,Y.pos);return(new TextDecoder("utf-8")).decode(Y)};
_.wL=function(D){var Y=0;D=_.a(D);for(var R=D.next(),Z={};!R.done;Z={transferState$jscomp$3:void 0},R=D.next()){var t=R.value,X=void 0;R=(X=t.streamEntity)!=null?X:{};X=void 0;Z.transferState$jscomp$3=(X=t.transferEntity)==null?void 0:X.transferState;X=t=void 0;((t=R)==null?0:(X=t.streamsProgress)==null?0:X.length)&&R.streamsProgress.forEach(function(M){return function(W){W=Number(M.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?W.numTotalBytes:W.numBytesDownloaded);isFinite(W)&&(Y+=W)}}(Z))}return Y};
Hyb=function(D){return D.some(function(Y){var R;if(!(Y==null?0:(R=Y.transferEntity)==null?0:R.transferState)){var Z;return!(Y==null?0:(Z=Y.policyEntity)==null?0:Z.action)||Y.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return KMy.includes(Y.transferEntity.transferState)})};
xvb=function(D,Y){if(!Y)return!1;if(_.f("of_pb_en_po_ks"))return!0;var R;D=(R=_.jC(D,"offlineVideoPolicy",_.TL(Y,"offlineVideoPolicy")))!=null?R:void 0;return!!D&&nh(D)};
_.Q5r=function(D){var Y=["TRANSFER_STATE_COMPLETE"];Y=Y===void 0?PSn:Y;return D.filter(function(R){var Z,t;return Y.includes((t=(Z=R.transferEntity)==null?void 0:Z.transferState)!=null?t:"TRANSFER_STATE_UNKNOWN")})};
Bir=function(D,Y){if(Y){var R,Z=(R=_.jC(D,"playbackData",_.TL(Y,"playbackData")))!=null?R:null,t;R=(t=_.jC(D,"transfer",_.TL(Y,"transfer")))!=null?t:null;var X;t=(X=_.jC(D,"offlineVideoStreams",_.TL(Y,"offlineVideoStreams")))!=null?X:null;var M;D=(M=_.jC(D,"offlineVideoPolicy",_.TL(Y,"offlineVideoPolicy")))!=null?M:null;if(Z||R||t||D)return{playbackDataEntity:Z,transferEntity:R,streamEntity:t,policyEntity:D}}};
_.$x=function(D){var Y=D.playbackData;if(!Y)return[];var R=[];Y=_.a(Object.keys(Y));for(var Z=Y.next();!Z.done;Z=Y.next()){var t=Z.value;if(!px$(D,_.Mw(t).entityId)&&(Z=Bir(D,_.Mw(t).entityId))){var X=void 0,M=void 0;t=(M=Number((X=_.jC(D,"playbackData",t))==null?void 0:X.streamDownloadTimestampSeconds))!=null?M:(0,_.DO)();R.push({entity:Z,streamDownloadTimestamp:t})}}return R.sort(function(W,z){var I=W.streamDownloadTimestamp,F=z.streamDownloadTimestamp;return F===I?W.entity.streamEntity&&!z.entity.streamEntity?
1:-1:F-I}).map(function(W){return W.entity})};
EGl=function(D){return _.Q5r(_.$x(D))};
_.gGr=function(D){return _.$x(D).filter(function(Y){var R;if(((R=Y.policyEntity)==null?0:R.action)&&Y.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Z;if((Z=Y.transferEntity)==null?0:Z.transferState){var t;return KMy.includes((t=Y.transferEntity)==null?void 0:t.transferState)}return!0})};
px$=function(D,Y){var R;return((R=_.jC(D,"downloadStatusEntity",_.TL(Y,"downloadStatusEntity")))==null?void 0:R.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
dv$=function(D){var Y;if(D==null?0:(Y=D.playbackDataEntity)==null?0:Y.key)return _.Mw(D.playbackDataEntity.key).entityId;var R;if(D==null?0:(R=D.transferEntity)==null?0:R.key)return _.Mw(D.transferEntity.key).entityId;var Z;if(D==null?0:(Z=D.streamEntity)==null?0:Z.key)return _.Mw(D.streamEntity.key).entityId;var t;if(D==null?0:(t=D.policyEntity)==null?0:t.key)return _.Mw(D.policyEntity.key).entityId};
Oyo=function(D){var Y=new Set,R;D=(R=D.mainDownloadsListEntity)==null?void 0:R[iy$];var Z;if(!(D==null?0:(Z=D.downloads)==null?0:Z.length))return Y;var t;D==null||(t=D.downloads)==null||t.forEach(function(X){(X==null?0:X.videoItem)&&Y.add(X.videoItem)});
return Y};
vU=function(D,Y){if(Y){var R=_.jC(D,"mainVideoEntity",_.TL(Y,"mainVideoEntity")),Z=_.jC(D,"downloadStatusEntity",_.TL(Y,"downloadStatusEntity")),t=_.jC(D,"ytMainChannelEntity",_.TL(Y,"ytMainChannelEntity")),X={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};D=Bir(D,Y);Z=(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.f("woffle_render_failed_download_state_ks")&&(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_FAILED";!D&&Z&&(D=X);if(D&&R&&
t)return Object.assign({},{videoEntity:R,channelEntity:t},D)}};
D8n=function(D,Y){return chS(D,Y)==="TRANSFER_STATE_COMPLETE"&&xvb(D,Y)};
YH$=function(D,Y){if(!Y)return!1;var R;D=(R=_.jC(D,"playbackData",_.TL(Y,"playbackData")))!=null?R:void 0;return!!D&&!!D.playerResponseJson};
chS=function(D,Y){if(!Y)return"TRANSFER_STATE_UNKNOWN";var R=_.jC(D,"transfer",_.TL(Y,"transfer"));if(R){var Z;return(Z=R.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN"}R=_.jC(D,"offlineOrchestrationActionWrapperEntity",_.TL(Y,"offlineOrchestrationActionWrapperEntity"));D=_.jC(D,"mainVideoEntity",_.TL(Y,"mainVideoEntity"));return R||D?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
R4$=function(D,Y){if(!Y)return"TRANSFER_STATE_UNKNOWN";if(D=_.jC(D,"transfer",_.TL(Y,"transfer"))){var R;return(R=D.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
ZNb=function(D,Y){return Y&&(D=_.jC(D,"videoPlaybackPositionEntity",_.TL(Y,"videoPlaybackPositionEntity")),D==null?0:D.lastPlaybackPositionSeconds)?Number(D.lastPlaybackPositionSeconds):0};
sir=function(D,Y){return tF9(D).some(function(R){var Z;return(R==null?void 0:(Z=R.mainPlaylistEntity)==null?void 0:Z.playlistId)===Y})};
uqM=function(D,Y,R){var Z=XkU(D,Y);if(!Z.length)return[];Y=[];Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next()){t=t.value;var X=vU(D,t);R&&chS(D,t)!=="TRANSFER_STATE_COMPLETE"||X&&Y.push(X)}return Y};
XkU=function(D,Y){if(!Y)return[];var R=_.TL(Y,"mainPlaylistEntity"),Z;Y=(Z=D.mainPlaylistEntity)==null?void 0:Z[R];Z=[];if(Y==null||!Y.videos)return Z;Y=_.a(Y.videos);for(R=Y.next();!R.done;R=Y.next()){R=R.value;var t=void 0,X=void 0,M=void 0,W=(t=D)==null?void 0:(X=t.mainPlaylistVideoEntity)==null?void 0:(M=X[R])==null?void 0:M.video;W&&(R=_.Mw(W).entityId)&&Z.push(R)}return Z};
aY9=function(D,Y){if(Y){var R=_.jC(D,"mainPlaylistEntity",_.TL(Y,"mainPlaylistEntity")),Z=_.jC(D,"mainPlaylistDownloadStateEntity",_.TL(Y,"mainPlaylistDownloadStateEntity"));D=_.jC(D,"ytMainChannelEntity",_.TL(Y,"ytMainChannelEntity"));if(Z&&R)return Object.assign({},{mainPlaylistEntity:R,mainPlaylistDownloadStateEntity:Z},!!D&&{channelEntity:D})}};
tF9=function(D){return MF9(D).sort(function(Y,R){return R.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return Y.downloadedPlaylistEntities})};
MF9=function(D){var Y=D.mainPlaylistDownloadStateEntity,R=[];if(!Y)return R;for(var Z=_.a(Object.keys(Y)),t=Z.next();!t.done;t=Z.next()){var X=t.value;t=aY9(D,_.Mw(X).entityId);var M=void 0;X=Number((M=Y[X])==null?void 0:M.addedTimestampMillis);M=isNaN(X)?(0,_.DO)():X;t!==void 0&&R.push({downloadedPlaylistEntities:t,addedTimestampMillis:M})}return R};
Csl=function(D){var Y,R=(Y=D.mainPlaylistVideoEntity)!=null?Y:{};return new Set(tF9(D).reduce(function(Z,t){Z=Z===void 0?[]:Z;var X,M;t==null||(X=t.mainPlaylistEntity)==null||(M=X.videos)==null||M.forEach(function(W){var z;(W=(z=R[W])==null?void 0:z.video)&&Z.push(W)});
return Z},[]))};
WOj=function(D){return"downloadedMusicPlaylistEntities"in D};
z4y=function(D){return"mainPlaylistEntity"in D&&"mainPlaylistDownloadStateEntity"in D};
SH$=function(D){return"videoEntity"in D&&"channelEntity"in D};
Tmr=function(D){var Y=D.musicPlaylistDownloadMetadataEntity,R=[];if(!Y)return R;for(var Z=_.a(Object.keys(Y)),t=Z.next();!t.done;t=Z.next()){t=t.value;a:{var X=D,M=_.Mw(t).entityId;if(M){var W=_.jC(X,"musicPlaylist",_.TL(M,"musicPlaylist"));X=_.jC(X,"musicPlaylistDownloadMetadataEntity",_.TL(M,"musicPlaylistDownloadMetadataEntity"));if(W&&X){W={musicPlaylistEntity:W,musicPlaylistDownloadStateEntity:X};break a}}W=void 0}X=void 0;t=Number((X=Y[t])==null?void 0:X.addedTimestampMillis);t=isNaN(t)?(0,_.DO)():
t;W!==void 0&&R.push({downloadedMusicPlaylistEntities:W,addedTimestampMillis:t})}return R};
jib=function(D){var Y=new Set;D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,"musicPlaylistEntity"in R&&"musicPlaylistDownloadStateEntity"in R){R=_.a(R.musicPlaylistEntity.tracks);for(var Z=R.next();!Z.done;Z=R.next())Y.add(Z.value)}return Y};
IYS=function(D,Y){if(Y){var R=_.jC(D,"musicTrack",_.TL(Y,"musicTrack")),Z=_.jC(D,"musicArtist",_.TL(Y,"musicArtist"))||{};if((D=Bir(D,Y))&&R&&Z)return Object.assign({},{musicTrackEntity:R,musicArtistEntity:Z},D)}};
FOM=function(D){var Y=D.musicTrackDownloadMetadataEntity,R=[];if(!Y)return[];Y=_.a(Object.keys(Y));for(var Z=Y.next();!Z.done;Z=Y.next()){var t=Z.value;Z=IYS(D,_.Mw(t).entityId);var X=void 0;t=Number((X=_.jC(D,"musicTrackDownloadMetadataEntity",t))==null?void 0:X.addedTimestampMillis);X=isNaN(t)?(0,_.DO)():t;Z!==void 0&&R.push({downloadedMusicEntities:Z,addedTimestampMillis:X})}return R};
fYi=function(D,Y){if(!Y)return[];if(Object.values(GJ$).includes(Y))return VF5(D,Y);Y=_.TL(Y,"musicPlaylist");var R;D=(R=D.musicPlaylist)==null?void 0:R[Y];R=[];if(D==null||!D.tracks)return R;D=_.a(D.tracks);for(Y=D.next();!Y.done;Y=D.next())(Y=_.Mw(Y.value).entityId)&&R.push(Y);return R};
VF5=function(D,Y){var R=new Set,Z=Tmr(D).map(function(X){return X.downloadedMusicPlaylistEntities});
Z=jib(Z);Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next())(t=_.Mw(t.value).entityId)&&R.add(t);return e4y(D).downloadedMusicEntities.filter(function(X){var M;if((M=X.musicTrackEntity)!=null&&M.videoId){X=X.musicTrackEntity;if(M=Y==="PPOM"?!0:!R.has(X.videoId))b:switch(X=X.musicVideoType,Y){case "PPSE":M=X==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:M=X!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}X=M}else X=!1;return X}).map(function(X){var M;
return(M=X.musicTrackEntity)==null?void 0:M.videoId})};
e4y=function(D){var Y=FOM(D).sort(function(R,Z){return Z.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return"downloadedMusicEntities"in R?R.downloadedMusicEntities:WOj(R)?R.downloadedMusicPlaylistEntities:{}});
D=Tmr(D).sort(function(R,Z){return Z.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return"downloadedMusicEntities"in R?R.downloadedMusicEntities:WOj(R)?R.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:Y,downloadedMusicPlaylistEntities:D}};
nWn=function(D,Y){Y=_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?fYi(D,Y):XkU(D,Y);if(!Y.length)return"TRANSFER_STATE_UNKNOWN";Y=Y.map(function(R){return R4$(D,R)});
return AGi(Y)};
AGi=function(D){var Y=new Set(D);if(Y.has("TRANSFER_STATE_FAILED")&&Y.size===1)return"TRANSFER_STATE_FAILED";Y.delete("TRANSFER_STATE_FAILED");if(Y.has("TRANSFER_STATE_UNKNOWN")&&Y.size===1)return"TRANSFER_STATE_PRE_TRANSFER";Y.delete("TRANSFER_STATE_UNKNOWN");if(Y.has("TRANSFER_STATE_PRE_TRANSFER")&&Y.size===1||Y.size===0)return"TRANSFER_STATE_PRE_TRANSFER";D=Y.has("TRANSFER_STATE_TRANSFERRING");Y=Y.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return D||Y?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
ok=function(D){var Y=D.mainVideoDownloadStateEntity,R=[];if(!Y)return[];Y=_.a(Object.keys(Y));for(var Z=Y.next();!Z.done;Z=Y.next()){var t=Z.value;if(!px$(D,_.Mw(t).entityId)){Z=vU(D,_.Mw(t).entityId);var X=void 0,M=void 0;t=(M=Number((X=_.jC(D,"mainVideoDownloadStateEntity",t))==null?void 0:X.addedTimestampMillis))!=null?M:(0,_.DO)();Z!==void 0&&R.push({downloadedVideoEntities:Z,addedTimestampMillis:t})}}return R};
rGn=function(D){return ok(D).sort(function(Y,R){return R.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return Y.downloadedVideoEntities})};
_.$89=function(D){var Y=Csl(D),R=_.b0(D),Z=Oyo(D),t=ok(D).filter(function(M){var W,z;if((M==null?void 0:(W=M.downloadedVideoEntities)==null?void 0:(z=W.transferEntity)==null?void 0:z.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var I,F;M=M==null?void 0:(I=M.downloadedVideoEntities)==null?void 0:(F=I.videoEntity)==null?void 0:F.key;return _.f("kevlar_use_library_entity")?M&&(Z.has(M)||R[M]):M&&!Y.has(M)}),X=MF9(D).filter(function(M){return nWn(D,M.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.oK(t),_.oK(X)).sort(function(M,W){return W.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return wkM(M)})};
vWU=function(D,Y){if(Y&&xvb(D,Y)){var R,Z,t=(Z=(R=_.jC(D,"playbackData",_.TL(Y,"playbackData")))!=null?R:void 0)==null?void 0:Z.playerResponseJson;if(t){try{var X=JSON.parse(t);var M=_.jC(D,"transfer",_.TL(Y,"transfer")),W=ZNb(D,Y);W&&(X=Object.assign({},X,{playerConfig:Object.assign({},X.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+W*1E3}}})}));X.cotn=M==null?void 0:M.cotn}catch(z){}return X}}};
_.bNb=function(D){var Y,R,Z;D=(Z=(R=((Y=D.downloadsPageViewConfigurationEntity)!=null?Y:{})[_.y5])==null?void 0:R.smartDownloadsOptInBannerVisibility)!=null?Z:{};var t;return(t=_.A(D,oWn))!=null?t:{}};
_.b0=function(D){var Y,R,Z;D=(Z=(R=((Y=D.mainDownloadsListEntity)!=null?Y:{})[_.yGl])==null?void 0:R.downloads)!=null?Z:[];Y={};R=_.a(D);for(Z=R.next();!Z.done;Z=R.next())D=void 0,Y[(D=Z.value.videoItem)!=null?D:""]=!0;return Y};
NmM=function(D){var Y=_.b0(D);if(Object.keys(Y).length===0)return!1;var R=D.mainVideoEntity;if(!R)return!0;R=_.a(Object.keys(R));for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=_.Mw(Z).entityId;if(Y[Z]&&!px$(D,t))return!1}return!0};
_.Nw=function(D){var Y=_.b0(D);return ok(D).sort(function(R,Z){return R.addedTimestampMillis-Z.addedTimestampMillis}).map(function(R){return R.downloadedVideoEntities}).filter(function(R){var Z;
return(R=R==null?void 0:(Z=R.videoEntity)==null?void 0:Z.key)&&!!Y[R]})};
_.JG9=function(D){var Y,R,Z;D=(Z=(R=((Y=D.downloadsPageViewConfigurationEntity)!=null?Y:{})[_.y5])==null?void 0:R.downloadsUpsellBannerVisibility)!=null?Z:{};var t;return(t=_.A(D,lYi))!=null?t:{}};
wkM=function(D){return"downloadedVideoEntities"in D?D.downloadedVideoEntities:"downloadedPlaylistEntities"in D?D.downloadedPlaylistEntities:{}};
kJ$=function(D){var Y=_.b0(D),R=Csl(D),Z=ok(D).filter(function(t){var X,M;return(t=t==null?void 0:(X=t.downloadedVideoEntities)==null?void 0:(M=X.videoEntity)==null?void 0:M.key)&&!Y[t]&&!R.has(t)});
D=MF9(D);return[].concat(_.oK(Z),_.oK(D)).sort(function(t,X){return X.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return wkM(t)})};
_.l0=function(D){if(!_.f("kevlar_use_library_entity"))return kJ$(D);var Y=ok(D).filter(function(Z){var t,X;if(t=Z=Z==null?void 0:(t=Z.downloadedVideoEntities)==null?void 0:(X=t.videoEntity)==null?void 0:X.key){var M,W,z;t=((W=(M=D.mainDownloadsListEntity)==null?void 0:M[iy$])==null?0:(z=W.downloads)==null?0:z.length)?Oyo(D).has(Z):!1}return t}),R=MF9(D);
return[].concat(_.oK(Y),_.oK(R)).sort(function(Z,t){return t.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return wkM(Z)})};
U8o=function(D){var Y=_.b0(D),R=Csl(D);return rGn(D).filter(function(Z){var t;return(Z=Z==null?void 0:(t=Z.videoEntity)==null?void 0:t.key)&&!Y[Z]&&!R.has(Z)})};
KOo=function(D){if(!_.f("kevlar_use_library_entity"))return U8o(D);var Y=_.b0(D),R=Oyo(D);return rGn(D).filter(function(Z){var t;return(Z=Z==null?void 0:(t=Z.videoEntity)==null?void 0:t.key)&&!Y[Z]&&R.has(Z)})};
h4U=function(D,Y){Y=_.TL(Y,"settingEntity");var R,Z,t;return!!((t=(Z=((R=D.settingEntity)!=null?R:{})[Y])==null?void 0:Z.settingOptionValue)!=null?t:{}).boolValue};
_.Ju=function(D){var Y=_.Nw(D);if(Hyb(Y))return 0;var R=[];Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;var t=void 0,X=void 0;if((t=Z)==null?0:(X=t.videoEntity)==null?0:X.key)t=_.Mw(Z.videoEntity.key).entityId,Z=D,t=_.TL(t,"mainVideoDownloadStateEntity"),Z=_.jC(Z,"mainVideoDownloadStateEntity",t),(Z=Number(Z==null?void 0:Z.addedTimestampMillis))&&R.push(Z)}return Math.max.apply(Math,_.oK(R))};
_.kx=function(D){return D.ui.richGridMiniMode};
_.UM=function(D){return D.ui.richGridItemsPerRow};
_.LOb=function(D){return D.ui.richGridSlimItemsPerRow};
_.m8M=function(D){return D.ui.guideIsExpanded};
_.Kh=function(D){return D.ui.miniplayerIsActive};
qHU=function(D){return D.ui.singleOptionSurveyIsActive};
_.hu=function(D){var Y;return((Y=D.ui)==null?void 0:Y.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.HNo=function(D){return _.hu(D)==="WEB_PAGE_TYPE_WATCH"};
_.x8U=function(D){return _.hu(D)==="WEB_PAGE_TYPE_SHORTS"};
_.Psj=function(D){return D.ui.inlinePreviewIsActive};
_.Qin=function(D){return D.ui.inlinePreviewIsEnabled};
_.BmU=function(D){return D.ui.miniplayerPlaybackState};
_.Lh=function(D){return D.ui.isOnline};
_.pki=function(D){return D.ui.frostedGlassMode};
_.mW=function(D,Y){return chS(D.entities,Y)};
_.qw=function(D,Y){return nWn(D.entities,Y)};
EWo=function(D,Y){var R;if(Y){var Z;D=(Z=_.jC(D.entities,"offlineVideoPolicy",_.TL(Y,"offlineVideoPolicy")))==null?void 0:Z.action}else D=void 0;return(R=D)!=null?R:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
gWM=function(D,Y){var R;Y?(D=_.jC(D.entities,"offlineVideoPolicy",_.TL(Y,"offlineVideoPolicy")),D=Number(D==null?void 0:D.expirationTimestamp)):D=void 0;return(R=D)!=null?R:0};
_.d8S=function(D){return _.$x(D.entities).length};
iN9=function(D,Y){return vU(D.entities,Y)};
ONb=function(D,Y){return aY9(D.entities,Y)};
HU=function(D,Y){return(D=vU(D.entities,Y))?_.hOM([D]):0};
_.cGj=function(D,Y){var R=_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(R){var Z=D.entities;var t=fYi(Z,Y);if(t.length){var X=[];t=_.a(t);for(var M=t.next();!M.done;M=t.next())(M=IYS(Z,M.value))&&X.push(M);Z=X}else Z=[]}else Z=uqM(D.entities,Y);var W;if(R){var z=D.entities;Y?(Y=_.TL(Y,"musicPlaylist"),z=(W=z.musicPlaylist)==null?void 0:W[Y],W=z!=null&&z.tracks?z.tracks.length:0):W=0}else W=D.entities,Y?(Y=_.TL(Y,"mainPlaylistEntity"),W=(z=W.mainPlaylistEntity)==null?void 0:z[Y],W=W!=null&&W.videos?
W.videos.length:0):W=0;return Z.length!==W?0:Z?LMy(Z):0};
_.Dx5=function(D){return D.download.isLeaderTab};
_.Ynj=function(D,Y,R){if(!Y&&R){var Z=D.entities;if(R){var t=q_n(R),X,M;Y=(M=(X=_.jC(Z,"offlineabilityEntity",_.TL(t,"offlineabilityEntity")))==null?void 0:X.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else Y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else X=D.entities,Y?(M=q_n(Y),Y=(t=(Z=_.jC(X,"offlineabilityEntity",_.TL(M,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?t:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):Y="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return Y};
RxU=function(D,Y){D=D.entities;if(Y){Y=q_n(Y);var R,Z;Y=(Z=(R=_.jC(D,"offlineabilityEntity",_.TL(Y,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else Y="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return Y};
_.Zcr=function(D){var Y=D.entities;D=_.Lh(D);var R=h4U(Y,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.f("kevlar_modern_downloads_page")&&R)var Z=!1;else{var t,X;Y=(X=(t=((Z=Y.downloadsPageViewConfigurationEntity)!=null?Z:{})[_.y5])==null?void 0:t.smartDownloadsOptInBannerVisibility)!=null?X:{};Z=D?!!Y.visibleWithConnection:!!Y.visibleWithoutConnection}return Z};
_.t8i=function(D){return h4U(D.entities,"SMART_DOWNLOADS_ENABLED")};
_.s8r=function(D){return NmM(D.entities)};
Xs$=function(D){return _.Nw(D.entities).every(function(Y){var R;return(Y==null?void 0:(R=Y.transferEntity)==null?void 0:R.transferState)&&!KMy.includes(Y.transferEntity.transferState)})};
_.uJr=function(D){var Y,R,Z,t=(Z=(R=((Y=D.entities.downloadsPageViewConfigurationEntity)!=null?Y:{})[_.y5])==null?void 0:R.downloadsUpsellBannerVisibility)!=null?Z:{};return _.Lh(D)?!!t.visibleWithConnection:!!t.visibleWithoutConnection};
_.akr=function(D,Y){return px$(D.entities,Y)};
M8y=function(D,Y){if(Y){var R,Z;D=(Z=(R=_.jC(D.entities,"downloadStatusEntity",_.TL(Y,"downloadStatusEntity")))==null?void 0:R.downloadState)!=null?Z:"DOWNLOAD_STATE_UNKNOWN"}else D="DOWNLOAD_STATE_UNKNOWN";return D};
xx=function(D,Y){return ZNb(D.entities,Y)};
SnU=function(D){D=_.CB5(D);var Y=D.hours===void 0?0:D.hours,R=D.minutes===void 0?0:D.minutes,Z=D.seconds===void 0?0:D.seconds,t=Y>0;D=[];t&&(Y=_.W0U(Y),D.push(Y));Y=t;Y=Y===void 0?!1:Y;R=(["af","be","lt"].includes(_.PU)||Y)&&R<10?zx5().format(R):(new Intl.NumberFormat("en-u-nu-latn")).format(R);D.push(R);R=zx5().format(Z);D.push(R);R=":";"da fi id si sr sr-Latn".split(" ").includes(_.PU)&&(R=".");return D.join(R)};
_.CB5=function(D){var Y=D.hours||0,R=D.minutes||0,Z=D.seconds||0;Y=Z+R*60+Y*3600+(D.days||0)*86400+(D.weeks||0)*604800+(D.months||0)*2629800+(D.years||0)*31557600;if(Y<=0)return{hours:0,minutes:0,seconds:0};D=Y;Y=Math.floor(D/3600);D%=3600;R=Math.floor(D/60);Z=Math.floor(D%60);return{hours:Y,minutes:R,seconds:Z}};
_.W0U=function(D){D=(new Intl.NumberFormat("en-u-nu-latn")).format(D);var Y=["fr"],R="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");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(_.PU)?D.replace(",","\u00a0"):Y.includes(_.PU)?D.replace(",","\u202f"):R.includes(_.PU)?D.replace(",","."):D};
zx5=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
TtS=function(D){try{return(new _.Q5(5)).format(D)}catch(Y){}};
BU=function(D){return{thumbnailOverlayDownloadingRenderer:{state:D}}};
j8n=function(D){if(D=TtS(D))return{thumbnailOverlaySidePanelRenderer:{text:_.tu(D),icon:{iconType:"PLAYLISTS"}}}};
Ikn=function(){var D=_.fX("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.tu(D),icon:{iconType:"PLAY_ALL"}}}};
F0j=function(D){D=_.ph(D,2);return _.PU!=="ru"&&_.PU!=="es_419"&&_.PU!=="es-419"&&_.PU!=="es"&&_.PU!=="es_US"&&_.PU!=="es-US"&&_.PU!=="fr"&&_.PU!=="pl"&&_.PU!=="it"&&_.PU!=="nl"&&_.PU!=="uk"&&_.PU!=="fr_CA"&&_.PU!=="fr-CA"||D===""?D:D[0].toLocaleUpperCase()+D.substring(1)};
V85=function(D){return function(Y){var R=D(),Z=_.ph(Y,R.dateFormat);Y=_.ph(Y,R.timeFormat);var t=G5i.DATETIMEFORMATS[R.joinerStyle];t=t.replace(/'(?!')/g,"");t=t.replace("{0}",Y);t=t.replace("{1}",Z);return R.capitalize(t)}};
fky=function(D){return D?typeof D.seconds==="string"&&(D.nanos===void 0||typeof D.nanos==="number"):!1};
ex9=function(D){return new Date(Number(D.seconds)*1E3+(D.nanos||0)*1E-6)};
_.ph=function(D,Y){if(typeof D.getTime==="function")D={date:D};else if(fky(D))D={date:ex9(D)};else if(typeof fky(D.timestamp)&&typeof D.i18nInternalSecondsEastOfUtc==="number")D={date:ex9(D.timestamp),timeZone:EM(-D.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(D));var R=D;D=R.date;R=R.timeZone;Y=A$$(Y).format(D,R);_.PU==="zh-TW"&&(D=R?Number(A$$("H").format(D,R)):D.getHours(),Y=D<5?Y.replace("\u4e0a\u5348","\u51cc\u6668"):D<8?Y.replace("\u4e0a\u5348","\u65e9\u4e0a"):D<12?
Y.replace("\u4e0a\u5348","\u4e0a\u5348"):D<13?Y.replace("\u4e0b\u5348","\u4e2d\u5348"):D<19?Y.replace("\u4e0b\u5348","\u4e0b\u5348"):Y.replace("\u4e0b\u5348","\u665a\u4e0a"));return Y};
A$$=function(D){if(nZi.has(D))return nZi.get(D);var Y=r$9(D);Y=wsS(Y);$xi!==!0&&($xi=!0);vZj=!0;vZj=!1;Y=new gL(Y,G5i);nZi.set(D,Y);return Y};
r$9=function(D){return(new gL(D,G5i)).patternParts_.map(function(Y){return Y.type===0?"'"+Y.text+"'":Y.text}).join("")};
wsS=function(D){return _.PU==="en"||_.PU==="es_US"||_.PU==="es-US"?D:D.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(Y,R,Z){return"H".repeat(R.length)+Z})};
UxU=function(D,Y){oZi||(_.dL=_.bc5,oZi=new y$U);var R=oZi;a:if(D=Ntj(D),Y=Ntj(Y||new Date),D>Y)R=D.getTime()-Y.getTime()>6048E5?_.ph(D,1):lkn(D);else{for(var Z=0;J$b(D,12*(Z+1))<Y;)++Z;if(Z>0)R=R.format(-Z,0);else{for(Z=0;J$b(D,Z+1)<Y;)++Z;if(Z>0)R=R.format(-Z,2);else{D=Y.getTime()-D.getTime();Y=_.a(k5o);for(Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;var t=Z.unit,X=Math.floor(D/Z.unitDuration);if(X>=(Z.threshold===void 0?1:Z.threshold)){R=R.format(-X,t);break a}}R=R.format(-0,7)}}}return R};
Ntj=function(D){if(typeof D.getTime==="function")return D;if(fky(D))return ex9(D);throw Error("Df`"+JSON.stringify(D));};
J$b=function(D,Y){for(var R=0,Z;;++R)if(Z=new Date(D.getFullYear(),D.getMonth()+Y,D.getDate()-R,D.getHours(),D.getMinutes(),D.getSeconds()),Z.getMonth()===(D.getMonth()+Y)%12)return Z};
_.i0=function(D){return{runs:[{text:D}]}};
_.OM=function(D){if(D&&D.simpleText)return D.simpleText;var Y="";if(D&&D.runs)for(var R=0;R<D.runs.length;R++)D.runs[R].text&&(Y+=D.runs[R].text);return Y};
hxy=function(D,Y,R,Z){return D.videoEntity&&!D.policyEntity&&R!=="DOWNLOAD_STATE_FAILED"?[BU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:nh(D.policyEntity)&&Y!=="TRANSFER_STATE_FAILED"&&Y!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?Y==="TRANSFER_STATE_PAUSED_BY_USER"?[BU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.rL(Y)?[BU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:D.videoEntity.lengthSeconds?K0r(D.videoEntity.lengthSeconds,Z):[]:
[BU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
K0r=function(D,Y){var R=[{thumbnailOverlayTimeStatusRenderer:{text:_.tu(SnU({seconds:D})),style:"DEFAULT"}}];Y&&(D=Y<=0||D<=0?0:Y>=D?100:Math.ceil(Y*100/D),D>0&&R.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:D}}));return R};
L0S=function(D,Y,R,Z,t){if(Y==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(_.rL(Y)||Y==="TRANSFER_STATE_PRE_TRANSFER")var X=[BU("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var M,W;if(Y==="TRANSFER_STATE_COMPLETE"&&((M=D.mainPlaylistEntity)==null?0:(W=M.videos)==null?0:W.length)){if(_.f("web_modern_collections_v2")){var z;var I=(X=D.mainPlaylistEntity)==null?void 0:(z=X.videos)==null?void 0:z.length;X=(X=TtS(I))?{thumbnailOverlayBottomPanelRenderer:{text:_.tu(X),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var F;X=j8n((I=D.mainPlaylistEntity)==null?void 0:(F=I.videos)==null?void 0:F.length)}var G;X=[Ikn(),Object.assign({},(G=X)!=null?G:{})]}else X=[]}G=X;a:if(Y==="TRANSFER_STATE_PRE_TRANSFER")R=sM(_.fX("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(Y==="TRANSFER_STATE_TRANSFER_IN_QUEUE")R=sM(_.fX("WAITING_TO_DOWNLOAD"));else if(_.rL(Y))R=Math.floor(R*100).toString(),R=sM(_.fX("DOWNLOADING_PERCENT",{percent:R},"Downloading... "+R+"%"));else{if(Z&&(_.f("playlist_is_offline_selector_killswitch")&&
(t=_.DH().resolve(_.xQ).isNetworkAvailable()),t)){R=p6j(_.fX("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Q1y(Z));break a}R=void 0}Y=Y==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.fX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},G.length?{thumbnailOverlays:G}:{},R?{viewPlaylistText:R}:{viewPlaylistText:_.i0("")},Y.length?{badges:Y}:{})};
mxU=function(D,Y,R,Z,t,X){if(Y==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(Z==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var M=hxy(D,Y,Z);if(D.videoEntity&&!D.policyEntity&&Z!=="DOWNLOAD_STATE_FAILED"){var W=_.fX("WAITING_TO_DOWNLOAD");if(W)return{shortViewCountText:_.i0(W),publishedTimeText:void 0,thumbnailOverlays:M}}if(!nh(D.policyEntity)){X=D.policyEntity&&!mvU(D.policyEntity)?_.fX("DOWNLOAD_EXPIRED",{},"Download expired"):
_.fX("TRANSFER_FAILED",{},"Download failed");var z;if((z=D.policyEntity)==null?0:z.shortMessageForDisabledAction)X=D.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:sM(X),publishedTimeText:void 0,thumbnailOverlays:M}}if(Y==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.i0(_.fX("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:M};if(Y==="TRANSFER_STATE_FAILED"||Y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.i0(_.fX("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:M};if(Y==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(z=_.fX("WAITING_TO_DOWNLOAD"),Z==="DOWNLOAD_STATE_PAUSED"&&(z=_.fX("DOWNLOAD_PAUSED",{},"Download paused")),z))return{shortViewCountText:_.i0(z),publishedTimeText:void 0,thumbnailOverlays:M};if(_.rL(Y))return D=Math.floor(R*100).toString(),{shortViewCountText:_.i0(_.fX("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%")),publishedTimeText:void 0,thumbnailOverlays:M};Y=void 0;D.videoEntity.publishedTimestampMillis&&
(Y=new Date,t&&(Y=new Date(t)),Y=sM(UxU(new Date(Number(D.videoEntity.publishedTimestampMillis)),Y)));t=[];_.f("kevlar_woffle_badge_killswitch")||(t=[{metadataBadgeRenderer:{label:_.fX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var I;D=sM((I=D.videoEntity.localizedStrings)==null?void 0:I.viewCount);return Object.assign({},X?{shortViewCountText:void 0}:{shortViewCountText:D},X?{}:{publishedTimeText:Y},{badges:t,thumbnailOverlays:M})};
HcM=function(D,Y){D=D===void 0?qnS:D;switch(Y.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:Y.payload.playlistId,inviteLinkURL:Y.payload.inviteLinkUrl};default:return D}};
PB5=function(D,Y){D=D===void 0?xxU:D;switch(Y.type){case "SET_CURRENT_FORM_ID":return Y=Y.payload.formId,D.currentFormId===Y?D:{currentFormId:Y,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var R=Y.payload;Y=R.groupId;R=R.command;if(D.currentFormId){var Z=Object.assign({},D.commandsMap);Z[Y]=R;D=Object.assign({},D,{commandsMap:Z})}return D;case "RESET_COMMAND_MAP":return Object.assign({},D,{commandsMap:{}});default:return D}};
Bt$=function(D,Y){D=D===void 0?Q89:D;switch(Y.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},D,{guideIsExpanded:Y.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},D,{scrollAtTop:Y.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},D,{guideIsVisibleButNotPersistent:Y.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},D,{miniplayerIsActive:Y.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},D,{singleOptionSurveyIsActive:Y.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},D,{slimlineSurveyRatingSelectedIndex:Y.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},D,{richGridMiniMode:Y.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},D,{richGridItemsPerRow:Y.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},D,{richGridSlimItemsPerRow:Y.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},D,{richGridContainerWidth:Y.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},D,{richGridStyle:Y.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:Y.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},D,{inlinePreviewIsActive:Y.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},D,{inlinePreviewIsEnabled:Y.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},D,{darkModeIsEnabled:Y.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
D,{miniplayerPlaybackState:Y.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},D,{tabGesturesIsActive:Y.payload});case "SET_ONLINE_STATUS":return Object.assign({},D,{isOnline:Y.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},D,{chipBarIsSticky:Y.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},D,{frostedGlassMode:Y.payload});default:return D}};
EZU=function(D,Y){D=D===void 0?psr:D;switch(Y.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},D,{transcription:Y.payload});case "SET_OVERLAY_STATE":return Object.assign({},D,{overlay:Y.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return D}};
kVi=function(){return GK(Object.assign({},{continuation:gZr,download:$Q9,reportChannelAbuse:vtl,share:otM,talkToRecs:bOl,ui:Bt$,voiceSearch:EZU,watch:yVM,ypc:NHl,shorts:lb5,radioButtonGroup:PB5,collabInviteLink:HcM},JVy))};
huy=function(){return _.f("web_player_entities_middleware")?new cU(kVi(),[UQ$,K$U]):new cU(kVi(),[UQ$])};
_.Dl=function(){L$n||(L$n=huy());return L$n};
mQ5=function(D,Y,R){if(D.length)return{titleText:_.tu(Y!=null?Y:_.fX("DOWNLOADS",void 0,"Downloads")),contents:D.map(function(Z){var t=Z.videoEntity;Z={videoId:t.videoId,title:sM(t.title),shortBylineText:sM(Z.channelEntity.title),thumbnail:t.thumbnail};var X=t.videoId?xx(_.Dl().getState(),t.videoId):0;t.videoId&&R?Z.navigationEndpoint=_.ZQ(t.videoId,R,void 0,void 0,X):t.videoId&&(Z.navigationEndpoint=P_S(t.videoId,X,t.lengthSeconds));t.lengthSeconds&&(Z.thumbnailOverlays=K0r(t.lengthSeconds,X));return{playlistPanelVideoRenderer:Z}}),
totalVideos:D.length}};
qcb=function(D){return(D=(0,_.y7.getValueByKeys)(D,"playlistId"))?{playlistId:D}:null};
HOr=function(){return{}};
xQy=function(D,Y){return new _.zz(function(R,Z){D.then(function(t){if(t){if(t=Y(t))return R(t);Z()}},Z)})};
Pul=function(D){var Y,R,Z,t=(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.autoplay)==null?void 0:Z.autoplay,X,M,W;Y=(X=D.contents)==null?void 0:(M=X.twoColumnWatchNextResults)==null?void 0:(W=M.playlist)==null?void 0:W.playlist;return t&&Y&&Y.playlistId?{rawResponse:D,autoplayRenderer:t,playlistPanelRenderer:Y,playlistId:Y.playlistId}:null};
BHi=function(D){var Y=Y===void 0?"UNKNOWN_INTERFACE":Y;if(D.length===1)return D[0];var R=Q$n[Y];if(R){R=new RegExp(R);for(var Z=_.a(D),t=Z.next();!t.done;t=Z.next())if(t=t.value,R.exec(t))return t}var X=[];Object.entries(Q$n).forEach(function(M){var W=_.a(M);M=W.next().value;W=W.next().value;Y!==M&&X.push(W)});
R=new RegExp(X.join("|"));D.sort(function(M,W){return M.length-W.length});
Z=_.a(D);for(t=Z.next();!t.done;t=Z.next())if(t=t.value,!R.exec(t))return t;return D[0]};
_.YI=function(D){return"/youtubei/v1/"+BHi(D)};
_.RQ=function(D){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:D}}}}};
_.Zl=function(D){return _.RQ(_.i0(D))};
pM9=function(D,Y){var R={mode:"NORMAL"};D&&(R.autoplayVideo=D.navigationEndpoint,R.nextButtonVideo=D.navigationEndpoint);Y&&(R.previousButtonVideo=Y.navigationEndpoint);return R};
dQo=function(D,Y,R){if(!R||!R.sets)return{sets:[pM9(D,Y)]};var Z=R.sets.find(function(M){return M.mode==="NORMAL"}),t=(0,_.y7.unsafeClone)(R);
if(!Z)return t.sets.push(pM9(D,Y)),t;if(!D)return R;Z=_.y7.getValueByKeys.apply(null,[Z].concat(_.oK(EtU)));var X=_.y7.getValueByKeys.apply(null,[D].concat(_.oK(gtU)));if(Z===X)return R;t.sets=t.sets.filter(function(M){return M.mode!=="NORMAL"});
t.sets.push(pM9(D,Y));return t};
iOU=function(D){return!!D.playlistPanelVideoRenderer&&!D.playlistPanelVideoRenderer.unplayableText};
OOM=function(D){return!!D.playlistPanelVideoRenderer&&!!D.playlistPanelVideoRenderer.title};
cVr=function(D,Y){if(Y.contents&&!(D>=Y.contents.length)&&(D=Y.contents.slice(D).find(iOU)))return D.playlistPanelVideoRenderer};
DDo=function(D,Y){if(Y.contents)return(Y=Y.contents.find(function(R){return!!R.playlistPanelVideoRenderer&&R.playlistPanelVideoRenderer.videoId===D}))?Y.playlistPanelVideoRenderer:void 0};
YYr=function(D,Y){return Y.contents?Y.contents.findIndex(function(R){return!!R.playlistPanelVideoRenderer&&R.playlistPanelVideoRenderer.videoId===D}):-1};
RNU=function(D,Y){return Y.contents?Y.contents.findIndex(function(R){return!!R.playlistPanelVideoRenderer&&R.playlistPanelVideoRenderer.playlistSetVideoId===D}):-1};
ZSU=function(D,Y){D.contents&&Y!==-1&&D.contents.splice(Y,1).length===1&&D.totalVideos!==void 0&&(--D.totalVideos,delete D.videoCountText)};
_.t5$=function(D){var Y=[];if(!D||!D.contents)return Y;D=_.a(D.contents);for(var R=D.next();!R.done;R=D.next())R=R.value,R.playlistPanelVideoRenderer&&R.playlistPanelVideoRenderer.videoId&&Y.push(R.playlistPanelVideoRenderer.videoId);return Y};
_.svn=function(D){if(D&&D.contents)return(D=D.contents.find(function(Y){return!!Y.playlistPanelVideoRenderer&&!!Y.playlistPanelVideoRenderer.selected})||D.contents[D.currentIndex])?D.playlistPanelVideoRenderer:void 0};
XHy=function(D,Y,R,Z,t,X,M){t=t===void 0?!1:t;X=X===void 0?!1:X;M=M===void 0?!1:M;if(D.contents&&D.contents.length!==0){Z&&(D.contents=D.contents.filter(Z));Z=D.contents.length;for(var W=0;W<Z;W++){var z=D.contents[W].playlistPanelVideoRenderer;z&&(W===Y?(X&&delete z.menu,z.indexText=_.i0("\u25b6")):t||D.isInfinite||z.indexText===void 0?delete z.indexText:z.indexText=_.i0((W+1+R).toString()))}D.currentIndex=Y+R;M&&(delete D.videoCountText,D.totalVideos=Z)}};
_.t6=function(D){D=u8U(D);if(D){var Y=D.length;var R=-43%Y;R<0&&(R=Y+R);D=D.slice(Y-R)+D.slice(0,Y-R)}else D="";R="";for(Y=0;Y<D.length&&D[Y]!==a6y;Y++)R+=D[Y];return R};
_.M5$=function(D,Y){var R=document.body;Y=Y===void 0?function(W){return W}:Y;
var Z,t=null;D=_.a(D);for(Z=D.next();!Z.done;Z=D.next()){var X=Z.value;Z="div";X[2]&&(Z=Y(X[2]));Z=document.createElement(Z);t||(t=Z);var M=X[0];X=X[1];M&&(Z.id=Y(M));if(X)for(X=_.a(X),M=X.next();!M.done;M=X.next())Z.classList.add(Y(M.value));R.appendChild(Z);R=Z}return[t,R]};
CHi=function(D,Y){for(var R="",Z=0;Z<Y;Z++)R+=D.charAt(Math.floor(Math.random()*D.length));return R};
s$=function(D){return CHi("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",D)};
X9=function(D){return CHi("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",D)};
uX=function(D){return CHi("0123456789",D)};
aQ=function(){var D=performance.now(),Y=new Date;var R="2."+Y.getFullYear()+String(Y.getMonth()+1).padStart(2,"0")+String(Y.getDate()).padStart(2,"0");for(var Z,t=Math.floor(Math.random()*11)+15,X=[],M=0;M<t;M++)X.push(Math.floor(Math.random()*26476865)+24547720);Z=X.join(",");var W=s$(10),z=s$(100),I=s$(102),F=s$(106),G=s$(108),V=s$(11),e=s$(1140),r=s$(123),l=s$(14),U=s$(16),K=s$(1900),H=s$(23),c=s$(26),Q=s$(34),E=s$(397),B=s$(44),O=s$(5),Wo=s$(72),Sb=s$(74),VU=s$(75),AS=s$(88),nM=s$(91),Ho="rr5---sn-q4flrne7 rr4---sn-5hne6nzd rr1---sn-q4fl6nz6 rr4---sn-q4fzene7 rr1---sn-q4flrnle rr2---sn-5hne6nz6 rr4---sn-5hnednsz rr3---sn-q4fl6nsk rr3---sn-5hneknek rr5---sn-5hne6nsr rr4---sn-hgn7rnls rr2---sn-q4fl6nz6 rr4---sn-q4fl6nd6 rr2---sn-hgn7ynek rr1---sn-q4fl6nsk rr1---sn-q4fl6nde rr1---sn-q4fzen7e rr1---sn-5hne6nzs rr1---sn-t0a7lnee rr1---sn-4g5lznes".split(" ");
var KM=Ho[Math.floor(Math.random()*Ho.length)];var Xb=(new Date("2010-01-01")).getTime();var kE=(new Date(Xb+Math.random()*((new Date).getTime()-Xb))).toISOString().split("T")[0];for(var SD,co=[],GE=0;GE<4;GE++)co.push(Math.floor(Math.random()*100));SD=co.join(".");var TE=Number(uX(5)),yV=Number(uX(6)),vu=Number(uX(7)),dz=Number(uX(9)),sy=uX(1),D_=uX(10),fL=uX(16),zT=uX(19),eD=uX(2),YK=uX(20),RK=uX(21),Dp=uX(3),az=uX(4),EL=uX(5),FE=uX(6),v4=uX(7),oz=uX(8),e0=uX(9);var Cj=CHi("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var j0=[X9(5),X9(5),X9(5)].join("%2C"),oI=[uX(3),uX(5),uX(5)].join("%2C"),eY=X9(0),H4=X9(1),mh=X9(10),QI=X9(108),aJ=X9(11),ZO=X9(12),TI=X9(13),E1=X9(14),vD=X9(15),ch=X9(16),U9=X9(17),ol=X9(18),hS=X9(19),QU=X9(2),Iz=X9(20),S0=X9(22),yB=X9(23),wb=X9(24),nL=X9(266),A1=X9(3),kK=X9(30),IJ=X9(34),Fb=X9(35),AZ=X9(36),tT=X9(4),hf=X9(40),lM=X9(43),KI=X9(47),il=X9(5),aI=X9(6),IU=X9(7),Bc=X9(75),pM=X9(8),GT=X9(80),lk=X9(9),uk="https://www."+X9(12)+".com",M1={},Q7={},kh={},qI={},fH={},CT={},Wn={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:Z}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:R},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+X9(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:R},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Z}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:RK+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+X9(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:hf,ypcGetOfflineUpsellEndpoint:{params:GT}},trackingParams:Fb+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&cnr="+eD+"&ratebypass=yes&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&c=WEB&txp="+v4+"&n="+U+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:yV,width:640,height:360,lastModified:fL,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v4,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+oI+"&mn="+
j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&cnr="+eD+"&ratebypass=yes&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&c=WEB&txp="+v4+"&n="+U+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+QI+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:yV,width:1280,
height:720,lastModified:fL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v4,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+oI+"&mn="+j0+"&ms="+
j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+e0+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:vu,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:e0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:vu,approxDurationMs:v4},{itag:248,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+oI+"&mn="+j0+"&ms="+j0+"&mv="+
H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+e0+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:vu,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:e0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:399,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+e0+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:vu,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:e0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:vu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:136,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+e0+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:vu,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:e0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:yV,approxDurationMs:v4},{itag:247,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+oI+"&mn="+
j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+e0+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:vu,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:e0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:398,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+e0+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:vu,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:e0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:135,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:yV,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:yV,approxDurationMs:v4},{itag:244,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+oI+"&mn="+
j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+QI+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:yV,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:397,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:yV,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:134,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:yV,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:yV,highReplication:!0,approxDurationMs:v4},{itag:243,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:yV,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:396,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:yV,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:133,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:yV,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:yV,approxDurationMs:v4},{itag:242,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+oI+"&mn="+
j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:yV,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:395,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:yV,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:yV,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:160,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:yV,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:TE,approxDurationMs:v4},{itag:278,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+oI+"&mn="+
j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/webm; codecs="vp9"',bitrate:yV,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:TE,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:394,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&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="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=video%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:TE,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:TE,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:v4},{itag:140,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=audio%2Fmp4&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:yV,
initRange:{start:"0",end:"631"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:yV,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v4,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+
eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=audio%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+v4+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/webm; codecs="opus"',bitrate:TE,initRange:{start:"0",end:"265"},indexRange:{start:Dp,
end:az},lastModified:fL,contentLength:v4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:TE,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=audio%2Fwebm&ns="+
wb+"&gir="+A1+"&clen="+v4+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/webm; codecs="opus"',bitrate:TE,initRange:{start:"0",end:"265"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:v4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:TE,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:v4,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+KM+".googlevideo.com/videoplayback?expire="+D_+"&ei="+H+"&ip="+SD+"&id=o-AF"+lM+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+oI+"&mn="+j0+"&ms="+j0+"&mv="+H4+"&mvi="+sy+"&pl="+eD+"&initcwndbps="+v4+"&siu="+sy+"&spc="+B+"&vprv="+sy+"&svpuc="+sy+"&mime=audio%2Fwebm&ns="+wb+"&gir="+A1+"&clen="+oz+"&dur="+oz+"&lmt="+fL+"&mt="+D_+"&fvip=3&keepalive="+A1+"&c=WEB&txp="+
v4+"&n="+ch+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+G,mimeType:'audio/webm; codecs="opus"',bitrate:yV,initRange:{start:"0",end:"265"},indexRange:{start:Dp,end:az},lastModified:fL,contentLength:oz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:yV,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:v4,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="+e0+"&docid="+V+"&ei="+H+"&feature="+W+"&fexp="+eY+"&ns="+QU+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+H4+"&el="+mh+"&len="+az+"&of="+S0+
"&uga="+eD+"&vm="+nL},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+e0+"&docid="+V+"&ei="+H+"&feature="+W+"&fexp="+eY+"&ns="+QU+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+H4+"&el="+mh+"&len="+az+"&of="+S0+"&uga="+eD+"&vm="+nL},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+e0+"&docid="+V+"&ei="+H+"&feature="+W+"&fexp="+eY+"&ns="+QU+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
H4+"&el="+mh+"&len="+az+"&of="+S0+"&uga="+eD+"&vm="+nL},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+H+"&m="+AS+"&oid="+S0+"&plid="+U+"&pltype="+IU+"&ptchn="+S0+"&ptk="+l+"&video_id="+V},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+e0+"&docid="+V+"&ei="+H+"&event="+E1+"&feature="+W+"&fexp="+eY+"&ns="+QU+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+H4},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+V+"&ei="+H+"&feature="+
W+"&len="+az+"&ns="+QU+"&plid="+U+"&ver="+sy,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+V+"&caps="+A1+"&opi="+e0+"&xoaf="+sy+"&hl="+QU+"&ip="+SD+"&ipbits="+sy+"&expire="+D_+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+SD+"&key="+A1+"&lang="+O,name:{simpleText:hS},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+V+"&caps="+A1+"&opi="+e0+"&xoaf="+sy+"&hl="+QU+"&ip="+SD+"&ipbits="+sy+"&expire="+D_+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+SD+"&key="+A1+"&kind="+A1+"&lang="+QU,name:{simpleText:U9},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:aJ,title:TI,lengthSeconds:"1155",keywords:[ZO,ol,lk,U9],
channelId:wb,isOwnerViewing:!1,shortDescription:il,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+IJ,width:168,height:94},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+IJ,width:196,height:110},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+Q,width:246,height:138},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+Q,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
V+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:v4,author:TI,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:v4,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+S0+"/featured_channel.jpg?v="+pM,width:40,height:40}]},trackingParams:Fb+"=",navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"/channel/"+wb,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:wb}},channelName:TI,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:vD}]},subscribed:!1,enabled:!0,type:"FREE",channelId:wb,showPreferences:!1,subscribedButtonText:{runs:[{text:IU}]},unsubscribedButtonText:{runs:[{text:vD}]},trackingParams:Fb+"=",unsubscribeButtonText:{runs:[{text:il}]},serviceEndpoints:[{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[wb],params:pM}},{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:hf,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Fb+"=",dialogMessages:[{runs:[{text:TI},{text:Iz},{text:U9}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:hS}]},serviceEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[wb],params:pM}},accessibility:{label:aJ},trackingParams:Fb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:lk}]},accessibility:{label:il},trackingParams:Fb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:E1}},unsubscribeAccessibility:{accessibilityData:{label:mh}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:oz},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[wb],params:pM}},unsubscribeCommand:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[wb],params:pM}},addToWatchLaterCommand:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:aJ,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:aJ}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+V+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+AZ+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
V+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+aJ,width:1280,height:720},title:{simpleText:U9},description:{simpleText:pM},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ZO,externalChannelId:wb,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:v4,category:"Travel & Events",publishDate:kE,ownerChannelName:TI,uploadDate:kE}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:mh},trackingParams:Fb+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:hf,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Fb+"="}}],headerText:{simpleText:vD},icon:{infoCardIconRenderer:{trackingParams:Fb+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Fb+"="}},trackingParams:Fb+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Fb+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+aJ+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Cj,interpreterSafeUrl:(M1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+kK+".js",M1),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ch},{text:U9,bold:!0}]},endpoint:{clickTrackingParams:hf,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:Fb+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:tT}]},actionButton:{buttonRenderer:{text:{runs:[{text:ol}]},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+V,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
V,target:"TARGET_NEW_WINDOW"}},trackingParams:Fb+"="}},trackingParams:Fb+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Wo+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Wo+"=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:v4,endMs:v4,title:{accessibility:{accessibilityData:{label:aI}},simpleText:aJ},metadata:{simpleText:IU},callToAction:{simpleText:U9},dismiss:{simpleText:aJ},endpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"/channel/"+wb,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:wb}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:lk}]},subscribed:!1,enabled:!0,type:"FREE",channelId:wb,showPreferences:!1,
subscribedButtonText:{runs:[{text:IU}]},unsubscribedButtonText:{runs:[{text:mh}]},trackingParams:Fb+"=",unsubscribeButtonText:{runs:[{text:hS}]},serviceEndpoints:[{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[wb],params:pM}},{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:hf,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Fb+
"=",dialogMessages:[{runs:[{text:tT},{text:TI},{text:Iz}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vD}]},serviceEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[wb],params:pM}},accessibility:{label:aI},trackingParams:Fb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Iz}]},
accessibility:{label:vD},trackingParams:Fb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:IU}},unsubscribeAccessibility:{accessibilityData:{label:TI}}}},trackingParams:Fb+"=",isSubscribe:!0,id:YK}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+Q,width:168,height:94},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+IJ,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+Q,width:246,height:138},{url:"https://i.ytimg.com/vi/"+V+"/hqdefault.jpg?sqp=-oaymwE"+AZ+"G&rs="+Q,width:336,height:188},{url:"https://i.ytimg.com/vi/"+V+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:v4,endMs:v4,title:{accessibility:{accessibilityData:{label:il}},simpleText:pM},metadata:{simpleText:aI},endpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
aJ,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:aJ,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+KM+".googlevideo.com/videoplayback?source=youtube&oeis="+sy+"&c=WEB&oad="+az+"&ovd="+az+"&oaad="+EL+"&oavd="+EL+"&ocs="+Dp+"&oewis="+sy+"&oputc="+sy+"&ofpcc="+sy+"&siu="+sy+"&msp="+sy+"&odepv="+sy+
"&id=o-AF"+lM+"&ip="+SD+"&initcwndbps="+v4+"&mt="+D_+"&oweuc="+eY}}}}},trackingParams:Fb+"=",id:YK,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:mh}},simpleText:Iz},style:"DEFAULT"}}]}}],startMs:v4,trackingParams:Fb+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:sy,offsetEndMilliseconds:EL},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";ord="+D_+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+Dp+";dc_sk="+sy+";dc_ctype="+eD+";dc_ref=http://www.youtube.com/video/"+aJ+";dc_pubid="+sy+";dc_btype=23?gclid="+nM+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+sy+"&ns="+sy+"&event="+sy+"&device="+sy+"&content_v="+V+"&el="+mh+"&ei="+H+"&devicever="+R+"&bti="+v4+"&format="+FE+"&break_type="+sy+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+sy+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+SD+"&slot_pos="+sy+"&slot_len="+sy+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+oI+"&ad_len="+EL+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
aJ+"&aqi="+H+"&ad_rmp="+sy+"&sli="+sy}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+
";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+v4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&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"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&ctype="+Dp+"&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"+
e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_engaged_view&ctype="+Dp+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+zT+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+yB+"&ad_cpn=[AD_CPN]&id="+aI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aI+"&dc_pubid="+sy+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+yB+"&ad_cpn=[AD_CPN]&id="+aI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+sy},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aI+"&avm="+sy+"&dc_pubid="+sy+"&dc_exteid="+
YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&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="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
I+"&sig="+yB+"&ad_cpn=[AD_CPN]&id="+aI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+sy},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aI+"&dc_pubid="+sy+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:hf,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+
Dp+"&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/"+V+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Fb+"="},trackingParams:Fb+
"=",templatedCountdown:{templatedAdText:{text:pM,isTemplated:!0,trackingParams:Fb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:TI,isTemplated:!1,trackingParams:Fb+"="},trackingParams:Fb+"="}},trackingParams:Fb+"=",skipOffsetMilliseconds:5E3}},trackingParams:Fb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Iz},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Fb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:U9,isTemplated:!1,trackingParams:Fb+"="},trackingParams:Fb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:aI,isTemplated:!0,trackingParams:Fb+"="}},trackingParams:Fb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:hf,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Q7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+QU+"&origin=www.youtube.com&ata_theme="+tT,Q7),trackingParams:Fb+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Fb+"="}},hoverText:{runs:[{text:ZO}]},trackingParams:Fb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KI+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Fb+"="},headline:{text:IU,isTemplated:!1,trackingParams:Fb+"="},description:{text:mh,
trackingParams:Fb+"="},actionButton:{buttonRenderer:{text:{simpleText:Iz},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Fb+"="}},startMs:sy,trackingParams:Fb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:il},elementId:E1}},elementId:lk,trackingParams:Fb+"=",legacyInfoCardVastExtension:aJ,sodarExtensionData:{siub:aI,bgub:Iz,scs:hS,bgp:aJ},externalVideoId:aJ,adLayoutLoggingData:{serializedAdServingDataEntry:aI},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KI+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Fb+"="},
headline:{text:Iz,isTemplated:!1,trackingParams:Fb+"="},description:{text:il,isTemplated:!1,trackingParams:Fb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:aJ},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+
YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+
sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Fb+"="}},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+
e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+
r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Fb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Fb+"="},abandonCommands:{commands:[{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&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="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+
sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:hf,commandExecutorCommand:{commands:[{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:ZO,isTemplated:!1,trackingParams:Fb+
"="},trackingParams:Fb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ch},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+v4+";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="+e0+";dc_trk_cid="+e0+";ord="+D_+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+Dp+";dc_sk="+sy+";dc_ctype="+eD+";dc_ref=http://www.youtube.com/video/"+aJ+";dc_pubid="+sy+";dc_btype=23?gclid="+nM+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+sy+"&ns="+sy+"&event="+sy+"&device="+sy+"&content_v="+V+"&el="+mh+"&ei="+H+"&devicever="+R+"&bti="+v4+"&format="+FE+"&break_type="+sy+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+sy+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+SD+"&slot_pos="+sy+"&slot_len="+sy+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
oI+"&ad_len="+EL+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+aJ+"&aqi="+H+"&ad_rmp="+sy+"&sli="+sy}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+
c+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+v4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&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"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&ctype="+Dp+"&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"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_engaged_view&ctype="+Dp+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+yB+"&ad_cpn=[AD_CPN]&id="+
aI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aI+"&dc_pubid="+sy+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+
"&sig="+yB+"&ad_cpn=[AD_CPN]&id="+aI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+sy},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aI+"&avm="+sy+"&dc_pubid="+sy+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&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="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+yB+"&ad_cpn=[AD_CPN]&id="+aI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+sy},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+aI+"&dc_pubid="+sy+"&dc_exteid="+YK+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+FE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+
Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&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/"+V+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Fb+"="},trackingParams:Fb+"=",templatedCountdown:{templatedAdText:{text:Iz,isTemplated:!0,trackingParams:Fb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:pM,isTemplated:!1,trackingParams:Fb+"="},trackingParams:Fb+"="}},
trackingParams:Fb+"=",skipOffsetMilliseconds:5E3}},trackingParams:Fb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:aJ},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ch,isTemplated:!1,trackingParams:Fb+"="},trackingParams:Fb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Iz,
isTemplated:!0,trackingParams:Fb+"="}},trackingParams:Fb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:hf,openPopupAction:{popup:{aboutThisAdRenderer:{url:(kh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+QU+"&origin=www.youtube.com&ata_theme="+tT,kh),trackingParams:Fb+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Fb+"="}},hoverText:{runs:[{text:pM}]},trackingParams:Fb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Sb+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Fb+"="},headline:{text:il,isTemplated:!1,trackingParams:Fb+"="},description:{text:hS,trackingParams:Fb+"="},actionButton:{buttonRenderer:{text:{simpleText:ch},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Fb+"="}},startMs:sy,trackingParams:Fb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ch},elementId:IU}},elementId:il,trackingParams:Fb+"=",legacyInfoCardVastExtension:vD,sodarExtensionData:{siub:U9,bgub:pM,scs:E1,bgp:IU},externalVideoId:aJ,adLayoutLoggingData:{serializedAdServingDataEntry:lk},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Sb+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Fb+"="},headline:{text:lk,
isTemplated:!1,trackingParams:Fb+"="},description:{text:il,isTemplated:!1,trackingParams:Fb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:IU},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Fb+"="}},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+
sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Fb+"="},abandonCommands:{commands:[{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&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="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+eD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:hf,commandExecutorCommand:{commands:[{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:lk,isTemplated:!1,trackingParams:Fb+"="},trackingParams:Fb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:aI},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+sy+";dc_exteid="+YK+";met="+sy+";ecn"+sy+"="+sy+";etm1="+sy+";eid1="+
v4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:E1}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:EL,offsetEndMilliseconds:FE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+eD+"&token=ALHj"+E+"&index="+sy+"&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="+R+"&m_pos_ms="+EL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:FE,offsetEndMilliseconds:FE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+Dp+"&token=ALHj"+E+"&index="+sy+"&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="+
R+"&m_pos_ms="+FE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:il}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FE,offsetEndMilliseconds:FE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+Dp+"&token=ALHj"+E+"&index="+sy+"&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="+
R+"&m_pos_ms="+FE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FE,offsetEndMilliseconds:FE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+Dp+"&token=ALHj"+E+"&index="+sy+"&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="+
R+"&m_pos_ms="+FE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FE,offsetEndMilliseconds:eD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+Dp+"&token=ALHj"+E+"&index="+sy+"&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="+
R+"&m_pos_ms="+FE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tT}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:eD,offsetEndMilliseconds:eD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+eD+"&token=ALHj"+E+"&index="+sy+"&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="+
R+"&m_pos_ms="+eD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:il}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Iz,isTemplated:!1,trackingParams:Fb+"="},description:{text:tT,isTemplated:!1,trackingParams:Fb+"="},actionButton:{buttonRenderer:{text:{simpleText:mh},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KI+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Fb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VU+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Fb+"="},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+
";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:hf,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+QU+"&origin=www.youtube.com&ata_theme="+tT,qI),trackingParams:Fb+"="}},popupType:"DIALOG"}},trackingParams:Fb+"="}},hoverText:{runs:[{text:IU}]},trackingParams:Fb+"="}},adVideoId:aJ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:il},associatedCompositePlayerBytesLayoutId:ch}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:ch}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ZO,isTemplated:!1,trackingParams:Fb+"="},description:{text:il,isTemplated:!1,trackingParams:Fb+"="},actionButton:{buttonRenderer:{text:{simpleText:vD},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+
r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Fb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Sb+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Fb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Bc+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Fb+"="},navigationEndpoint:{clickTrackingParams:hf,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+
sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:hf,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+QU+"&origin=www.youtube.com&ata_theme="+tT,fH),trackingParams:Fb+"="}},popupType:"DIALOG"}},trackingParams:Fb+"="}},
hoverText:{runs:[{text:pM}]},trackingParams:Fb+"="}},adVideoId:aJ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+aJ+"&cid="+c+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ch},associatedCompositePlayerBytesLayoutId:ch}},adSlotLoggingData:{serializedSlotAdServingDataEntry:U9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:E1,
isTemplated:!1,trackingParams:Fb+"="},description:{text:hS,isTemplated:!1,trackingParams:Fb+"="},actionButton:{buttonRenderer:{text:{simpleText:ol},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+
eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+
Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Fb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KI+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Fb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+VU+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Fb+
"="},navigationEndpoint:{clickTrackingParams:hf,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+e0+";dc_trk_cid="+e0+";dc_dbm_token="+G+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+sy+";ord="+e0+";dc_rui="+sy+";dc_exteid="+YK+";dc_av="+sy+";dc_sk="+sy+";dc_ctype="+eD+";dc_pubid="+sy+";dc_btype=3?gclid="+nM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+e+"____________"+r+"AxAA&ase=2&num="+sy+"&cid="+c+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+uk+"&label=video_click_to_advertiser_site&ctype="+Dp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Fb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:hf,openPopupAction:{popup:{aboutThisAdRenderer:{url:(CT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+K+"&hl="+QU+"&origin=www.youtube.com&ata_theme="+tT,CT),trackingParams:Fb+"="}},popupType:"DIALOG"}},trackingParams:Fb+
"="}},hoverText:{runs:[{text:pM}]},trackingParams:Fb+"="}},adVideoId:aJ,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+e+"____________"+r+"AxAA&sigh="+V+"&cid="+c+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:vD},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ch}},adSlotLoggingData:{serializedSlotAdServingDataEntry:U9}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:kK,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:kK,command:{innertubeCommand:{clickTrackingParams:hf,ypcGetOfflineUpsellEndpoint:{params:GT}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Fb+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:D_,nanos:dz}}}},Kci=JSON.stringify(Wn),ze=performance.now()-D;return{objectRepresentation:Wn,jsonRepresentation:Kci,generationTime:ze}};
Wbj=function(D,Y){if(D===Y)return!0;if(!D||!Y||typeof D!==typeof Y)return!1;if(D instanceof Array&&Y instanceof Array){if(D.length!==Y.length)return!1;for(var R=0;R<D.length;R++)if(!Wbj(D[R],Y[R]))return!1;return!0}if(typeof D==="object"&&typeof Y==="object"&&D&&Y){for(R in D)if(!(R in Y&&Wbj(D[R],Y[R])))return!1;for(var Z in Y)if(!(Z in D))return!1;return!0}return!1};
_.Cn=function(){if(!M3){M3=new z_(new zNU);var D=_.ZH("client_streamz_web_flush_count",-1);D!==-1&&(M3.invocationLimit=D)}return M3};
WG=function(D,Y,R,Z){if(D===Y)return!0;if(Array.isArray(D)&&Array.isArray(Y)){if(D.length!==Y.length)return!1;for(var t=0;t<D.length;t++)if(!WG(D[t],Y[t],R,Z))return!1;return!0}if(D instanceof Set||Y instanceof Set){if(D instanceof Set&&Y instanceof Set){if(D.size!==Y.size)return!1;Z=_.a(D.values());for(t=Z.next();!t.done;t=Z.next())if(!Y.has(t.value))return!1;return!0}return!1}if(D instanceof Function){if(Z)return!0;D.name===""&&_.Nb(Error("Hf"),"ERROR");return!1}if(D instanceof Date&&Y instanceof
Date)return D.getTime()===Y.getTime();if(D instanceof Object&&Y instanceof Object){if(SYy(D)&&SYy(Y))try{return D.equals(Y)}catch(M){_.Nb(Error("If`"+M),"ERROR")}t=Object.getOwnPropertyNames(D).filter(function(M){return R?D[M]!==void 0:!0});
var X=Object.getOwnPropertyNames(Y).filter(function(M){return R?Y[M]!==void 0:!0});
if(t.length!==X.length)return!1;t=_.a(t);for(X=t.next();!X.done;X=t.next())if(X=X.value,!WG(D[X],Y[X],R,Z))return!1;return!0}return!1};
SYy=function(D){D=Object.getPrototypeOf(D).equals;return D instanceof Function&&D.length===1};
_.I6o=function(){return _.C(function(D){if(D.nextAddress==1)return TMl!==2?D.jumpTo(2):D.yield(jvj(),3);D.nextAddress!=2&&(TMl=D.yieldResult);return D.return(TMl)})};
_.V5i=function(){return _.C(function(D){if(D.nextAddress==1)return _.f("ab_pl_man")?FbU!==2?D.jumpTo(2):D.yield(G2U(),3):D.return(1);D.nextAddress!=2&&(FbU=D.yieldResult);return D.return(FbU)})};
AUn=function(){return _.C(function(D){if(D.nextAddress==1)return _.f("ab_fk_sk_cl")?f6i!==2?D.jumpTo(2):D.yield(eNM(),3):D.return(1);D.nextAddress!=2&&(f6i=D.yieldResult);return D.return(f6i)})};
_.wHl=function(){return _.C(function(D){if(D.nextAddress==1)return _.f("ab_det_apb_b")?n$j!==2?D.jumpTo(2):D.yield(rU9(),3):D.return(1);D.nextAddress!=2&&(n$j=D.yieldResult);return D.return(n$j)})};
o$b=function(){var D;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(Promise.all([_.I6o(),_.wHl(),_.V5i(),AUn()]),2);if(Y.nextAddress!=3)return $DU()?Y.return(!0):Y.yield(_.v$i(),3);D=Y.yieldResult;return Y.return(D===0)})};
$DU=function(){var D=!1,Y=function(R,Z){bS5.increment(Z,R);R===0&&(D=!0)};
Y(_.yUU(),"j.s_");Y(TMl,"f.i_");Y(n$j,"a.b_");Y(FbU,"p.m_");Y(f6i,"i.f_");NMb===2&&(NMb=_.l6l(JUj));Y(NMb,"e.h_");_.f("ks_det_gpbl")||Y(_.k2y(),"p.i_");_.f("ks_get_o_pp")||Y(_.UDn(),"g.o_");_.f("ab_deg_unex_thr")||Y(_.Kby(),"a.o_");Y(hNM,"s.t_");_.f("ab_det_sc_inj_enf")&&Y(_.Lby(),"s.i_");Y(mDi,"d.p_");Y(_.qY5(_.za),"o.p_");Y(_.HSl()===0?0:_.xDo(),"o.a_");return _.f("debug_sk_em_precheck")?!0:D};
QvS=function(){var D=[].concat(_.oK(PHU));try{var Y=aQ();D.push({jsonRepresentation:Y.jsonRepresentation,objectRepresentation:Y.objectRepresentation})}catch(R){D=[].concat(_.oK(PHU))}return D};
BMo=function(){var D=["adPlacements","adSlots"];try{return D.filter(function(){return!0}).length!==D.length?0:1}catch(Y){return 0}};
_.UDn=function(){if(BMo()===0)return 0;var D=aQ(),Y=D.objectRepresentation,R=(0,_.y7.unsafeClone)(Y),Z=[];if(Y&&typeof Y==="object")for(var t in Y)Z.push(t);else return 4;D=D.objectRepresentation.adPlacements;if(!(D&&D.length>0))return 4;try{if(!Wbj(Z,Object.getOwnPropertyNames(Y)))return 0}catch(X){return 0}return Wbj(R,Y)?1:0};
_.qY5=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var Y=Object.getOwnPropertyNames(Object.prototype),R=0;R<D.length;R++)for(var Z=_.t6(D[R]),t=_.a(Y),X=t.next();!X.done;X=t.next())if(Z===X.value)return 0;return 1};
pHr=function(D){var Y=_.t6(D[1]);if(D[0]===null)return Y;D=D[0];for(var R={},Z=0;Z<D.length;Z++){var t=_.t6(D[Z]);if(Z===0)R[t]=Y;else{var X={};X[t]=R;R=X}}return R};
_.HSl=function(){for(var D=_.SI,Y=0;Y<D.length;Y++){var R=pHr(D[Y]),Z=[];Z.push(R);if(Z.length===0)return 0}return 1};
_.xDo=function(){for(var D=_.SI,Y={},R=0;R<D.length;Y={gUg:void 0},R++){var Z=[pHr(D[R])];Y.gUg=[];Z.forEach(function(t){return function(X){t.gUg[t.gUg.length]=X}}(Y));
if(Y.gUg.length===0)return 0}return 1};
_.yUU=function(){for(var D=_.a(QvS()),Y=D.next();!Y.done;Y=D.next()){var R=Y.value;Y=R.jsonRepresentation;R=R.objectRepresentation;try{var Z=JSON.parse(Y);if(!WG(Z,R,!1,!1))return 0}catch(t){return 0}}return 1};
_.Lby=function(){try{var D=_.ux("ab_det_sc_inj_val");D.length===1&&D[0]===""&&(D=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var Y=document.querySelectorAll("script"),R=_.a(Y),Z=R.next();!Z.done;Z=R.next())for(var t=Z.value,X=_.a(D),M=X.next();!M.done;M=X.next()){var W=M.value;Y=void 0;if((Y=t.textContent)==null?0:Y.includes(W))return 0}}catch(z){return 4}return 1};
_.v$i=function(){var D,Y,R,Z,t,X,M;return _.C(function(W){switch(W.nextAddress){case 1:_.SX(W,2),D=_.a(PHU),Y=D.next();case 4:if(Y.done)return W.return(1);Z=R=Y.value;t=Z.jsonRepresentation;X=Z.objectRepresentation;return W.yield((new Response(t,{status:200})).json(),7);case 7:M=W.yieldResult;if(!WG(M,X,!1,!1))return W.return(0);Y=D.next();W.jumpTo(4);break;case 2:return _.Gl(W),W.return(4)}})};
_.Kby=function(){try{btoa("abc")}catch(D){return 0}return 1};
jvj=function(){var D,Y,R,Z,t,X,M,W,z,I,F;return _.C(function(G){switch(G.nextAddress){case 1:_.SX(G,2),D=_.a(QvS()),Y=D.next();case 4:if(Y.done)return G.return(1);Z=R=Y.value;t=Z.jsonRepresentation;X=Z.objectRepresentation;M=btoa(t);W="data:application/json;base64,"+M;z=new Request(W);Object.defineProperty(z,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(z,"method",{get:function(){return"POST"}});
Object.defineProperty(z,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(z,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(z,"body",{get:function(){return new ReadableStream}});
return G.yield(fetch(z),7);case 7:return I=G.yieldResult,G.yield(I.json(),8);case 8:F=G.yieldResult;if(!WG(F,X,!1,!1))return G.return(0);Y=D.next();G.jumpTo(4);break;case 2:return _.Gl(G),G.return(4)}})};
_.l6l=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var Y=function(t){return _.t6(t)},R=2,Z=0;Z<D.length&&(R=_.E$j(_.M5$(D[Z],Y)),R!==0);Z++);
return R};
_.E$j=function(D){var Y=_.a(D);D=Y.next().value;Y=Y.next().value;try{var R=document.createElement("div");document.body.appendChild(R);var Z=getComputedStyle(R).display;document.body.removeChild(R);if(Z==="none")return 4;var t=getComputedStyle(Y).display==="none"?0:1;document.body.removeChild(D);return t}catch(X){return 4}};
eNM=function(){var D,Y,R;return _.C(function(Z){D=new _.Ta;Y=document.createElement("button");Y.classList.add("ytp-ad-skip-button");Y.style.opacity="0";Y.style.height="0px";Y.style.width="0px";Y.style.padding="0px";Y.style.border="none";R=function(){Y.parentElement&&Y.parentElement.removeChild(Y)};
Y.onclick=function(){D.resolve(0);R()};
document.body.appendChild(Y);setTimeout(function(){R();D.resolve(1)},50);
return Z.return(D.promise)})};
G2U=function(){var D,Y,R,Z,t,X,M;return _.C(function(W){D=new _.Ta;Y=document.createElement("ytd-player");try{document.body.prepend(Y)}catch(z){return W.return(4)}R=function(){Y.parentElement&&Y.parentElement.removeChild(Y)};
Y.getElementsByTagName("div").length>0?Z=Y.getElementsByTagName("div")[0]:(Z=document.createElement("div"),Y.appendChild(Z));t=document.createElement("div");Z.appendChild(t);X=document.createElement("video");M=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"});X.src=_.oJ(_.k7(M));X.ontimeupdate=function(){R();D.resolve(0)};
t.appendChild(X);X.classList.add("html5-main-video");setTimeout(function(){t.classList.add("ad-interrupting")},200);
setTimeout(function(){R();D.resolve(1)},5E3);
return W.return(D.promise)})};
g$5=function(D,Y){var R,Z;return _.C(function(t){switch(t.nextAddress){case 1:R=[],Z=0;case 2:if(!(Z<3)){t.jumpTo(4);break}return t.yield(fetch(D,{cache:"no-store",method:Y}).then(function(X){R.push(X.status)}).catch(function(){R.push(-1)}),3);
case 3:Z++;t.jumpTo(2);break;case 4:return t.return(R)}})};
dDU=function(D){return D.domainLookupStart===0&&D.domainLookupEnd===0&&D.connectStart===0&&D.connectEnd===0};
iSS=function(D,Y,R){R=R===void 0?"GET":R;var Z,t,X,M,W,z,I,F,G,V;return _.C(function(e){if(e.nextAddress==1)return e.yield(Promise.all([g$5(D,R),g$5(Y,R)]),2);Z=e.yieldResult;t=_.a(Z);X=t.next().value;M=t.next().value;W=X;z=M;if(Math.min.apply(Math,_.oK(z))!==Math.max.apply(Math,_.oK(z))||Math.min.apply(Math,_.oK(W))!==Math.max.apply(Math,_.oK(W)))return e.return(2);if(Math.min.apply(Math,_.oK(z))===Math.min.apply(Math,_.oK(W)))return e.return(1);F=(I=performance.getEntriesByName(D))==null?void 0:
I[0];V=(G=performance.getEntriesByName(Y))==null?void 0:G[0];return F&&V?dDU(V)?e.return(1):dDU(F)?e.return(0):e.return(1):e.return(2)})};
rU9=function(){var D;return _.C(function(Y){var R=[];var Z;var t,X,M;(t=Z=(t=aQ().objectRepresentation.streamingData)==null?void 0:(X=t.formats)==null?void 0:(M=X[0])==null?void 0:M.url)&&t&&!Z.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(t=t.replace("initcwndbps","ctier=L&initcwndbps"),t=t.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),Z={testUrl:t,baseUrl:Z,method:"GET"}):Z=void 0;Z&&R.push(Z);_.f("ab_net_tp_e")&&R.push({testUrl:_.ZU.location.origin+"/ad_companion",baseUrl:_.ZU.location.origin+
"/generate_204",method:"OPTIONS"});if(_.f("ad_net_pb_ab")){var W;b:{Z=/api\/stats\/ads/;var z,I,F,G;t=(W=aQ().objectRepresentation.adPlacements)==null?void 0:(z=W[0])==null?void 0:(I=z.adPlacementRenderer)==null?void 0:(F=I.renderer)==null?void 0:(G=F.linearAdSequenceRenderer)==null?void 0:G.linearAds;if(t!=null&&t.length&&(W=_.A(t[0],OSy))&&(W=W.pings,W!=null&&W.impressionPings))for(z=[].concat(_.oK(W.impressionPings)),W.progressPings&&(z=[].concat(_.oK(z),_.oK(W.progressPings))),W=_.a(z),z=W.next();!z.done;z=
W.next())if(z=z.value,z.baseUrl&&Z.test(z.baseUrl)){W=z.baseUrl.replace("https://www.youtube.com","");break b}W=void 0}W&&R.push({testUrl:_.ZU.location.origin+W,baseUrl:_.ZU.location.origin+"/feed/download",method:"GET"})}if(_.f("ad_net_pb_pbp")){var V;b:{W=/api\/stats\/qoe/;if(z=aQ().objectRepresentation.playbackTracking){I=[];I.push(z==null?void 0:(V=z.videostatsPlaybackUrl)==null?void 0:V.baseUrl);var e;I.push(z==null?void 0:(e=z.videostatsDelayplayUrl)==null?void 0:e.baseUrl);var r;I.push(z==
null?void 0:(r=z.videostatsWatchtimeUrl)==null?void 0:r.baseUrl);var l;I.push(z==null?void 0:(l=z.ptrackingUrl)==null?void 0:l.baseUrl);var U;I.push(z==null?void 0:(U=z.qoeUrl)==null?void 0:U.baseUrl);var K;I.push(z==null?void 0:(K=z.atrUrl)==null?void 0:K.baseUrl);V=_.a(I);for(e=V.next();!e.done;e=V.next())if((e=e.value)&&W.test(e)){V=e.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}V=void 0}V&&R.push({testUrl:_.ZU.location.origin+V,baseUrl:_.ZU.location.origin+
"/feed/download",method:"GET"})}R=R.length!==0?R[Math.floor(Math.random()*R.length)]:void 0;return(D=R)?Y.return(iSS(D.testUrl,D.baseUrl,D.method)):Y.return(4)})};
_.k2y=function(){if(_.ZU.n4K===void 0||_.ZU.n4K===null||typeof _.ZU.n4K!=="function")return 2;try{return _.ZU.n4K()===!0?0:1}catch(D){return 0}};
cUU=function(D){switch(D){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.qU(D,"unknown result type")}};
_.Df5=function(D,Y){var R=Number(_.JQ("CATSTAT",0));if(Y.ezz===void 0)return R;Y=Y.ezz;D=cUU(D);return R&~(3<<Y)|D<<Y};
YXj=function(D){var Y,R;if((D=(Y=D.auxiliaryUi)==null?void 0:(R=Y.messageRenderers)==null?void 0:R.bkaEnforcementMessageViewModel)&&D.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return D};
ZVS=function(){for(var D=_.a(Object.values(_.R8l)),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.isAsync&&Y.ezz&&_.l1("CATSTAT",_.Df5(2,Y))};
_.Vb=function(D,Y){D=_.jI("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",D);(Y===void 0?0:Y)?_.tmj(D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.F9(_.Ga(),D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
XVU=function(){if(!sXy){if(Polymer.Base){var D=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{D.apply(this,arguments)}catch(G){_.hQ(G)}};
var Y=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{Y.apply(this,arguments)}catch(G){_.hQ(G)}};
var R=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{R.apply(this,arguments)}catch(G){_.hQ(G)}};
var Z=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Z.apply(this,arguments)}catch(G){_.hQ(G)}};
var t=Polymer.Base._listen,X=new WeakMap;Polymer.Base._listen=function(G,V,e){var r=function(){try{e.apply(this,arguments)}catch(l){_.hQ(l)}};
X.set(e,r);t.call(this,G,V,r)};
var M=Polymer.Base._unlisten;Polymer.Base._unlisten=function(G,V,e){M.call(this,G,V,X.get(e))}}if(Polymer.Async){var W=Polymer.Async,z=W._atEndOfMicrotask;
W._atEndOfMicrotask=function(){try{z.apply(W,arguments)}catch(G){_.hQ(G)}}}if(Polymer.RenderStatus){var I=Polymer.RenderStatus,F=I.afterNextRender;
I.afterNextRender=function(G,V,e){F.call(I,G,function(){try{V.apply(this,arguments)}catch(r){_.hQ(r)}},e)}}sXy=!0}};
_.fn=function(D){var Y=D?_.zZ(D):"";if(Y){if(Y.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(Y.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(Y.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(Y.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(Y.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.f("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Y.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";Y=Y.toLowerCase();if(Y==="/")return"home";if(Y==="/channel_memberships")return"channel-memberships-shopfront";if(Y.indexOf("/feed/trending")===0)return"trending";if(Y.indexOf("/feed/explore")===0)return"explore";if(Y.indexOf("/live")===0)return"live";if(Y.indexOf("/results")===0)return"search";if(Y.indexOf("/sports")===0)return"sports";if(Y.indexOf("/fashion")===0||Y.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(Y))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(Y))return _.f("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Y.indexOf("/channel/")===0||Y.indexOf("/user/")===0||Y.indexOf("/gaming")===0||Y.indexOf("/post/")===0)return"channel";if(u1r(D))return"show";if(Y==="/playlist"||Y.indexOf("/playlist/")===0||Y==="/view_play_list"||Y.indexOf("/view_play_list/")===0||Y.indexOf("/show/")===0)return"playlist";if(Y==="/feed/history"||Y.indexOf("/feed/history/")===0)return"history";if(Y===
"/new")return"labs";if(Y==="/feed/subscriptions")return"subscriptions";if(Y.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(Y==="/history_controls")return"standalone";if(Y.indexOf("/account")===0||Y==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(Y.indexOf("/paid_memberships")===0||Y.indexOf("/refund")===0||Y.indexOf("/purchases")===0||Y.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(Y.indexOf("/product")===0)return"yts-products";if(Y.indexOf("/premium")===
0||Y.indexOf("/musicpremium")===0)return Y.indexOf("/premium/offers")===0||Y.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(Y==="/cart/checkout"||Y==="/cart")return"ypc-checkout";if(Y.indexOf("/feed/downloads")===0||Y.indexOf("/redeem")===0||Y.indexOf("/reporthistory")===0)return"browse";if(Y.indexOf("/hashtag")===0)return"hashtag-landing-page";if(Y.indexOf("/handle")===0)return"handle";if(Y.indexOf("/source")===0)return"audio-pivot";if(Y.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(Y.indexOf("/playables")===0)return"playables";if(Y.indexOf("/create/live/join")===0)return"open-in-app";if(Y.indexOf("/shorts")===0)return"shorts";if(Y.indexOf("/feed/channels")===0)return"subscriptions-channels";(Y=D?_.zZ(D):"")&&Y.indexOf("/watch")===0&&_.f("web_watch_enable_learning_journey")?(D=_.QL(D),D=!!D.list&&D.list.indexOf("LJPP")===0):D=!1;if(D)return"learning_journey_watch"}};
_.eI=function(D){var Y,R;(D=(R=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:R.url)&&(Y=_.fn(D));return Y};
u1r=function(D){var Y=D?_.zZ(D):"";if(!Y)return!1;Y=Y.toLowerCase();return Y.indexOf("/show/")===0||Y.indexOf("/playlist")===0&&(D=_.QL(D),D.list&&D.list.indexOf("EL")===0)?!0:!1};
r$=function(D){var Y="unknown",R;var Z=((R=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:R.webPageType)||"";Z?(R=Z.toLowerCase(),R.startsWith("web_page_type_")&&(R=R.slice(14))):R=Z;R&&aub[R.toUpperCase()]?Y=aub[R.toUpperCase()]:_.A(D,_.A6)||_.A(D,Mml)?Y="browse":_.A(D,_.nn)?Y="search":_.A(D,_.Od)&&(Y="watch");Y==="watch"&&_.eI(D||null)==="learning_journey_watch"&&(Y="learning_journey_watch");Y==="unknown"&&_.Jk(Error("Kf`"+JSON.stringify({clickTrackingParams:D==null?void 0:D.clickTrackingParams,
commandMetadata:D==null?void 0:D.commandMetadata,allEndpointKeys:Object.keys(D||[])})));return Y};
_.w$=function(D){if(!_.C6b||D)_.C6b=_.GI();return _.C6b};
_.WTi=function(D){return!!_.A(D,_.Od)||!!_.A(D,_.$I)&&_.f("kevlar_enable_shorts_prefetch")};
_.z8n=function(D,Y){D=_.A(D,_.Od)||_.A(D,_.$I);return"v"+D.videoId+(D.playlistId?"-pl"+D.playlistId:"")+(Y?"-an1":"")+(D.params?"-pr"+D.params:"")};
vG=function(D){return function(){return new D}};
oQ=function(D){var Y=_.DH();return function(){return Y.resolve(D)}};
TGi=function(D){var Y=_.ZH("web_pbj_log_warning_rate",0);Y=Y>0&&Math.random()<Y;if(!_.A(D,_.$I))return Y&&_.Jk(Error("Nf")),!1;var R;return _.f("shorts_controller_retrieve_seedless_sequence_v2")&&((R=_.A(D,_.$I))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:SXy(D)?!0:(Y&&_.Jk(Error("Of")),!1)};
SXy=function(D){var Y=(_.A(D,_.Od)||_.A(D,_.$I)).videoId;if(!Y||!jXl.test(Y))return!1;var R;return(D=(R=_.A(D.commandMetadata,_.GA))==null?void 0:R.url)&&(D.includes(Y)||D.startsWith("/clip"))?!0:!1};
_.FTM=function(){var D=_.nX();return D.getFlag(192)?D.getFlag(190):!(_.f("web_watch_cinematics_disabled_by_default")||_.f("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Iul())};
_.bX=function(D,Y,R){var Z={};Z.currentUrl=Y;Z.vis=D.vis!==void 0?D.vis:0;Z.splay=!1;Y=_.nX();Z.autoCaptionsDefaultOn=Y.getFlag(66);Y.getFlag(141)?Y.getFlag(140)?Z.autonavState="STATE_OFF":Z.autonavState="STATE_ON":Z.autonavState="STATE_NONE";Z.html5Preference="HTML5_PREF_WANTS";isNaN(_.JQ("STS"))||(Z.signatureTimestamp=_.JQ("STS"));D.autonav&&(Z.autoplay=!0,Z.autonav=!0);D.mutedAutoplay&&(Z.autoplay=!0,Z.mutedAutoplay=!0);D.inlinePlayback&&(Z.autoplay=!0,Z.autonav=!1,Z.isInlineUnmutedPlayback=!!D.inlineUnmuted);
Z.referer=R;Z.lactMilliseconds=D.lact!==void 0?D.lact.toString():"-1";_.f("enable_unknown_lact_fix_on_html5")&&Z.lactMilliseconds==="-1"&&_.Jk(new _.AT("Unknown LACT is set in playbackContext.",{"lact in tempData":D.lact||"undefined",autonav:D.autonav||"undefined"}));D={};Y.getFlag(194)&&(D.hasShownAmbientMode=!0);Y.getFlag(192)&&(D.hasToggledOffAmbientMode=!0);_.FTM()&&(D.watchAmbientModeEnabled=!0);Z.watchAmbientModeContext=D;return Z};
GxM=function(D){var Y={},R=D.pbis||0;R&&(Y.playbackBeginsInSeconds=R);D.prefetch_reason&&D.prefetch_reason==="hc_pbis"&&(Y.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return Y};
_.N3=function(D){D=D===void 0?!1:D;var Y=_.nX(),R="USER_INTERFACE_THEME_LIGHT";Y.getFlag(165)?R="USER_INTERFACE_THEME_DARK":Y.getFlag(174)?R="USER_INTERFACE_THEME_LIGHT":_.yb()&&(R="USER_INTERFACE_THEME_DARK");return D?R:VmM()||R};
_.fun=function(){return!_.f("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.yb=function(){return _.fun()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.lX=function(){var D=_.nX();return _.fun()&&!D.getFlag(165)&&!D.getFlag(174)};
VmM=function(){var D=D===void 0?window.location.href:D;if(_.f("kevlar_disable_theme_param"))return null;var Y=_.zZ(D);if(_.e8y(Y))return"USER_INTERFACE_THEME_DARK";try{var R=_.QL(D).theme;return A79.get(R)||null}catch(Z){}return null};
_.e8y=function(D){return _.f("enable_dark_theme_only_on_shorts")?!(D==null||!D.startsWith("/shorts/")):!1};
_.wVo=function(D,Y,R,Z,t){Y=Y===void 0?!1:Y;R=R===void 0?!1:R;var X=_.JQ("INNERTUBE_CONTEXT");if(!X)return _.Nb(Error("Rf")),{};X=(0,_.y7.unsafeClone)(X);_.f("web_no_tracking_params_in_shell_killswitch")||delete X.clickTracking;X.client||(X.client={});var M=X.client;M.clientName==="MWEB"&&M.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(M.clientFormFactor=_.JQ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");M.screenWidthPoints=window.innerWidth;M.screenHeightPoints=window.innerHeight;M.screenPixelDensity=
Math.round(window.devicePixelRatio||1);M.screenDensityFloat=window.devicePixelRatio||1;M.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());M.userInterfaceTheme=_.N3();if(!Y){var W=_.z1M();W&&(M.connectionType=W);_.f("web_log_effective_connection_type")&&(W=TLy())&&(X.client.effectiveConnectionType=W)}var z;if(_.f("web_log_memory_total_kbytes")&&((z=_.ZU.navigator)==null?0:z.deviceMemory)){var I;z=(I=_.ZU.navigator)==null?void 0:I.deviceMemory;X.client.memoryTotalKbytes=""+z*1E6}Y&&Z&&!_.f("web_it_context_set_original_url_ks")&&
(M.originalUrl=nb9(_.ZU.location.href,Z).toString());_.f("web_gcf_hashes_innertube")&&(W=r6y())&&(I=W.coldConfigData,z=W.coldHashData,W=W.hotHashData,X.client.configInfo=X.client.configInfo||{},I&&(X.client.configInfo.coldConfigData=I),z&&(X.client.configInfo.coldHashData=z),W&&(X.client.configInfo.hotHashData=W));I=_.QL(_.ZU.location.href);!_.f("web_populate_internal_geo_killswitch")&&I.internalcountrycode&&(M.internalGeo=I.internalcountrycode);!_.f("web_populate_client_screen_killswitch")&&t&&(M.clientScreen=
t);M.clientName==="MWEB"||M.clientName==="WEB"?(M.mainAppWebInfo||(M.mainAppWebInfo={}),M.mainAppWebInfo.graftUrl=Z||_.ZU.location.href,_.f("kevlar_woffle")&&_.J6.instance&&(Z=_.J6.instance,M.mainAppWebInfo.pwaInstallabilityStatus=!Z.appInstalledEventFired&&Z.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),M.mainAppWebInfo.webDisplayMode=IlU(),M.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):M.clientName==="TVHTML5"&&
(!_.f("web_lr_app_quality_killswitch")&&(Z=_.JQ("LIVING_ROOM_APP_QUALITY"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{appQuality:Z})),Z=_.JQ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{certificationScope:Z}));!_.f("web_populate_time_zone_itc_killswitch")&&(Z=C09())&&(M.timeZone=Z);(Z=y4n())?M.experimentsToken=Z:delete M.experimentsToken;M=NCM();Z=_.r7i();Z=(0,_.y7.getValues)(Z.tokenJars);X.request=Object.assign({},X.request,{internalExperimentFlags:M,consistencyTokenJars:Z});
!_.f("web_prequest_context_killswitch")&&(M=_.JQ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(X.request.externalPrequestContext=M);Z=_.nX();M=Z.getFlag(58);Z=Z.get("gsml","");X.user=Object.assign({},X.user);M&&(X.user.enableSafetyMode=M);Z&&(X.user.lockedSafetyMode=!0);_.f("warm_op_csn_cleanup")?R&&(Y=_.K2())&&(X.clientScreenNonce=Y):!Y&&(Y=_.K2())&&(X.clientScreenNonce=Y);D&&(X.clickTracking={clickTrackingParams:D});if(D=_.mf("yt.mdx.remote.remoteClient_"))X.remoteClient=D;_.kI.getInstance().setLocationOnInnerTubeContext(X);
try{var F=HXn(),G=F.bid;delete F.bid;X.adSignalsInfo={params:[],bid:G};for(var V=_.a(Object.entries(F)),e=V.next();!e.done;e=V.next()){var r=_.a(e.value),l=r.next().value,U=r.next().value;F=l;G=U;D=void 0;(D=X.adSignalsInfo.params)==null||D.push({key:F,value:""+G})}var K,H;if(((K=X.client)==null?void 0:K.clientName)==="TVHTML5"||((H=X.client)==null?void 0:H.clientName)==="TVHTML5_UNPLUGGED"){var c=_.JQ("INNERTUBE_CONTEXT");c.adSignalsInfo&&(X.adSignalsInfo.advertisingId=c.adSignalsInfo.advertisingId,
X.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",X.adSignalsInfo.limitAdTracking=c.adSignalsInfo.limitAdTracking)}}catch(Q){_.Nb(Q)}return X};
_.$fS=function(D){var Y=new U$(_.JQ("ONE_PICK_URL",""));Y.urlParamMap_.set("hostId",D);(D=_.JQ("GAPI_LOCALE"))&&Y.urlParamMap_.set("hl",D);(D=_.JQ("SESSION_INDEX"))&&Y.urlParamMap_.set("authuser",D);(D=_.JQ("DELEGATED_SESSION_ID"))&&Y.urlParamMap_.set("groupId",D);return Y};
ob9=function(){var D=_.DH(),Y=D.resolve(_.Kn);D=D.resolve(_.h6);return new vbS(Y,D)};
y7S=function(D){if(window.IntersectionObserver)return new bV$(D,400);throw new TypeError("Yf");};
luU=function(){var D=Hammer.TouchAction,Y=D.prototype.preventDefaults;D.prototype.preventDefaults=function(R){var Z=this.actions.indexOf("pan-down")>-1;if(!Z)return Y.call(this,R);if(!NGy){var t=R.srcEvent;R=R.direction;var X;if((X=this.manager)==null?0:X.session.prevented)t.preventDefault();else if(Z&&R&Hammer.DIRECTION_DOWN)return this.preventSrc(t)}}};
J7$=function(D){if(!D||D.size===0)return Hammer.DIRECTION_ALL;if(D.size===2){if(D.has("up")&&D.has("down"))return Hammer.DIRECTION_VERTICAL;if(D.has("right")&&D.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(D.size===1){if(D.has("up"))return Hammer.DIRECTION_UP;if(D.has("down"))return Hammer.DIRECTION_DOWN;if(D.has("right"))return Hammer.DIRECTION_RIGHT;if(D.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Ufo=function(){return kxi?Promise.resolve(kxi):new Promise(function(D,Y){var R=self.indexedDB.open("swpushnotificationsdb");R.onerror=Y;R.onsuccess=function(){var Z=R.result;if(Z.objectStoreNames.contains("swpushnotificationsstore"))kxi=Z,D(kxi);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Ufo()};
R.onupgradeneeded=KT$})};
KT$=function(D){D=D.target.result;D.objectStoreNames.contains("swpushnotificationsstore")&&D.deleteObjectStore("swpushnotificationsstore");D.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
LTU=function(D){var Y=h8j(),R;return _.C(function(Z){switch(Z.nextAddress){case 1:return _.SX(Z,2),Z.yield(D.match(Y,{cacheName:"yt-appshell-assets"}),4);case 4:R=Z.yieldResult;_.xw(Z,3);break;case 2:_.Gl(Z);case 3:return Z.return(R)}})};
h8j=function(){var D=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?mf5.registration.scope:qX5;D.endsWith("/")&&(D=D.slice(0,-1));return D+"/app_shell_home"};
HV9=function(D){D.map(function(Y){return Y.source}).join("|")};
_.xf5=function(D){return _.C(function(Y){return Y.return(LTU(D))})};
P65=function(){var D=window.caches,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(_.xf5(D),2);Y=R.yieldResult;return R.return(!!Y)})};
iVn=function(){_.C(function(D){if(D.nextAddress==1){if(QX5)return D.jumpTo(0);QX5=!0;if(_.f("enable_system_health_primes_monitoring"))return _.Cv(BGj,3E4),pVj(),D.return();if(!(Math.random()<_.ZH("web_system_health_fraction")))return D.jumpTo(0);Ebn={heightPixels:screen.height,widthPixels:screen.width};Ln&&!isNaN(Ln.jsHeapSizeLimit)&&(Ebn.memoryTotalKbytes=String(Math.round(Ln.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Ebn.devicePixelRatio=window.devicePixelRatio);return D.yield(gbb(),4)}_.Cv(BGj,
3E4);return D.yield(dfn(),0)})};
gbb=function(){return _.C(function(D){if(D.nextAddress==1)return mV.intersectionObserverPresent="IntersectionObserver"in window,mV.serviceWorkerPresent="serviceWorker"in navigator,mV.webSharePresent="share"in navigator,mV.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,mV.cacheStoragePresent="caches"in window,mV.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,mV.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
mV.webkitTemporaryStoragePresent="webkitTemporaryStorage"in q3&&q3.webkitTemporaryStorage&&"queryUsageAndQuota"in q3.webkitTemporaryStorage,mV.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",D.yield(P0M(),2);mV.indexedDbPresent=D.yieldResult;mV.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;mV.broadcastChannelPresent="BroadcastChannel"in window;mV.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(mV.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,mV.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.V9(D)})};
BGj=function(){var D=9E4+Math.random()*2E3;_.Ro()>D||(_.f("enable_system_health_primes_monitoring")?pVj():dfn())};
dfn=function(){var D;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(OV9(),2);D=Y.yieldResult;_.bo("systemHealthCaptured",D);_.V9(Y)})};
pVj=function(){var D={metric:{}},Y=c7r();Y.networkEvents.length&&(D.metric.networkEvents=DLU(Y));_.bo("systemHealthCaptured",D)};
OV9=function(){var D,Y,R,Z,t,X,M,W,z,I;return _.C(function(F){switch(F.nextAddress){case 1:D={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)};Y=window.screen;_.f("enable_is_extended_monitoring")&&Y&&"isExtended"in Y&&(D.isExtended=!!Y.isExtended);R={metric:{staticContext:Ebn,dynamicContext:D,webMetric:YB$,webApiSupport:mV}};
if(Z=_.K2())R.csn=Z;Ln&&(R.metric.webMetric.currentHeapKbytes=Math.round(Ln.usedJSHeapSize/1E3));window.matchMedia&&(R.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,R.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,R.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in q3&&typeof q3.getBattery==="function")){F.jumpTo(2);break}return F.yield(q3.getBattery(),3);case 3:if(t=
F.yieldResult)R.metric.dynamicContext.chargingStatus=t.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(R.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(mV.storageEstimatePresent)return F.yield(navigator.storage.estimate(),8);if(!mV.webkitTemporaryStoragePresent){F.jumpTo(5);break}return F.yield(RdU(),7);case 7:X=F.yieldResult;F.jumpTo(5);break;case 8:X=F.yieldResult;case 5:return R.metric.dynamicContext.deviceStorageQuotaMbytes=((M=X)==null?0:M.quota)?String(Math.round(X.quota/
1048576/10)*10):"-1",R.metric.dynamicContext.deviceStorageUsageMbytes=((W=X)==null?0:W.usage)?String(Math.round(X.usage/1048576/10)*10):"-1",z=R.metric.dynamicContext,F.yield(P65(),9);case 9:return z.hasAppShell=F.yieldResult,I=c7r(),I.networkEvents.length&&(R.metric.networkEvents=DLU(I)),F.return(R)}})};
RdU=function(){return new Promise(function(D){var Y;mV.webkitTemporaryStoragePresent&&(Y=q3.webkitTemporaryStorage)!=null&&Y.queryUsageAndQuota?q3.webkitTemporaryStorage.queryUsageAndQuota(function(R,Z){D({usage:R,quota:Z})}):D(void 0)})};
_.HG=function(D){D&=16777215;D=[(D&16711680)>>16,(D&65280)>>8,D&255];return Zar(D[0],D[1],D[2])};
_.xI=function(D){D=[(D&16711680)>>>16,(D&65280)>>>8,D&255,(D&4278190080)>>>24];var Y=_.t6l(D,function(R){return R==(R&255)});
D[3]=(D[3]/255).toFixed(3);if(!Y)throw Error("Zf`"+D.join(","));return"rgba("+D.join(",")+")"};
_.s2y=function(D){return[(D&16711680)>>>16,(D&65280)>>>8,D&255]};
_.X1$=function(D){D=D.map(function(Y){Y/=255;return Y<=.03928?Y/12.92:Math.pow((Y+.05)/1.05,2.4)});
return D[0]*.2126+D[1]*.7152+D[2]*.0722};
PG=function(D,Y){D=_.s2y(D);return"rgba("+D[0]+", "+D[1]+", "+D[2]+", "+Y+")"};
_.uC5=function(){try{return!!self.localStorage}catch(D){return!1}};
WeU=function(){if(aIo())_.Jk(Error("$f"));else{var D=document.createElement("iframe");D.style.display="none";var Y=Y===void 0?window.location.href:Y;var R=_.Ns(_.JQ("PERSIST_IDENTITY_IFRAME_URL"));Y=R?R:(new URL(Y)).host.indexOf("studio")===0?_.tZ(M6b,"persist_identity"):_.tZ(CYS,"persist_identity");_.tXb(D,1,Y);D.id="persist_identity";var Z;(Z=document.body)==null||Z.appendChild(D)}};
aIo=function(){var D=zdb;D||(D=document.querySelector("#persist_identity"));return D};
SBn=function(){var D=!1;try{D=!!window.sessionStorage.getItem("session_logininfo")}catch(Y){D=!0}return(_.JQ("INNERTUBE_CLIENT_NAME")==="WEB"||_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&D};
TOy=function(D,Y){if(!SBn())return!1;Y||(Y=_.JQ("LOGIN_INFO"));return Y?(D.session_logininfo=Y,!0):!1};
IIU=function(D,Y){D=D===void 0?!1:D;if((Y===void 0||!Y)&&j2o!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.ks("LOG_STICKINESS",!1)){Y=_.K2();var R=_.Ud(),Z={identityStickinessData:{initialState:j2o}};Y&&R&&_.O7(Y,R,Z)}if(Y=aIo())if(R=Y.src?(new URL(Y.src)).origin:"*",D){var t;(t=Y.contentWindow)==null||t.postMessage({action:"clear"},R)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(D=window.sessionStorage.getItem("session_logininfo"))){var X;(X=Y.contentWindow)==null||X.postMessage({loginInfo:D},R)}};
_.Qb=function(D){D=D===void 0?!0:D;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.l1("LOGIN_INFO",""),D&&window.sessionStorage.setItem("from_switch_account","1"),IIU(!0,D)}catch(Y){}};
Fe9=function(D){D&&(D.startsWith("https://accounts.google.com/AddSession")?_.Qb():D.startsWith("https://accounts.google.com/ServiceLogin")?_.Qb():D.startsWith("https://myaccount.google.com")&&_.qC(D).getPath().endsWith("/youtubeoptions")&&_.Qb())};
BG=function(D,Y){Fe9(D);if(_.ks("LOGGED_IN",!0)&&SBn()){var R=uSM(D);R==null&&(R={});TOy(R,Y)&&_.Rb(D,R)}};
Gqj=function(){function D(Y){for(Y=Y.target;Y&&Y.nodeName!=="A";)if(Y=Y.parentNode,!(Y&&Y instanceof HTMLElement))return;if(Y&&!Y.hasAttribute("download")&&Y.getAttribute("rel")!=="external"&&Y.href)return Y.href}
document.addEventListener("mousedown",function(Y){Y.button!==0&&(Y=D(Y))&&BG(Y)});
document.addEventListener("click",function(Y){(Y=D(Y))&&BG(Y)})};
ed5=function(){var D=new V6r;try{if(_.ks("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(W){D.increment(5,!1);return}if(_.JQ("LOGIN_INFO")){var Y=fIM?fIM:window.location;_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&WeU();var R=uSM(Y.href);R==null&&(R={});var Z=R.session_logininfo,t=Number(window.sessionStorage.getItem("stickiness_reload")),X=Z===_.JQ("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
t>=2||X)t>=2?D.increment(2,X):X?D.increment(7,X):window.sessionStorage.getItem("session_logininfo")||(D.increment(3,X),j2o="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.JQ("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.JQ("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))D.increment(4,X),window.sessionStorage.removeItem("stickiness_reload");
else if(t<2){window.sessionStorage.setItem("stickiness_reload",String(t+1));var M=Y.href;M=_.Zi(M,"sttick");BG(M,window.sessionStorage.getItem("session_logininfo"));M=_.BD(M,{sttick:t});D.increment(t,X);_.C4y(Y,M)}}else D.increment(6,!1)}else _.Qb(!1)}catch(W){}};
_.pn=function(D,Y,R,Z,t){Y=Y===void 0?{}:Y;R=R===void 0?"":R;Z=Z===void 0?window:Z;D=_.pb(D,Y);BG(D);R=_.Jf(D+R,t);_.C4y(Z.location,R)};
_.Az5=function(D,Y,R,Z,t){t=t===void 0?!1:t;R&&_.Rb(D,R);R=_.Jf(D);var X=_.oJ(R);D!=X&&_.qJ(Error("ag`"+D));D=X;Y=Y||QQ(D).toString(36);try{if(t)return t=D,t=VvM(t),BG(t),_.QB(window,t,Y,"attributionsrc")}catch(M){_.hQ(M)}BG(D);return _.QB(window,R,Y,Z)};
nkr=function(D){if(D.urlEndpoint){if(D=_.QL(D.urlEndpoint.url),D.adurl)return O3(D.adurl)}else if(D.watchEndpoint)return"//www.youtube.com/watch?v="+D.watchEndpoint.videoId;return null};
rzy=function(D){if(!D||!D.reportingPings)return null;var Y={};D.reportingPings.forEach(function(R){R.pingType in Y?Y[R.pingType].push(R.url):Y[R.pingType]=[R.url]});
return{adpings:IiU(Y)}};
_.E$=function(){return{isShellLoad:_.ks("IS_SHELL_LOAD",!1)}};
$Ll=function(){navigator.serviceWorker.getRegistrations().then(function(D){D.forEach(w15)})};
w15=function(D){D&&_.vky(okn,D.scope)};
_.vky=function(D,Y){Y={scope:Y||_.XW("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.n$(D),Y)};
g$=function(D,Y,R,Z){if(Y&&Y.serializedYpcCujLoggingParams){if(R){var t={};t.transactionErrorType=R;Z&&(t.errorMessage=Z);Y.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:t}}}R={};R.ypcCujContext=Y;D=_.jI("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",D,R);_.F9(_.Ga(),D,"FLOW_TYPE_YPC_ACQUISITION")}};
_.ba5=function(D,Y,R,Z){var t={};t.serializedTransactionFlowLoggingParams=Y;R&&(t.errorType=R);Z&&(t.errorMessage=Z);_.bo(D,t);_.yj()};
_.yzU=function(D){D&&_.ba5("transactionFlowStarted",D)};
_.NOn=function(D){D&&_.ba5("transactionFlowCancelled",D)};
_.d$=function(D,Y,R){Y&&_.ba5("transactionFlowFailed",Y,D,R)};
lIU=function(D){var Y=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");Y&&(Y.inert=D)};
_.iX=function(){this.megabloxUrl_=null};
_.O$=function(D){try{var Y=Jzl==null?void 0:Jzl.composedPath(D)}catch(R){Y=D.composedPath?D.composedPath():[]}return Y&&Y.length>0?Y:D.composedPath?D.composedPath():[]};
_.cG=function(D){return _.O$(D)[0]};
_.Dh=function(D){if(!(D instanceof Element))return null;D=D.classList?Array.from(D.classList):void 0;if(!D)return null;var Y=D.indexOf("style-scope");return Y>-1&&Y+1<D.length?D[Y+1]:null};
Yy=function(D){if(!(D instanceof HTMLElement))return null;var Y=D&&(D.$$||D.polymerController)?D.tagName.toLowerCase():null;return Y?Y:_.Dh(D)};
kqj=function(D,Y){return D.replace(/[^a-z]*[^\s]+/g,function(R){return R+".style-scope."+Y})};
ULn=function(D,Y){return Y?D.split(",").map(function(R){return kqj(R.trim(),Y)}).join(", "):D};
_.RU=function(D){var Y,R,Z,t;return(t=(Z=(R=(Y=D.root)!=null?Y:D.shadowRoot)!=null?R:D.__shady_native_shadowRoot)!=null?Z:D.__shady_shadowRoot)!=null?t:D};
Zh=function(D){return D instanceof ShadowRoot?ShadowRoot:D instanceof DocumentFragment?DocumentFragment:D instanceof Document?Document:HTMLElement};
Kel=function(D){var Y,R,Z;return(Z=(R=(Y=D.parentElement)!=null?Y:D.__shady_native_parentElement)!=null?R:D.__shady_parentElement)!=null?Z:null};
hdU=function(D){var Y,R,Z;return(Z=(R=(Y=D.parentNode)!=null?Y:D.__shady_native_parentNode)!=null?R:D.__shady_parentNode)!=null?Z:null};
Leb=function(D){var Y,R,Z;return(Z=(R=(Y=D.__shady_parentNode)!=null?Y:D.__shady_native_parentNode)!=null?R:D.parentNode)!=null?Z:null};
mLn=function(D){var Y,R;return(R=(Y=hdU(D))!=null?Y:D.host)!=null?R:null};
qBS=function(D){var Y,R,Z;return(Z=(R=(Y=D.nextSibling)!=null?Y:D.__shady_native_nextSibling)!=null?R:D.__shady_nextSibling)!=null?Z:null};
Ha9=function(D){var Y,R,Z;return(Z=(R=(Y=D.previousSibling)!=null?Y:D.__shady_native_previousSibling)!=null?R:D.__shady_previousSibling)!=null?Z:null};
xLM=function(D){var Y,R,Z;return(Z=(R=(Y=D.nextElementSibling)!=null?Y:D.__shady_native_nextElementSibling)!=null?R:D.__shady_nextElementSibling)!=null?Z:null};
PYb=function(D){var Y,R,Z;return(Z=(R=(Y=D.previousElementSibling)!=null?Y:D.__shady_native_previousElementSibling)!=null?R:D.__shady_previousElementSibling)!=null?Z:null};
Q2S=function(D){var Y,R,Z;return new Set([].concat(_.oK((Y=D.children)!=null?Y:[]),_.oK((R=D.__shady_native_children)!=null?R:[]),_.oK((Z=D.__shady_children)!=null?Z:[])))};
BOr=function(D){var Y,R,Z;return new Set([].concat(_.oK((Y=D.childNodes)!=null?Y:[]),_.oK((R=D.__shady_native_childNodes)!=null?R:[]),_.oK((Z=D.__shady_childNodes)!=null?Z:[])))};
p1$=function(D){if(!D)return null;var Y=_.Dh(D);if(!Y){var R;return(R=Node.prototype.getRootNode)==null?void 0:R.call(D)}Y=Y.toUpperCase();for(D=Kel(D);D&&D.tagName!==Y;)D=Kel(D);return D?_.RU(D):null};
EkM=function(D){for(;D&&!(D instanceof HTMLElement);)D=mLn(D);return D};
gkj=function(D){var Y=EkM(D);return D===Y?_.Dh(D):Y?Yy(Y):null};
dLS=function(D){return(D=EkM(D))?Yy(D):null};
iar=function(D){if(D instanceof Comment)return!1;if(D instanceof Text){var Y,R;if(((R=(Y=D.textContent)==null?void 0:Y.trim())!=null?R:"")==="")return!1}return!0};
tj=function(D,Y,R){var Z=Y(D);for(R=R===void 0?dLS(D):R;Z&&(gkj(Z)!==R||!iar(Z));)D=Z,Z=Y(D);return Z};
OaM=function(D,Y,R){if(!Y)return null;D=dLS(D);return gkj(Y)===D&&iar(Y)?Y:tj(Y,R,D)};
cz9=function(D){return tj(D,Leb,_.Dh(D))};
D69=function(D){return tj(D,xLM)};
YqU=function(D){return tj(D,qBS)};
Rw$=function(D){return tj(D,PYb)};
ZAi=function(D){return tj(D,Ha9)};
t9i=function(D){return OaM(D,D.firstChild||D.__shady_native_firstChild||D.__shady_firstChild||null,qBS)};
s4M=function(D){var Y,R,Z;var t=(Z=(R=(Y=D.firstElementChild)!=null?Y:D.__shady_native_firstElementChild)!=null?R:D.__shady_firstElementChild)!=null?Z:null;return OaM(D,t,xLM)};
Xzi=function(D){var Y,R,Z;var t=(Z=(R=(Y=D.lastChild)!=null?Y:D.__shady_native_lastChild)!=null?R:D.__shady_lastChild)!=null?Z:null;return OaM(D,t,Ha9)};
u2o=function(D){var Y,R,Z;var t=(Z=(R=(Y=D.lastElementChild)!=null?Y:D.__shady_native_lastElementChild)!=null?R:D.__shady_lastElementChild)!=null?Z:null;return OaM(D,t,PYb)};
aAy=function(D){var Y=dLS(D);return Array.from(BOr(D)).filter(function(R){return gkj(R)===Y})};
M9U=function(D){var Y=Yy(D);return Array.from(Q2S(D)).filter(function(R){return _.Dh(R)===Y})};
_.sg=function(D,Y,R){if(D instanceof HTMLElement&&_.Dh(D)===R){var Z=Array.from(D.classList).indexOf("style-scope");if(Z===-1)D.classList.add("style-scope"),D.classList.add(Y);else if(!(Z+1>=D.classList.length)){Z=D.classList[Z+1];var t,X;D==null||(t=D.classList)==null||(X=t.replace)==null||X.call(t,Z,Y)}}if(D instanceof HTMLElement||D instanceof DocumentFragment)for(t=_.a(Q2S(D)),X=t.next();!X.done;X=t.next())_.sg(X.value,Y,R);return D};
Xv=function(D,Y){if(D instanceof HTMLElement&&_.Dh(D)===Y){var R=Array.from(D.classList).indexOf("style-scope");R===-1||R+1>=D.classList.length||D.classList.remove("style-scope",D.classList[R+1])}if(D instanceof HTMLElement||D instanceof DocumentFragment){R=_.a(D.children);for(var Z=R.next();!Z.done;Z=R.next())Xv(Z.value,Y)}return D};
_.Cn$=function(D,Y){return Zh(D).prototype.appendChild.call(D,Y)};
WCU=function(D,Y){if(D===Y)return!0;D=BOr(D);return Array.from(D).some(function(R){return WCU(R,Y)})};
_.aU=function(D,Y){if(D instanceof uP)return D;(Y==null?0:Y.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(D,"ownerDocument")&&Object.defineProperty(D,"ownerDocument",{get:function(){return window.document}});
return new uP(D)};
Sqj=function(){var D=uP.prototype,Y=[].concat(_.oK(zwj?[]:["getRootNode"]),["setAttribute","removeAttribute"]);Y=_.a(Y);for(var R=Y.next(),Z={};!R.done;Z={method$jscomp$51:void 0},R=Y.next())Z.method$jscomp$51=R.value,D[Z.method$jscomp$51]=function(t){return function(){return this.host[t.method$jscomp$51].apply(this.host,arguments)}}(Z)};
j4o=function(){var D=uP.prototype,Y=[].concat(_.oK(zwj?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.oK(TSy?[]:["querySelector","querySelectorAll"]));Y=_.a(Y);for(var R=Y.next(),Z={};!R.done;Z={method$jscomp$52:void 0},R=Y.next())Z.method$jscomp$52=R.value,D[Z.method$jscomp$52]=function(t){return function(){return this.root[t.method$jscomp$52].apply(this.root,arguments)}}(Z)};
Gwb=function(){var D=uP.prototype,Y=[].concat(_.oK(IAi?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.oK(FC$?[]:["parentNode"]));Y=_.a(Y);for(var R=Y.next(),Z={};!R.done;Z={prop$jscomp$62:void 0},R=Y.next())Z.prop$jscomp$62=R.value,Object.defineProperty(D,Z.prop$jscomp$62,{get:function(t){return function(){return this.host[t.prop$jscomp$62]}}(Z),
configurable:!0})};
ewM=function(){var D=uP.prototype,Y=["activeElement"].concat(_.oK(IAi?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.oK(V9S?[]:["children"]),_.oK(fAM?[]:["lastChild"]));Y=_.a(Y);for(var R=Y.next(),Z={};!R.done;Z={prop$jscomp$63:void 0},R=Y.next())Z.prop$jscomp$63=R.value,Object.defineProperty(D,Z.prop$jscomp$63,{get:function(t){return function(){return this.root[t.prop$jscomp$63]}}(Z),
configurable:!0})};
A8b=function(){for(var D=uP.prototype,Y=_.a(["innerHTML","textContent"]),R=Y.next(),Z={};!R.done;Z={prop$jscomp$64:void 0},R=Y.next())Z.prop$jscomp$64=R.value,Object.defineProperty(D,Z.prop$jscomp$64,{get:function(t){return function(){return this.root[t.prop$jscomp$64]}}(Z),
set:function(t){return function(X){this.root[t.prop$jscomp$64]=X}}(Z),
configurable:!0})};
nor=function(D){var Y=uP.prototype;D=_.a(Object.entries(D));for(var R=D.next(),Z={};!R.done;Z={fn$jscomp$392:void 0},R=D.next()){var t=_.a(R.value);R=t.next().value;t=t.next().value;Z.fn$jscomp$392=t;Y[R]=function(X){return function(){return X.fn$jscomp$392.apply(null,[this.host.node||this.host].concat(_.oK(arguments)))}}(Z)}};
wzr=function(){for(var D=uP.prototype,Y=_.a(Object.entries(r8M)),R=Y.next(),Z={};!R.done;Z={fn$jscomp$393:void 0},R=Y.next()){var t=_.a(R.value);R=t.next().value;t=t.next().value;Z.fn$jscomp$393=t;Object.defineProperty(D,R,{get:function(X){return function(){return X.fn$jscomp$393.apply(null,[this.host.node||this.host].concat(_.oK(arguments)))}}(Z),
configurable:!0})}};
_.MB=function(D){return D instanceof $6i||D instanceof Document?D:new $6i(D)};
voU=function(){for(var D=$6i.prototype,Y=_.a("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),R=Y.next(),Z={};!R.done;Z={method$jscomp$53:void 0},R=Y.next())Z.method$jscomp$53=R.value,D[Z.method$jscomp$53]=function(t){return function(){return HTMLElement.prototype[t.method$jscomp$53].call.apply(HTMLElement.prototype[t.method$jscomp$53],[this.node].concat(_.oK(arguments)))}}(Z)};
oo9=function(){for(var D=$6i.prototype,Y=_.a("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),R=Y.next(),Z={};!R.done;Z={prop$jscomp$65:void 0},R=Y.next())Z.prop$jscomp$65=R.value,Object.defineProperty(D,Z.prop$jscomp$65,{get:function(t){return function(){var X;return(X=this.node["__shady_native_"+t.prop$jscomp$65])!=null?X:this.node[t.prop$jscomp$65]}}(Z),
configurable:!0})};
_.Cr=function(D,Y,R){R===void 0&&(R=!D.classList.contains(Y));R?D.classList.add(Y):D.classList.remove(Y)};
_.WE=function(D,Y,R){R===void 0&&(R=!D.hasAttribute(Y));if(Y==="class")throw Error("eg");R?_.MB(D).setAttribute(Y,""):_.MB(D).removeAttribute(Y)};
bAl=function(D){return(D.localName!=="slot"?[]:(0,_.zm)(D).assignedNodes({flatten:!0})).filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE})};
_.y8y=function(D){return(D=_.aU(D).querySelector("slot"))&&D.localName==="slot"?bAl(D):[]};
_.SN=function(D,Y){window.ShadyCSS&&window.ShadyCSS.styleSubtree(D,Y)};
Tm=function(D,Y){var R=Y.bind(D);return function(Z){R(Z,Z.detail)}};
_.jN=function(D,Y){var R=NSj.get(D);R||(R=new WeakMap,NSj.set(D,R));if(R.has(Y))return R.get(Y);if(_.f("web_fi_listen_disable_bound_fn_helper")){var Z=Y.bind(D);D=function(t){Z(t,t==null?void 0:t.detail)}}else D=Tm(D,Y);
R.set(Y,D);return D};
kwy=function(D,Y){lAM(D);D.created[J8U].push(Y)};
lAM=function(D){if(!D.created||!D.created[J8U]){var Y=D.created,R=Y?[Y]:[];D.created=function(){for(var Z=_.a(R),t=Z.next();!t.done;t=Z.next())t.value.apply(this)};
D.created[J8U]=R}};
U6l=function(D){return function(){var Y=_.UN.apply(0,arguments);return function(R,Z,t){D.apply(null,_.oK(Y))(R,Z,t)}}};
KCU=function(){return function(){var D=_.UN.apply(0,arguments);return function(Y,R,Z){r0n.apply(null,_.oK(D))(Y,R,Z)}}};
_.v=function(D){return KCU()(D)};
_.b=function(){return U6l(orr).apply(null,_.oK(_.UN.apply(0,arguments)))};
_.Fv=function(D){return _.f("pbcm_fi_listen_decorators")?hwy(D):U6l($qb)(D)};
hwy=function(D){return function(Y,R){kwy(Y,function(){var Z=this[R],t=_.f("web_fi_listen_disable_bound_fn_helper")?function(X){Z(X,X.detail)}.bind(this):Tm(this,Z);
LCy.has(D)?Uw(this.hostElement,D,t):this.hostElement.addEventListener(D,t)})}};
_.Gm=function(){return U6l(vr5).apply(null,_.oK(_.UN.apply(0,arguments)))};
_.y=function(D){D=D===void 0?{}:D;return U6l(wjj)(D)};
_.VT=function(D){if(D.hostElement&&D!==D.hostElement){var Y=_.oR(D.hostElement);Y=D.renderIdom?Y:Y.shadowRoot}Y||(D=D.root,Y=D instanceof Node?_.oR(D):null);return Y};
_.fr=function(D){return m6y?qqo(D):function(Y,R){Object.defineProperty(Y,R,{get:function(){var Z;return(Z=_.VT(this))==null?void 0:Z.querySelector(D)},
enumerable:!0,configurable:!0})}};
qqo=function(D){return function(Y,R){Object.defineProperty(Y,R,{get:function(){var Z,t=(Z=_.aU(this.hostElement))==null?void 0:Z.querySelector(D);if(t)return t;var X;return(X=_.VT(this))==null?void 0:X.querySelector(D)},
enumerable:!0,configurable:!0})}};
_.eN=function(D){return m6y?HAM(D):function(Y,R){Object.defineProperty(Y,R,{get:function(){var Z;return(Z=_.VT(this))==null?void 0:Z.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
HAM=function(D){return function(Y,R){Object.defineProperty(Y,R,{get:function(){var Z,t=(Z=_.aU(this.hostElement))==null?void 0:Z.querySelectorAll(D);if(t==null?0:t.length)return t;var X;return(X=_.VT(this))==null?void 0:X.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
x6y=function(D){return function(Y){if(![_.RR,_.N].includes(Object.getPrototypeOf(Y.prototype).constructor))throw Error("fg");IoU(Object.assign({},typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(Y)}};
_.nr=function(){var D=D===void 0?{}:D;return function(Y){if(![Za,_.Aj].includes(Object.getPrototypeOf(Y.prototype).constructor))throw Error("gg");FcU(Object.assign({},D,{disableInheritanceCheck:!0}))(Y)}};
Q4r=function(D,Y){PnU[D]!=null||(PnU[D]=new Set);PnU[D].add(Y)};
_.rd=function(){var D=_.Gm.apply(null,_.oK(_.UN.apply(0,arguments)));return function(Y,R){Q4r(Y.is,R);D(Y,R)}};
vE=function(D,Y,R){if(wd(D)&&!BSU.has(Y)){Y=Y.replace(/^JSC\$[\d]+_/,"");Y=Y.replace(/\.\d+(\.|$)/g,function(X,M){return".#"+M});
$y[D]!=null||($y[D]={});var Z,t;(Z=$y[D])[t=Y]!=null||(Z[t]=new Set);$y[D][Y].has(R)||($y[D][Y].add(R),_.bo("polymerPropertyAccessEvent",{componentName:D,propertyName:Y,accessType:R}))}};
pzi=function(){return _.f("polymer_property_access_logging_debug")||_.f("polymer_enable_property_access_logging")};
wd=function(D){if(_.f("polymer_property_access_logging_debug"))return!0;if(!_.f("polymer_enable_property_access_logging"))return!1;Eo$||(Eo$=Date.now());return(QQ(D)+Eo$)%100<_.ZH("polymer_property_access_logging_percent")};
goi=function(D,Y){return wd(Y)&&D.hostElement.loggingStatus?new Proxy(D,{get:function(R,Z,t){if(R.hostElement.loggingStatus.bypassProxyController)return R[Z];R.hostElement.loggingStatus.isExternalGet=!0;var X=R[Z];R.hostElement.loggingStatus.isExternalGet=!1;if(X instanceof Function)return function(){var M=_.UN.apply(0,arguments);try{return R.hostElement.loggingStatus.currentExternalCall=Z,vE(Y,Z,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),X.apply(this===t?R:this,M)}finally{R.hostElement.loggingStatus.currentExternalCall=
void 0}};
vE(Y,Z,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return X},
set:function(R,Z,t){if(R.hostElement.loggingStatus.bypassProxyController)return R[Z]=t,!0;R.hostElement.loggingStatus.isRendererStamper?vE(Y,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):R.hostElement.loggingStatus.isDeclarativeExternal||vE(Y,Z,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{R.hostElement.loggingStatus.currentExternalSet=Z,R[Z]=t}finally{R.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):D};
d6r=function(D,Y){D&&D.loggingStatus&&!D.loggingStatus.isDeclarativeExternal&&!D.loggingStatus.isExternalGet&&D.loggingStatus.currentExternalSet!==Y&&vE(D.tagName.toLowerCase(),Y,"PROPERTY_ACCESS_GET_INTERNAL")};
oU=function(D,Y,R){D&&(R||D.loggingStatus&&!D.loggingStatus.isInitializing&&!D.loggingStatus.isDefiningPropertyAccessor&&D.loggingStatus.currentExternalSet!==Y)&&vE(D.tagName.toLowerCase(),Y,"PROPERTY_ACCESS_SET_INTERNAL")};
iAy=function(){return{_definePropertyAccessor:function(D,Y){var R=this,Z=R.hostElement.loggingStatus;Z&&(Z.isDefiningPropertyAccessor=!0);var t=R[D];t!==void 0&&(R.__data?R._setPendingProperty(D,t):(R.__dataProto!=null||(R.__dataProto={}),R.__dataProto[D]=t));Z&&(Z.isDefiningPropertyAccessor=!1);Object.defineProperty(this,D,{get:function(){d6r(R.hostElement,D);return this.__data[D]},
set:function(X){Y||this._setPendingProperty(D,X,!0)&&this._invalidateProperties()}})},
created:function(){var D=this._setPendingProperty.bind(this);this._setPendingProperty=function(Y,R,Z){oU(this.hostElement,Y);return D.apply(this,[Y,R,Z])}}}};
OAU=function(D){pzi()&&_.v(bP.prototype)(D.prototype,"__templateBindingLoggingBehavior")};
c85=function(D,Y){if(Y.resolvedFactories.length!==D.resolvedFactories.length)return!0;Y=_.a(Y.resolvedFactories.entries());for(var R=Y.next();!R.done;R=Y.next()){var Z=_.a(R.value);R=Z.next().value;Z=Z.next().value;if(Z.providerClass){if(Z.providerClass!==D.resolvedFactories[R].providerClass)return!0}else if(Z.providerValue){if(Z.providerValue!==D.resolvedFactories[R].providerValue)return!0}else if(Z.factory!==D.resolvedFactories[R].factory)return!0}return!1};
DS$=function(D,Y){D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,R.constructor===Array)DS$(R,Y);else{var Z=Y;Z.has(R)||(R.inject&&Z.add(R),R.behaviors&&DS$(R.behaviors,Z))}};
lP=function(D,Y){var R=D[Y];D[Y]=function(){var Z=_.UN.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(R)return R.apply(this,Z)}};
tkU=function(){_.Jj.Class=function(R,Z){R=YJU(R,Z);lP(R.prototype,"created");return R};
lP(ky.prototype,"_initializeProperties");lP(_.Ug.prototype,"_initializeProperties");if(RnS)lP(ZkU,"created");else{var D=function(){lP(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))D();else{var Y=customElements.define;customElements.define=function(R,Z,t){Y.call(customElements,R,Z,t);R==="tp-yt-iron-list"&&(D(),customElements.define=Y)}}}};
X5i=function(D,Y){D.prototype.behaviors=D.prototype.behaviors||[];D.prototype.behaviors.unshift(sm9.InjectBehavior);D.prototype.provide=Y};
_.Lr=function(D){return function(Y){if(!D.disableElementRegistration){D.noInjection||X5i(Y,D.providers);var R=Y.prototype;R.__templateHelpers||r0n(Kr.prototype)(R,"__templateHelpers");R=D.is;ugj||(ugj=Date.now());(QQ(R)+ugj)%100<_.ZH("polymer_log_prop_change_observer_percent")&&r0n(hj.prototype)(Y.prototype,"__propertyObserverObserver");Y.prototype.behaviors=Y.prototype.behaviors||[];Y.prototype.behaviors.unshift(_.acl.YtHostElementBehavior);OAU(Y);x6y({is:D.is,notifyObserversOnUndefined:D.notifyObserversOnUndefined!==
!1,fastInit:D.fastInit,template:D.template,disableEnforceFastDefaultValuesCheck:!0})(Y)}}};
_.h=function(D){return _.Lr({is:D.is,template:D.template,disableElementRegistration:D.disableElementRegistration,cssBuildOptOut:D.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Ws5=function(D,Y){if(Mkj){D=new D;for(var R=_.a(Object.getOwnPropertyNames(D)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Y[Z]=D[Z];for(R=Y;R&&R!==Object.prototype;R=Object.getPrototypeOf(R)){Z=_.a(Object.getOwnPropertyNames(R));for(var t=Z.next();!t.done;t=Z.next())t=t.value,D.hasOwnProperty(t)||Object.defineProperty(D,t,C8U(Y,t))}}else D.apply(Y)};
C8U=function(D,Y){return{get:function(){var R=D[Y];return R instanceof Function?R.bind(D):R},
set:function(R){D[Y]=R}}};
SJo=function(D,Y){for(var R=D._noAccessors,Z=_.a(Object.getOwnPropertyNames(D)),t=Z.next();!t.done;t=Z.next())if(t=t.value,!znM.has(t))if(R)Y[t]=D[t];else{var X=Object.getOwnPropertyDescriptor(D,t);X&&(X.configurable=!0,Object.defineProperty(Y,t,X))}};
ThS=function(D,Y,R){return function(Z){if(R){var t=R();Z.model=t}if(D[Y])D[Y](Z,Z.detail)}};
m4=function(D){var Y=[];if(typeof D==="string")D.length>0&&Y.push.apply(Y,_.oK(D.split(".")));else{D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,typeof R==="string"?Y.push.apply(Y,_.oK(R.split("."))):Y.push(R)}return Y};
jmi=function(D,Y){if(Y[Y.length-1]!=="*"&&Y[Y.length-1]!=="splices"){for(var R=0;R<Y.length;R++){if(!D)return;D=D[Y[R]]}return D}};
IcS=function(D,Y){if(D.length>Y.length)return!1;for(var R=0;R<D.length;R++)if(D[R]!==Y[R])return!1;return!0};
G7b=function(D,Y,R){if(Y.type==="compute"){var Z=Y.getter.bind(R);var t=Y.args}else Z=function(){return R[Y.method.methodName].apply(R,_.oK(_.UN.apply(0,arguments)))},t=Y.method.args;
Fsi(D,Y.propertyKey,Z,t,Y.value)};
fcM=function(D,Y){if(Y.readOnly){var R=Object.getOwnPropertyDescriptor(D.model,Y.propertyKey);Object.defineProperty(D.model,Y.propertyKey,{get:R.get,set:function(){}});
D.model[Vky(Y.propertyKey)]=R.set}};
enS=function(D,Y,R){if(R){var Z=Y.propertyKey,t=Y.selector;Y=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.oK(Y.selectorArgs.map(function(X){return{type:"path",path:X}})));
Fsi(D,Z,function(X){var M=_.UN.apply(1,arguments);return t.apply(null,[R.getState()].concat(_.oK(M)))},Y)}};
nvn=function(D,Y,R){var Z=_.f2(Y.propertyKey)+"-changed";Aco(D,function(t){var X={value:t.value,queueProperty:!0};t.path.split(".").length>1&&(X.path=t.path);R.dispatchEvent(new CustomEvent(Z,{detail:X}))},[{type:"wildcard",
path:Y.propertyKey}])};
rcn=function(D,Y,R){Aco(D,function(){R[Y.method.methodName].apply(R,_.oK(_.UN.apply(0,arguments)))},Y.method.args)};
Vky=function(D){return"_set"+(D.charAt(0).toUpperCase()+D.slice(1))};
w55=function(){var D,Y=$d(function(R){D=R},!1);
return[D,Y]};
ycn=function(D){D=D.trim().replace($Sl,",").replace(vvS,"$1");var Y=D[0];Y==="-"&&(Y=D[1]);if(Y>="0"&&Y<="9")return{type:"literal",value:Number(D)};if(Y==="'"||Y==='"')return{type:"literal",value:D.slice(1,-1)};if(Y=D.match(ovM)){Y=Y[1];var R=bkS[Y];if(R)return{type:R,path:D.slice(0,-(Y.length+1))}}return{type:"path",path:D}};
k7r=function(D){var Y=D.match(NhU);if(Y)return D={methodName:Y[1],args:lcr},Y[2].trim()&&(Y=Y[2].replace(JcU,"&comma;").split(","),D.args=Y.map(ycn)),D};
USi=function(D,Y,R,Z){Z=Z===void 0?!1:Z;Y=_.f2(Y);var t=fF;t&&(R=t(R,Y,"attribute",D));qB(D,R,Y,Z)};
qB=function(D,Y,R,Z){Y=KsU(Y,Z===void 0?!1:Z);Y===void 0?D.removeAttribute(R):D.setAttribute(R,Y)};
KsU=function(D,Y){switch(typeof D){case "object":case "function":if(D instanceof Date)return D.toString();if(D){if((Y===void 0?0:Y)&&!_.f("polymer_reflect_objects_as_boolean_killswitch"))return D?"":void 0;Y=window.trustedTypes?window.trustedTypes.isHTML(D)||window.trustedTypes.isScript(D)||window.trustedTypes.isScriptURL(D):void 0;if(Y)return D;try{return JSON.stringify(D)}catch(R){_.Jk(Error("Cg`"+D))}}break;case "boolean":return D?"":void 0;default:return D!==null&&D!==void 0?D.toString():void 0}};
hnb=function(D){if(D===void 0)throw Error("Dg");return D};
xSb=function(D,Y,R,Z){var t=Lsi(Z);if(t.length){Z=R;var X="property";mS$.test(R)?X="attribute":R[R.length-1]==="$"&&(R=R.slice(0,-1),X="attribute");var M=qJn(t);M&&X==="attribute"&&(R==="class"&&D.hasAttribute("class")&&(M+=" "+D.getAttribute(R)),qB(D,M,R));X==="attribute"&&Z==="disable-upgrade$"&&D.setAttribute("disable-upgrade","");D.localName==="input"&&Z==="value"&&D.setAttribute("value","");D.removeAttribute(Z);X==="property"&&(R=_.eP(R));Y=hnb(Y);Hkl(Y,X,R,t);return!0}return R.slice(0,3)===
"on-"?(D.removeAttribute(R),(X=Y).events!=null||(X.events=[]),Y.events.push({name:R.slice(3),value:Z}),!0):R==="id"?(Y.id=Z,!0):!1};
Lsi=function(D){for(var Y=[],R=0,Z;(Z=P8y.exec(D))!==null;){Z.index>R&&Y.push({type:"literal",value:D.slice(R,Z.index)});var t=Z[1][0];R=!!Z[2];Z=Z[3].trim();if(t==="{")throw Error("Eg");(t=k7r(Z))?Y.push({type:"method",negate:R,signature:t}):Y.push({type:"path",negate:R,path:Z});R=P8y.lastIndex}R&&R<D.length&&(D=D.substring(R))&&Y.push({type:"literal",value:D});return Y};
qJn=function(D){for(var Y="",R=0;R<D.length;R++){var Z=D[R];Z.type==="literal"&&(Y+=Z.value)}return Y};
Hkl=function(D,Y,R,Z){D.bindings!=null||(D.bindings=[]);D.bindings.push({kind:Y,target:R,parts:Z})};
gvy=function(D,Y,R){var Z=!1;if(D.localName==="template"){Z=R;var t=Y.stripWhitespace;t=Qmj(D,t===void 0?!1:t);var X=D.content.ownerDocument.createDocumentFragment();t.content=X;X.appendChild(D.content);Z&&(Z.templateInfo=t);Z=!0}else D.localName==="slot"&&(Y.hasInsertionPoint=!0);if(D.firstChild&&(t=R,D.localName!=="script"&&D.localName!=="style")){X=0;for(var M=D.firstChild;M;){var W=M;if(W.localName==="template"){var z=W.getAttribute("is");if((M=z==="dom-if")||z==="dom-repeat"){W.removeAttribute("is");
z=W.ownerDocument.createElement("ps-"+z);W.parentNode.replaceChild(z,W);z.appendChild(W);var I=Array.from(W.attributes);I=_.a(I);for(var F=I.next();!F.done;F=I.next())F=F.value,M?Bhi.has(F.name)&&qB(z,F.value,F.name):p5y.has(F.name)?qB(z,F.value,F.name):Evl.has(F.name),W.removeAttribute(F.name);M=z}else M=W}if(M.nodeType===Node.TEXT_NODE){W=void 0;z=D;for(I=M;((W=I.nextSibling)==null?void 0:W.nodeType)===Node.TEXT_NODE;)F=void 0,(F=I).textContent!=null||(F.textContent=""),I.nextSibling.textContent&&
(I.textContent+=I.nextSibling.textContent),z.removeChild(I.nextSibling);if(Y.stripWhitespace&&M.textContent&&!M.textContent.trim()){D.removeChild(M);M=M.nextSibling;continue}}gvy(M,Y,{parentIndex:X,parentInfo:t});M.parentNode&&X++;M=M.nextSibling}}var G;if((G=D.hasAttributes)==null?0:G.call(D)){G=R=hnb(R);t=!1;X=Array.from(D.attributes);X=_.a(X);for(W=X.next();!W.done;W=X.next())W=W.value,t=xSb(D,G,W.name,W.value)||t;Z=t||Z}D.nodeType===Node.TEXT_NODE&&(G=Lsi(D.textContent),G.length&&(D.textContent=
qJn(G)||" ",R=hnb(R),Hkl(R,"text","textContent",G),Z=!0));R&&Z&&(R.infoIndex=Y.nodeInfoList.push(R)-1)};
Qmj=function(D,Y){Y={nodeInfoList:[],stripWhitespace:(Y===void 0?!1:Y)||D.hasAttribute("strip-whitespace")};gvy(D.content,Y);return Y};
dSM=function(D){Object.assign(D,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Okb=function(D,Y,R){Y.signalCache!=null||(Y.signalCache={});var Z=Y.signalCache[R];if(!Z){var t=R.split(".");Z=!iko(D,t[0]);if(t.length>1&&Z){var X=D.getPathMutationSignal(t);Z=function(){var M=bM(D.owner,function(){return D.getWithPath([t[0]])}),W,z=(W=X())==null?void 0:W.value;
return{rootWasDefined:M!==void 0,value:z}}}else Z=function(){var M=D.getWithPath(t);
return{rootWasDefined:M!==void 0,value:M}};
Y.signalCache[R]=Z}return Z()};
DNU=function(D,Y,R,Z,t){Y=Y.parts.map(function(M,W){if(M.type==="literal"){R.partWasDefined!=null||(R.partWasDefined=[]);var z;(z=R.partWasDefined)[W]||(z[W]=M.value!==void 0);return M.value}var I;if(M.type==="method"){var F,G=(F=(I=R.partWasDefined)==null?void 0:I[W])!=null?F:!1;G||(G=M.signature.args.every(function(r){return r.type==="literal"}));
var V=!1,e=!0;I=M.signature.args.map(function(r){if(r.type==="literal")return r.value;if(r.type!=="path")throw Error("Fg`"+r.type);var l=Okb(D,R,r.path);r=l.value;l=l.rootWasDefined;V||(V=l);e&&(e=l);return r});
G||(G=t===1?e:V);R.partWasDefined!=null||(R.partWasDefined={});R.partWasDefined[W]=G;if(!G)return;I=(W=Okb(D,R,M.signature.methodName).value)&&typeof W==="function"?W.apply(Z,I):void 0}else F=Okb(D,R,M.path),I=F.value,R.partWasDefined!=null||(R.partWasDefined={}),(G=R.partWasDefined)[W]||(G[W]=I!==void 0||F.rootWasDefined);M.negate&&(I=!I);return I});
if(Y.length===1){var X;return((X=R.partWasDefined)==null?0:X[0])?Y[0]:cco}return Y.join("")};
YQU=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D&&"canNotifyPath"in D};
Ra5=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D};
ZuM=function(D){return"polymerController"in D};
t4j=function(D,Y){Y=""+m4(Y)[0];if(YQU(D))return D.canNotifyPath(Y);if(ZuM(D)&&YQU(D.polymerController))return D.polymerController.canNotifyPath(Y);if(Ra5(D)){var R;return!((R=D.properties)==null||!R[Y])}if(ZuM(D)&&Ra5(D.polymerController)){var Z;return!((Z=D.polymerController.properties)==null||!Z[Y])}return!1};
syr=function(D,Y,R){YQU(D)||Ra5(D)?D.notifyPath(Y,R):ZuM(D)&&(YQU(D.polymerController)||Ra5(D.polymerController))&&D.polymerController.notifyPath(Y,R)};
u65=function(D,Y,R){if(R!==cco){D.kind==="attribute"||D.target!=="textContent"&&(D.target!=="value"||Y.localName!=="input"&&Y.localName!=="textarea")||(R=R===void 0?"":R);var Z,t=(Z=Xdn.Polymer)==null?void 0:Z.sanitizeDOMValue;t&&(R=t(R,D.target,D.kind,Y));if(D.kind==="attribute"){D=D.target;if(D==="class"||D==="name"||D==="slot")Y=(0,_.zm)(Y);qB(Y,R,D)}else if(D=D.target,R!==Y[D]||typeof R==="object")Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!0,vE(Y.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
Y[D]=R,Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!1)}};
an$=function(D,Y,R,Z){var t=Y.parts[0];if(Y.parts.length!==1||t.type!=="path"||!t4j(R,Y.target))return!1;var X=_.a(t.path.split(".")),M=X.next().value,W=BB(X);if(iko(D,M))return!1;Z.signalCache!=null||(Z.signalCache={});X=Z.signalCache[t.path];var z;X=(z=X)==null?void 0:z().value;if((X==null?void 0:X.path)!==void 0){Z=m4(X.path);var I=m4(t.path);Z=[Y.target].concat(_.oK(Z.slice(I.length-1)));syr(R,Z,t.negate?!X.value:X.value);return!0}var F=HE(D,M);var G=F.getChangeRecordSignal(W),V=!1;X=function(){if(!V){var r=
bM(D.owner,function(){return F.getWithPath([])});
V||(V=r!==void 0)}return{value:G(),rootWasDefined:V}};
Z.signalCache[t.path]=X;Z.partWasDefined!=null||(Z.partWasDefined={});X=X();(I=Z.partWasDefined)[0]||(I[0]=X.rootWasDefined);var e=bM(D.owner,function(){return F.getWithPath(W)});
Z.partWasDefined[0]&&bM(D.owner,function(){return void u65(Y,R,t.negate?!e:e)});
return!0};
M45=function(D,Y,R,Z,t,X){if(!an$(D,Y,R,Z)){var M=DNU(D,Y,Z,t,X);bM(D.owner,function(){return void u65(Y,R,M)})}};
Cv9=function(D,Y,R,Z,t,X){R=_.a(R);for(var M=R.next(),W={};!M.done;W={infoIndex:void 0},M=R.next()){M=M.value;var z=M.bindings;W.infoIndex=M.infoIndex;M=M.parentInfo;if(z){z=_.a(z);for(var I=z.next(),F={};!I.done;F={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},I=z.next()){F.b$jscomp$253=I.value;if(W.infoIndex===void 0)throw Error("Gg");F.bindingCtx$jscomp$4={};D.effect(function(G,V){return function(){t&&!t()||M45(D,G.b$jscomp$253,Y[V.infoIndex],G.bindingCtx$jscomp$4,Z,X)}}(F,W))}}M&&Cv9(D,Y,[M],
Z,t,X)}};
Wri=function(D,Y){D=(Y.parentInfo?Wri(D,Y.parentInfo):D).firstChild;for(var R=0;D;D=D.nextSibling)if(Y.parentIndex===R++)return D;throw Error("Hg");};
SQj=function(D,Y,R,Z){D=document.importNode(D.content,!0);D.__noInsertionPoint=!(Z==null?0:Z.hasInsertionPoint);for(var t=Array(Y.length),X={},M=0;M<Y.length;M++){var W=Y[M],z=Wri(D,W);t[M]=z;W.id&&(X[W.id]=z);if(W.templateInfo){var I=z.parentElement;I&&(I.templateInfo=W.templateInfo,I.parentSignalProxy=R,I.eventListenerHost=Z.eventListenerHost,I.stampingEnabled=Z.enabledSignal)}I=void 0;if((I=W.events)==null?0:I.length)for(I=0;I<W.events.length;I++){var F=W.events[I];zaS(Z.eventListenerHost,z,F.name,
F.value,Z.getModel)}}Cv9(R,t,Y,Z.thisCtx,Z.enabledSignal,Z.methodInvocationRequirement);return{root:D,nodes:t,nodesById:X}};
jyU=function(D,Y){D=D();var R;(R=TlS.ShadyCSS)==null||R.prepareTemplate(D,Y);Y=Qmj(D);return{template:D,nodeInfoList:Y.nodeInfoList,hasInsertionPoint:Y.hasInsertionPoint}};
G9y=function(){Inl=!1;for(var D=xy.length,Y=0;Y<D;Y++){var R=xy[Y];if(R)try{R()}catch(Z){Promise.resolve().then(function(){throw Z;})}}xy.splice(0,D);
Frj+=D};
Aan=function(D){Inl||(Inl=!0,V4$.textContent=(fnU++).toString());xy.push(D);return eab++};
_.BE=function(D,Y,R){PE++;D=Y?new nmi(PE,D,Y,R):new rab(PE,D);QT.set(PE,D);return PE};
wdU=function(D){(D=QT.get(D))&&D.cancel()};
vmS=function(D,Y){D=$NU.get(D);return D?(Y=D.get(Y))?Y:null:null};
_.pr=function(D,Y,R,Z){var t=vmS(D,Y);if(!t){t=new omj;var X=$NU.get(D);X||(X=new Map,$NU.set(D,X));X.set(Y,t)}D=R.bind(D);t.run(D,Z,void 0)};
_.buU=function(D,Y){var R;(R=vmS(D,Y))==null||R.cancel()};
yaU=function(D){var Y;(Y=vmS(D,"doRender"))==null||Y.flush()};
Eg=function(D){var Y;return(Y=D.hostElement)!=null?Y:D};
Nli=function(D){var Y=D.indexOf(".");return Y===-1?D:D.slice(0,Y)};
lnM=function(D,Y,R,Z,t,X){X=(t=(Z=X?Nli(Y):Y)?Y:null)?D.get(t):D.__data[Y];t&&X===void 0&&(X=R[Y]);_.MX(D.hostElement,tRU(Z)+"-changed",{value:X,queueProperty:!0,path:t!=null?t:void 0},{bubbles:!1,composed:!1})};
JaS=function(D,Y){D.__isReflecting=!0;USi(D.hostElement,Y,D.__data[Y]);D.__isReflecting=!1};
k9S=function(D){if(D._onIronRequestResizeNotifications){var Y=D._onIronRequestResizeNotifications.bind(D);D._onIronRequestResizeNotifications=function(R){_.cG(R)!==D.hostElement&&Y(R)}}D._ariaActiveAttributeChanged&&(D._ariaActiveAttributeChanged=D._ariaActiveAttributeChanged.bind(D.hostElement));
D._activeChanged&&(D._activeChanged=function(R){D.toggles?qB(D.hostElement,R?"true":"false",D.ariaActiveAttribute):D.hostElement.removeAttribute(D.ariaActiveAttribute);D._changedButtonState()});
D._asyncClick&&(D._asyncClick=function(){_.BE(function(){D.hostElement.click()},1)});
!D.keyEventTarget||D.keyEventTarget instanceof EventTarget||(D.keyEventTarget=Eg(D.keyEventTarget));D._disabledChanged&&(D._disabledChanged=D._disabledChanged.bind(D.hostElement));D._observeItems&&(D._observeItems=function(R){var Z=Eg(R);return _.oR(Z).observeNodes(function(t){D._updateItems();D._updateSelected();_.MX(Z,"iron-items-changed",t,{bubbles:!1,cancelable:!1})})});
D._updateItems&&D._updateItems===_.gd._updateItems&&(D._updateItems=function(){var R=_.oR(D.hostElement).queryDistributedElements(D.selectable||"*");R=Array.prototype.filter.call(R,D._bindFilterItem);D._setItems(R)});
D._computeKeyboardClass&&(D._computeKeyboardClass=function(R){_.Cr(D.hostElement,"keyboard-focus",R)});
D.ensureRipple&&(D.ensureRipple=function(R){if(D.hasRipple&&!D.hasRipple()){if(!D._createRipple)return;D._ripple=D._createRipple();D._ripple.noink=D.noink;var Z=D._rippleContainer||D.hostElement;Z&&_.aU(Z).appendChild(D._ripple)}var t;if(R&&((t=D._ripple)==null?0:t.uiDownAction)){Z=_.aU(D._rippleContainer||D.hostElement);var X;t=(X=R.composedPath())==null?void 0:X[0];Z.contains(t)&&D._ripple.uiDownAction(R)}});
D._updateMultiselectable&&(D._updateMultiselectable=function(R){R?D.hostElement.setAttribute("aria-multiselectable","true"):D.hostElement.removeAttribute("aria-multiselectable")})};
UNi=function(D,Y,R){R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next())Ws5(Z.value.constructor,D);Ws5(Y.constructor,D)};
hay=function(D,Y){D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,R.type==="signal"){var Z=R.propertyKey;if(Y.hasOwnProperty(Z)&&Y[Z]!=null&&R.attributeType===Object){a:{Z=Y[Z].constructor;for(var t=_.a(KrU),X=t.next();!X.done;X=t.next())if(X=X.value,Z===X){Z=X;break a}Z=Object}R.attributeType=Z}}};
LrU=function(){};
mNr=function(D){var Y;return(Y=D.hostElement)!=null?Y:D};
qQU=function(){throw Error("Lg");};
HuU=function(D,Y){D.constructor.prototype.useSignals=!0;var R=new D.constructor;UNi(R,D,Y.behaviors);hay(Y.reactiveSchemas,R);R={};for(var Z=_.a(Y.reactiveSchemas),t=Z.next();!t.done;t=Z.next())t=t.value,t.type==="signal"&&(R[t.propertyKey]=t.attributeType);var X={copyPropertiesToProto:qQU,didRegister:!1,typesForSignals:R},M=["disable-upgrade"].concat(_.oK(Y.observedAttributes)),W=function(z){dd.call(this,D,Y,X,z)};
_.n(W,dd);_.YF.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
X.copyPropertiesToProto=function(){for(var z=0;z<Y.behaviors.length;z++)SJo(Y.behaviors[z],W.prototype);SJo(D,W.prototype)};
Y.legacyOptimizations||X.copyPropertiesToProto();W.prototype.is=D.is;return W};
xNM=function(D,Y){if(Object.getPrototypeOf(Y.prototype).constructor!==_.N)throw Error("Mg");Y.prototype.is=D.is;return HuU(Y.prototype,D)};
Pvj=function(D){return D.type==="compute"||D.type==="computeWithMethod"};
Qyb=function(D){for(var Y=D.reactiveSchemas.filter(Pvj),R=new Map,Z=new Map,t=new Map,X=_.a(Y),M=X.next();!M.done;M=X.next())M=M.value,R.set(M.propertyKey,M),Z.set(M.propertyKey,[]),t.set(M.propertyKey,0);X=0;Y=_.a(Y);for(M=Y.next();!M.done;M=Y.next()){M=M.value;for(var W=_.a(M.type==="computeWithMethod"?M.method.args:M.args),z=W.next();!z.done;z=W.next())z=z.value,z.type!=="literal"&&(z=z.path.split(".")[0],Z.has(z)&&(Z.get(z).push(M.propertyKey),t.set(M.propertyKey,t.get(M.propertyKey)+1),X++))}M=
[].concat(_.oK(Z.keys())).filter(function(I){return t.get(I)===0});
for(Y=[];M.length;)for(W=M.shift(),Y.push(R.get(W)),W=_.a(Z.get(W)),z=W.next();!z.done;z=W.next())z=z.value,t.set(z,t.get(z)-1),X--,t.get(z)===0&&M.push(z);R=D.reactiveSchemas.filter(function(I){return!Pvj(I)});
D.reactiveSchemas=[].concat(_.oK(R),_.oK(Y))};
BlU=function(D,Y){if(Y.properties)for(var R=_.a(Object.entries(Y.properties)),Z=R.next();!Z.done;Z=R.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;D.properties[Z]=typeof t==="function"?{type:t}:t}Y.observers&&D.observers.push.apply(D.observers,_.oK(Y.observers));Y.disabledPolySiReactions&&D.disabledPolySiReactions.push.apply(D.disabledPolySiReactions,_.oK(Y.disabledPolySiReactions))};
pdy=function(D,Y){for(var R=Y.length-1;R>=0;R--){var Z=Y[R];Array.isArray(Z)?pdy(D,Z):D.indexOf(Z)<0&&D.unshift(Z)}};
Em9=function(D,Y){D.reactiveSchemas=D.reactiveSchemas.filter(function(R){return R.type==="observe"&&Y.includes(R.method.methodName)||Pvj(R)&&Y.includes(R.propertyKey)?!1:!0})};
dNi=function(D,Y){var R=Y.prototype,Z,t,X={is:D.is,reactiveSchemas:[],observedAttributes:[],behaviors:[sm9.InjectBehavior,Kr.prototype],disableElementRegistration:D.disableElementRegistration,provide:(Z=D.providers)!=null?Z:[],reactivityMode:D.reactivityMode,signalProperties:(t=R.signalProperties)!=null?t:[]};"template"in Y?X.templateGetter=function(){return Y.template}:D.getTemplate&&(X.templateGetter=D.getTemplate);
R.behaviors&&pdy(X.behaviors,R.behaviors);gmn(X,Y);return X};
gmn=function(D,Y){for(var R=Y.prototype,Z={properties:{},observers:[],disabledPolySiReactions:[]},t=_.a(D.behaviors),X=t.next();!X.done;X=t.next())BlU(Z,X.value);BlU(Z,R);if(D.signalProperties)for(R=_.a(D.signalProperties),t=R.next();!t.done;t=R.next())delete Z.properties[t.value];R=_.a(Object.entries(Z.properties));for(t=R.next();!t.done;t=R.next()){X=_.a(t.value);t=X.next().value;X=X.next().value;var M=void 0;if((M=D.signalProperties)==null||!M.includes(t)){M=void 0;var W=D,z=X.type;if(!z)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{z=Reflect.getMetadata("design:type",Y,t);for(var I=_.a(iuU),F=I.next();!F.done;F=I.next())if(F=F.value,z===F){z=F;break a}z=Object}else z=String;X.computed||X.selector||(W.reactiveSchemas.push({type:"signal",propertyKey:t,value:X.value,attributeType:z,readOnly:X.readOnly}),W.observedAttributes.push(_.f2(t)));X.reflectToAttribute&&W.reactiveSchemas.push({type:"reflect",propertyKey:t});if(X.computed){z=k7r(X.computed);if(!z)throw Error("Ng");W.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:t,method:z,value:X.value})}X.observer&&W.reactiveSchemas.push({type:"observe",method:{methodName:X.observer,args:[{type:"path",path:t}]}});X.notify&&W.reactiveSchemas.push({type:"notify",propertyKey:t});X.selector&&W.reactiveSchemas.push({type:"redux",propertyKey:t,selector:X.selector,selectorArgs:(M=X.selectorArgs)!=null?M:[]})}}Our&&Qyb(D);Y=_.a(Z.observers);for(t=Y.next();!t.done;t=Y.next())R=D,t=t.value,(X=k7r(t))?R.reactiveSchemas.push({type:"observe",method:X}):console.log('Warning: unable to parse observe declaration: "'+
t+'"');Em9(D,Z.disabledPolySiReactions)};
caM=function(D,Y){for(var R=0;R<Y.length;R++){var Z=Y[R],t=void 0;(t=Z).showHideApi!=null||(t.showHideApi={});t=void 0;!!D!==!((t=Z.showHideApi)==null||!t.hideTemplateChildren)&&(Z.nodeType===Node.TEXT_NODE?D?(Z.showHideApi.polymerTextContent=Z.textContent,Z.textContent=""):(t=void 0,Z.textContent=(t=Z.showHideApi.polymerTextContent)!=null?t:null):Z instanceof Element&&Z.localName==="slot"?D?(Z.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.zm)((0,_.zm)(Z).parentNode).replaceChild(Z.showHideApi.polymerReplaced,
Z)):(t=Z.showHideApi.polymerReplaced)&&(0,_.zm)((0,_.zm)(t).parentNode).replaceChild(Z,t):Z instanceof HTMLElement&&Z.style&&(D?(Z.showHideApi.polymerDisplay=Z.style.display,Z.style.display="none"):Z.style.display=Z.showHideApi.polymerDisplay));Z.showHideApi.hideTemplateChildren=D;Z.showHideChildren&&Z.showHideChildren(D)}};
YAU=function(){if(!Dui){var D=document.createElement("style");D.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(D);Dui=!0}};
iP=function(){return _.f("disable_hidden_dom_if_using_stamper")};
RyS=function(D,Y){var R=_.Og().getState();return Y?D.apply(null,[R].concat(_.oK(Y))):D(R)};
sul=function(){if(Z1U)return Z1U;var D=_.a(_.ae(0,void 0,"MB1Hb")),Y=D.next().value;D.next();var R=D.next().value;_.Og().subscribe(function(){tyn(R)});
return Z1U=Y};
tyn=function(D){X75||(X75=!0,Promise.resolve().then(function(){D(function(Y){return Y+1});
X75=!1}))};
_.Og=function(){return udo.getAppStore()};
aMb=function(D,Y){return udo.getSelectFn()(D,Y)};
_.cE=function(D){udo.getDispatchFn()(D)};
My9=function(D,Y){var R={},Z;for(Z in D)R[Z]=Y(D[Z],Z);return R};
_.DX=function(D,Y){return function(){var R;return(R=_.v_(D))!=null?R:Y}};
_.YC=function(D,Y){var R=Object.assign({},D),Z;for(Z in Y)Y.hasOwnProperty(Z)&&(R[Z]=_.DX(D[Z],Y[Z]));return R};
C5r=function(D,Y,R){D instanceof Element&&(R.debugName||(R.debugName="<"+D.tagName.toLowerCase()+(D.tagName.includes("-")?">":"."+D.className+">")),_.f("ytwiz_enable_debug_component_props")&&(D.debugProps||(D.debugProps=My9(Y,function(Z){return function(){return Z()}}))))};
zyU=function(D){var Y;if(!(Y=W9o.value.traceAllComponents)){var R;Y=(R=DQ)==null?void 0:R.activeSpan;Y=(Y==null?void 0:Y.name)!=="ytComponent"}return Y?La9("ytComponent",{},D):D()};
_.RT=function(D,Y){var R=function(Z){return zyU(function(t){var X=SAU={};var M;if(((M=R)==null?0:M.idomCompat)&&Z.renderedFromIdom){var W;M=typeof R.idomCompat==="object"?(W=R)==null?void 0:W.idomCompat.callbacks:{};M=_.a(Tn$(Z,M,R.debugName));W=M.next().value;M.next();M=M.next().value;var z=ju5(D,W);X.privateValue=z;SAU=void 0;C5r(z,W,R);X={debugName:R.debugName};t&&X&&Object.assign(t.attributes,X);t=BuU(z);t=Array.isArray(t)?t[0]:t;t[ap]||(t[ap]={});t[ap].updateSignalsFromIdomProps=M;IMn(W,z);return z}M=
My9(Z,F9b);W=ju5(D,M);X.privateValue=W;SAU=void 0;C5r(W,M,R);X={debugName:R.debugName};t&&X&&Object.assign(t.attributes,X);IMn(M,W);return W})};
R.debugName=Y===void 0?"":Y;return R};
ju5=function(D,Y){D=D(Y);return z6(D)};
GrU=function(D,Y){D[Y]||(D=new _.AT("IDOM interop setter undefined. Key:",Y),_.Nb(D))};
F9b=function(D,Y){return Y==="children"||Y==="ref"||typeof D==="function"||D===void 0?D:function(){return _.v_(D)}};
Tn$=function(D,Y,R){var Z={},t={},X={},M={},W;for(W in D){M={key$jscomp$924:M.key$jscomp$924};M.key$jscomp$924=W;var z=D[M.key$jscomp$924];if(M.key$jscomp$924==="children"||M.key$jscomp$924==="ref")Z[M.key$jscomp$924]=z;else if(typeof z==="function")M.key$jscomp$924 in Y||z.length>0?(X[M.key$jscomp$924]=z,Z[M.key$jscomp$924]=function(F){return function(){return X[F.key$jscomp$924].apply(X,_.oK(_.UN.apply(0,arguments)))}}(M)):Z[M.key$jscomp$924]=z;
else if(!(D[M.key$jscomp$924]===void 0&&M.key$jscomp$924 in Y)){var I=_.a(_.ae(D[M.key$jscomp$924],{debugName:M.key$jscomp$924+":cwis:"+R},"rvrjQe"));z=I.next().value;I=I.next().value;Z[M.key$jscomp$924]=z;t[M.key$jscomp$924]=I}}return[Z,t,function(F){var G={},V;for(V in F)G={key$jscomp$925:G.key$jscomp$925,val$jscomp$121:void 0},G.key$jscomp$925=V,G.val$jscomp$121=F[G.key$jscomp$925],G.key$jscomp$925!=="children"&&G.key$jscomp$925!=="ref"&&(typeof G.val$jscomp$121==="function"?G.key$jscomp$925 in
Y?X[G.key$jscomp$925]=G.val$jscomp$121:G.val$jscomp$121.length>0&&(X[G.key$jscomp$925]=G.val$jscomp$121,_.Jk(new _.AT("Callback detected that was not set in the idomCompat callbacks map. Key:",G.key$jscomp$925))):G.key$jscomp$925 in Y&&G.val$jscomp$121===void 0||(GrU(t,G.key$jscomp$925),Tk(function(e){return function(){t[e.key$jscomp$925](e.val$jscomp$121)}}(G))))}]};
eyU=function(D,Y,R){var Z=zDo(D.prototype,Vyb,D.prototype.behaviors);Z.prototype.is=Y;Z.prototype.localName=Y;R&&fMU(Z,R);return function(t){t&&(Z.prototype.hostElement=t);var X=new Z;X.root=X;X.hostElement=t;return X}};
fMU=function(D,Y){var R;Object.defineProperty(D.prototype,"_template",{get:function(){R===void 0&&(R=Y());return R},
set:function(Z){R=Z},
configurable:!0,enumerable:!0})};
$ui=function(D,Y,R,Z){function t(){if(!e){for(var r=new Set,l=_.a(F),U=l.next();!U.done;U=l.next()){U=U.value;for(var K=_.a(Object.getOwnPropertyNames(U)),H=K.next();!H.done;H=K.next()){H=H.value;var c=void 0,Q=(c=Object.getOwnPropertyDescriptor(U,H))==null?void 0:c.value;Q&&Q instanceof Function&&!ZX(H)&&(!W[H]||_.f("polymer_forward_method_killswitch"))&&r.add(H)}}l=_.a(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(U=l.next();!U.done;U=l.next())K=_.a(U.value),U=K.next().value,
K=K.next().value,K.value instanceof Function&&!ZX(U)&&r.add(U);e=r}return e}
AX9(D,Y,Z==null?void 0:Z.providers);Sr5(D.prototype,D,!0);var X=eyU(D,Y,R),M,W=(M=D.prototype.properties)!=null?M:{},z,I,F=(I=(z=D.prototype.behaviors)==null?void 0:z.flat(Infinity))!=null?I:[];R=_.a(F);for(M=R.next();!M.done;M=R.next())W=Object.assign({},M.value.properties,W);var G=[].concat(_.oK(nqj),_.oK(Object.keys(W).map(function(r){return _.f2(r)}))),V=!1,e;
return{ctor:function(r,l){var U=X(r),K,H;r=[].concat(_.oK((K=Z==null?void 0:Z.allowedProps)!=null?K:[]),_.oK((H=Z==null?void 0:Z.allowedPropsFromBehaviors)!=null?H:[]));U.allowedProps=r.length>0?r:void 0;K={};H=_.a(G);for(r=H.next();!r.done;r=H.next())r=r.value,K[r]=_.eP(r);U.__dataAttributes=K;var c=U.ready.bind(U);U.ready=function(){l.beforeReady();c();if(wd(Y)&&!V){var Q=U.__templateInfo;if(Q==null?0:Q.hostProps){Q=_.a(Object.keys(Q.hostProps));for(var E=Q.next();!E.done;E=Q.next())vE(Y,E.value,
"PROPERTY_ACCESS_GET_INTERNAL")}V=!0}};
U._overrideLegacyUndefined=!0;return U},
props:W,observedAttributes:G,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var r=[],l=new Set,U=_.a(Object.keys(W)),K=U.next();!K.done;K=U.next())K=K.value,r.push([K,W[K].readOnly]),l.add(K);U=t();K=_.a(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var H=K.next();!H.done;H=K.next())H=H.value,!rXl(H)||U.has(H)||l.has(H)||(r.push([H,!1]),l.add(H));l=_.a(w7r);for(U=l.next();!U.done;U=l.next())r.push([U.value,!0]);return r},
getPropsToForwardBeforeReady:function(r){for(var l=[],U=_.a(Object.entries(r)),K=U.next();!K.done;K=U.next()){var H=_.a(K.value);K=H.next().value;H=H.next().value;if(rXl(K)&&!(H instanceof Function)&&(l.push([K,!1]),wd(Y))){var c=H=void 0;(c=(H=r)._createPropertyAccessor)==null||c.call(H,K)}}return l},
shouldForwardProp:rXl,shouldLog:wd}};
AX9=function(D,Y,R){X5i(D,R);D.prototype.behaviors.unshift(vqM);if(pzi()){if(wd(Y)){var Z;(Z=D.prototype).behaviors!=null||(Z.behaviors=[]);D.prototype.behaviors.unshift(iAy())}OAU(D)}_.v(Kr.prototype)(D.prototype,"__templateHelpers")};
ZX=function(D){return oqU.has(D)||D.startsWith("__compute__")};
rXl=function(D){return!ZX(D)&&!D.startsWith("_")&&!D.endsWith("_")};
JX5=function(D,Y){function R(){var V=z();V=_.a(V);for(var e=V.next();!e.done;e=V.next()){var r=_.a(e.value);e=r.next().value;r=r.next().value;b1U(G.prototype,e,r)}Z=!0}
var Z=!1,t=D.ctor,X=D.getInitialMethods,M=D.observedAttributes,W=D.getPropsToForwardBeforeReady,z=D.getPropsToForwardBeforeRegister,I=D.shouldForwardProp,F=D.shouldLog,G=function(){var V=HTMLElement.call(this)||this;V.didForwardDynamicProps=!1;V.loggingStatus={};Z||R();V.inst=t(V,{beforeReady:function(){V.didForwardDynamicProps||(V.forwardDynamicProps(),V.didForwardDynamicProps=!0)}});
V.controllerProxy=goi(V.inst,Y);V.forwardMethods();return V};
_.n(G,HTMLElement);G.prototype.forwardMethods=function(){for(var V=this,e=_.a(this.inst.getExtraMethodsToForward()),r=e.next(),l={};!r.done;l={method$jscomp$63:void 0},r=e.next()){var U=_.a(r.value);r=U.next().value;U=U.next().value;l.method$jscomp$63=U;this[r]=function(K){return function(){return K.method$jscomp$63.call.apply(K.method$jscomp$63,[V.inst].concat(_.oK(_.UN.apply(0,arguments))))}}(l)}e=_.a(X());
for(l=e.next();!l.done;l=e.next())l=l.value,I(l)&&yXj(this,l),F(Y)&&!ZX(l)&&NnS(this.inst,l)};
G.prototype.forwardDynamicProps=function(){var V=W(this.inst);V=_.a(V);for(var e=V.next();!e.done;e=V.next()){var r=_.a(e.value);e=r.next().value;r=r.next().value;b1U(this,e,r);F(Y)&&!ZX(e)&&lMb(this.inst,e)}};
G.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
G.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
G.prototype.attributeChangedCallback=function(V,e,r){this.inst.attributeChangedCallbackWrapper(V,e,r)};
_.YF.Object.defineProperties(G.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return Y}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.YF.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
customElements.define(Y,G)};
b1U=function(D,Y,R){D.hasOwnProperty(Y)||Object.defineProperty(D,Y,{get:function(){var Z,t=((Z=D.is)!=null?Z:D.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||vE(t,Y,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Z=this.polymerController[Y],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Z},
set:function(Z){if(!R){var t,X=((t=D.is)!=null?t:D.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||vE(X,Y,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=Y,this.loggingStatus.bypassProxyController=!0,this.polymerController[Y]!==Z&&(t={},this.polymerController.setProperties((t[Y]=Z,t)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
yXj=function(D,Y,R){var Z=D.polymerController;D[Y]=function(){var t=_.UN.apply(0,arguments);D.loggingStatus.currentExternalCall=Y;D.loggingStatus.bypassProxyController=!0;var X,M=((X=D.is)!=null?X:D.tagName).toLowerCase();vE(M,Y,"PROPERTY_ACCESS_CALL_EXTERNAL");var W;X=(W=R!=null?R:Z[Y])==null?void 0:W.call.apply(W,[Z].concat(_.oK(t)));D.loggingStatus.currentExternalCall=void 0;D.loggingStatus.bypassProxyController=!1;return X}};
NnS=function(D,Y){var R=D.hostElement,Z=D[Y];D[Y]=function(){var t=_.UN.apply(0,arguments);if(R.loggingStatus.currentExternalCall!==Y){var X,M=((X=R.is)!=null?X:R.tagName).toLowerCase();vE(M,Y,"PROPERTY_ACCESS_CALL_INTERNAL")}return Z==null?void 0:Z.apply(D,t)}};
lMb=function(D,Y){var R=Object.getOwnPropertyDescriptor(D,Y);R&&!R.get&&Object.defineProperty(D,Y,{get:function(){d6r(D.hostElement,Y);return R.value},
set:function(Z){oU(D.hostElement,Y);R.value=Z}})};
kro=function(D){return _.f("poly_si_dom_repeat_detached_fix_killswitch")||D.tagName!=="PS-DOM-REPEAT"?D.tagName==="DOM-REPEAT":!0};
K9r=function(D,Y){var R=Uui(D);D instanceof Element&&R.unshift(D);D=_.a(R.filter(kro));for(var Z=D.next();!Z.done;Z=D.next()){var t=void 0;Z=_.a((t=Z.value.__instances)!=null?t:[]);for(t=Z.next();!t.done;t=Z.next())if(t=t.value,t.root){t=Array.from(t.root.children);t=_.a(t);for(var X=t.next();!X.done;X=t.next())R.push.apply(R,_.oK(K9r(X.value,Y)))}}return R.filter(function(M){return M.usePatchedLifecycles&&M.lifecycleIsConnected===Y})};
Uui=function(D){var Y=null;D instanceof Element?Y=Element.prototype.querySelectorAll:D instanceof DocumentFragment&&(Y=DocumentFragment.prototype.querySelectorAll);return Y?Array.from(Y.call(D,"*")):[]};
ti=function(D){uM(function(){for(var Y=_.a(K9r(D,!1)),R=Y.next();!R.done;R=Y.next()){R=R.value;R.lifecycleIsConnected=!0;try{var Z=void 0,t=void 0,X=void 0,M=void 0;(Z=(M=R.polymerController)!=null?M:R)==null||(X=(t=Z).connectedCallback)==null||X.call(t)}catch(W){_.Nb(W)}}})};
s4=function(D){uM(function(){for(var Y=_.a(K9r(D,!0)),R=Y.next();!R.done;R=Y.next()){R=R.value;R.lifecycleIsConnected=!1;try{var Z=void 0,t=void 0,X=void 0,M=void 0;(Z=(M=R.polymerController)!=null?M:R)==null||(X=(t=Z).disconnectedCallback)==null||X.call(t)}catch(W){_.Nb(W)}}})};
P59=function(){if(!hyS){hyS=!0;var D=[Node];XK&&D.push(XK.Wrapper);var Y=Node.prototype.insertBefore,R=Node.prototype.removeChild;D=_.a(D);for(var Z=D.next(),t={};!Z.done;t={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Z=D.next())Z=Z.value,t.nativeInsertBefore=Z.prototype.insertBefore,Z.prototype.insertBefore=function(M){return function(W,z){if(W instanceof DocumentFragment){var I=Array.from(W.children);W=M.nativeInsertBefore.call(this,W,z);
if(this.isConnected&&M.nativeInsertBefore===Y)for(z=_.a(I),I=z.next();!I.done;I=z.next())ti(I.value);return W}I=W instanceof Element&&W.isConnected;z=M.nativeInsertBefore.call(this,W,z);I&&s4(W);this.isConnected&&ti(W);return z}}(t),t.nativeAppendChild=Z.prototype.appendChild,Z.prototype.appendChild=function(M){return function(W){if(W instanceof DocumentFragment){var z=Array.from(W.children);
W=M.nativeAppendChild.call(this,W);if(this.isConnected){z=_.a(z);for(var I=z.next();!I.done;I=z.next())ti(I.value)}return W}z=W instanceof Element&&W.isConnected;I=M.nativeAppendChild.call(this,W);z&&s4(W);this.isConnected&&ti(W);return I}}(t),t.nativeRemoveChild=Z.prototype.removeChild,Z.prototype.removeChild=function(M){return function(W){var z=W instanceof Element&&W.isConnected,I=M.nativeRemoveChild.call(this,W);
z&&R===M.nativeRemoveChild&&s4(W);return I}}(t),t.nativeReplaceChild=Z.prototype.replaceChild,Z.prototype.replaceChild=function(M){return function(W,z){if(W instanceof DocumentFragment){var I=Array.from(W.children);
W=M.nativeReplaceChild.call(this,W,z);if(this.isConnected)for(s4(z),z=_.a(I),I=z.next();!I.done;I=z.next())ti(I.value);return W}I=W instanceof Element&&W.isConnected;var F=this.isConnected,G=M.nativeReplaceChild.call(this,W,z);F&&s4(z);I&&s4(W);F&&ti(W);return G}}(t);
D=[Element];XK&&D.push(XK.Wrapper);D=_.a(D);Z=D.next();for(t={};!Z.done;t={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Z=D.next())Z=Z.value,Z.prototype.before=L99(Z.prototype.before),Z.prototype.after=L99(Z.prototype.after),t.nativeReplaceWith=Z.prototype.replaceWith,Z.prototype.replaceWith=function(M){return function(){var W=_.UN.apply(0,arguments),z=_.a(mul(W)),I=z.next().value,
F=z.next().value;z=this.isConnected;M.nativeReplaceWith.apply(this,W);W=_.a(F);for(F=W.next();!F.done;F=W.next())s4(F.value);if(z)for(s4(this),I=_.a(I),z=I.next();!z.done;z=I.next())z=z.value,z instanceof Element&&ti(z)}}(t),t.nativeRemove=Z.prototype.remove,Z.prototype.remove=function(M){return function(){var W=this.isConnected;
M.nativeRemove.call(this);W&&s4(this)}}(t),t.nativeInsertAdjacentElement=Z.prototype.insertAdjacentElement,Z.prototype.insertAdjacentElement=function(M){return function(W,z){var I=z.isConnected;
W=M.nativeInsertAdjacentElement.call(this,W,z);I&&s4(z);W.isConnected&&ti(W);return W}}(t),t.nativeSetAttribute=Z.prototype.setAttribute,Z.prototype.setAttribute=function(M){return function(W,z){var I=qAM(this);
if(!I.usePatchedLifecycles)return M.nativeSetAttribute.call(this,W,z);var F=this.getAttribute(W);M.nativeSetAttribute.call(this,W,z);z=this.getAttribute(W);H1l(I,W,F,z)}}(t),t.nativeRemoveAttribute=Z.prototype.removeAttribute,Z.prototype.removeAttribute=function(M){return function(W){var z=qAM(this);
if(!z.usePatchedLifecycles)return M.nativeRemoveAttribute.call(this,W);var I=this.getAttribute(W);M.nativeRemoveAttribute.call(this,W);I!==null&&H1l(z,W,I,null)}}(t),t.nativeToggleAttribute=Z.prototype.toggleAttribute,Z.prototype.toggleAttribute=function(M){return function(W,z){var I=qAM(this);
if(!this.usePatchedLifecycles)return M.nativeToggleAttribute.call(this,W,z);var F=this.getAttribute(W),G=F!==null;z=M.nativeToggleAttribute.call(this,W,z);z!==G&&H1l(I,W,F,z?"":null);return z}}(t);
D=[Document,DocumentFragment,Element,ShadowRoot];XK&&D.push(XK.Wrapper);D=_.a(D);for(t=D.next();!t.done;t=D.next())t=t.value,t.prototype.prepend=L99(t.prototype.prepend),t.prototype.append=L99(t.prototype.append);(XK==null?void 0:XK.noPatch)===!0&&xu$();document.readyState==="complete"?ti(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&ti(document.body)});
var X=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");X&&X.get&&X.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:X.enumerable,configurable:!0,get:X.get,set:function(M){M||s4(this);X.set.call(this,M);return M}})}};
L99=function(D){return function(){var Y=_.UN.apply(0,arguments),R=_.a(mul(Y)),Z=R.next().value;R=R.next().value;D.apply(this,Y);Y=_.a(R);for(R=Y.next();!R.done;R=Y.next())s4(R.value);if(this.isConnected)for(Z=_.a(Z),Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,Y instanceof Element&&ti(Y)}};
xu$=function(){for(var D=_.a(QuU),Y=D.next();!Y.done;Y=D.next()){Y=Y.value.prototype;for(var R=_.a(Bnn),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=Object.getOwnPropertyDescriptor(Y,Z);t&&Object.defineProperty(Y,"__shady_native_"+Z,t)}}};
H1l=function(D,Y,R,Z){var t,X;if((t=D.polymerController)==null?0:(X=t.observedAttributes)==null?0:X.includes(Y))if(D=D.polymerController,D.attributeChangedCallbackWrapper)D.attributeChangedCallbackWrapper.call(D,Y,R,Z);else{var M;(M=D.attributeChangedCallback)==null||M.call(D,Y,R,Z)}};
mul=function(D){var Y=[],R=[];D=_.a(D);for(var Z=D.next();!Z.done;Z=D.next())Z=Z.value,Z instanceof Element&&Z.isConnected&&R.push(Z),Z instanceof DocumentFragment?Y.push.apply(Y,_.oK(Array.from(Z.children))):Y.push(Z);return[Y,R]};
qAM=function(D){return!(D instanceof Element)&&D.node instanceof Element?D.node:D};
p7n=function(D,Y){var R=Y?["children"].concat(_.oK(Y)):["children"];Y=[];R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next()){var t=Z.value;if(D.hasOwnProperty(t)){Z=D[t];Z=typeof Z==="function"?Z():Z;Z=Array.isArray(Z)?Z:[Z];Z=z6(Z).flat();if(t!=="children"){t=tRU(t);for(var X=_.a(Z),M=X.next();!M.done;M=X.next())M=M.value,M instanceof Element&&M.setAttribute("slot",t)}Y.push(Z)}}Y.length===0?D=[]:(D=z6(_.S("div",null,Y)),D=Array.from(D.childNodes));return D};
gqo=function(D,Y,R){var Z={};_.oe(function(){var t={},X;for(X in Y)if(Y.hasOwnProperty(X)){var M=void 0,W=void 0;if(!(((M=R.slotProps)==null?0:M.includes(X))||X==="children"||((W=R.callbackProps)==null?0:W.includes(X))||X==="ref")&&(M=_.v_(Y[X]),Z[X]!==M)){Z[X]=M;W=void 0;var z=(W=D.hostElement)!=null?W:D;Eqi.has(X)&&(z[X]=M);t[X]=M}}Tk(function(){if(D.setProperties)D.setProperties(t);else for(var I=_.a(Object.entries(t)),F=I.next();!F.done;F=I.next()){var G=_.a(F.value);F=G.next().value;G=G.next().value;
D[F]=G}})})};
i1S=function(D,Y,R,Z){var t=p7n(R,Z.slotProps),X=(0,_.zm)(D);t=_.a(t);for(var M=t.next();!M.done;M=t.next())X.appendChild(M.value);gqo(Y,R,Z);Z=_.a(Z.callbackProps||[]);t=Z.next();for(X={};!t.done;X={kebabEventName:void 0,eventListener:void 0},t=Z.next())M=t=t.value,String(t).substring(0,2)==="on"&&R[M]?(X.kebabEventName=tRU(String(t).substring(2)),X.eventListener=R[M],D.addEventListener(X.kebabEventName,X.eventListener),_.w2(function(F){return function(){D.removeEventListener(F.kebabEventName,F.eventListener)}}(X))):
Y[M]=R[M];
if(R.ref){R=_.a(du9(R.ref));var W=R.next().value,z=R.next().value,I=Y.attached.bind(Y);Y.attached=function(){W(D);I()};
_.w2(function(){z()})}};
du9=function(D){if(typeof D==="function"){var Y;return[function(R){Y=D(R)},
function(){var R;(R=Y)==null||R()}]}if(!D.onRender||!D.onUnmount)throw Error("Rg");
return[D.onRender,D.onUnmount]};
YfS=function(D,Y,R,Z,t){Z=Z===void 0?{}:Z;var X=O1S,M=!1;X?(M=!0,O1S=void 0):(cXl=Y,X=document.createElement(Y),cXl=void 0);var W=X;W.usePatchedLifecycles=!0;W.lifecycleIsConnected=!1;X.loggingStatus={};var z=D9y(D,Y,X,Z,t);_.w2(function(){W.lifecycleIsConnected&&(W.lifecycleIsConnected=!1,z.disconnectedCallback())});
M||(_.f("sink_wrapper_disable_runtime_shadycss")&&(X.__noInsertionPoint=!0),i1S(X,z,R,Z));return X};
D9y=function(D,Y,R,Z,t){t=t===void 0?$ui:t;Rvo[Y]!=null||(Rvo[Y]=t(D,Y,Z==null?void 0:Z.getTemplate,Z));var X=Rvo[Y],M=X.ctor;t=X.getInitialMethods;var W=X.getPropsToForwardBeforeReady;D=X.getPropsToForwardBeforeRegister;Z=X.shouldForwardProp;var z=X.observedAttributes,I=X.shouldLog,F=M(R,{beforeReady:function(){var G=F;G._takeAttributes?G._takeAttributes():G.setPropertiesFromInitialAttributeValues&&G.setPropertiesFromInitialAttributeValues();G=_.a(W(R.polymerController));for(var V=G.next();!V.done;V=
G.next()){var e=_.a(V.value);V=e.next().value;e=e.next().value;b1U(R,V,e);I(Y)&&!ZX(V)&&lMb(R.polymerController,V)}R.polymerController=goi(F,Y)}});
R.polymerController=F;R.polymerController.observedAttributes=z;X=_.a(F.getExtraMethodsToForward());for(M=X.next();!M.done;M=X.next())z=_.a(M.value),M=z.next().value,z=z.next().value,yXj(R,M,z);t=_.a(t());for(X=t.next();!X.done;X=t.next())X=X.value,Z(X)&&yXj(R,X),I(Y)&&!ZX(X)&&NnS(F,X);D=_.a(D());for(Z=D.next();!Z.done;Z=D.next())t=_.a(Z.value),Z=t.next().value,t=t.next().value,b1U(R,Z,t);return F};
txU=function(D,Y){return uf===Y?(D.isInert=!0,uf="",!0):ZW5===Y?(D.isInert=!0,ZW5="",!0):!1};
sHi=function(D){var Y=aT;aT=D;return Y};
upn=function(D){if(MI.has(D))ZW5=D;else if(C8.has(D)&&aT&&XSi(aT)===D){var Y;(Y=aT)._numRenders!=null||(Y._numRenders=0);aT._numRenders++;if(aT._numRenders>1)throw Error("Sg");return aT}};
afM=function(D){MI.has(XSi(D))?ZW5=XSi(D):C8.has(XSi(D))&&aT!==D&&(D._isInert=!0)};
XSi=function(D){var Y;return(Y=D==null?void 0:D.tagName.toLowerCase())!=null?Y:""};
Mx5=function(D,Y){if(D.componentType===f4)throw Error("Tg");C8.add(Y);var R=function(){var Z=HTMLElement.call(this)||this;Z.is=Y;if(cXl===Y)return Z.isInert=!0,Z;Z.createElement();return Z};
_.n(R,HTMLElement);R.prototype.createElement=function(){if(!this.isInert){O1S=this;var Z=_.a(_.Ixn(function(){return _.S(D,null)})).next().value;
O1S=void 0;dSM(this);return Z}};
customElements.define(Y,R)};
WdS=function(D,Y,R,Z,t){D.prototype.is=Y;(Z==null?0:Z.useSink)?CbM(D,Y,R,Z,t):(R=$ui(D,Y,R,Z),JX5(R,Y));return D};
CbM=function(D,Y,R,Z,t){P59();var X=_.RT(function(M){return YfS(D,Y,M,Object.assign({},Z,{getTemplate:R}),t)},"a");
X.debugName=Y+" (CoW wrapped)";Mx5(X,Y);return X};
SfU=function(D){return!zvn.has(D)};
Ifb=function(D,Y,R,Z){function t(){if(!G){for(var V=new Set(T4n),e=_.a(X.behaviors),r=e.next();!r.done;r=e.next()){r=r.value;for(var l=_.a(Object.getOwnPropertyNames(r)),U=l.next();!U.done;U=l.next()){U=U.value;var K=void 0,H=(K=Object.getOwnPropertyDescriptor(r,U))==null?void 0:K.value;H&&H instanceof Function&&(!I[U]||_.f("polymer_forward_method_killswitch"))&&V.add(U)}}e=_.a(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(r=e.next();!r.done;r=e.next())l=_.a(r.value),r=l.next().value,
l=l.next().value,l.value instanceof Function&&V.add(r);G=V}return G}
var X=dNi({is:Y,disableElementRegistration:!1,getTemplate:R,providers:Z==null?void 0:Z.providers,reactivityMode:Z==null?void 0:Z.reactivityMode},D);if((Z==null?0:Z.allowedProps)||(Z==null?0:Z.allowedPropsFromBehaviors)){var M,W;X.allowedProps=[].concat(_.oK((M=Z.allowedProps)!=null?M:[]),_.oK((W=Z.allowedPropsFromBehaviors)!=null?W:[]))}var z=xNM(X,D);Y=z.observedAttributes;var I={};R=_.a(X.reactiveSchemas);for(Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.type==="signal")I[Z.propertyKey]={readOnly:Z.readOnly},
Z.readOnly&&(I[Vky(Z.propertyKey)]={readOnly:!0});else if(Z.type==="compute"||Z.type==="computeWithMethod"||Z.type==="redux")I[Z.propertyKey]={readOnly:!0};var F=X.reactiveSchemas.length,G;return{ctor:function(V,e){V=new z(V);V.beforeReady=e.beforeReady;return V},
props:I,observedAttributes:Y,getInitialMethods:t,getPropsToForwardBeforeRegister:function(){for(var V=[],e=new Set,r=_.a(jHS),l=r.next();!l.done;l=r.next())l=l.value,V.push([l,l!=="observers"&&l!=="properties"]),e.add(l);r=_.a(Object.keys(I));for(l=r.next();!l.done;l=r.next())l=l.value,V.push([l,I[l].readOnly]),e.add(l);r=t();l=_.a(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var U=l.next();!U.done;U=l.next())U=U.value,!SfU(U)||r.has(U)||e.has(U)||(V.push([U,!1]),e.add(U));V.push(["allowedProps",
!0]);return V},
getPropsToForwardBeforeReady:function(V){var e=[];V=_.a(Object.keys(V));for(var r=V.next();!r.done;r=V.next()){r=r.value;var l=t();SfU(r)&&!l.has(r)&&e.push([r,!1])}V=_.a(X.reactiveSchemas.slice(F));for(r=V.next();!r.done;r=V.next())r=r.value,r.type!=="compute"&&r.type!=="computeWithMethod"&&r.type!=="redux"&&r.type!=="signal"||e.push([r.propertyKey,r.type==="signal"?r.readOnly:!0]);return e},
shouldForwardProp:SfU,shouldLog:wd}};
_.L=function(D,Y,R,Z){var t,X,M=(X=(t=Z)==null?void 0:t.mode)!=null?X:0;Z!=null||(Z={});var W;(W=Z).reactivityMode!=null||(W.reactivityMode=0);M===1&&_.ux("creator_poly_si_disable_list").includes(Y)&&(M=2);return M===1?WdS(D,Y,R,Object.assign({},Z,{useSink:!0}),Ifb):WdS(D,Y,R,Object.assign({},Z,{useSink:M===2}))};
_.WL=function(){return function(D,Y,R,Z){var t,X,M=(X=(t=Z)==null?void 0:t.mode)!=null?X:2;Z!=null||(Z={});var W;(W=Z).reactivityMode!=null||(W.reactivityMode=0);if(M===0)throw Error("Ug`"+M);return CbM(D,Y,R,Z,M===1?Ifb:void 0)}};
_.zD=function(D){return _.f("creator_poly_si_killswitch")?!1:_.f("force_all_poly_si_batches")&&(D==="poly_si_all_on_test_check"||D==="creator_poly_si_batch_050"?0:D)||document.documentElement.hasAttribute("use-signals")?!0:!D||_.f(D+"_holdback_enabled")&&_.f("kevlar_polysi_holdback")?!1:_.f(D)};
Sv=function(D){return D?D.icon?D.icon.iconType.toLowerCase():D.customThumbnail?"member":"":""};
Fdo=function(D){if(!D)return"";D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())if((Y=Y.value)&&Y.liveChatAuthorBadgeRenderer&&(Y=Sv(Y.liveChatAuthorBadgeRenderer))&&Y!=="verified")return Y;return""};
GjU=function(D,Y){if(!D)return null;var R;return((R=D.find(function(Z){return Z&&Z.liveChatAuthorBadgeRenderer?Sv(Z.liveChatAuthorBadgeRenderer)===Y:!1}))==null?void 0:R.liveChatAuthorBadgeRenderer)||null};
_.ror=function(D){var Y=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;D=VxU(D);Y=VxU(Y);var R=ffb(D.hex);Y=ffb(Y.hex);var Z=Y[0]/255;var t=Y[1]/255,X=Y[2]/255,M=Math.max(Z,t,X),W=Math.min(Z,t,X),z=0,I=0,F=.5*(M+W);M!=W&&(M==Z?z=60*(t-X)/(M-W):M==t?z=60*(X-Z)/(M-W)+120:M==X&&(z=60*(Z-t)/(M-W)+240),I=0<F&&F<=.5?(M-W)/(2*F):(M-W)/(2-2*F));Z=[Math.round(z+360)%360,I,F];R=evM(R,Y);for(D=AoM(D.hex);R<4.5;){D=Z[2]>=.5?D.darker((4.5-R)/2):D.brighter((4.5-R)/2);R=D.toString();
t=njU(R);if(!t.length)throw Error("Qd`"+R);R=t;R=evM(R,Y)}return D.hex()};
evM=function(D,Y){D=_.X1$(D);Y=_.X1$(Y);return(Math.max(D,Y)+.05)/(Math.min(D,Y)+.05)};
_.TD=function(D){return"#"+("000000"+(D&16777215).toString(16)).slice(-6)};
_.wSb=function(D){for(var Y=0,R=0;R<D.length;R++)Y=D.charCodeAt(R)+((Y<<5)-Y);D="#";for(R=0;R<3;R++)D+=("00"+(Y>>R*8&255).toString(16)).slice(-2);return D};
$9U=function(D){D=(D||"").split(":");D.length===1&&D.unshift("yt-icons");D[1]=D[1].toLowerCase();return D};
lfn=function(D,Y){var R=(Y=Y===void 0?!1:Y)?vjy:ojy,Z=Y?bWo:yoM;D.getIconNames().forEach(function(t){t=Y?t:t.substring(t.indexOf(":")+1);D.name==="yt-icons"?N4i.add(t):t.includes("-filled")?R.add(t):Z.add(t)})};
jv=function(D,Y,R,Z){R=R===void 0?!1:R;Z=Z===void 0?!1:Z;var t,X,M;return _.C(function(W){if(W.nextAddress==1)return W.yield(JoU,2);if(Z)return W.return(N4i.has(D));t=R?vjy:ojy;X=R?bWo:yoM;return Y?(M=D.includes("-filled")?D:D.concat("-filled"),W.return(t.has(M))):W.return(X.has(D))})};
_.Kdn=function(D){if(kjj(D))return D;var Y=D=D.toLowerCase();(D=U95.get(D))&&(Y=D);return Y};
_.IT=function(D){if(kjj(D))return D.toString();var Y=hvr.get(D);if(Y)return Y;Y=D.toLowerCase();var R="yt-icons",Z=Y.replace(/_/g,"-");switch(D){case "MY_CHANNEL":Y="account_circle";break;case "ADD_TO_LIBRARY":Y="add";break;case "ALERT_WARN_RED":Y="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":Y="person_music";break;case "BLOCK_USER":Y="block";break;case "CAPTIONS":Y="closed_caption";break;case "CLOSED_CAPTION":R="av";Y="closed-caption";break;case "COLLECTION":R="maps";Y="layers";break;case "CONTACT":R=
"icons";Y="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":R="ytcp-icons";Y=Z.split("creator-studio-")[1];break;case "DISMISSAL":Y="close";break;case "DO_NOT_DISTURB":Y="block";break;case "DOGFOOD":R="icons";Y="pets";break;case "DRAFT":Y="paper_corner_folded";break;
case "EMPTY_LIKE":Y="like_outline";break;case "EXIT_APP":Y="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":Y=Z;break;case "GAMES":R="ytg";Y="my-games";break;case "GO_TO_PAGE":Y="arrow-forward";break;case "GROUP":R="social";break;case "HIDE":Y="not_interested";break;case "INPUT_COMPONENT":R="icons";Y="settings-input-component";break;case "KIDS_BLOCK":Y="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":R="ytg";Y="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":R=
"ytg";Y="membership-post-purchase";break;case "MULTIVIEW":Y="screen_multi_view";break;case "MY_LOCATION":R="maps";Y=Z;break;case "NOTIFICATIONS_INBOX":Y="NOTIFICATIONS";break;case "NEXT":Y="chevron_right";break;case "OFFLINE":Y="power-settings-new";break;case "PAUSE":R="miniplayer";break;case "PAYMENT":R="icons";break;case "PHONE_DOWNLOAD":Y="phone_download";break;case "PREMIUM_STANDALONE":R="yt-logos";Y="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":R="yt-logos";Y="premium_standalone_cairo";
break;case "QUESTION_ANSWER":Y="question_answer";break;case "REDEEM":R="icons";Y="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":Y="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":Y="library_add";break;case "SCHOOL":R="yt-sys-icons";Y="creator_academy";break;case "SETTINGS_LIGHT":Y="settings_applications";break;case "SETTINGS_MATERIAL":Y="settings";break;case "SEARCH_HISTORY":Y="watch_history";break;case "SHOPPING_BAG":Y="bag";break;case "SOCIAL":case "PEOPLE":R=
"yt-icons";Y="people";break;case "STAFF_PICK":R="ytg";Y="spotlight";break;case "START_DVR":Y="add";break;case "STOP_DVR":R="av";Y="stop";break;case "TAB_LIKED":Y="like";break;case "TAB_INBOX":Y="mail";break;case "TERMS_OF_SERVICE":R="icons";Y="description";break;case "TRENDING":Y="fire";break;case "UNBLOCK_USER":Y="remove";break;case "UNPLUGGED_DARK_THEME":R="image";Y="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":Y="live";break;case "UNPLUGGED_SPORTS":R="ytu";Y="visibility-off";break;
case "VIDEOS":R="av";Y="play-circle-filled";break;case "YOUTUBE":R="yt-logos";Y="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":R="yt-logos-ext";Y="yt-logo-red-updated";break;case "YOUTUBE_LOGO":R="yt-logos-ext";Y="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":R="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":R="shorts";Y=Z;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":R="yt-sys-icons";Y="youtube_improve_tv";break;case "OUTLINE_BAG":R=
"yt-sys-icons";Y="bag";break;case "QUEUE_PLAY_LAST":R="yt-sys-icons";Y="list_queue_last";break;case "SLASH_CIRCLE_LEFT":Y="slash_circle_left";break;case "SPEED_1_POINT_2X":Y="1_point_2x";break;case "SPEED_1_POINT_5X":Y="1_point_5x";break;case "SPEED_1_POINT_8X":Y="1_point_8x";break;case "SPEED_POINT_2X":Y="point_2x";break;case "SPEED_POINT_5X":Y="point_5x";break;case "SPEED_POINT_8X":Y="point_8x";break;case "SPEED_1X":Y="1x";break;case "SPEED_2X":Y="2x";break;case "TAB_BOOKMARK":Y="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":R="yt-sys-icons";Y="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":R="yt-sys-icons";Y="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":R="yt-sys-icons",Y="tic_tac_toe"}Y=R+":"+Y;hvr.set(D,Y);return Y};
kjj=function(D){var Y;_.f("kevlar_use_wil_icons")?Y=!!_.DH().resolve(_.FK).resolveIcon({iconName:D.toString()}):Y=!1;return Y};
_.Vu=function(D,Y,R,Z){R=R===void 0?{}:R;Z=Z===void 0?!1:Z;R===null&&(R={});var t=_.ux("kevlar_command_handler_command_banlist");t=_.a(t);for(var X=t.next();!X.done;X=t.next())if(X=D?D.hasOwnProperty(X.value):void 0,X)return!1;t=_.A(D.commandMetadata,_.GA);return Z&&t!=null&&t.url?!1:!Y.disableCommandHandlerOverride&&_.GD.instance?(Z=_.GD.instance,R.form||(R.form={element:Y}),R.form.element||(R.form.element=Y),!R.clickedVisualElement&&Y.visualElement&&(R.clickedVisualElement=Y.visualElement),Z.resolveCommand(D,
R),!0):!1};
Ld9=function(D,Y){D=f8(D);for(var R=_.a(D.visibilityMonitorKeys||[]),Z=R.next();!Z.done;Z=R.next())Y.unobserveByKey(Z.value);D.visibilityMonitorKeys=void 0};
x9U=function(D,Y){if(_.K2()){if(_.f("kevlar_vimio_use_shared_monitor"))m99(D,Y.data);else if(!m99(D,Y.data))return;var R=Y.data,Z=qf5(R);if(_.f("enable_client_ve_spec_logging"))Ld9(D,Y.observer);else{var t=f8(D);t.trackedParams&&t.trackedParams!==Z&&Ld9(D,Y.observer)}t=f8(D);!R||t.data&&t.data===R||(t.data=R);HWM(D,Y);t.trackedParams=Z}};
HWM=function(D,Y){var R=Y.observer;if(!R&&_.f("web_skip_missing_vimio_observer")){var Z,t;_.Jk(new _.AT("VisibilityObserver is not defined.",D.tagName,D.trackedParams,(Z=Y.data)==null?void 0:Z.trackingParams,(t=Y.data)==null?void 0:t.loggingDirectives))}else{var X=Y.layer,M=Y.visibilityCallback||function(){},W=Y.prescanCallback,z=f8(D);
Z=[];Y.showOption&&Z.push(R.observe(D,function(){Y.skipLogging&&Y.skipLogging()||_.ev().reportShown(z,void 0,X);M(!0)},Y.showOption));
Y.hideOption&&Z.push(R.observe(D,function(){_.ev().reportHidden(z,void 0,X);M(!1)},Y.hideOption));
Y.prescanOption&&W&&Z.push(R.observe(D,function(){W()},Y.prescanOption));
z.visibilityMonitorKeys=Z}};
m99=function(D,Y){D=f8(D);if(D.visualElement&&!Y)return!0;if(!Y)return!1;var R=!1;if(_.f("enable_client_ve_spec_logging")){var Z,t;R=!!((Z=Y.loggingDirectives)==null?0:(t=Z.clientVeSpec)==null?0:t.uiType)}Z=qf5(Y);if(!Z&&!R)return!1;_.f("mweb_component_visibility_logging")&&(D.veContainer||(D.veContainer={}),D.veContainer.trackingParams=Z);if(D.trackedParams&&D.trackedParams===Z)return!1;var X;if(_.f("enable_client_ve_spec_logging")&&((X=D.visualElement)==null?0:X.isClientVe())){var M;X=(M=D.visualElement)==
null?void 0:M.getAsJspb();var W,z,I,F;if(_.ZC(X,2)===((W=Y.loggingDirectives)==null?void 0:(z=W.clientVeSpec)==null?void 0:z.uiType)&&_.ZC(X,3,-1)===((I=Y.loggingDirectives)==null?void 0:(F=I.clientVeSpec)==null?void 0:F.elementIndex))return!1}if(_.f("enable_client_ve_spec_logging")){var G,V;!D.visualElement&&((G=Y.loggingDirectives)==null?0:(V=G.clientVeSpec)==null?0:V.uiType)&&(W=Y.loggingDirectives.clientVeSpec,Y=W.uiType,M=W.elementIndex,W=W.clientYoutubeData,D.visualElement=_.Ai(_.n8(),{veType:Y,
elementIndex:M,clientYouTubeData:W}))}return!0};
qf5=function(D){if(D==null?0:D.rendererContext){var Y=_.A(D.rendererContext,_.rs);if(Y==null?0:Y.loggingDirectives)return Y.loggingDirectives.trackingParams}return(D==null?0:D.loggingDirectives)?D.loggingDirectives.trackingParams:D==null?void 0:D.trackingParams};
f8=function(D){var Y;return(Y=D.polymerController)!=null?Y:D};
pS5=function(D){_.ev();if(_.Lb(ws().JSC$12474_elementShouldLogGesture).bind(ws())(D,4)){Pbb(D);var Y=QHi(D);B4b.set(D,Y)}};
Pbb=function(D){B4b.has(D)&&(B4b.get(D).cancel("untrack hover element"),B4b.delete(D))};
QHi=function(D){var Y,R=[],Z=!1,t=new _.zz(function(X,M){$C(D,"mouseenter",_.Lb(function(){var W,z,I;return _.C(function(F){if(F.nextAddress==1)return Y=(0,_.DO)(),W=Ejo(D),R.push(W),z=gjU(D,function(){Z=!0;M(Error("Vg"))}),F.yield(W,2);
if(F.nextAddress!=3)return z&&vL(z),I=d9M(D),R.push(I),F.yield(I,3);X();_.V9(F)})}))});
t.then(function(){var X=(0,_.DO)()-Y;X=Math.round(X);if(!(500>X||6E5<=X)){var M=D.getScreenLayer?D.getScreenLayer():void 0;M=_.K2(M)||"";var W=iW5(_.ev(),D);_.ii(M,D.visualElement?D.visualElement:_.oT(W),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:X}})}pS5(D)},function(){bf&&(bf(),bf=null);
Z&&(Pbb(D),pS5(D))});
return t};
Ejo=function(D){var Y;return(new _.zz(function(R,Z){bf=function(){Z(Error("Wg"))};
Y=_.yc.debounce(_.Lb(function(){vL(t);R()}),1,100);
var t=_.yu(D,"mousemove",Y)})).thenCatch(function(){var R=_.yc.cancelDebouncedJobMap.get(Y);
R&&_.yc.cancelJob(R)})};
d9M=function(D){var Y;return(new _.zz(function(R,Z){bf=function(){Z(Error("Xg"))};
Y=$C(D,"mouseleave",_.Lb(function(){R()}))})).thenCatch(function(){vL(Y)})};
gjU=function(D,Y){return $C(D,"mouseleave",_.Lb(Y))};
coo=function(D){OWM&&_.NI.cancel(OWM);OWM=_.NI.run(function(){_.MX(D,"yt-visibility-refresh");OWM=0})};
DTn=function(D){D=Number(D);return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
R0$=function(D){if(!D)return!1;if(_.A(D,_.YeS))return!0;var Y;if(D=(Y=_.A(D,_.je))==null?void 0:Y.commands)for(Y=_.a(D),D=Y.next();!D.done;D=Y.next())if(_.A(D.value,_.YeS))return!0;return!1};
ZpM=function(D){var Y=!0;Y=Y===void 0?!0:Y;if(!D.useSignals&&!D.experimentalPropertiesChanged||_.f("experimental_templating_behavior_nopatch_killswitch")){var R=D._propertiesChanged;D._propertiesChanged=function(Z,t,X){Y?D.debounceRender():D.doRender();R&&R.call(D,Z,t,X)}}};
t2i=function(D,Y){if(D.useSignals||D.experimentalPropertiesChanged)if(_.f("experimental_templating_behavior_nopatch_killswitch"))D.experimentalPropertiesChanged=function(){};
else return;var R=new Set,Z=[D].concat(_.oK(D.behaviors));Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next()){t=t.value;for(var X in t.properties)R.has(X)||(D._addPropertyEffect(X,"function",Y),R.add(X))}};
sj5=function(){var D=Polymer.Element,Y=D._prepareTemplate;D._prepareTemplate=function(){Y.call(this);var R=this.prototype;if(R.experimentalTemplatingInUse&&R.experimentalTemplatingInUse()&&R.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Nb(Error("Yg"));else{R=this.template.content.childNodes;for(var Z=R.length-1;Z>=0;Z--){var t=R[Z];t.nodeName!=="STYLE"&&t.nodeName!=="LINK"&&t.nodeName!=="SCRIPT"&&t.nodeName!=="#comment"&&t.remove()}}}};
XiS=function(D){var Y=!0;Y=Y===void 0?!0:Y;sj5();var R=D.ready;D.ready=function(){this._template=null;R.call(this)};
t2i(D,Y?D.debounceRender:D.doRender)};
a8n=function(D,Y,R){if(R===null||R===void 0)return R;var Z=ZFM(D.tagName.toLowerCase(),Y,function(){throw Error("Ob");});
if(Z===null)return R;Z=uY9[Z];var t;if((t=Z.isUnwrappable)==null?0:t.call(Z,R)){if(Z.unwrap)return Z.unwrap(R);throw Error("ah");}return Z.filterString?Z.filterString(D.tagName,Y,String(R)):R};
M25=function(D,Y,R){var Z=Y[Y.length-1]!=="$",t=a8n(D,Y,R);if(Z)if(typeof t==="function"&&Y.startsWith("reactiveon")&&Y===Y.toLowerCase()){var X=EW;zMn(D,Y.slice(8),function(M){bM(X,function(){t(M)})})}else D[Y]=t;
else R=t==null?null:String(t),Jt(D,Y.slice(0,-1),R)};
Ji=function(D){CtU.length===0&&requestAnimationFrame(function(){setTimeout(function(){var Y=CtU.slice();CtU.length=0;Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;try{R()}catch(Z){_.lf(Z)}}})});
CtU.push(D)};
WF5=function(D){if(D){var Y=D.component;if(Y){var R;Y==null||(R=Y.events)==null||R.publish("DISCONNECTED");var Z;Y==null||(Z=Y.onDisconnected)==null||Z.call(Y)}var t,X;(t=D.__spec)==null||(X=t.didUnmount)==null||X.call(t);for(Y=0;Y<D.childNodes.length;Y++)WF5(D.childNodes[Y])}};
z0$=function(D,Y,R){var Z=Y&&Y.key,t=QE;t[0]=D;t[1]=Z;t[2]=void 0;for(var X in Y)Y.hasOwnProperty(X)&&(D=Y[X],Z=B_,Z.push(X),Z.push(D));Y=QE;a:{if(X=QE[2])for(D=0;D<X.length;D+=2)if(X[D]==="nonce"){X=X[D+1];break a}X=""}X=wyi(Y[0],Y[1],X);D=UU(X);Z=Y[2];if(!D.staticsApplied&&(D.staticsApplied=!0,Z&&Z.length))if((t=D._attrsArr)&&t.length){for(t=0;t<Z.length;t+=2)kC[Z[t]]=t+1;t=D._attrsArr||(D._attrsArr=WBU(0));for(var M=0,W=0;W<t.length;W+=2){var z=t[W],I=t[W+1],F=kC[z];F?Z[F]===I&&delete kC[z]:(t[M]=
z,t[M+1]=I,M+=2)}Na(t,M);for(var G in kC)FBb(X,G,Z[kC[G]],Dq),delete kC[G]}else for(G=0;G<Z.length;G+=2)FBb(X,Z[G],Z[G+1],Dq);JN9(X,D,Dq);Na(Y,0);R&&R(L4);$7$()};
_.U4=function(D,Y,R){R===void 0?delete D[Y.name]:D[Y.name]=R};
_.K8=function(D){var Y={androidIncludeFontPadding:!1},R=0,Z=[],t=[],X=[];if(D.simpleText)return Y.content=D.simpleText,Y;if(D.runs===void 0)return Y.content="",Y;D=_.a(D.runs);for(var M=D.next();!M.done;M=D.next()){M=M.value;var W=M.text,z=void 0,I=(z=W)==null?void 0:z.length;if(W&&I){Z.push(W);if(M.bold||M.italics||M.strikethrough||M.underline||M.textColor!=null&&M.textColor!==0||M.deemphasize){W=t;z=W.push;var F={startIndex:R,length:I};M.bold&&(F.weightLabel="FONT_WEIGHT_MEDIUM");M.italics&&(F.italic=
!0);M.strikethrough&&(F.strikethrough="LINE_STYLE_SINGLE");M.underline&&(F.underline="LINE_STYLE_SINGLE");M.textColor!=null&&M.textColor!==0?document.documentElement.hasAttribute("dark")?F.fontColor=M.darkModeTextColor||M.textColor:F.fontColor=M.textColor:M.deemphasize&&(document.documentElement.hasAttribute("dark")?F.fontColor=parseInt("ff"+SeU("#aaa").substring(1),16):F.fontColor=parseInt("ff"+SeU("#606060").substring(1),16));z.call(W,F)}M.navigationEndpoint&&(W=X,z=W.push,F={startIndex:R,length:I,
onTap:{innertubeCommand:M.navigationEndpoint}},M.loggingDirectives&&_.U4(F,TB9,M.loggingDirectives),z.call(W,F));R+=I}}Y.content=Z.join("");Y.styleRuns=t.length?t:void 0;Y.commandRuns=X.length?X:void 0;return Y};
I8U=function(D){if(D==null||!D.runs)return!0;D=_.a(D.runs);for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.bracket||Y.errorUnderline||Y.deemphasize||_.A(Y,hi)||_.A(Y,jj9))return!1;return!0};
FF$=function(D,Y){return function(R){var Z=Y.unit;if(Z!==R)throw Error("dh`"+D+"`"+Z+"`"+R);return Y}};
L8=function(D){if(!((D==null?0:D.value)&&(D==null?0:D.unit)))return"";switch(D.unit){case "DIMENSION_UNIT_FRACTION":var Y="%";break;default:Y="px"}D=D.value;Y==="%"&&(D*=100);return""+D+Y};
G$U=function(D){try{return D()}catch(Y){_.Jk(Y)}};
_.HL=function(D){var Y=_.A(D,_.mQ);if(Y)return Y;if((Y=_.A(D,V29))&&Y.commands)return f8l(Y.commands);if((Y=_.A(D,e0l))&&Y.commands)return f8l(Y.commands);if((D=_.A(D,Asb))&&D.identifier&&D.command&&(nf9||(nf9=[]),!nf9.includes(D.identifier)))return nf9.push(D.identifier),_.A(D.command,_.mQ)};
f8l=function(D){if(D.length!==0){var Y=[];D=_.a(D);for(var R=D.next();!R.done;R=D.next())(R=_.HL(R.value))&&Y.push(R);return{commandExecutorCommand:{commands:Y}}}};
_.PL=function(D){var Y=D.defaultTarget,R=D.elementConfig,Z=D.elementsCommand,t=D.skipOnClick,X=D.forceNewState,M=D.additionalCommandArgs,W=D.innertubeCommand||_.HL(Z);if(W){D={};var z=rsy(W);Z=z.navigatingCommand;z=z.href;Z&&z?(D.href$=z,win(D,Z,z,Y),_.f("web_atagconfig_pointerdown")&&$TU(D,Z),X&&(D["force-new-state$"]=!0)):(D.role$="button",D.href$="javascript:void(0);");_.A(W,vfM)&&(D["aria-haspopup$"]=!0);t||(D.onclick=function(I){var F={};if(of5(I)){var G=(M==null?void 0:M.clickedVisualElement)||
(M==null?void 0:M.getClickedVisualElement)&&M.getClickedVisualElement();G&&(F={clickedVisualElement:G});F=Object.assign({},{form:{element:I.target,event:I,createScreenConfig:F}},M);I.preventDefault();_.xC(W,F)}});
return Object.assign({},R,D)}};
bpj=function(D){if(D.length){if(D.length===1)return D[0];var Y={};_.U4(Y,_.je,{commands:D});return Y}};
Qu=function(D){return D&&D.href$!=="javascript:void(0);"};
rsy=function(D){var Y,R=((Y=_.A(D,_.je))==null?void 0:Y.commands)||[D];D=_.a(R);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var Z=void 0,t=void 0;R=(t=_.A((Z=Y)==null?void 0:Z.commandMetadata,_.GA))==null?void 0:t.url;_.f("web_remove_web_navigation_endpoint_data")||(Z=void 0,R=R||((Z=_.A(Y,ys9))==null?void 0:Z.url));if(R&&R!=="/service_ajax"){if(Z=_.Ny(R,NBi))return D=_.oJ(Z),{navigatingCommand:Y,href:D};_.Jk(new _.AT("AttributedString URL could not be sanitized",R))}}return{}};
of5=function(D){return D.button!==void 0?D.button===0&&!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey):!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey)};
win=function(D,Y,R,Z){R=!i1(R);var t,X,M;if((t=_.A(Y,_.A6))!=null&&t.nofollow||(X=_.A(Y,_.Od))!=null&&X.nofollow||(M=_.A(Y,_.Qj))!=null&&M.nofollow||R)D.rel$="nofollow";var W;Y=((W=_.A(Y,_.Qj))==null?void 0:W.target)==="TARGET_NEW_WINDOW"?"_blank":Z===void 0?"":Z;D.target$=Y};
$TU=function(D,Y){Y.clickTrackingParams&&(D.params={itct:Y.clickTrackingParams});D.onpointerdown=function(R){_.l8M(R)};
D._data=Y};
_.JsU=function(D){(D.loggingUrls||[]).forEach(function(Y){Hg(Y.baseUrl,Y.attributionSrcMode)})};
_.l8M=function(D){var Y=D.currentTarget;D=G$U(function(){return Y.href});
var R=Y.params;D&&_.Rb(D,R||{},8,!0)};
_.BL=function(D,Y){(D=_.HL(D))&&_.xC(D,Y)};
_.xC=function(D,Y){o89(function(R){Y?R.resolveCommand(D,Y):R.resolveCommand(D)})};
h0o=function(D,Y){var R=["yt-core-attributed-string__link"];Y!=null&&Y.noLinkColor||((Y==null?0:Y.isOverlay)?R.push("yt-core-attributed-string__link--overlay-call-to-action-color"):R.push("yt-core-attributed-string__link--call-to-action-color"),(Y==null?0:Y.linkInheritColor)&&R.push("yt-core-attributed-string--link-inherit-color"));R={className:R.join(" "),tabindex$:"0"};var Z=D.onTap||D.onLongPress;if(!Z)return R;var t=k$U(D);t&&(R["aria-label$"]=t);Y=_.PL({elementsCommand:Z,elementConfig:R,skipOnClick:!(Y==
null||!Y.skipOnClick),forceNewState:!0});D.onLongPress&&(Z=new UTy(function(){var X=_.HL(D.onLongPress);X&&_.DH().resolve(_.Yw).resolveCommand(X)}),Y&&KFr(Z,Y));
return Y||R};
k$U=function(D){var Y,R;return(Y=D.onTapOptions)==null?void 0:(R=Y.accessibilityInfo)==null?void 0:R.accessibilityLabel};
LF$=function(D){var Y=D;D<=16777215&&(Y+=parseInt("ff000000",16));return _.xI(Y)};
mTl=function(D){var Y=D.isDarkTheme;var R=D.extension;D=D.runColor;var Z=void 0;if(R=R==null?void 0:R.colorMap){Y=Y?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";R=_.a(R);for(var t=R.next();!t.done;t=R.next())if(t=t.value,Y===t.key){Z=t.value;break}}Z==null&&D&&(Z=D);if(Z)return LF$(Z)};
p8=function(D){var Y=D.config;var R=D.image;var Z=D.imageConfig;var t=D.imageWrapperConfig;var X=D.run;var M=D.tag;var W=D.textLength;var z=D.startIndex===void 0?0:D.startIndex;D=D.length;z===void 0&&(z=0);X={run:X,startIndex:z,endIndex:D!==void 0?z+D:W,tag:M};R&&(X.image=R);Z&&(X.imageConfig=Z);t&&(X.imageWrapperConfig=t);Y&&(X.config=Y);return X};
HpS=function(D,Y){var R=[];R.push("yt-core-attributed-string");(Y==null?0:Y.className)&&R.push(Y==null?void 0:Y.className);(Y==null?0:Y.ellipsisTruncate)?R.push("yt-core-attributed-string--ellipsis-truncate"):(Y==null?0:Y.noWrap)?R.push("yt-core-attributed-string--white-space-no-wrap"):(Y==null?0:Y.noPreWrap)||R.push("yt-core-attributed-string--white-space-pre-wrap");(Y==null?0:Y.linkInheritColor)&&R.push("yt-core-attributed-string--link-inherit-color");D.alignment&&R.push(qe$(D.alignment));D.lineBreakMode&&
R.push("yt-core-attributed-string--word-wrapping");return R.join(" ")};
xTr=function(D,Y){if(D.weight)return D.weight;switch(D.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 Y?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Pt5=function(D){switch(D){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"}};
qe$=function(D){switch(D){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"}};
ds=function(D,Y,R){var Z=Y;D.content&&R&&(R=D.content.indexOf("\n"),R!==-1&&(Z=Math.min(Y,R)));if(!D.content||D.content.length<=Z)Y=D;else if(D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.paragraphStyleRuns){Y=E4(D.content,Z);R=Z;var t=D.attachmentRuns;if(t){var X=[];t=_.a(t);for(var M=t.next();!M.done;M=t.next())M=Object.assign({},M.value),M.startIndex===void 0||M.startIndex>=R||(M.length||(M.length=0),M.length+M.startIndex>R&&(M.length=R-M.startIndex),X.push(M));R=X}else R=void 0;
X=Qjo(Z,D.commandRuns);t=Z;var W=D.decorationRuns;if(W){M=[];W=_.a(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;var I=_.A(z.textDecorator,gs);if(I&&I.startIndex!==void 0&&!(I.startIndex>=t)){z=Object.assign({},z,{textDecorator:{highlightTextDecorator:Object.assign({},I)}});I=_.A(z.textDecorator,gs);if(!I.length||I.length+I.startIndex>t)I.length=t-I.startIndex;M.push(z)}}t=M}else t=void 0;M=Qjo(Z,D.styleRuns);if(W=D.paragraphStyleRuns)for(D=[],W=_.a(W),z=W.next();!z.done;z=W.next()){var F=z.value;
z=Object.assign({},F);if(!(z.startIndex===void 0||z.startIndex>=Z)){if(!z.length||z.length+z.startIndex>Z)z.length=Z-z.startIndex;I=[];var G=void 0,V=void 0;if((G=F)==null?0:(V=G.listGroup)==null?0:V.listItems)for(F=_.a(F.listGroup.listItems),G=F.next();!G.done;G=F.next())if(G=Object.assign({},G.value),!(G.startIndex===void 0||G.startIndex>=Z)){if(!G.length||G.length+G.startIndex>Z)G.length=Z-G.startIndex;I.push(G)}I.length>0&&(z.listGroup||(z.listGroup={}),z.listGroup=Object.assign({},z.listGroup,
{listItems:I}));D.push(z)}}else D=void 0;Y={content:Y,attachmentRuns:R,commandRuns:X,decorationRuns:t,styleRuns:M,paragraphStyleRuns:D}}else Y=Object.assign({},D,{content:E4(D.content,Z)});return Y};
Qjo=function(D,Y){if(Y){var R=[];Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=D)){if(!Z.length||Z.length+Z.startIndex>D)Z.length=D-Z.startIndex;R.push(Z)}return R}};
E4=function(D,Y){var R=Y,Z;if(Z=R>0)Z=D.charCodeAt(R-1),Z=Z>=55296&&Z<=56319;Z&&(R=D.charCodeAt(R),Z=R>=56320&&R<=57343);Z&&--Y;return D.substring(0,Y)};
gfo=function(D,Y,R){R=R===void 0?BBM:R;if(D){var Z=_.DH().resolve(RD);Z||_.f("mweb_no_observer_killswitch")?x9U(D,{data:Y,observer:Z,visibilityCallback:R,hideOption:pio,showOption:Efy,layer:D.layer}):_.Jk(new _.AT("Warning: monitorVisibility called with null observer",D.tagName,Y==null?void 0:Y.loggingDirectives,Y==null?void 0:Y.trackingParams))}else _.Jk(new _.AT("Warning: monitorVisibility called with null element",Y==null?void 0:Y.loggingDirectives,Y==null?void 0:Y.trackingParams,Y==null?void 0:
Y.rendererContext))};
R5U=function(D,Y){var R=[],Z=D.content.length,t,X=(t=_.DH().resolve(_.cD(_.O4)))==null?void 0:t();if(D.paragraphStyleRuns){t=_.a(D.paragraphStyleRuns);for(var M=t.next();!M.done;M=t.next()){var W=R.push,z=W.apply;var I=void 0;M=M.value;if((I=M.listGroup)!=null&&I.listItems){I=[];b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var F="ul";break b;default:F="span"}I.push(p8({run:M,textLength:Z,tag:F,config:{className:"yt-core-attributed-string__list-group"},startIndex:M.startIndex,length:M.length}));
F=_.a(M.listGroup.listItems);for(var G=F.next();!G.done;G=F.next()){G=G.value;b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var V="li";break b;default:V="span"}I.push(p8({run:M,textLength:Z,tag:V,startIndex:G.startIndex,length:G.length}))}M=I}else M=[];z.call(W,R,_.oK(M))}}if(D.styleRuns&&(Y==null||!Y.noStyleRuns))for(t=_.a(D.styleRuns),W=t.next();!W.done;W=t.next()){M=W=W.value;I=X;z=Y;I=mTl({extension:_.A(M.styleRunExtensions,dT9),isDarkTheme:I===void 0?!1:I,runColor:M.fontColor});G=M;
F=[];I&&F.push("yt-core-attributed-string--link-inherit-color");G.italic&&F.push("yt-core-attributed-string--italicized");G.underline&&G.strikethrough?F.push("yt-core-attributed-string--underline-strikethrough",Pt5(G.underline)):G.underline?F.push("yt-core-attributed-string--underlined",Pt5(G.underline)):G.strikethrough&&F.push("yt-core-attributed-string--strikethrough",Pt5(G.strikethrough));if(G.baselineOffset){a:switch(G.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":G="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":G="yt-core-attributed-string--baseline-offset-superscript";break a;default:G="yt-core-attributed-string--baseline-offset-unknown"}F.push(G)}F=F.join(" ");G={};if(M.weight||M.weightLabel)G.fontWeight=xTr(M,z==null?void 0:z.isHeadline).toString();I&&(G.color=I);R.push(p8({run:W,textLength:Z,tag:"span",config:{className:F,style:G},startIndex:W.startIndex,length:W.length}))}if(D.decorationRuns)for(t=_.a(D.decorationRuns),W=t.next();!W.done;W=t.next())W=W.value,
z={},W.textDecorator&&(F=W.textDecorator,M=X===void 0?!1:X,G=[],I=_.A(F,gs),F=_.A(F,ipr),I?(F=G,G=F.concat,V=[],(M=mTl({extension:_.A(I.highlightTextDecoratorExtensions,Op$),isDarkTheme:M,runColor:I.backgroundColor}))&&V.push("background-color: "+M+";"),I.backgroundCornerRadius!==void 0&&V.push("border-radius: "+I.backgroundCornerRadius+"px;"),I.leftPadding!==void 0&&V.push("padding-left: "+I.leftPadding+"px;"),I.rightPadding!==void 0&&V.push("padding-right: "+I.rightPadding+"px;"),I.topPadding!==
void 0&&V.push("padding-top: "+I.topPadding+"px;"),I.bottomPadding!==void 0&&V.push("padding-bottom: "+I.bottomPadding+"px;"),G=G.call(F,V)):F&&(I=G,G=I.concat,M=M?"#2ba640":"#107516",M=F.color?LF$(F.color):M,M=["padding: 2px;","border-top: solid "+M+" 2px;","border-bottom: solid "+M+" 2px;","background: linear-gradient(135deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px);"],G=G.call(I,M)),M=G.join(" "),z.style$=M,M=W.textDecorator,I=[],F=_.A(M,
ipr),_.A(M,gs)?I.push("yt-core-attributed-string--highlight-text-decorator"):F&&I.push("yt-core-attributed-string--bracket-text-decorator"),M=I.join(" "),z.className=M,z.dir="auto"),M=_.A(W.textDecorator,gs),I=_.A(W.textDecorator,ipr),F=_.A(W.textDecorator,gs),G=_.A(W.textDecorator,ipr),R.push(p8({run:W,textLength:Z,tag:"span",config:z,startIndex:(M==null?void 0:M.startIndex)||(I==null?void 0:I.startIndex)||0,length:(F==null?void 0:F.length)||(G==null?void 0:G.length)||0}));if(D.commandRuns&&(Y==
null||!Y.noEndpoints))for(X=_.a(D.commandRuns),t=X.next();!t.done;t=X.next())t=t.value,W=h0o(t,Y),R.push(p8({run:t,textLength:Z,tag:"a",config:W,startIndex:t.startIndex,length:t.length}));if(D.attachmentRuns)for(D=_.a(D.attachmentRuns),X=D.next();!X.done;X=D.next()){X=X.value;z=W=void 0;t={className:"yt-core-attributed-string--inline-block-mod"};if((z=X.element)==null?0:z.properties){z=(W=X.element)==null?void 0:W.properties;W=[];z=_.A(z,csr);if(z==null?0:z.margin)z=z.margin,z.left&&W.push("margin-left: "+
L8(z.left)+";"),z.right&&W.push("margin-right: "+L8(z.right)+";"),z.top&&W.push("margin-top: "+L8(z.top)+";"),z.bottom&&W.push("margin-bottom: "+L8(z.bottom)+";");W=W.length!==0?W.join(" "):void 0;t.style$=W}M=void 0;W={alt:"",preserveHeight:!0,preserveWidth:!0};z=["yt-core-attributed-string__image-element"];if(X.alignment){a:switch(X.alignment){case "ALIGNMENT_BASELINE":I="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":I="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:I="yt-core-attributed-string__image-element--image-alignment-bottom"}z.push(I)}if((M=X.element)==null?0:M.properties)M=[],I=_.A(X.element.properties,csr),(I==null?0:I.height)&&M.push("height: "+L8(I.height)+";"),(I==null?0:I.width)&&M.push("width: "+L8(I.width)+";"),M=M.length!==0?M.join(" "):void 0,W.style$=M,I=void 0,M=((I=_.A(X.element.properties,D4S))==null?void 0:I.label)||"",W.alt=M;W.className=z.join(" ");z=void 0;F=I=void 0;M=((F=X.element)==null?0:F.type)?(I=_.A(X.element.type,
YEU))==null?void 0:I.image:void 0;R.push(p8({run:X,textLength:Z,tag:"img",image:M,imageConfig:W,imageWrapperConfig:t,startIndex:X.startIndex,length:(z=X.length)!=null?z:0}))}if(Y==null?0:Y.headerRuns)for(Y=_.a(Y.headerRuns),D=Y.next();!D.done;D=Y.next())if(D=D.value,D.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(D.headerMapping)){a:{switch(D.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":X=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":X="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":X="yt-core-attributed-string--heading-3";break a}X=void 0}R.push(p8({run:D,textLength:Z,tag:"span",config:X?{className:X}:void 0,startIndex:D.startIndex,length:D.length}))}return R};
_.cL=function(D){return(D==null?void 0:D.content)!==void 0};
Zmi=function(D){return _.cL(D)?D:_.K8(D)};
tcS=function(D){return D.image!==void 0&&D.imageConfig!==void 0};
sVo=function(D,Y){if(Y==null?0:Y.userInput)for(D=_.a(D),Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.tag!=="a"&&Y.tag!=="li"){var R=void 0;(R=Y).config||(R.config={});Y.config.dir=Y.tag==="ul"?_.DH().resolve(_.DT):"auto"}};
Xcj=function(D){return function(Y){var R=D.run;(R.onTap!==void 0||R.onLongPress!==void 0)&&_.A(R,TB9)&&gfo(Y,{loggingDirectives:_.A(R,TB9)})}};
uXU=function(D){return function(Y){for(var R in D)(Dq[R]||Dq[kd["default"]])(Y,R,D[R])}};
WKy=function(D,Y){atM(Y);var R={data:null,start:0,end:D.length,parts:[]};Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next())Z=Z.value,Mcl(R,Z.startIndex,Z.endIndex,Z);CVo(D,R);return R};
Mcl=function(D,Y,R,Z){for(var t=_.a(D.parts),X=t.next();!X.done;X=t.next()){X=X.value;if(typeof X==="string")throw Error("fh");if(X.start<=Y&&R<=X.end){Mcl(X,Y,R,Z);return}}D.parts.push({data:Z,parts:[],start:Y,end:R})};
CVo=function(D,Y){for(var R=Y.parts.length;R>=0;R--){var Z=Y.parts[R],t=Y.parts[R-1],X=R===Y.parts.length?Y.end:Z.start;t=R===0?Y.start:t.end;X!==t&&Y.parts.splice(R,0,D.slice(t,X));Z&&CVo(D,Z)}};
atM=function(D){D.sort(function(Y,R){if(Y.startIndex<R.startIndex)return-1;if(R.startIndex<Y.startIndex)return 1;Y=Y.endIndex-Y.startIndex;R=R.endIndex-R.startIndex;return Y>R?-1:R>Y?1:0})};
_.z5n=function(D){var Y=D.thumbnails;if(Y){D={sources:[]};Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z={};Z.url=R.url;Z.width=R.width;Z.height=R.height;D.sources.push(Z)}return D}};
SEy=function(D,Y,R,Z){if(!Y)return D.length>=1?D[D.length-1]:null;if(Z)for(var t=_.a(D),X=t.next();!X.done;X=t.next()){X=X.value;var M=void 0,W=(M=X.url)==null?void 0:M.indexOf(Z);if(W!==void 0&&W>=0)return X}Z=_.a(D);for(t=Z.next();!t.done;t=Z.next())if(t=t.value,t.width&&t.height&&(R&&t.width>=Y||!R&&t.height>=Y))return t;for(Y=D.length-1;Y>=0;Y--)if(R&&D[Y].width||!R&&D[Y].height)return D[Y];return D[0]};
_.Tw$=function(D){var Y;return(D=(Y=D.sources)==null?void 0:Y[0])?D.width/D.height:0};
_.jVU=function(D){if(D.sources){D=_.a(D.sources);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=void 0;if((R=Y.clientResource)==null?0:R.imageName)return Y}}};
It$=function(D){var Y;if((Y=D.clientResource)!=null&&Y.imageColor)return _.xI(D.clientResource.imageColor)};
_.G0U=function(D,Y,R,Z,t,X,M){if(!Y||Y.length===0||Y[0].clientResource)return null;if(R&&Y[0].url)return Y[0].url;Z===void 0&&(Z=!0);if(Z){var W;D=FKl*(t||(D==null?void 0:(W=D.getBoundingClientRect())==null?void 0:W.width)||0)}else{var z;D=FKl*(X||(D==null?void 0:(z=D.getBoundingClientRect())==null?void 0:z.height)||0)}Y=SEy(Y,D,Z,M);return(Y==null?0:Y.url)?Y.url:(Y==null?0:Y.imageData)?Y.imageData:null};
VcU=function(D,Y,R){R=R?[R]:[];D.opacity&&R.push("opacity: "+D.opacity+";");Y&&D.placeholderColor?(D=_.xI(D.placeholderColor),R.push("background-color: "+D+";")):R.push("background-color: transparent;");return R.join(" ")};
fto=function(D,Y,R,Z,t){var X=["yt-core-image"];Y&&X.push(Y);R||X.push("yt-core-image--fill-parent-height");Z||X.push("yt-core-image--fill-parent-width");switch(D.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":X.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":X.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":X.push("yt-core-image--content-mode-center");break;default:X.push("yt-core-image--content-mode-scale-to-fill")}D.flipForRtlLayout&&
X.push("yt-core-image--flip-rtl");switch(t){case "TOP_START":var M;X.push(((M=document.body)==null?void 0:M.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return X.join(" ")};
Ayo=function(D){var Y;if(D==null?0:(Y=D.clientResource)==null?0:Y.imageName){var R;D=(R=D.clientResource)==null?void 0:R.imageName;a:{switch(D){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":R="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":R="yt-logos-ext:yt-logo-updated";break a}R=void 0}return R||e5l.get(D)||D}};
wcl=function(D){return _.f("mweb_wiz_skip_render")?nRM(D):ryl(D)};
nRM=function(D){return function(Y){var R=wyi("wink-root");vM5();$7$();dP9(R,_.S(D,Y))}};
ryl=function(D){var Y=Y===void 0?!1:Y;return function(R){if(!Y||!_.f("mweb_skip_keto_to_c3_if_no_data")||R.data!==void 0){var Z=D1(!1);try{var t=R.children;_.f("mweb_render_outside_patch_killswitch")||L4?t?cm(_.S(D,R,t)):cm(_.S(D,R)):_.Jk(new _.AT("ketoToC3 called outside of a patch",{tagName:D.TAG_NAME}))}finally{D1(Z)}}}};
$4$=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
oRM=function(D,Y){D.onViewportEntered=Y;vRy.observe(D)};
bmi=function(){var D={rootMargin:"10%",threshold:.01};_.f("mweb_enable_set_io_root_to_null_safari")?D.root=null:_.f("mweb_enable_set_io_root_to_body_safari")&&(D.root=document.body);return new IntersectionObserver(function(Y,R){Y.filter(function(Z){return Z.intersectionRect.height>0}).forEach(function(Z){Z=Z.target;
if(!_.f("mweb_enable_only_update_image_when_connected")||Z.isConnected!==!1){var t;(t=Z.onViewportEntered)==null||t.call(Z);R.unobserve(Z)}})},D)};
yy9=function(D,Y,R,Z,t){function X(){if(Z){var W=Z.loadedClass,z=Z.notifyOnUnloaded;W&&_.YP(D,W);z&&D.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function M(){var W=R(Y,D);W&&D.getAttribute("src")!==W&&(_.f("mweb_enable_only_update_image_when_connected")&&D.isConnected===!1||W===D.src||(D.src=W),X())}
t=t===void 0?!0:t;D.removeAttribute("src");X();Y&&(t?oRM(D,M):M())};
NwU=function(D,Y,R){if(!Y)return!1;Y=R(Y,D);R=D.getAttribute("src");return Y&&Y===R&&D.complete};
ltU=function(D,Y){for(var R in Y)R==="className"?D.className=Y[R]:(Dq[R]||Dq[kd.default])(D,R,Y[R])};
Jy$=function(D,Y,R,Z){wcl(_.Rt)({contentMode:Y.contentMode,loadedClass:Y.loadedClass,isPreloaded:Y.isPreloaded,notifyOnLoaded:Y.notifyOnLoaded,notifyOnUnloaded:Y.notifyOnUnloaded,preferredThumbnail:Y.preferredThumbnail,preserveHeight:Y.preserveHeight,preserveWidth:Y.preserveWidth,objectPosition:Y.objectPosition,targetWidth:Y.targetWidth,targetHeight:Y.targetHeight,shouldShowPlaceholder:Y.shouldShowPlaceholder,useWidth:Y.useWidth,isToggled:Y.isToggled,alt:Y.alt,className:Y.className,onerror:Y.onerror,
onload:Y.onload,style$:Y.style$,color:Y.color,width:Y.width,height:Y.height,"aria-hidden$":Y["aria-hidden$"],draggable:Y.draggable,"data-disabled$":Y["data-disabled$"],data:D,callback:R,renderLazy:Z===void 0?!0:Z,hideOn404:!1})};
U49=function(D,Y,R){R=R===void 0?!1:R;var Z=D.sources!==void 0?D:_.z5n(D);if(Z){var t=Y.onload;Y.onload=function(z){var I=z.target;R&&I.naturalWidth===120||_.ZT(I,"yt-core-image--loaded");Y.notifyOnLoaded&&I.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));t==null||t(z)};
Y.targetWidth&&Y.preserveWidth&&(Y.width=Y.targetWidth);Y.targetHeight&&Y.preserveHeight&&(Y.height=Y.targetHeight);var X=_.jVU(Z),M=X&&Ayo(X);if(M)return(D=It$(X))&&(Y.color=D),{type:"icon",iconName:M,config:Object.assign({},Y,Y.alt?{}:{"aria-hidden$":"true"},{"aria-label$":Y.alt,role:"img"})};if(D.sources===void 0){Y.alt=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label||Y.alt;Y.style$=VcU(D,Y.shouldShowPlaceholder,Y.style$);var W;Y.isPreloaded=!((W=_.A(D,
k0U))==null||!W.isPreloaded)}Y.contentMode&&!Z.contentMode&&(Z.contentMode=Y.contentMode);Y.className=fto(Z,Y.className,Y.preserveHeight,Y.preserveWidth,Y.objectPosition);Y.loadedClass="yt-core-image--loaded";return{type:"image",image:Z,config:Y}}};
_.tp=function(){var D=_.UN.apply(0,arguments);return _.io(KKM,function(Y){var R=D.map(function(Z){return Z==null?void 0:Z(Y)});
return function(){return void R.forEach(function(Z){return void(Z==null?void 0:Z())})}})};
sD=function(D,Y){var R=Y==null?void 0:Y.initial;return _.Si(function(){_.v_(!0);return R=D(R)},{equals:Y==null?void 0:Y.isEqual},"rSlKsc")};
h5U=function(D,Y){if(D===Y)return!0;if(D===void 0||Y===void 0)return!1;var R,Z,t,X,M,W,z,I;return D.content===Y.content&&((R=D.styleRuns)==null?void 0:R.length)===((Z=Y.styleRuns)==null?void 0:Z.length)&&((t=D.commandRuns)==null?void 0:t.length)===((X=Y.commandRuns)==null?void 0:X.length)&&((M=D.attachmentRuns)==null?void 0:M.length)===((W=Y.attachmentRuns)==null?void 0:W.length)&&((z=D.decorationRuns)==null?void 0:z.length)===((I=Y.decorationRuns)==null?void 0:I.length)};
qE9=function(D,Y){if(D){var R=Zmi(D);if(R!=null&&R.content)if(_.f("attr_string_reactive"))wcl(LKb)({text:D,config:Y});else{var Z=!(Y==null||!Y.ariaLabel)||!(R.commandRuns&&R.commandRuns.length!==0||R.paragraphStyleRuns&&R.paragraphStyleRuns.length!==0);D=Z?Y==null?void 0:Y.ariaLabel:null;Z=Z?"text":null;z0$("span",{className:HpS(R,Y),dir$:(Y==null?0:Y.userInput)?"auto":void 0,"aria-label$":D,role$:Z},function(){if(R.styleRuns||R.commandRuns||R.attachmentRuns||R.decorationRuns||R.paragraphStyleRuns){var t=
R5U(R,Y);sVo(t,Y);t=WKy(R.content,t);t=_.a(t.parts);for(var X=t.next();!X.done;X=t.next())m4o(X.value)}else kyb(R.content)})}}};
m4o=function(D){typeof D==="string"?kyb(D):tcS(D.data)?z0$("span",D.data.imageWrapperConfig,function(){Jy$(D.data.image,D.data.imageConfig)}):z0$(D.data.tag,D.data.config,function(Y){Xcj(D.data)(Y);
Y=_.a(D.parts);for(var R=Y.next();!R.done;R=Y.next())m4o(R.value)})};
x4U=function(D){return D.parts.map(Hm5)};
Hm5=function(D){if(typeof D==="string")return D;D=tcS(D.data)?_.S("span",{el:_.tp(uXU(D.data.imageWrapperConfig))},_.S(_.Rt,Object.assign({},{data:D.data.image},D.data.imageConfig))):_.S(D.data.tag,{el:_.tp(Xcj(D.data),uXU(D.data.config))},D.parts.map(Hm5));return z6(D)};
PVy=function(D,Y){return D===Y?!0:D===void 0||Y===void 0?!1:D.noStyleRuns===Y.noStyleRuns&&D.noLinkColor===Y.noLinkColor&&D.noEndpoints===Y.noEndpoints&&D.headerRuns===Y.headerRuns&&D.isOverlay===Y.isOverlay&&D.linkInheritColor===Y.linkInheritColor&&D.userInput===Y.userInput&&D.isHeadline===Y.isHeadline};
QVi=function(D){return function(){var Y,R,Z,t,X,M,W,z,I,F,G,V,e,r,l;return{ariaLabel:(Y=D.ariaLabel)==null?void 0:Y.call(D),className:(R=D.className)==null?void 0:R.call(D),ellipsisTruncate:(Z=D.ellipsisTruncate)==null?void 0:Z.call(D),isOverlay:(t=D.isOverlay)==null?void 0:t.call(D),linkInheritColor:(X=D.linkInheritColor)==null?void 0:X.call(D),noEndpoints:(M=D.noEndpoints)==null?void 0:M.call(D),noStyleRuns:(W=D.noStyleRuns)==null?void 0:W.call(D),noLinkColor:(z=D.noLinkColor)==null?void 0:z.call(D),
noPreWrap:(I=D.noPreWrap)==null?void 0:I.call(D),noWrap:(F=D.noWrap)==null?void 0:F.call(D),skipOnClick:(G=D.skipOnClick)==null?void 0:G.call(D),stopPropagation:(V=D.stopPropagation)==null?void 0:V.call(D),userInput:(e=D.userInput)==null?void 0:e.call(D),headerRuns:(r=D.headerRuns)==null?void 0:r.call(D),isHeadline:(l=D.isHeadline)==null?void 0:l.call(D)}}};
Bwl=function(D){return D.value===""||D.value==="true"?!0:D.value==="false"?!1:isNaN(Number(D.value))?D.value:Number(D.value)};
X4=function(D,Y){D=new pcr(D,Y);_.Nb(D);throw D;};
ER5=function(D,Y,R){var Z=sHi(D);D._numRenders=0;try{var t=_.Ixn(function(){return _.S(Y,Object.assign({},R))})}catch(M){var X=function(W){W.args||(W.args=[]);
W.args.push("Error in web component wrapper");W.args.push(D.tagName.toLowerCase());return W};
_.lo(M instanceof Error?X(M):new pcr("Wiz rendering error",D.tagName.toLowerCase()));throw M;}finally{sHi(Z)}return t};
_.at=function(D,Y,R){function Z(F){var G={};F=_.a(F);for(var V=F.next();!V.done;V=F.next()){V=V.value;var e=void 0,r=void 0,l=void 0,U=_.eP((l=(r=(e=V).getAttribute)==null?void 0:r.call(e,"slot"))!=null?l:"children");if(e=G[U])e.push(V);else if(U in X||U==="children")G[U]=[V]}F=_.a(Object.keys(G));U=F.next();for(V={};!U.done;V={content$jscomp$56:void 0},U=F.next())U=U.value,U!=="children"&&(V.content$jscomp$56=G[U],G[U]=function(K){return function(){return K.content$jscomp$56}}(V));
return G}
R=R===void 0?{}:R;D.componentType!==f4||X4("Components must be marked reactive to be used from web component wrapper.",Y);MI.has(Y)&&X4("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",Y);var t,X=(t=R.props)!=null?t:{};C8.add(Y);var M=gRU();t=function(){var F=M.apply(this,arguments)||this;F.rawProps={};F.queuingRender=!1;F.dispose=function(){};
F.isWebComponentWrapper=!0;F.isReparenting=!1;F.hasRendered=!1;return F};
_.n(t,M);t.prototype.render=function(){this.hasRendered=!0;for(var F=_.a([].concat(_.oK(this.attributes))),G=F.next();!G.done;G=F.next())G=G.value,G.name!=="slot"&&G.name!=="hidden"&&this.removeAttribute(G.name);F=Object.assign({},this.componentProps,this.slotProps);G=_.a(ER5(this,D,F));F=G.next().value;G=G.next().value;!(F[0]instanceof Element)||F.length>1?X4("Wrapped Wiz components must return a single root element.",Y):(F=F[0].tagName.toLowerCase(),F!==Y&&X4("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(F+" !== '"+Y),Y),this.dispose=G)};
t.prototype.setUpProps=function(){for(var F=this.rawProps,G=this.attributes,V=_.a(Object.keys(X)),e=V.next();!e.done;e=V.next()){e=e.value;var r=void 0;((r=this)==null?0:r[e])&&this[e]!==d4i&&F[e]===void 0&&(F[e]=this[e],(r=Object.getOwnPropertyDescriptor(this.constructor.prototype,e))&&Object.defineProperty(this,e,r))}V=_.a(G);for(e=V.next();!e.done;e=V.next()){r=e.value;e=_.eP(r.name);var l=e==="class"&&!G.getNamedItem("class-name");if(e in X||l)r=Bwl(r),e!=="class"||F.className?F[e]=r:F.className=
r}G={};for(var U in X)X[U]!==_.uq&&X[U]!==imr&&(F[U]instanceof Function&&X4("Function props must be configured as STATIC, not SIGNAL.",Y),e=_.a(_.ae(F[U],void 0,"Ri8MSe")),V=e.next().value,e=e.next().value,G[U]=e,F[U]=V);F=_.a([F,G]);this.componentProps=F.next().value;this.setters=F.next().value;this.slotProps=Z(this.childNodes)};
t.prototype.connectedCallback=function(){uf===Y&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in X&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
t.prototype.disconnectedCallback=function(){if(!this._isInert){var F;a:{if(_.Omn)for(F=this;F;){if(_.cyo.has(F)){F=!0;break a}F=F.parentElement}F=!1}if(F)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){F=_.a([].concat(_.oK(this.attributes)));for(var G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0;G.name==="slot"||G.name==="hidden"&&((V=R.unsafeExternallySettableAttributes)==null?0:V.has("hidden"))||this.removeAttribute(G.name)}}this.innerText="";dSM(this)}}};
t.prototype._setPendingPropertyOrPath=function(){};
t.prototype.notifyPath=function(){};
_.YF.Object.defineProperties(t.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var W=_.a(Object.keys(X)),z=W.next(),I={};!z.done;I={prop$jscomp$104:void 0},z=W.next())I.prop$jscomp$104=z.value,z=void 0,((z=R.legacyPolymer)==null?0:z.forwardHostProps)&&Eqi.has(I.prop$jscomp$104)||Object.defineProperty(t.prototype,I.prop$jscomp$104,{set:function(F){return function(G){var V=this;this._isInert||(this.setters?Tk(function(){var e,r;return void((r=(e=V.setters)[F.prop$jscomp$104])==null?void 0:r.call(e,G))}):(this.rawProps[F.prop$jscomp$104]=G,this.queuingRender&&F.prop$jscomp$104===
"data"&&G!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(I),
get:Don.has(I.prop$jscomp$104)?void 0:function(){return d4i}});
customElements.define(Y,t)};
_.YiU=function(D,Y){return(D=_.MW(D,Y))?_.oJ(_.Jf(D)):null};
_.CB=function(D){if(D=_.MW(D,Number.MAX_VALUE,void 0,"width"))return _.Jf(D)};
_.MW=function(D,Y,R,Z){Z=Z===void 0?"width":Z;if(!D||!D.length)return null;if(_.f("kevlar_tuner_should_always_use_device_pixel_ratio")){var t=window.devicePixelRatio;_.f("kevlar_tuner_should_clamp_device_pixel_ratio")?t=Math.min(t,_.ZH("kevlar_tuner_clamp_device_pixel_ratio")):_.f("kevlar_tuner_should_use_thumbnail_factor")&&(t=_.ZH("kevlar_tuner_thumbnail_factor"));Rgb=t}else Rgb||(Rgb=window.devicePixelRatio);t=Rgb;_.f("kevlar_tuner_should_always_use_device_pixel_ratio")?Y*=t:t>1&&(Y*=t);if(_.f("kevlar_tuner_min_thumbnail_quality"))return D[0].url||
null;t=D.length;if(_.f("kevlar_tuner_max_thumbnail_quality"))return D[t-1].url||null;if(R)for(var X=0;X<t;X++)if(D[X].url.indexOf(R)>=0)return D[X].url||null;for(R=0;R<t;R++)if(D[R][Z]>=Y)return D[R].url||null;for(Y=t-1;Y>0;Y--)if(D[Y][Z])return D[Y].url||null;return D[0].url||null};
sSy=function(){WN.size?setTimeout(function(){zf(Zdr)},0):tTy=0};
Zdr=function(){var D=(0,_.DO)(),Y=null,R=!1;WN.forEach(function(t){t.loaded=!0;t.loadTime=D;t.pendingPaint=!1;var X=Xa5.get(t);X&&X.resolve(D);Y=t;R||!t.ftlEligible&&t.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(R=!0)});
var Z;((Z=Y)==null?0:Z.markDirty)&&Y.markDirty();WN.clear();tTy=0;R&&uHj(D)};
aEy=function(D){WN.add(D);D.pendingPaint=!0;tTy||(tTy=_.S7(_.yc,sSy))};
MT9=function(D){D.loaded=!1;D.loadTime=Infinity;var Y=Xa5.get(D);Y&&(Y.reject(Error("lh")),Xa5.delete(D));D.pendingPaint&&(WN.delete(D),D.pendingPaint=!1)};
_.Ceb=function(D){var Y=D.indexOf(":");return Y===-1?{originalName:D}:{originalName:D.substring(0,Y),datasyncId:D.substring(Y+1)}};
_.zgn=function(){return _.C(function(D){if(WZj!==void 0)return D.return(WZj);WZj=new Promise(function(Y){var R;return _.C(function(Z){switch(Z.nextAddress){case 1:return _.SX(Z,2),Z.yield(_.Tf.open("test-only"),4);case 4:return Z.yield(_.Tf.delete("test-only"),5);case 5:_.xw(Z,3);break;case 2:if(R=_.Gl(Z),R instanceof Error&&R.name==="SecurityError")return Y(!1),Z.return();case 3:Y("caches"in window),_.V9(Z)}})});
return D.return(WZj)})};
jSo=function(){return _.C(function(D){if(D.nextAddress==1)return D.yield(_.zgn(),2);if(!D.yieldResult)return D.return(void 0);Sii||(Sii=new Ta9);return D.return(Sii)})};
IEj=function(D){var Y,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return X.yield(jSo(),2);case 2:Y=X.yieldResult;if(!Y)throw Error("nh");return X.yield(Y.open("yt-player-local-img"),3);case 3:return R=X.yieldResult,X.yield(R.match(D),4);case 4:Z=X.yieldResult;if(!Z)throw Error("oh");return X.yield(Z.blob(),5);case 5:return t=X.yieldResult,X.return(t)}})};
FZU=function(D,Y){for(var R in D)if(D.hasOwnProperty(R)&&Y[R])return R;return null};
GHM=function(D){return"stamp"+D.replace("-","_")+"_"};
VTl=function(D){var Y=D.match(/\[\[([\w\.]+)\]\]/);if(Y&&Y.length>1)return Y[1];_.Nb(Error("qh`"+D));return null};
fE5=function(D){return D===void 0?_.ks("REUSE_COMPONENTS",!1):D||!1};
nzU=function(D,Y,R){R&&(Y.is?(egU.has(Y)&&(D=egU.get(Y),R=D.listener,delete Y[D.property],R.type==="element"&&Y.removeEventListener(R.eventName,R.handler),egU.delete(Y)),Agl(Y)):Y.__proto__==HTMLElement.prototype&&(Y=new _.AT("Rendererstamper removed a non custom element","Stamper: "+D+" element: "+(Y&&Y.nodeName)),_.Jk(Y)))};
rgb=function(D,Y,R,Z){var t=Y.node?Y.node:Y;_.aU(R).parentNode===t&&(Y.removeChild(R),nzU(D,R,Z));if(D=j7.get(R))j7.delete(R),_.yc.cancelJob(D);R.hidden=!1};
wa5=function(D,Y,R,Z){if(Y&&Y.children&&(R=Y.children[R]))if(_.ks("DEFERRED_DETACH"))for(;R&&!j7.has(R);){var t=D,X=Y,M=R,W=Z;M.hidden=!0;t=_.Ak(_.yc,rgb.bind(null,t,X,M,W),0);j7.set(M,t);R=R.nextElementSibling}else for(;(M=Y.lastElementChild)&&(Y.removeChild(M),nzU(D,M,Z),M!=R););};
$oM=function(D){var Y=_.dI("__slot-el");_.$s(function(){for(var R=_.a(D.slotContent),Z=R.next();!Z.done;Z=R.next())Y.value.appendChild(Z.value)});
return _.S("__slot-el",{el:Y,skip:!0})};
_.It=function(D,Y,R){R=R===void 0?vz9:R;MI.add(Y);var Z;(Z=R).propNames!=null||(Z.propNames=[]);var t=new Set(R.propNames),X=gRU();Z=function(){var I=X.call(this)||this;I.props={};I.isUpdating=!1;I.hasAttached=!1;I.isInert=!1;I.updateQueued=!1;I.initialClasses=[];txU(I,Y);return I};
_.n(Z,X);Z.prototype.forwardKebabCaseProp=function(I,F){I=_.eP(I);if(t.has(I)||I==="children")this.props[I]=F};
Z.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var I=_.a(this.initialClasses),F=I.next();!F.done;F=I.next())(F=F.value)&&this.classList.add(F);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
Z.prototype.handleSlottedContent=function(){for(var I=new Map,F=_.a(this.children),G=F.next();!G.done;G=F.next()){G=G.value;var V=void 0,e=(V=G.getAttribute("slot"))!=null?V:"children";(V=I.get(e))?V.push(G):I.set(e,[G]);if(!G.getAttribute("key")){var r=void 0,l=void 0;G.setAttribute("key",e+"_"+((l=(r=V)==null?void 0:r.length)!=null?l:0))}}I=_.a(I);for(F=I.next();!F.done;F=I.next())G=_.a(F.value),F=G.next().value,G=G.next().value,this.forwardKebabCaseProp(F,_.S($oM,{slotContent:G}))};
Z.prototype.connectedCallback=function(){var I=this;if(!txU(this,Y)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var F=_.a(this.attributes),G=F.next();!G.done;G=F.next())G=G.value,this.forwardKebabCaseProp(G.name,Bwl(G));this.handleSlottedContent();R.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){I.afterFirstPatch()});
this.hasAttached=!0}};
Z.prototype.attributeChangedCallback=function(I,F,G){this.isInert||this.isUpdating||this.isConnected||I!=="class"||this.initialClasses.push.apply(this.initialClasses,_.oK(G.split(" ")))};
Z.prototype.disconnectedCallback=function(){J5U(this)};
Z.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var I,F;dP9(this,_.S(D,Object.assign({},this.props,{idomKey:(F=(I=this.__incrementalDOMData)==null?void 0:I.key)!=null?F:Y})),!0)}catch(V){var G=V instanceof Error?V:new _.AT("Wiz rendering error");G.args||(G.args=[]);G.args.push("Error in deprecated web component wrapper");G.args.push(Y.toLowerCase());_.Nb(G);throw V;}finally{this.updateQueued=this.isUpdating=!1}}};
Z.prototype.enqueueUpdate=function(){var I=this;return _.C(function(F){if(R.synchronous)return I.update(),F.return();if(I.updateQueued)return F.return();I.updateQueued=!0;return F.return(Promise.resolve().then(function(){I.update()}))})};
Z.prototype.notifyPath=function(){R.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.YF.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var M=_.a(R.propNames),W=M.next(),z={};!W.done;z={prop$jscomp$106:void 0},W=M.next())z.prop$jscomp$106=W.value,Object.defineProperty(Z.prototype,z.prop$jscomp$106,{set:function(I){return function(F){this.isInert||F===this.props[I.prop$jscomp$106]||(this.props[I.prop$jscomp$106]=F,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(z)});
customElements.define(Y,Z)};
bdU=function(D){var Y;return(Y=ozj[D])!=null?Y:"EVENT_SPAN_TYPE_UNKNOWN"};
ygy=function(D){var Y=D.nodeName;if(D.id)return Y+="#"+D.id;if(D.classList)for(var R=_.a(D.classList),Z=R.next();!Z.done;Z=R.next())Y+="."+Z.value;D.parentElement&&(Y=ygy(D.parentElement)+" > "+Y);return Y};
NaU=function(D){return function(Y){var R=bdU(Y.type);return R==="EVENT_SPAN_TYPE_UNKNOWN"?D(Y):La9("event",{type:R,nodepath:Y.target instanceof Element?ygy(Y.target):void 0},function(){return D(Y)})}};
_.F4=function(D){D&&kYU("event")&&(D=NaU(D));return Bqr(function(Y){var R,Z=(R=D)==null?void 0:R(Y);return typeof Z==="boolean"?Z:!0})};
Gf=function(D){return function(){return D()?D():void 0}};
Uo$=function(D){var Y=_.dI("animated-rolling-character"),R=b1(),Z=Di(D.character)||Di(D.previousCharacter);c5o(function(){if(D.marginMultiplier){var t;(t=R.value)==null||t.cancel();Z?(t=D.previousCharacter?Number(D.previousCharacter)+10:D.rollUp?0:30,D.shouldAnimate||(t-=lEU(D,t))):(t=D.rollUp?0:2,D.shouldAnimate||(t-=D.rollUp?-1:1));Y.value.style.marginTop="-"+t*D.marginMultiplier+"px";D.shouldAnimate?R.value=Jgy(Y.value,D,t,Z):Y.value.style.display=D.character?"":"none"}});
return _.S("animated-rolling-character",{el:Y,class:"animated-rolling-character-wiz"},FiU(Z,function(){for(var t=[],X=1;X<30;X++)t.push(_.S("div",null,X%10));return _.S(_.c_,null,_.S("div",null,"\u00a0"),t,_.S("div",null,"\u00a0"))},function(){return kHr(D.character)}))};
kHr=function(D){return _.S(_.c_,null,_.S("div",null,"\u00a0"),_.S(_.c_,null,FiU(!D||_.M$(D),function(){return _.S("div",null,"\u00a0")},function(){return _.S("div",null,D)})),_.S("div",null,"\u00a0"))};
Jgy=function(D,Y,R,Z){R=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(Z?lEU(Y,R):Y.rollUp?-1:1)*Y.marginMultiplier+"px)"}],KZy),document.timeline);Y.character?(D.style.display="",R.onfinish=null):R.onfinish=function(){D.style.display="none"};
R.play();return R};
lEU=function(D,Y){var R=Number(D.character)+10;if(D.previousCharacter)if(D.character){var Z=Number(D.character),t=Number(D.previousCharacter);D=D.rollUp?t<Z?R:R+10:t<Z?R-10:R}else D=D.rollUp?30:0;else D=D.character==="0"?R:D.rollUp?R-10:R+10;return Y-D};
_.Vv=function(D){return function(Y){var R={},Z;for(Z in Y){var t=void 0,X=void 0;((t=void 0)==null?0:(X=t.callbacks)==null?0:X[Z])||(R[Z]=Y[Z])}return _.S(jZU,null,function(){for(var M in R)Y[M]=_.v_(R[M]);Y.disableReactiveLogging=!0;return _.S(D,Object.assign({},Y))})}};
mol=function(D,Y,R,Z,t,X,M){R=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(X?hg5(Y,R,Z,t):Z?-1:1)*M+"px)"}],LZU),document.timeline);Y?(D.style.display="",R.onfinish=null):R.onfinish=function(){D.style.display="none"};
R.play();return R};
hg5=function(D,Y,R,Z){var t=Number(D)+10;Y?D?(D=Number(D),Y=Number(Y),R=R?Y<D?t:t+10:Y<D?t-10:t):R=R?30:0:R=D==="0"?t:R?t-10:t+10;return Z-R};
Hd9=function(D){var Y=b1(),R=b1();_.wf(function(){Y.value=D.numberText;R.value=D.numberValue},[D.numberText]);
var Z=D.fontSizeMultiplier?D.heightPx*D.fontSizeMultiplier:D.heightPx,t=aij(function(){if(D.numberText){var M=D.numberText;var W=D.forceRollUp||!R.value||!D.numberValue||R.value<D.numberValue;var z=!!D.shouldAnimate,I=Y.value,F=[],G=0,V=0,e=(I?I.replace(/\D/g,"").length:0)-(M?M.replace(/\D/g,"").length:0);I=I?I.split(/(\d)/).filter(Boolean):[];for(M=M.split(/(\d)/).filter(Boolean);e<0;){var r=M[V];F.push({character:r,rollUp:W,marginMultiplier:Z,shouldAnimate:z});V++;Di(r)&&e++}for(;G<e;)r=I[G],F.push({previousCharacter:r,
rollUp:W,marginMultiplier:Z,shouldAnimate:z}),G++,Di(r)||e++;for(;V<M.length;)e=M[V],r=I[G],Di(e)===Di(r)?(V++,G++):Di(e)?(G++,e=void 0):Di(r)&&(V++,r=void 0),F.push({character:e,previousCharacter:r,rollUp:W,marginMultiplier:Z,shouldAnimate:z});W=F}else W=[];return W},[D.numberText]),X=D.numberText?["height: "+Z+"px;",
"line-height: "+D.heightPx+"px;"].join(" "):"";return _.S("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:X,dir:"ltr","aria-hidden":"true"},t.map(function(M){return _.S(qi9,Object.assign({},M))}))};
xo5=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Pej=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.fB=function(D){var Y=sD(function(R){R=R?uM(R[0]):void 0;return _.ae(D(R),void 0,"AwTxXe")},{isEqual:function(R,Z){return uM(R[0])===uM(Z[0])}});
return[function(){return Y()[0]()},
function(R){return void Y()[1](R)}]};
_.e7=function(){for(var D=_.UN.apply(0,arguments),Y=!0,R=_.a(D),Z=R.next();!Z.done;Z=R.next())if(typeof Z.value!=="string"){Y=!1;break}return Y?D.join(" ").trim()||void 0:function(){for(var t="",X=_.a(D),M=X.next();!M.done;M=X.next())if(M=M.value,typeof M==="function"&&(M=M()),M)if(typeof M==="string")t+=" "+M;else for(var W in M)if(M.hasOwnProperty(W)){var z=M[W];typeof z==="function"&&(z=z());z&&(t+=" "+W)}t=t.trim()||void 0;return _.v_(t)}};
_.Ap=function(D){return function(){var Y="",R;for(R in D){for(var Z=D[R];typeof Z==="function";)Z=Z();Z!==void 0&&Z!==null&&(Y+="; "+R+": "+Z)}return Y.length>0?_.v_(Y.slice(2)):_.v_()}};
QS9=function(D){switch(D){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"}};
doU=function(D,Y,R,Z,t,X,M){var W=Ba$(D),z=W.disabled,I=W.iconPosition,F=W.style,G=W.focused,V=function(){return!!l()&&I()==="icon-only"},e=function(){return!!l()&&I()==="icon-only-40"},r=function(){return!!l()&&I()==="icon-with-label"},l=function(){return!!Y||!(Z==null||!Z())};
return{type:function(){return F()==="call-to-action-inverse"?"text":F()==="overlay-dark"&&D().type!=="filled"&&D().type!=="tonal"?"tonal":D().type},
shouldFocus:function(){return(G()||(X==null?void 0:X()))&&!z()},
hasIconLeading:function(){return!!l()&&I()==="leading"},
hasIconTrailing:function(){return!!l()&&I()==="trailing"},
hasIconLeadingTrailing:function(){return!!l()&&!!(R||t!=null&&t())&&I()==="leading-trailing"},
hasIconOnly:V,hasIconOnly40:e,hasIconWithLabel:r,iconButton:function(){return V()||e()||r()},
visiblyDisabled:function(){return(z()?"disabled":D().state)==="disabled"||z()},
overrideSmallSizeIcon:function(){return!D().ignoreIconSizeOverride&&paj(D(),l())},
iconToRender:Y?Y:function(){return _.S(_.nB,{icon:Z,size:function(){return EzS(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return gzj(D())},
animateIcon:M})},
secondaryIconToRender:R?R:function(){return _.S(_.nB,{icon:t,size:function(){return EzS(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return gzj(D())}})}}};
Ba$=function(D){return{size:function(){return D().size},
style:function(){return D().style},
focused:function(){return D().focused},
disabled:function(){return D().disabled},
onTap:function(Y){var R,Z;return(Z=(R=D()).onTap)==null?void 0:Z.call(R,Y)},
alignByText:function(){return D().alignByText},
aTagConfig:function(){return D().aTagConfig},
customColors:function(){return D().customColors},
segmentedPosition:function(){return D().segmentedPosition},
toggled:function(){return D().toggled},
toggleable:function(){return D().toggleable},
accessibilityLabel:function(){return D().accessibilityLabel},
onToggle:function(Y){var R,Z;return(Z=(R=D()).onToggle)==null?void 0:Z.call(R,Y)},
iconPosition:function(){return D().iconPosition},
oneOffCustomTextWrap:function(){return D().oneOffCustomTextWrap},
disableTextEllipsis:function(){return D().disableTextEllipsis},
disableBackdropFilter:function(){return D().disableBackdropFilter},
tooltipText:function(){return D().tooltipText},
ariaHidden:function(){return D().ariaHidden},
tabIndex:function(){return D().tabIndex},
buttonText:function(){return D().buttonText},
formattedButtonText:function(){return D().formattedButtonText},
animatedTextProps:function(){return D().animatedTextProps}}};
paj=function(D,Y){Y=(D.iconPosition==="icon-only"||D.iconPosition==="icon-only-40"||D.iconPosition==="icon-with-label")&&Y;return!D.segmentedPosition&&Y&&D.size==="S"};
EzS=function(D,Y,R){switch(D.size){case "XS":return 16;case "S":return!R&&paj(D,Y)?24:16;default:return 24}};
idM=function(D){switch(D){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"}};
OdU=function(D){switch(D){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"}};
cgi=function(D){switch(D){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"}};
gzj=function(D){if(D.style==="overlay-dark"&&D.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
r1=function(D){return D&&D.endsWith("px")?Number(D.slice(0,-2)):0};
RQb=function(D){var Y=Y===void 0?{}:Y;D=_.a(_.fB(D));var R=D.next().value;return[function(Z){var t=_.Si(function(){var W,z,I,F;return{text:(W=R())!=null?W:"",location:(z=Y.location)!=null?z:"bottom",offset:(I=Y.offset)!=null?I:16,delay:(F=Y.delay)!=null?F:1}},void 0,"MgTrkc");
_.r2(function(){var W=t();uM(function(){_.yc.addJob(function(){w1.notify(Z,W)},4)})},"WlsgZc");
var X=function(){Djn(Z,t())},M=function(){Yh$()};
Z.addEventListener("mouseenter",X);Z.addEventListener("focus",X);Z.addEventListener("mouseleave",M);Z.addEventListener("blur",M);Z.addEventListener("tap",M);_.w2(function(){Z.removeEventListener("mouseenter",X);Z.removeEventListener("mouseleave",M);Z.removeEventListener("focus",X);Z.removeEventListener("blur",M);Z.removeEventListener("tap",M);Yh$()})},
D.next().value]};
ZZr=function(D,Y){if(!EW){var R;D7$(function(){return R=S0y(D,Y)});
return R}D.parent=_.$P();return S0y(D,Y)};
_.$P=function(){var D=_.de(EW||void 0,CEj);return _.e29(D)?void 0:D};
vN=function(D,Y){_.xC(D,Object.assign({},Y,{forceClickLogging:!0}))};
sAU=function(D,Y){var R=_.HL(D==null?void 0:D.onTap),Z={};R&&(Z.getClickedVisualElement=function(){var t;return tgi(D,R,Y==null?void 0:(t=Y.value)==null?void 0:t.visualElement)});
Z=_.PL({elementsCommand:D.onTap,forceNewState:!0,additionalCommandArgs:Z});return Qu(Z)?Z:void 0};
XIo=function(D,Y,R,Z){vN(D,Object.assign({},{form:{element:Y,event:R}},Z))};
uRr=function(D,Y,R,Z,t){var X=void 0;return function(M){var W=_.HL(R?D==null?void 0:D.onDisabledTap:D==null?void 0:D.onTap);if(W){var z;X=(z=X)!=null?z:Y==null?void 0:Y.value;if(W)if(_.f("web_button_vm_click_client_ve_killswitch"))XIo(W,X,M);else{var I;z=tgi(D,W,(I=X)==null?void 0:I.visualElement);if(t){XIo(W,t,M,{clickedVisualElement:z,form:{element:t}});return}XIo(W,X,M,{clickedVisualElement:z})}}Z&&Z(M)}};
tgi=function(D,Y,R){Y=Y==null?void 0:Y.clickTrackingParams;var Z,t;D=D==null?void 0:(Z=D.loggingDirectives)==null?void 0:(t=Z.clientVeSpec)==null?void 0:t.uiType;if(R&&D&&!Y)return R};
agn=function(D){switch(D){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"}};
Mgj=function(D){switch(D){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"}};
CZi=function(D){switch(D){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"}};
WE$=function(D){switch(D){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"}};
zQ5=function(D,Y){return _.jC(D.entities,"engagementToolbarStateEntityPayload",Y)};
TJU=function(D){(D=_.oT(D))&&_.Shb(D)};
_.Shb=function(D){var Y=_.K2();Y&&_.pX(Y,D)};
jA5=function(D,Y,R){_.CX(D,"yt-open-popup-action",[Y,R||D])};
IgU=function(D,Y){var R=_.yL(D,"endpoint"),Z=_.yL(D,"action");return(R=Z?Z:R)&&Y&&(R=Y.navigationEndpointPopupMap[R])&&(D=_.mf(R,D),(R=_.yL(D,"renderer"))&&Y.supportedPopups.hasOwnProperty(R))?{openPopupAction:{popupType:Y.popupTypeMap[R],popup:D}}:null};
FEo=function(D,Y,R,Z){if(Z){var t;R=R==null?void 0:(t=R.data)==null?void 0:t.contents;(t=R instanceof Array&&R.length?R[0]:R)&&(R=_.yL(t,"renderer"))&&Z.supportedPopups.hasOwnProperty(R)&&(Y.stopPropagation(),jA5(D,{openPopupAction:{popupType:Z.popupTypeMap[R],popup:t}}))}};
fgo=function(D,Y,R,Z){Z=Z===void 0?!1:Z;var t=GWU(Y);if(t){t.href&&BG(t.href);var X=Y.button;X=X!==void 0?X===0&&!ot(Y):!ot(Y);t.data&&X&&Vg$(D,t,Y,R,Z)}};
Vg$=function(D,Y,R,Z,t){t=t===void 0?!1:t;var X=_.ZH("pbj_navigate_limit",-1)===0;eQU(Y);_.DH().resolve(_.cD(Pm));var M=Y.data;if(Object.keys(M).length!==0)if(!_.f("unplugged_web_disable_actions_for_cec_endpoint")&&_.A(M,_.je))_.f("endpoint_behavior_command_executor_fix_killswitch")||(R.preventDefault(),R.stopPropagation()),_.Se(D,[M],D);else if(Z=IgU(M,Z))M.loggingUrls&&M.loggingUrls.forEach(function(z){z.baseUrl&&_.qs(z.baseUrl)}),R.preventDefault(),R.stopPropagation(),jA5(D,Z,Y);
else{var W=AKr(0,Y.data,R);if(D=Y.getForm)D=D(),W.tempData=W.tempData||{},W.tempData=Object.assign({},W.tempData,D);D=_.O$(R);if(Z=D.find(function(z){return!!z.visualElement}))W.createScreenConfig=W.createScreenConfig||{},W.createScreenConfig.clickedVisualElement=Z.visualElement;
if(!X)if(R.preventDefault(),R.stopPropagation(),_.A(M,_.nXl)&&!t&&_.GD.instance)_.GD.instance.resolveCommand(M,W);else if(_.f("kevlar_command_handler_formatted_string")&&!t&&_.GD.instance&&rKr(M))t=D.find(function(z){return!!z.is})||R.target,R={form:Object.assign({},W,{event:R,
element:t,originatingNode:Y})},_.GD.instance.resolveCommand(M,R);else{M=_.O$(R);R=[];for(t=0;t<M.length;t++)(X=M[t].is)&&R.push(X);ocb({parents:R.join(","),text:Y.innerText},function(){_.MX(Y,"yt-navigate",W)})}}};
wIU=function(D){if(D=GWU(D))eQU(D),Fe9(D.href)};
GWU=function(D){D=_.O$(D);for(var Y,R=0;R<D.length;R++)if(Y=D[R],Y.tagName==="A"&&Y.classList.contains("yt-simple-endpoint")){if(!Y.data)break;return Y}return null};
ot=function(D){return D.shiftKey||D.altKey||D.metaKey||D.ctrlKey};
$jo=function(D,Y){var R={itct:Y.clickTrackingParams};_.f("kevlar_client_side_screens")&&(!_.A(Y,_.$I)||_.f("kevlar_exclude_endpoint_killswitch"))&&(R.endpoint=JSON.stringify(Y));_.f("enable_unknown_lact_fix_on_html5")&&_.DH().resolve(_.cD(_.bq))&&(R.lact=_.Ro());TOy(R);_.Rb(D,R)};
eQU=function(D){D.href&&Object.keys(D.data).length!==0&&$jo(D.href,D.data)};
rKr=function(D){for(var Y=_.a(vXU),R=Y.next();!R.done;R=Y.next())if(D[R.value])return!1;return!0};
_.oXi=function(D,Y){return _.jC(D.entities,"markersEngagementPanelSyncEntity",Y)};
bZy=function(D,Y){return _.jC(D.entities,"fantasyWinProbabilityEntity",Y)};
yKl=function(D,Y){return _.jC(D.entities,"fantasyTeamEntity",Y)};
NJS=function(D,Y){return _.jC(D.entities,"fantasyPlayerEntity",Y)};
lgU=function(D,Y){return _.jC(D.entities,"booleanEntity",Y)};
JKU=function(D,Y){return _.jC(D.entities,"qrCodeEntity",Y)};
kWU=function(D){return _.jC(D.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
Ujy=function(){if(yv)return yv;if(window.lottie)return yv=Promise.resolve(window.lottie);var D=_.Ns(_.JQ("LOTTIE_URL"));return D?yv=new Promise(function(Y,R){var Z=document.createElement("script");Z.addEventListener("load",function(){Y(lottie)});
Z.addEventListener("error",function(t){var X="Lottie library failed to load.";t?t.message&&(X+=" Original description: "+t.message,_.kN(t,X)):t=Error(X);_.Jk(t);R(t)});
Z.setAttribute("async","");_.dg(Z,D);document.head.appendChild(Z)}):Promise.reject(Error("rh"))};
KEi=function(){return yv?yv:Ujy()};
hQ9=function(D){if(D)switch(D){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.f("kevlar_use_wil_icons"))return D=(D=kWU(_.Dl().getState()))&&D.animationLightUrl&&D.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:D.animationLightUrl,pathDarkTheme:D.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,D?D:NW.get("LIKE");break;case "LIKE_DELHI_PLAYER":return NW.get("LIKE_DELHI_PLAYER")}};
LEr=function(D){var Y=hQ9(D);if(Y)return Y;switch(D){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return NW.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return NW.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return NW.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return NW.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return NW.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return NW.get("NOTIFICATION_BELL")}};
mjM=function(D,Y){if(!D.closest)return!1;Y=!!hQ9(Y);return _.JQ("ID_TOKEN")&&Y?!!D.closest("segmented-like-dislike-button-view-model")||!!D.closest("yt-player-quick-action-buttons"):!1};
HZi=function(D,Y){if(!D||qh5)Y=!1;else{var R;if(!(R=mjM(D,Y)))if(D.closest)if(R=!_.JQ("ID_TOKEN"),D=D.closest("ytd-subscription-notification-toggle-button-renderer-next"),R||!D)R=!1;else{var Z;R=((Z=D.data)==null?void 0:Z.targetId)==="notification-bell"&&Y!=="EXPAND_MORE"}else R=!1;Y=R}return Y};
xjU=function(D){var Y,R;return _.C(function(Z){switch(Z.nextAddress){case 1:return _.SX(Z,2),Z.yield(fetch(D),4);case 4:return Y=Z.yieldResult,Z.yield(Y.json(),5);case 5:return Z.return(Z.yieldResult);case 2:R=_.Gl(Z),_.Jk(R),_.V9(Z)}})};
PZi=function(D,Y){var R,Z,t;return _.C(function(X){if(X.nextAddress==1)return(R=Y?D.pathDarkTheme:D.path)?X.yield(Promise.all([xjU(R),Ujy()]),2):X.return();Z=X.yieldResult;t=Z[0];lq.set(R,t);_.V9(X)})};
BJM=function(D,Y,R,Z){function t(M,W){if(Y.value===W&&D!=null&&D.value){for(;D.value.firstChild;)D.value.removeChild(D.value.firstChild);D.value.classList.add("yt-spec-icon-shape");M(D.value,Z)}}
R=_.QAb(_.DH().resolve(_.FK),R);if(typeof R==="function")Y.value=null,t(R,null);else{var X=new _.zz(R.then,R);Y.value=X;X.then(function(M){t(M,X)})}};
EXi=function(D,Y){var R=document.createElement("div"),Z=_.nb(R,function(){return _.S(_.T,{cond:D,then:function(t){return _.S(pIn,{data:t,options:Y})}})});
return[R,Z]};
_.Jp=function(D,Y){if(Y){var R={};gXb.forEach(function(Z){Z=djr(Y,Z,"--yt-lightsource-");Object.assign(R,Z)});
iZ9.forEach(function(Z){Z=djr(Y,Z,"--yt-basic-");Object.assign(R,Z)});
_.SN(D,R)}};
djr=function(D,Y,R){var Z={};Z[R+_.f2(Y)]=D&&D[Y]?_.xI(D[Y]):"";return Z};
_.UD=function(D,Y,R){kP[D]||(kP[D]={});kP[D][Y]=R};
_.KB=function(D){kP[D]||(kP[D]={});return kP[D]};
OZU=function(D){if(!D)return{};var Y=D.foregroundTitleColor,R=D.backgroundColor;D=D.borderColor;var Z="text";D?Z="outline":R&&(Z="filled");return{type:Z,customColors:{color:Y?_.xI(Y):void 0,backgroundColor:R?_.xI(R):void 0,borderColor:D?_.xI(D):void 0}}};
Zi9=function(D){var Y=D.renderer;var R=D.element;var Z=D.commandController;var t=D.onTapCallback;var X=D.skipCommandHandling;var M=D.overrides;var W=D.forceIcon;var z=D.forceModernIconButton;var I=D.forceDisabled;var F=D.isSubscribe===void 0?!1:D.isSubscribe;var G=D.isPressed===void 0?!1:D.isPressed;var V=D.useButtonSize===void 0?!1:D.useButtonSize;D=cKj(Y);F&&(D.style="mono",D.type="filled");W=!Y.icon||!W&&Y.text?Y.icon?Y.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:z?"icon-only":"icon-only-40";W==="icon-only-40"&&(D.type="text");var e;z=Object;F=z.assign;V=Dgl(Y,V);G=!!Y.isSelected||!_.f("web_propagate_is_pressed_killswitch")&&!!G;var r=Y.isSelected!==void 0;I=I===void 0?Y.isDisabled:I;var l=Y.text?_.K8(Y.text):void 0;var U,K,H,c=((U=Y.accessibilityData)==null?void 0:(K=U.accessibilityData)==null?void 0:K.label)||((H=Y.accessibility)==null?void 0:H.label);U=c?c:_.OM(Y.text);R=YTb(Y,R,Z,t,X);Z=Rqn(Y);Z!=null&&Z.length?(Z=_.PL({innertubeCommand:bpj(Z),
forceNewState:!0}),Z=Qu(Z)?Z:void 0):Z=void 0;return F.call(z,{},D,V,{iconPosition:W},M,{focused:!1,toggled:G,toggleable:r,disabled:I,formattedButtonText:l,accessibilityLabel:U,onTap:R,aTagConfig:Z},OZU((e=Y.colorData)==null?void 0:e.basicColorPaletteData),{oneOffCustomTextWrap:Y.oneOffCustomTextWrap})};
YTb=function(D,Y,R,Z,t){return function(X){var M=Rqn(D);Z(M,X);if(!t){M=_.a(M);for(var W=M.next();!W.done;W=M.next())vN(W.value,{form:{element:Y,event:X},commandController:R})}}};
Rqn=function(D){var Y=[];D.command&&Y.push(D.command);D.serviceEndpoint&&Y.push(D.serviceEndpoint);D.navigationEndpoint&&Y.push(D.navigationEndpoint);return Y};
Dgl=function(D,Y){if(Y)switch(D.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(D.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
cKj=function(D){switch(D.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_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"}}};
tdU=function(D,Y){return typeof D!=="object"||D===null?!1:Object.keys(Y).every(function(R){return R in D})};
s3M=function(D,Y,R){return Wvr(R,function(Z,t){return function(X){var M=_.UN.apply(1,arguments);return tdU(X,D)?t.apply(null,[X[Y]].concat(_.oK(M))):t.apply(null,[X].concat(_.oK(M)))}})};
_.hp=function(D){return D!=null&&D.watch?D.watch.isTheaterMode:!1};
_.LB=function(D){return D!=null&&D.watch?D.watch.isWatchFullscreen:!1};
_.mI=function(D){D=_.Xpi(D);return _.f("web_watch_enable_single_column_grid_view")?D:!1};
_.Xpi=function(D){return D.watch.isWatchNarrowWidth};
_.u5M=function(D){return D.watch.openEngagementPanels};
_.qW=function(D){return _.Si(function(){sul()();return aMb(D)},{debugName:"d8B62c"},"wfRQAb")};
HN=function(D,Y){return _.jC(D.entities,"likeStatusEntity",Y)};
a5r=function(D,Y){return _.jC(D.entities,"likeCountEntity",Y)};
_.xP=function(D,Y){return _.jC(D.entities,"stringEntity",Y)};
MdU=function(D,Y){if(!D)return!1;var R,Z=(R=_.A(D,_.Fa))==null?void 0:R.signal;if(Z&&Y.signalEndpointMap)return!!Y.signalEndpointMap[Z];var t;if((R=(t=_.A(D,_.PN))==null?void 0:t.request)&&Y.continuationEndpointMap)return!!Y.continuationEndpointMap[R];for(var X in D)if(Y.commandEndpointMap[X])return!0;return!1};
CAU=function(D,Y){if(Y.streamingEndpointMap)for(var R in D)if(Y.streamingEndpointMap[R]&&(D=Y.streamingEndpointMap[R]))return D()};
W2y=function(D,Y){var R,Z=(R=_.A(D,_.Fa))==null?void 0:R.signal;if(Z&&Y.signalEndpointMap&&(R=Y.signalEndpointMap[Z]))return R();var t;if((R=(t=_.A(D,_.PN))==null?void 0:t.request)&&Y.continuationEndpointMap&&(t=Y.continuationEndpointMap[R]))return t();for(var X in D)if(Y.commandEndpointMap[X]&&(D=Y.commandEndpointMap[X]))return D()};
zqy=function(D){var Y={"Content-Type":"application/json"};_.JQ("EOM_VISITOR_DATA")?Y["X-Goog-EOM-Visitor-Id"]=_.JQ("EOM_VISITOR_DATA"):_.JQ("VISITOR_DATA")&&(Y["X-Goog-Visitor-Id"]=_.JQ("VISITOR_DATA"));Y["X-Youtube-Bootstrap-Logged-In"]=_.JQ("LOGGED_IN",!1);_.JQ("DEBUG_SETTINGS_METADATA")&&(Y["X-Debug-Settings-Metadata"]=_.JQ("DEBUG_SETTINGS_METADATA"));D!=="cors"&&((D=_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Y["X-Youtube-Client-Name"]=D),(D=_.JQ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Y["X-Youtube-Client-Version"]=
D),(D=_.JQ("CHROME_CONNECTED_HEADER"))&&(Y["X-Youtube-Chrome-Connected"]=D),(D=_.JQ("DOMAIN_ADMIN_STATE"))&&(Y["X-Youtube-Domain-Admin-State"]=D),_.ks("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(D=_.JQ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Y["X-YouTube-Lava-Device-Context"]=D));return Y};
STr=function(D,Y){Y.watchNextResponse||Y.reelItemWatchResponse?Y.watchNextResponse?D.content=Y.watchNextResponse:D.content=Y.reelItemWatchResponse:Y.playerResponse?D.player=Y.playerResponse:Y.reelWatchSequenceResponse&&(D.reelSequence=Y.reelWatchSequenceResponse)};
_.Qv=function(D){if(!D)return null;for(var Y=[],R=0;R<D.textSegments.length;R++){var Z=D.textSegments[R];Z.text?Y.push(Z):Z.emojiId&&Y.push({emoji_id:Z.emojiId})}return{text_segments:Y}};
Gny=function(D,Y,R,Z,t,X,M){X=X===void 0?[]:X;var W=new _.BN;W.endpoint=R;if(!R)return _.lo(new _.AT("handle undefined endpoint",Y.tagName)),W;var z=hFU(R);z.length&&(_.Se(D,z,Y,Z),W.actions=z);R.loggingUrls&&R.loggingUrls.forEach(function(F){F.baseUrl&&Hg(F.baseUrl,F.attributionSrcMode)});
z=!_.f("web_skip_impression_click_killswitch")&&Z&&Z.impression;if(R.clickTrackingParams&&!Tv9(R)&&!j3r(Y)&&!z&&(z=_.n8(),!_.pB(z,Y))){var I=Y.getScreenLayer&&Y.getScreenLayer();I?z.clickCommand(R,null,I):z.clickCommand(R,null)}z=!1;for(I=0;I<X.length;I++)if((0,X[I])(Y,R,Z)){z=!0;break}!z&&I5n(R)&&(W.ajaxPromise=F2o(D,Y,R,Z,t,M));return W};
j3r=function(D){var Y;return(D=(Y=D.data)==null?void 0:Y.navigationEndpoint)&&!!D.clickTrackingParams};
Tv9=function(D){var Y=_.A(D,_.Fa);if(Y&&(Y=Y.signal)&&VdM.indexOf(Y)>=0)return!0;for(var R in D)if(f59.indexOf(R)>=0)return!0;return!1};
I5n=function(D){var Y;if(((Y=_.A(D,_.Fa))==null?void 0:Y.signal)==="CLIENT_SIGNAL")return!1;for(var R in D)if(eqU.indexOf(R)>=0)return!1;D=Object.keys(D);return D.length===1&&D[0]==="loggingUrls"?!1:!0};
bib=function(D,Y,R,Z,t,X,M){var W=_.ED.instance;if(W&&_.g1(W,Z))var z=_.d1(W,Z,t).then(function(F){return(F==null?0:F.data)?F:{data:F}});
else z=D.requestDataForServiceEndpoint(Z,t),_.A(Z,A3U)||_.A(Z,n_U)||_.A(Z,_.r3o)||_.A(Z,wpU)||_.Jk(new _.AT("No RequestBuilder for endpoint",Z));var I=_.iq();I.promise.thenCatch(function(){var F=_.yL(Z,"action")||_.yL(Z,"command")||_.yL(Z,"endpoint");F&&(F=Z[F],F.hasOwnProperty("onFailureAction")?_.Se(Y,[F.onFailureAction],R):F.hasOwnProperty("onFailureCommand")&&_.Se(Y,F.onFailureCommand,R));z.cancel("Resolver promise rejected")});
z.then(function(F){if(F){var G=F.error;if(G){if(X&&X.onServerError)X.onServerError(Z,F);I.reject(new _.AT("Response error",Z,G))}else if(F=F.data)if(G=F.error){if(X&&X.onServerError)X.onServerError(Z,F);I.reject(new _.AT("Returned error",Z,G))}else{$gl(Y,R,F,Z);v_U(F);if(G=KpS(F))for(var V=_.a(G),e=V.next();!e.done;e=V.next()){e=e.value;var r=_.DH().resolve(_.cD(o_i))||OD;if(!_.ED.instance||!r.some(function(U){return!!_.A(Z,U)})||_.f("kevlar_response_processor_allowlist_killswitch")){var l=r=void 0;
((l=_.A((r=e)==null?void 0:r.commandMetadata,_.GA))==null?0:l.sendPost)?_.zA(Y,[e]):_.Se(Y,[e],R)}}(V=_.A(F==null?void 0:F.frameworkUpdates,cN))&&M&&M(V);if(X&&X.onSuccess)X.onSuccess(Z,F);I.resolve(new _.D4(F,G))}}else I.reject(new _.AT("Invalid service endpoint provided",Z))},function(F){I.reject(F)});
return I.promise};
v_U=function(D){var Y;(D=(Y=_.A(D==null?void 0:D.onResponseReceivedCommand,_.y3r))==null?void 0:Y.continuationItems)&&(D==null?void 0:D.length)===1&&_.A(D[0],NvU)&&_.KX("so_r",void 0,"search_overview_answer")};
F2o=function(D,Y,R,Z,t,X){var M;return(M=Y.getNetworkManager&&Y.getNetworkManager()?Y.getNetworkManager():_.DH().resolve(_.cD(_.Kn)))?bib(M,D,Y,R,Z,t,X):_.lf("No network manager.")};
$gl=function(D,Y,R,Z){if(R=R.trackingParams||R.loggingDirectives&&R.loggingDirectives.trackingParams){var t;(_.A(Z,l5b)||_.A(Z,J3S)||_.A(Z,knr))&&Z.clickTrackingParams?t=_.oT(Z.clickTrackingParams):_.f("web_graft_to_parent_command")&&Z.clickTrackingParams&&(t=_.oT(Z.clickTrackingParams));var X;Z=(X=Y.getScreenLayer)==null?void 0:X.call(Y);Y=_.n8().graftServerVe(R,t,Z);_.WC(D,"yt-store-grafted-ve-action",[Y])}};
_.Ugn=function(D){var Y=new Image;return new _.zz(function(R,Z){Y.addEventListener("load",function(){R()});
Y.addEventListener("error",function(){Z()});
Y.src=D})};
K2b=function(D){return!!D};
hqi=function(D){return!!D};
L2j=function(D,Y,R){var Z=D.rowIndex;Z!==void 0&&_.WC(D.hostElement,"yt-section-reactive-dismissal",[Z,Y,R])};
_.Yc=function(D,Y,R){D=_.a(D);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;if(Z===Y)break;for(var t=_.a(R),X=t.next();!X.done;X=t.next())if(X=X.value,Z.tagName===X||!_.f("web_event_button_role_check_killswitch")&&Z.role==="button"&&X==="BUTTON")return!0}return!1};
_.RP=function(D,Y,R){D=_.a(D);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;if(Z===Y)break;for(var t=_.a(R),X=t.next();!X.done;X=t.next())if(Z.id===X.value)return!0}return!1};
mgi=function(D){switch(D){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}};
qT5=function(D,Y){if(!D&&!Y)return"medium";D=Math.max(D||0,Y||0);return D>=256?"large":D>=96?"medium":"small"};
Hiy=function(D){switch(D){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.sm=function(){var D=_.DH().resolve(_.cD(_.Z4));return D?(D=D.getCurrentPage())?_.tx(D):null:null};
_.XU=function(){var D=_.sm();if(!D){var Y=_.DH().resolve(_.cD(_.Z4)),R=Y?typeof Y:"no page manager";Y=Y?Y.getCurrentPage():null;R=new _.AT("Player is missing when requested.",R,Y?Y.tagName:"no page");_.Nb(R)}return D};
_.tx=function(D){return D&&D.getPlayer?D.getPlayer():null};
xgo=function(D,Y){D={args:{raw_player_response:D}};Y&&(D.args=Object.assign({},D.args,Y));return D};
PAj=function(D){if(D.args){if(D.args.raw_player_response)return D.args.raw_player_response;if(D.args.player_response)return JSON.parse(D.args.player_response)}};
_.Q3U=function(D,Y){var R={url:"/watch?v="+D.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};D.playlistId&&(R.url+="&list="+D.playlistId);D.playerParams&&(R.url+="&pp="+D.playerParams);D={watchEndpoint:D,commandMetadata:{webCommandMetadata:R}};Y&&(D.clickTrackingParams=Y);return D};
pp5=function(){return BvM||!!_.mf("yt.player.Application")};
g_i=function(){return E_b||!!document.querySelector("link#player-css")};
ii9=function(){function D(){BvM=!0;dgy.resolve()}
var Y,R;return _.C(function(Z){dgy||(dgy=new _.Ta,pp5()?D():(Y=document.createElement("script"),Y.addEventListener("load",D),R=_.we(_.JQ("PLAYER_JS_URL")),_.dg(Y,R),document.head.appendChild(Y)));return Z.return(dgy.promise)})};
c3i=function(){function D(){E_b=!0;Oi9.resolve()}
if(!Oi9)if(Oi9=new _.Ta,g_i())D();else{var Y=document.createElement("link");Y.id="player-css";Y.addEventListener("load",D);var R=_.we(_.JQ("PLAYER_CSS_URL"));_.cZ(Y,R,"stylesheet");document.head.appendChild(Y)}return Oi9.promise};
DO$=function(){return pp5()&&g_i()?Promise.resolve([]):Promise.all([ii9(),c3i()])};
YZU=function(D,Y,R){var Z={args:{}};D&&(Z.args.raw_player_response=D);Y&&(Z.args.raw_watch_next_response=Y);R&&(Z.args=Object.assign({},Z.args,R));return Z};
sqb=function(D,Y,R){var Z=!1;Z=Z===void 0?!0:Z;D=typeof D==="string"?_.uI(document,D):D;var t=RHS+"_"+_.Ey(D),X=ZYl[t];if(X&&Z)return tal(Y,R)?X.api.loadVideoByPlayerVars(Y.args||null):X.loadNewVideoConfig(Y),X.api;X=new aP(D,t,Y,R,void 0);ZYl[t]=X;X.addOnDisposeCallback(function(){delete ZYl[X.getId()]});
return X.api};
tal=function(D,Y){return Y&&Y.serializedExperimentFlags?Y.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):D&&D.args&&D.args.fflags?D.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
XWU=function(){var D=new _.Ta;D.resolved=!1;var Y=D.resolve;D.resolve=function(R){D.resolved=!0;Y(R)};
return D};
aNo=function(D){var Y={};ufj().install((Y.document_disposed={callback:D},Y))};
MP=function(D,Y){if(!D&&Math.random()<=_.ZH("kevlar_unified_player_logging_threshold")){D=Error("th`"+(Y?Y:"Unspecified error"));if(_.f("kevlar_unified_player_throw_errors"))throw D;_.Jk(D)}};
_.May=function(){var D=_.mf("ytDebugData.callbacks");D||(D={},_.ix("ytDebugData.callbacks",D));return D};
WGS=function(D,Y){var R=_.May();if(_.f("web_dd_iu")||COU.includes(D))R[D]=Y};
zHS=function(){return _.C(function(D){return D.return({isLeader:_.Dx5(_.Dl().getState()),c:_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.JQ("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
SZy=function(){var D;_.C(function(Y){if(Y.nextAddress==1)return WGS("APP_STATE",zHS),Y.yield(_.DH().resolve(_.CH),2);D=Y.yieldResult;WGS("PI",function(){return _.C(function(R){return R.return(D.getVideoStats())})});
_.V9(Y)})};
T6U=function(D){var Y=_.Y8(_.BO(_.ZU.location.href));D=_.Y8(_.BO(D));return _.f("kevlar_clear_non_displayable_url_params")?Y==WK(D):WK(Y)==WK(D)};
WK=function(D){var Y=_.jqo(D);D=D.slice(0);var R=["frags"];_.f("kevlar_hide_pp_url_param")&&R.push("pp");_.f("kevlar_hide_time_continue_url_param")&&R.push("time_continue");R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,D=_.Zi(_.Y8(D),Z);return _.Y8(D)+(Y?"#"+Y:"")};
zP=function(D,Y){Y=Number(Y)*1E3;var R=Math.round((0,_.DO)()),Z=R.toString();D={innertubeResponse:D,serverDateTimestampMs:Z,lastModifiedTimestampMs:Z,expireTimestampMs:(R+Y).toString()};if(Y=_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME"))D.clientName=Y;return D};
FG9=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++IN5};
_.GCn=function(){var D=_.Ud(),Y=_.K2();Y&&D&&_.gC(Y,[D],!0)};
fNn=function(D){return D&&Va9.some(function(Y){return D.includes(Y)})};
$Oo=function(D){var Y=_.A(D,_.Qj);if(!Y)return!1;var R=Y.url,Z=Y.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!R)return _.Nb(Error("yh")),!1;if(Y.target==="TARGET_NEW_WINDOW"){var t={};_.f("resolve_url_parent_tracking_params")&&(!_.gf(R)||df(window.location.href,R))&&(t={endpoint:D,itct:D.clickTrackingParams});TOy(t);D=null;try{if(Z)return D=_.Az5(R,"_blank",t,void 0,Z),eHi(_.DH().resolve(AA5),D,R),!0}catch(V){_.Nb(V)}_.Rb(R,t);Y={target:"_blank",noopener:_.f("set_window_noopener_ks")&&
!Y.allowOpener};D=window;Z=vZ(R)?R:_.Jf(typeof R.href!="undefined"?R.href:String(R));t=self.crossOriginIsolated!==void 0;var X="strict-origin-when-cross-origin";window.Request&&(X=(new Request("/")).referrerPolicy);var M=Y.noreferrer;if(t&&M&&X==="unsafe-url")throw Error("oe");X=M&&!t;M=Y.target||R.target;var W=[],z=[],I=!1;for(G in Y){var F=Y[G];switch(G){case "width":case "height":case "top":case "left":W.push(G+"="+F);break;case "target":break;case "noopener":case "noreferrer":F?z.push(G):(I=!0,
z.push(G+"=false"));break;case "attributionsrc":W.push(G+(F?"="+F:""));break;default:W.push(G+"="+(F?1:0))}}var G=M!==void 0&&!["_blank","_self","_top","_parent",""].includes(M);G=$n()&&G;n4M&&t&&W.length===0&&z.length>0&&!G&&!I?(z.length===2&&(z=["noreferrer"]),_.QB(D,Z,M,z[0]),D=rAU()):(G=W.join(","),_.yU()&&D.navigator&&D.navigator.standalone&&M&&M!="_self"?(G=_.I0("A"),_.L$(G,Z),G.target=M,X&&(G.rel="noreferrer"),((Y=Y.attributionsrc)||Y==="")&&G.setAttribute("attributionsrc",Y),Y=document.createEvent("MouseEvent"),
Y.initMouseEvent("click",!0,!0,D,1),G.dispatchEvent(Y),D=rAU()):X?(D=_.QB(D,"",M,G),Y=_.oJ(Z),D&&(D.opener=null,Y===""&&(Y="javascript:''"),Y='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+SG(Y)+'">',Y=qy(Y),(Z=D.document)&&Z.write&&(Z.write(HZ(Y)),Z.close()))):((D=_.QB(D,Z,M,G))&&Y.noopener&&(D.opener=null),D&&Y.noreferrer&&(D.opener=null)));eHi(_.DH().resolve(AA5),D,R);return!0}Y=_.zZ(R);Y=fNn(Y)||R==="https://studio.youtube.com/";Z=!(!_.gf(R)||df(window.location.href,
R));G=R.indexOf("disable_polymer=1")>=0;if(Z||G||Y)BG(R),J4(),_.pn(R,void 0,void 0,window.top,wWU);else return _.Jk(new _.AT("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",D)),!1;return!0};
_.bYr=function(D,Y){Y=Y===void 0?0:Y;if(!(_.A(D,v49)||_.A(D,o45)||_.A(D,_.Qj)&&_.A(D,_.Qj).url))return!1;var R,Z=(R=_.A(D,_.Qj))==null?void 0:R.url;R=Z?{externalLinkData:{url:Z}}:null;return _.n8().clickCommand(D,R,Y)};
yAU=function(D,Y){return _.jC(D.entities,"subscriptionStateEntity",Y)};
N6y=function(D,Y){return _.jC(D.entities,"subscriptionNotificationStateEntity",Y)};
lN9=function(D,Y){return _.jC(D.entities,"upcomingEventReminderStateEntity",Y)};
JAy=function(D,Y){return _.jC(D.entities,"engagementToolbarSurfaceEntityPayload",Y)};
kC9=function(D,Y){return _.jC(D.entities,"triStateButtonStateEntityPayload",Y)};
UOS=function(D,Y){return _.jC(D.entities,"commerceCartCheckoutButtonEntity",Y)};
_.KGM=function(D,Y){return _.jC(D.entities,"playlistLoopStateEntity",Y)};
hH5=function(D,Y){return _.jC(D.entities,"commandEntity",Y)};
mOM=function(D,Y,R,Z,t){t=t===void 0?{}:t;return function(X){var M,W;var z=((M=D.loggingDirectives)==null?0:(W=M.clientVeSpec)==null?0:W.uiType)?_.TP(D.loggingDirectives.clientVeSpec.uiType):void 0;t.clickedVisualElement||(t.clickedVisualElement=z);z=LGU(D,Y);R(z,X);z=_.a(z);for(M=z.next();!M.done;M=z.next()){M=M.value;W=Z;var I=X,F=t;F.form?F.form.event=I:F.form={element:W,event:I};vN(M,F)}}};
LGU=function(D,Y){var R=[];Y?(D.toggledCommand&&R.push(D.toggledCommand),D.toggledServiceEndpoint&&R.push(D.toggledServiceEndpoint)):(D.defaultCommand&&R.push(D.defaultCommand),D.defaultServiceEndpoint&&R.push(D.defaultServiceEndpoint),D.defaultNavigationEndpoint&&R.push(D.defaultNavigationEndpoint));return R};
qZM=function(D,Y){var R=D.toggledStyle||D.style,Z;switch((Z=Y?R:D.style)==null?void 0:Z.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"}}};
_.jG=function(){return _.C(function(D){return D.nextAddress==1?D.yield(_.DH().resolve(_.CH),2):D.return(_.DH().resolve(HY9)())})};
_.IP=function(){return _.DH().resolve(HY9)()};
_.FU=function(){return op(function(){return{lottieEl:void 0}})};
xOS=function(D,Y){return D.startsWith(Y.uniqueId)};
POM=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.jG(),2);Y=Z.yieldResult;if((R=Y)==null||!R.addEventListener)return GP(),Z.return();Y.addEventListener("onCueRangeEnter",D);_.V9(Z)})};
Qqj=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.jG(),2);Y=Z.yieldResult;if((R=Y)==null||!R.removeEventListener)return GP(),Z.return();Y.removeEventListener("onCueRangeEnter",D);_.V9(Z)})};
B6i=function(D){var Y,R,Z,t,X;_.C(function(M){if(M.nextAddress==1)return M.yield(_.jG(),2);Y=M.yieldResult;if((R=Y)==null||!R.addCueRange)return GP(),M.return();Z=_.a(D.timings);for(t=Z.next();!t.done;t=Z.next())X=t.value,Y.addCueRange(D.uniqueId+"-"+X,X/1E3,(X+100)/1E3);_.V9(M)})};
pWj=function(D){var Y,R,Z,t,X;_.C(function(M){if(M.nextAddress==1)return M.yield(_.jG(),2);Y=M.yieldResult;if((R=Y)==null||!R.removeCueRange)return GP(),M.return();Z=_.a(D.timings);for(t=Z.next();!t.done;t=Z.next())X=t.value,Y.removeCueRange(D.uniqueId+"-"+X);_.V9(M)})};
E4U=function(){var D,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.jG(),2);D=Z.yieldResult;if((Y=D)==null||!Y.getPlayerState)return GP(),Z.return();R=D.getPlayerState();return Z.return(R===2)})};
GP=function(){_.Jk(new _.AT("Smartimation player does not exist or is corrupted"))};
g4U=function(){try{var D;return(D=window.CSS)!=null&&D.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(Y){return _.Jk(new _.AT("Smartimation CSS.supports threw an error")),!1}};
R$l=function(D,Y,R,Z,t){var X=D.playlistId?dOU:iYo;Y=Y();R=R();t=!!D.videoId&&t()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.rL(Y))return OYU({data:D,actionType:X,disabled:t},R);if(D.videoId&&Z())return cAb({data:D,actionType:X,disabled:t});switch(Y){case "TRANSFER_STATE_UNKNOWN":return cAb({data:D,actionType:X,disabled:t});case "TRANSFER_STATE_FAILED":return D.videoId?Dml({data:D,actionType:X,disabled:t}):YvM({data:D,actionType:X,disabled:t});case "TRANSFER_STATE_COMPLETE":return YvM({data:D,
actionType:X,disabled:t});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return OYU({data:D,actionType:X,disabled:t},R);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return D.videoId?Dml({data:D,actionType:X,disabled:t}):cAb({data:D,actionType:X,disabled:t});default:return cAb({data:D,actionType:X,disabled:t})}};
Zey=function(D,Y){var R=D.onTapCommand,Z=_.HL(R);if(D.videoId&&_.A(Z,_.Vi))return _.A(Z,_.Vi).action=Y,R;D.playlistId&&_.A(Z,_.eG)&&(_.A(Z,_.eG).action=Y);return R};
cAb=function(D){var Y=D.data;var R=D.actionType;D=D.disabled;return{text:tpU,iconType:"OFFLINE_DOWNLOAD",onTap:Zey(Y,R.ACTION_ADD),disabled:D}};
OYU=function(D,Y){var R=D.data;var Z=D.actionType;D=D.disabled;var t="OFFLINE_DOWNLOAD";Y>=0&&Y<=.1?t="OFFLINE_DOWNLOADING_ZERO":Y>.1&&Y<=.3?t="OFFLINE_DOWNLOADING_TWENTY":Y>.3&&Y<=.5?t="OFFLINE_DOWNLOADING_FORTY":Y>.5&&Y<=.7?t="OFFLINE_DOWNLOADING_SIXTY":Y>.7&&Y<1?t="OFFLINE_DOWNLOADING_EIGHTY":Y===1&&(t="OFFLINE_PIN");return{text:s7r,iconType:t,onTap:Zey(R,Z.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
YvM=function(D){var Y=D.data;var R=D.actionType;D=D.disabled;return{text:Xbi,iconType:"OFFLINE_PIN",onTap:Zey(Y,R.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
Dml=function(D){var Y=D.data;var R=D.actionType;D=D.disabled;return{text:uMo,iconType:"OFFLINE_DOWNLOAD",onTap:Zey(Y,R.ACTION_RETRY),disabled:D}};
WYi=function(D){var Y=amr;Mpl.push(D);Cpj||(Y(function(){for(var R=_.a(Mpl),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z();Mpl.length=0;Cpj=!1}),Cpj=!0)};
amr=function(D){Promise.resolve().then(D)};
z$5=function(D){D=_.a(axU(D));var Y=D.next().value,R=D.next().value,Z=!1;_.$s(function(){return function(){Z=!0}});
return[Y,function(t){WYi(function(){Z&&!_.f("cow_prevent_state_setter_after_cleanup_killswitch")||R(t)})}]};
_.Ax=function(D,Y){var R=sul();return _.Si(function(){R();return aMb(D,[_.v_(Y)||""])},{debugName:"LUZslf"},"qYSKAc")};
Svo=function(D){var Y=_.Ax(_.mW,function(){return D().videoId}),R=_.Ax(_.qw,function(){return D().playlistId});
return function(){return D().videoId?Y:D().playlistId?R:_.a(_.ae("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
TcS=function(D){var Y=_.Ax(HU,function(){return D().videoId}),R=_.Ax(_.cGj,function(){return D().playlistId});
return function(){return D().videoId?Y:D().playlistId?R:_.a(_.ae(0,void 0,"K4tgOc")).next().value}};
j7U=function(D){var Y=_.Ax(_.akr,function(){return D().videoId});
return function(){return D().videoId?Y:_.a(_.ae(!1,void 0,"Oaxwcf")).next().value}};
Im$=function(D){var Y=_.Ax(RxU,function(){return D().videoId});
return function(){return D().videoId?Y:_.a(_.ae("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
FYl=function(){return{}};
nH=function(){return _.DH().resolve(_.cD(GMM))||{}};
Vpl=function(D,Y){Y=Y===void 0?{shouldPersist:!0}:Y;return{useUpdatableData:function(R,Z){var t=[],X=_.a(_.fB(function(){var I=R();if(Z!=null&&Z.length&&t){var F=t.length>0;for(var G=!1,V=0;V<Z.length;V++){var e=Z[V]();F&&e!==t[V]&&(G=!0);t[V]=e}F=G}else F=!1;if(F)_.rq.remove(z());else if(F=_.rq.get(z()))return F;return I})),M=X.next().value,W=X.next().value,z=_.Si(function(){return D(R())},void 0,"VFraLb");
_.r2(function(){if(z()!=null){wq.set(z(),[M,W,!1]);var I=z();_.w2(function(){wq.delete(I)})}},"Fdafud");
return[M,function(I){W(I);Y.shouldPersist&&_.rq.set(z(),I)}]},
getData:function(R){var Z;return(Z=wq.get(D(R)))==null?void 0:Z[0]()},
updateData:function(R,Z){R=D(R);var t=wq.get(R);if(!t)return!1;var X=_.a(t);t=X.next().value;X=X.next().value;Z=Z(t());X(Z);Y.shouldPersist&&_.rq.set(R,Z);return!0},
useUpdatableDataIdom:function(R,Z){var t=D(R),X=_.rq.get(t),M=_.a(z$5(X!=null?X:R)),W=M.next().value,z=M.next().value,I=b1(X!=null?X:R);_.wf(function(){if(t!=null)return wq.set(t,[function(){return I.value},
function(F){z(F);I.value=F},
wq.has(t)]),_.yc.addJob(function(){_.$c(_.yc,function(){var F=wq.get(t);F&&(F[2]=!1)},0)},8),function(){var F;
((F=wq.get(t))==null?0:F[2])||wq.delete(t)}},[t]);
_.wf(function(){W!==R&&(z(R),I.value=R)},Z?[].concat(_.oK(Z),[t]):[t]);
return[W,z]}}};
fm9=function(D){return typeof D==="function"};
e$9=function(D){var Y=_.a(_.ae(!0,void 0,"bKtO6d")),R=Y.next().value;Y.next();return function(){var Z=z6(D.children());return _.S(_.T,{cond:R,then:function(){return Z},
else:D.fallback})}()};
_.vK=function(D){var Y=AWi(D),R=Y.data,Z=Y.mapping,t=Y.wrapper;Y=Y.pendingFallback;var X=function(){return nVr(_.v_(R))},M=function(){var W=X(),z=[];
W=_.a(W);for(var I=W.next();!I.done;I=W.next()){var F=void 0;I=I.value;var G=void 0;for(F in I)if(!(!I).hasOwnProperty(F)){G=F;break}(F=G)&&z.push(F)}return z};
return D.data?_.S(e$9,{fallback:Y},function(){return _.S(_.G6,{each:M},function(W,z){var I=t?function(G){return t(function(){return Z[W](G,z)},F,z)}:function(G){return Z[W](G,z)};
I.debugName||(I.debugName=String(W));if(!Z[String(W)])return document.createComment("");I.componentType!==f4&&rW5(String(W));var F=wb5(X,W,z);return _.S(I,{data:F})})}):_.S(_.c_,null)};
AWi=function(D){var Y=D.targetId||$mU(D.children);if(!D.data||!Y||_.f("mweb_new_replaceables_killswitch"))return Object.assign({},D,{mapping:D.children,wrapper:void 0});var R="stamper-"+vVn++,Z=function(){var W;return(W=typeof D.targetId==="function"?D.targetId(R):D.targetId)!=null?W:R};
Y=_.a(oVn(function(){var W=nVr(D.data());W.targetId=Z;return W})).next().value;
var t=Object.assign({},nH().replaceableMapping,D.children);if(D.replacementWrapper){var X=t.notificationTextRenderer,M=t.notificationMultiActionRenderer;X&&(t.notificationTextRenderer=function(W,z){return D.replacementWrapper(X({data:W.data},z))});
M&&(t.notificationMultiActionRenderer=function(W,z){return D.replacementWrapper(M({data:W.data},z))})}return Object.assign({},D,{data:Y,
mapping:t,wrapper:function(W,z,I){return ZZr({targetId:Z,stamperIndex:I},W)}})};
wb5=function(D,Y,R){var Z;return _.Si(function(){var t=D()[R()];if(t)Z=t[Y];else return _.Jk(new _.AT("Stamper failed to find "+String(Y)+" at index "+R()+" of data array of length "+(D().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Z;return t[Y]},void 0,"wgRPHd")};
$mU=function(D){D=_.a(Object.keys(D));for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,ber.includes(Y)||yWj.includes(Y)||Ncj.includes(Y))return!0;return!1};
nVr=function(D){return D?Array.isArray(D)?D:[D]:[]};
rW5=function(D){if(_.f("web_enable_renderer_logger")){var Y;(Y=_.DH().resolve(_.cD(lmb)))!=null&&Y.loggingEnabled&&!Y.ids.has(D)&&Y.ids.add(D)}};
JW$=function(){var D,Y;return(Y=(D=_.DH().resolve(_.cD(_.O4)))==null?void 0:D())!=null?Y:!1};
Um9=function(D,Y){D=D===void 0?kMj:D;switch(Y.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},D,{isOpen:Y.payload});default:return D}};
h$5=function(D,Y){D=D===void 0?KY9:D;switch(Y.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},D,{isAllowed:Y.payload});default:return D}};
mmb=function(D,Y){D=D===void 0?LYn:D;switch(Y.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{errorMessage:Y.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{title:Y.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},D,{privacy:Y.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},D,{isDisabled:Y.payload});default:return D}};
Heb=function(D,Y){D=D===void 0?qvl:D;switch(Y.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},D,{isOpen:Y.payload});default:return D}};
PpU=function(D,Y){D=D===void 0?xmn:D;switch(Y.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},D,{isFullscreen:Y.payload});case "SET_NAVIGATION_BUTTON":var R=Y.payload.targetId,Z=Object.assign({},D.navigationButtons);Z[R]=Y.payload.button;return Object.assign({},D,{navigationButtons:Z});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},D,{topPanelId:Y.payload});case "SET_SECONDARY_HEADER":return R=Y.payload.panelId,Z=Object.assign({},D.secondaryHeader),Z[R]=Y.payload.secondaryHeader,
Object.assign({},D,{secondaryHeader:Z});default:return D}};
EVU=function(){return GK(Object.assign({},{voiceSearch:EZU,engagementPanel:PpU,bottomSheet:Um9,cinematicSetting:h$5,shorts:lb5,drawerLayout:Heb,createPlaylist:mmb,locationCollection:Q7n,reportChannel:BcU,reportForm:pbj},JVy))};
gVi=function(D,Y){_.yc.addLowPriorityJob(function(){var R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return _.SX(X,2),X.yield(Ujy(),4);case 4:return X.yield(fetch(D),5);case 5:return R=X.yieldResult,X.yield(R.json(),6);case 6:Z=X.yieldResult;lq.set(D,Z);requestAnimationFrame(function(){Y(Z)});
_.xw(X,0);break;case 2:t=_.Gl(X),_.Jk(t),_.V9(X)}})})};
dmi=function(D){var Y={animationConfig:{},listeners:{}},R=function(){D(!0)};
Y.listeners.data_failed=R;Y.listeners.error=R;Y.listeners.data_ready=function(){D(!1)};
return Y};
cWU=function(D){var Y=D.model;var R=D.subscribed;var Z=D.isOverlay;var t=D.element;var X=D.commandController;var M=D.notificationState;if(R){var W,z;var I=(Y==null?void 0:(W=Y.buttonStyle)==null?void 0:W.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:Y==null?void 0:(z=Y.unsubscribeButtonContent)==null?void 0:z.buttonText}else{var F;I=Y==null?void 0:(F=Y.subscribeButtonContent)==null?void 0:F.buttonText}a:{var G;switch(Y==null?void 0:(G=Y.buttonStyle)==
null?void 0:G.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":W="S";break a;default:W="M"}}a:if(Z)Z="overlay";else switch(Y.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":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":Z="overlay";break a;default:Z="mono"}a:if(R)var V="tonal";else switch((V=Y.buttonStyle)==
null?void 0:V.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":V="tonal";break a;default:V="filled"}return{style:Z,type:V,state:Y.disableSubscribeButton?"disabled":"active",size:W,focused:D.focused,toggled:R,accessibilityLabel:ie$(Y,R,M),buttonText:I,iconPosition:Y.disableNotificationBell?"none":"leading-trailing",onTap:Oe$(Y,R,t,X),disableTextEllipsis:!!D.disableTextEllipsis}};
Oe$=function(D,Y,R,Z){return function(t){if(Y){var X;var M=D.disableNotificationBell?_.HL(D==null?void 0:(X=D.unsubscribeButtonContent)==null?void 0:X.onTapCommand):_.HL(D==null?void 0:D.onShowSubscriptionOptions)}else{var W;M=_.HL(D==null?void 0:(W=D.subscribeButtonContent)==null?void 0:W.onTapCommand)}M&&vN(M,{form:{element:R==null?void 0:R.value},commandController:Z});t.stopPropagation()}};
ie$=function(D,Y,R){if(Y){if(D==null?0:D.disableNotificationBell){var Z;return D==null?void 0:(Z=D.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}switch(R){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var t;return D==null?void 0:(t=D.bellAccessibilityData)==null?void 0:t.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var X;return D==null?void 0:(X=D.bellAccessibilityData)==null?void 0:X.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var M;return D==null?void 0:(M=
D.bellAccessibilityData)==null?void 0:M.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var W;return D==null?void 0:(W=D.bellAccessibilityData)==null?void 0:W.disabledLabel;default:var z;return D==null?void 0:(z=D.unsubscribeButtonContent)==null?void 0:z.accessibilityText}}else{var I;return D==null?void 0:(I=D.subscribeButtonContent)==null?void 0:I.accessibilityText}};
DG5=function(D){if(D){switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":D="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":D="NOTIFICATIONS_OFF";break;default:D="NOTIFICATIONS_NONE"}return D}};
Ytr=function(D,Y,R){R.subscribed!==Y&&((R=R.key)&&_.cE(_.oP("subscriptionStateEntity",R,{key:R,subscribed:Y})),D.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:Y})),Y||_.CX(D,"yt-unsubscribe-action"))};
Zsr=function(D){D=_.A(_.HL(D),_.bI);var Y,R,Z,t;return(t=_.A(D==null?void 0:(Y=D.panelLoadingStrategy)==null?void 0:(R=Y.inlineContent)==null?void 0:(Z=R.sheetViewModel)==null?void 0:Z.content,RLM))==null?void 0:t.listItems};
tlU=function(D,Y){if(D.onShowSubscriptionOptions&&Y&&(D=Zsr(D.onShowSubscriptionOptions),D!=null&&D.length)){var R=DG5(Y);D.forEach(function(Z){Z=_.A(Z,_.yi);var t,X,M,W,z=Z==null?void 0:(t=Z.leadingImage)==null?void 0:(X=t.sources)==null?void 0:(M=X[0])==null?void 0:(W=M.clientResource)==null?void 0:W.imageName;Z&&z&&(Z.isSelected=z===R)})}};
sfn=function(D,Y,R,Z){Y&&R?D.style.width=R+"px":!Y&&Z&&(D.style.width=Z+"px")};
X9b=function(D,Y,R){var Z;(Z=D.lottieEl)==null||Z.goToAndPlay(0);var t;(t=Y.lottieEl)==null||t.goToAndPlay(0);_.NP(_.yc,function(){var X;(X=R.lottieEl)==null||X.goToAndPlay(0)},300)};
utn=function(D){return!(D==null||!D.iconName||(D==null?0:D.title))};
a$$=function(D,Y,R,Z){R&&_.yc.cancelJob(R);R=_.yc.addLowPriorityJob(function(){Z(void 0)},5E3);
Z(R);Y&&D!==(Y.likeStatus==="LIKE")&&Y.key&&_.cE(_.oP("likeStatusEntity",Y.key,{key:Y.key,likeStatus:D?"LIKE":"INDIFFERENT",hadUserInteraction:D}))};
_.Mli=function(D,Y){return _.jC(D.entities,"accountLinkStatusEntity",Y)};
C2U=function(D,Y){return _.jC(D.entities,"hatsSurveyEntity",Y)};
Wny=function(D,Y){return _.jC(D.entities,"hatsSurveyStateEntity",Y)};
zLo=function(D,Y){return _.jC(D.entities,"quantityIncrementerEntity",Y)};
Stj=function(D){switch(D){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":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;default:return 0}};
TNl=function(D){switch(D){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}};
jfy=function(D){switch(D){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Fno=function(D){var Y=_.ZH("web_generic_client_event_wait_period ",0);Y||(Y=3E5);var R=I$y.get(D);!_.f("enable_web_client_experiment_event_timeout_killswitch")&&R&&(0,_.DO)()-R<Y||(I$y.set(D,(0,_.DO)()),_.bo("genericClientExperimentEvent",{eventType:D}))};
Gvb=function(D){switch(D){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
Vlb=function(D){if(!D)return"";var Y,R=(Y=_.DH().resolve(_.cD(_.O4)))==null?void 0:Y(),Z;if(!R&&((Z=D.vibrantColorPalette)==null?0:Z.iconInactiveColor))return PG(D.vibrantColorPalette.iconInactiveColor,"1");var t;return R&&((t=D.darkColorPalette)==null?0:t.iconInactiveColor)?PG(D.darkColorPalette.iconInactiveColor,"1"):D.color?PG(D.color,"1"):D.sampledThumbnailColor?(D=D.sampledThumbnailColor,"rgba("+D.red+","+D.green+","+D.blue+");"):""};
_.lI=function(D,Y){if(!D.includes("DATE_PLACEHOLDER"))return D;var R=new Date(0);R.setUTCSeconds(Y);return D.replace("DATE_PLACEHOLDER",f$r(R))};
eLi=function(D,Y,R){return function(Z){var t=D.command;t&&(vN(t,{form:{element:R}}),Y([t],Z))}};
naU=function(D,Y,R,Z,t){return function(X){var M=Ab5(D,Y);M&&vN(M,{form:{element:R},commandController:Z});t&&X.stopPropagation()}};
Ab5=function(D,Y){if(D.signInEndpoint&&!_.f("web_subscribe_sign_in_endpoint_killswitch"))return D.signInEndpoint;if(Y){if(D.serviceEndpoints)return D.serviceEndpoints[1];if(D.onUnsubscribeEndpoints)return D.onUnsubscribeEndpoints[0]}else{if(D.serviceEndpoints)return D.serviceEndpoints[0];if(D.onSubscribeEndpoints)return D.onSubscribeEndpoints[0]}};
rb$=function(D,Y){var R,Z,t,X;Y=Y&&((R=D.unsubscribeAccessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)||((t=D.subscribeAccessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label);return D.longSubscriberCountText?[Y,_.OM(D.longSubscriberCountText)].filter(function(M){return M}).join(" "):Y};
Jx=function(D,Y){return Y||(D==null?0:D.isChannelDelegate)?"disabled":"active"};
w9U=function(D,Y){var R;switch((R=D.style)==null?void 0:R.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Jx(D)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Jx(D)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Jx(D,!0)};case "OVERLAY":return Y?{style:"overlay",type:"tonal",state:Jx(D)}:{style:"overlay",type:"filled",state:Jx(D)};default:return Y?{style:"mono",type:"tonal",state:Jx(D)}:{style:"mono",type:"filled",state:Jx(D)}}};
_.kc=function(){for(var D=[],Y=_.a(_.UN.apply(0,arguments)),R=Y.next();!R.done;R=Y.next())if(R=R.value)if(typeof R==="string")D.push(R);else{R=_.a(Object.entries(R));for(var Z=R.next();!Z.done;Z=R.next()){var t=_.a(Z.value);Z=t.next().value;(t=t.next().value)&&D.push(Z)}}return D.join(" ")};
$GU=function(D){switch(D){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
van=function(D){switch(D){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
oaM=function(D,Y){var R=D.map(function(Z){return Z.toString()});
return _.F4(function(Z){if(R.includes(Z.key)){Y&&Z.preventDefault();var t;(t=Z.currentTarget)==null||t.click()}})};
_.bsM=function(){return oaM(["Enter"])};
_.yby=function(){return oaM(["Enter"," "],!0)};
_.Um=function(D){if(D.composedPath)return D.composedPath();if(!D.__composedPath){for(var Y=[],R=D.target;R;)Y.push(R),R=R.parentNode;Y.push(window);D.__composedPath=Y}return D.__composedPath};
_.KH=function(D,Y,R){D=_.a(D);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;if(Z===Y)break;for(var t=_.a(R),X=t.next();!X.done;X=t.next())if(X=X.value,Z.tagName===X||Z.role==="button"&&X==="BUTTON")return!0}return!1};
l$b=function(D,Y){var R,Z=(R=Y.observer)!=null?R:_.DH().resolve(RD);if(D){R=NNy(D);var t=[];Y.showOption&&t.push(Z.observe(D,function(){Y.visibilityCallback(!0,D)},Y.showOption));
Y.hideOption&&t.push(Z.observe(D,function(){Y.visibilityCallback(!1,D)},Y.hideOption));
Y.prescanOption&&Y.prescanCallback&&t.push(Z.observe(D,function(){Y.prescanCallback()},Y.prescanOption));
var X;R.visibilityMonitorKeys=((X=R.visibilityMonitorKeys)!=null?X:[]).concat(t)}};
NNy=function(D){var Y;return(Y=D.polymerController)!=null?Y:D};
_.LH=function(D){return!!_.hx(D)};
_.mp=function(D,Y,R,Z,t){return function(X){var M=_.$P();_.r2(function(){if(X){_.Jb9(X,D(),t);var W=_.kvj(X,D(),Y,R,Z,M);_.w2(W)}},"nr377e")}};
_.Jb9=function(D,Y,R){var Z=UGl(Y),t=KnM(Y);Y=Z&&hLo;var X=t&&Ln$;(Z||t)&&l$b(D,{visibilityCallback:function(M){var W=_.DH().resolve(_.Yw);M&&Z?W.resolveCommand(Z,{form:{element:R?D:void 0},disableClickTracking:!0}):!M&&t&&W.resolveCommand(t,{form:{element:R?D:void 0},disableClickTracking:!0})},
showOption:Y,hideOption:X})};
_.kvj=function(D,Y,R,Z,t,X){var M=new Map;if(Y=_.hx(Y)){var W;D=(Z==null?void 0:(W=Z.onTap)==null?void 0:W.value)||D;R=mGo(Y,D,R==null?void 0:R.onTap,t,X);D.addEventListener("click",R);M.set("click",R)}return function(){for(var z=_.a(M),I=z.next();!I.done;I=z.next()){var F=_.a(I.value);I=F.next().value;F=F.next().value;D.removeEventListener(I,F)}}};
_.hx=function(D){var Y;return(D=(Y=_.A(D,qtU))==null?void 0:Y.onTap)&&_.HL(D)};
UGl=function(D){var Y;return(D=(Y=_.A(D,qtU))==null?void 0:Y.onVisible)&&_.HL(D)};
KnM=function(D){var Y;return(D=(Y=_.A(D,qtU))==null?void 0:Y.onHidden)&&_.HL(D)};
mGo=function(D,Y,R,Z,t){var X=function(W){_.DH().resolve(_.Yw).resolveCommand(D,W)},M=function(W){Z&&_.KH(_.Um(W),Y,Z)||X(W.target?{form:{element:W.target,
sourceData:D,mutationContext:t}}:void 0)};
R&&(M=function(W){R(W,X)});
return M};
Hsi=function(D){switch(D){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}};
xGU=function(D){var Y=D.numAvatarsInCluster;switch(D.clusterSize){case "small":return Y===2?22:18;case "40":return Y===2?24:22;default:return Y===2?24:20}};
P2M=function(D,Y){return function(R){var Z=Object.keys(Y);_.r2(function(){if(D!=null&&D()){for(var t=_.a(Z),X=t.next();!X.done;X=t.next())X=X.value,R.addEventListener(X,Y[X]);_.w2(function(){for(var M=_.a(Z),W=M.next();!W.done;W=M.next())W=W.value,R.removeEventListener(W,Y[W])})}},"bXZGfe")}};
QfU=function(D){switch(xGU(D)){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""}};
BNU=function(D){switch(D){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""}};
p99=function(D){switch(xGU(D)){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""}};
EaM=function(D){switch(D){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""}};
gan=function(D){switch(D){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}};
dGM=function(D){return D==="medium"||D==="48"||D==="large"||D==="extra-large"||D==="extra-extra-large"||D==="giant"};
iso=function(D){return!!((D==null?0:D.includes(3))||(D==null?0:D.includes(5)))};
cbo=function(D){return{size:OsS(D.data.avatarImageSize),onTap:D.onTap,decorations:D.decorations||[],badgeText:D.badgeText,accessibilityText:D.accessibilityText,avatarButtonCustomClassName:D.avatarButtonCustomClassName,clusterLayoutConfig:D.clusterLayoutConfig}};
OsS=function(D){switch(D){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"}};
DYr=function(D){switch(D){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}};
Y6n=function(D){switch(D){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
RV5=function(D){var Y=D.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",R,Z=D.avatars&&D.avatars.length>0?(R=_.A(D.avatars[0],_.qP))==null?void 0:R.avatarImageSize:"AVATAR_SIZE_UNKNOWN";R=DYr(Z)||0;if(Y){var t,X=(t=D.avatarClusterSize)!=null?t:"AVATAR_SIZE_M";Y=DYr(X);var M,W,z=Math.min((W=(M=D.avatars)==null?void 0:M.length)!=null?W:0,4),I;return{avatars:((I=D.avatars)==null?void 0:I.slice(0,4))||[],avatarSizeInPx:R,avatarStackStyle:{width:Y+"px",height:Y+"px",position:"relative"},avatarStyle:function(G){var V=
xGU({clusterSize:OsS(X),numAvatarsInCluster:z,avatarIndex:G});var e=DYr(X);z===3&&G===2?(e=(e-V)/2,e=(_.JQ("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*e):e=void 0;return{position:"absolute",top:z===2&&G===1||z===3&&G===2||z===4&&G>=2?"0":void 0,bottom:z===2&&G===0||z>2&&G<2?"0":void 0,left:z===2&&G===1||z>2&&(G===1||G===3)?"0":void 0,right:z<=3&&G===0||z===4&&(G===0||G===2)?"0":void 0,transform:e?"translateX("+e+"px)":void 0,width:V+"px",height:V+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(G){return{clusterSize:OsS(D.avatarClusterSize),numAvatarsInCluster:z,avatarIndex:G}},
avatarButtonCustomClassName:void 0}}var F;return{avatars:((F=D.avatars)==null?void 0:F.slice())||[],avatarSizeInPx:R,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:Y6n(Z),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
Z3S=function(D,Y,R){return function(){vN(D,{form:{element:Y},commandController:R})}};
tzM=function(D){switch(D){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
sYb=function(D){switch(D){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
Xwb=function(D){var Y=D.data;D=D.hidden===void 0?!1:D.hidden;var R={};D={class:_.kc("yt-page-indicator-view-model",(R["yt-page-indicator-view-model__indicator--hidden"]=!Y.indicatorCount,R)),hidden:D};if(Y.indicatorCount){R=[];for(var Z=0;Z<Y.indicatorCount;Z++){var t={};t=_.kc("yt-page-indicator-view-model__indicator",(t["yt-page-indicator-view-model__indicator--selected"]=Y.selectedIndex===Z,t));R.push(_.S("div",{class:t}))}Y=_.S(_.c_,null,R)}else Y=_.S(_.c_,null);return _.S("yt-page-indicator-view-model",
D,Y)};
u0M=function(D){if("accessibilityText"in D)return D.accessibilityText||"";if("title"in D){var Y,R,Z;return((Y=D.title)==null?void 0:(R=Y.accessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)||""}if("accessibility"in D){var t,X;return((t=D.accessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label)||""}return""};
azl=function(D){return"inlinePlayerData"in D};
xc=function(D){return new MzS(D)};
CFo=function(D){var Y=D.data;D=_.F4(function(){var t=_.A(Y.onTap,_.mQ);t&&_.DH().resolve(_.Yw).resolveCommand(t);return!1});
var R={sources:[{url:Y.thumbnailUrl,width:120,height:90}]},Z=Y.rating&&Y.ratingA11yLabel&&Y.reviewsCount&&Y.reviewsCountA11yLabel;return _.S("place-data-view-model",null,Y.placeName&&Y.placeCategory?_.S("div",{class:"yt-spec-place-data-view-model-shape","on:click":D},_.S(_.Rt,{data:R,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.S(_.PK,{className:"yt-spec-place-data-view-model-shape__place-link",command:Y.onTap},_.S("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:Y.placeName},Y.placeName)),_.S("div",{class:"yt-spec-place-data-view-model-shape__metadata"},Z?_.S("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.S("span",{class:"score",title:Y.ratingA11yLabel},Y.rating),_.S("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.S(_.nB,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.S("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:Y.reviewsCountA11yLabel},Y.reviewsCount)):_.S("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.S("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.S("span",{class:"category",title:Y.placeCategory},Y.placeCategory)))):null)};
W1S=function(D){return function(Y){D&&(D.thumbnailElRef=Y.thumbnailElRef,D.thumbnail=Y.thumbnail,D.thumbnailOverlays=Y.thumbnailOverlays,D.thumbnailSize=Y.thumbnailSize)}};
zV$=function(D){var Y;return(Y=D.sharedUi)==null?void 0:Y.animatedThumbnailEnabled};
S6b=function(D){var Y;return(Y=D.sharedUi)==null?void 0:Y.inlinePreviewEnabled};
_.Tjl=function(D){var Y;return(Y=D.sharedUi)==null?void 0:Y.currentPageSubType};
jYU=function(D){switch(D){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
F1y=function(D){var Y=_.a(_.ae(!1,void 0,"RIOonf")),R=Y.next().value,Z=Y.next().value;_.$s(function(){var t=D==null?void 0:D();if(t){var X=_.DH().resolve(_.cD(IzU));if(X){var M={triggeringElement:t,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
X.registerElement(M);_.w2(function(){_.Qi(X,M)})}}});
return R};
GNi=function(D,Y,R){R?R(Y):_.BL(Y,D.target?{form:{element:D.target}}:void 0)};
_.BK=function(D,Y,R){return function(Z){_.r2(function(){var t=new Map,X,M=(X=D())==null?void 0:X.onTap;M&&(X=function(W){a:{var z=W.composedPath();z=_.a(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;if(I===Z)break;if(I.className.indexOf("HostIsClickableAdComponent")>=0||I.tagName==="A".toString()||I.tagName==="BUTTON".toString()){z=!0;break a}}z=!1}z||GNi(W,M,Y)},(R==null?0:R())||_.f("enable_web_home_top_landscape_image_layout_level_click")?(Z.addEventListener("tap",X),t.set("tap",X)):(Z.addEventListener("click",
X),t.set("click",X)));
_.w2(function(){for(var W=_.a(t),z=W.next();!z.done;z=W.next()){var I=_.a(z.value);z=I.next().value;I=I.next().value;Z.removeEventListener(z,I)}})},"NMyqj")}};
Vz5=function(D,Y){var R,Z=(R=D.interaction)==null?void 0:R.onTap;if(D=_.PL({elementsCommand:Z,forceNewState:!0,skipOnClick:!0}))return D.onclick=function(t){of5(t)&&(t.preventDefault(),Z&&GNi(t,Z,Y))},Qu(D)?D:void 0};
fzl=function(D){switch(D){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
eVb=function(D){switch(D){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"}};
AY9=function(D){switch(D){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"}};
_.nDU=function(D){return _.f("rich_grid_enable_dynamic_offset")&&D?Math.max(Math.round((D-_.ZH("rich_grid_dynamic_offset_anchor_width",1300))/100*_.ZH("rich_grid_dynamic_offset_offset_per_100",10)),_.ZH("rich_grid_dynamic_offset_lower_bound",-60)):0};
rYr=function(D,Y){switch(Y){case 4:return 16;case 1:return D<528?16:D<1024?32:48;case 2:return(D>=528?16:8)/2;case 3:return(D<528?16:D<1024?32:48)+(D>=528?16:8)/2;default:return 0}};
ww5=function(D){var Y=D.originalContainerWidth;var R=D.sizing;var Z=D.standardUnit;if(D.isCompactList&&Y<528)return 1;switch(R){case "STANDARD":return Z;case "COMPACT":return Z+1;case "EXTRA_COMPACT":return _.f("web_responsive_extra_compact_2x")?Z*2:_.f("web_responsive_current")?Z===1?2:Z%2===0?Z/2*3:Z+2:Z<4?Z*2:Math.ceil(Z*3/2);case "MINI":return Z>1?Z*2:3;default:return Z}};
vDU=function(D){var Y=D.containerWidth;var R=D.peek;var Z=D.gutter;var t=D.numItems;D=D.ignoreMaxWidthLimit;Y=R?Math.max((Y-R-Z*t)/t,0):Math.max((Y-Z*(t-1))/t,0);return D?Y:Math.min(Y,$YU)};
_.pH=function(D){var Y=D.containerWidth;var R=D.hasPeek;var Z=D.sizing;var t=D.marginSettings;var X=D.isCompactList;var M=D.enableFullBleedForSingleCol;var W=D.standardUnitMinWidth;Z=Z||"STANDARD";R=!!R;D=Y>=528?16:8;var z=R?Y>=528?48:24:0;t=rYr(Y,t);var I=Math.max(Y-t*2,0);W=_.f("kevlar_disable_min_width_override")?void 0:W;W=Math.min(Math.max(Math.floor((I-z+D)/((W!=null?W:oDU)+_.nDU(Y)+D)),1),6);var F=(M=!!M&&W===1)||W===1&&Z!=="STANDARD";R=R||F?I:Math.min(I,($YU+D)*W-D);Z=ww5({originalContainerWidth:Y,
sizing:Z,standardUnit:W,isCompactList:X});return{itemWidth:vDU({containerWidth:R,peek:z,gutter:D,numItems:Z,ignoreMaxWidthLimit:F}),gutter:D,maxContainerWidth:R,numItems:Z,margin:M?0:t,contentMargin:rYr(Y,1),typographyBump:vDU({containerWidth:R,peek:z,gutter:D,numItems:W,ignoreMaxWidthLimit:F})>400&&!(X&&Y<528),standardUnit:W}};
b3j=function(D){switch(D){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.yYU=function(D){if(D){var Y;if((Y=D.responsiveContainerConfiguration)==null?0:Y.responsiveSize)return b3j(D.responsiveContainerConfiguration.responsiveSize);if(D.layoutSizing)switch(D.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"}}};
NjM=function(D){if(D.fullbleed)return 1;switch(D.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
UYi=function(D,Y,R,Z,t,X,M,W){a:if(D===4&&Z==="LOCKUP_CONTENT_TYPE_SOURCE")var z=1;else switch(D){case 3:z=1;break a;default:z=0}a:switch(D){case 4:X=!!(X&&X<100);break a;default:X=!1}a:switch(D){case 3:case 4:var I=Z==="LOCKUP_CONTENT_TYPE_CHANNEL"||Z==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:I=!1}a:switch(D){case 5:var F=!0;break a;case 4:F=!1;break a;default:F=!1}return{isOverlay:F,isCard:lzU(Z,M),sizing:Y!=null?Y:"STANDARD",typographyBump:R!=null?R:!1,isTiny:X,isCentered:I,isCollection:JYU(Z),
arrangement:z,addMarginForFullbleed:D===1&&Z!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:D===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:kNU(Z,t,W),disableRounding:D===5||lzU(Z,M)||D===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:JYU(Z)?2:0,useLegacyTypography:!(W==null||!W.useLegacyTypography),useRichGridLegacyTypography:!(W==null||!W.useRichGridLegacyTypography)&&!_.f("web_enable_typography_bump"),compactMetadata:z===0&&Z==="LOCKUP_CONTENT_TYPE_VIDEO"}};
JYU=function(D){switch(D){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
lzU=function(D,Y){if(Y&&D==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(D){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
kNU=function(D,Y,R){if(Y&&(R==null||!R.alwaysRespectPodcastShowAspectRatio||D!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(D){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}};
K1b=function(D){switch(D){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"}};
hVl=function(D){switch(D){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;default:return 0}};
L1U=function(D){switch(D){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}};
_.Em=function(D){if(D){var Y;return((Y=_.DH().resolve(_.cD(_.O4)))==null?0:Y())?D.darkThemeImage:D.image}};
H3l=function(D,Y,R,Z,t,X){if(t&&X&&Y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:t,height:X};if(!R)return{};t=R.size;R=R.allowFullWidth;if(Y==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&R)return{fullWidth:!0};if(t===void 0)return{};switch(D){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:t,height:t};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:t,height:1/mYy*t};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:t*
q69,height:t};default:return(Z==null?0:Z.height)&&(Z==null?0:Z.width)?Z.width/Z.height>1?{maxWidth:t*q69}:{maxWidth:t}:{maxWidth:t}}};
xYU=function(D){var Y;return D&&((Y=_.Em(D.themedImage))!=null?Y:D.image)};
PFi=function(D){var Y;return D==null?void 0:(Y=D.sources)==null?void 0:Y[0]};
QYj=function(D){switch(D){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.Bjb=function(D){if(D)return"content-id-"+D};
pwl=function(D){switch(D.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"}}};
EDU=function(D){var Y=_.Tjl(_.Og().getState())||"";return D?D+Y:""};
gD9=function(D){switch(D){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
i3o=function(D){var Y=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],R=_.a(_.ae(void 0,void 0,"JrqNsb")),Z=R.next().value,t=R.next().value,X=_.a(_.ae(void 0,void 0,"rWytse"));R=X.next().value;var M=X.next().value;X=_.a(_.ae(void 0,void 0,"DHRqxe"));var W=X.next().value,z=X.next().value;return{touchFeedbackEvents:{pointerUpEvent:Z,pointerDownEvent:R,pointerLeaveEvent:W},touchFeedbackOnPointerUp:_.F4(function(I){dYj(_.Um(I),Y)||(t(I),M(void 0),z(void 0))}),
touchFeedbackOnPointerDown:_.F4(function(I){D==null||D(I);dYj(_.Um(I),Y)||(M(I),t(void 0),z(void 0))}),
touchFeedbackOnPointerLeave:_.F4(function(I){dYj(_.Um(I),Y)||(z(I),M(void 0),t(void 0))})}};
dYj=function(D,Y){Y=Y===void 0?[]:Y;Y=[].concat(_.oK(Y),["BUTTON".toString()]);D=_.a(D);for(var R=D.next();!R.done;R=D.next()){R=R.value;for(var Z=_.a(Y),t=Z.next();!t.done;t=Z.next())if(R.tagName===t.value)return!0}return!1};
O3j=function(D){switch(D){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"}};
cY$=function(D){return D.scrollHeight-D.offsetHeight>1};
DHM=function(D,Y){var R;return ds(D,((R=D.content)==null?void 0:R.length)||0,!Y)};
ZlS=function(D,Y,R,Z,t,X){if(!Y||YCy){var M;return ds(D,((M=D.content)==null?void 0:M.length)||0,!0)}Y=Z.value;if(!R.value||!Y||!D.content)return D;R=0;Z=D.content.length;M=0;Rib||(Rib=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var W=Rib;for(t=t*X*W;R<=Z;)X=Math.floor(R+(Z-R)/2),W=ds(D,X)||D,Y.firstChild&&(Y.firstChild.textContent=W.content),Y.scrollHeight>t?Z=X-1:(M=X,R=X+1);return ds(D,M)};
tOo=function(D,Y){var R,Z;return(((R=D.content)==null?void 0:R.length)||0)>(((Z=Y.content)==null?void 0:Z.length)||0)};
sOj=function(D,Y,R,Z,t,X){var M=_.dI("truncated-text-content"),W=_.dI("truncated-text-content"),z=_.dI("button"),I=_.dI("button"),F=_.dI("button"),G=_.DH().resolve(_.DT),V=_.a(_.fB(function(){return DHM(D(),t())})),e=V.next().value,r=V.next().value;
V=_.a(_.fB(function(){return tOo(D(),e())}));
var l=V.next().value,U=V.next().value,K=null;_.r2(function(){function H(){if(M.value&&z.value&&F.value){var E=X()?D():ZlS(D(),t(),M,W,Y(),R());r(E);requestAnimationFrame(function(){if(M.value&&z.value&&F.value){var B=cY$(M.value)||tOo(D(),E);U(B);if(!Z()){var O=cY$(M.value),Wo=R(),Sb=M.value,VU=z.value,AS=F.value,nM=G==="rtl";if(Sb&&VU){var Ho=VU.offsetLeft;nM&&(Ho=Sb.offsetWidth-VU.offsetWidth-VU.offsetLeft);if(B){B=VU.offsetWidth;VU=Sb.offsetWidth;var KM=O?VU-B-70:Ho-70;Wo="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Wo+"rem,\n      #000 "+Wo+"rem,\n      #000 100%), linear-gradient(\n      to "+((nM?"left":"right")+",\n      #000 0px,\n      #000 "+KM+"px,\n      transparent "+(O?VU-B:KM+70)+"px)");Sb.style.setProperty("-webkit-mask-image",Wo);Sb.style.setProperty("mask-image",Wo)}else Sb.style.setProperty("-webkit-mask-image",""),Sb.style.setProperty("mask-image","");O?nM?(AS.style.setProperty("left","0"),AS.style.setProperty("right","unset")):(AS.style.setProperty("left",""),AS.style.setProperty("right","0")):
nM?(AS.style.setProperty("left","unset"),AS.style.setProperty("right",Ho+"px")):(AS.style.setProperty("left",Ho+"px"),AS.style.setProperty("right","unset"))}}}})}}
var c,Q;(c=K)==null||(Q=c.stop)==null||Q.call(c);c=new _.gq(H,17);H();K=c},"sZ7lhf");
_.$s(function(){r(DHM(D(),t()));U(tOo(D(),e()));var H=function(){Rib=void 0;var Q,E;(Q=K)==null||(E=Q.fire)==null||E.call(Q)};
if(window.ResizeObserver){var c=new ResizeObserver(H);c.observe(M.value);_.w2(function(){var Q,E;(Q=K)==null||(E=Q.stop)==null||E.call(Q);c.disconnect()})}else window.addEventListener("resize",H),_.w2(function(){var Q,E;
(Q=K)==null||(E=Q.stop)==null||E.call(Q);window.removeEventListener("resize",H)})});
return{isTruncated:l,displayText:e,contentRef:M,hiddenRef:W,placeholderTruncationTextRef:z,hiddenTruncationTextRef:I,truncationTextRef:F}};
X35=function(D){return{content:D!=null?D:""}};
uuU=function(D){return _.HL(D.onTap)||_.hx(D.rendererContext)};
a2n=function(D){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:D.overflowMenuA11yLabel,onTap:function(Y){Y.preventDefault();Y.stopPropagation();if(D.overflowMenuOnTap){var R=_.PL({elementsCommand:D.overflowMenuOnTap,forceNewState:!0});if(R==null?0:R.onclick)R.onclick(Y)}}}};
_.dq=function(D,Y,R,Z,t){Z=Z===void 0?{}:Z;if(!t||Math.random()<5E-4){Y=Y||null;R=R||null;D=D instanceof Error?D:new _.AT(D);if(D.args)for(var X=_.a(D.args),M=X.next();!M.done;M=X.next())M=M.value,M instanceof Object&&(Z=Object.assign({},M,Z));Z.category="H5 Ads Control Flow";Y&&(Z.slot=Y?"slot:  "+Y.slotType:"");R&&(Z.layout=R?"layout:  "+R.layoutType:"",Z.layoutId=R.layoutId);t&&(Z.known_error_aggressively_sampled=!0);D.args=[Z];_.Jk(D)}};
_.MO$=function(D,Y){_.CX(D,"yt-open-popup-action",[_.RQ(Y),D])};
_.iI=function(D,Y){_.MO$(D,_.i0(Y))};
Wtr=function(D){if(!D)return"";if(Cab[D])return Cab[D];Om||(Om=_.I0("A"));Om.href!==D&&_.L$(Om,D);var Y=Om.pathname;Cab[D]=Y.startsWith("/")?Y:"/"+Y;return Cab[D]};
zil=function(){var D=Wtr(window.location.href);if(D==="/")return"home";if(D.startsWith("/results"))return"search";if(D.startsWith("/watch"))return"watch";if(D.startsWith("/shorts"))return"shorts";if(D.startsWith("/hashtag"))return"hashtag";if(D.startsWith("/create_channel"))return"create_channel";if(D.startsWith("/@")||D.startsWith("/user/")||D.startsWith("/channel/"))return"channel";if(D.startsWith("/experiments"))return"experiments";if(D.startsWith("/sponsor_channel"))return"sponsorship";if(D.startsWith("/select_site"))return"settings";
if(D.startsWith("/locate"))return"locate";if(D.startsWith("/redeem"))return"redeem";if(D.startsWith("/musicpremium")||D.startsWith("/premium")||D.startsWith("/red"))return"premium";if(D.startsWith("/paid_memberships"))return"paid_memberships";if(D.startsWith("/oops"))return"oops";if(D.startsWith("/clip"))return"clip";var Y;return(cK==null?void 0:(Y=cK.response)==null?void 0:Y.page)==="404"?"404":D.startsWith("/feed/history")?"history":D.startsWith("/feed/library")?"library":D.startsWith("/feed/subscriptions")?
"subscriptions":D.startsWith("/feed/trending")?"trending":D.startsWith("/feed/news_destination")?"news":D.startsWith("/playlist")?"playlist":D.startsWith("/minor_moment")?"minor_moment":D.startsWith("/playable/")||D.match("^/playables/(?!saved).")?"mini_app":D.startsWith("/playables")?"playables":D.startsWith("/create/live/join")?"open_in_app":D.startsWith("/feed/explore")?"explore":"browse"};
_.I2o=function(){var D=cK==null?void 0:cK.response,Y=D==null?void 0:D.endpoint;if(!Y)return(D==null?void 0:D.page)==="watch"?"watch":zil();var R;D=(R=_.A(Y==null?void 0:Y.commandMetadata,_.GA))==null?void 0:R.webPageType;R=!1;if(D&&!SCb.includes(D))switch(D){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 Z;return((Z=_.A(Y==null?void 0:Y.commandMetadata,_.GA))==null?0:Z.url)&&Wtr(_.A(Y.commandMetadata,_.GA).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var t;return(Y=(t=_.A(Y,_.A6))==null?void 0:t.browseId)?TxM[Y]||"browse":"browse";default:R=!0}if(_.A(Y,_.Dx)||_.A(Y,jOS))return"sponsorship";t=Wtr(window.location.href);if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/create_channel"))return"create_channel";
if(_.A(Y,_.Qj)&&t.startsWith("/shorts"))return"shorts";if(_.A(Y,_.Qj)&&t.startsWith("/watch"))return"watch";R&&(Y=new _.AT("Unsupported mWeb page type",{pathname:t,webPageType:D}),_.Nb(Y));return"browse"};
Y6=function(D,Y,R,Z){return D&&Y?D!==R||Y!==Z?(_.dq(Error("Hh"),void 0,void 0,{"stored-slot":D,"stored-layout":Y,"latest-slot":R,"latest-layout":Z}),!1):!0:!1};
Fti=function(D,Y,R){return D({targetId:Y},function(Z){return R.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Z,{header:R.continuationItems?R.continuationItems[0]:void 0}):Object.assign({},Z,{contents:R.continuationItems?R.continuationItems:[]})})};
GG9=function(D,Y,R,Z){if(Y=Y.trackingParams){var t,X=(t=R.getScreenLayer)==null?void 0:t.call(R);R=_.K2(X);t=_.Ud(X);if(R&&t){var M=_.oT(Y);_.f("combine_ve_grafts")?D.graftServerVe(Y,t,X):_.Qk(R,t,M);Z==null||Z(M)}}};
f2U=function(D){var Y;return((Y=VOr.get(D))==null?void 0:Y.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
nuU=function(D,Y){var R={type:Y.slotType,controlFlowManagerLayer:eiM.get(Y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Y.slotEntryTrigger&&(R.entryTriggerType=Y.slotEntryTrigger.triggerType);Y.slotPhysicalPosition!==1&&(R.slotPhysicalPosition=Y.slotPhysicalPosition);if(D){R.debugData={slotId:Y.slotId};if(D=Y.slotEntryTrigger)R.debugData.slotEntryTriggerData=AqU(D);D=Y.slotFulfillmentTriggers;R.debugData.fulfillmentTriggerData=[];D=_.a(D);for(var Z=D.next();!Z.done;Z=D.next())R.debugData.fulfillmentTriggerData.push(AqU(Z.value));
Y=Y.slotExpirationTriggers;R.debugData.expirationTriggerData=[];Y=_.a(Y);for(D=Y.next();!D.done;D=Y.next())R.debugData.expirationTriggerData.push(AqU(D.value))}return R};
AqU=function(D,Y){var R={type:D.triggerType};Y!=null&&(R.category=Y);D.triggeringSlotId!=null&&(R.triggerSourceData||(R.triggerSourceData={}),R.triggerSourceData.associatedSlotId=D.triggeringSlotId);D.triggeringLayoutId!=null&&(R.triggerSourceData||(R.triggerSourceData={}),R.triggerSourceData.associatedLayoutId=D.triggeringLayoutId);return R};
rqo=function(D,Y,R,Z){Y={opportunityType:Y};D&&(Z||R)&&(Z=_.N1(Z||[],function(t){return nuU(D,t)}),Y.debugData=Object.assign({},R&&R.length>0?{associatedSlotId:R}:{},Z.length>0?{slots:Z}:{}));
return Y};
w3$=function(D){return RZ(D.opportunityAdapterMap).concat(RZ(D.triggerAdapterMap)).concat(RZ(D.fulfillmentAdapterFactoryMap)).concat(RZ(D.slotAdapterFactoryMap)).concat(RZ(D.layoutRenderingAdapterFactoryMap))};
RZ=function(D){var Y=[];D=_.a(D.values());for(var R=D.next();!R.done;R=D.next())R=R.value,R.isAdsControlFlowEventListener&&Y.push(R);return Y};
tR=function(D){var Y=D.slotId,R=D.slotType,Z=D.slotPhysicalPosition;return Y===void 0?new Zx("Cannot construct a slot due to the missing id.",{adSlotMetadata:D}):R===void 0?new Zx("Cannot construct a slot due to the missing type.",{adSlotMetadata:D}):Z===void 0?new Zx("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:D}):{slotId:Y,slotType:R,slotPhysicalPosition:Z,managerLayer:"external",adSlotLoggingData:D.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new $HM}};
vuj=function(D){var Y=D.layoutId,R=D.layoutType;return Y===void 0?new s0("Cannot construct a layout due to the missing id.",{adLayoutMetadata:D}):R===void 0?new s0("Cannot construct a layout due to the missing type.",{adLayoutMetadata:D}):{layoutId:Y,layoutType:R,managerLayer:"external",adLayoutLoggingData:D.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new $HM,interactionLoggingAdsClientData:{}}};
oun=function(D){if(D.querySelector("img")){var Y=D.querySelector("img");Y.addEventListener("error",function(){IEj(Y.src).then(function(R){(R=_.k7(R).toString())?Y.src=R:Y.removeAttribute("src")}).catch(function(){Y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
uE=function(D,Y){if(Y&&(blo(Y.viewableCommand)||blo(Y.endOfSessionCommand))){var R=yqU(Y==null?void 0:Y.viewableCommand);Y=yqU(Y==null?void 0:Y.endOfSessionCommand);if(!XF){var Z=_.ZH("custom_active_view_tos_timeout_ms");XF=Z>0&&Z!==36E5?new Nx9(l2U(),Z):new Nx9(l2U())}Jqo(XF,D);kGi(XF,D,R,Y)}};
aZ=function(D){XF&&Jqo(XF,D)};
l2U=function(){var D=_.JQ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
blo=function(D){D=_.HL(D);return!(D==null||!D.loggingUrls)&&D.loggingUrls.length>0};
yqU=function(D){if(!D)return[];var Y=[],R,Z;((Z=(R=_.HL(D))==null?void 0:R.loggingUrls)!=null?Z:[]).forEach(function(t){t.baseUrl&&Y.push(t.baseUrl)});
return Y};
UHj=function(D){if(_.f("stop_av_measurement_on_detach"))return function(){aZ(D)}};
Kt9=function(D){return function(){_.f("stop_av_measurement_on_detach")&&aZ(D)}};
hir=function(D){if(_.f("stop_av_measurement_on_detach"))return function(){aZ(D)}};
Lty=function(D){return D.shorts.isDesktopSmallWidth};
_.mHU=function(D){return D.shorts.isShortsActive};
_.qCr=function(D){return D.shorts.isWatchWhileMode};
_.MV=function(D){return D.shorts.isFullscreen};
_.C9=function(D){return D.shorts.isShortsPipActive};
xHj=function(D){var Y,R;if(D=(Y=_.A(D.reelsAdCardButtoned,Hll))==null?void 0:(R=Y.animatedRenderingConfig)==null?void 0:R.easeOutSeconds)return D+"s"};
QO9=function(D,Y,R){return _.C(function(Z){return Z.return(new Promise(function(t){var X=new Image;X.onload=function(){t(new Pa9(D,Y,R,X.naturalWidth,X.naturalHeight))};
X.src=R.toString()}))})};
Bxb=function(D,Y){return Math.round(D/1E-5)===Math.round(Y/1E-5)};
p3j=function(D,Y){return Math.round(D/1E-5)===Math.round(Y/1E-5)};
EuM=function(D,Y){return D.year===Y.year&&D.month===Y.month&&D.day===Y.day};
gul=function(D,Y){return D.year!==Y.year?D.year<Y.year:D.month!==Y.month?D.month<Y.month:D.day<Y.day};
ilS=function(D){return D.day===dHU(D.year,D.month)?D.month===11?{year:D.year+1,month:0,day:1}:{year:D.year,month:D.month+1,day:1}:{year:D.year,month:D.month,day:D.day+1}};
Olj=function(){var D=new Date,Y={year:D.getFullYear(),month:D.getMonth(),day:D.getDate()};return{start:Y,end:{year:D.getFullYear()+2,month:D.getMonth(),day:D.getDate()},selectedDate:ilS(Y)}};
cq9=function(D){return(new gL(2)).format(new Date(D.year,D.month,D.day))};
D_y=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
Yab=function(D,Y){D=(D+(Number(Y.utcOffsetSec)+(new Date(D*1E3)).getTimezoneOffset()*60))*1E3;Y=D_y(new Date(D));return{date:Y,secondsSinceMidnight:Math.floor((D-(new Date(Y.year,Y.month,Y.day)).getTime())/1E3)}};
Rzy=function(D,Y){Y=Y.months.findIndex(function(R){return R.year===D.year&&R.month===D.month});
return Y>=0?Y:void 0};
ZQM=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENTBOX")return!0}catch(Y){return!1}return ZQM(D.parentNode)};
Wl=function(D){return D?!(D.tagName!=="A"||!D.href||!D.classList.contains("yt-simple-endpoint")):!1};
t1b=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
sCi=function(D,Y,R){if(!D)return null;var Z=Wl(D);if(Z&&R)return Y=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Y);if(Z&&!R)return document.createTextNode("");if(t1b(D))return R=D.alt,D=D.dataset.emojiId,!D&&Y&&(Y=_.zb(Y,R))&&Y.isCustomEmoji&&(D=Y.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(R);Z=D.cloneNode(!1);for(var t=0;t<D.childNodes.length;++t){var X=sCi(D.childNodes[t],Y,R);X&&Z.appendChild(X)}return Z};
SV=function(D){return D?Wl(D)?D:SV(D.lastChild):null};
XJS=function(D){return D?Wl(D)?D:XJS(D.firstChild):null};
uwj=function(D){if(!D)return null;for(var Y=D.previousSibling;Y;)if(Y.nodeType===Node.ELEMENT_NODE&&Y.nodeName==="BR")Y=Y.previousSibling;else if(Y.nodeType===Node.TEXT_NODE&&/\s+/.test(Y.textContent))Y=Y.previousSibling;else break;(Y=SV(Y))?D=Y:D=(D=D.parentNode)?SV(D.previousElementSibling):null;return D};
a9r=function(D){if(!D)return null;for(var Y=D.nextSibling;Y;)if(Y.nodeType===Node.ELEMENT_NODE&&Y.nodeName==="BR")Y=Y.nextSibling;else if(Y.nodeType===Node.TEXT_NODE&&/\s+/.test(Y.textContent))Y=Y.nextSibling;else break;return(Y=XJS(Y))?Y:a9r(D.parentNode)};
M1U=function(D){var Y=_.Tb(),R=Y.JSC$11256_getStartNode();if(!ZQM(R.parentNode))return null;Y=Y.JSC$11256_getStartOffset();if(R.nodeType===Node.TEXT_NODE){var Z=_.K0(R,Wl);if(Z){if(D&&Y===0||!D&&Y===R.length)return Z}else{if(D&&Y===R.length)return!R||R.nodeName==="BR"||R.nextElementSibling&&_.jV(R.nextElementSibling,"display")==="block"?null:XJS(R.nextElementSibling);if(!D&&Y===0)return R?SV(R.previousElementSibling):null}}if(R.nodeType===Node.ELEMENT_NODE)if(D){if(0<=Y&&Y<R.childNodes.length)return XJS(R.childNodes[Y])}else if(0<
Y&&Y<=R.childNodes.length)return SV(R.childNodes[Y-1]);return null};
CGU=function(D,Y,R){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(R){var Z=uwj(D);if(Z&&!/^\s+\S/.test(D.wholeText.substr(0,Y)))return Z}else if((Z=a9r(D))&&!/\S\s+/.test(D.wholeText.substr(Y,D.wholeText.length)))return Z;return D.nodeType===Node.ELEMENT_NODE?R?uwj(D.childNodes[Y]):a9r(D.childNodes[Y]):CGU(D.parentNode,Y,R)};
WR9=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var Y="";for(D=D.firstChild;D;D=D.nextSibling)Y+=WR9(D);return Y;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
IZ=function(D,Y){return D.year===Y.year&&D.month===Y.month&&D.day===Y.day};
FF=function(D,Y){return D.year!==Y.year?D.year<Y.year:D.month!==Y.month?D.month<Y.month:D.day<Y.day};
zzS=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
Saj=function(D){var Y=F0j;Y=Y===void 0?F0j:Y;Y(new Date(D.year,D.month,D.day))};
Gb=function(D){return zzS(new Date(Number(D.seconds)*1E3))};
TTr=function(D){return D.year!==void 0&&D.month!==void 0&&D.day!==void 0};
jCi=function(D){return D.start!==void 0&&D.end!==void 0};
I9n=function(D){return jCi(D)?D.start:D};
FR$=function(D){return jCi(D)?D.end:void 0};
V1b=function(D,Y){for(var R=[],Z=new Date(D.start.year,D.start.month);Z.getFullYear()<D.end.year||Z.getFullYear()===D.end.year&&Z.getMonth()<=D.end.month;){var t=R,X=t.push,M=Z.getFullYear(),W=Z.getMonth(),z=D,I=Y,F=void 0,G=[],V=Object.freeze({extraCssClass:"invisible"}),e=new Date(M,W),r=zzS(e);e=e.getDay();for(var l=zzS(new Date);r.month===W;){e!==Gsb&&F||(F=Array.from({length:7}).fill(V),G.push(F));var U={date:{year:M,month:W,day:r.day},extraCssClass:"",debugClass:""};U.extraCssClass=I(U.date,
r,l,z).trim();F[(e-Gsb+7)%7]=U;r=r.day===dHU(r.year,r.month)?r.month===11?{year:r.year+1,month:0,day:1}:{year:r.year,month:r.month+1,day:1}:{year:r.year,month:r.month,day:r.day+1};e=(e+1)%7}X.call(t,{weeks:G,monthLabel:V_.SHORTMONTHS[W]+" "+M,year:M,month:W,monthLabelExtraCssClass:G[0][2]===V?"shift-down-label":""});Z.setMonth(Z.getMonth()+1)}return R};
f9S=function(D,Y){Y=Y.months.findIndex(function(R){return R.year===D.year&&R.month===D.month});
return Y>=0?Y:void 0};
ACb=function(D,Y){a:{var R=R===void 0?[2,3]:R;R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next()){var t=new Date;if((new ezy(Z.value)).parse(Y,t,{validate:!0})){t.setHours(0,0,0,0);Y=t;break a}}Y=null}if(!Y)return{isValid:!1,value:void 0};Y=zzS(Y);R=D.end;return FF(Y,D.start)||FF(R,Y)?{isValid:!1,value:void 0}:{isValid:!0,value:Y}};
vgy=function(D){var Y=ngi;Y=Y===void 0?rC5:Y;var R=D.columnsToShow||[],Z=wJ9(D.columnDimensions,D.columnsToShow,D.leftFloatingColumns,Y);return R.map(function(t,X){var M=D.columns[t];if(M===void 0)throw Error("Nh");var W=Z?Z[X]:"";var z=D.getCustomTooltip?D.getCustomTooltip(t,M.headerTooltipParagraphs):M.headerTooltipParagraphs;var I=$_j(D,t);return{type:t,index:X,style:W,classes:I,headerName:M.headerName||"",headerIcon:M.headerIcon,headerTooltipParagraphs:z||[],headerTooltipHelpContext:M.headerTooltipHelpContext,
sortOrders:M.sortOrders||[],selectionState:M.isSelectionCheckbox?D.selectionState:void 0}})};
$_j=function(D,Y){var R=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Z=D.columns[Y];if(Z===void 0)return"";var t=R.includes("DEFAULTS")&&Z.cssClass?[Z.cssClass]:[];if(R.includes("SORTING")){Z.sortOrders&&Z.sortOrders.length&&t.push("sortable");if(D.sorting&&D.sorting.columnType===Y)a:switch(D.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var X="column-sorted";break a;default:X=""}else X="";X&&t.push(X)}R.includes("FLOATING")&&(Y=D.columnsToShow.indexOf(Y),D.leftFloatingColumns&&Y<D.leftFloatingColumns&&
t.push("floating-column"),D.leftFloatingColumns&&Y===D.leftFloatingColumns-1&&t.push("last-floating-column"));R.includes("RIGHT_ALIGN")&&Z.rightAlignHeader&&t.push("right-align");return t.filter(function(M){return M}).join(" ")};
wJ9=function(D,Y,R,Z){R=R===void 0?0:R;Z=Z===void 0?rC5:Z;if(D){var t=[],X=0;ogn(D,Y,Z).forEach(function(M,W){var z="min-width:"+M.minWidth+"px;padding-left:"+M.paddingLeft+"px;padding-right:"+M.paddingRight+"px;flex:"+M.flexGrow+" 0 "+M.minWidth+"px;";M.maxWidth!==Infinity&&(z=[z,"max-width:"+M.maxWidth+"px;"].join(""));X>0&&W<R&&(z=[z,"left:"+X+"px;"].join(""));t.push(z);X+=M.minWidth+M.paddingLeft+M.paddingRight});
return t}};
ogn=function(D,Y,R){R=R===void 0?rC5:R;return Y.map(function(Z,t){Z=D&&D[Z]||{};var X=t===0?R.paddingLeftFirstColumn:R.padding;Z.paddingLeft!==void 0&&(X=Z.paddingLeft);t=t===Y.length-1?R.paddingRightLastColumn:R.padding;Z.paddingRight!==void 0&&(t=Z.paddingRight);return{paddingLeft:X,paddingRight:t,minWidth:Z.minWidth!==void 0?Z.minWidth:R.minWidth,maxWidth:Z.maxWidth!==void 0?Z.maxWidth:R.maxWidth,flexGrow:Z.flexGrow!==void 0?Z.flexGrow:R.flexGrow}})};
bQ$=function(D){var Y=D.reduce(function(Z,t){var X=t.columnId,M={};t.headerText&&(M.headerName=_.OM(t.headerText));t.rightAlignHeader&&(M.rightAlignHeader=t.rightAlignHeader);var W;if((W=t.headerIcon)==null?0:W.iconType)M.headerIcon=_.IT(t.headerIcon.iconType);Z[X]=M;return Z},{}),R=D.filter(function(Z){return!Z.hideColumn}).map(function(Z){return Z.columnId});
D=D.filter(function(Z){return!!Z.dimensions}).reduce(function(Z,t){Z[t.columnId]=t.dimensions;
return Z},{});
return{columns:Y,columnsToShow:R,columnDimensions:D}};
_.yCi=function(D){return D?D.simpleText?D.simpleText:D.runs?D.runs.map(function(Y){return Y.text}).join(""):"":""};
U_9=function(D){var Y=D.data;var R=D.onTap;var Z=D.isSelected;var t=D.onFocusIn;if(!Y)return{};D=NTM(Y);Z===void 0&&(Z=Y==null?void 0:Y.isSelected);var X;return{text:l9$(Y,D),startIcon:(X=Y.icon)==null?void 0:X.iconType,state:Z?0:2,type:0,onTap:JCi(Y,R),accessibilityLabel:ks$(Y,D),onFocusIn:function(){return t==null?void 0:t()}}};
l9$=function(D,Y){if(!Y)return D.text?_.yCi(D.text):void 0};
JCi=function(D,Y){return function(R){Y==null||Y(R,D)}};
NTM=function(D){D=D.style&&D.style.styleType;return!YCy&&D==="STYLE_EXPLORE_LAUNCHER_CHIP"};
ks$=function(D,Y){if(Y){var R,Z,t;return(t=(R=D.accessibilityData)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)!=null?t:l9$(D,!1)}};
f9=function(D){return{signalAction:{signal:D}}};
LRn=function(){return _.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?KRl:_.hzU};
m_S=function(D,Y){D=D===void 0?"SOFT_RELOAD_PAGE":D;Y=Y===void 0?49504:Y;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.tu(_.fX("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:Y}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:D}}]}}}};
qab=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.tu(_.fX("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:LRn()}};
HQy=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.tu(_.fX("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:LRn()}};
x_l=function(D,Y){var R=_.tu(_.fX("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Z=_.tu(_.fX("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),t={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.tu(_.fX("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};t.serviceEndpoint=D?D:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[f9("SOFT_RELOAD_PAGE")]}};return{title:R,bodyText:Z,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:t},
style:{value:Y!=null?Y:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
QC$=function(D){D=D===void 0?{}:D;return{title:_.tu(D.localizedZeroStateTitleText===void 0?"":D.localizedZeroStateTitleText),bodyText:_.tu(D.localizedZeroStateMessage===void 0?"":D.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tu(D.localizedZeroStateButtonText===void 0?"":D.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[PG9]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
pJU=function(D){D=D===void 0?{}:D;return{title:_.tu(D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText),titleLength:19,subtitle:_.tu(D.localizedOptInMessage===void 0?"":D.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tu(_.fX("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:_.tu(_.fX("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:[BTM]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
d_j=function(D,Y){var R=Y=Y===void 0?{}:Y;Y=R.offlineTitleText===void 0?"":R.offlineTitleText;var Z=R.offlineDescriptionText===void 0?"":R.offlineDescriptionText,t=R.formattedSupplementalText,X=R.actionButtonText===void 0?"":R.actionButtonText,M=R.titleText===void 0?"":R.titleText;R=R.descriptionText===void 0?"":R.descriptionText;var W={title:X,accessibilityText:X,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:{urlEndpoint:{url:"https://www.youtube.com/premium"},commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",webPageType:"WEB_PAGE_TYPE_PROMO"}}}}};D||(M=Y,R=Z,W={title:X,accessibilityText:X,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:_.tu(M),
titleLength:M.length,overrideTitleMaxFontSize:30,subtitle:_.tu(R),supplementalText:t,primaryButton:{buttonViewModel:W},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[EgU]},darkTileImage:{thumbnails:[ggU]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.cC5=function(D,Y,R,Z,t,X,M,W,z,I,F){t=t===void 0?!1:t;X=X===void 0?!1:X;M=M===void 0?0:M;W=W===void 0?-Infinity:W;z=z===void 0?!1:z;I=I===void 0?!1:I;F=F===void 0?!1:F;var G=[],V=_.tu(_.fX("SMART_DOWNLOADS",void 0,"Smart downloads")),e=_.tu(iQn(M,W,D.length));W=M=void 0;I?M={statementBannerRenderer:d_j(F,Z)}:t?D.length>0?W=OQl(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.f("kevlar_manual_downloads_above"),V,e):z?W={alertBannerViewModel:{heading:{content:R.localizedOptInBannerTitleText===
void 0?"":R.localizedOptInBannerTitleText},body:{content:R.localizedPromptMessage===void 0?"":R.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.fX("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.fX("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:_.yGl}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:X&&(W={backgroundPromoRenderer:{bodyText:_.tu(_.fX("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"}}}):
X&&(W={alertBannerViewModel:{heading:{content:R.localizedOptInBannerTitleText===void 0?"":R.localizedOptInBannerTitleText},body:{content:R.localizedOptInMessage===void 0?"":R.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.fX("TURN_ON",void 0,"Turn on"),accessibilityText:_.fX("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}}}}}});R=_.tu(_.fX("YOUR_DOWNLOADS",void 0,"Your downloads"));Z=void 0;Y.length>0?(Z=void 0,_.f("kevlar_display_downloads_numbers")&&(Z=_.tu(_.ee("VIDEO_COUNT",Y.length))),Z=OQl(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,R,Z)):t||D.length||
I||(Z={backgroundPromoRenderer:{bodyText:_.tu(_.fX("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}}}});M?G.push({richSectionRenderer:{content:M}}):W&&!_.f("kevlar_manual_downloads_above")&&G.push({richSectionRenderer:{content:W,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
Z&&G.push({richSectionRenderer:{content:Z,loggingDirectives:{clientVeSpec:{uiType:51721}}}});W&&_.f("kevlar_manual_downloads_above")&&G.push({richSectionRenderer:{content:W,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(Y.length>0||t&&D.length>0&&!I)&&G.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.tu(_.fX("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:G}};
_.Yjo=function(D){return Dro(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.RPS=function(D){return Dro(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Dro=function(D,Y){var R=[];D=OQl(D,Y,!0);R.push({richSectionRenderer:{content:D}});return{contents:R}};
OQl=function(D,Y,R,Z,t){R=R===void 0?!1:R;var X="RESPONSIVE_SIZE_STANDARD";_.f("kevlar_modern_downloads_compact")?X="RESPONSIVE_SIZE_COMPACT":_.f("kevlar_modern_downloads_extra_compact")&&(X="RESPONSIVE_SIZE_EXTRA_COMPACT");D={isExpanded:R,contents:eV(D),entitySelectorType:Y,responsiveContainerConfiguration:{responsiveSize:X}};Z&&(D.title=Z);t&&(D.subtitle=t);R||(_.f("kevlar_smart_downloads_show_more_button")?(D.showMoreButton={buttonRenderer:{accessibility:{label:_.fX("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.tu(_.fX("SHOW_MORE",void 0,"Show more"))}},D.showLessButton={buttonRenderer:{accessibility:{label:_.fX("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.tu(_.fX("SHOW_LESS",void 0,"Show less"))}}):(D.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.fX("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}}}},D.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.fX("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}}}},D.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.fX("VIEW_ALL",void 0,"View all"),accessibilityText:_.fX("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:_.Rk("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:D}};
eV=function(D){var Y=[];D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,SH$(R)){var Z=Y,t=Z.push;var X=void 0;if(R==null?0:(X=R.videoEntity)==null?0:X.videoId){X=xx(_.Dl().getState(),R.videoEntity.videoId);var M=_.Dl().getState();var W=_.TL(R.videoEntity.videoId,"mainVideoEntity");M=!!_.b0(M.entities)[W];M={videoId:R.videoEntity.videoId,title:sM(R.videoEntity.title),shortBylineText:sM(R.channelEntity.title),thumbnail:R.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:M&&_.f("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:P_S(R.videoEntity.videoId,X,R.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.fX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};R.videoEntity.lengthSeconds&&(M.thumbnailOverlays=K0r(R.videoEntity.lengthSeconds,X));M.isWatched=X>0;_.f("kevlar_modern_downloads_page")&&(M.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:R.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.fX("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},M.badges=void 0);R=M}else R={};t.call(Z,{richItemRenderer:{content:{videoRenderer:R},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(z4y(R)){Z=Y;t=Z.push;var z=W=X=void 0,I=void 0,F=void 0,G=void 0,V=void 0,e=void 0,r=void 0,l=void 0,U=void 0,K=void 0;M=R.mainPlaylistEntity.playlistId;var H=R==null?void 0:(K=R.mainPlaylistEntity)==null?void 0:(U=K.thumbnailStyleData)==null?void 0:(l=U[0])==null?void 0:(r=l.value)==null?void 0:(e=r.collageThumbnail)==
null?void 0:e.coverThumbnail;if(M&&H){e=Q1y(M);!_.f("enable_offline_playlist_page")&&(R==null?0:(V=R.mainPlaylistEntity)==null?0:V.videos)&&(V=R==null?void 0:(G=R.mainPlaylistEntity)==null?void 0:(F=G.videos)==null?void 0:F[0],F=_.Mw(V).entityId,F=JSON.parse(F).videoId,F!==void 0&&(G=xx(_.Dl().getState(),F),e=_.ZQ(F,M,void 0,void 0,G)));F=[];if(R==null?0:(I=R.mainPlaylistEntity)==null?0:(z=I.videos)==null?0:z.length)F=[Ikn(),Object.assign({},(W=j8n(R==null?void 0:R.mainPlaylistEntity.videos.length))!=
null?W:{})];R={playlistId:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:H}},navigationEndpoint:e,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:F,title:sM(R.mainPlaylistEntity.title),shortBylineText:sM(R==null?void 0:(X=R.channelEntity)==null?void 0:X.title),badges:[{metadataBadgeRenderer:{label:_.fX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.f("kevlar_modern_downloads_page")&&(R.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:ZxU,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.fX("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},R.badges=void 0)}else R=void 0;t.call(Z,{richItemRenderer:{content:{playlistRenderer:R},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return Y};
iQn=function(D,Y,R){D=D?tJ5(D):"";Y!==void 0&&isFinite(Y)?Y===0?Y=_.fX("UPDATING",void 0,"Updating..."):(Y=UxU(new Date(Y),new Date),Y=_.fX("UPDATED_TIME",{relative_time:Y},"Updated "+Y)):Y="";var Z="";D&&Y&&(Z=" \u2022 ");if(R&&_.f("kevlar_display_downloads_numbers")){R=_.ee("VIDEO_COUNT",R);if(D||Y)Z=" \u2022 ";return R+Z+D+Z+Y}return D+Z+Y};
srn=function(D){return tF9(D.entities).length};
_.XeU=function(D,Y){var R=b3j(D.responsiveSize),Z;D=!((Z=D.responsiveMap)==null||!Z.some(function(t){return t.containerSize==="CONTAINER_SIZE_NARROW"&&t.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:Y,sizing:R,enableFullBleedForSingleCol:!1,isCompactList:R==="COMPACT"&&D}};
uOn=function(D,Y){return _.jC(D.entities,"votingEntity",Y)};
ayo=function(D){if(D){var Y;return((Y=_.DH().resolve(_.cD(_.O4)))==null?0:Y())?D.darkTheme:D.lightTheme}};
MJ$=function(D,Y){if(D.simpleText)return Object.assign({},D,{simpleText:E4(D.simpleText,Y)});if(!D.runs)return D;for(var R=Object.assign({},D,{runs:[]}),Z=0,t=_.a(D.runs),X=t.next();!X.done;X=t.next())if(X=X.value,X.text)if(Z+X.text.length<=Y)R.runs.push(X),Z+=X.text.length;else return R.runs.push(Object.assign({},X,{text:E4(X.text,Y-Z)})),R;return D};
CJS=function(D,Y){return _.jC(D.entities,"chipBarStateEntity",Y)};
W8r=function(D,Y){return _.jC(D.entities,"chipEntity",Y)};
Sjb=function(D,Y,R,Z){return function(){var t=zPb.has(D.displayType)&&D.selected,X=t&&D.deselectCommand?D.deselectCommand:D.tapCommand;!X||t&&Z||_.BL(X,{form:{element:Y==null?void 0:Y.value}});R==null||R()}};
ToS=function(D){switch(D){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
jrn=function(D,Y){return{triggeringElement:D,onDwellTriggeredFn:function(){var R={triggeringElement:D,loadVideoPreviewEventData:Y},Z=document.querySelector(".video-preview");Z&&Z.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:R}))},
onDwellEndFn:function(){var R=document.querySelector(".video-preview");R&&R.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Iyy=function(D,Y){var R=_.DH().resolve(_.cD(IzU)),Z=function(){var t=Y();return R&&t?jrn(D.value,t):null};
_.r2(function(){var t=Z();R&&t&&Promise.resolve().then(function(){R.registerElement(t)});
_.w2(function(){R&&t&&Promise.resolve().then(function(){_.Qi(R,t)})})},"csPUge")};
Gcl=function(D){var Y=D.dataset.resizeObserverId;if(Y)return Y;Y=""+F8b++;return D.dataset.resizeObserverId=Y};
VJ$=function(D,Y){var R=Gcl(D);AR.has(R)||AR.set(R,new Set);AR.get(R).add(Y);n9.has(R)&&Y(Object.assign({},{target:D},n9.get(R)))};
fyb=function(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=Gcl(Y.target),Z=Object.assign({},{target:Y.target},n9.get(R));if(Z!=null&&Z.contentRect?Z.contentRect.width!==Y.contentRect.width||Z.contentRect.height!==Y.contentRect.height:1)for(n9.set(R,{borderBoxSize:Y.borderBoxSize,contentBoxSize:Y.contentBoxSize,contentRect:Y.contentRect,devicePixelContentBoxSize:Y.devicePixelContentBoxSize}),R=_.a(AR.get(R)||[]),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z(Y)}};
AIj=function(){return rK?rK:rK=new eP$(fyb)};
nUy=function(D,Y){var R=Gcl(D);AR.has(R)&&(AR.get(R).delete(Y),AR.get(R).size===0&&(AR.delete(R),n9.delete(R),rK.unobserve(D),delete D.dataset.resizeObserverId));AR.size===0&&rK&&(rK.disconnect(),rK=void 0)};
web=function(D,Y){var R=_.DH().resolve(RD);return rIU.map(function(Z){return R.observe(D,Y,Z)})};
$rj=function(D){var Y=_.DH().resolve(RD);D.forEach(function(R){Y.unobserveByKey(R)})};
_.bx5=function(D,Y){var R=Object.assign({},vUU,Y);Y=_.a($bo());var Z=Y.next().value,t=Y.next().value,X=function(M){var W=M.contentRect.height;if((M=M.contentRect.width)||W||R.canHaveZeroSize)Z.width()===M&&Z.height()===W||t(Z,{height:W,width:M})};
_.$s(function(){var M=D instanceof HTMLElement?D:D.value,W=oUU(X,R.throttleMs),z=[];R.useVisibilityObserver&&(z=web(M,function(I,F){requestAnimationFrame(function(){F==="visible"?(VJ$(M,W),AIj().observe(M)):nUy(M,W)})}));
z.length||(VJ$(M,W),AIj().observe(M));_.w2(function(){z.length&&($rj(z),z.length=0);nUy(M,W)})});
return Z};
Nol=function(D,Y,R,Z,t){D=Y?D.switchOffCommand:D.switchOnCommand;if(Z&&t)yIr(D,R,t);else{var X,M;(X=_.PL({elementsCommand:D}))==null||(M=X.onclick)==null||M.call(X,R)}};
yIr=function(D,Y,R){D=_.PL({elementsCommand:D,additionalCommandArgs:{commandController:{onSuccess:function(){R(!1)},
onServerError:function(){R(!1)}}}});
if(D==null?0:D.onclick)D.onclick(Y),R(!0)};
JIU=function(D){if(D)return _.A(D,lyn)};
kci=function(D,Y){if(!((Y==null?0:Y.entitySelectorType)&&(Y==null?0:Y.entityKey)))return{};switch(Y.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return D=_.xP(D,Y.entityKey),D=D==null?void 0:D.value,Y=!1,D==="CAPTIONS_UNAVAILABLE"&&(Y=!0,D=""),Object.assign({},!!D&&{selectionText:{content:D}},!!D&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Y});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.f("web_shorts_audio_track_picker")?
(D=_.xP(D,Y.entityKey),D=D==null?void 0:D.value,Y=!1,D==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(Y=!0,D=""),Object.assign({},!Y&&!!D&&{selectionText:{content:D}},!Y&&!!D&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:Y})):{};default:return{}}};
mrU=function(D,Y,R){if(Y)return[Ury];switch(D){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[wK];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return R?[wK]:[K8y,wK];case "TRANSFER_STATE_PAUSED_BY_USER":return[hPU,wK];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[L8n,wK];default:return[Ury]}};
qji=function(D,Y,R,Z){return mrU(D,Y,Z).map(function(t){var X=t.text,M=t.iconType,W=t.videoAction;t=t.playlistAction;X=X?{content:X}:void 0;M=M&&{sources:[{clientResource:{imageName:M}}]};var z=(0,_.y7.unsafeClone)(R);if(z){var I=_.A(z,_.Vi),F=_.A(z,_.eG);I&&W?I.action=W:F&&t&&(F.action=t)}return{title:X,leadingImage:M,rendererContext:z&&{commandContext:{onTap:{innertubeCommand:z}}}}})};
Hxr=function(D){D=_.hx(D.rendererContext);var Y;return(Y=_.A(D,_.eG))==null?void 0:Y.playlistId};
xrM=function(D){var Y;return(Y=D.listItems)==null?void 0:Y.some(function(R){var Z;return _.LH((Z=_.A(R,_.yi))==null?void 0:Z.rendererContext)})};
BoM=function(D){var Y;return(Y=D.listItems)==null?void 0:Y.some(function(R){var Z,t,X=(t=(Z=_.A(R,PJj))==null?void 0:Z.defaultListItem)!=null?t:R;R=_.A(X,_.yi);return!!_.A(R==null?void 0:R.leadingAccessory,Qri)})};
gUr=function(D){var Y=D.element;var R=D.veType;var Z=D.storedVisualElement===void 0?null:D.storedVisualElement;var t=D.elementIndex===void 0?0:D.elementIndex;D=D.clientYouTubeData;var X=_.K2();X!==peb&&(EU5.clear(),peb=X);if(Y.visualElement&&EU5.has(Y.visualElement))return null;if(Z&&EU5.has(Z))return Y.visualElement=Z,null;R=_.Ai(_.n8(),{veType:R,elementIndex:t,clientYouTubeData:D});if(!R)return null;Y.visualElement=R;EU5.add(R);return R};
_.$6=function(D,Y,R,Z){R=R===void 0?null:R;Z=Z===void 0?BBM:Z;var t=t===void 0?null:t;Ji(function(){if(Y){R instanceof Function&&(R=R());var X=gUr({element:Y,veType:D,storedVisualElement:R,clientYouTubeData:void 0});X&&(gfo(Y,t),Z(X))}})};
vl=function(D,Y){if(D){switch(Y){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.HG(D)}};
oZ=function(D,Y){if(D){switch(Y){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.HG(D)}};
drj=function(D){return D?_.xI(D):""};
ixr=function(D){return(D==null?void 0:D.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
OxU=function(D,Y){var R;return"linear-gradient(to bottom, "+((R=Y==null?void 0:Y.map(function(Z){var t=D?Z.darkThemeColor:Z.lightThemeColor;return t?_.xI(t)+" "+((Z==null?void 0:Z.startLocation)||0)*100+"%":"transparent"}))==null?void 0:R.join(", "))+")"};
cIU=function(D,Y,R,Z,t){if(!((Z==null?0:Z.height)&&(Z==null?0:Z.width)))return{size:0};var X=Z.width;Z=Z.height;if(t)return Y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&X>Z?{size:312/q69}:Y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(R!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||D!==1&&D!==2||Y!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&Y!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&Y!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(Y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Y==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Z===X)switch(D){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(Y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Z>X)switch(D){case 1:case 3:return{size:240*mYy};default:return{size:360*mYy}}switch(D){case 1:case 2:return{size:1/q69*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.DzU=function(D){if(!("matchMedia"in window))return _.qJ(Error("Oh")),function(){return!1};
var Y=window.matchMedia(D);D=_.a(_.ae(Y.matches,void 0,"jLJc8e"));var R=D.next().value,Z=D.next().value,t=function(X){Z(X.matches)};
Y.addEventListener?(Y.addEventListener("change",t),_.w2(function(){Y.removeEventListener("change",t)})):Y.addListener&&(Y.addListener(t),_.w2(function(){Y.removeListener(t)}));
return R};
Y5o=function(D){return D==="IMAGE_BANNER_STYLE_INSET"||D==="IMAGE_BANNER_STYLE_UNKNOWN"};
Rei=function(){if(!("matchMedia"in window))return _.qJ(Error("Oh")),function(){return 0};
var D=op(function(){return window.matchMedia("(max-width: 527.9px)")}),Y=op(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),R=op(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Z=op(function(){return window.matchMedia("(min-width: 1024px)")}),t=_.a(_.ae(D.matches,void 0,"og9kEc")),X=t.next().value,M=t.next().value;
t=_.a(_.ae(Y.matches,void 0,"ybDWCb"));var W=t.next().value,z=t.next().value;t=_.a(_.ae(R.matches,void 0,"o0Gfh"));var I=t.next().value,F=t.next().value;t=_.a(_.ae(Z.matches,void 0,"yqUUgd"));var G=t.next().value,V=t.next().value,e=op(function(){return function(K){M(K.matches)}}),r=op(function(){return function(K){z(K.matches)}}),l=op(function(){return function(K){F(K.matches)}}),U=op(function(){return function(K){V(K.matches)}});
_.$s(function(){D.addEventListener?(D.addEventListener("change",e),Y.addEventListener("change",r),R.addEventListener("change",l),Z.addEventListener("change",U)):D.addListener&&(D.addListener(e),Y.addListener(r),R.addListener(l),Z.addListener(U));_.w2(function(){D.removeEventListener?(D.removeEventListener("change",e),Y.removeEventListener("change",r),R.removeEventListener("change",l),Z.removeEventListener("change",U)):D.removeListener&&(D.removeListener(e),Y.removeListener(r),R.removeListener(l),
Z.removeListener(U))})});
return function(){return X()?1:W()?2:I()?3:G()?4:0}};
ZTb=function(D){var Y=0;D=_.a([D.title,D.metadata,D.actions,D.description,D.attribution]);for(var R=D.next();!R.done;R=D.next())R.value&&Y++;return Y};
tAl=function(D){return D===1||D===2?1:0};
_.bE=function(D){Object.keys(D);var Y=function(R,Z){var t=Y.mapping||D;if(!R)return _.S(_.c_,null);if(Array.isArray(R)&&(R=sGS(t,Y,R),Array.isArray(R))){if(!R.length)return _.S(_.c_,null);if(R.length>1){for(var X=!1,M=!1,W=[],z={},I=0;I<R.length;z={data$jscomp$2532:void 0},I++)if(z.data$jscomp$2532=R[I],z.data$jscomp$2532){var F=Xnl(z.data$jscomp$2532,t),G=F.mappingEntry;F=F.rendererName;G&&F&&(G&&(!fm9(G)&&uTS(G)&&(M=!0),!fm9(G)&&G.asyncId||(X=!0)),W.push(aJy(z.data$jscomp$2532,G,F,Y,Z)))}return M&&
!X?_.S(_.c_,null,MAj()):_.S(_.c_,null,W)}R=R[0]}if(!R)return _.S(_.c_,null);R=sGS(t,Y,[R])[0];if(!R)return _.S(_.c_,null);X=Xnl(R,t);t=X.mappingEntry;X=X.rendererName;return t&&X?_.S(_.c_,null,aJy(R,t,X,Y,Z)):_.S(_.c_,null)};
Y.mapping=D;return Y};
_.C7j=function(D){var Y=void 0,R;for(R in D)if(D.hasOwnProperty(R)){Y=R;break}return Y};
sGS=function(D,Y,R){var Z,t=(Z=nH().preProcessOptions)==null?void 0:Z.idomOptions;if(!t)return R;nH();return t.preProcessPropsIdom(D,R,Y.triggerRerender)};
Xnl=function(D,Y){return(D=_.C7j(D))?{mappingEntry:Y[D],rendererName:D}:{mappingEntry:void 0,rendererName:void 0}};
aJy=function(D,Y,R,Z,t){if(!Y)return _.S(_.c_,null);var X={};t&&t[R]&&(X=Object.assign({},t[R]));D[R]!==void 0&&(X.data=D[R]);if(fm9(Y))return Y.debugName||(Y.debugName=R),_.S(Y,X);Y.asyncId&&(Z.pendingIdsMap=Z.pendingIdsMap||{},Z.pendingIdsMap[R]=Y.asyncId);return Y.templateFn?Y.templateFn(X):uTS(Y)?MAj():_.S(_.c_,null)};
uTS=function(D){var Y;return(Y=D.showPlaceholder)!=null?Y:nH().defaultShowPlaceholder};
MAj=function(){var D=nH().placeholder;return D()};
ze9=function(D){var Y,R=((Y=_.DH().resolve(_.cD(_.O4)))==null?0:Y())&&D.data.darkThemeImage?D.data.darkThemeImage:D.data.image;Y=_.S("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.S("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},R?_.S(_.Rt,{data:R,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),WlM(D.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));R=_.S(_.y_,{text:D.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var Z=D.data;if(Z.bodyText){var t=[];Z=_.a(Z.bodyText);for(var X=Z.next();!X.done;X=Z.next())t.push(_.S(_.y_,{text:X.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else t=_.S(_.c_,null);return _.S("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},Y,R,t,WlM(D.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.S(_.y_,{text:D.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.S(_.y_,{text:D.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
TUb=function(D){D=(new S5n).parse(D);return(new IR).render(D).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(Y){var R=Y.split(":").map(Number),Z=0,t=0;if(R.length===3)R=_.a(R),Z=R.next().value,t=R.next().value,R=R.next().value;else if(R.length===2)R=_.a(R),t=R.next().value,R=R.next().value;else if(R.length===1)R=_.a(R).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Z*3600+t*60+R)+'" role="button">'+Y+"</span>"})};
jGo=function(D){D=_.a(D.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var Y=D.next(),R={};!Y.done;R={clickHandler$jscomp$4:void 0},Y=D.next()){Y=Y.value;R.clickHandler$jscomp$4=function(t){t=Number(t.target.getAttribute("data-time"));if(isNaN(t))throw Error("Qh");var X;(X=_.IP())==null||X.seekTo(t,!0)};
var Z=function(t){return function(X){X.key!=="Enter"&&X.key!=="Space"||(0,t.clickHandler$jscomp$4)(X)}}(R);
Y.setAttribute("tabindex","0");Y.removeEventListener("click",R.clickHandler$jscomp$4);Y.removeEventListener("keydown",Z);Y.addEventListener("click",R.clickHandler$jscomp$4);Y.addEventListener("keydown",Z)}};
IJb=function(){return _.S("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.S(NV,{percentWidth:100}),_.S(NV,{animationDelay:200}),_.S(NV,{animationDelay:400}),_.S(NV,{animationDelay:600}),_.S(NV,{animationDelay:800,percentWidth:60}),_.S("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.S(NV,{percentWidth:100}),_.S(NV,{animationDelay:200}),_.S(NV,{animationDelay:400}),_.S(NV,{animationDelay:600,percentWidth:50}))};
NV=function(D){return _.S("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(D.percentWidth===void 0?100:D.percentWidth)+"%"},_.S("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(D.animationDelay===void 0?0:D.animationDelay)+"ms"}))};
Fl9=function(){var D=_.a(_.ae(function(){return""},void 0,"v2wS5e")),Y=D.next().value;
return[function(){return Y()()},
D.next().value]};
Gen=function(D,Y){D=D?tJ5(D):"";Y!==void 0&&isFinite(Y)?Y===0?Y=_.fX("UPDATING",void 0,"Updating..."):(Y=UxU(new Date(Y),new Date),Y=_.fX("UPDATED_TIME",{relative_time:Y},"Updated "+Y)):Y="";var R="";D&&Y&&(R=" \u2022 ");return _.tu(D+R+Y)};
eel=function(D,Y,R,Z,t,X){Y=Y===void 0?0:Y;var M=VA5[Y],W=M.title,z=M.iconType,I=M.topButtonRenderer,F=M.sectionClientVE;M=M.videoClientVE;var G;if(Y!==1||D.length){R=[];D=_.a(D);for(Z=D.next();!Z.done;Z=D.next()){var V=Z.value;if(SH$(V))R.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:V.videoEntity.videoId,title:sM(V.videoEntity.title),shortBylineText:sM(V.channelEntity.title),thumbnail:V.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:V.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.fX("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}}}});else if(z4y(V)){Z=R;var e=Z.push;var r=void 0,l=void 0,U=void 0,K=void 0,H=void 0,c=void 0,Q=void 0,E=void 0,B=V.mainPlaylistEntity.playlistId,O=V==null?void 0:(E=V.mainPlaylistEntity)==null?void 0:(Q=E.thumbnailStyleData)==null?void 0:(c=Q[0])==null?void 0:(H=c.value)==null?void 0:(K=H.collageThumbnail)==null?void 0:K.coverThumbnail;K=Q1y(B);if(!_.f("enable_offline_playlist_page")&&
(V==null?0:(U=V.mainPlaylistEntity)==null?0:U.videos)){b:{U=V==null?void 0:(l=V.mainPlaylistEntity)==null?void 0:l.videos;l=_.Dl().getState().entities;if(U!=null&&U.length&&l)for(U=_.a(U),H=U.next();!H.done;H=U.next())if(H=_.Mw(H.value).entityId,(H=JSON.parse(H).videoId)&&R4$(l,H)==="TRANSFER_STATE_COMPLETE"){l=H;break b}l=""}l!==void 0&&(K=xx(_.Dl().getState(),l),K=_.ZQ(l,B,void 0,void 0,K))}l=p6j(_.fX("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Q1y(B));V=B&&O&&l?{playlistId:B,navigationEndpoint:K,
viewPlaylistText:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O}},title:sM(V.mainPlaylistEntity.title),shortBylineText:sM(V==null?void 0:(r=V.channelEntity)==null?void 0:r.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:fJb,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:B,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.fX("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}:
void 0;e.call(Z,{gridPlaylistRenderer:V})}}M={gridRenderer:{items:R}};Y===1&&(G=Gen(t,X))}else if(Z){var Wo=_.tu((e=R==null?void 0:R.localizedPromptMessage)!=null?e:"");M={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tu(_.fX("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.yGl}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.tu(_.fX("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};G=Gen(t,X)}else Wo=_.tu(_.fX("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
M={};return{contents:[{shelfRenderer:{title:W,titleAnnotation:G,icon:{iconType:z},subtitle:Wo,content:M,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:I}]}}}}],loggingDirectives:{clientVeSpec:{uiType:F}}}};
AvU=function(D,Y,R,Z,t,X,M,W,z,I,F){R=R===void 0?{}:R;Z=Z===void 0?{}:Z;t=t===void 0?!1:t;X=X===void 0?!1:X;M=M===void 0?!1:M;W=W===void 0?!1:W;z=z===void 0?!1:z;I=I===void 0?0:I;F=F===void 0?-Infinity:F;if(!(Y.length||D.length||t||W))return X?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:QC$(R)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.tu(_.fX("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 G=[];D.length&&G.push(eel(D,0));W?G.push({contents:[{statementBannerRenderer:d_j(z,Z)}]}):t?G.push(eel(Y,1,R,M,I,F)):X&&G.push({contents:[{statementBannerRenderer:pJU(R)}]});(t&&Y.length||D.length)&&G.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.tu(_.fX("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 G.map(function(V){return{itemSectionRenderer:V}})};
lE=function(D,Y){if(typeof D!=="object")return null;D=_.a(Object.entries(D));for(var R=D.next();!R.done;R=D.next()){var Z=_.a(R.value);R=Z.next().value;Z=Z.next().value;if(R===Y)return R;if(Z=lE(Z,Y))return R+"."+Z}return null};
JR=function(D){var Y=D.content;return(D=D.styleRuns)&&Y?{runs:D.map(function(R){var Z={text:Y.slice(R.startIndex,R.startIndex+R.length)};R.fontColor&&(Z.textColor=R.fontColor);return Z})}:{simpleText:Y}};
wnn=function(D,Y,R,Z){var t=nYl;Z&&(D.quantity=Z);if(!D.quantity||!D.maxQuantity)return{};Z=D.minusButton;var X=D.plusButton,M,W,z,I;return{value:D.quantity,maxValue:D.maxQuantity,onChangeCallback:function(F){t(D,F)},
minusLabel:(M=_.A(Z,rvi))==null?void 0:M.label,minimumReachedLabel:(W=_.A(Z,rvi))==null?void 0:W.limitReachedLabel,plusLabel:(z=_.A(X,rvi))==null?void 0:z.label,maximumReachedLabel:(I=_.A(X,rvi))==null?void 0:I.limitReachedLabel,disabled:Y,onRemoveCommand:R}};
nYl=function(D,Y){var R=D.quantityIncrementerEntityKey;if(R){var Z={};Z.quantity=Y;_.cE(_.k6("quantityIncrementerEntity",R,Z));D.onChangeCommand&&_.BL(D.onChangeCommand)}};
oYj=function(D,Y){(D=$zn(D))&&(Y?vYU.push({command:D,sourceData:{},commandContext:void 0}):_.DH().resolve(_.Yw).resolveCommand(D))};
$zn=function(D){return _.A(D,_.mQ)};
bTy=function(){var D=window.performance.timeOrigin+window.performance.now(),Y=(new _.U0).setSeconds(D/1E9);return _.gb(Y,2,_.OL(D%1E9),0)};
NUb=function(D,Y){var R;D=(R=_.A(_.A(D,_.mQ),yv5))==null?void 0:R.methodName;var Z,t;(R=window.youtubewebview||((Z=window.webkit)==null?void 0:(t=Z.messageHandlers)==null?void 0:t.youtubewebview))&&D&&(Z=new K9,D=_.ew(Z,1,D),D=_.rb(D.JSC$12299_serializeBinary()),Y=_.rb(Y),R.postMessage(D+","+Y))};
hR=function(D,Y){var R=_.A(_.A(D,_.mQ),yv5);R&&(Y&&(R.serializedAdditionalMetadata=_.rb(Y)),oYj(D,!0))};
lJn=function(D){switch(D){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"}};
Jvo=function(){return!!_.JQ("ID_TOKEN")};
KlS=function(D){return D instanceof Error&&D.cause instanceof ke9&&D.cause.rpcErrorCode!==void 0?!Uz9.includes(D.cause.rpcErrorCode):!0};
Lln=function(){return _.pb(hel,{authuser:""+(_.JQ("SESSION_INDEX")||0)})};
L9=function(D,Y,R,Z){R=R===void 0?"MINI_APP_SDK_API_UNSPECIFIED":R;Z=Z===void 0?"":Z;var t=new _.AT;R={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Z,sdkApi:R};D instanceof Error&&(t.message=D.message,t.name=D.name,D.cause instanceof ke9&&D.cause.rpcErrorCode!==void 0&&(R.rpcErrorCode=D.cause.rpcErrorCode));var X;(X=Y.onError)==null||X.call(Y,{loggingError:t,metadata:R})};
q5U=function(D,Y,R,Z){switch(D){case "MINI_APP_SOURCE_GAMESNACKS":return new mu(Y,R,Z);default:return new mzU(Y,R,Z)}};
HTo=function(D){switch(D){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"}};
xzr=function(D){switch(D){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"}};
P7y=function(D){switch(D){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"}};
QGo=function(){return Math.floor(Math.random()*4)+1};
BUr=function(D,Y,R,Z){D=_.a(Object.entries(D));for(var t=D.next(),X={};!t.done;X={message$jscomp$990:void 0},t=D.next()){var M=_.a(t.value);t=M.next().value;M=M.next().value;X.message$jscomp$990=M;Y.push(setTimeout(function(W){return function(){Z(!1);R(W.message$jscomp$990.text)}}(X),X.message$jscomp$990.delayMs));
Number(t)>0&&Y.push(setTimeout(function(){Z(!0)},X.message$jscomp$990.delayMs-400))}};
pn9=function(D,Y){var R=R===void 0?BBM:R;_.f("mweb_fix_monitor_visibility_after_render")?D&&Ji(function(){gfo(D,Y,R)}):Ji(function(){gfo(D,Y,R)})};
gYo=function(D){var Y=D.data;var R=D.uniqueId;D=D.overrides;var Z,t=((Z=Y.timedAnimationData)==null?void 0:Z.animationTiming)||[];return _.S("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.S(qV,{settings:{uniqueId:R,timings:t,experimentEnabled:t.length>0,enabled:t.length>0}},EYU(Y.buttonRenderer,{buttonRenderer:{buttonOverrides:D}})))};
cvi=function(D){dzS||(dzS=iT9(new _.Q5(1,void 0,void 0,OTU),0));var Y=dzS.format(Math.floor(D));Y=_.PU==="be"||_.PU==="bg"||_.PU==="es"||_.PU==="et"||_.PU==="hu"||_.PU==="ka"||_.PU==="lv"||_.PU==="pl"||_.PU==="pt-PT"||_.PU==="sq"?Y.replace(new RegExp("^(\\d)"+OTU.GROUP_SEP.replace(".","\\.")+"(\\d+("+OTU.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):Y;return D>=1E3&&D<=9999&&Y[1]==="."&&(_.PU==="sl"||_.PU==="it")?Y.replace(".",""):Y};
Dd5=function(D,Y){z0$("ytd-button-renderer",{data:D,className:Y?Y.className:"",overrides:Y==null?void 0:Y.buttonOverrides},vM5)};
Z6U=function(D,Y,R,Z){if(D)return Z=Z||D.likeStatus,Y?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="LIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:R},defaultText:Z==="LIKE"?D.likeCountWithUnlikeText:D.likeCountText,toggledText:Z==="LIKE"?D.likeCountText:D.likeCountWithLikeText,defaultNavigationEndpoint:YIU(D,"LIKE"),defaultServiceEndpoint:Rfl(D,"LIKE"),toggledServiceEndpoint:Rfl(D,"INDIFFERENT"),defaultTooltip:_.OM(D.likeCountTooltipText),toggledTooltip:_.OM(D.likeCountTooltipText),
targetId:D.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="DISLIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:R},defaultText:Z==="DISLIKE"?D.dislikeCountWithUndislikeText:D.dislikeCountText,toggledText:Z==="DISLIKE"?D.dislikeCountText:D.dislikeCountWithDislikeText,defaultNavigationEndpoint:YIU(D,"DISLIKE"),defaultServiceEndpoint:Rfl(D,"DISLIKE"),toggledServiceEndpoint:Rfl(D,"INDIFFERENT"),defaultTooltip:_.OM(D.dislikeCountTooltipText),
toggledTooltip:_.OM(D.dislikeCountTooltipText)}};
YIU=function(D,Y){if(Y==="LIKE")return D.likeCommand;if(Y==="DISLIKE")return D.dislikeNavigationEndpoint};
Rfl=function(D,Y){var R;return(R=D.serviceEndpoints)==null?void 0:R.find(function(Z){var t;return((t=_.A(Z,_.Hl))==null?void 0:t.status)===Y})};
_.Xtb=function(D,Y,R){return window.spf&&!_.f("web_disable_spfjs_client")?tZj(D,Y,R):sWU(D,Y)};
tZj=function(D,Y,R){var Z=null,t=(new _.zz(function(X,M){var W={};if(Y){W.method=Y.method;var z=Y.postParams||{};Qby(D,Y)&&(z[_.JQ("XSRF_FIELD_NAME")]=_.JQ("XSRF_TOKEN"));W.postData=_.TZ(z);Y.type&&(W.type=Y.type);z=Y.headers}W.headers=L39(D,z);_.f("debug_forward_web_query_parameters")&&(D=_.xXl(D,window.location.search));W.experimental_headers=W.headers;W.onError=function(I){I.err&&I.xhr&&(I.err.params={url:I.xhr.responseURL,response:I.xhr.responseText.substr(0,64)});M(I.err)};
W.onPartDone=function(I){R&&R.call(null,I.part)};
W.onDone=function(I){var F=uj9(I.response,"xsrf_token");df(window.location.href,D)&&F&&_.l1("XSRF_TOKEN",F);if(F=uj9(I.response,"service_worker_killswitch"))_.l1("SERVICE_WORKER_KILLSWITCH",F),$Ll();X(I.response)};
Z=spf.request(D,W)})).then(aKb);
t.thenCatch(function(X){var M=X instanceof _.x6,W=X&&X.hasOwnProperty("params")&&X.params.response?X.params.response:"";X instanceof Error&&(W?M?vc5(X):W===')]}\'\n{"reload":"now"}'?vc5(X):(MZU(X,D,W),Czo(X,W)?_.Jk(X):_.Nb(X)):vc5(X));Z&&Z.abort()});
return t};
aKb=function(D){if(D.type==="multipart"){var Y=D.timing;D=D.parts.reduce(function(R,Z){Object.assign(R,Z);return R},{});
D.timing=D.timing||{};Object.assign(D.timing,Y);D.type="reduced"}return D};
sWU=function(D,Y){Y=Y===void 0?{}:Y;var R=null,Z=new _.zz(function(t,X){Y.onFinish=function(M){if(M.readyState===XMLHttpRequest.DONE)if(M.status===200){if(M.responseType!=="json"){var W=M.response;W.substring(0,5)===")]}'\n"&&(W=W.substring(5));try{var z=JSON.parse(W)}catch(I){z=I}}else z=M.response;z instanceof Error?X(z):(W=uj9(z,"xsrf_token"),df(window.location.href,D)&&W&&_.l1("XSRF_TOKEN",W),M=M.responseURL,window.performance&&window.performance.getEntriesByName?(W=window.performance.getEntriesByName(M).pop())?
M={responseStart:(0,_.DO)()-(W.responseEnd-W.responseStart)}:(Math.random()<.01&&(W=Error("bi"),W.params=M,_.Jk(W)),M={responseStart:-1}):M={responseStart:0},z.timing=z.timing||{},Object.assign(z.timing,M),t(z))}else X(Error("ai`"+M.status))};
(R=_.S$(D,Y))||X(Error("ai`"+R.status))});
Z.thenCatch(function(t){t instanceof Error&&(MZU(t,D),Czo(t)&&(t.level="WARNING"))});
_.f("cancel_pending_navs")&&Z.thenCatch(function(){R.abort()});
return Z};
uj9=function(D,Y){var R=D[Y],Z=D.parts;D.type==="multipart"&&Z&&(R=(D=Z.find(function(t){return Y in t}))&&D[Y]);
return R};
MZU=function(D,Y,R){var Z=D.message||"";Y={original:Z,url:Y};if(R)if(Z=Z.match(/position:?\s*(\d+)/)){Z=Z&&Number(Z[1])?Number(Z[1]):0;var t=Math.max(Z-25,0);Y.position=Z;Y.response=R.substring(t,Z+25)}else Y.response=R.substring(0,50);_.kN(D,Y);try{D.message="JSON parse error"}catch(X){}};
Czo=function(D,Y){D=D.message||"";D=!!(D.indexOf("<")>=0||D.indexOf("end of ")>=0||D.indexOf("Unterminated string")>=0||D.indexOf("Unexpected EOF"));if(!D&&Y)for(var R=Y.length,Z=!1,t=0;t<R;t++)if(Z&&Y[t]==="\\")t++;else if(Y[t]==='"')Z=!Z;else if(Y[t]==="<"&&!Z){D=!0;break}return D};
Wq9=function(){return document.documentElement.hasAttribute("dark")};
_.zfS=function(D,Y){if(D!=="GFEEDBACK"&&D!=="GUIDED_HELP")_.hQ(Error("ci`"+D));else{var R=_.DH().resolve(_.cD(_.Z4));if(R&&(R=R.getCurrentPage())&&R.getServiceTrackingParams&&(R=R.getServiceTrackingParams()))for(var Z=0,t;t=R[Z++];)if(t.service===D){if(D=t.params)for(R=0;Z=D[R++];)Y[Z.key]=Z.value;break}}};
_.SIo=function(D){var Y=_.sm();Y&&(Y=Y.getPlayer())&&(Y.pauseVideo(),D.playback_id=Y.getVideoData().cpn,D.eid=Y.getVideoData().eventId,Object.assign(D,Y.getFeedbackProductData()))};
T8i=function(){var D={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.JQ("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(D.enableAnonymousFeedback=!0);_.JQ("SESSION_INDEX")&&(D.authuser=String(_.JQ("SESSION_INDEX")));_.f("enable_pageid_for_feedback")&&_.JQ("DELEGATED_SESSION_ID")&&(D.pageId=String(_.JQ("DELEGATED_SESSION_ID")));return D};
_.Pl=function(D){_.f("enable_ypc_spinners")&&_.CX(D,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},D])};
_.Q_=function(D){_.f("enable_ypc_spinners")&&_.CX(D,"yt-close-popup-action",["yt-loading-renderer"])};
jW5=function(D){return new Promise(function(Y,R){_.xC({verifyCommand:{recaptchaToken:D.recaptchaResponse}},{commandController:{onSuccess:function(Z,t){t||R("ChallengeService did not return a response.");var X;Y({challengeCompleted:(X=t.verified)!=null?X:!1})},
onServerError:function(Z,t){R(t)}}})})};
IKn=function(D,Y,R,Z){Y({recaptchaResponse:Z}).then(function(t){t.challengeCompleted?_.Vf()?(R(3),_.DH().resolve(_.Yw).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:D}})):R(2):R(4)},function(){R(4)})};
GOU=function(D,Y,R){_.PO(_.tZ(Fqj,_.JQ("HL")),function(){var Z;(Z=window.grecaptcha)==null||Z.ready(function(){var t=window.grecaptcha;t?(R(t.render(D,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:IKn.bind(null,D,jW5,Y)})),Y(1)):Y(4)})})};
VZS=function(D,Y){return function(){switch(Y()){case 0:return D().captchaLoadingMessage;case 1:return D().challengeReason;case 3:return D().captchaSuccessfulMessage;case 2:return D().captchaCookieSetFailureMessage;case 4:return D().captchaFailedMessage;default:return D().challengeReason}}()};
_.Bl=function(){if(!fK$){var D=document.querySelector("#player.skeleton");D&&(_.F_(D),fK$=!0)}};
_.AOj=function(){return efS=$DU()};
wtU=function(){return _.C(function(D){return npn!==void 0?D.return():D.yield(rOi(),0)})};
rOi=function(){return _.C(function(D){if(D.nextAddress==1)return D.yield(o$b(),2);efS=D.yieldResult;npn=_.yc.addLowPriorityJob(rOi,5E3);_.V9(D)})};
N8o=function(D){var Y=Y===void 0?$dn:Y;var R,Z,t=(R=D.responseContext)==null?void 0:(Z=R.mainAppWebResponseContext)==null?void 0:Z.trackingParam;if(!t){Y.increment("MISSING");var X,M,W,z,I,F;_.Jk(new _.AT("282054944_a",{npK:!!((X=D.responseContext)==null?0:(M=X.mainAppWebResponseContext)==null?0:M.loggedOut),fKI:((W=D.responseContext)==null?void 0:W.mainAppWebResponseContext)===void 0,nT0:D.responseContext===void 0,cp:(z=D.playabilityStatus)==null?void 0:z.contextParams,j7y:(((I=D.streamingData)==
null?void 0:I.formats)||[]).length>0,yIF:(((F=D.streamingData)==null?void 0:F.adaptiveFormats)||[]).length>0,os:!!D.offlineState,cotn:D.cotn}));return 2}R="";try{R=vpU(t)}catch(e){return Y.increment("C_ERROR"),_.Nb(e),2}try{var G=_.opb(R);var V=b6o(G)}catch(e){return Y.increment("P_ERROR"),_.Nb(e),2}V=_.Yh(V,yOo,1,_.R0());t=[];V=_.a(V);for(G=V.next();!G.done;G=V.next())Z=G.value,G=Z.getPath(),R=(0,_.y7.getValueByKeys)(D,G.split(".")),R=String(R===void 0||R===null?"":R),Z=Z.getValue()||"",X=/[+\-\/_]/g,
R.replace(X,"")!==Z.replace(X,"")&&(Y.increment("MISMATCH"),_.f("ab_mis_log_err")&&(R=new _.AT("282054944_p",{rv2:G,g:String(R),e:String(Z)}),_.Nb(R)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(G)||(G.match(/enforcementMessageViewModel/i)?t.push(3):t.push(2)));if(t.length>0)return Math.max.apply(Math,_.oK(t));Y.increment("SUCCESS");return 1};
kO$=function(D){var Y=new p9;if(D.interpreterJavascript){var R=_.fho(D.interpreterJavascript);R=sKS(R).toString();var Z=new lKr;_.ew(Z,6,R);_.To(Y,1,Z,bU)}else D.interpreterUrl&&(R=_.Ns(D.interpreterUrl),R=_.n$(R).toString(),Z=new _.JOy,_.ew(Z,4,R),_.To(Y,2,Z,bU));D.interpreterHash&&_.E0(Y,3,D.interpreterHash,bU);D.program&&_.E0(Y,4,D.program,bU);D.globalName&&_.E0(Y,5,D.globalName,bU);D.clientExperimentsStateBlob&&_.E0(Y,7,D.clientExperimentsStateBlob,bU);return Y};
gK=function(D){var Y={};D=_.a(D.split("&"));for(var R=D.next();!R.done;R=D.next())R=R.value.split("="),R.length===2&&(Y[R[0]]=R[1]);return Y};
Udl=function(D){return Number(D.t)||7200};
vsU=function(){if(_.f("bg_st_hr"))return"havuokmhhs-0";var D,Y=((D=performance)==null?void 0:D.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Y)};
Kqr=function(){return new Promise(function(D){var Y=window;Y.ntpevasrs!==void 0?D(new dK(Y.ntpevasrs)):(Y.ntpqfbel===void 0&&(Y.ntpqfbel=[]),Y.ntpqfbel.push(function(R){D(new dK(R))}))})};
hfl=function(D){var Y=D.xlU.bind(D);_.ix("yt.aba.att",Y);D=D.lsN.bind(D);_.ix("yt.aba.att2",D)};
mdy=function(D){switch(_.zZ(D.input)){case _.YI(Lql):var Y={};return Y.encryptedVideoId=D.innerTubeRequest.externalVideoId,Y}return{}};
xdi=function(D){switch(_.zZ(D.input)){case _.YI(Lql):if(_.f("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.YI(qIy):if(_.f("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.YI(iE):if(_.f("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&D.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.YI(H6M):var Y,R;if(_.f("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((R=_.A((Y=D.config)==null?void 0:Y.command,l5b))==null?0:R.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.QWj=function(D){var Y;if(D.playlistVideoRenderer&&((Y=D.playlistVideoRenderer)==null?0:Y.engagementBar))return Pz5(D.playlistVideoRenderer.engagementBar);if(_.A(D,O0)){var R;if(D=(R=_.A(D,O0))==null?void 0:R.engagementBar)return Pz5(D)}return""};
Pz5=function(D){if(!D)return"";D=_.A(D,_.B8$);if(D==null||!D.actions)return"";D=_.a(D.actions);for(D=D.next();!D.done;D=D.next()){D=_.A(D.value,_.ptn);var Y=void 0;if((Y=D)==null||!Y.itemId)break;return D.itemId}return""};
_.Epj=function(D){var Y;if(D.playlistVideoRenderer&&((Y=D.playlistVideoRenderer)==null?0:Y.videoId))return D.playlistVideoRenderer.videoId;if(_.A(D,O0)){var R,Z;if(D=(R=_.A(D,O0))==null?void 0:(Z=R.playlistItemData)==null?void 0:Z.videoId)return D}return""};
_.gpy=function(D){var Y;if(D.playlistVideoRenderer&&((Y=D.playlistVideoRenderer)==null?0:Y.voteCount))return D.playlistVideoRenderer.voteCount;if(_.A(D,O0)){var R,Z;if(D=(R=_.A(D,O0))==null?void 0:(Z=R.playlistItemData)==null?void 0:Z.voteCount)return D}return 0};
_.cl=function(D,Y){return _.jC(D.entities,"flowStateEntity",Y)};
i6i=function(D,Y,R,Z){var t=void 0;D=_.a(D[Y.iconName]||[]);for(var X=D.next();!X.done;X=D.next()){X=X.value;var M=Y.iconSize;var W=Y.iconStyle;M=!M||M===X[2];var z=dd5[X[0]];Z&&Z!==X[1]||!M||W&&W!==z?W=!1:t?(W=dd5[X[0]],W=!!Y.iconStyle||W==="youtube_outline",M=t.version<=X[1],W=(!!Y.iconSize||X[2]===24)&&W&&M):W=!0;W&&(t={name:Y.iconName,style:dd5[X[0]],size:X[2],version:X[1],allowMirroring:!!X[3],url:R(Y.iconName,X)})}return t};
O69=function(D,Y,R,Z){return D+(""+dd5[R[0]]+((Z===void 0?0:Z)?"_experimental":"")+"/"+Y+"/v"+R[1]+"/")+(R[2]+"px.svg")};
cOy=function(D){return _.JQ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":D};
D5b=function(D,Y){return O69("https://fonts.gstatic.com/s/i/",D,Y)};
Ysj=function(D,Y){return O69("https://fonts.gstatic.com/s/i/",D,Y,!0)};
R_j=function(D,Y){return O69("https://www.gstatic.com/youtube/img/icons/web/",D,Y)};
tuU=function(D){var Y=D.enabled;var R=D.itemPlaybackModel;var Z=D.thumbnailElRef;var t=D.containerElRef;var X=D.options;var M;_.r2(function(){var W=t==null?void 0:t.value;var z,I=(z=Z())==null?void 0:z.value;z=R();var F=X();if(Y&&z&&W&&I&&(F==null?0:F.thumbnail)){var G={data:z,hostElement:W},V,e,r=_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover")?[].concat(_.oK((V=F.thumbnailOverlays)!=null?V:[]),_.oK((e=z.overlays)!=null?e:[])):F.thumbnailOverlays||[],l,U;W={mediaRenderer:G,
lockupElement:W,thumbnailElement:I,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.HL((l=z.inlinePlayerData)==null?void 0:l.onVisible),navigationEndpoint:_.HL((U=z.inlinePlayerData)==null?void 0:U.onSelect),thumbnail:F.thumbnail,thumbnailOverlays:r,accessibilityText:F.accessibilityText||""},thumbnailSize:F.thumbnailSize,enableRounding:F.enableRounding}}}else W=void 0;if(l=W){var K;(K=M)==null||DF(K);M=xc(l);var H,c;((H=R())==null?0:(c=H.inlinePlayerData)==null?0:c.forceImpAutoplay)&&
Z5l(M)}},"B33dEc");
_.w2(function(){var W;(W=M)==null||DF(W)})};
sNo=function(D){D=atob(D);for(var Y=[],R=0;R<D.length;R++)Y.push(D.charCodeAt(R));return new Blob([new Uint8Array(Y)],{type:"image/png"})};
uVr=function(D,Y,R,Z){Z=Z===void 0?"INSERTION_POSITION_UNSPECIFIED":Z;return D({targetId:Y},function(t){var X,M=(X=t.contents)!=null?X:[];X=R!=null?R:[];var W=X2r(M);switch(Z){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},t,{contents:[].concat(_.oK(M.slice(0,W)),_.oK(X),_.oK(M.slice(W+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},t,{contents:[].concat(_.oK(X),_.oK(M))});case "INSERTION_POSITION_LAST":return Object.assign({},t,{contents:[].concat(_.oK(M),_.oK(X))});
default:return t}})};
Mul=function(D,Y,R,Z,t){t=t===void 0?"RELATIVE_INSERTION_POSITION_AFTER":t;return D({targetId:Y},function(X){var M,W=(M=X.contents)!=null?M:[];M=aR5(W,R);if(M<0)return X;M=t==="RELATIVE_INSERTION_POSITION_BEFORE"?M:M+1;return Object.assign({},X,{contents:[].concat(_.oK(W.slice(0,M)),_.oK(Z),_.oK(W.slice(M)))})})};
X2r=function(D){var Y=D.findIndex(function(R){return _.A(R,_.Y5)});
return Y>=0?Y:D.length};
aR5=function(D,Y){return D.findIndex(function(R){a:{R=_.a(Object.values(R));for(var Z=R.next();!Z.done;Z=R.next())if((Z=Z.value)&&Z.targetId){R=Z.targetId;break a}R=""}return R===Y})};
Wxi=function(D,Y,R){return D({targetId:Y},function(Z){var t,X=(t=Z.contents)!=null?t:[];return Object.assign({},Z,{contents:CdU(X,R)})})};
CdU=function(D,Y){return D.filter(function(R){var Z=Y.includes;a:{R=_.a(Object.values(R));for(var t=R.next();!t.done;t=R.next())if((t=t.value)&&t.targetId){R=t.targetId;break a}R=""}return!Z.call(Y,R||"")})};
_.z_M=function(D,Y){return{engagementPanelSectionListRenderer:{panelIdentifier:D,identifier:Y,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Sso=function(D,Y){D=D.getAvailableAudioTracks();if(D.length)return D==null?void 0:D.find(function(R){var Z;return(R==null?void 0:(Z=R.getLanguageInfo())==null?void 0:Z.getId())===Y})};
_.jNU=function(D){var Y,R=(Y=D.getOption("captions","tracklist",{includeAsr:!0}))!=null?Y:[];return R=TWn(R,D)};
IRU=function(D){return D.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
TWn=function(D,Y){Y=IRU(Y);if(Y==null||!Y.length)return D;var R=Y.filter(function(M){return M});
Y=D.filter(function(M){return M.languageCode.startsWith("en")});
R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Y.length){var t=Y[0],X=Object.assign({},t);t.languageCode!==Z.languageCode&&(X.displayName=t.languageName+" >> "+Z.languageName,X.translationLanguage=Z,D.push(X))}return D};
FxU=function(D,Y,R){D=_.jNU(D);if(D.length)return R?D.find(function(Z){if(typeof(Z==null?void 0:Z.translationLanguage)==="object"){var t;return((t=Z.translationLanguage)==null?void 0:t.languageCode)===Y}return!1}):D==null?void 0:D.find(function(Z){return Z.languageCode===Y})};
G45=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
VuU=function(D){var Y=D.getAvailableAudioTracks();if(Y!=null&&Y.length){var R=D.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.oK(Y.map(function(Z){return{listItemViewModel:{title:{content:Z.getLanguageInfo().getName()},isSelected:Z.getLanguageInfo().getId()===(R==null?void 0:R.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:Z.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
fRn=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
e_y=function(D){var Y=fRn(D);if(Y==null?0:Y.length)return Y;D.loadModule("captions");return fRn(D)};
ADl=function(D){var Y=D.getOption("captions","track");if(Y)return Y;D.loadModule("captions");return D.getOption("captions","track")};
rDo=function(D){var Y=e_y(D);if(Y!=null&&Y.length){var R=ADl(D),Z;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.fX("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(R==null?0:R.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.oK(Y.map(function(t){return{listItemViewModel:{title:{content:t.displayName},
isSelected:t.displayName===(R==null?void 0:R.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:t.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.fX("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!R.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!R.translationLanguage&&{selectionText:{content:(R==null?void 0:(Z=R.translationLanguage)==null?void 0:Z.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[n1o(D)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
n1o=function(D){var Y=IRU(D);if(Y==null||!Y.length)throw Error("Bi");var R=ADl(D);D=Y.filter(function(Z){return!Z.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.oK(D.map(function(Z){var t;return{listItemViewModel:{title:{content:Z.languageName},isSelected:Z.languageName===(R==null?void 0:(t=R.translationLanguage)==null?void 0:t.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
o1U=function(D){return new Promise(function(Y,R){if(D===void 0)_.Nb(Error("Fi"),"ERROR"),R(Error("Fi"));else{R=new _.w2n;var Z=_.$5r();R=R.init();var t=_.v15(_.JQ("YPC_MB_URL"),!0);Promise.all([R,t]).then(function(){var X=payments.business.integration.ClientTokenFactory.createClientToken(D,Z);Y(X)})}})};
NWi=function(D,Y,R,Z,t,X,M){var W=_.iq();R=R.replace(/-/g,"+").replace(/_/g,"/");var z=_.nX().get("hl"),I=_.Ra(_.iX),F=Y==null?void 0:Y.element;F&&_.Pl(F);b5M(Y,!0);_.yDM(I,R,W.resolve,function(){F&&_.Q_(F)},function(G){F&&_.Q_(F);
W.reject(G)},z,Z?function(G){Z&&_.d1(D,Z,{backend_analytics:G})}:void 0,W.resolve,t,X,M);
return W.promise};
b5M=function(D,Y){!(D=D==null?void 0:D.element)||D.tagName!=="YT-BUTTON-RENDERER"&&D.tagName!=="YTD-BUTTON-RENDERER"||(D.disabled=Y)};
lRl=function(){var D=_.fX("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.tu(D),actionButton:{buttonRenderer:HQy()}}},popupType:"TOAST"}};
JDb=function(){var D=_.fX("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.tu(D),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
k4n=function(D){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:D}]}}};
ZF=function(D,Y,R,Z){var t;return _.C(function(X){if(X.nextAddress==1)return _.SX(X,2),X.yield(D,4);if(X.nextAddress!=2)return(t=_.$x(Y.getState().entities).length>0)?X.return({title:_.tu(_.fX("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.tu(_.fX("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:qab()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
X.return(x_l(R,Z));_.Gl(X);return X.return(x_l(R,Z))})};
U5o=function(D,Y){return Y?Y==="PPSV"||sir(D,Y):!1};
Kxb=function(D){D.responseContext||(D.responseContext={});D.responseContext.maxAgeSeconds=0;return D};
sR=function(D){var Y;return _.C(function(R){return R.nextAddress==1?R.yield(h_9(D,"service:topbar:fallback"),2):(Y=R.yieldResult)&&_.tn(Y)?R.return(Kxb(_.tn(Y))):R.return()})};
Lx$=function(D){var Y;return _.C(function(R){return R.nextAddress==1?R.yield(h_9(D,"service:downloads_settings:fallback"),2):(Y=R.yieldResult)&&_.tn(Y)?R.return(Y):R.return()})};
h_9=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1)return D?Z.yield(D.get(Y),2):Z.return();R=Z.yieldResult;return!R||!_.tn(R)||!isNaN(Number(R.data.expireTimestampMs))&&R.isExpired()?Z.return():Z.return(R)})};
m5U=function(D){var Y=_.DH().resolve(Xc).getState().entities;return D.playlistId?U5o(Y,D.playlistId):!1};
qsb=function(D,Y){var R;if(Y==null?0:(R=Y.requestTemplate)==null?0:R.panelId)D.panelId=Y.requestTemplate.panelId;var Z;if(Y==null?0:(Z=Y.requestTemplate)==null?0:Z.params)D.params=Y.requestTemplate.params};
x5r=function(){if(H59)return H59();var D=!_.f("idb_response_store_auth_killswitch"),Y={};H59=cr("yt-it-response-store",{objectStores:(Y.ResponseStore={addedAtVersion:1},Y),shared:!D,upgrade:function(R,Z){Z(1)&&(R=hP(R,"ResponseStore",{keyPath:["key","clientName"]}),Lq(R,"byExpiration","expireTimestampMs"),Lq(R,"byInterface","clientName"))},
version:1});return H59()};
Pdo=function(D){return _.Qf(x5r(),D)};
BWU=function(D,Y){var R;return _.C(function(Z){return Z.nextAddress==1?Z.yield(_.OK(),2):(R=Z.yieldResult)?Z.return(new QNl(D,Y,R)):Z.return()})};
p2U=function(D){var Y=Object.keys(D)[0];if(Y)return D.screenExit&&(Y=Y+";"+D.screenExit.screen),Y};
E1U=function(D){var Y=new Map;D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,R!=null&&(Y.has(R.taskType)||Y.set(R.taskType,[]),Y.get(R.taskType).push(R));return Y};
g1U=function(D){return!isNaN(D)&&D>0};
d5y=function(D){D=[].concat(_.oK(D)).sort(function(R,Z){return R-Z});
var Y=Math.floor(D.length/2);return D.length%2?D[Y]:(D[Y-1]+D[Y])/2};
cDy=function(D,Y){D=D===void 0?zFS:D;Y=Y===void 0?{}:Y;_.ix("yt.logging.errors.log",_.Nb);CIo();i5i(Fpi(),Y);window.onerror=D;O5M=Wp9;window.addEventListener("unhandledrejection",function(R){if(R.reason instanceof Error){var Z=R.reason;_.kN(Z,{source:"unhandledrejection"});Z.name==="AbortError"&&(Z.level="WARNING")}Wp9(R.reason);R.preventDefault()})};
_.DMr=function(D){return D.a11y.ephemeralAction||null};
_.Yly=function(D){var Y,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O,Wo,Sb,VU,AS,nM,Ho,KM,Xb,kE,SD,co,GE,TE,yV,vu,dz,sy;return _.C(function(D_){if(D_.nextAddress==1)return D_.yield(_.eC(D,{mode:"readonly",enableRetries:!0},function(fL){return Au(fL,"playbackData").then(function(zT){var eD=zT.map(function(az){return az.transfer}).filter(function(az){return!!az}),YK=zT.map(function(az){return az.offlineVideoPolicy}).filter(function(az){return!!az}),RK=zT.filter(function(az){return!!az.key}).map(function(az){return _.TL(_.Mw(az.key).entityId,
"downloadStatusEntity")});
eD=Au(fL,"transfer",eD);YK=Au(fL,"offlineVideoPolicy",YK);RK=Au(fL,"downloadStatusEntity",RK);var Dp=eD.then(function(az){az=az.reduce(function(EL,FE){(FE==null?0:FE.offlineVideoStreams)&&EL.push.apply(EL,_.oK(FE.offlineVideoStreams));return EL},[]).filter(function(EL){return!!EL});
return Au(fL,"offlineVideoStreams",az)});
return hT.all([eD,YK,Dp,RK]).then(function(az){var EL=_.a(az);az=EL.next().value;var FE=EL.next().value;var v4=EL.next().value;EL=EL.next().value;return[zT,az,FE,v4,EL]})})}),2);
if(D_.nextAddress!=3)return Y=D_.yieldResult,D_.yield(_.eC(D,{mode:"readonly",enableRetries:!0},function(fL){return Au(fL,"mainDownloadsListEntity").then(function(zT){var eD,YK;return(YK=(eD=zT[0])==null?void 0:eD.downloads)!=null?YK:[]})}),3);
R=D_.yieldResult;Z=_.a(Y);t=Z.next().value;X=Z.next().value;M=Z.next().value;W=Z.next().value;z=Z.next().value;I=t;F=X;G=M;V=W;e=z;r={};l={};U={};K={};H={};c=[];Q=_.a(F);for(E=Q.next();!E.done;E=Q.next())(B=E.value)&&(r[B.key]=B);O=_.a(G);for(Wo=O.next();!Wo.done;Wo=O.next())(Sb=Wo.value)&&(l[Sb.key]=Sb);VU=_.a(e);for(AS=VU.next();!AS.done;AS=VU.next())(nM=AS.value)&&(U[nM.key]=nM);Ho=_.a(V);for(KM=Ho.next();!KM.done;KM=Ho.next())(Xb=KM.value)&&(K[Xb.key]=Xb);kE=_.a(R);for(SD=kE.next();!SD.done;SD=
kE.next())co=SD.value,GE=void 0,H[(GE=co.videoItem)!=null?GE:""]=!0,co.videoItem&&(yV=TE=void 0,vu=(yV=(TE=_.Mw(co.videoItem))==null?void 0:TE.entityId)!=null?yV:"",c.push({externalVideoId:vu}));dz=I.filter(function(fL){if(!fL||!fL.key||!fL.offlineVideoPolicy)return!1;fL=_.Mw(fL.key).entityId;fL=_.TL(fL,"downloadStatusEntity");var zT;return!(fL&&((zT=U[fL])==null?void 0:zT.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
sy=dz.map(function(fL){var zT=r[fL.transfer],eD=[];if(zT==null?0:zT.offlineVideoStreams)for(var YK=_.a(zT.offlineVideoStreams),RK=YK.next();!RK.done;RK=YK.next())(RK=K[RK.value])&&eD.push(RK);YK=l[fL.offlineVideoPolicy];RK=H;var Dp=fL==null?void 0:fL.playerResponseTimestamp,az=_.Mw(YK.key).entityId;fL=_.TL(az,"mainVideoEntity");if(YK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var EL="OFFLINE_VIDEO_STATE_DISABLED";YK.expirationTimestamp&&Number(YK.expirationTimestamp)<Date.now()/1E3&&(EL="OFFLINE_VIDEO_STATE_EXPIRED")}else if(YK.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")EL="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(zT==null?void 0:zT.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":EL="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":EL="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":EL="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":EL="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":EL="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":EL="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:EL="OFFLINE_VIDEO_STATE_UNKNOWN"}if(EL==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(zT==null?void 0:zT.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":EL="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":EL="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":EL=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}az={id:az,videoState:EL};if(zT==null?0:zT.cotn)az.cotn=zT.cotn;if(zT==null?0:zT.maximumDownloadQuality)az.selectedVideoQuality=zT==null?void 0:zT.maximumDownloadQuality;if(zT==null?0:zT.lastProgressTimeMs)az.lastProgressTimeMs=zT.lastProgressTimeMs;Dp&&(az.playerResponseSavedTimeMs=String(Number(Dp)*1E3));zT=String;Dp=0;eD=_.a(eD);for(EL=eD.next();!EL.done;EL=eD.next())if(EL=EL.value,EL.streamsProgress){EL=_.a(EL.streamsProgress);for(var FE=EL.next();!FE.done;FE=
EL.next()){var v4=void 0;Dp+=Number((v4=FE.value.numBytesDownloaded)!=null?v4:0)}}az.downloadedBytes=zT(Dp);az.selectedOfflineMode=RK[fL]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";YK.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(az.offlinePlaybackDisabledReason=YK.offlinePlaybackDisabledReason);return az});
return D_.return({offlineVideos:sy,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:c}}})})};
R69=function(){var D;return _.C(function(Y){return Y.nextAddress==1?Y.yield(_.GL(),2):(D=Y.yieldResult)?Y.return(_.Yly(D)):Y.return({state:"PES Unavailable"})})};
sMn=function(){var D,Y,R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(_.GL(),2);if(t.nextAddress!=3)return(D=t.yieldResult)?t.yield(ZUr(D),3):t.return({state:"PES Unavailable"});Y=t.yieldResult;R={};Z=Y.reduce(function(X,M){X[M.key]=M;return X},R);
return t.return(tSn(Z))})};
tSn=function(D){for(var Y={},R=[],Z=_.a(Object.keys(D)),t=Z.next();!t.done;t=Z.next()){var X=t.value;t=D[X];var M=void 0;if(((M=t)==null?void 0:M.entityType)==="mainVideoEntity"){delete D[X];var W=t.data;t={};if(W){var z=void 0;M=(z=W.videoId)!=null?z:"vid-"+X;X=D;t.video=W;delete t.video.formattedDescription;delete t.video.thumbnail;W.owner&&(z=X[W.owner],z==null?0:z.data)&&(delete X[z.key],t.video.owner=z.data,delete t.video.owner.avatar);if(W=W.downloadState)if(z=X[W],z==null?0:z.data)if(delete X[W],
W=z.data.playbackData)if(z=X[W],z!=null&&z.data){delete X[W];W=z.data;delete W.playerResponseJson;t.playbackData=W;if(W.transfer&&(z=X[W.transfer],z==null?0:z.data)){delete X[z.key];var I=z.data;t.transfer=I;z=[];I=_.a(I.offlineVideoStreams||[]);for(var F=I.next();!F.done;F=I.next())if(F=X[F.value])delete X[F.key],z.push(F.data);z&&(t.streams=z)}(W=W.offlineVideoPolicy)&&(W=X[W])&&W.data&&(delete X[W.key],t.offlineVideoPolicy=W.data)}Y[M]=t}}else t&&t.entityType==="offlineOrchestrationActionWrapperEntity"&&
t.data&&(delete D[t.key],M=t.data,X=void 0,R.push({id:M.rootActionId,type:((X=M.actionProto)==null?void 0:X.actionType)||"",entity:t}))}Y.wrapperEntities=R;Object.keys(D).length>0&&(Y.unknownKeys=D);return Y};
X$n=function(){var D,Y,R,Z,t,X,M,W,z;return _.C(function(I){if(I.nextAddress==1)return D=!!(new _.U1("")).expiringStorage_,Z=!!((Y=_.ZU.crypto)==null?0:(R=Y.subtle)==null?0:R.importKey),t=!!_.ZU.BroadcastChannel,X=!!_.ZU.navigator.locks,I.yield(P0M(),2);M=I.yieldResult;W=D&&Z&&t&&X&&M;z={isSupported:W};if(W)return I.return(z);z.missingBrowserFeatures=[];M||z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");D||z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Z||z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");t||z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");X||z.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return I.return(z)})};
umM=function(){var D;return!((D=u$?u$:null)==null||!D.window)};
_.MSj=function(D){if(_.vo()&&_.Try("Chromium")>=120){var Y=_.ajj().mediaSession;try{Y.setActionHandler("enterpictureinpicture",function(){D()})}catch(R){}}};
CrU=function(D){for(var Y=[],R=_.a(document.styleSheets),Z=R.next(),t={};!Z.done;t={node$jscomp$727:void 0},Z=R.next())t.node$jscomp$727=Z.value.ownerNode,t.node$jscomp$727&&(t.node$jscomp$727 instanceof HTMLStyleElement||t.node$jscomp$727 instanceof HTMLLinkElement)&&Y.push(new Promise(function(X){return function(M){var W=X.node$jscomp$727.cloneNode(!0);W.onload=function(){M()};
W.onerror=function(){_.Jk(Error("hj"));M()};
D.document.head.appendChild(W)}}(t)));
return Promise.all(Y)};
fji=function(D){var Y=[_.RI(WAU),_.RI(z6y),_.RI(Slj)];TVi(window.document.documentElement,D.document.documentElement,[_.RI(jMi),_.RI(IjS),_.RI(FAy),_.RI(G8i),_.RI(VSi)]);TVi(window.document.body,D.document.body,Y)};
TVi=function(D,Y,R){D=_.a(D.attributes);for(var Z=D.next();!Z.done;Z=D.next())if(Z=Z.value)try{_.ON(R,Y,Z.name,Z.value)}catch(t){}};
AJS=function(D,Y){D=new _.aa(D.document.documentElement);D.start(e6$,Y);return D};
nH9=function(D){var Y=D.document.documentElement;Y.addEventListener("click",function(R){fgo(Y,R)});
Y.addEventListener("touchstart",function(R){wIU(R)});
Y.addEventListener("mousedown",function(R){wIU(R)})};
w$U=function(D,Y,R,Z){Z=Z===void 0?!1:Z;Y=new rJU(Y||D,R||D);return{x:D.x+((Z===void 0?0:Z)?Y.lengthX*-1:Y.lengthX)*.2,y:D.y+((Z===void 0?0:Z)?Y.lengthY*-1:Y.lengthY)*.2}};
$MU=function(D){if(!D)return!1;var Y=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",R,Z,t,X=(t=(R=D.errorScreen)==null?void 0:R.playerLegacyDesktopYpcTrailerRenderer)!=null?t:(Z=D.errorScreen)==null?void 0:Z.ypcTrailerRenderer;return!!Y||!!X};
_.vHU=function(D,Y){if(!D)return!1;var R,Z=(R=D.errorScreen)==null?void 0:R.playerLegacyDesktopYpcOfferRenderer,t;Y=!!(Y==null?0:(t=Y.playerOverlayRenderer)==null?0:t.gatedActionsOverlayRenderer);return!!$MU(D)||!!Z||!!Y};
yJ5=function(D){return oHo(D,0,"gclid",D.search(bUb))>=0||oHo(D,0,"gad_source",D.search(bUb))>=0};
NVU=function(D){var Y=[],R=0;return{clear:function(){R=Y.length=0},
push:function(Z){Y[R]=Z;R=(R+1)%D},
iterate:function(){return function t(){var X,M,W,z;return _.Mi(t,function(I){switch(I.nextAddress){case 1:_.IK(I,2),X=Y.length,M=0;case 4:if(!(M<X)){I.jumpTo(2);break}W=R+M;z=_.Co;return I.yield(Y[W%X],7);case 7:z(I.yieldResult);M++;I.jumpTo(4);break;case 2:_.jX(I),_.Fx(I,0)}})}()}}};
lji=function(D){D.eventsToIgnore||(D.eventsToIgnore=[]);var Y=D.eventsToIgnore.map(bdU),R=new Set(Y),Z=NVU(D.bufferSize);return{flush:function(){var t=Array.from(Z.iterate());Z.clear();t=t.map(function(X){return{name:X.name,timestamp:X.startTime,attributes:X.attributes}});
return JSON.stringify(t)},
onSpanStart:function(t){t.name==="event"&&R.has(t.attributes.type)||Z.push(t)}}};
JJU=function(D){D=lji(D);var Y=D.flush;UK9({onSpanStart:D.onSpanStart});Axb.subscribe("handleError",function(R){try{R.params.breadcrumbs=Y()}catch(Z){_.Nb(Z,"WARNING")}})};
k8$=function(D,Y,R){var Z=D.endTime;if(Z==null)throw Error("jj");var t=D.name,X={};Z-=D.startTime;var M=D.startTime;X={webTracing:(X[t]=D.attributes,X)};R=_.Lb(gLo)(t,Z,M,X,R,Y);if(D.children)for(D=_.a(D.children),t=D.next();!t.done;t=D.next())k8$(t.value,Y,R)};
h69=function(){for(var D=W9o.value,Y={},R=_.a(D.enabledSpansArray),Z=R.next();!Z.done;Z=R.next())Y[Z.value]=!0;(D.exportToCsi||D.exportBreadcrumbs)&&J2y({sessionId:j69(),enabledSpans:Y});D.exportBreadcrumbs&&JJU({eventsToIgnore:UMy,bufferSize:D.bufferSize});D.exportToCsi&&UK9(KA$);if(D.exportToDevTools){var t=[];UK9({onSpanEnd:function(X){t.push(X)===1&&setTimeout(function(){var M=t.map(Kan);t.length=0;window.postMessage({type:"telemetry",spans:M},"*")},1E3)}})}};
LAo=function(D){return new Promise(function(Y){window.setTimeout(Y,D)})};
mMS=function(D){var Y={bicf:function(X){D.i9y=X},
blc:function(){return D.getLatestChallengeResponse()},
bcr:function(X){D.gqf.push(X)}},R=window;
R.ntpevasrs=Y;if(R.ntpqfbel!==void 0)for(var Z=_.a(R.ntpqfbel),t=Z.next();!t.done;t=Z.next())t=t.value,t(Y);R.ntpqfbel=void 0};
qli=function(D){return _.C(function(Y){if(Y.nextAddress==1)return _.SX(Y,2),Y.yield(D.ybs(),4);if(Y.nextAddress!=2)return _.xw(Y,0);_.Gl(Y);_.V9(Y)})};
HUS=function(D){var Y,R;(Y=D.ytcsi)==null||(R=Y.tick)==null||R.call(Y,"pot_ist")};
xMb=function(D){if(D instanceof Error){var Y=_.mf("yt.logging.errors.log");Y&&Y(D,"WARNING")}};
PrS=function(D){try{var Y=JSON.parse(D);if(Y.bgChallenge)return Y}catch(R){}};
BVb=function(){var D=window,Y={networkStatusManagerPromise:_.DH().resolve(new v8o(_.xQ)),initialChallengeSli:_.f("wpo_att_sli")?new _.kSU("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};D=D===void 0?window:D;var R=D.ytAtR,Z;Y==null||(Z=Y.initialChallengeSli)==null||_.Wf(Z);if(R){if(R=PrS(R)){var t;Y==null||(t=Y.initialChallengeSli)==null||_.z3(t,"SUCCESS");QMb(R,Y)}D.ytAtR=void 0}else D.ytAtRC=function(X){if(X=PrS(X)){var M;Y==null||(M=Y.initialChallengeSli)==null||
_.z3(M,"SUCCESS");QMb(X,Y);D.ytAtRC=void 0}}};
gHM=function(){if(p$b)return p$b;try{var D=_.I0("IFRAME");_.x7(D,_.tZ(EHi));D.sandbox.add("allow-same-origin");D.style.display="none";document.body.appendChild(D);return p$b=D}catch(Y){D=new _.AT("Failed to create sandbox iframe"),_.Nb(D)}};
dMM=function(D){var Y,R;return(R=D==null?void 0:(Y=D.contentWindow)==null?void 0:Y.fetch)!=null?R:window.fetch};
iUM=function(D){var Y,R;return(R=D==null?void 0:(Y=D.contentWindow)==null?void 0:Y.JSON.parse)!=null?R:JSON.parse};
OUi=function(D){var Y,R;return(R=D==null?void 0:(Y=D.contentWindow)==null?void 0:Y.Request)!=null?R:window.Request};
cJo=function(D){var Y,R;return(R=D==null?void 0:(Y=D.contentWindow)==null?void 0:Y.TextDecoder)!=null?R:window.TextDecoder};
Dtl=function(){return function(D,Y){_.JQ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[D]=Y}};
Y8n=function(){return function(D,Y){var R={};R[D]=Y;D=_.Lb(_.pXr)(R);Object.keys(D).length>0&&_.k8(D)}};
tL9=function(){if(UIo()==="hidden")var D="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else UIo()==="visible"&&(D="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",RBU=null);D&&Z_l(D)};
Z_l=function(D){if(D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(s_n===D)return;s_n=D}var Y=9E4+Math.random()*2E3;if(D!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Ro()>Y)&&UIo()==="visible"){Y=-1;RBU&&(Y=Math.round((0,_.DO)()-RBU));var R=String;var Z=_.mf("_fact",window);Z=Z==null||Z==-1?-1:Math.max(Date.now()-Z,0);_.bo("foregroundHeartbeat",{firstActivityMs:R(Z),clientDocumentNonce:Ivi,index:String(XR5),lastEventDeltaMs:String(Y),trigger:D});
_.ix("_fact",-1,window);XR5++;RBU=(0,_.DO)()}};
_.u7M=function(){try{return!!self.sessionStorage}catch(D){return!1}};
a0y=function(){var D=navigator;return new Promise(function(Y,R){var Z;(Z=D.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?D.webkitTemporaryStorage.queryUsageAndQuota(function(t,X){Y({usage:t,quota:X})},function(t){R(t)}):R(Error("sj"))})};
MLU=function(D,Y){var R={errorSeverity:Y.errorSeverity.toString(),wizFeatureFlags:Object.entries(Y.featureFlags).join("\n")};MG5(Y,R);Y=Y.errorSeverity;Y===3?_.Nb(D,"ERROR",void 0,void 0,void 0,R):Y===2&&_.Nb(D,"WARNING",void 0,void 0,void 0,R);_.f("cow_if_errors_in_popup")&&Y===3&&D.message.indexOf("<If>")!==-1&&window.alert(D.message)};
CKb=function(D,Y){var R=cC.get(D)||{layerNode:Y};R.layerNode=Y;lSS(D,R);D.getScreenLayer=function(){return S3(R.layerNode)}};
WDl=function(D){var Y;D=D.parentNode;for(var R;D&&((Y=cC.get(D))==null||!Y.isRenderer)&&!((R=D.polymerController)!=null?R:D).isRenderer_;)D=D.parentNode||D.host;if(Y=D)return cC.get(Y)};
zBM=function(D){if(D){cC.delete(D);var Y=_.DH().resolve(RD);Ld9(D,Y)}};
TDU=function(D,Y,R){if(R===void 0?0:R){if(R=D.getAttribute("client-ve-type"),Y.data&&!Y.disableReactiveLogging||R)_.oe(function(){S8$(D,_.v_(Y.data))}),_.w2(function(){return void zBM(D)})}else typeof Y.data!=="function"&&S8$(D,Y.data)};
S8$=function(D,Y){j_b++;I0b(D,Y)&&_.yc.addJob(function(){_.$c(_.yc,function(){if(I0b(D,Y)&&D.ownerDocument.documentElement===document.documentElement&&D){var R;if(D.getAttribute("layer")){var Z=R=Number(D.getAttribute("layer")),t=cC.get(D);t?t.layerNode.layer=Z:CKb(D,new FDU(Z));(Z=WDl(D))&&(t=cC.get(D))!=null&&(t.layerNode.parent=Z.layerNode)}else if(R=cC.get(D))R=S3(R.layerNode);else{R=S3;Z=new FDU;if(t=WDl(D))Z.parent=t.layerNode;CKb(D,Z);R=R(Z)}R!=null||(R=0);Z=D.getAttribute("client-ve-type");
t=Number(Z);var X=!1;Z=!1;var M=cC.get(D),W;if((W=M)&&!(W=M[Gij]!==Y)&&(W=t)){var z;W=((z=cC.get(D))==null?void 0:z.clientVeType)===void 0}W&&(M[Gij]=Y,X=Z=M.isRenderer=!0);cC.has(D)&&(cC.get(D).clientVeType=t);D.visualElement&&(Z=!0);if(_.f("wiz_next_ld_fix_client_ve_spec")){var I;z=((I=_.A(Y==null?void 0:Y.rendererContext,_.rs))==null?void 0:I.loggingDirectives)||(Y==null?void 0:Y.loggingDirectives)}else z=Y==null?void 0:Y.loggingDirectives;z&&z.clientVeSpec&&(I=VLj(_.ev(),D),I=_.f0j(_.n8(),z,I||
void 0,R))&&(D.visualElement=I);!D.visualElement&&t&&X&&(D.veType=t,I=void 0,_.f("wiz_next_client_ve_parent_fix")&&(I=VLj(_.ev(),D)),I=_.Ai(_.n8(),D,I,R),D.visualElement=I);Z&&(I=_.DH().resolve(RD),x9U(D,{data:Y,observer:I,layer:R,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
I0b=function(D,Y){return(Y==null?0:Y.trackingParams)||(Y==null?0:Y.loggingDirectives)||_.A(Y==null?void 0:Y.rendererContext,_.rs)||D.getAttribute("client-ve-type")?!0:!1};
eBM=function(D,Y,R){D.componentType!==f4&&R instanceof HTMLElement&&Y&&!_.f("cow_logging_in_component_wrapper")&&TDU(R,Y,!0)};
vTo=function(){if(!ABU){ABU=!0;var D=Object.assign({},{enableLazyTsx:_.f("mweb_enable_wiz_lazy_tsx")||_.f("kevlar_enable_wiz_lazy_tsx")||_.f("creator_enable_wiz_lazy_tsx")||nTy,flushRenderEffectsDuringRender:!0},{handleError:MLU,enableComponentStacksInErrorMessages:!1});Object.assign(cB,D);$AM=rBr;wRj();NZS=upn;oFo=afM;_.f("ytwiz_enable_debug_component_props")&&(D=document.body.firstElementChild,window.ng||D.__ngContext__||(D.__ngContext__={},D.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
$tj))}};
wRj=function(){_.f("cow_logging_in_component_wrapper")?(IMn=function(D,Y){Y instanceof HTMLElement&&TDU(Y,D,!0)},jRo=function(){}):(IMn=function(){},jRo=eBM)};
oTU=function(D,Y,R){Y=Y===void 0?{}:Y;var Z,t=(Z=_.A(D.commandMetadata,_.GA))==null?void 0:Z.url;Z=Y.form||{};!R||Z.element||Z.skipDefaultElement||(Y.form=Y.form||{},Y.form.element=R);if(t&&t!=="/service_ajax")return{type:0,command:D,form:Y.form};if(_.f("kevlar_service_command_check")){if(_.g1(_.DH().resolve(_.h6),D))return Object.assign({},{type:1,command:D},Y)}else{var X;if((X=_.A(D.commandMetadata,_.GA))==null?0:X.apiUrl)return Object.assign({},{type:1,command:D},Y)}return{type:2,command:D,form:Y.form}};
b_l=function(D){if(D.form){var Y=D.form,R=Object.assign({},Y);Y=Y.element;R=(delete R.element,R);if(Y)return[_.zA(Y,[D.command,R,D.commandController])]}return[]};
yBU=function(D){if(D.form){var Y=D.form,R=Object.assign({},Y);Y=Y.element;R=(delete R.element,R);Y&&_.Se(Y,[D.command],Y,R)}};
l0i=function(D,Y,R){var Z=new ND5(D,Y),t=new T3(D,Y,R);D={"/youtubei/v1/browse":new j3(D,Y,R),"/youtubei/v1/player":Z,"/youtubei/v1/navigation/resolve_url":new Ia,"/youtubei/v1/next":t,"/youtubei/v1/guide":new Fc(R),"/youtubei/v1/search":new G3(D,Y,R),"/youtubei/v1/reel/reel_item_watch":new V4(D,Y,R),"/youtubei/v1/get_watch":new fo(Z,t)};D["/youtubei/v1/account/account_menu"]=new e3;D["/youtubei/v1/notification/get_notification_menu"]=new An;return D};
rY=function(){var D=_.DH().resolve(no);return Promise.resolve(JBM(D,_.ZU.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
kiy=function(D){return D&&(D=_.oa(_.jqo(D)))?(new URLSearchParams(D)).get("service"):null};
Ni=function(D,Y){_.S7(_.b$(),function(){_.KX("adl")});
_.DH().resolve(Utj)(Y);D=D.root;D.loadData&&D.loadData(Y);(Y==null?0:Y.response)?_.z3(hA$(),"SUCCESS"):_.Jk(new _.AT("Lifecycle: No response in data",_.ks("IS_SHELL_LOAD"),Y?Y.page:"NO_PAGE",Y?Y.endpoint:"NO_ENDPOINT"));D.polymerController.$["page-manager"].lazyPrepareCriticalPages((Y==null?void 0:Y.page)||"",Y.endpoint);var R,Z;((Z=_.A(Y==null?void 0:(R=Y.endpoint)==null?void 0:R.commandMetadata,_.GA))==null?0:Z.webPageType)&&_.Dl().dispatch(_.y4(_.A(Y.endpoint.commandMetadata,_.GA).webPageType))};
KDU=function(){var D,Y;return _.C(function(R){switch(R.nextAddress){case 1:D=window;if(!D.getDataPromise){R.jumpTo(2);break}_.SX(R,3);return R.yield(D.getDataPromise(),5);case 5:return R.return(R.yieldResult);case 3:return _.Gl(R),R.yield(rY(),6);case 6:return R.return(R.yieldResult);case 2:if(D.getInitialData)return Y=D.getInitialData(),D.getInitialData=void 0,R.return(Y);throw Error("uj`"+_.ZU.location.href);}})};
LDo=function(){_.l1("CSI_SERVICE_NAME","youtube");_.k8({loadType:"cold"});_.f("kevlar_log_lcp")&&hB5(function(D){_.KX("lcp",D.value)})};
mt9=function(){var D=_.LG(document.location.href,"enable");D&&D.indexOf("scraper")>-1&&_.l1("ADD_SCRAPER_ATTRIBUTES",!0)};
Q_U=function(D){var Y=D.root;D=[q8l,H_b,_.l$];_.f("web_feedback_endpoint_autolog_allowlist_killswitch")&&D.push(_.Jn,xtj);PKn(function(R,Z){return oTU(R,Z,Y)},function(R){if(!R.command)return[];
var Z;((Z=R.form)==null?0:Z.element)?R.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},R.form,{endpoint:R.command})})):Y.handleNavigate(R);return[]},D);
_.DH().addProvider({provide:_.Yw,useValue:_.GD.instance})};
pRM=function(){var D={},Y={},R;for(R in BDU){var Z=_.a(_.ae(BDU[R],void 0,"IAtZ7"));D[R]=Z.next().value;Y[R]=Z.next().value}return[D,function(t){for(var X in t){var M=void 0;(M=Y[X])==null||M(t[X])}}]};
_.k5=function(D,Y,R){Y=Y===void 0?!1:Y;var Z=_.y7.getValueByKeys(D,"contents","twoColumnWatchNextResults","results","results","contents"),t=_.y7.getValueByKeys(D,"contents","twoColumnWatchNextResults","playlist","playlist")||null;Y&&(t=null);var X=Y=null;if(t)Y=_.y7.getValueByKeys(t,"titleText"),X=_.y7.unsafeClone(_.y7.getValueByKeys(t,"longBylineText")),Z="",X&&(Z=_.OM(X)),X=_.i0(Z);else if(Z){Z=_.a(Z);for(var M=Z.next();!M.done;M=Z.next())M=M.value,M.videoPrimaryInfoRenderer&&(Y=_.y7.getValueByKeys.apply(_.y7,
[M].concat(_.oK(ETU)))),M.videoSecondaryInfoRenderer&&(X=_.y7.getValueByKeys.apply(_.y7,[M].concat(_.oK(gTl))))}else _.qJ(Error("zj"));var W;D.currentVideoEndpoint?W=D.currentVideoEndpoint:_.qJ(Error("Aj"));var z;R&&(z=_.y7.getValueByKeys(R,"playabilityStatus","miniplayer","miniplayerRenderer"));D={miniplayerTitle:Y,miniplayerSubtitle:X,watchEndpoint:W,playlistData:t};z&&(D.miniplayerRenderer=z);return D};
dtU=function(D){if(D)return _.K8(D)};
_.i_U=function(){return{isFullscreen:function(){throw Error("Bj");},
toggleFullscreen:function(){throw Error("Cj");},
exitFullscreen:function(){throw Error("Dj");},
isAutonavEnabled:function(){throw Error("Ej");},
setAutonavEnabled:function(){throw Error("Fj");},
isAutoplaySetExplicitly:function(){throw Error("Gj");}}};
O_r=function(D){return D.videoDuration?D.numTaps>1&&D.tapDirection!==0?_.UR(D.draggedTime/D.videoDuration,0,1):_.UR((D.playedTime||0)/D.videoDuration,0,1):0};
cB$=function(D){return D.videoDuration?D.isDragging||D.numTaps>1&&D.tapDirection!==0?_.UR(D.draggedTime/D.videoDuration,0,1):_.UR((D.playedTime||0)/D.videoDuration,0,1):0};
Yui=function(D){var Y,R,Z;return _.A(D==null?void 0:(Y=D.markersMap)==null?void 0:(R=Y.find(function(t){return t.key==="HEATSEEKER"}))==null?void 0:(Z=R.value)==null?void 0:Z.heatmap,DRo)};
Rhj=function(D){var Y,R;return(R=(Y=Yui(D))==null?void 0:Y.heatMarkersDecorations)!=null?R:[]};
Zz$=function(D){if(_.f("mweb_supported_chapters_killswitch"))return!0;var Y;return!!(D==null?0:(Y=D.markersMap)==null?0:Y.find(function(R){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(R.key)}))};
_.tKj=function(D){var Y=Object,R=Y.assign,Z;D={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Z=D==null?void 0:D.getPlayerState())!=null?Z:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return R.call(Y,{},{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,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},D,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
sdS=function(D){return function(Y){var R=D(),Z,t=(Z=R.playerApi)==null?void 0:Z.getPlayerState();Y&&Y!==R.playerState&&(Y===1||Y===2)&&R.setState({playerState:t})}};
uZU=function(D){return function(Y){var R=D(),Z=R.playerApi;Z&&(Y==null?void 0:Y.type)==="newdata"&&(Xqn&&(clearTimeout(Xqn),Xqn=void 0),_.f("web_shorts_use_progress_state_for_gapless")?(Y=Z==null?void 0:Z.getProgressState(Y==null?void 0:Y.playertype),Y=Y.seekableEnd-Y.seekableStart):Y=Z==null?void 0:Z.getDuration(Y==null?void 0:Y.playertype),R.setState({playedTime:0,videoDuration:Y}))}};
a3y=function(D){return function(Y){var R=D(),Z=R.playerApi;if(Z){var t=Z.getPresentingPlayerType();_.f("web_shorts_use_progress_state_for_gapless")?(Z=Z.getProgressState(t),Z=Z.seekableEnd-Z.seekableStart):Z=Z.getDuration(t);R.setState({playedTime:Y,videoDuration:Z})}}};
Cwb=function(D){_.$6(112394,D,function(){return MKU},function(Y){MKU=Y})};
Su9=function(D,Y){if(!D)return[];var R,Z,t;D=((R=D.markersMap)==null?void 0:(Z=R.find(function(X){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(X.key)}))==null?void 0:(t=Z.value)==null?void 0:t.chapters)||[];
!W6M(D)||(Y==null?0:Y.ignoreStub)||(D=[zhS()].concat(_.oK(D)));return D};
zhS=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
W6M=function(D){if(D.length===0)return!1;var Y;return((Y=_.A(D[0],Ko))==null?void 0:Y.timeRangeStartMillis)!==0};
hn=function(D){return D?D.timeRangeStartMillis||0:0};
jd9=function(D,Y){if(D.isDragging&&Y)return D=TFr(D,Y),D===-1?zhS():Su9(Y)[D]};
TFr=function(D,Y){return D.isDragging&&Y?Su9(Y,{ignoreStub:!0}).findIndex(function(R,Z,t){R=I3r(D);return F6i(R,t,Z).scrubberHovering}):-1};
I3r=function(D){return Object.assign({},D,{videoDuration:D.videoDuration*1E3,playedTime:D.playedTime*1E3,draggedTime:D.draggedTime*1E3})};
F6i=function(D,Y,R){var Z=hn(_.A(Y[R],Ko));Y=hn(_.A(Y[R+1],Ko))||D.videoDuration;R=D.isDragging;var t;if(t=D.isDragging)t=D.draggedTime,t=t!==null&&t>=Z&&t<Y;var X=D.playedTime;return X!==null&&X>=Z&&X<Y?{videoPosition:"active",isScrubbing:R,scrubberHovering:t}:D.playedTime<Z?{videoPosition:"pending",isScrubbing:R,scrubberHovering:t}:{videoPosition:"seen",isScrubbing:R,scrubberHovering:t}};
G15=function(D,Y){return D.videoPosition==="seen"||(Y===void 0?0:Y)>0};
VKr=function(D,Y,R){Y=D/Y.storyboardInterval;var Z=Su9(R);if(!Z.length)return-Y*72;R=0;Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next())if(hn(_.A(t.value,Ko))/1E3<D)R++;else break;return-(Y*72)-R*56};
f3y=function(D){return D?D.width/D.columns:0};
eh$=function(D){return D.isHovering?D.hoveredTime:D.draggedTime};
Adb=function(D,Y){D=D.draggedTime*1E3;return D>=Y.visibleTimeRangeStartMillis&&D<=Y.visibleTimeRangeEndMillis};
_.n9y=function(D){if(D===void 0||Number.isNaN(D))return"--:--";var Y=Math.abs(Math.floor(D)),R=Math.floor(Y/86400),Z=Math.floor(Y%86400/3600),t=Math.floor(Y%3600/60);Y=Math.floor(Y%60);var X="";R>0&&(X+=R+":",Z<10&&(X+="0"));if(R>0||Z>0)X+=Z+":",t<10&&(X+="0");X+=t+":";Y<10&&(X+="0");X+=Y;return D>=0?X:"-"+X};
rdr=function(D,Y){return function(){var R=eh$(D());var Z=Y();var t=D().playerApi;if(t&&t.getNumberOfStoryboardLevels()!==0){var X=t.getStoryboardFrameIndex(R,1);X!==-1?Z=t.getStoryboardFrame(X,1):(R=t.getStoryboardFrameIndex(R,0),t=t.getStoryboardFrame(R,0),Z&&t&&(t.height*=3,t.width*=3),Z=t)}else Z=null;if(!Z)return null;Y()&&(Z.width=90*Z.columns,Z.height=160*Z.rows);return Z}};
_.Lo=function(D){if(!D||D.getVideoData)return D};
wq9=function(){var D;return{playerApi:(D=_.IP())!=null?D:void 0}};
$RS=function(D){var Y;_.C(function(R){if(R.nextAddress==1)return R.yield(_.jG(),2);if(Y=R.yieldResult)Y.unMute(!0),Y.setVolume(D,!0);_.V9(R)})};
v9n=function(D,Y){D&&(D.value=""+Y,D.style.setProperty("--gradient-percent",Y+"%"))};
o9U=function(D){var Y;return(Y=D==null?void 0:D.value)!=null?Y:0};
bzM=function(){var D;_.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.jG(),2);D=Y.yieldResult;if(!D)return Y.return();D.isMuted()?D.unMute(!0):D.mute(!0);_.V9(Y)})};
ydU=function(D){var Y=_.DH().resolve(_.mL).getPlayerElement();Y&&D&&(D===1?Y.pause():Y.play())};
NFb=function(D){_.WC(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
l3n=function(D){_.WC(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
k1S=function(D){return _.nb(D.document.body,function(){return _.S(JdU,null)})};
URo=function(){var D=window.performance.getEntriesByType("navigation");return D?D.map(function(Y){return Y.type}).includes("reload"):!1};
Pw9=function(){qi(qi(qi(qi(qi(qi(qi(_.DH().resolve(_.Hf),_.K6i),_.hhU),_.L6j),_.mRr),_.quU),_.HzS),_.xR5)};
Qd5=function(D,Y){Y=Y===void 0?!1:Y;var R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return Y||!_.f("kevlar_shorts_seedless_retry_initial_load")||(R=window,Z=!(!R.getDataPromise&&!R.getInitialData),Z)?M.yield(KDU(),2):(setTimeout(Qd5.bind(window,D,!0),1E3),M.return());if(M.nextAddress!=3)return t=M.yieldResult,M.yield(BFM(t),3);X=M.yieldResult;Ni(D,X);_.V9(M)})};
BFM=function(D){var Y;if((Y=D.response)==null||!Y.replacementEndpoint)return _.TA(D);Y=_.DH().resolve(no);D=D.response;_.A(D.replacementEndpoint,_.$I)&&D.sequenceContinuation&&(_.A(D.replacementEndpoint,_.$I).sequenceParams=D.sequenceContinuation);return x5(Y,D.replacementEndpoint,{},_.ZU.location.href,"shorts",function(){},function(){return!1})};
E9U=function(D){var Y=_.DH().resolve(pqM);D.playerResponse&&Y.handleResponse(D.playerResponse);D.response&&Y.handleResponse(D.response)};
g9S=function(D){var Y=_.Dl(),R,Z=_.A((R=D.response)==null?void 0:R.frameworkUpdates,cN),t;R=_.A((t=D.playerResponse)==null?void 0:t.frameworkUpdates,cN);var X;D=_.A((X=D.reelWatchSequenceResponse)==null?void 0:X.frameworkUpdates,cN);Z&&_.fh(Z,Y);R&&_.fh(R,Y);D&&_.fh(D,Y)};
dRU=function(D){var Y;_.f("enable_redirect_linking_for_desktop_web_client")&&((Y=window.location.hash)==null?0:Y.includes("redirect_state"))&&D.url&&(D.url=D.url.toString()+window.location.hash)};
cd9=function(D){var Y=_.DH(),R=Y.resolve(no);Y=Y.resolve(_.iz5);D.endpoint&&(R=OzS(R,D.endpoint),R.content&&D.response&&_.Pf(Y,D.response,R.content),R.player&&D.playerResponse&&_.Pf(Y,D.playerResponse,R.player),R.reelSequence&&D.reelWatchSequenceResponse&&_.Pf(Y,D.reelWatchSequenceResponse,R.reelSequence))};
Q4=function(D,Y){_.f("web_service_params_response_processor")&&E9U(Y);g9S(Y);var R;(Y==null?0:Y.url)&&((R=window.location.hash)==null?0:R.includes("redirect_state"))&&(dRU(Y),(R=kiy(Y.url))&&_.CX(D.root,"yt-initialize-third-party",[R,Y]));cd9(Y);R=_.DH();var Z=R.resolve(D2o);Y.playerResponse&&R.resolve(Y25).handleResponse(Y.playerResponse);if(Y.playerResponse){R=void 0;if(_.f("ab_v_vid_sig")&&Y.endpoint){var t,X=(t=_.A(Y.endpoint,_.Od))!=null?t:_.A(Y.endpoint,_.$I);X&&(R=X.videoId)}RTi(Z,Y.playerResponse,
R)}Y.playerResponse&&YXj(Y.playerResponse)&&_.f("web_enable_ab_rsp_cl")?wtU().then(function(){ZPU(Z,Y.playerResponse);Ni(D,Y)}):Ni(D,Y)};
sLU=function(D){if(D=D.root.data){var Y=_.DH().resolve(tMi);D.endpoint&&(D.response&&Y.handleResponse(D.response,void 0,document.querySelector("ytd-app")),D.playerResponse&&Y.handleResponse(D.playerResponse),D.reelWatchSequenceResponse&&Y.handleResponse(D.reelWatchSequenceResponse))}};
X0M=function(D){var Y,R,Z,t,X,M;return _.C(function(W){switch(W.nextAddress){case 1:Y=window;if(!Y.getDataPromise){W.jumpTo(2);break}_.SX(W,3);return W.yield(Y.getDataPromise(),5);case 5:R=W.yieldResult;Q4(D,R);_.xw(W,4);break;case 3:return _.Gl(W),W.yield(rY(),6);case 6:Z=W.yieldResult,Ni(D,Z);case 4:return W.return();case 2:if(!_.f("sw_nav_preload_pbj")){W.jumpTo(7);break}Y.fetchInitialData=function(){var z;return _.C(function(I){if(I.nextAddress==1)return I.yield(rY(),2);z=I.yieldResult;Ni(D,z);
_.V9(I)})};
if(Y.getInitialData){Y.loadInitialData=function(z){Q4(D,z)};
t=Y.getInitialData();Y.getInitialData=void 0;Q4(D,t);W.jumpTo(8);break}Y.fetchInitialData=void 0;return W.yield(rY(),9);case 9:X=W.yieldResult,Ni(D,X);case 8:return W.return();case 7:Y.getInitialData?(M=Y.getInitialData(),Y.getInitialData=void 0,Q4(D,M)):Y.loadInitialData=function(z){Q4(D,z)},_.V9(W)}})};
urU=function(D){var Y=0;return function(){return Y<D.length?{done:!1,value:D[Y++]}:{done:!0}}};
aw5=typeof Object.defineProperties=="function"?Object.defineProperty:function(D,Y,R){if(D==Array.prototype||D==Object.prototype)return D;D[Y]=R.value;return D};
MMr=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Y=0;Y<D.length;++Y){var R=D[Y];if(R&&R.Math==Math)return R}throw Error("a");};
_.YF=MMr(this);Bf=function(D,Y){if(Y)a:{var R=_.YF;D=D.split(".");for(var Z=0;Z<D.length-1;Z++){var t=D[Z];if(!(t in R))break a;R=R[t]}D=D[D.length-1];Z=R[D];Y=Y(Z);Y!=Z&&Y!=null&&aw5(R,D,{configurable:!0,writable:!0,value:Y})}};
Bf("Symbol",function(D){if(D)return D;var Y=function(X,M){this.$jscomp$symbol$id_=X;aw5(this,"description",{configurable:!0,writable:!0,value:M})};
Y.prototype.toString=function(){return this.$jscomp$symbol$id_};
var R="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Z=0,t=function(X){if(this instanceof t)throw new TypeError("b");return new Y(R+(X||"")+"_"+Z++,X)};
return t});
Bf("Symbol.iterator",function(D){if(D)return D;D=Symbol("c");for(var Y="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),R=0;R<Y.length;R++){var Z=_.YF[Y[R]];typeof Z==="function"&&typeof Z.prototype[D]!="function"&&aw5(Z.prototype,D,{configurable:!0,writable:!0,value:function(){return Cci(urU(this))}})}return D});
Bf("Symbol.asyncIterator",function(D){return D?D:Symbol("d")});
var Cci=function(D){D={next:D};D[Symbol.iterator]=function(){return this};
return D},Wjo=typeof Object.create=="function"?Object.create:function(D){var Y=function(){};
Y.prototype=D;return new Y},zTU=function(){function D(){function R(){}
new R;Reflect.construct(R,[],function(){});
return new R instanceof R}
if(typeof Reflect!="undefined"&&Reflect.construct){if(D())return Reflect.construct;var Y=Reflect.construct;return function(R,Z,t){R=Y(R,Z);t&&Reflect.setPrototypeOf(R,t.prototype);return R}}return function(R,Z,t){t===void 0&&(t=R);
t=Wjo(t.prototype||Object.prototype);return Function.prototype.apply.call(R,t,Z)||t}}(),S2U;
if(typeof Object.setPrototypeOf=="function")S2U=Object.setPrototypeOf;else{var T_l;a:{var jLU={a:!0},Iw9={};try{Iw9.__proto__=jLU;T_l=Iw9.a;break a}catch(D){}T_l=!1}S2U=T_l?function(D,Y){D.__proto__=Y;if(D.__proto__!==Y)throw new TypeError("e`"+D);return D}:null}po=S2U;
_.n=function(D,Y){D.prototype=Wjo(Y.prototype);D.prototype.constructor=D;if(po)po(D,Y);else for(var R in Y)if(R!="prototype")if(Object.defineProperties){var Z=Object.getOwnPropertyDescriptor(Y,R);Z&&Object.defineProperty(D,R,Z)}else D[R]=Y[R];D.superClass_=Y.prototype};
_.a=function(D){var Y=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(Y)return Y.call(D);if(typeof D.length=="number")return{next:urU(D)};throw Error("f`"+String(D));};
BB=function(D){for(var Y,R=[];!(Y=D.next()).done;)R.push(Y.value);return R};
_.oK=function(D){return D instanceof Array?D:BB(_.a(D))};
_.gY=function(D){return ER(D,D)};
ER=function(D,Y){D.raw=Y;Object.freeze&&(Object.freeze(D),Object.freeze(Y));return D};
dY=function(D,Y){return Object.prototype.hasOwnProperty.call(D,Y)};
FjU=typeof Object.assign=="function"?Object.assign:function(D,Y){for(var R=1;R<arguments.length;R++){var Z=arguments[R];if(Z)for(var t in Z)dY(Z,t)&&(D[t]=Z[t])}return D};
Bf("Object.assign",function(D){return D||FjU});
var i$=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},Gdo=function(D){if(D.isRunning_)throw new TypeError("h");
D.isRunning_=!0};
i$.prototype.JSC$8697_next_=function(D){this.yieldResult=D};
var VM9=function(D,Y){D.abruptCompletion_={exception:Y,isException:!0};D.nextAddress=D.catchAddress_||D.finallyAddress_};
i$.prototype.return=function(D){this.abruptCompletion_={return:D};this.nextAddress=this.finallyAddress_};
i$.prototype.yield=function(D,Y){this.nextAddress=Y;return{value:D}};
i$.prototype.jumpTo=function(D){this.nextAddress=D};
_.V9=function(D){D.nextAddress=0};
_.SX=function(D,Y,R){D.catchAddress_=Y;R!=void 0&&(D.finallyAddress_=R)};
_.IK=function(D,Y){D.catchAddress_=0;D.finallyAddress_=Y||0};
_.xw=function(D,Y,R){D.nextAddress=Y;D.catchAddress_=R||0};
_.Gl=function(D,Y){D.catchAddress_=Y||0;Y=D.abruptCompletion_.exception;D.abruptCompletion_=null;return Y};
_.jX=function(D,Y,R,Z){Z?D.finallyContexts_[Z]=D.abruptCompletion_:D.finallyContexts_=[D.abruptCompletion_];D.catchAddress_=Y||0;D.finallyAddress_=R||0};
_.Fx=function(D,Y,R){R=D.finallyContexts_.splice(R||0)[0];(R=D.abruptCompletion_=D.abruptCompletion_||R)?R.isException?D.nextAddress=D.catchAddress_||D.finallyAddress_:R.jumpTo!=void 0&&D.finallyAddress_<R.jumpTo?(D.nextAddress=R.jumpTo,D.abruptCompletion_=null):D.nextAddress=D.finallyAddress_:D.nextAddress=Y};
fwU=function(D){this.JSC$8702_context_=new i$;this.program_=D};
ALl=function(D,Y){Gdo(D.JSC$8702_context_);var R=D.JSC$8702_context_.yieldAllIterator_;if(R)return eTi(D,"return"in R?R["return"]:function(Z){return{value:Z,done:!0}},Y,D.JSC$8702_context_.return);
D.JSC$8702_context_.return(Y);return OR(D)};
eTi=function(D,Y,R,Z){try{var t=Y.call(D.JSC$8702_context_.yieldAllIterator_,R);if(!(t instanceof Object))throw new TypeError("g`"+t);if(!t.done)return D.JSC$8702_context_.isRunning_=!1,t;var X=t.value}catch(M){return D.JSC$8702_context_.yieldAllIterator_=null,VM9(D.JSC$8702_context_,M),OR(D)}D.JSC$8702_context_.yieldAllIterator_=null;Z.call(D.JSC$8702_context_,X);return OR(D)};
OR=function(D){for(;D.JSC$8702_context_.nextAddress;)try{var Y=D.program_(D.JSC$8702_context_);if(Y)return D.JSC$8702_context_.isRunning_=!1,{value:Y.value,done:!1}}catch(R){D.JSC$8702_context_.yieldResult=void 0,VM9(D.JSC$8702_context_,R)}D.JSC$8702_context_.isRunning_=!1;if(D.JSC$8702_context_.abruptCompletion_){Y=D.JSC$8702_context_.abruptCompletion_;D.JSC$8702_context_.abruptCompletion_=null;if(Y.isException)throw Y.exception;return{value:Y.return,done:!0}}return{value:void 0,done:!0}};
ne5=function(D){this.next=function(Y){Gdo(D.JSC$8702_context_);D.JSC$8702_context_.yieldAllIterator_?Y=eTi(D,D.JSC$8702_context_.yieldAllIterator_.next,Y,D.JSC$8702_context_.JSC$8697_next_):(D.JSC$8702_context_.JSC$8697_next_(Y),Y=OR(D));return Y};
this.throw=function(Y){Gdo(D.JSC$8702_context_);D.JSC$8702_context_.yieldAllIterator_?Y=eTi(D,D.JSC$8702_context_.yieldAllIterator_["throw"],Y,D.JSC$8702_context_.JSC$8697_next_):(VM9(D.JSC$8702_context_,Y),Y=OR(D));return Y};
this.return=function(Y){return ALl(D,Y)};
this[Symbol.iterator]=function(){return this}};
_.Mi=function(D,Y){Y=new ne5(new fwU(Y));po&&D.prototype&&po(Y,D.prototype);return Y};
rLy=function(D){function Y(Z){return D.next(Z)}
function R(Z){return D.throw(Z)}
return new Promise(function(Z,t){function X(M){M.done?Z(M.value):Promise.resolve(M.value).then(Y,R).then(X,t)}
X(D.next())})};
_.C=function(D){return rLy(new ne5(new fwU(D)))};
_.Tl=function(D){var Y=D[Symbol.asyncIterator];return Y!==void 0?Y.call(D):new w0U(_.a(D))};
w0U=function(D){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return D};
this.next=function(Y){return Promise.resolve(D.next(Y))};
this["throw"]=function(Y){return new Promise(function(R,Z){var t=D["throw"];t!==void 0?R(t.call(D,Y)):(R=D["return"],R!==void 0&&R.call(D),Z(new TypeError("i")))})};
D["return"]!==void 0&&(this["return"]=function(Y){return Promise.resolve(D["return"](Y))})};
_.UN=function(){for(var D=Number(this),Y=[],R=D;R<arguments.length;R++)Y[R-D]=arguments[R];return Y};
_.Co=function(D){return D};
Bf("globalThis",function(D){return D||_.YF});
Bf("Reflect",function(D){return D?D:{}});
Bf("Reflect.construct",function(){return zTU});
Bf("Reflect.setPrototypeOf",function(D){return D?D:po?function(Y,R){try{return po(Y,R),!0}catch(Z){return!1}}:null});
Bf("Promise",function(D){function Y(){this.batch_=null}
function R(M){return M instanceof t?M:new t(function(W){W(M)})}
if(D&&(typeof _.YF.PromiseRejectionEvent!=="undefined"||!_.YF.Promise||_.YF.Promise.toString().indexOf("[native code]")===-1))return D;Y.prototype.asyncExecute=function(M){if(this.batch_==null){this.batch_=[];var W=this;this.asyncExecuteFunction(function(){W.executeBatch_()})}this.batch_.push(M)};
var Z=_.YF.setTimeout;Y.prototype.asyncExecuteFunction=function(M){Z(M,0)};
Y.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var M=this.batch_;this.batch_=[];for(var W=0;W<M.length;++W){var z=M[W];M[W]=null;try{z()}catch(I){this.asyncThrow_(I)}}}this.batch_=null};
Y.prototype.asyncThrow_=function(M){this.asyncExecuteFunction(function(){throw M;})};
var t=function(M){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var W=this.createResolveAndReject_();try{M(W.resolve,W.reject)}catch(z){W.reject(z)}};
t.prototype.createResolveAndReject_=function(){function M(I){return function(F){z||(z=!0,I.call(W,F))}}
var W=this,z=!1;return{resolve:M(this.resolveTo_),reject:M(this.JSC$8730_reject_)}};
t.prototype.resolveTo_=function(M){if(M===this)this.JSC$8730_reject_(new TypeError("m"));else if(M instanceof t)this.settleSameAsPromise_(M);else{a:switch(typeof M){case "object":var W=M!=null;break a;case "function":W=!0;break a;default:W=!1}W?this.resolveToNonPromiseObj_(M):this.fulfill_(M)}};
t.prototype.resolveToNonPromiseObj_=function(M){var W=void 0;try{W=M.then}catch(z){this.JSC$8730_reject_(z);return}typeof W=="function"?this.settleSameAsThenable_(W,M):this.fulfill_(M)};
t.prototype.JSC$8730_reject_=function(M){this.settle_(2,M)};
t.prototype.fulfill_=function(M){this.settle_(1,M)};
t.prototype.settle_=function(M,W){if(this.state_!=0)throw Error("n`"+M+"`"+W+"`"+this.state_);this.state_=M;this.result_=W;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
t.prototype.scheduleUnhandledRejectionCheck_=function(){var M=this;Z(function(){if(M.notifyUnhandledRejection_()){var W=_.YF.console;typeof W!=="undefined"&&W.error(M.result_)}},1)};
t.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var M=_.YF.CustomEvent,W=_.YF.Event,z=_.YF.dispatchEvent;if(typeof z==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof W==="function"?M=new W("unhandledrejection",{cancelable:!0}):(M=_.YF.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.result_;return z(M)};
t.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var M=0;M<this.onSettledCallbacks_.length;++M)X.asyncExecute(this.onSettledCallbacks_[M]);this.onSettledCallbacks_=null}};
var X=new Y;t.prototype.settleSameAsPromise_=function(M){var W=this.createResolveAndReject_();M.callWhenSettled_(W.resolve,W.reject)};
t.prototype.settleSameAsThenable_=function(M,W){var z=this.createResolveAndReject_();try{M.call(W,z.resolve,z.reject)}catch(I){z.reject(I)}};
t.prototype.then=function(M,W){function z(V,e){return typeof V=="function"?function(r){try{I(V(r))}catch(l){F(l)}}:e}
var I,F,G=new t(function(V,e){I=V;F=e});
this.callWhenSettled_(z(M,I),z(W,F));return G};
t.prototype.catch=function(M){return this.then(void 0,M)};
t.prototype.callWhenSettled_=function(M,W){function z(){switch(I.state_){case 1:M(I.result_);break;case 2:W(I.result_);break;default:throw Error("o`"+I.state_);}}
var I=this;this.onSettledCallbacks_==null?X.asyncExecute(z):this.onSettledCallbacks_.push(z);this.isRejectionHandled_=!0};
t.resolve=R;t.reject=function(M){return new t(function(W,z){z(M)})};
t.race=function(M){return new t(function(W,z){for(var I=_.a(M),F=I.next();!F.done;F=I.next())R(F.value).callWhenSettled_(W,z)})};
t.all=function(M){var W=_.a(M),z=W.next();return z.done?R([]):new t(function(I,F){function G(r){return function(l){V[r]=l;e--;e==0&&I(V)}}
var V=[],e=0;do V.push(void 0),e++,R(z.value).callWhenSettled_(G(V.length-1),F),z=W.next();while(!z.done)})};
return t});
var cf=function(D,Y,R){if(D==null)throw new TypeError("p`"+R);if(Y instanceof RegExp)throw new TypeError("q`"+R);return D+""};
Bf("String.prototype.startsWith",function(D){return D?D:function(Y,R){var Z=cf(this,Y,"startsWith"),t=Z.length,X=Y.length;R=Math.max(0,Math.min(R|0,Z.length));for(var M=0;M<X&&R<t;)if(Z[R++]!=Y[M++])return!1;return M>=X}});
Bf("Object.setPrototypeOf",function(D){return D||po});
Bf("Symbol.dispose",function(D){return D?D:Symbol("r")});
Bf("SuppressedError",function(D){function Y(R,Z,t){if(!(this instanceof Y))return new Y(R,Z,t);t=Error(t);"stack"in t&&(this.stack=t.stack);this.message=t.message;this.error=R;this.suppressed=Z}
if(D)return D;_.n(Y,Error);Y.prototype.name="SuppressedError";return Y});
var $2S=function(D,Y,R){D instanceof String&&(D=String(D));for(var Z=D.length,t=0;t<Z;t++){var X=D[t];if(Y.call(R,X,t,D))return{i:t,v:X}}return{i:-1,v:void 0}};
Bf("Array.prototype.find",function(D){return D?D:function(Y,R){return $2S(this,Y,R).v}});
Bf("WeakMap",function(D){function Y(){}
function R(z){var I=typeof z;return I==="object"&&z!==null||I==="function"}
function Z(z){if(!dY(z,X)){var I=new Y;aw5(z,X,{value:I})}}
function t(z){var I=Object[z];I&&(Object[z]=function(F){if(F instanceof Y)return F;Object.isExtensible(F)&&Z(F);return I(F)})}
if(function(){if(!D||!Object.seal)return!1;try{var z=Object.seal({}),I=Object.seal({}),F=new D([[z,2],[I,3]]);if(F.get(z)!=2||F.get(I)!=3)return!1;F.delete(z);F.set(I,4);return!F.has(z)&&F.get(I)==4}catch(G){return!1}}())return D;
var X="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("seal");var M=0,W=function(z){this.JSC$8737_id_=(M+=Math.random()+1).toString();if(z){z=_.a(z);for(var I;!(I=z.next()).done;)I=I.value,this.set(I[0],I[1])}};
W.prototype.set=function(z,I){if(!R(z))throw Error("s");Z(z);if(!dY(z,X))throw Error("t`"+z);z[X][this.JSC$8737_id_]=I;return this};
W.prototype.get=function(z){return R(z)&&dY(z,X)?z[X][this.JSC$8737_id_]:void 0};
W.prototype.has=function(z){return R(z)&&dY(z,X)&&dY(z[X],this.JSC$8737_id_)};
W.prototype.delete=function(z){return R(z)&&dY(z,X)&&dY(z[X],this.JSC$8737_id_)?delete z[X][this.JSC$8737_id_]:!1};
return W});
Bf("Map",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var W=Object.seal({x:4}),z=new D(_.a([[W,"s"]]));if(z.get(W)!="s"||z.size!=1||z.get({x:4})||z.set({x:4},"t")!=z||z.size!=2)return!1;var I=z.entries(),F=I.next();if(F.done||F.value[0]!=W||F.value[1]!="s")return!1;F=I.next();return F.done||F.value[0].x!=4||F.value[1]!="t"||!I.next().done?!1:!0}catch(G){return!1}}())return D;
var Y=new WeakMap,R=function(W){this[0]={};this[1]=X();this.size=0;if(W){W=_.a(W);for(var z;!(z=W.next()).done;)z=z.value,this.set(z[0],z[1])}};
R.prototype.set=function(W,z){W=W===0?0:W;var I=Z(this,W);I.list||(I.list=this[0][I.id]=[]);I.entry?I.entry.value=z:(I.entry={next:this[1],previous:this[1].previous,head:this[1],key:W,value:z},I.list.push(I.entry),this[1].previous.next=I.entry,this[1].previous=I.entry,this.size++);return this};
R.prototype.delete=function(W){W=Z(this,W);return W.entry&&W.list?(W.list.splice(W.index,1),W.list.length||delete this[0][W.id],W.entry.previous.next=W.entry.next,W.entry.next.previous=W.entry.previous,W.entry.head=null,this.size--,!0):!1};
R.prototype.clear=function(){this[0]={};this[1]=this[1].previous=X();this.size=0};
R.prototype.has=function(W){return!!Z(this,W).entry};
R.prototype.get=function(W){return(W=Z(this,W).entry)&&W.value};
R.prototype.entries=function(){return t(this,function(W){return[W.key,W.value]})};
R.prototype.keys=function(){return t(this,function(W){return W.key})};
R.prototype.values=function(){return t(this,function(W){return W.value})};
R.prototype.forEach=function(W,z){for(var I=this.entries(),F;!(F=I.next()).done;)F=F.value,W.call(z,F[1],F[0],this)};
R.prototype[Symbol.iterator]=R.prototype.entries;var Z=function(W,z){var I=z&&typeof z;I=="object"||I=="function"?Y.has(z)?I=Y.get(z):(I=""+ ++M,Y.set(z,I)):I="p_"+z;var F=W[0][I];if(F&&dY(W[0],I))for(W=0;W<F.length;W++){var G=F[W];if(z!==z&&G.key!==G.key||z===G.key)return{id:I,list:F,index:W,entry:G}}return{id:I,list:F,index:-1,entry:void 0}},t=function(W,z){var I=W[1];
return Cci(function(){if(I){for(;I.head!=W[1];)I=I.previous;for(;I.next!=I.head;)return I=I.next,{done:!1,value:z(I)};I=null}return{done:!0,value:void 0}})},X=function(){var W={};
return W.previous=W.next=W.head=W},M=0;
return R});
Bf("Set",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var R=Object.seal({x:4}),Z=new D(_.a([R]));if(!Z.has(R)||Z.size!=1||Z.add(R)!=Z||Z.size!=1||Z.add({x:4})!=Z||Z.size!=2)return!1;var t=Z.entries(),X=t.next();if(X.done||X.value[0]!=R||X.value[1]!=R)return!1;X=t.next();return X.done||X.value[0]==R||X.value[0].x!=4||X.value[1]!=X.value[0]?!1:t.next().done}catch(M){return!1}}())return D;
var Y=function(R){this.JSC$8751_map_=new Map;if(R){R=_.a(R);for(var Z;!(Z=R.next()).done;)this.add(Z.value)}this.size=this.JSC$8751_map_.size};
Y.prototype.add=function(R){R=R===0?0:R;this.JSC$8751_map_.set(R,R);this.size=this.JSC$8751_map_.size;return this};
Y.prototype.delete=function(R){R=this.JSC$8751_map_.delete(R);this.size=this.JSC$8751_map_.size;return R};
Y.prototype.clear=function(){this.JSC$8751_map_.clear();this.size=0};
Y.prototype.has=function(R){return this.JSC$8751_map_.has(R)};
Y.prototype.entries=function(){return this.JSC$8751_map_.entries()};
Y.prototype.values=function(){return this.JSC$8751_map_.values()};
Y.prototype.keys=Y.prototype.values;Y.prototype[Symbol.iterator]=Y.prototype.values;Y.prototype.forEach=function(R,Z){var t=this;this.JSC$8751_map_.forEach(function(X){return R.call(Z,X,X,t)})};
return Y});
Bf("Math.log2",function(D){return D?D:function(Y){return Math.log(Y)/Math.LN2}});
Bf("Object.values",function(D){return D?D:function(Y){var R=[],Z;for(Z in Y)dY(Y,Z)&&R.push(Y[Z]);return R}});
Bf("Object.is",function(D){return D?D:function(Y,R){return Y===R?Y!==0||1/Y===1/R:Y!==Y&&R!==R}});
Bf("Array.prototype.includes",function(D){return D?D:function(Y,R){var Z=this;Z instanceof String&&(Z=String(Z));var t=Z.length;R=R||0;for(R<0&&(R=Math.max(R+t,0));R<t;R++){var X=Z[R];if(X===Y||Object.is(X,Y))return!0}return!1}});
Bf("String.prototype.includes",function(D){return D?D:function(Y,R){return cf(this,Y,"includes").indexOf(Y,R||0)!==-1}});
Bf("Array.from",function(D){return D?D:function(Y,R,Z){R=R!=null?R:function(W){return W};
var t=[],X=typeof Symbol!="undefined"&&Symbol.iterator&&Y[Symbol.iterator];if(typeof X=="function"){Y=X.call(Y);for(var M=0;!(X=Y.next()).done;)t.push(R.call(Z,X.value,M++))}else for(X=Y.length,M=0;M<X;M++)t.push(R.call(Z,Y[M],M));return t}});
Bf("Object.entries",function(D){return D?D:function(Y){var R=[],Z;for(Z in Y)dY(Y,Z)&&R.push([Z,Y[Z]]);return R}});
Bf("Number.isFinite",function(D){return D?D:function(Y){return typeof Y!=="number"?!1:!isNaN(Y)&&Y!==Infinity&&Y!==-Infinity}});
Bf("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Bf("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Bf("Number.isInteger",function(D){return D?D:function(Y){return Number.isFinite(Y)?Y===Math.floor(Y):!1}});
Bf("Number.isSafeInteger",function(D){return D?D:function(Y){return Number.isInteger(Y)&&Math.abs(Y)<=Number.MAX_SAFE_INTEGER}});
Bf("String.prototype.endsWith",function(D){return D?D:function(Y,R){var Z=cf(this,Y,"endsWith");R===void 0&&(R=Z.length);R=Math.max(0,Math.min(R|0,Z.length));for(var t=Y.length;t>0&&R>0;)if(Z[--R]!=Y[--t])return!1;return t<=0}});
var ve$=function(D,Y){D instanceof String&&(D+="");var R=0,Z=!1,t={next:function(){if(!Z&&R<D.length){var X=R++;return{value:Y(X,D[X]),done:!1}}Z=!0;return{done:!0,value:void 0}}};
t[Symbol.iterator]=function(){return t};
return t};
Bf("Array.prototype.entries",function(D){return D?D:function(){return ve$(this,function(Y,R){return[Y,R]})}});
Bf("Math.trunc",function(D){return D?D:function(Y){Y=Number(Y);if(isNaN(Y)||Y===Infinity||Y===-Infinity||Y===0)return Y;var R=Math.floor(Math.abs(Y));return Y<0?-R:R}});
Bf("Number.isNaN",function(D){return D?D:function(Y){return typeof Y==="number"&&isNaN(Y)}});
Bf("Array.prototype.keys",function(D){return D?D:function(){return ve$(this,function(Y){return Y})}});
Bf("Array.prototype.values",function(D){return D?D:function(){return ve$(this,function(Y,R){return R})}});
Bf("Array.prototype.fill",function(D){return D?D:function(Y,R,Z){var t=this.length||0;R<0&&(R=Math.max(0,t+R));if(Z==null||Z>t)Z=t;Z=Number(Z);Z<0&&(Z=Math.max(0,t+Z));for(R=Number(R||0);R<Z;R++)this[R]=Y;return this}});
var DD=function(D){return D?D:Array.prototype.fill};
Bf("Int8Array.prototype.fill",DD);Bf("Uint8Array.prototype.fill",DD);Bf("Uint8ClampedArray.prototype.fill",DD);Bf("Int16Array.prototype.fill",DD);Bf("Uint16Array.prototype.fill",DD);Bf("Int32Array.prototype.fill",DD);Bf("Uint32Array.prototype.fill",DD);Bf("Float32Array.prototype.fill",DD);Bf("Float64Array.prototype.fill",DD);
Bf("Object.fromEntries",function(D){return D?D:function(Y){var R={};if(!(Symbol.iterator in Y))throw new TypeError("u`"+Y);Y=Y[Symbol.iterator].call(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;if(Object(Z)!==Z)throw new TypeError("v");R[Z[0]]=Z[1]}return R}});
Bf("String.prototype.replaceAll",function(D){return D?D:function(Y,R){if(Y instanceof RegExp&&!Y.global)throw new TypeError("w");return Y instanceof RegExp?this.replace(Y,R):this.replace(new RegExp(String(Y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),R)}});
Bf("Object.getOwnPropertySymbols",function(D){return D?D:function(){return[]}});
Bf("String.prototype.repeat",function(D){return D?D:function(Y){var R=cf(this,null,"repeat");if(Y<0||Y>1342177279)throw new RangeError("x");Y|=0;for(var Z="";Y;)if(Y&1&&(Z+=R),Y>>>=1)R+=R;return Z}});
Bf("Array.prototype.findIndex",function(D){return D?D:function(Y,R){return $2S(this,Y,R).i}});
Bf("Array.prototype.flatMap",function(D){return D?D:function(Y,R){var Z=[];Array.prototype.forEach.call(this,function(t,X){t=Y.call(R,t,X,this);Array.isArray(t)?Z.push.apply(Z,t):Z.push(t)});
return Z}});
Bf("String.prototype.codePointAt",function(D){return D?D:function(Y){var R=cf(this,null,"codePointAt"),Z=R.length;Y=Number(Y)||0;if(Y>=0&&Y<Z){Y|=0;var t=R.charCodeAt(Y);if(t<55296||t>56319||Y+1===Z)return t;Y=R.charCodeAt(Y+1);return Y<56320||Y>57343?t:(t-55296)*1024+Y+9216}}});
Bf("String.fromCodePoint",function(D){return D?D:function(Y){for(var R="",Z=0;Z<arguments.length;Z++){var t=Number(arguments[Z]);if(t<0||t>1114111||t!==Math.floor(t))throw new RangeError("y`"+t);t<=65535?R+=String.fromCharCode(t):(t-=65536,R+=String.fromCharCode(t>>>10&1023|55296),R+=String.fromCharCode(t&1023|56320))}return R}});
Bf("String.prototype.trimLeft",function(D){function Y(){return this.replace(/^[\s\xa0]+/,"")}
return D||Y});
Bf("String.prototype.trimStart",function(D){return D||String.prototype.trimLeft});
Bf("String.prototype.padStart",function(D){return D?D:function(Y,R){var Z=cf(this,null,"padStart");Y-=Z.length;R=R!==void 0?String(R):" ";return(Y>0&&R?R.repeat(Math.ceil(Y/R.length)).substring(0,Y):"")+Z}});
Bf("Promise.prototype.finally",function(D){return D?D:function(Y){return this.then(function(R){return Promise.resolve(Y()).then(function(){return R})},function(R){return Promise.resolve(Y()).then(function(){throw R;
})})}});
Bf("Math.imul",function(D){return D?D:function(Y,R){Y=Number(Y);R=Number(R);var Z=Y&65535,t=R&65535;return Z*t+((Y>>>16&65535)*t+Z*(R>>>16&65535)<<16>>>0)|0}});
Bf("Object.hasOwn",function(D){return D?D:function(Y,R){return Object.prototype.hasOwnProperty.call(Y,R)}});
Bf("Math.sign",function(D){return D?D:function(Y){Y=Number(Y);return Y===0||isNaN(Y)?Y:Y>0?1:-1}});
Bf("Array.prototype.flat",function(D){return D?D:function(Y){Y=Y===void 0?1:Y;var R=[];Array.prototype.forEach.call(this,function(Z){Array.isArray(Z)&&Y>0?(Z=Array.prototype.flat.call(Z,Y-1),R.push.apply(R,Z)):R.push(Z)});
return R}});
Bf("String.raw",function(D){return D?D:function(Y,R){if(Y==null)throw new TypeError("z");for(var Z=Y.raw,t=Z.length,X="",M=0;M<t;++M)X+=Z[M],M+1<t&&M+1<arguments.length&&(X+=String(arguments[M+1]));return X}});
Bf("Reflect.ownKeys",function(D){return D?D:function(Y){var R=[],Z=Object.getOwnPropertyNames(Y);Y=Object.getOwnPropertySymbols(Y);for(var t=0;t<Z.length;t++)(Z[t].substring(0,14)=="jscomp_symbol_"?Y:R).push(Z[t]);return R.concat(Y)}});
Bf("Object.getOwnPropertyDescriptors",function(D){return D?D:function(Y){for(var R={},Z=Reflect.ownKeys(Y),t=0;t<Z.length;t++)R[Z[t]]=Object.getOwnPropertyDescriptor(Y,Z[t]);return R}});
Bf("WeakSet",function(D){if(function(){if(!D||!Object.seal)return!1;try{var R=Object.seal({}),Z=Object.seal({}),t=new D([R]);if(!t.has(R)||t.has(Z))return!1;t.delete(R);t.add(Z);return!t.has(R)&&t.has(Z)}catch(X){return!1}}())return D;
var Y=function(R){this.JSC$8758_map_=new WeakMap;if(R){R=_.a(R);for(var Z;!(Z=R.next()).done;)this.add(Z.value)}};
Y.prototype.add=function(R){this.JSC$8758_map_.set(R,!0);return this};
Y.prototype.has=function(R){return this.JSC$8758_map_.has(R)};
Y.prototype.delete=function(R){return this.JSC$8758_map_.delete(R)};
return Y});
Bf("Promise.allSettled",function(D){function Y(Z){return{status:"fulfilled",value:Z}}
function R(Z){return{status:"rejected",reason:Z}}
return D?D:function(Z){var t=this;Z=Array.from(Z,function(X){return t.resolve(X).then(Y,R)});
return t.all(Z)}});
Bf("Number.parseInt",function(D){return D||parseInt});
_._DumpException=window._DumpException||function(D){throw D;};
window._DumpException=_._DumpException;var oeM=window.ytcsi;oeM&&typeof oeM.tick==="function"&&oeM.tick("rses_dpj");var bP5,Y0,Rc,ZD,yLU,N_i,lwo,JLy,A9,kdb;bP5=bP5||{};_.ZU=this||self;_.ix=function(D,Y,R){D=D.split(".");R=R||_.ZU;for(var Z;D.length&&(Z=D.shift());)D.length||Y===void 0?R[Z]&&R[Z]!==Object.prototype[Z]?R=R[Z]:R=R[Z]={}:R[Z]=Y};
Y0=function(D,Y){var R=_.mf("WIZ_global_data.oxN3nb");D=R&&R[D];return D!=null?D:Y};
Rc=_.ZU._F_toggles_default_kevlar_base||[];ZD=function(){};
ZD.get=function(){return null};
_.mf=function(D,Y){D=D.split(".");Y=Y||_.ZU;for(var R=0;R<D.length;R++)if(Y=Y[D[R]],Y==null)return null;return Y};
_.tr=function(D){D.instance_=void 0;D.getInstance=function(){return D.instance_?D.instance_:D.instance_=new D}};
_.P4=function(D){var Y=typeof D;return Y!="object"?Y:D?Array.isArray(D)?"array":Y:"null"};
_.xn=function(D){var Y=_.P4(D);return Y=="array"||Y=="object"&&typeof D.length=="number"};
_.Bo=function(D){var Y=typeof D;return Y=="object"&&D!=null||Y=="function"};
_.Ey=function(D){return Object.prototype.hasOwnProperty.call(D,yLU)&&D[yLU]||(D[yLU]=++N_i)};
yLU="closure_uid_"+(Math.random()*1E9>>>0);N_i=0;lwo=function(D,Y,R){return D.call.apply(D.bind,arguments)};
JLy=function(D,Y,R){if(!D)throw Error();if(arguments.length>2){var Z=Array.prototype.slice.call(arguments,2);return function(){var t=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(t,Z);return D.apply(Y,t)}}return function(){return D.apply(Y,arguments)}};
_.nG=function(D,Y,R){_.nG=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?lwo:JLy;return _.nG.apply(null,arguments)};
_.A4=function(D,Y){var R=Array.prototype.slice.call(arguments,1);return function(){var Z=R.slice();Z.push.apply(Z,arguments);return D.apply(this,Z)}};
_.sb=function(){return Date.now()};
A9=function(D){return D};
_.XN=function(D,Y){function R(){}
R.prototype=Y.prototype;D.superClass_=Y.prototype;D.prototype=new R;D.prototype.constructor=D;D.base=function(Z,t,X){for(var M=Array(arguments.length-2),W=2;W<arguments.length;W++)M[W-2]=arguments[W];return Y.prototype[t].apply(Z,M)}};
kdb=function(D){return D};var U2$,Kj$;_.q=function(D,Y,R,Z){var t=arguments.length,X=t<3?Y:Z===null?Z=Object.getOwnPropertyDescriptor(Y,R):Z,M;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")X=Reflect.decorate(D,Y,R,Z);else for(var W=D.length-1;W>=0;W--)if(M=D[W])X=(t<3?M(X):t>3?M(Y,R,X):M(Y,R))||X;t>3&&X&&Object.defineProperty(Y,R,X)};
_.x=function(D,Y){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(D,Y)};
U2$=function(D,Y){if(Y!==null&&Y!==void 0){if(typeof Y!=="object"&&typeof Y!=="function")throw new TypeError("A");if(R===void 0){if(!Symbol.dispose)throw new TypeError("C");var R=Y[Symbol.dispose]}if(typeof R!=="function")throw new TypeError("D");D.stack.push({value:Y,dispose:R,async:!1})}return Y};
Kj$=function(D){function Y(X){D.error=D.hasError?new SuppressedError(X,D.error,"An error was suppressed during disposal."):X;D.hasError=!0}
function R(){for(;Z=D.stack.pop();)try{if(!Z.async&&t===1)return t=0,D.stack.push(Z),Promise.resolve().then(R);if(Z.dispose){var X=Z.dispose.call(Z.value);if(Z.async)return t|=2,Promise.resolve(X).then(R,function(M){Y(M);return R()})}else t|=1}catch(M){Y(M)}if(t===1)return D.hasError?Promise.reject(D.error):Promise.resolve();
if(D.hasError)throw D.error;}
var Z,t=0;R()};_.XN(_.Yn,Error);_.Yn.prototype.name="CustomError";var hT5;var Ljb=void 0,m2$,q2l=typeof TextDecoder!=="undefined",ZMU,Rjb=typeof String.prototype.isWellFormed==="function",Yy$=typeof TextEncoder!=="undefined";var HPU;_.eH=function(D){for(var Y=[],R=0,Z=0;Z<D.length;Z++){var t=D.charCodeAt(Z);t<128?Y[R++]=t:(t<2048?Y[R++]=t>>6|192:((t&64512)==55296&&Z+1<D.length&&(D.charCodeAt(Z+1)&64512)==56320?(t=65536+((t&1023)<<10)+(D.charCodeAt(++Z)&1023),Y[R++]=t>>18|240,Y[R++]=t>>12&63|128):Y[R++]=t>>12|224,Y[R++]=t>>6&63|128),Y[R++]=t&63|128)}return Y};
HPU=function(D){for(var Y=[],R=0,Z=0;R<D.length;){var t=D[R++];if(t<128)Y[Z++]=String.fromCharCode(t);else if(t>191&&t<224){var X=D[R++];Y[Z++]=String.fromCharCode((t&31)<<6|X&63)}else if(t>239&&t<365){X=D[R++];var M=D[R++],W=D[R++];t=((t&7)<<18|(X&63)<<12|(M&63)<<6|W&63)-65536;Y[Z++]=String.fromCharCode(55296+(t>>10));Y[Z++]=String.fromCharCode(56320+(t&1023))}else X=D[R++],M=D[R++],Y[Z++]=String.fromCharCode((t&15)<<12|(X&63)<<6|M&63)}return Y.join("")};var TU=String.prototype.trim?function(D){return D.trim()}:function(D){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(D)[1]},x2y=/&/g,Pcr=/</g,QLS=/>/g,B_l=/"/g,p0U=/'/g,EeS=/\x00/g,gei=/[\x00&<>"']/;var uh=!!(Rc[0]>>15&1),d2i=!!(Rc[0]&1024),iP5=!!(Rc[0]>>16&1),OPn=!!(Rc[0]&8),cL$=!!(Rc[0]&2),Dh9=!!(Rc[0]&4),YO9=!!(Rc[0]&16),RCb=!!(Rc[0]&128);var ZR9=Y0(1,!0),GU=uh?iP5:Y0(610401301,!1),tWy=uh?OPn:Y0(772657768,!1),sw$=uh?cL$:Y0(513659523,!1),XYi=uh?d2i||!Dh9:Y0(568333945,!0),n4M=uh?YO9:Y0(1331761403,!1),j9l=uh?d2i||!RCb:Y0(748402147,ZR9);var fM,uz9=_.ZU.navigator;fM=uz9?uz9.userAgentData||null:null;var Qc;_.Uy=function(D,Y){return Array.prototype.indexOf.call(D,Y,void 0)};
_.xs=function(D,Y,R){Array.prototype.forEach.call(D,Y,R)};
_.ac=function(D,Y,R){return Array.prototype.filter.call(D,Y,R)};
_.N1=function(D,Y,R){return Array.prototype.map.call(D,Y,R)};
Qc=function(D,Y,R){return Array.prototype.some.call(D,Y,R)};
_.t6l=function(D,Y,R){return Array.prototype.every.call(D,Y,R)};var Mp=function(D){Mp[" "](D);return D};
Mp[" "]=function(){};
var AZo=function(D,Y){try{return Mp(D[Y]),!0}catch(R){}return!1},jEM=function(D,Y,R,Z){Z=Z?Z(Y):Y;
return Object.prototype.hasOwnProperty.call(D,Z)?D[Z]:D[Z]=R(Y)};var aPS,gP,MWy,CL$,zCy,SOn,Yol,TEn,jwU,IPn,YCy,Gh$,VW9,nJS,r_U,wYo;_.ajj=function(){return _.ZU.navigator||null};
aPS=uiU();_.Cw=aUj();gP=eb("Edge");MWy=gP||_.Cw;_.WQ=eb("Gecko")&&!(_.zU(_.Il(),"WebKit")&&!eb("Edge"))&&!(eb("Trident")||eb("MSIE"))&&!eb("Edge");_.zX=_.zU(_.Il(),"WebKit")&&!eb("Edge");CL$=_.zX&&eb("Mobile");_.WNb=_.F5S();zCy=_.GUU();SOn=(b9()?fM.platform==="Linux":eb("Linux"))||_.Vbi();Yol=_.jlM();TEn=IUy();jwU=eb("iPad");IPn=eb("iPod");_.FN9=_.yU();YCy=_.zU(_.Il(),"KaiOS");Gh$=function(){var D=_.ZU.document;return D?D.documentMode:void 0};
a:{var fPj="",eCb=function(){var D=_.Il();if(_.WQ)return/rv:([^\);]+)(\)|;)/.exec(D);if(gP)return/Edge\/([\d\.]+)/.exec(D);if(_.Cw)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(D);if(_.zX)return/WebKit\/(\S+)/.exec(D);if(aPS)return/(?:Version)[ \/]?(\S+)/.exec(D)}();
eCb&&(fPj=eCb?eCb[1]:"");if(_.Cw){var A_r=Gh$();if(A_r!=null&&A_r>parseFloat(fPj)){VW9=String(A_r);break a}}VW9=fPj}nJS=VW9;r_U={};_.Ss=function(D){return jEM(r_U,D,function(){return _.jb(nJS,D)>=0})};
if(_.ZU.document&&_.Cw){var $hi=Gh$();wYo=$hi?$hi:parseInt(nJS,10)||void 0}else wYo=void 0;_.vJl=wYo;var Au5,nx$,oJb;_.TX=$n();Au5=IUy()||eb("iPod");nx$=eb("iPad");oJb=_.W5U();_.js=_.vo();_.UK=_.C99()&&!_.yU();var bRy,Ic,qGb,u8U,NEr,y_r;bRy={};Ic=null;qGb=_.WQ||_.zX||typeof _.ZU.btoa=="function";_.rb=function(D,Y){Y===void 0&&(Y=0);y_r();Y=bRy[Y];for(var R=Array(Math.floor(D.length/3)),Z=Y[64]||"",t=0,X=0;t<D.length-2;t+=3){var M=D[t],W=D[t+1],z=D[t+2],I=Y[M>>2];M=Y[(M&3)<<4|W>>4];W=Y[(W&15)<<2|z>>6];z=Y[z&63];R[X++]=I+M+W+z}I=0;z=Z;switch(D.length-t){case 2:I=D[t+1],z=Y[(I&15)<<2]||Z;case 1:D=D[t],R[X]=Y[D>>2]+Y[(D&3)<<4|I>>4]+z+Z}return R.join("")};
u8U=function(D){var Y="";NEr(D,function(R){Y+=String.fromCharCode(R)});
return Y};
_.opb=function(D){var Y=[];NEr(D,function(R){Y.push(R)});
return Y};
_.dr=function(D){var Y=D.length,R=Y*3/4;R%3?R=Math.floor(R):_.CM("=.",D[Y-1])&&(R=_.CM("=.",D[Y-2])?R-2:R-1);var Z=new Uint8Array(R),t=0;NEr(D,function(X){Z[t++]=X});
return t!==R?Z.subarray(0,t):Z};
NEr=function(D,Y){function R(z){for(;Z<D.length;){var I=D.charAt(Z++),F=Ic[I];if(F!=null)return F;if(!_.M$(I))throw Error("H`"+I);}return z}
y_r();for(var Z=0;;){var t=R(-1),X=R(0),M=R(64),W=R(64);if(W===64&&t===-1)break;Y(t<<2|X>>4);M!=64&&(Y(X<<4&240|M>>2),W!=64&&Y(M<<6&192|W))}};
y_r=function(){if(!Ic){Ic={};for(var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Y=["+/=","+/","-_=","-_.","-_"],R=0;R<5;R++){var Z=D.concat(Y[R].split(""));bRy[R]=Z;for(var t=0;t<Z.length;t++){var X=Z[t];Ic[X]===void 0&&(Ic[X]=t)}}}};var Qly=typeof Uint8Array!=="undefined",JSr=!_.Cw&&typeof btoa==="function",kUS=/[-_.]/g,Nri={"-":"+",_:"/",".":"="},rz={};var VV,J_n;VV=function(D,Y){if(Y!==rz)throw Error("J");this.JSC$8788_value_=D;if(D!=null&&D.length===0)throw Error("I");};
_.wz=function(){return lPl||(lPl=new VV(null,rz))};
J_n=function(D){return new Uint8Array(hKr(D)||0)};
VV.prototype.isEmpty=function(){return this.JSC$8788_value_==null};
VV.prototype.sizeBytes=function(){var D=hKr(this);return D?D.length:0};
var hKr=function(D){if(rz!==rz)throw Error("J");var Y=D.JSC$8788_value_;Y==null||Qly&&Y!=null&&Y instanceof Uint8Array||(typeof Y==="string"?Y=U$b(Y):(_.P4(Y),Y=null));return Y==null?Y:D.JSC$8788_value_=Y},lPl;var hjM=void 0;var t1=typeof Symbol==="function"&&typeof Symbol()==="symbol",kh5=YE("jas",void 0,!0),kES=YE(void 0,"0di"),db=YE(void 0,"1oa"),nt=YE(void 0,Symbol()),iL9=YE(void 0,"0ub"),c1l=YE(void 0,"0ubs"),FSn=YE(void 0,"0ubsb"),Fh$=YE(void 0,"0actk"),I9=YE("m_m","messagePrototypeMarker",!0),M0U=YE(void 0,"vps"),EEo=YE();var qyU,m$5,Hu,UhU;qyU={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};m$5=Object.defineProperties;_.sL=t1?kh5:"internalArrayState";UhU=[];uU(UhU,7);Hu=Object.freeze(UhU);var VI={},W4={},KNM=function(D,Y,R){this.iterable=D;this.mapper=Y;this.thisArg=R};
KNM.prototype.next=function(){var D=this.iterable.next();D.done||(D.value=this.mapper.call(this.thisArg,D.value));return D};
KNM.prototype[Symbol.iterator]=function(){return this};
var hC9=Object.freeze({}),bU={};_.LNl=lU(function(D){return D!==null&&D!==void 0});var iM9=lU(function(D){return typeof D==="number"}),d$5=lU(function(D){return typeof D==="string"}),cSn=lU(function(D){return typeof D==="boolean"}),mhy=lU(function(D){return D!=null&&typeof D==="object"&&typeof D.then==="function"}),xEy=lU(function(D){return typeof D==="function"}),De=lU(function(D){return!!D&&(typeof D==="object"||typeof D==="function")});var OMU=typeof _.ZU.BigInt==="function"&&typeof _.ZU.BigInt(0)==="bigint";var oES=lU(function(D){return OMU?D>=qO$&&D<=HRr:D[0]==="-"?DUS(D,xhU):DUS(D,PLr)}),xhU=Number.MIN_SAFE_INTEGER.toString(),qO$=OMU?BigInt(Number.MIN_SAFE_INTEGER):void 0,PLr=Number.MAX_SAFE_INTEGER.toString(),HRr=OMU?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Qw$=typeof Uint8Array.prototype.slice==="function",UL=0,KL=0,fG5;var Zp,XE,QV,a9,W7b;Zp=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Mk=typeof BigInt==="function"?BigInt.asUintN:void 0;XE=Number.isSafeInteger;QV=Number.isFinite;a9=Math.trunc;W7b=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Ck9={};var QzU={},BEU=function(){try{var D=function(){return zTU(Map,[],this.constructor)};
_.n(D,Map);Mp(new D);return!1}catch(Y){return!0}}(),FN=function(){this.JSC$8808_map_=new Map};
_.u=FN.prototype;_.u.get=function(D){return this.JSC$8808_map_.get(D)};
_.u.set=function(D,Y){this.JSC$8808_map_.set(D,Y);this.size=this.JSC$8808_map_.size;return this};
_.u.delete=function(D){D=this.JSC$8808_map_.delete(D);this.size=this.JSC$8808_map_.size;return D};
_.u.clear=function(){this.JSC$8808_map_.clear();this.size=this.JSC$8808_map_.size};
_.u.has=function(D){return this.JSC$8808_map_.has(D)};
_.u.entries=function(){return this.JSC$8808_map_.entries()};
_.u.keys=function(){return this.JSC$8808_map_.keys()};
_.u.values=function(){return this.JSC$8808_map_.values()};
_.u.forEach=function(D,Y){return this.JSC$8808_map_.forEach(D,Y)};
FN.prototype[Symbol.iterator]=function(){return this.entries()};
var o9=function(){if(BEU)return Object.setPrototypeOf(FN.prototype,Map.prototype),Object.defineProperties(FN.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),FN;var D=function(){return zTU(Map,[],this.constructor)};
_.n(D,Map);return D}(),ft=function(D,Y,R,Z){R=R===void 0?mUy:R;
Z=Z===void 0?mUy:Z;var t=o9.call(this)||this;t.arrayState=D[_.sL]|0;t.valueCtor=Y;t.keyToApi=R;t.valueToApi=t.valueCtor?HLy:Z;for(var X=0;X<D.length;X++){var M=D[X],W=R(M[0],!1,!0),z=M[1];Y?z===void 0&&(z=null):z=Z(M[1],!1,!0,void 0,void 0,t.arrayState);o9.prototype.set.call(t,W,z)}return t};
_.n(ft,o9);var pYo=function(D){if(D.arrayState&2)throw Error("N");};
_.u=ft.prototype;_.u.clear=function(){pYo(this);o9.prototype.clear.call(this)};
_.u.delete=function(D){pYo(this);return o9.prototype.delete.call(this,this.keyToApi(D,!0,!1))};
_.u.entries=function(){if(this.valueCtor){var D=o9.prototype.keys.call(this);D=new KNM(D,xUU,this)}else D=o9.prototype.entries.call(this);return D};
_.u.values=function(){if(this.valueCtor){var D=o9.prototype.keys.call(this);D=new KNM(D,ft.prototype.get,this)}else D=o9.prototype.values.call(this);return D};
_.u.forEach=function(D,Y){this.valueCtor?o9.prototype.forEach.call(this,function(R,Z,t){D.call(Y,t.get(Z),Z,t)}):o9.prototype.forEach.call(this,D,Y)};
_.u.set=function(D,Y){pYo(this);D=this.keyToApi(D,!0,!1);return D==null?this:Y==null?(o9.prototype.delete.call(this,D),this):o9.prototype.set.call(this,D,this.valueToApi(Y,!0,!0,this.valueCtor,!1,this.arrayState))};
_.u.has=function(D){return o9.prototype.has.call(this,this.keyToApi(D,!1,!1))};
_.u.get=function(D){D=this.keyToApi(D,!1,!1);var Y=o9.prototype.get.call(this,D);if(Y!==void 0){var R=this.valueCtor;return R?(R=this.valueToApi(Y,!1,!0,R,this.callToMutableOnAccess,this.arrayState),R!==Y&&o9.prototype.set.call(this,D,R),R):Y}};
ft.prototype[Symbol.iterator]=function(){return this.entries()};
ft.prototype.toJSON=void 0;var PUS;var Zto=function(){},Yz$=function(D,Y){for(var R in D)!isNaN(R)&&Y(D,+R,D[R])},t05=function(D){var Y=new Zto;
Yz$(D,function(R,Z,t){Y[Z]=m7(t)});
Y.reviveUnknownFields=D.reviveUnknownFields;return Y},gEy={reviveIntoImmutable:!0};var RKy;var Who,zKU;var EJj,pt,Sq,Gz,gJU,w0,Io,dho,iRo,bh,ORb,yn,Jr,k0;EJj=_.J1(0);_.GX={};_.Vn=function(D,Y,R,Z,t){Y=pt(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y,R,t);if(Y!==null||Z&&D.noLegacyNull!==W4)return Y};
pt=function(D,Y,R,Z){if(Y===-1)return null;var t=Y+(R?0:-1),X=D.length-1;if(!(X<1+(R?0:-1))){if(t>=X){var M=D[X];if(M!=null&&typeof M==="object"&&M.constructor===Object){R=M[Y];var W=!0}else if(t===X)R=M;else return}else R=D[t];if(Z&&R!=null){Z=Z(R);if(Z==null)return Z;if(!Object.is(Z,R))return W?M[Y]=Z:D[t]=Z,Z}return R}};
_.XG=function(D,Y,R,Z){Kt(D);var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Lt(t,t[_.sL]|0,Y,R,Z);return D};
_.fw=function(D,Y,R){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return lpn(D,D[_.sL]|0,Y,R)!==void 0};
_.es=function(D,Y,R,Z){var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return lpn(t,t[_.sL]|0,Y,Gz(D,Z,R))!==void 0};
_.R0=function(D){return D===hC9?2:4};
_.Ar=function(D,Y){D=_.Vn(D,Y,void 0,void 0,$kU);return D==null?_.wz():D};
Sq=function(D,Y,R,Z){Kt(D);var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=t[_.sL]|0;if(Z==null){var M=bt5(t);if(y9M(M,t,X,R)===Y)M.set(R,0);else return D}else X=NbU(t,X,R,Y);Lt(t,X,Y,Z);return D};
_.nw=function(D,Y,R,Z){var t=D[_.sL]|0,X=NU(t);t=NbU(D,t,R,Y,X);Lt(D,t,Y,Z,X)};
Gz=function(D,Y,R){return _.r0(D,Y)===R?R:-1};
_.r0=function(D,Y){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return y9M(bt5(D),D,void 0,Y,void 0)};
gJU=function(D,Y,R){var Z=D[_.sL]|0,t=NU(Z),X=pt(D,R,t);if(X!=null&&X[I9]===VI){if(!zE(X))return Uz(X),X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var M=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(X)&&(M=X);if(M){var W=M[_.sL]|0;W&2&&(M=J9(M,W))}M=Tb$(M,Y,!0);M!==X&&Lt(D,Z,R,M,t);return M};
_.tP=function(D,Y,R,Z){var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=t[_.sL]|0;Y=lpn(t,X,Y,R,Z);if(Y==null)return Y;X=t[_.sL]|0;if(!zE(D,X)){var M=qLy(Y);M!==Y&&(Uz(D)&&(t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=t[_.sL]|0),Y=M,X=Lt(t,X,R,Y,Z),h9(t,X))}return Y};
_.Yh=function(D,Y,R,Z){var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return J9U(D,t,t[_.sL]|0,Y,R,Z,!1,!0)};
_.To=function(D,Y,R,Z){R=kTU(R);_.XG(D,Y,R,Z);R&&!zE(R)&&h9(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
_.jf=function(D,Y,R,Z){Z=kTU(Z);Sq(D,Y,R,Z);Z&&!zE(Z)&&h9(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
w0=function(D,Y,R){Kt(D);var Z=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=Z[_.sL]|0;if(R==null)return Lt(Z,t,Y),D;for(var X=R===Hu?7:R[_.sL]|0,M=X,W=Bu(X),z=W||Object.isFrozen(R),I=!0,F=!0,G=0;G<R.length;G++){var V=R[G];W||(V=zE(V),I&&(I=!V),F&&(F=V))}W||(X=I?13:5,X=F?X&-4097:X|4096);z&&X===M||(R=m7(R),M=0,X=xK(X,t));X!==M&&uU(R,X);t=Lt(Z,t,Y,R);2&X||!(4096&X||16&X)||h9(Z,t);return D};
Io=function(D,Y,R,Z){Khn(D,Y,R,Z);return D};
dho=function(D,Y,R){Khn(D,Y,$0,void 0,R,1,!0);return D};
_.vQ=function(D,Y,R){D=_.Vn(D,Y,void 0,R);Y=typeof D;D=D==null?D:Y==="bigint"?_.J1((0,_.Mk)(64,D)):_.B4(D)?Y==="string"?_.vEi(D):_.w4r(D):void 0;return D};
_.oc=function(D,Y){var R=R===void 0?!1:R;var Z;return(Z=_.CUn(_.Vn(D,Y)))!=null?Z:R};
_.ZC=function(D,Y,R){R=R===void 0?0:R;var Z;return(Z=_.c4(_.Vn(D,Y)))!=null?Z:R};
iRo=function(D,Y){var R=R===void 0?0:R;D=_.SLU(_.Vn(D,Y));return D!=null?D:R};
bh=function(D,Y,R){R=R===void 0?EJj:R;var Z;return(Z=_.Nzr(_.Vn(D,Y)))!=null?Z:R};
ORb=function(D){var Y=Y===void 0?EJj:Y;var R;return(R=_.vQ(D,23))!=null?R:Y};
yn=function(D,Y){var R=R===void 0?0:R;var Z;return(Z=_.Vn(D,Y,void 0,void 0,_.a_U))!=null?Z:R};
_.Np=function(D,Y,R,Z){R=R===void 0?"":R;var t;return(t=_.TT(_.Vn(D,Y,Z)))!=null?t:R};
_.lh=function(D,Y){var R=R===void 0?0:R;var Z;return(Z=_.iU(_.Vn(D,Y)))!=null?Z:R};
Jr=function(D,Y){var R=R===void 0?"0":R;D=y1i(_.Vn(D,Y),!0);return D!=null?D:R};
k0=function(D,Y,R){return _.Np(D,Gz(D,R,Y))};
_.Ub=function(D,Y,R,Z){return _.tP(D,Y,Gz(D,Z,R),void 0)};
_.jH=function(D,Y){return _.TT(_.Vn(D,Y,void 0,_.GX))};
_.ug=function(D,Y,R){return _.XG(D,Y,MDU(R))};
_.ll=function(D,Y,R){return _.gb(D,Y,MDU(R),!1)};
_.Kw=function(D,Y,R){return _.XG(D,Y,_.OL(R))};
_.fI=function(D,Y,R){return _.XG(D,Y,sz(R))};
_.ew=function(D,Y,R){return _.XG(D,Y,Wu(R))};
_.E0=function(D,Y,R,Z){return _.gb(D,Y,Wu(R),"",Z)};
_.s1=function(D,Y,R){return _.XG(D,Y,R==null?R:_.pL(R))};
_.hr=function(D,Y,R){return _.gb(D,Y,R==null?R:_.pL(R),0)};var ik=function(D,Y,R){this.buffer=D;if(R&&!Y)throw Error();this.JSC$8820_isImmutable=Y};var c_o=function(D,Y,R,Z){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8823_start_=0;this.init(D,Y,R,Z)},Lw,YV5,RZi,too,XZ9,Dnj;
_.u=c_o.prototype;_.u.init=function(D,Y,R,Z){var t=Z===void 0?{}:Z;Z=t.aliasBytesFields===void 0?!1:t.aliasBytesFields;t=t.treatNewDataAsImmutable===void 0?!1:t.treatNewDataAsImmutable;this.aliasBytesFields=Z;this.treatNewDataAsImmutable=t;D&&(D=LhM(D,this.treatNewDataAsImmutable),this.bytes_=D.buffer,this.bytesAreImmutable_=D.JSC$8820_isImmutable,this.JSC$8823_start_=Y||0,this.end_=R!==void 0?this.JSC$8823_start_+R:this.bytes_.length,this.cursor_=this.JSC$8823_start_)};
_.u.free=function(){this.clear();Dnj.length<100&&Dnj.push(this)};
_.u.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8823_start_=0;this.aliasBytesFields=!1};
_.u.reset=function(){this.cursor_=this.JSC$8823_start_};
_.u.atEnd=function(){return this.cursor_==this.end_};
_.mo=function(D,Y){var R=0,Z=0,t=0,X=D.bytes_,M=D.cursor_;do{var W=X[M++];R|=(W&127)<<t;t+=7}while(t<32&&W&128);if(t>32)for(Z|=(W&127)>>4,t=3;t<32&&W&128;t+=7)W=X[M++],Z|=(W&127)<<t;Lw(D,M);if(!(W&128))return Y(R>>>0,Z>>>0);throw Error();};
Lw=function(D,Y){D.cursor_=Y;if(Y>D.end_)throw Error();};
_.qp=function(D){var Y=D.bytes_,R=D.cursor_,Z=Y[R++],t=Z&127;if(Z&128&&(Z=Y[R++],t|=(Z&127)<<7,Z&128&&(Z=Y[R++],t|=(Z&127)<<14,Z&128&&(Z=Y[R++],t|=(Z&127)<<21,Z&128&&(Z=Y[R++],t|=Z<<28,Z&128&&Y[R++]&128&&Y[R++]&128&&Y[R++]&128&&Y[R++]&128&&Y[R++]&128)))))throw Error();Lw(D,R);return t};
_.HQ=function(D){var Y=D.bytes_,R=D.cursor_,Z=Y[R],t=Y[R+1],X=Y[R+2];Y=Y[R+3];Lw(D,D.cursor_+4);return(Z<<0|t<<8|X<<16|Y<<24)>>>0};
YV5=function(D){var Y=_.HQ(D);D=_.HQ(D);return ZLr(Y,D)};
RZi=function(D){var Y=_.HQ(D),R=_.HQ(D);D=(R>>31)*2+1;var Z=R>>>20&2047;Y=4294967296*(R&1048575)+Y;return Z==2047?Y?NaN:D*Infinity:Z==0?D*4.9E-324*Y:D*Math.pow(2,Z-1075)*(Y+4503599627370496)};
_.Z7b=function(D){for(var Y=0,R=D.cursor_,Z=R+10,t=D.bytes_;R<Z;){var X=t[R++];Y|=X;if((X&128)===0)return Lw(D,R),!!(Y&127)}throw Error();};
too=function(D,Y){if(Y<0)throw Error();var R=D.cursor_;Y=R+Y;if(Y>D.end_)throw Error();D.cursor_=Y;return R};
XZ9=function(D,Y){if(Y==0)return _.wz();var R=too(D,Y);D.aliasBytesFields&&D.bytesAreImmutable_?R=D.bytes_.subarray(R,R+Y):(D=D.bytes_,Y=R+Y,R=R===Y?new Uint8Array(0):Qw$?D.slice(R,Y):new Uint8Array(D.subarray(R,Y)));return R.length==0?_.wz():new VV(R,rz)};
Dnj=[];var XTn=function(D,Y,R,Z){if(Dnj.length){var t=Dnj.pop();t.init(D,Y,R,Z);D=t}else D=new c_o(D,Y,R,Z);this.decoder_=D;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;sB9(this,Z)},sB9=function(D,Y){Y=Y===void 0?{}:Y;
D.discardUnknownFields=Y.discardUnknownFields===void 0?!1:Y.discardUnknownFields},Mf$=function(D,Y,R,Z){if(uki.length){var t=uki.pop();
sB9(t,Z);t.decoder_.init(D,Y,R,Z);return t}return new XTn(D,Y,R,Z)},Z$S,sJi,aZ9,uki;
XTn.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;uki.length<100&&uki.push(this)};
XTn.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Z$S=function(D){if(D.decoder_.atEnd())return!1;D.fieldCursor_=D.decoder_.cursor_;var Y=_.qp(D.decoder_)>>>0,R=Y>>>3;Y&=7;if(!(Y>=0&&Y<=5))throw Error();if(R<1)throw Error();D.nextField_=R;D.nextWireType_=Y;return!0};
sJi=function(D){switch(D.nextWireType_){case 0:D.nextWireType_!=0?sJi(D):_.Z7b(D.decoder_);break;case 1:D=D.decoder_;Lw(D,D.cursor_+8);break;case 2:if(D.nextWireType_!=2)sJi(D);else{var Y=_.qp(D.decoder_)>>>0;D=D.decoder_;Lw(D,D.cursor_+Y)}break;case 5:D=D.decoder_;Lw(D,D.cursor_+4);break;case 3:Y=D.nextField_;do{if(!Z$S(D))throw Error();if(D.nextWireType_==4){if(D.nextField_!=Y)throw Error();break}sJi(D)}while(1);break;default:throw Error();}};
aZ9=function(D,Y,R){var Z=D.decoder_.end_,t=_.qp(D.decoder_)>>>0;t=D.decoder_.cursor_+t;var X=t-Z;X<=0&&(D.decoder_.end_=t,R(Y,D,void 0,void 0,void 0),X=t-D.decoder_.cursor_);if(X)throw Error();D.decoder_.cursor_=t;D.decoder_.end_=Z};
_.Moj=function(D){var Y=_.qp(D.decoder_)>>>0;D=D.decoder_;var R=too(D,Y);D=D.bytes_;if(q2l){var Z=D,t;(t=m2$)||(t=m2$=new TextDecoder("utf-8",{fatal:!0}));Y=R+Y;Z=R===0&&Y===Z.length?Z:Z.subarray(R,Y);try{var X=t.decode(Z)}catch(I){if(Ljb===void 0){try{t.decode(new Uint8Array([128]))}catch(F){}try{t.decode(new Uint8Array([97])),Ljb=!0}catch(F){Ljb=!1}}!Ljb&&(m2$=void 0);throw I;}}else{X=R;Y=X+Y;R=[];for(var M=null,W,z;X<Y;)W=D[X++],W<128?R.push(W):W<224?X>=Y?Rl():(z=D[X++],W<194||(z&192)!==128?(X--,
Rl()):R.push((W&31)<<6|z&63)):W<240?X>=Y-1?Rl():(z=D[X++],(z&192)!==128||W===224&&z<160||W===237&&z>=160||((t=D[X++])&192)!==128?(X--,Rl()):R.push((W&15)<<12|(z&63)<<6|t&63)):W<=244?X>=Y-2?Rl():(z=D[X++],(z&192)!==128||(W<<28)+(z-144)>>30!==0||((t=D[X++])&192)!==128||((Z=D[X++])&192)!==128?(X--,Rl()):(W=(W&7)<<18|(z&63)<<12|(t&63)<<6|Z&63,W-=65536,R.push((W>>10&1023)+55296,(W&1023)+56320))):Rl(),R.length>=8192&&(M=D$r(M,R),R.length=0);X=D$r(M,R)}return X};
_.CWS=function(D){var Y=_.qp(D.decoder_)>>>0;return XZ9(D.decoder_,Y)};
_.WH5=function(D,Y,R){var Z=_.qp(D.decoder_)>>>0;for(Z=D.decoder_.cursor_+Z;D.decoder_.cursor_<Z;)R.push(Y(D.decoder_))};
uki=[];var zZU=function(D,Y){this.JSC$8830_lo=D>>>0;this.JSC$8830_hi=Y>>>0},TAU=function(D){if(!D)return SVU||(SVU=new zZU(0,0));
if(!/^\d+$/.test(D))return null;ubS(D);return new zZU(UL,KL)},SVU,rf9=function(D,Y){this.JSC$8832_lo=D>>>0;
this.JSC$8832_hi=Y>>>0},Af5=function(D){if(!D)return jBS||(jBS=new rf9(0,0));
if(!/^-?\d+$/.test(D))return null;ubS(D);return new rf9(UL,KL)},jBS;var x0=function(){this.JSC$8834_buffer_=[]},n75,IZU;
x0.prototype.length=function(){return this.JSC$8834_buffer_.length};
x0.prototype.end=function(){var D=this.JSC$8834_buffer_;this.JSC$8834_buffer_=[];return D};
n75=function(D,Y,R){for(;R>0||Y>127;)D.JSC$8834_buffer_.push(Y&127|128),Y=(Y>>>7|R<<25)>>>0,R>>>=7;D.JSC$8834_buffer_.push(Y)};
IZU=function(D,Y){for(;Y>127;)D.JSC$8834_buffer_.push(Y&127|128),Y>>>=7;D.JSC$8834_buffer_.push(Y)};
_.wZl=function(D,Y){if(Y>=0)IZU(D,Y);else{for(var R=0;R<9;R++)D.JSC$8834_buffer_.push(Y&127|128),Y>>=7;D.JSC$8834_buffer_.push(1)}};
x0.prototype.writeUint8=function(D){this.JSC$8834_buffer_.push(D>>>0&255)};
_.uT=function(D,Y){D.JSC$8834_buffer_.push(Y>>>0&255);D.JSC$8834_buffer_.push(Y>>>8&255);D.JSC$8834_buffer_.push(Y>>>16&255);D.JSC$8834_buffer_.push(Y>>>24&255)};
x0.prototype.writeInt8=function(D){this.JSC$8834_buffer_.push(D>>>0&255)};var FHy,RJ,v7b,yfM;FHy=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new x0};
RJ=function(D,Y){Y.length!==0&&(D.blocks_.push(Y),D.totalLength_+=Y.length)};
_.xkM=function(D,Y){_.sN(D,Y,2);Y=D.encoder_.end();RJ(D,Y);Y.push(D.totalLength_);return Y};
_.Pkl=function(D,Y){var R=Y.pop();for(R=D.totalLength_+D.encoder_.length()-R;R>127;)Y.push(R&127|128),R>>>=7,D.totalLength_++;Y.push(R);D.totalLength_++};
_.sN=function(D,Y,R){IZU(D.encoder_,Y*8+R)};
v7b=function(D,Y,R){if(R!=null){switch(typeof R){case "string":TAU(R)}_.sN(D,Y,1);switch(typeof R){case "number":D=D.encoder_;YLU(R);_.uT(D,UL);_.uT(D,KL);break;case "bigint":R=BigInt.asUintN(64,R);R=new zZU(Number(R&BigInt(4294967295)),Number(R>>BigInt(32)));D=D.encoder_;Y=R.JSC$8830_hi;_.uT(D,R.JSC$8830_lo);_.uT(D,Y);break;default:R=TAU(R),D=D.encoder_,Y=R.JSC$8830_hi,_.uT(D,R.JSC$8830_lo),_.uT(D,Y)}}};
yfM=function(D,Y,R){_.sN(D,Y,2);IZU(D.encoder_,R.length);RJ(D,D.encoder_.end());RJ(D,R)};var mki,fZU,eZM,rMU,wT9;mki=Oz();_.Guo=Oz();_.Vo5=Oz();fZU=Oz();eZM=Oz();_.AM9=Oz();_.PQ=Oz();_.niM=Oz();rMU=Oz();wT9=Oz();_.$nU=Oz();_.vir=Oz();_.Y7=function(D,Y,R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,Y,R)};
_.Y7.prototype.toJSON=function(){return yI(this)};
_.Y7.prototype.serialize=function(D){return JSON.stringify(yI(this,D))};
var LSU=function(D,Y){if(Y==null||Y=="")return new D;Y=JSON.parse(Y);if(!Array.isArray(Y))throw Error("V");return new D(P9b(Y))};
_.Y7.prototype.getExtension=function(D){OLM(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D.fieldIndex);dUr(this,D.fieldIndex);return D.ctor?D.isRepeated?D.getExtensionFn(this,D.ctor,D.fieldIndex,_.R0(),D.JSC$8845_hasMessageId):D.getExtensionFn(this,D.ctor,D.fieldIndex,D.JSC$8845_hasMessageId):D.isRepeated?D.getExtensionFn(this,D.fieldIndex,_.R0(),D.JSC$8845_hasMessageId):D.getExtensionFn(this,D.fieldIndex,D.defaultValue,D.JSC$8845_hasMessageId)};
_.Y7.prototype.clone=function(){var D=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=D[_.sL]|0;return A95(this,D,Y)?eKj(this,D,!0):new this.constructor(J9(D,Y,!1))};
_.Y7.prototype[I9]=VI;_.Y7.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var cu=function(D,Y,R){this.$$binaryReaderFn=D;this.$$binaryWriterFn=Y;D=A9(mki);this.$$isMsg=!!D&&R===D||!1},gKM=qzi(function(D,Y,R,Z,t){if(D.nextWireType_!==2)return!1;
aZ9(D,gJU(Y,Z,R),t);return!0},Q9U),dkM=qzi(function(D,Y,R,Z,t){if(D.nextWireType_!==2)return!1;
aZ9(D,gJU(Y,Z,R),t);return!0},Q9U),WSl=Symbol(),c9j=Symbol(),RES=Symbol(),TgS=Symbol(),uBS=Symbol(),Bbi,puU;var UyU,oi9,b7$,yM5,NAn,lZS,JMn,ku9,Uni,KH5,hZr,mni,qVo,xnU,PWU;UyU=function(D,Y){var R=new FHy;jJo(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R,DG(WSl,CTy,zEU,Y));RJ(R,R.encoder_.end());D=new Uint8Array(R.totalLength_);Y=R.blocks_;for(var Z=Y.length,t=0,X=0;X<Z;X++){var M=Y[X];D.set(M,t);t+=M.length}R.blocks_=[D];return D};
oi9=_.ZG(function(D,Y,R){if(D.nextWireType_!==1)return!1;_.tf(Y,R,RZi(D.decoder_));return!0},eE$,wT9);
b7$=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==1)return!1;_.nw(Y,R,Z,RZi(D.decoder_));return!0},eE$,wT9);
yM5=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==5)return!1;var t=_.HQ(D.decoder_);D=(t>>31)*2+1;var X=t>>>23&255;t&=8388607;_.nw(Y,R,Z,X==255?t?NaN:D*Infinity:X==0?D*1.401298464324817E-45*t:D*Math.pow(2,X-150)*(t+8388608));return!0},function(D,Y,R){Y=_.a_U(Y);
Y!=null&&(_.sN(D,R,5),D=D.encoder_,R=fG5||(fG5=new DataView(new ArrayBuffer(8))),R.setFloat32(0,+Y,!0),KL=0,UL=R.getUint32(0,!0),_.uT(D,UL))},rMU);
_.Qn=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;_.tf(Y,R,_.mo(D.decoder_,tDj));return!0},_.My,_.PQ);
NAn=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;D=_.mo(D.decoder_,tDj);_.tf(Y,R,D===0?void 0:D);return!0},_.My,_.PQ);
lZS=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==0)return!1;_.nw(Y,R,Z,_.mo(D.decoder_,tDj));return!0},_.My,_.PQ);
_.BQ=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;_.tf(Y,R,_.qp(D.decoder_));return!0},$y5,fZU);
JMn=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;D=_.qp(D.decoder_);_.tf(Y,R,D===0?void 0:D);return!0},$y5,fZU);
ku9=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==0)return!1;_.nw(Y,R,Z,_.qp(D.decoder_));return!0},$y5,fZU);
Uni=_.ZG(function(D,Y,R){if(D.nextWireType_!==1)return!1;_.tf(Y,R,YV5(D.decoder_));return!0},_.o7i,_.niM);
KH5=_.VfS(function(D,Y,R){if(D.nextWireType_!==1&&D.nextWireType_!==2)return!1;Y=_.oK$(Y,Y[_.sL]|0,R);D.nextWireType_==2?_.WH5(D,YV5,Y):Y.push(YV5(D.decoder_));return!0},function(D,Y,R){Y=_.Goj(J1o,Y,!1);
if(Y!=null)for(var Z=0;Z<Y.length;Z++)v7b(D,R,Y[Z])},_.niM);
_.pw=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;_.tf(Y,R,_.Z7b(D.decoder_));return!0},_.b$l,_.Guo);
hZr=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==0)return!1;_.nw(Y,R,Z,_.Z7b(D.decoder_));return!0},_.b$l,_.Guo);
_.Eb=_.ZG(function(D,Y,R){if(D.nextWireType_!==2)return!1;_.tf(Y,R,_.Moj(D));return!0},_.Ngy,_.Vo5);
_.LHr=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==2)return!1;_.nw(Y,R,Z,_.Moj(D));return!0},_.Ngy,_.Vo5);
mni=_.VfS(function(D,Y,R){if(D.nextWireType_!==2)return!1;D=_.Moj(D);_.oK$(Y,Y[_.sL]|0,R).push(D);return!0},function(D,Y,R){Y=_.Goj(_.TT,Y,!0);
if(Y!=null)for(var Z=0;Z<Y.length;Z++){var t=D,X=R,M=Y[Z];M!=null&&yfM(t,X,tbo(M))}},_.Vo5);
qVo=void 0;qVo=qVo===void 0?mki:qVo;_.g0=new cu(function(D,Y,R,Z,t){if(D.nextWireType_!==2)return!1;Z=Tb$(void 0,Z,!0);_.oK$(Y,Y[_.sL]|0,R).push(Z);aZ9(D,Z,t);return!0},function(D,Y,R,Z,t){if(Array.isArray(Y))for(var X=0;X<Y.length;X++)lGy(D,Y[X],R,Z,t)},qVo);
_.d0=qzi(function(D,Y,R,Z,t,X){if(D.nextWireType_!==2)return!1;var M=Y[_.sL]|0;NbU(Y,M,X,R,NU(M));Y=gJU(Y,Z,R);aZ9(D,Y,t);return!0},lGy);
_.H7U=_.ZG(function(D,Y,R){if(D.nextWireType_!==2)return!1;_.tf(Y,R,_.CWS(D));return!0},_.JfU,_.$nU);
xnU=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==2)return!1;_.nw(Y,R,Z,_.CWS(D));return!0},_.JfU,_.$nU);
PWU=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==0)return!1;_.nw(Y,R,Z,_.qp(D.decoder_)>>>0);return!0},function(D,Y,R){Y=_.SLU(Y);
Y!=null&&Y!=null&&(_.sN(D,R,0),IZU(D.encoder_,Y))},eZM);
_.ih=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;_.tf(Y,R,_.qp(D.decoder_));return!0},_.kor,_.vir);var pTi=function(){var D=QBr,Y=BAb;this.fieldIndex=175237375;this.ctor=Y;this.isRepeated=0;this.getExtensionFn=_.tP;this.defaultValue=void 0;this.JSC$8845_hasMessageId=D.messageId!=null?bU:void 0};
pTi.prototype.register=function(){Mp(this)};var Eio=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Eio,_.Y7);var giM=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(giM,_.Y7);var H$i=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(H$i,_.Y7);var dn5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(dn5,_.Y7);var i7l=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(i7l,_.Y7);var O7U=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(O7U,_.Y7);var cMU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(cMU,_.Y7);cMU.prototype.getData=function(){return _.Ar(this,2)};var DeU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(DeU,_.Y7);var Ypy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Ypy,_.Y7);Ypy.prototype.getStyle=function(){return _.tP(this,Eio,1)};var Sf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Sf,_.Y7);Sf.prototype.getPayloadCase=function(){return _.r0(this,Go)};
Sf.prototype.getStyle=function(){return _.Ub(this,Ypy,6,Go)};
var RWr=function(){var D=new Sf,Y=new i7l;return _.jf(D,7,Go,Y)},ZEU=function(){var D=new Sf,Y=new O7U;
return _.jf(D,8,Go,Y)},Go=[1,
2,3,4,5,6,7,8];var trl=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(trl,_.Y7);var sxr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(sxr,_.Y7);var Xvj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Xvj,_.Y7);var uy$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(uy$,_.Y7);var ar9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(ar9,_.Y7);var Mr$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Mr$,_.Y7);var CN9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(CN9,_.Y7);var WXi=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(WXi,_.Y7);WXi.prototype.getData=function(){return _.Ar(this,2)};var zWU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(zWU,_.Y7);var qNo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(qNo,_.Y7);qNo.prototype.getPayloadCase=function(){return _.r0(this,Ob)};
var Ob=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var cQ=function(D,Y){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=Y===void 0?2:Y};
_.n(cQ,Error);var SpU=Promise;var T5U=function(D){this.channelPromise=D};
T5U.prototype.send=function(D,Y,R){this.channelPromise.then(function(Z){Z.send(D,Y,R)})};var jx5=function(D,Y){this.data=D;this.channel=Y};
jx5.prototype.reply=function(D,Y,R){this.channel.send(D,Y,R)};var IrU=function(D){this.JSC$8911_port_=D};
IrU.prototype.send=function(D,Y,R){R=R===void 0?[]:R;var Z=new MessageChannel;FXn(Z.port1,Y);this.JSC$8911_port_.postMessage(D,[Z.port2].concat(R))};
var GQU=function(D,Y){FXn(D,Y);return new IrU(D)},FXn=function(D,Y){Y&&(D.onmessage=function(R){Y(new jx5(R.data,GQU(R.ports[0])))})};var Vr5=function(D){this.verifier_=D};
Vr5.prototype.verify=function(D){return this.verifier_(D)};
var frl=function(D){var Y=Object.create(null);(typeof D==="string"?[D]:D).forEach(function(R){if(R==="null")throw Error("X");Y[R]=!0});
return function(R){return Y[R]===!0}};_.eWy=function(){if(!_.ZU.addEventListener||!Object.defineProperty)return!1;var D=!1,Y=Object.defineProperty({},"passive",{get:function(){D=!0}});
try{var R=function(){};
_.ZU.addEventListener("test",R,Y);_.ZU.removeEventListener("test",R,Y)}catch(Z){}return D}();var AeM;_.Do=function(D){var Y=D.destination;var R=D.iframe;var Z=D.origin;var t=D.channelName===void 0?"ZNWN1d":D.channelName;var X=D.onMessage===void 0?void 0:D.onMessage;D=D.onEstablished===void 0?void 0:D.onEstablished;return AeM({destination:Y,getSource:function(){return R.contentWindow},
originVerifier:Z instanceof Vr5?Z:typeof Z==="function"?new Vr5(Z):new Vr5(frl(Z)),channelName:t,onMessage:X,onEstablished:D})};
AeM=function(D){var Y=D.destination;var R=D.getSource;var Z=D.originVerifier;var t=D.token===void 0?void 0:D.token;var X=D.channelName;var M=D.onMessage===void 0?void 0:D.onMessage;var W=D.onEstablished===void 0?void 0:D.onEstablished;return new T5U(new SpU(function(z,I){var F=function(G){G.source&&G.source===R()&&Z.verify(G.origin)&&(G.data.n||G.data)===X&&(Y.removeEventListener("message",F,!1),t&&G.data.t!==t?I(Error("Y`"+X+"`"+t+"`"+G.data.t)):(z(GQU(G.ports[0],M)),W&&W(G)))};
Y.addEventListener("message",F,!1)}))};var nA9=function(D){try{D()}catch(Y){tS(Y)}};var wvi=function(D){var Y=this;var R=D.getMessageType;var Z=D.onUnregisteredMessage===void 0?function(){}:D.onUnregisteredMessage;
var t=D.onBeforeRegisteredMessage===void 0?function(){}:D.onBeforeRegisteredMessage;
D=D.onAfterRegisteredMessage===void 0?function(){}:D.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=R;this.onUnregisteredMessage_=Z;this.onBeforeRegisteredMessage_=t;this.onAfterRegisteredMessage_=D;this.onMessage=function(X){return re5(Y,X)}};
wvi.prototype.register=function(D,Y){this.registry_.set(D,Y);return this};
var re5=function(D,Y){var R=D.getMessageType_(Y.data),Z=D.registry_.get(R);Z?(nA9(function(){return D.onBeforeRegisteredMessage_(Y,R)}),nA9(function(){return Z(Y)}),nA9(function(){return D.onAfterRegisteredMessage_(Y,R)})):nA9(function(){return D.onUnregisteredMessage_(Y,R)})};var $eb=function(D){this.JSC$8928_channel_=D},oAM,bEU;
$eb.prototype.send=function(D,Y,R){this.JSC$8928_channel_.send(yI(D),Y,R)};
_.vAU=function(D,Y){return function(R){var Z=new D(R.data);return Y(new jx5(Z,R.channel))}};
oAM=function(D){return function(Y){return D(new jx5(Y.data,new $eb(Y.channel)))}};
bEU=function(D,Y){return oAM(_.vAU(D,Y))};var yeS=function(D,Y,R,Z){this.registry=D;this.delegate=Y;this.receiveMessageConstructor=R;this.createInitMessage=Z;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},myj=function(D){var Y=new wvi({getMessageType:D.getPayloadCase});
return new yeS(Y,new $eb(_.Do({iframe:D.child,destination:window,origin:D.origin,channelName:D.channelName,onMessage:bEU(D.receiveMessageConstructor,Y.onMessage)})),D.receiveMessageConstructor,D.createInitMessage)},N5l=function(D,Y){D.createInitMessage=Y};
yeS.prototype.send=function(D){if(!this.initialised)throw new cQ("Attempted to send a message before initialisation.");this.delegate.send(D)};
var lrn=function(D,Y){return _.C(function(R){if(!D.initialised)throw new cQ("Attempted to send a message before initialisation.");return R.return(new Promise(function(Z){D.delegate.send(Y,bEU(D.receiveMessageConstructor,Z))}))})};
yeS.prototype.init=function(){var D=this;return _.C(function(Y){if(D.initialised)throw new cQ("Attempted to initialise twice. The SDK can only be initialised once.");if(D.createInitMessage!==void 0){var R=D.delegate,Z=R.send,t=D.createInitMessage;var X=new giM;var M=[].concat(_.oK(D.features));X=_.Ez(X,1,M,_.pL);Z.call(R,t.call(D,X))}D.initialised=!0;_.V9(Y)})};
var Yr=function(D,Y){if(D.initialised)throw new cQ('Attempted to set up API "'+Y+'" after initialisation. All APIs must be set up before initialising the SDK.');D.features.add(Y);return D.registry};
_.YF.Object.defineProperties(yeS.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var JeU=function(D){this.channel=D;this.registered=!1};
JeU.prototype.update=function(D){if(this.channel.isInitialised){if(!this.registered)throw new cQ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var Y=new Sf;var R=new dn5;R=_.ug(R,1,D);Y=_.jf(Y,2,Go,R);this.channel.send(Y)}else this.register();this.JSC$8942_audioEnabled=D};
JeU.prototype.register=function(){Yr(this.channel,1);this.registered=!0};
JeU.prototype.isAudioEnabled=function(){return this.JSC$8942_audioEnabled};var kQy=function(D){this.channel=D};
_.u=kQy.prototype;_.u.onFirstFrameReady=function(D){Yr(this.channel,2).register(11,function(Y){Y=_.Ub(Y.data,trl,11,Ob);if(!Y)throw new cQ("Unexpectedly nonexistent GameFirstFrameReadyEvent");D(_.Np(Y,1))})};
_.u.onReady=function(D){Yr(this.channel,2).register(4,function(Y){Y=_.Ub(Y.data,Xvj,4,Ob);if(!Y)throw new cQ("Unexpectedly nonexistent GameReadyEvent");D(_.Np(Y,1))})};
_.u.onLevelComplete=function(D){Yr(this.channel,2).register(5,function(Y){Y=_.Ub(Y.data,uy$,5,Ob);if(!Y)throw new cQ("Unexpectedly nonexistent LevelCompleteEvent");D(_.Np(Y,1),_.ZC(Y,2))})};
_.u.onGameOver=function(D){Yr(this.channel,2).register(6,function(Y){Y=_.Ub(Y.data,sxr,6,Ob);if(!Y)throw new cQ("Unexpectedly nonexistent GameOverEvent");D(_.Np(Y,1))})};
_.u.pause=function(){var D=this;if(!this.channel.isInitialised)return Yr(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new cQ("Using unregistered Game Feature: pause.");var Y=RWr();return new Promise(function(R){return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(lrn(D.channel,Y),2);R();_.V9(Z)})})};
_.u.resume=function(){var D=this;if(!this.channel.isInitialised)return Yr(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new cQ("Using unregistered Game Feature: resume.");var Y=ZEU();return new Promise(function(R){return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(lrn(D.channel,Y),2);R();_.V9(Z)})})};var UeU=function(D){this.channel=D};
UeU.prototype.onReady=function(D){Yr(this.channel,5).register(8,function(Y){if(!_.Ub(Y.data,ar9,8,Ob))throw new cQ("Unexpectedly nonexistent PageReadyEvent");D()})};var KXo=function(D){this.channel=D};
KXo.prototype.onChange=function(D){Yr(this.channel,3).register(7,function(Y){Y=_.Ub(Y.data,Mr$,7,Ob);if(!Y)throw new cQ("Unexpectedly nonexistent ScoreEvent");D(_.Np(Y,1),_.ZC(Y,2))})};var hWU={load:function(){throw new cQ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new cQ("Storage used, but storage.onSave() listener not set!");}},LXr=function(D){this.channel=D;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},meb=function(D){Yr(D.channel,4).register(2,hWU.load).register(3,hWU.save);
D.initialSetupDone=!0};
LXr.prototype.onLoad=function(D){this.initialSetupDone||meb(this);this.loadRegistered||(this.loadRegistered=!0,Yr(this.channel,4).register(2,function(Y){var R,Z,t;return _.C(function(X){if(X.nextAddress==1){R=_.Ub(Y.data,CN9,2,Ob);if(!R)throw new cQ("Unexpectedly nonexistent StorageLoad");Z=_.Np(R,1);return X.yield(D(Z),2)}t=X.yieldResult;var M=Y.reply,W=new Sf;var z=new cMU;z=_.ew(z,1,Z);z=_.XG(z,2,_.$E(t,!1));W=_.jf(W,3,Go,z);M.call(Y,W);_.V9(X)})}))};
LXr.prototype.onSave=function(D){this.initialSetupDone||meb(this);this.saveRegistered||(this.saveRegistered=!0,Yr(this.channel,4).register(3,function(Y){var R,Z,t;return _.C(function(X){if(X.nextAddress==1){R=_.Ub(Y.data,WXi,3,Ob);if(!R)throw new cQ("Unexpectedly nonexistent StorageSave");Z=_.Np(R,1);t=J_n(R.getData());return X.yield(D(Z,t),2)}var M=Y.reply,W=new Sf;var z=new DeU;z=_.ew(z,1,Z);W=_.jf(W,4,Go,z);M.call(Y,W);_.V9(X)})}))};var qpl=function(D){this.channel=D};
qpl.prototype.update=function(D){if(!this.channel.features.has(6))throw new cQ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var Y=new Sf,R=new Ypy;D=_.To(R,1,D);Y=_.jf(Y,6,Go,D);this.channel.send(Y)};
qpl.prototype.register=function(){Yr(this.channel,6)};var HEU=function(D){this.channel=D;this.userActivityLoggingIntervalMs=0};
HEU.prototype.onUserActivity=function(D,Y){this.userActivityLoggingIntervalMs=Y;Yr(this.channel,7).register(9,function(R){if(!_.Ub(R.data,zWU,9,Ob))throw new cQ("Unexpectedly nonexistent ClickEvent");D()})};var xer=function(D){var Y=this;this.channel=D;this.init=this.channel.init.bind(this.channel);this.page=new UeU(this.channel);this.game=new kQy(this.channel);this.audio=new JeU(this.channel);this.score=new KXo(this.channel);this.storage=new LXr(this.channel);this.style=new qpl(this.channel);this.userActivity=new HEU(this.channel);N5l(this.channel,function(R){var Z=new H$i;R=_.To(Z,1,R);R=_.Kw(R,3,Y.userActivity.userActivityLoggingIntervalMs);Z=Y.audio.isAudioEnabled();Z!==void 0&&_.ug(R,2,Z);Z=new Sf;
return _.jf(Z,5,Go,R)})};var PNb=function(){this.timedFunctionContext=0};
PNb.prototype.timeExecution=function(D,Y){var R=this;return function(){var Z=_.UN.apply(0,arguments);R.timedFunctionContext=D;return Y.apply(null,_.oK(Z))}};var Qxj=function(){var D={};this.priorityTasks=(D[3]=[],D[2]=[],D[1]=[],D);this.isFlushing=!1},Sw=function(D,Y,R){var Z=B55(D,R);
D.priorityTasks[R].push(Y);Z&&D.priorityTasks[R].length===1&&D.flush()},B55=function(D,Y){return Object.keys(D.priorityTasks).map(function(R){return Number(R)}).filter(function(R){return!isNaN(R)&&R>Y}).every(function(R){return D.priorityTasks[R].length===0})};
Qxj.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(D){return D.length>0});)pv$(this,3),pv$(this,2),pv$(this,1)}catch(D){throw Object.values(this.priorityTasks).forEach(function(Y){return void Y.splice(0,Y.length)}),D;
}finally{this.isFlushing=!1}}};
var pv$=function(D,Y){for(;B55(D,Y)&&D.priorityTasks[Y].length>0;)D.priorityTasks[Y][0](),D.priorityTasks[Y].shift()};
_.YF.Object.defineProperties(Qxj.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(D){return D.length>0})}}});var g79={};var EAl=globalThis.trustedTypes,PT9=EAl,Bgr;var ef=function(D){this.privateDoNotAccessOrElseWrappedResourceUrl=D};
ef.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var gA$,de9,iEl,OEr,ceU,D$z,YyU,RjD;gA$=_.gY([""]);de9=ER(["\x00"],["\\0"]);iEl=ER(["\n"],["\\n"]);OEr=ER(["\x00"],["\\u0000"]);ceU=_.gY([""]);D$z=ER(["\x00"],["\\0"]);YyU=ER(["\n"],["\\n"]);RjD=ER(["\x00"],["\\u0000"]);_.ZMV=E7l(function(D){return D(gA$)})||E7l(function(D){return D(de9)})||E7l(function(D){return D(iEl)})||E7l(function(D){return D(OEr)});
_.tb4=_.rg(ceU)&&_.rg(D$z)&&_.rg(YyU)&&_.rg(RjD);var lT;_.wg=function(D,Y){this.privateDoNotAccessOrElseWrappedUrl=Y};
_.wg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.slE=$7("about:blank");lT=$7("about:invalid#zClosurez");var dy$=function(D){this.isValid=D},XoE=new dy$(function(D){return/^[^:]*([/?#]|$)/.test(D)}),uiV=bT("data"),aUY=bT("http"),MbD=bT("https"),C9U=bT("ftp"),W5_=bT("mailto"),zj_=bT("intent"),Syz=bT("vnd.youtube"),i$5=[uiV,
aUY,MbD,W5_,C9U,XoE],cfl=f$(function(){return typeof URL==="function"}),TrL=["data:",
"http:","https:","mailto:","ftp:"],Yxr=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var mS=function(D){this.privateDoNotAccessOrElseWrappedHtml=D};
mS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var z2j=f$(function(){return new mS(EAl?EAl.emptyHTML:"")});var jlL={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"},Zji=function(D,Y){var R=Error.call(this,D+" cannot be used with intent "+jlL[Y]);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.type=D;this.intent=Y;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.n(Zji,Error);_.p$=function(D){this.privateDoNotAccessOrElseWrappedScript=D};
_.p$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var uxl=function(D){this.privateDoNotAccessOrElseWrappedAttributePrefix=D};
uxl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var adU="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Dd=function(D){this.privateDoNotAccessOrElseWrappedStyleSheet=D};
Dd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var I45=function(D){var Y=_.mf("window.location.href");D==null&&(D='Unknown Error of type "null/undefined"');if(typeof D==="string")return{message:D,name:"Unknown error",lineNumber:"Not available",fileName:Y,stack:"Not available"};var R=!1;try{var Z=D.lineNumber||D.line||"Not available"}catch(M){Z="Not available",R=!0}try{var t=D.fileName||D.filename||D.sourceURL||_.ZU.$googDebugFname||Y}catch(M){t="Not available",R=!0}Y=IUL(D);if(!(!R&&D.lineNumber&&D.fileName&&D.stack&&D.message&&D.name)){R=D.message;
if(R==null){if(D.constructor&&D.constructor instanceof Function){if(D.constructor.name)R=D.constructor.name;else if(R=D.constructor,Rg[R])R=Rg[R];else{R=String(R);if(!Rg[R]){var X=/function\s+([^\(]+)/m.exec(R);Rg[R]=X?X[1]:"[Anonymous]"}R=Rg[R]}R='Unknown Error of type "'+R+'"'}else R="Unknown Error of unknown type";typeof D.toString==="function"&&Object.prototype.toString!==D.toString&&(R+=": "+D.toString())}return{message:R,name:D.name||"UnknownError",lineNumber:Z,fileName:t,stack:Y||"Not available"}}return{message:D.message,
name:D.name,lineNumber:D.lineNumber,fileName:D.fileName,stack:Y}},IUL=function(D,Y){Y||(Y={});
Y[F51(D)]=!0;var R=D.stack||"",Z=D.cause;Z&&!Y[F51(Z)]&&(R+="\nCaused by: ",Z.stack&&Z.stack.indexOf(Z.toString())==0||(R+=typeof Z==="string"?Z:Z.message+"\n"),R+=IUL(Z,Y));D=D.errors;if(Array.isArray(D)){Z=1;var t;for(t=0;t<D.length&&!(Z>4);t++)Y[F51(D[t])]||(R+="\nInner error "+Z++ +": ",D[t].stack&&D[t].stack.indexOf(D[t].toString())==0||(R+=typeof D[t]==="string"?D[t]:D[t].message+"\n"),R+=IUL(D[t],Y));t<D.length&&(R+="\n... "+(D.length-t)+" more inner errors")}return R},F51=function(D){var Y=
"";
typeof D.toString==="function"&&(Y=""+D);return Y+D.stack},Rg={};var GU_,O3,SG,fUE,ejL,Vbb,mm,QQ,nn_;GU_=function(D,Y){for(var R=D.split("%s"),Z="",t=Array.prototype.slice.call(arguments,1);t.length&&R.length>1;)Z+=R.shift()+t.shift();return Z+R.join("%s")};
_.HD=function(D){return encodeURIComponent(String(D))};
O3=function(D){return decodeURIComponent(D.replace(/\+/g," "))};
SG=function(D){gei.test(D)&&(D.indexOf("&")!=-1&&(D=D.replace(x2y,"&amp;")),D.indexOf("<")!=-1&&(D=D.replace(Pcr,"&lt;")),D.indexOf(">")!=-1&&(D=D.replace(QLS,"&gt;")),D.indexOf('"')!=-1&&(D=D.replace(B_l,"&quot;")),D.indexOf("'")!=-1&&(D=D.replace(p0U,"&#39;")),D.indexOf("\x00")!=-1&&(D=D.replace(EeS,"&#0;")));return D};
fUE=function(D){var Y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var R=_.ZU.document.createElement("div");return D.replace(Vbb,function(Z,t){var X=Y[Z];if(X)return X;t.charAt(0)=="#"&&(t=Number("0"+t.slice(1)),isNaN(t)||(X=String.fromCharCode(t)));X||(_.iT(R,qy(Z+" ")),X=R.firstChild.nodeValue.slice(0,-1));return Y[Z]=X})};
ejL=function(D){return D.replace(/&([^;]+);/g,function(Y,R){switch(R){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return R.charAt(0)!="#"||(R=Number("0"+R.slice(1)),isNaN(R))?Y:String.fromCharCode(R)}})};
Vbb=/&([^;\s<&]+);?/g;_.LPo=function(D){return String(D).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.ASU=String.prototype.repeat?function(D,Y){return D.repeat(Y)}:function(D,Y){return Array(Y+1).join(D)};
_.Zo=function(D,Y){if(!Number.isFinite(D))return String(D);D=String(D);var R=D.indexOf(".");R===-1&&(R=D.length);var Z=D[0]==="-"?"-":"";Z&&(D=D.substring(1));return Z+(0,_.ASU)("0",Math.max(0,Y-R))+D};
mm=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.sb()).toString(36)};
QQ=function(D){for(var Y=0,R=0;R<D.length;++R)Y=31*Y+D.charCodeAt(R)>>>0;return Y};
_.eP=function(D){return String(D).replace(/\-([a-z])/g,function(Y,R){return R.toUpperCase()})};
_.f2=function(D){return String(D).replace(/([A-Z])/g,"-$1").toLowerCase()};
nn_=function(D){return D.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Y,R,Z){return R+Z.toUpperCase()})};var rSb=function(){this.names=new Map};
rSb.prototype.getName=function(D){var Y=this.names.get(D);if(Y)return Y;var R;Y=(R=D.description)!=null?R:mm();this.names.set(D,Y);return Y};var woz=function(D){var Y=Error.call(this,D?D.length+" errors occurred during unsubscription:\n"+D.map(function(R,Z){return Z+1+") "+R.toString()}).join("\n  "):"");
this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.errors=D;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.n(woz,Error);var Zd=function(D){this.initialTeardown=D;this.closed=!1;this._teardowns=this._parentage=null};
_.u=Zd.prototype;
_.u.unsubscribe=function(){if(!this.closed){this.closed=!0;var D=this._parentage;if(Array.isArray(D))for(var Y=_.a(D),R=Y.next();!R.done;R=Y.next())R.value.remove(this);else D==null||D.remove(this);Y=this.initialTeardown;if(Y3(Y))try{Y()}catch(X){var Z=X instanceof woz?X.errors:[X]}var t=this._teardowns;if(t)for(this._teardowns=null,Y=_.a(t),R=Y.next();!R.done;R=Y.next()){R=R.value;try{Y3(R)?R():R.unsubscribe()}catch(X){R=void 0,Z=(R=Z)!=null?R:[],X instanceof woz?Z=[].concat(_.oK(Z),_.oK(X.errors)):
Z.push(X)}}if(Z)throw new woz(Z);}};
_.u.add=function(D){if(D&&D!==this)if(this.closed)Y3(D)?D():D.unsubscribe();else{if(D instanceof Zd){if(D.closed||D._hasParent(this))return;D._addParent(this)}var Y;(this._teardowns=(Y=this._teardowns)!=null?Y:[]).push(D)}};
_.u._hasParent=function(D){var Y=this._parentage;return Y===D||Array.isArray(Y)&&Y.includes(D)};
_.u._addParent=function(D){var Y=this._parentage;this._parentage=Array.isArray(Y)?(Y.push(D),Y):Y?[Y,D]:D};
_.u._removeParent=function(D){var Y=this._parentage;Y===D?this._parentage=null:Array.isArray(Y)&&W_l(Y,D)};
_.u.remove=function(D){var Y=this._teardowns;Y&&W_l(Y,D);D instanceof Zd&&D._removeParent(this)};
var $$E=new Zd;$$E.closed=!0;Zd.JSC$9038_EMPTY=$$E;var Sx$=function(){setTimeout.apply(null,_.oK(_.UN.apply(0,arguments)))};var t0=function(D){Zd.call(this);this.JSC$9043_isStopped=!1;this.destination=D instanceof t0?D:new sr(!D||Y3(D)?{next:D!=null?D:void 0}:D);zSn(D)&&D.add(this)};
_.n(t0,Zd);t0.JSC$9038_EMPTY=Zd.JSC$9038_EMPTY;t0.create=function(D,Y,R){return new XI(D,Y,R)};
_.u=t0.prototype;_.u.next=function(D){this.JSC$9043_isStopped||this._next(D)};
_.u.error=function(D){this.JSC$9043_isStopped||(this.JSC$9043_isStopped=!0,this._error(D))};
_.u.complete=function(){this.JSC$9043_isStopped||(this.JSC$9043_isStopped=!0,this._complete())};
_.u.unsubscribe=function(){this.closed||(this.JSC$9043_isStopped=!0,Zd.prototype.unsubscribe.call(this))};
_.u._next=function(D){this.destination.next(D)};
_.u._error=function(D){this.destination.error(D);this.unsubscribe()};
_.u._complete=function(){this.destination.complete();this.unsubscribe()};
var sr=function(D){this.partialObserver=D};
sr.prototype.next=function(D){var Y=this.partialObserver;if(Y.next)try{Y.next(D)}catch(R){sx(R)}};
sr.prototype.error=function(D){var Y=this.partialObserver;if(Y.error)try{Y.error(D)}catch(R){sx(R)}else sx(D)};
sr.prototype.complete=function(){var D=this.partialObserver;if(D.complete)try{D.complete()}catch(Y){sx(Y)}};
var XI=function(D,Y,R){t0.call(this);var Z;Y3(D)||!D?Z={next:D!=null?D:void 0,error:Y!=null?Y:void 0,complete:R!=null?R:void 0}:Z=D;this.destination=new sr(Z)};
_.n(XI,t0);XI.JSC$9038_EMPTY=t0.JSC$9038_EMPTY;XI.create=t0.create;var Mc=typeof Symbol==="function"&&Symbol.observable||"@@observable";var aK=function(D){D&&(this._subscribe=D)};
_.u=aK.prototype;_.u.lift=function(D){var Y=new aK;Y.source=this;Y.operator=D;return Y};
_.u.subscribe=function(D,Y,R){D=D&&D instanceof t0||D&&Y3(D.next)&&Y3(D.error)&&Y3(D.complete)&&zSn(D)?D:new XI(D,Y,R);Y=this.operator;R=this.source;D.add(Y?Y.call(D,R):R?this._subscribe(D):this._trySubscribe(D));return D};
_.u._trySubscribe=function(D){try{return this._subscribe(D)}catch(Y){D.error(Y)}};
_.u.forEach=function(D,Y){var R=this;Y=jKU(Y);return new Y(function(Z,t){var X=R.subscribe(function(M){try{D(M)}catch(W){t(W),X==null||X.unsubscribe()}},t,Z)})};
_.u._subscribe=function(D){var Y;return(Y=this.source)==null?void 0:Y.subscribe(D)};
aK.prototype[Mc]=function(){return this};
aK.prototype.pipe=function(){var D=_.UN.apply(0,arguments);return D.length?T9y(D)(this):this};
aK.create=function(D){return new aK(D)};var vnY=function(){var D=Error.call(this,"object unsubscribed");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.n(vnY,Error);var um=function(){this.observers=[];this.hasError=this.JSC$9059_isStopped=this.closed=!1;this.thrownError=null};
_.n(um,aK);_.u=um.prototype;_.u.lift=function(D){var Y=new u3(this,this);Y.operator=D;return Y};
_.u._throwIfClosed=function(){if(this.closed)throw new vnY;};
_.u.next=function(D){this._throwIfClosed();if(!this.JSC$9059_isStopped){var Y=this.observers.slice();Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R.value.next(D)}};
_.u.error=function(D){this._throwIfClosed();if(!this.JSC$9059_isStopped){this.hasError=this.JSC$9059_isStopped=!0;this.thrownError=D;for(var Y=this.observers;Y.length;)Y.shift().error(D)}};
_.u.complete=function(){this._throwIfClosed();if(!this.JSC$9059_isStopped){this.JSC$9059_isStopped=!0;for(var D=this.observers;D.length;)D.shift().complete()}};
_.u.unsubscribe=function(){this.JSC$9059_isStopped=this.closed=!0;this.observers=null};
_.u._trySubscribe=function(D){this._throwIfClosed();return aK.prototype._trySubscribe.call(this,D)};
_.u._subscribe=function(D){this._throwIfClosed();this._checkFinalizedStatuses(D);return this._innerSubscribe(D)};
_.u._innerSubscribe=function(D){var Y=this,R=this.JSC$9059_isStopped,Z=this.observers;return this.hasError||R?Zd.JSC$9038_EMPTY:(Z.push(D),new Zd(function(){return W_l(Y.observers,D)}))};
_.u._checkFinalizedStatuses=function(D){var Y=this.thrownError,R=this.JSC$9059_isStopped;this.hasError?D.error(Y):R&&D.complete()};
um.create=function(D,Y){return new u3(D,Y)};
var u3=function(D,Y){um.call(this);this.destination=D;this.source=Y};
_.n(u3,um);u3.create=um.create;u3.prototype.next=function(D){var Y,R;(Y=this.destination)==null||(R=Y.next)==null||R.call(Y,D)};
u3.prototype.error=function(D){var Y,R;(Y=this.destination)==null||(R=Y.error)==null||R.call(Y,D)};
u3.prototype.complete=function(){var D,Y;(D=this.destination)==null||(Y=D.complete)==null||Y.call(D)};
u3.prototype._subscribe=function(D){var Y,R;return(R=(Y=this.source)==null?void 0:Y.subscribe(D))!=null?R:Zd.JSC$9038_EMPTY};var q1=function(D){um.call(this);this._value=D};
_.n(q1,um);q1.create=um.create;q1.prototype._subscribe=function(D){var Y=um.prototype._subscribe.call(this,D);!Y.closed&&D.next(this._value);return Y};
q1.prototype.getValue=function(){var D=this.thrownError,Y=this._value;if(this.hasError)throw D;this._throwIfClosed();return Y};
q1.prototype.next=function(D){um.prototype.next.call(this,this._value=D)};
_.YF.Object.defineProperties(q1.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var JF=new aK(function(D){return D.complete()});var VXn=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var rFM=function(D){return D&&typeof D.length==="number"&&typeof D!=="function"};var onz={now:function(){return(onz.delegate||Date).now()},
delegate:void 0};var g9=function(D,Y,R){D=D===void 0?Infinity:D;Y=Y===void 0?Infinity:Y;R=R===void 0?onz:R;um.call(this);this.bufferSize=D;this.windowTime=Y;this.timestampProvider=R;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=Y===Infinity;this.bufferSize=Math.max(1,D);this.windowTime=Math.max(1,Y)};
_.n(g9,um);g9.create=um.create;g9.prototype.next=function(D){var Y=this.buffer,R=this.infiniteTimeWindow,Z=this.timestampProvider,t=this.windowTime;this.JSC$9059_isStopped||(Y.push(D),!R&&Y.push(Z.now()+t));bMz(this);um.prototype.next.call(this,D)};
g9.prototype._subscribe=function(D){this._throwIfClosed();bMz(this);for(var Y=this._innerSubscribe(D),R=this.infiniteTimeWindow,Z=this.buffer.slice(),t=0;t<Z.length&&!D.closed;t+=R?1:2)D.next(Z[t]);this._checkFinalizedStatuses(D);return Y};
var bMz=function(D){var Y=D.bufferSize,R=D.timestampProvider,Z=D.buffer;D=D.infiniteTimeWindow;var t=(D?1:2)*Y;Y<Infinity&&t<Z.length&&Z.splice(0,Z.length-t);if(!D){Y=R.now();R=0;for(D=1;D<Z.length&&Z[D]<=Y;D+=2)R=D;R&&Z.splice(0,R+1)}};var Nrb=function(D,Y){Y=Y===void 0?ySb:Y;this.schedulerActionCtor=D;this.now=Y};
Nrb.prototype.schedule=function(D,Y,R){Y=Y===void 0?0:Y;return(new this.schedulerActionCtor(this,D)).schedule(R,Y)};
var ySb=onz.now;var I7n=function(){var D=Error.call(this,"no elements in sequence");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.n(I7n,Error);var w9=function(D,Y,R,Z,t){t0.call(this,D);this.onUnsubscribe=t;Y&&(this._next=function(X){try{Y(X)}catch(M){this.destination.error(M)}});
R&&(this._error=function(X){try{R(X)}catch(M){this.destination.error(M)}this.unsubscribe()});
Z&&(this._complete=function(){try{Z()}catch(X){this.destination.error(X)}this.unsubscribe()})};
_.n(w9,t0);w9.JSC$9038_EMPTY=t0.JSC$9038_EMPTY;w9.create=t0.create;w9.prototype.unsubscribe=function(){var D;this.closed||(D=this.onUnsubscribe)!=null&&D.call(this);t0.prototype.unsubscribe.call(this)};var pj=function(D,Y){this.source=D;this.subjectFactory=Y;this._subject=null;this._refCount=0;this._connection=null};
_.n(pj,aK);pj.create=aK.create;pj.prototype._subscribe=function(D){return lUz(this).subscribe(D)};
var lUz=function(D){var Y=D._subject;if(!Y||Y.JSC$9059_isStopped)D._subject=D.subjectFactory();return D._subject};
pj.prototype._teardown=function(){this._refCount=0;var D=this._connection;this._subject=this._connection=null;D==null||D.unsubscribe()};
pj.prototype.connect=function(){var D=this,Y=this._connection;if(!Y){Y=this._connection=new Zd;var R=lUz(this);Y.add(this.source.subscribe(new w9(R,void 0,function(Z){D._teardown();R.error(Z)},function(){D._teardown();
R.complete()},function(){return D._teardown()})));
Y.closed&&(this._connection=null,Y=Zd.JSC$9038_EMPTY)}return Y};var K_n=Array.isArray;var L_$=Array.isArray,JSz=Object,mcr=JSz.getPrototypeOf,qxi=JSz.prototype,HjS=JSz.keys;var y9=function(D,Y,R){t0.call(this,D);this._next=Y;this.shouldComplete=R};
_.n(y9,t0);y9.JSC$9038_EMPTY=t0.JSC$9038_EMPTY;y9.create=t0.create;y9.prototype._complete=function(){this.shouldComplete()?t0.prototype._complete.call(this):this.unsubscribe()};var ijl=["addListener","removeListener"],dcM=["addEventListener","removeEventListener"],cFo=["on","off"];var ag=function(){Zd.call(this)};
_.n(ag,Zd);ag.JSC$9038_EMPTY=Zd.JSC$9038_EMPTY;ag.prototype.schedule=function(){return this};var kU1=function(D,Y){return setInterval.apply(null,[D,Y].concat(_.oK(_.UN.apply(2,arguments))))};var Mq=function(D,Y){Zd.call(this);this.scheduler=D;this.work=Y;this.pending=!1};
_.n(Mq,ag);Mq.JSC$9038_EMPTY=ag.JSC$9038_EMPTY;Mq.prototype.schedule=function(D,Y){Y=Y===void 0?0:Y;if(this.closed)return this;this.state=D;D=this.id;var R=this.scheduler;D!=null&&(this.id=U$D(this,D,Y));this.pending=!0;this.delay=Y;this.id=this.id||this.requestAsyncId(R,this.id,Y);return this};
Mq.prototype.requestAsyncId=function(D,Y,R){R=R===void 0?0:R;return kU1(D.flush.bind(D,this),R)};
var U$D=function(D,Y,R){R=R===void 0?0:R;if(R!=null&&D.delay===R&&D.pending===!1)return Y;clearInterval(Y)};
Mq.prototype.execute=function(D,Y){if(this.closed)return Error("ha");this.pending=!1;if(D=this._execute(D,Y))return D;this.pending===!1&&this.id!=null&&(this.id=U$D(this,this.id,null))};
Mq.prototype._execute=function(D){var Y=!1;try{this.work(D)}catch(Z){Y=!0;var R=!!Z&&Z||Error(Z)}if(Y)return this.unsubscribe(),R};
Mq.prototype.unsubscribe=function(){if(!this.closed){var D=this.id,Y=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;W_l(Y,this);D!=null&&(this.id=U$D(this,D,null));this.delay=null;ag.prototype.unsubscribe.call(this)}};var K5D=function(D,Y){Y=Y===void 0?ySb:Y;Nrb.call(this,D,Y);this.actions=[];this.active=!1;this.scheduled=void 0};
_.n(K5D,Nrb);K5D.prototype.flush=function(D){var Y=this.actions;if(this.active)Y.push(D);else{var R;this.active=!0;do if(R=D.execute(D.state,D.delay))break;while(D=Y.shift());this.active=!1;if(R){for(;D=Y.shift();)D.unsubscribe();throw R;}}};var wX=new aK(tF);var D1M=Array.isArray;var CC=function(D,Y){Mq.call(this,D,Y);this.scheduler=D;this.work=Y};
_.n(CC,Mq);CC.JSC$9038_EMPTY=Mq.JSC$9038_EMPTY;CC.prototype.schedule=function(D,Y){Y=Y===void 0?0:Y;if(Y>0)return Mq.prototype.schedule.call(this,D,Y);this.delay=Y;this.state=D;this.scheduler.flush(this);return this};
CC.prototype.execute=function(D,Y){return Y>0||this.closed?Mq.prototype.execute.call(this,D,Y):this._execute(D,Y)};
CC.prototype.requestAsyncId=function(D,Y,R){R=R===void 0?0:R;return R!=null&&R>0||R==null&&this.delay>0?Mq.prototype.requestAsyncId.call(this,D,Y,R):D.flush(this)};var hjL=function(){K5D.apply(this,arguments)};
_.n(hjL,K5D);var klU=new hjL(CC);var L57=function(){this.performanceMonitor=new PNb;this.queue=new Qxj;this.internalSymbol=Symbol();this.debugNames=new rSb};
L57.prototype.getOnBackgrounded=function(){return wX};
_.YF.Object.defineProperties(L57.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Wj=function(D,Y){Y=Error.call(this,Y?D+": "+Y:String(D));this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=D;this.__proto__=Wj.prototype;this.name=String(D)};
_.n(Wj,Error);var $2=function(D){Wj.call(this,1E3,'sfr:"'+D+'"');this.measurementStrategyFailureReason=D;this.__proto__=$2.prototype};
_.n($2,Wj);var bm=function(){Wj.call(this,1003);this.__proto__=bm.prototype};
_.n(bm,Wj);var zt=function(){Wj.call(this,1009);this.__proto__=zt.prototype};
_.n(zt,Wj);var m$7=function(){Wj.call(this,1011);this.__proto__=m$7.prototype};
_.n(m$7,Wj);var qyV=function(){Wj.call(this,1007);this.__proto__=bm.prototype};
_.n(qyV,Wj);var n0=function(D){Wj.call(this,1004,String(D));this.inputObservableIndex=D;this.__proto__=n0.prototype};
_.n(n0,Wj);var Nen=function(D){Wj.call(this,1010,D);this.__proto__=lCb.prototype};
_.n(Nen,Wj);var lCb=function(D){Wj.call(this,1005,D);this.__proto__=lCb.prototype};
_.n(lCb,Wj);var HML=function(D){var Y=_.UN.apply(1,arguments),R=this;this.orderedFactories=[];this.orderedFactories.push(D);Y.forEach(function(Z){R.orderedFactories.push(Z)})};
HML.prototype.isSupported=function(D){return this.orderedFactories.some(function(Y){return Y.isSupported(D)})};
HML.prototype.makeBeacon=function(D,Y){for(var R=0;R<this.orderedFactories.length;R++)if(this.orderedFactories[R].isSupported(Y))return this.orderedFactories[R].makeBeacon(D,Y);throw new zt;};var feU=Symbol("ia"),x$4=Symbol("ja"),hF=function(D,Y){this.value=D;this.timeline=Y},Kj=function(D,Y){if(Y.timeline!==D.timeline)throw new qyV;
return D.value-Y.value};
_.u=hF.prototype;_.u.equals=function(D){return Kj(this,D)===0};
_.u.maximum=function(D){if(D.timeline!==this.timeline)throw new qyV;return this.value>=D.value?this:D};
_.u.round=function(){return new hF(Math.round(this.value),this.timeline)};
_.u.add=function(D){return new hF(this.value+D,this.timeline)};
_.u.toString=function(){return String(this.value)};var SU=function(D,Y){this.context=D;this.JSC$9165_pinger=Y};
SU.prototype.isSupported=function(D){return this.JSC$9165_pinger.isSupported(D)};
SU.prototype.makeBeacon=function(D,Y){if(!this.isSupported(Y))throw new zt;return new jU(this.context,this.JSC$9165_pinger,Y!=null?Y:void 0,D)};
var jU=function(D,Y,R,Z){var t=this;this.JSC$9171_pinger=Y;this.properties=R;this.url=Z;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var X;this.method=(X=R==null?void 0:R.beaconMethod)!=null?X:"GET";this.backgroundedSubscription=D.getOnBackgrounded().subscribe(function(){t.sendNow()})};
jU.prototype.deactivate=function(){this.internalIsPending=!1};
jU.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9171_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var D,Y;this.JSC$9171_pinger.pingWithHeadersAndBody((D=this.properties)!=null?D:{},this.customHeaders,(Y=this.body)!=null?Y:"",this.url)}else this.JSC$9171_pinger.ping(this.url);this.internalIsPending=!1}catch(R){}else this.internalIsPending=!1};
jU.prototype.setHeader=function(D,Y){this.customHeaders.set(D,Y)};
_.YF.Object.defineProperties(jU.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var QlL=function(){for(var D=_.a(_.UN.apply(0,arguments)),Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.available()){this.timeProvider=Y;return}this.timeProvider=new P9D};
_.u=QlL.prototype;_.u.available=function(){return this.timeProvider.available()};
_.u.now=function(){return this.timeProvider.now()};
_.u.setTimeout=function(D,Y){return this.timeProvider.setTimeout(D,Y)};
_.u.clearTimeout=function(D){this.timeProvider.clearTimeout(D)};
_.u.interval=function(D,Y){var R=this.intervalObservable(D).subscribe(Y);return function(){return void R.unsubscribe()}};
_.u.intervalObservable=function(D){return this.timeProvider.intervalObservable(D)};
_.YF.Object.defineProperties(QlL.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var P9D=function(){this.timeline=Symbol()};
_.u=P9D.prototype;_.u.available=function(){return!1};
_.u.now=function(){return new hF(0,this.timeline)};
_.u.setTimeout=function(){return 0};
_.u.clearTimeout=function(){};
_.u.interval=function(){return function(){}};
_.u.intervalObservable=function(){return wX};var Ig=function(D,Y){this.intrinsicFunctionNamespace=D;this.performanceMonitor=Y};
_.u=Ig.prototype;_.u.setTimeout=function(D,Y){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,D),Y)};
_.u.clearTimeout=function(D){this.intrinsicFunctionNamespace.clearTimeout(D)};
_.u.interval=function(D,Y){var R=this.intervalObservable(D).subscribe(Y);return function(){return void R.unsubscribe()}};
_.u.intervalObservable=function(D){var Y=this;return new aK(function(R){var Z=0,t=Y.intrinsicFunctionNamespace.setInterval(function(){R.next(Z++)},D);
return function(){Y.intrinsicFunctionNamespace.clearInterval(t)}})};
_.u.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Brb=function(D,Y){Ig.call(this,D,Y);this.timeline=x$4};
_.n(Brb,Ig);Brb.prototype.now=function(){return new hF(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Brb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Ig.prototype.available.call(this)};var poU=function(D,Y){Ig.call(this,D,Y);this.timeline=feU};
_.n(poU,Ig);poU.prototype.now=function(){return new hF(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
poU.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Ig.prototype.available.call(this)};var gn4=function(D){this.context=D;if(EnE===void 0)a:{var Y,R,Z=(Y=D.global)==null?void 0:(R=Y.document)==null?void 0:R.createElement("meta");if(Z)try{Z.httpEquiv="origin-trial";Z.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";D.global.document.head.append(Z);EnE=Z;break a}catch(t){}EnE=void 0}},
EnE;
gn4.prototype.isSupported=function(D){return Cm$(this.context)!==void 0&&!(D==null||!D.endOfSession)&&!FI(this.context)&&!(D==null?0:D.attributionEnabled)&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
gn4.prototype.makeBeacon=function(D,Y){if(!this.isSupported(Y))throw new zt;return new Gt(this.context,D,Y)};
var Gt=function(D,Y,R){this.context=D;this.properties=R;this.JSC$9198_urlWithoutToken=Y;var Z;this.beaconMethod=(Z=R==null?void 0:R.beaconMethod)!=null?Z:"GET";D=Cm$(this.context);if(D===void 0)throw Error();this.fetchLater=D;d$7(this,iMU(this))},d$7=function(D,Y){D.beaconResult&&D.beaconResult.activated||(D.beaconAbort=new AbortController,D.beaconResult=D.fetchLater(Y,{method:D.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:D.beaconAbort.signal,activateAfter:96E4}))},iMU=function(D){D=D.JSC$9198_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"flapi=1"};
Gt.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Gt.prototype.sendNow=function(){};
Gt.prototype.setHeader=function(){};
_.YF.Object.defineProperties(Gt.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9198_urlWithoutToken},
set:function(D){this.JSC$9198_urlWithoutToken=D;D=iMU(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);d$7(this,D)}},
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 OMV=function(D){this.context=D};
OMV.prototype.isSupported=function(){return!FI(this.context)&&!!this.context.global.fetch};
OMV.prototype.ping=function(){var D=this;return k3.apply(null,_.oK(_.UN.apply(0,arguments).map(function(Y){return zl(D.context.global.fetch(Y,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(vh(function(R){return R.status===200}))}))).pipe(FJy(function(Y){return Y}),Vwj())};
OMV.prototype.pingWithHeadersAndBody=function(D,Y,R){for(var Z=_.UN.apply(3,arguments),t=this,X=new Headers,M=_.a(Y.entries()),W=M.next();!W.done;W=M.next()){var z=_.a(W.value);W=z.next().value;z=z.next().value;X.set(W,z)}var I,F=(I=D.keepAlive)!=null?I:!1;k3.apply(null,_.oK(Z.map(function(G){return zl(t.context.global.fetch(G,Object.assign({},{method:String(D.beaconMethod),cache:"no-cache"},F?{keepalive:!0}:{},{mode:"no-cors",headers:X,body:R}))).pipe(vh(function(V){return V.status===200}))}))).pipe(FJy(function(G){return G}),
Vwj())};var cSE,oUU;_.Vy=function(){};
_.kn=function(D){return D};
cSE=function(D){var Y=Y||0;return function(){return D.apply(this,Array.prototype.slice.call(arguments,0,Y))}};
_.fC=function(D){var Y=!1,R;return function(){Y||(R=D(),Y=!0);return R}};
_.eU=function(D,Y){var R=0;return function(Z){_.ZU.clearTimeout(R);var t=arguments;R=_.ZU.setTimeout(function(){D.apply(void 0,t)},Y)}};
oUU=function(D,Y){var R=0,Z=!1,t=[],X=function(){R=0;Z&&(Z=!1,M())},M=function(){R=_.ZU.setTimeout(X,Y);
var W=t;t=[];D.apply(void 0,W)};
return function(W){t=arguments;R?Z=!0:M()}};var YLV=function(){return GU&&fM?fM.mobile:!DU1()&&(eb("iPod")||eb("iPhone")||eb("Android")||eb("IEMobile"))},DU1=function(){return GU&&fM?!fM.mobile&&(eb("iPad")||eb("Android")||eb("Silk")):eb("iPad")||eb("Android")&&!eb("Mobile")||eb("Silk")};var RYL;_.y7={};RYL="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.y7.add=function(D,Y,R){if(D!==null&&Y in D)throw Error("la`"+Y);D[Y]=R};
_.y7.clear=function(D){for(var Y in D)delete D[Y]};
_.y7.clone=function(D){var Y={},R;for(R in D)Y[R]=D[R];return Y};
_.y7.contains=function(D,Y){return w8l(D,Y)};
_.y7.containsKey=function(D,Y){return D!==null&&Y in D};
_.y7.containsValue=w8l;_.y7.create=o2U;_.y7.createImmutableView=function(D){var Y=D;Object.isFrozen&&!Object.isFrozen(D)&&(Y=Object.create(D),Object.freeze(Y));return Y};
_.y7.createSet=b09;_.y7.equals=function(D,Y){for(var R in D)if(!(R in Y)||D[R]!==Y[R])return!1;for(var Z in Y)if(!(Z in D))return!1;return!0};
_.y7.every=function(D,Y,R){for(var Z in D)if(!Y.call(R,D[Z],Z,D))return!1;return!0};
_.y7.extend=function(D,Y){for(var R,Z,t=1;t<arguments.length;t++){Z=arguments[t];for(R in Z)D[R]=Z[R];for(var X=0;X<RYL.length;X++)R=RYL[X],Object.prototype.hasOwnProperty.call(Z,R)&&(D[R]=Z[R])}};
_.y7.filter=function(D,Y,R){var Z={},t;for(t in D)Y.call(R,D[t],t,D)&&(Z[t]=D[t]);return Z};
_.y7.findKey=$1l;_.y7.findValue=function(D,Y,R){return(Y=$1l(D,Y,R))&&D[Y]};
_.y7.forEach=function(D,Y,R){for(var Z in D)Y.call(R,D[Z],Z,D)};
_.y7.get=function(D,Y,R){return D!==null&&Y in D?D[Y]:R};
_.y7.getAllPropertyNames=function(D,Y,R){if(!D)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return rZi(D);for(var Z={};D&&(D!==Object.prototype||Y)&&(D!==Function.prototype||R);){for(var t=Object.getOwnPropertyNames(D),X=0;X<t.length;X++)Z[t[X]]=!0;D=Object.getPrototypeOf(D)}return rZi(Z)};
_.y7.getAnyKey=function(D){for(var Y in D)return Y};
_.y7.getAnyValue=function(D){for(var Y in D)return D[Y]};
_.y7.getCount=function(D){var Y=0,R;for(R in D)Y++;return Y};
_.y7.getKeys=rZi;_.y7.getSuperClass=function(D){return(D=Object.getPrototypeOf(D.prototype))&&D.constructor};
_.y7.getValueByKeys=function(D,Y){var R=_.xn(Y),Z=R?Y:arguments;for(R=R?0:1;R<Z.length;R++){if(D==null)return;D=D[Z[R]]}return D};
_.y7.getValues=function(D){var Y=[],R=0,Z;for(Z in D)Y[R++]=D[Z];return Y};
_.y7.isEmpty=function(D){for(var Y in D)return!1;return!0};
_.y7.isImmutableView=function(D){return!!Object.isFrozen&&Object.isFrozen(D)};
_.y7.map=function(D,Y,R){var Z={},t;for(t in D)Z[t]=Y.call(R,D[t],t,D);return Z};
_.y7.remove=function(D,Y){var R;(R=Y in D)&&delete D[Y];return R};
_.y7.set=function(D,Y,R){D[Y]=R};
_.y7.setIfUndefined=function(D,Y,R){return Y in D?D[Y]:D[Y]=R};
_.y7.setWithReturnValueIfNotSet=function(D,Y,R){if(Y in D)return D[Y];R=R();return D[Y]=R};
_.y7.some=function(D,Y,R){for(var Z in D)if(Y.call(R,D[Z],Z,D))return!0;return!1};
_.y7.transpose=function(D){var Y={},R;for(R in D)Y[D[R]]=R;return Y};
_.y7.unsafeClone=v2l;var A0=function(D,Y,R,Z,t){this.allowedElements=D;this.elementPolicies=Y;this.allowedGlobalAttributes=R;this.globalAttributePolicies=Z;this.globallyAllowedAttributePrefixes=t},ZLz=function(D,Y,R){R=D.elementPolicies.get(R);
return(R==null?0:R.has(Y))?R.get(Y):D.allowedGlobalAttributes.has(Y)?{policyAction:1}:(R=D.globalAttributePolicies.get(Y))?R:D.globallyAllowedAttributePrefixes&&[].concat(_.oK(D.globallyAllowedAttributePrefixes)).some(function(Z){return Y.indexOf(Z)===0})?{policyAction:1}:{policyAction:0}};var tDY="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(" "),
sz7=[["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}]])]],X44="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(" "),
ub1=[["dir",{policyAction:3,conditions:f$(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:f$(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:f$(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:f$(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],a_V=new A0(new Set(tDY),new Map(sz7),new Set(X44),new Map(ub1)),MDV=new A0(new Set(tDY.concat(["BUTTON",
"INPUT"])),new Map(sz7),new Set(f$(function(){return X44.concat(["class","id","name"])})),new Map(f$(function(){return ub1.concat([["style",
{policyAction:1}]])})));var CUE,W7D,SLV;CUE=function(D,Y,R,Z,t){this.JSC$9258_sanitizerTable=D;this.styleElementSanitizer=Y;this.styleAttributeSanitizer=R;this.JSC$9258_resourceUrlPolicy=Z;this.JSC$9258_navigationUrlPolicy=t;this.changes=[]};
_.zY1=function(D,Y){var R=document.implementation.createHTMLDocument("");D=W7D(D,Y,R);R=R.body;R.appendChild(D);R=(new XMLSerializer).serializeToString(R);R=R.slice(R.indexOf(">")+1,R.lastIndexOf("</"));return qy(R)};
W7D=function(D,Y,R){Y=l7r(Y,R);Y=document.createTreeWalker(Y,5,function(W){if(W.nodeType===3)W=1;else if(kIM(W))if(W=JZr(W),W===null)W=2;else{var z=D.JSC$9258_sanitizerTable;W=W!=="FORM"&&(z.allowedElements.has(W)||z.elementPolicies.has(W))?1:2}else W=2;return W});
for(var Z=Y.nextNode(),t=R.createDocumentFragment(),X=t;Z!==null;){var M=void 0;if(Z.nodeType===3)D.styleElementSanitizer&&X.nodeName==="STYLE"?(Z=D.styleElementSanitizer(Z.data),M=D.createTextNode(Z)):M=D.createTextNode(Z.data);else if(kIM(Z))M=SLV(D,Z,R);else throw Error("Z");X.appendChild(M);if(Z=Y.firstChild())X=M;else for(;!(Z=Y.nextSibling())&&(Z=Y.parentNode());)X=X.parentNode}return t};
CUE.prototype.createTextNode=function(D){return document.createTextNode(D)};
SLV=function(D,Y,R){var Z,t=JZr(Y);R=R.createElement(t);Y=Y.attributes;for(var X=_.a(Y),M=X.next();!M.done;M=X.next()){var W=M.value;M=W.name;W=W.value;var z=ZLz(D.JSC$9258_sanitizerTable,M,t);a:{if(Z=z.conditions){Z=_.a(Z);for(var I=Z.next();!I.done;I=Z.next()){var F=_.a(I.value);I=F.next().value;F=F.next().value;var G=void 0;if((I=(G=Y.getNamedItem(I))==null?void 0:G.value)&&!F.has(I)){Z=!1;break a}}}Z=!0}if(Z)switch(z.policyAction){case 1:Z7(R,M,W);break;case 2:throw Error();case 3:Z7(R,M,W.toLowerCase());
break;case 4:D.styleAttributeSanitizer?(W=D.styleAttributeSanitizer(W),Z7(R,M,W)):Z7(R,M,W);break;case 5:D.JSC$9258_resourceUrlPolicy?(z={type:2,attributeName:M,elementName:t},W=NXi(W),(W=D.JSC$9258_resourceUrlPolicy(W,z))&&Z7(R,M,W.toString())):Z7(R,M,W);break;case 6:if(D.JSC$9258_resourceUrlPolicy){z={type:2,attributeName:M,elementName:t};Z=[];W=_.a(W.split(","));for(I=W.next();!I.done;I=W.next())F=_.a(I.value.trim().split(/\s+/,2)),I=F.next().value,F=F.next().value,Z.push({url:I,descriptor:F});
W={parts:[]};Z=_.a(Z);for(I=Z.next();!I.done;I=Z.next())I=I.value,F=NXi(I.url),(F=D.JSC$9258_resourceUrlPolicy(F,z))&&W.parts.push({url:F.toString(),descriptor:I.descriptor});Z7(R,M,U1$(W))}else Z7(R,M,W);break;case 7:z=W;if(D.JSC$9258_navigationUrlPolicy){z={type:2,attributeName:M,elementName:t};W=NXi(W);W=D.JSC$9258_navigationUrlPolicy(W,z);if(W===null)break;z=W.toString()}W=z;z=_.DcU(W);z=z!==void 0&&TrL.indexOf(z.toLowerCase())!==-1?W:"about:invalid#zClosurez";Z7(R,M,z)}}return R};
_.Tzz=f$(function(){return new CUE(a_V)});
_.jz4=f$(function(){return new CUE(MDV)});var I_L=function(){this.calledBuild=!1;this.JSC$9270_sanitizerTable=a_V},F7U=function(){I_L.apply(this,arguments)};
_.n(F7U,I_L);F7U.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new CUE(this.JSC$9270_sanitizerTable,void 0,void 0,this.JSC$9270_resourceUrlPolicy,this.JSC$9270_navigationUrlPolicy)};var GEE=/[^#]*/;var f_U=function(D){var Y=VDY;if(Y)for(var R in Y)Object.prototype.hasOwnProperty.call(Y,R)&&D(Y[R],R,Y)},eYU=function(){var D=[];
f_U(function(Y){D.push(Y)});
return D},VDY={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"},A1_=_.fC(function(){return eYU()}),r1z=function(){var D=nEL("IFRAME"),
Y={};
_.xs(A1_(),function(R){D.sandbox&&D.sandbox.supports&&D.sandbox.supports(R)&&(Y[R]=!0)});
return Y},nEL=function(D,Y){Y=Y===void 0?document:Y;
return Y.createElement(String(D).toLowerCase())};var nC;_.UR=function(D,Y,R){return Math.min(Math.max(D,Y),R)};
nC=function(D,Y,R){return D+R*(Y-D)};_.lm=function(D,Y){this.x=D!==void 0?D:0;this.y=Y!==void 0?Y:0};
_.u=_.lm.prototype;_.u.clone=function(){return new _.lm(this.x,this.y)};
_.u.equals=function(D){return D instanceof _.lm&&(this==D?!0:this&&D?this.x==D.x&&this.y==D.y:!1)};
_.u.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.u.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.u.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.u.translate=function(D,Y){D instanceof _.lm?(this.x+=D.x,this.y+=D.y):(this.x+=Number(D),typeof Y==="number"&&(this.y+=Y));return this};
_.u.scale=function(D,Y){this.x*=D;this.y*=typeof Y==="number"?Y:D;return this};_.FL=function(D,Y){this.width=D;this.height=Y};
_.u=_.FL.prototype;_.u.clone=function(){return new _.FL(this.width,this.height)};
_.u.area=function(){return this.width*this.height};
_.u.aspectRatio=function(){return this.width/this.height};
_.u.isEmpty=function(){return!this.area()};
_.u.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.u.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.u.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.u.scale=function(D,Y){this.width*=D;this.height*=typeof Y==="number"?Y:D;return this};var hk=function(D,Y){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=D===VGi&&Y||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=w4z};
hk.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var $UY=function(D){return D instanceof hk&&D.constructor===hk&&D.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===w4z?D.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},w4z={},VGi={};
new hk(VGi,"");var f0,G_,wy,vEb,y1b,bL7,JZ,l_4,kE1,J14,b3,UUE,xUV,HLL,qLL,PU1,Qz_,Bz1,p41,LQn,EE4,dUz,iLU,gEL,ry;f0=function(D){return D?new ry(_.k2(D)):hT5||(hT5=new ry)};
_.uI=function(D,Y){return typeof Y==="string"?D.getElementById(Y):Y};
G_=function(D,Y){return(Y||document).getElementsByTagName(String(D))};
_.oE1=function(D){return vEb("yt-formatted-string","paper-input-input",D)};
wy=function(D,Y,R,Z){D=Z||D;return(Y=Y&&Y!="*"?String(Y).toUpperCase():"")||R?D.querySelectorAll(Y+(R?"."+R:"")):D.getElementsByTagName("*")};
vEb=function(D,Y,R){var Z=document,t=D&&D!="*"?String(D).toUpperCase():"";return t||Y?(R||Z).querySelector(t+(Y?"."+Y:"")):wy(Z,D,Y,R)[0]||null};
y1b=function(D,Y){_.y7.forEach(Y,function(R,Z){Z=="style"?D.style.cssText=R:Z=="class"?D.className=R:Z=="for"?D.htmlFor=R:bL7.hasOwnProperty(Z)?D.setAttribute(bL7[Z],R):_.Xi(Z,"aria-")||_.Xi(Z,"data-")?D.setAttribute(Z,R):D[Z]=R})};
bL7={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"};_.GI=function(D){D=(D||window).document;D=D.compatMode=="CSS1Compat"?D.documentElement:D.body;return new _.FL(D.clientWidth,D.clientHeight)};
_.Nzz=function(D){var Y=_.$r(D);D=D.defaultView;return new _.lm(D.pageXOffset||Y.scrollLeft,D.pageYOffset||Y.scrollTop)};
_.$r=function(D){return D.scrollingElement?D.scrollingElement:_.zX||D.compatMode!="CSS1Compat"?D.body||D.documentElement:D.documentElement};
JZ=function(D){return D?D.defaultView:window};
_.vj=function(D,Y,R){return l_4(document,arguments)};
l_4=function(D,Y){var R=Y[1],Z=J14(D,String(Y[0]));R&&(typeof R==="string"?Z.className=R:Array.isArray(R)?Z.className=R.join(" "):y1b(Z,R));Y.length>2&&kE1(D,Z,Y,2);return Z};
kE1=function(D,Y,R,Z){function t(W){W&&Y.appendChild(typeof W==="string"?D.createTextNode(W):W)}
for(;Z<R.length;Z++){var X=R[Z];if(!_.xn(X)||_.Bo(X)&&X.nodeType>0)t(X);else{a:{if(X&&typeof X.length=="number"){if(_.Bo(X)){var M=typeof X.item=="function"||typeof X.item=="string";break a}if(typeof X==="function"){M=typeof X.item=="function";break a}}M=!1}_.xs(M?_.q$(X):X,t)}}};
_.I0=function(D){return J14(document,D)};
J14=function(D,Y){Y=String(Y);D.contentType==="application/xhtml+xml"&&(Y=Y.toLowerCase());return D.createElement(Y)};
_.og=function(){return document.createTextNode("\n")};
b3=function(D){if(D.nodeType!=1)return!1;switch(D.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};
UUE=function(D,Y){kE1(_.k2(D),D,arguments,1)};
_.yy=function(D){for(var Y;Y=D.firstChild;)D.removeChild(Y)};
_.Nq=function(D,Y){Y.parentNode&&Y.parentNode.insertBefore(D,Y)};
_.l3=function(D,Y){Y.parentNode&&Y.parentNode.insertBefore(D,Y.nextSibling)};
_.F_=function(D){return D&&D.parentNode?D.parentNode.removeChild(D):null};
_.K7U=function(D,Y){var R=Y.parentNode;R&&R.replaceChild(D,Y)};
_.hY4=function(D){var Y,R=D.parentNode;if(R&&R.nodeType!=11)if(D.removeNode)D.removeNode(!1);else{for(;Y=D.firstChild;)R.insertBefore(Y,D);_.F_(D)}};
_.J0=function(D){return D.children!=void 0?D.children:Array.prototype.filter.call(D.childNodes,function(Y){return Y.nodeType==1})};
_.mUL=function(D){return D.nextElementSibling!==void 0?D.nextElementSibling:_.L71(D.nextSibling,!0)};
_.L71=function(D,Y){for(;D&&D.nodeType!=1;)D=Y?D.nextSibling:D.previousSibling;return D};
_.gR=function(D){return _.Bo(D)&&D.nodeType==1};
_.hE=function(D,Y){if(!D||!Y)return!1;if(D.contains&&Y.nodeType==1)return D==Y||D.contains(Y);if(typeof D.compareDocumentPosition!="undefined")return D==Y||!!(D.compareDocumentPosition(Y)&16);for(;Y&&D!=Y;)Y=Y.parentNode;return Y==D};
xUV=function(D,Y){if(D==Y)return 0;if(D.compareDocumentPosition)return D.compareDocumentPosition(Y)&2?1:-1;if("sourceIndex"in D||D.parentNode&&"sourceIndex"in D.parentNode){var R=D.nodeType==1,Z=Y.nodeType==1;if(R&&Z)return D.sourceIndex-Y.sourceIndex;var t=D.parentNode,X=Y.parentNode;return t==X?qLL(D,Y):!R&&_.hE(t,Y)?-1*HLL(D,Y):!Z&&_.hE(X,D)?HLL(Y,D):(R?D.sourceIndex:t.sourceIndex)-(Z?Y.sourceIndex:X.sourceIndex)}Z=_.k2(D);R=Z.createRange();R.selectNode(D);R.collapse(!0);D=Z.createRange();D.selectNode(Y);
D.collapse(!0);return R.compareBoundaryPoints(_.ZU.Range.START_TO_END,D)};
HLL=function(D,Y){var R=D.parentNode;if(R==Y)return-1;for(;Y.parentNode!=R;)Y=Y.parentNode;return qLL(Y,D)};
qLL=function(D,Y){for(;Y=Y.previousSibling;)if(Y==D)return-1;return 1};
PU1=function(D){var Y,R=arguments.length;if(!R)return null;if(R==1)return arguments[0];var Z=[],t=Infinity;for(Y=0;Y<R;Y++){for(var X=[],M=arguments[Y];M;)X.unshift(M),M=M.parentNode;Z.push(X);t=Math.min(t,X.length)}X=null;for(Y=0;Y<t;Y++){M=Z[0][Y];for(var W=1;W<R;W++)if(M!=Z[W][Y])return X;X=M}return X};
_.k2=function(D){return D.nodeType==9?D:D.ownerDocument||D.document};
Qz_=function(D){return D.contentDocument||D.contentWindow.document};
_.kr=function(D,Y){if("textContent"in D)D.textContent=Y;else if(D.nodeType==3)D.data=String(Y);else if(D.firstChild&&D.firstChild.nodeType==3){for(;D.lastChild!=D.firstChild;)D.removeChild(D.lastChild);D.firstChild.data=String(Y)}else _.yy(D),D.appendChild(_.k2(D).createTextNode(String(Y)))};
Bz1={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};p41={IMG:" ",BR:"\n"};LQn=function(D){var Y;D.tagName=="A"&&D.hasAttribute("href")||D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="BUTTON"?Y=!D.disabled&&(!D.hasAttribute("tabindex")||EE4(D)):Y=D.hasAttribute("tabindex")&&EE4(D);return Y};
EE4=function(D){D=D.tabIndex;return typeof D==="number"&&D>=0&&D<32768};
dUz=function(D){var Y=[];gEL(D,Y,!0);D=Y.join("");D=D.replace(/ \xAD /g," ").replace(/\xAD/g,"");D=D.replace(/\u200B/g,"");D=D.replace(/ +/g," ");D!=" "&&(D=D.replace(/^\s*/,""));return D};
iLU=function(D){var Y=[];gEL(D,Y,!1);return Y.join("")};
gEL=function(D,Y,R){if(!(D.nodeName in Bz1))if(D.nodeType==3)R?Y.push(String(D.nodeValue).replace(/(\r\n|\r|\n)/g,"")):Y.push(D.nodeValue);else if(D.nodeName in p41)Y.push(p41[D.nodeName]);else for(D=D.firstChild;D;)gEL(D,Y,R),D=D.nextSibling};
_.OLL=function(D,Y,R){if(!Y&&!R)return null;var Z=Y?String(Y).toUpperCase():null;return _.K0(D,function(t){return(!Z||t.nodeName==Z)&&(!R||typeof t.className==="string"&&_.LM(t.className.split(/\s+/),R))},!0)};
_.K0=function(D,Y,R){D&&!R&&(D=D.parentNode);for(R=0;D;){if(Y(D))return D;D=D.parentNode;R++}return null};
ry=function(D){this.JSC$9295_document_=D||_.ZU.document||document};
_.u=ry.prototype;_.u.getElement=function(D){return _.uI(this.JSC$9295_document_,D)};
_.u.$=ry.prototype.getElement;_.u.getElementsByTagName=function(D,Y){return(Y||this.JSC$9295_document_).getElementsByTagName(String(D))};
_.u.getElementsByTagNameAndClass=function(D,Y,R){return wy(this.JSC$9295_document_,D,Y,R)};
_.u.$$=ry.prototype.getElementsByTagNameAndClass;_.u.setProperties=y1b;_.u.JSC$9297_createDom=function(D,Y,R){return l_4(this.JSC$9295_document_,arguments)};
_.u.createElement=function(D){return J14(this.JSC$9295_document_,D)};
_.u.createTextNode=function(D){return this.JSC$9295_document_.createTextNode(String(D))};
_.u.getWindow=function(){return this.JSC$9295_document_.defaultView};
var V7=function(D){return _.Nzz(D.JSC$9295_document_)};
_.u=ry.prototype;_.u.appendChild=function(D,Y){D.appendChild(Y)};
_.u.append=UUE;_.u.canHaveChildren=b3;_.u.removeNode=_.F_;_.u.getChildren=_.J0;_.u.contains=_.hE;_.u=XL.prototype;_.u.getWidth=function(){return this.right-this.left};
_.u.getHeight=function(){return this.bottom-this.top};
_.u.clone=function(){return new XL(this.top,this.right,this.bottom,this.left)};
_.u.contains=function(D){return this&&D?D instanceof XL?D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom:D.x>=this.left&&D.x<=this.right&&D.y>=this.top&&D.y<=this.bottom:!1};
_.u.expand=function(D,Y,R,Z){_.Bo(D)?(this.top-=D.top,this.right+=D.right,this.bottom+=D.bottom,this.left-=D.left):(this.top-=D,this.right+=Number(Y),this.bottom+=Number(R),this.left-=Number(Z));return this};
_.u.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};
_.u.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};
_.u.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};
_.u.translate=function(D,Y){D instanceof _.lm?(this.left+=D.x,this.right+=D.x,this.top+=D.y,this.bottom+=D.y):(this.left+=D,this.right+=D,typeof Y==="number"&&(this.top+=Y,this.bottom+=Y));return this};
_.u.scale=function(D,Y){Y=typeof Y==="number"?Y:D;this.left*=D;this.right*=D;this.top*=Y;this.bottom*=Y;return this};var Ur=function(D,Y,R,Z){this.left=D;this.top=Y;this.width=R;this.height=Z};
_.u=Ur.prototype;_.u.clone=function(){return new Ur(this.left,this.top,this.width,this.height)};
_.u.boundingRect=function(D){var Y=Math.max(this.left+this.width,D.left+D.width),R=Math.max(this.top+this.height,D.top+D.height);this.left=Math.min(this.left,D.left);this.top=Math.min(this.top,D.top);this.width=Y-this.left;this.height=R-this.top};
_.u.contains=function(D){return D instanceof _.lm?D.x>=this.left&&D.x<=this.left+this.width&&D.y>=this.top&&D.y<=this.top+this.height:this.left<=D.left&&this.left+this.width>=D.left+D.width&&this.top<=D.top&&this.top+this.height>=D.top+D.height};
_.u.distance=function(D){var Y=D.x<this.left?this.left-D.x:Math.max(D.x-(this.left+this.width),0);D=D.y<this.top?this.top-D.y:Math.max(D.y-(this.top+this.height),0);return Math.sqrt(Y*Y+D*D)};
_.u.getSize=function(){return new _.FL(this.width,this.height)};
_.u.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};
_.u.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};
_.u.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};
_.u.translate=function(D,Y){D instanceof _.lm?(this.left+=D.x,this.top+=D.y):(this.left+=D,typeof Y==="number"&&(this.top+=Y));return this};
_.u.scale=function(D,Y){Y=typeof Y==="number"?Y:D;this.left*=D;this.width*=D;this.top*=Y;this.height*=Y;return this};var Dk4,LC,aei,h0,t07,Zt4,s9z,bC$,XuV,apU;_.KC=function(D,Y,R){if(typeof Y==="string")(Y=_.c1z(D,Y))&&(D.style[Y]=R);else for(var Z in Y){R=D;var t=Y[Z],X=_.c1z(R,Z);X&&(R.style[X]=t)}};
Dk4={};_.c1z=function(D,Y){var R=Dk4[Y];if(!R){var Z=_.eP(Y);R=Z;D.style[Z]===void 0&&(Z=(_.zX?"Webkit":_.WQ?"Moz":null)+nn_(Z),D.style[Z]!==void 0&&(R=Z));Dk4[Y]=R}return R};
_.jV=function(D,Y){var R=_.k2(D);return R.defaultView&&R.defaultView.getComputedStyle&&(D=R.defaultView.getComputedStyle(D,null))?D[Y]||D.getPropertyValue(Y)||"":""};
_.KG=function(D,Y){return _.jV(D,Y)||(D.currentStyle?D.currentStyle[Y]:null)||D.style&&D.style[Y]};
_.YzU=function(D){return _.KG(D,"position")};
LC=function(D,Y,R){if(Y instanceof _.lm){var Z=Y.x;Y=Y.y}else Z=Y,Y=R;D.style.left=h0(Z,!1);D.style.top=h0(Y,!1)};
aei=function(D){try{return D.getBoundingClientRect()}catch(Y){return{left:0,top:0,right:0,bottom:0}}};
_.UG=function(D){var Y=_.k2(D),R=new _.lm(0,0);if(D==(Y?_.k2(Y):document).documentElement)return R;D=aei(D);Y=V7(f0(Y));R.x=D.left+Y.x;R.y=D.top+Y.y;return R};
_.RKL=function(D,Y,R){if(Y instanceof _.FL)R=Y.height,Y=Y.width;else if(R==void 0)throw Error("oa");D.style.width=h0(Y,!0);D.style.height=h0(R,!0)};
h0=function(D,Y){typeof D=="number"&&(D=(Y?Math.round(D):D)+"px");return D};
t07=function(D){return Zt4(D)};
Zt4=function(D){var Y=s9z;if(_.KG(D,"display")!="none")return Y(D);var R=D.style,Z=R.display,t=R.visibility,X=R.position;R.visibility="hidden";R.position="absolute";R.display="inline";D=Y(D);R.display=Z;R.position=X;R.visibility=t;return D};
s9z=function(D){var Y=D.offsetWidth,R=D.offsetHeight,Z=_.zX&&!Y&&!R;return(Y===void 0||Z)&&D.getBoundingClientRect?(D=aei(D),new _.FL(D.right-D.left,D.bottom-D.top)):new _.FL(Y,R)};
bC$=function(D){var Y=_.UG(D);D=Zt4(D);return new Ur(Y.x,Y.y,D.width,D.height)};
XuV=function(D,Y){D=D.style;"opacity"in D?D.opacity=Y:"MozOpacity"in D?D.MozOpacity=Y:"filter"in D&&(D.filter=Y===""?"":"alpha(opacity="+Number(Y)*100+")")};
_.PB=function(D,Y){D.style.display=Y?"":"none"};
_.uEL=function(D){return"rtl"==_.KG(D,"direction")};
apU=function(D){var Y=_.jV(D,"marginLeft"),R=_.jV(D,"marginRight"),Z=_.jV(D,"marginTop");D=_.jV(D,"marginBottom");return new XL(parseFloat(Z),parseFloat(R),parseFloat(D),parseFloat(Y))};
_.M0_=function(D){var Y=_.jV(D,"borderLeftWidth"),R=_.jV(D,"borderRightWidth"),Z=_.jV(D,"borderTopWidth");D=_.jV(D,"borderBottomWidth");return new XL(parseFloat(Z),parseFloat(R),parseFloat(D),parseFloat(Y))};var mc=function(D){this.context=D};
mc.prototype.isSupported=function(D){return(D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="POST"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive)?!1:!FI(this.context)};
mc.prototype.ping=function(){var D=this;return eX(_.UN.apply(0,arguments).map(function(Y){try{var R=D.context.global,Z=!1;Z=Z===void 0?!1:Z;R.google_image_requests||(R.google_image_requests=[]);var t=nEL("IMG",R.document);Z&&(t.attributionSrc="");t.src=Y;R.google_image_requests.push(t);return!0}catch(X){return!1}}).every(function(Y){return Y}))};
mc.prototype.pingWithHeadersAndBody=function(D,Y,R){this.ping.apply(this,_.oK(_.UN.apply(3,arguments)))};var CkU=function(D){this.context=D};
CkU.prototype.isSupported=function(D){return Wh4&&!FI(this.context)&&h3U(this.context)!==void 0&&!(D==null?0:D.attributionEnabled)&&(D==null?void 0:D.beaconMethod)!=="POST"&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
CkU.prototype.makeBeacon=function(D,Y){if(!this.isSupported(Y))throw new zt;return new qq(this.context,D)};
var Wh4=!1,qq=function(D,Y){this.context=D;this.JSC$9316_urlWithoutToken=Y;D=h3U(this.context);if(D===void 0)throw Error();this.wrappedBeacon=new D(zKE(this),{})},zKE=function(D){D=D.JSC$9316_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"pbapi=1"};
qq.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
qq.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
qq.prototype.setHeader=function(){};
_.YF.Object.defineProperties(qq.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9316_urlWithoutToken},
set:function(D){this.JSC$9316_urlWithoutToken=D;this.wrappedBeacon.setURL(zKE(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(D){if(D!=="GET")throw new zt;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var SzY=function(D){this.context=D};
SzY.prototype.isSupported=function(D){if((D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="GET"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive))return!1;var Y;return!FI(this.context)&&((Y=this.context.global.navigator)==null?void 0:Y.sendBeacon)!==void 0};
SzY.prototype.ping=function(){var D=this;return eX(_.UN.apply(0,arguments).map(function(Y){var R;return(R=D.context.global.navigator)==null?void 0:R.sendBeacon(Y)}).every(function(Y){return Y}))};
SzY.prototype.pingWithHeadersAndBody=function(D,Y,R){this.ping.apply(this,_.oK(_.UN.apply(3,arguments)))};var jw=function(D){this.value=D},EG=function(D,Y){return eX(D.value).pipe(zI(Y))},dX=new jw(!1),f15=new jw(!0);var hZ=function(D){this.value=D;this.releasedSubject=new um};
hZ.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.YF.Object.defineProperties(hZ.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9329_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var i0U=["FRAME","IMG","IFRAME"],QI5=/^[01](px)?$/,d1n=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},g2U=function(){var D=new d1n;
D.crossDomainLoadedDefault=!0;D.pendingImagesBlockLoad=!0;return D};var TbU=function(D,Y){var R=tHi(D);if(R)if(R.onCreativeLoad)R.onCreativeLoad(Y);else{var Z=Y?[Y]:[],t=function(X){for(var M=0;M<Z.length;++M)try{Z[M](1,X)}catch(W){}Z={push:function(W){W(1,X)}}};
R.onCreativeLoad=function(X){Z.push(X)};
R.setAttribute("data-creative-load-listener","");R.addEventListener("creativeLoad",function(X){t(X.detail)});
_.ZU.addEventListener("message",function(X){ZGo(R,t,X)})}};var Hj=function(D,Y){var R=this;this.global=D;this.parentContext=Y;this.JSC$9340_onVisibilityChange=this.document?k3(eX(!0),l4(this.document,"visibilitychange")).pipe(m_(this.parentContext.performanceMonitor,748),vh(function(){return R.getVisibilityState()}),Q9()):eX("visible");
this.document?l4(this.document,"DOMContentLoaded").pipe(m_(this.parentContext.performanceMonitor,739),Ph(1)):eX(x1b("DOMContentLoaded"))},VjM=function(D){return D.document!==null&&D.document.visibilityState!==void 0};
Hj.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Hj.prototype.querySelector=function(D){return this.document?this.document.querySelector(D):null};
Hj.prototype.querySelectorAll=function(D){return this.document?_.q$(this.document.querySelectorAll(D)):[]};
Hj.prototype.elementFromPoint=function(D,Y){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;D=this.document.elementFromPoint(D,Y);return D===null?null:new hZ(D)};
var a1b=function(D,Y,R){R=R===void 0?!1:R;if(Y.ref===void 0||!D.document)return eX(Y).pipe(m_(D.parentContext.performanceMonitor,749));var Z=new g9(1),t=function(){Z.next(Y)};
R||TbU(Y.ref,t);O0S(Y.ref,t);return Z.pipe(m_(D.parentContext.performanceMonitor,749),Ph(1))};
_.YF.Object.defineProperties(Hj.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return AZo(this.global,"document")?this.global.document||null:null}}});var s0r=_.gY(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),XBy=_.gY(["./reach_worklet.js"]),u_M=_.gY(["./reach_worklet.js"]),j9z=_.gY(["./reach_worklet.html"]),Ipz=_.gY(["./reach_worklet.js"]),FhU=_.gY(["./reach_worklet.js"]);_.tZ(j9z);_.tZ(Ipz);_.tZ(FhU);var H8={left:0,top:0,width:0,height:0};var GT7,V0D,fp1,eKY,df,nKU,r97,wuU,oHo,bUb,oKU,bt7;GT7=function(D,Y,R,Z,t,X,M){var W="";D&&(W+=D+":");R&&(W+="//",Y&&(W+=Y+"@"),W+=R,Z&&(W+=":"+Z));t&&(W+=t);X&&(W+="?"+X);M&&(W+="#"+M);return W};
V0D=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.E3=function(D){return D.match(V0D)};
_.oa=function(D,Y){return D?Y?decodeURI(D):decodeURIComponent(D):D};
fp1=function(D){D=_.E3(D)[1]||null;!D&&_.ZU.self&&_.ZU.self.location&&(D=_.ZU.self.location.protocol.slice(0,-1));return D?D.toLowerCase():""};
_.gf=function(D){return _.oa(_.E3(D)[3]||null,!0)};
_.zZ=function(D){return _.oa(_.E3(D)[5]||null,!0)};
_.jqo=function(D){var Y=D.indexOf("#");return Y<0?null:D.slice(Y+1)};
eKY=function(D){D=_.E3(D);return GT7(D[1],D[2],D[3],D[4])};
_.A97=function(D){D=_.E3(D);return GT7(D[1],null,D[3],D[4])};
_.BO=function(D){D=_.E3(D);return GT7(null,null,null,null,D[5],D[6],D[7])};
_.Y8=function(D){var Y=D.indexOf("#");return Y<0?D:D.slice(0,Y)};
df=function(D,Y){D=_.E3(D);Y=_.E3(Y);return D[3]==Y[3]&&D[1]==Y[1]&&D[4]==Y[4]};
nKU=function(D,Y){if(D){D=D.split("&");for(var R=0;R<D.length;R++){var Z=D[R].indexOf("="),t=null;if(Z>=0){var X=D[R].substring(0,Z);t=D[R].substring(Z+1)}else X=D[R];Y(X,t?O3(t):"")}}};
r97=function(D){var Y=D.indexOf("#");Y<0&&(Y=D.length);var R=D.indexOf("?");if(R<0||R>Y){R=Y;var Z=""}else Z=D.substring(R+1,Y);return[D.slice(0,R),Z,D.slice(Y)]};
wuU=function(D,Y){return Y?D?D+"&"+Y:Y:D};
_.$kE=function(D,Y){if(!Y)return D;D=r97(D);D[1]=wuU(D[1],Y);return D[0]+(D[1]?"?"+D[1]:"")+D[2]};
_.vKE=function(D,Y,R){if(Array.isArray(Y))for(var Z=0;Z<Y.length;Z++)_.vKE(D,String(Y[Z]),R);else Y!=null&&R.push(D+(Y===""?"":"="+_.HD(Y)))};
_.TZ=function(D){var Y=[],R;for(R in D)_.vKE(R,D[R],Y);return Y.join("&")};
_.pb=function(D,Y){Y=_.TZ(Y);return _.$kE(D,Y)};
_.xr=function(D,Y,R){R=R!=null?"="+_.HD(R):"";return _.$kE(D,Y+R)};
oHo=function(D,Y,R,Z){for(var t=R.length;(Y=D.indexOf(R,Y))>=0&&Y<Z;){var X=D.charCodeAt(Y-1);if(X==38||X==63)if(X=D.charCodeAt(Y+t),!X||X==61||X==38||X==35)return Y;Y+=t+1}return-1};
bUb=/#|$/;_.LG=function(D,Y){var R=D.search(bUb),Z=oHo(D,0,Y,R);if(Z<0)return null;var t=D.indexOf("&",Z);if(t<0||t>R)t=R;Z+=Y.length+1;return O3(D.slice(Z,t!==-1?t:0))};
oKU=/[?&]($|#)/;_.Zi=function(D,Y){for(var R=D.search(bUb),Z=0,t,X=[];(t=oHo(D,Z,Y,R))>=0;)X.push(D.substring(Z,t)),Z=Math.min(D.indexOf("&",t)+1||R,R);X.push(D.slice(Z));return X.join("").replace(oKU,"$1")};
_.LI=function(D,Y,R){return _.xr(_.Zi(D,Y),Y,R)};
bt7=function(D){var Y=r97(window.location.href),R=Y[1],Z=[];R&&R.split("&").forEach(function(t){var X=t.indexOf("=");X=X>=0?t.slice(0,X):t;D.hasOwnProperty(X)||Z.push(t)});
Y[1]=wuU(Z.join("&"),_.TZ(D));return Y[0]+(Y[1]?"?"+Y[1]:"")+Y[2]};var vhU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(vhU,_.Y7);vhU.prototype.getVersion=function(){return _.Np(this,2)};var $CS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n($CS,_.Y7);var fCy=function(D,Y){return _.ew(D,2,Y)},wB9=function(D,Y){return _.ew(D,3,Y)};
$CS.prototype.getModel=function(){return _.Np(this,4)};
var AE$=function(D,Y){return _.ew(D,4,Y)},VH9=function(D,Y){return _.ew(D,5,Y)},rE5=function(D,Y){return _.ew(D,9,Y)},G_r=function(D,Y){return w0(D,10,Y)},Fm5=function(D,Y){return _.ug(D,11,Y)},e7U=function(D,Y){return _.ew(D,1,Y)},nhb=function(D,Y){return _.ug(D,7,Y)};var j09="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var gX=function(D,Y,R,Z){D=D===void 0?window:D;Y=Y===void 0?null:Y;R=R===void 0?new PNb:R;Z=Z===void 0?aCU():Z;L57.call(this);var t=this;this.global=D;this.debugChannel=Y;this.performanceMonitor=R;this.onPageHide=g3b(function(){return l4(t.global,"pagehide")}).pipe(m_(this.performanceMonitor,941));
this.onLoad=g3b(function(){return l4(t.global,"load")}).pipe(m_(this.performanceMonitor,738),Ph(1));
this.onResize=g3b(function(){return l4(t.global,"resize")}).pipe(m_(this.performanceMonitor,741));
this.onMessage=g3b(function(){return l4(t.global,"message")}).pipe(m_(this.performanceMonitor,740));
this.document=new Hj(this.global,this);this.timeProvider=new QlL(new poU(this.intrinsicFunctionNamespace,this.performanceMonitor),new Brb(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new HML(new gn4(this),new CkU(this),new SU(this,new OMV(this)),new SU(this,new SzY(this)),new SU(this,new mc(this)))};
_.n(gX,L57);var FI=function(D){var Y=D.global;return!!D.global.HTMLFencedFrameElement&&!!Y.fence&&typeof Y.fence.reportEvent==="function"};
_.u=gX.prototype;_.u.reportFencedFrameEvent=function(D){FI(this)&&this.global.fence.reportEvent(D)};
_.u.getOnBackgrounded=function(){return this.onPageHide.pipe(m_(this.performanceMonitor,942),zI(this.queue),vh(function(){}))};
_.u.postMessage=function(D,Y,R){R=R===void 0?[]:R;this.global.postMessage(D,Y,R)};
_.u.getWidth=function(){return n2y(this.global)?this.global.width:0};
_.u.getHeight=function(){return n2y(this.global)?this.global.height:0};
_.u.isMobile=function(){return DU1()||YLV()};
var L0=function(D,Y){try{var R=z7b(Y,D.global,D.isMobile());return{left:R.left,top:R.top,width:R.getWidth(),height:R.getHeight()}}catch(Z){return H8}};
gX.prototype.validate=function(){var D=this.beaconFactory.isSupported()||FI(this);return this.global&&this.timeProvider.available()&&D};
var m1b=function(D){return(D=bGl(D.global))?zl(D):null};
_.YF.Object.defineProperties(gX.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(D){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!n2y(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}}});_.y9L=!_.Cw&&!_.C99();var etn=function(D){return D};var nsU=function(D){return D.pipe(Ux(function(Y){var R=Y.endOfSessionReason;var Z;return((Z=Y.viewable)==null?void 0:Z.extrapolateToNow().value)||R!=void 0}),Ph(1),Hh())};var KmU=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},h7n=function(D){var Y=D.sequenceNumber.toString(10).padStart(2,"0");
Y=""+D.startTime+Y;D.sequenceNumber<99&&D.sequenceNumber++;return Y};var G6n=u4(Y2(function(D){return D.endOfSessionReason===void 0}),vh(function(D){return Object.assign({},D,{timestamps:rX(D)})}),Ux(function(D){var Y=D.viewable;
D=D.timestamps;var R;return(R=Y==null?void 0:Y.extrapolateUsingTimestampMap(D).value)!=null?R:!1}),vh(function(D){var Y=D.beaconFactory;
var R=D.timestampedExposureHistory;var Z=D.timeOnScreen;var t=D.binaryContext;D=D.timestamps;if(Y===void 0||R===void 0||Z===void 0||t===void 0)return!1;if(Z.extrapolateUsingTimestampMap(D).value.every(function(X){return X>=0}))return!0;
R=R.map(function(X){return X.timestamp+":"+X.value}).join(",");
Z=Lmj({bin:t,tos:Z},D);Y.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Z+("&eh="+R)).sendNow();return!0}),Y2(function(D){return!D}),Hh());var qWb=function(D){return{id:D.pingId,mcvt:D.maxConsecutiveViewTime,p:D.creativePosition,asp:D.adSpeedPosition,tm:D.totalMeasurementTime,tu:D.totalUnviewedTime,mtos:D.maxTimeOnScreen,tos:D.timeOnScreen,v:D.binaryVersion,bin:D.binaryContext,avms:D.measurementStrategy,bs:D.browserSize,mc:D.maximumExposure,"if":D.crossDomainIframeState,vu:D.delayedImpressionJsState,app:D.inApp,mse:D.mraidError,mtop:D.mraidSituation,itpl:D.injectedTemplateId,adk:D.adKey,exk:D.awbidKey,rs:D.requestSource,la:D.isLargeAd,
cr:D.isContentRecommendationAd,uach:D.userAgentClientHints,vs:D.viewState,r:D.reasonCode,pay:D.hasCpmavUrl,co:D.clientPingOrderCounter,rst:D.adRenderStartTime,rpt:D.adRenderPeriodTime,isd:D.initialScrollDepth,lsd:D.loadedScrollDepth,context:D.errorContext,msg:D.errorMessage,stack:D.errorStack,name:D.errorName,ec:D.hasElementChanged,sfr:D.strategyFailureReasons,met:D.creativeSearchResult,wmsd:D.webMeasurementStartDiagnostic,pv:D.pageVisible,epv:D.eosPageVisible,pbe:D.inStatefulBeaconExperiment,fle:D.inFetchLaterBeaconExperiment,
vae:D.inViewableAttributionExperiment,spb:D.supportsPendingBeacon,sfl:D.supportsFetchLater,ffslot:D.isFencedFrameSlotTurtlex,reach:D.sharedStorageReachMode,io2:D.v2VisibilityBitVector,rxdbg:D.rxDebugger,omida:D.omidAppId,omidp:D.omidPartner,omidpv:D.omidPartnerVersion,omidor:D.omidOcclusionReasons,omidv:D.omidVersion,omids:D.omidSessionType,omidam:D.omidAccessMode,omidct:D.omidCreativeType,omidia:D.omidInApp,omiddc:D.omidDeviceCategory,omidlat:D.omidLastActivity,omiddit:D.omidDeviceIdleTime,qid:D.errorEscapedQueryId}};var AQS=function(D){var Y=[];return D.pipe(vh(function(R){var Z=R.beaconFactory,t=R.fetchBeaconFactory,X=R.timeOnScreen,M=R.timeOnScreenUrlPrefixes,W=R.payloadMapper,z=R.timeOnScreenPingId,I=R.timeOnScreenReason,F=R.urlSerializer,G=R.viewable,V=R.hasImpressionFired,e=R.inStatefulBeaconExperiment,r=R.supportsPendingBeacon,l=R.supportsFetchLater,U=R.turtlexReportEventData;if(!R.geometryMeasurable||!V||R.maxTimeOnScreen===void 0||X===void 0||M===void 0||W===void 0||z===void 0||F===void 0||Z===void 0)return!1;
if(R.isTurtlex){if(I===void 0)return!1;M=R.reportFencedFrameEvent;if(!M)return!1;M({eventType:"active-view-time-on-screen",eventData:U!=null?U:"",destination:["buyer"]});return!0}if(!(e||l||I))return!1;U=rX(R);var K;G=(K=G==null?void 0:G.extrapolateUsingTimestampMap(U).value)!=null?K:!1;K=F(Object.assign({},R,{pingId:z,viewState:G?4:3,reasonCode:I!=null?I:"u",payloadMapper:W,urlPrefixes:M}),U);if(e){for(;Y.length>M.length;)R=void 0,(R=Y.shift())==null||R.deactivate();K.forEach(function(c,Q){Q>=Y.length?
Y.push(Z.makeBeacon(c)):Y[Q].url=c});
return r&&t&&I!==void 0?(K.forEach(function(c){t.makeBeacon(c).sendNow()}),!0):I!==void 0}if(r&&t&&I!==void 0)return K.forEach(function(c){t.makeBeacon(c).sendNow()}),!0;
if(l&&t){for(;Y.length>M.length;)r=void 0,(r=Y.shift())==null||r.deactivate();var H=F(Object.assign({},R,{pingId:z,viewState:G?4:3,reasonCode:I!=null?I:"u",payloadMapper:W,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),U)[0];K.forEach(function(c,Q){Q>=Y.length?Y.push(Z.makeBeacon(H,{endOfSession:!0})):Y[Q].url=H});
return I!==void 0?(K.forEach(function(c){t.makeBeacon(c).sendNow()}),!0):I!==void 0}return I!==void 0?(K.forEach(function(c){Z.makeBeacon(c).sendNow()}),!0):!1}),Y2(function(R){return!R}),Hh())};var rQb=u4(Ux(function(D){return D.immediateUrlPrefixes!==void 0&&D.payloadMapper!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),Ux(function(D){return gho(D)!==null}),pB9(function(D){return D.activeViewUnmeasurableEvent},function(D){return D.emit}),vh(function(D){if(D.isTurtlex){var Y=D.reportFencedFrameEvent;
if(Y){var R;Y({eventType:"active-view-unmeasurable",eventData:(R=D.turtlexReportEventData)!=null?R:"",destination:["buyer"]})}}else{R=void 0;var Z=gho(D);if(Z==="x"){var t,X=(t=D.geometricMeasurementErrors)!=null?t:D.contextValidationErrors;X&&(Y=X.stack,R=X.message)}D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:2,reasonCode:Z,errorMessage:R,errorStack:Y}),rX(D)).forEach(function(M){D.beaconFactory.makeBeacon(M).sendNow()})}}),
Ph(1),Hh());var dCl=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Ffl=u4(Ux(function(D){return D.payloadMapper!==void 0&&D.immediateUrlPrefixes!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),vh(function(D){return Object.assign({},D,{timestamps:rX(D)})}),Ux(function(D){var Y=D.viewable;
var R=D.hasImpressionFired;D=D.timestamps;var Z;return!!R&&((Z=Y==null?void 0:Y.extrapolateUsingTimestampMap(D).value)!=null?Z:!1)}),pB9(function(D){return D.activeViewViewableEvent},function(D){return D.emit}),vh(function(D){var Y=D.beaconFactory,R=D.turtlexReportEventData;
if(D.isTurtlex){var Z=D.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-viewable",eventData:R!=null?R:"",destination:["buyer"]});return!0}R=D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:4,reasonCode:"v"}),D.timestamps);(Z=D.cpmavUrls)&&Z.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(Z,D).forEach(function(t){Y.makeBeacon(t).sendNow()});
(Z=D.viewableRelayUrls)&&Z.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(Z,D).forEach(function(t){Y.makeBeacon(t).sendNow()});
R.forEach(function(t){Y.makeBeacon(t,{attributionEnabled:D.isViewableAttributionEnabled}).sendNow()});
return!0}),Y2(function(D){return!D}),Hh());var qU9=vh(function(D){return[D.value.topWindowViewportExternalGeometry.width,D.value.topWindowViewportExternalGeometry.height]});var mJ=function(D,Y){this.callback=D;this.options=Y;this.intersectionObserverV2=this.intersectionObserverV1=null},Atj=function(D,Y){Y?D.intersectionObserverV2||(Y=Object.assign({},D.options,{delay:100,
trackVisibility:!0}),D.intersectionObserverV2=new IntersectionObserver(D.callback,Y)):D.intersectionObserverV1||(D.intersectionObserverV1=new IntersectionObserver(D.callback,D.options))},NbE=function(D,Y){D=Y?D.intersectionObserverV2:D.intersectionObserverV1;
if(!D)throw new m$7;return D};
mJ.prototype.observe=function(D,Y){NbE(this,D).observe(Y)};
mJ.prototype.unobserve=function(D,Y){NbE(this,D).unobserve(Y)};
mJ.prototype.disconnect=function(D){NbE(this,D).disconnect()};
mJ.prototype.takeRecords=function(D){return NbE(this,D).takeRecords()};var CM9={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:H8,topWindowViewportExternalGeometry:H8,measurementRequests:new um,elementGeometrySourceName:"ns",elementGeometry:H8,intersectionGeometry:H8,viewportLocalAppOffset:{x:0,y:0}};var b4M=x2(u4(vh(function(D){var Y;return(Y=D.exposureOverride)!=null?Y:rtb(D)}),vh(function(D){return isFinite(D)?D:0}))),Kg9=x2(u4(vh(function(D){var Y;
return(Y=D.exposureOverride)!=null?Y:rtb(D)}),vh(function(D){return isFinite(D)?D:-1})));var Pj=function(D,Y){this.a=D;this.b=Y;if(D.clock.timeline!==Y.clock.timeline)throw Error();};
Pj.prototype.equivalentTo=function(D){return D instanceof Pj?this.a.equivalentTo(D.a)&&this.b.equivalentTo(D.b):!1};
Pj.prototype.extrapolateToTime=function(D){var Y=this.a.extrapolateToTime(D).value,R=this.b.extrapolateToTime(D).value;return{timestamp:D,value:[Y,R]}};
_.YF.Object.defineProperties(Pj.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 D=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),Y=this.a.lastMeasurement.timestamp.equals(D)?this.a.lastMeasurement.value:this.a.extrapolateToTime(D).value,R=this.b.lastMeasurement.timestamp.equals(D)?this.b.lastMeasurement.value:this.b.extrapolateToTime(D).value;return{timestamp:D,value:[Y,R]}}}});var Qy=function(D,Y){this.input=D;this.mapFunction=Y;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Qy.prototype.equivalentTo=function(D){return D instanceof Qy?this.input.equivalentTo(D.input)&&this.mapFunction===D.mapFunction:!1};
Qy.prototype.extrapolateToTime=function(D){D=this.input.extrapolateToTime(D);return{timestamp:D.timestamp,value:this.mapFunction(D.value)}};
_.YF.Object.defineProperties(Qy.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Bj=function(){};
Bj.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Bj.prototype.extrapolateUsingTimestampMap=function(D){var Y=this.clock.timeline,R,Z=(R=D.get(Y))!=null?R:this.clock.now();D.set(Y,Z);return this.extrapolateToTime(Z)};
Bj.prototype.map=function(D){return new lpE(this,D)};
Bj.prototype.joinWith=function(D){return new J9E(this,D)};
var J9E=function(){Pj.apply(this,arguments);this.map=Bj.prototype.map;this.joinWith=Bj.prototype.joinWith;this.extrapolateToNow=Bj.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Bj.prototype.extrapolateUsingTimestampMap};
_.n(J9E,Pj);var lpE=function(){Qy.apply(this,arguments);this.map=Bj.prototype.map;this.joinWith=Bj.prototype.joinWith;this.extrapolateToNow=Bj.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Bj.prototype.extrapolateUsingTimestampMap};
_.n(lpE,Qy);var B8=function(D,Y){this.lastMeasurement=Y;this.extrapolateToNow=Bj.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Bj.prototype.extrapolateUsingTimestampMap;this.map=Bj.prototype.map;this.joinWith=Bj.prototype.joinWith;this.clock=D};
B8.prototype.equivalentTo=function(D){return D.active};
B8.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.YF.Object.defineProperties(B8.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var mab=vh(function(D){if(D.value.viewportGeometrySourceName==="omid"){if(D.value.elementGeometrySourceName==="nio")return"omio";if(D.value.elementGeometrySourceName==="geo")return"omgeo"}return D.value.elementGeometrySourceName==="geo"||D.value.elementGeometrySourceName==="nio"?D.value.viewportGeometrySourceName:D.value.elementGeometrySourceName});var $ar=u4(Ux(function(D){return!isNaN(D)}),i4(function(D,Y){return isNaN(D)?Y:Math.min(D,Y)},NaN),Q9());var yti=x2(u4(vh(function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.exposedViewportLocalGeometry.width*D.exposedViewportLocalGeometry.height)}),vh(function(D){return isFinite(D)?Math.min(1,D):0})));var Lgy=u4(x2(vh(function(D){D=D.exposureOverride?D.elementGeometry.width*D.elementGeometry.height*D.exposureOverride/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height):D.intersectionGeometry.width*D.intersectionGeometry.height/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height);return isFinite(D)?D:0})));var PMU=function(D,Y){var R=this;this.timeProvider=D;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=Y.pipe(Q9()).subscribe(function(Z){B2U(R);R.measurementRequestObserver=Z})},p_r=function(D,Y){B2U(D);
D.lastMeasurementRequest=D.timeProvider.setTimeout(function(){var R;return void((R=D.measurementRequestObserver)==null?void 0:R.next())},Y)},B2U=function(D){D.lastMeasurementRequest!==null&&D.timeProvider.clearTimeout(D.lastMeasurementRequest);
D.lastMeasurementRequest=null};
PMU.prototype.dispose=function(){B2U(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var kTE=function(){};var Tfl=function(D,Y){this.context=D;this.strategies=Y};
_.n(Tfl,kTE);Tfl.prototype.buildGeometrySource=function(D,Y){var R=this.strategies.map(function(X){return X.buildGeometrySource(D,Y)}),Z=O4l(R.map(function(X){return X.geometrySource})),t=Z.capturedErrors.pipe(Ukz());
return{geometrySource:Z.chain.pipe(zI(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:t,strategyErrors:Z.capturedErrors}].concat(_.oK(R.map(function(X){return X.additionalOutputs}))))}};
var Ukz=function(){return i4(function(D,Y){Y instanceof $2?D.push(Y.measurementStrategyFailureReason):D.push(-1);return D},[])};var I1S=function(D,Y){this.context=D;this.poller=Y};
_.n(I1S,kTE);I1S.prototype.buildGeometrySource=function(D,Y){var R=cto(Y3l(this.context,this.poller),Wgn(this.context,Y.requestSource));return{geometrySource:i4b(D.measurableCreative.pipe(R),Y.inApp),additionalOutputs:{}}};var jpS=function(D,Y,R){R=R===void 0?FgU(D,Y):R;this.context=D;this.intersectionObserverStrategy=R};
_.n(jpS,kTE);jpS.prototype.buildGeometrySource=function(D,Y){var R=this.intersectionObserverStrategy(Y.useV2);return{geometrySource:i4b(D.measurableCreative.pipe(R,Gk$(this.context)),Y.inApp),additionalOutputs:{}}};var KhE=function(D,Y,R){var Z=Z===void 0?Symbol():Z;this.element=D;this.immediateUrls=Y;this.timeOnScreenUrls=R;this.symbol=Z};var xaS=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),XD$=Object.freeze([1,.75,xaS.exposureThreshold,xaS.largeAdExposureThreshold,0]);var Nx9=function(D,Y){Y=Y===void 0?36E5:Y;var R=R===void 0?!0:R;this.creatives=new um;this.elementsToUnregister=new um;this.elementMap=new Map;var Z=new gX(window,null);Z.beaconFactory=new SU(Z,new mc(Z));S3U(Z,this.creatives,this.elementsToUnregister,D,Y,R).subscribe()},kGi=function(D,Y,R,Z){if(!D.elementMap.has(Y)){var t=new hZ(Y);
D.elementMap.set(Y,t);D.creatives.next(new KhE(t,R,Z))}},Jqo=function(D,Y){D.elementsToUnregister.next(Y);
var R=D.elementMap.get(Y);R!==void 0&&(R.release(),D.elementMap.delete(Y))};var TsM=function(D){var Y=D.url;D=D.uaDataValues;this.JSC$9445_url_=Y;this.uaDataValues_=D;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var R=/[?&]([^&=]+)=([^&]*)/g;D=R.exec(Y);)this.urlParamValues_[D[1]]=D[2]},jT5=function(D){D=D.uaDataValues_;
if(!D)return"";var Y=im("uap",D.platform)+im("uapv",D.platformVersion)+im("uafv",D.uaFullVersion)+im("uaa",D.architecture)+im("uam",D.model)+im("uab",D.bitness);D.fullVersionList&&(Y+="&uafvl="+encodeURIComponent(D.fullVersionList.map(function(R){return encodeURIComponent(R.brand)+";"+encodeURIComponent(R.version)}).join("|")));
D.wow64!=null&&(Y+="&uaw="+Number(D.wow64));return Y.slice(1)};var hKz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(hKz,_.Y7);hKz.prototype.getId=function(){return _.Np(this,1)};var pC=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(pC,_.Y7);pC.prototype.getSeconds=function(){return bh(this,1)};
pC.prototype.setSeconds=function(D){return _.gb(this,1,sz(D),"0")};_.U0=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(_.U0,_.Y7);_.U0.prototype.getSeconds=function(){return bh(this,1)};
_.U0.prototype.setSeconds=function(D){return _.gb(this,1,sz(D),"0")};
_.LhL=function(D){var Y=Number(Jr(D,1));D=_.ZC(D,2);return new Date(Y*1E3+D/1E6)};var Er=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Er,_.Y7);Er.prototype.getUrl=function(){return _.Np(this,1)};
Er.prototype.setUrl=function(D){return _.E0(this,1,D)};
Er.prototype.getHeight=function(){return _.ZC(this,2)};
Er.prototype.getWidth=function(){return _.ZC(this,3)};var gy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(gy,_.Y7);gy.prototype.getAspectRatio=function(){return yn(this,1)};
gy.prototype.getDuration=function(){return _.tP(this,pC,2)};var mkb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(mkb,_.Y7);var qzb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(qzb,_.Y7);var HtD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(HtD,_.Y7);var xkL=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(xkL,_.Y7);var Pkz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Pkz,_.Y7);var Q9E=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Q9E,_.Y7);var Bbb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Bbb,_.Y7);var puV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(puV,_.Y7);var EKz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(EKz,_.Y7);var dy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(dy,_.Y7);var i3=[2,4,5,6,7];var gKL=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(gKL,_.Y7);var $0=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n($0,_.Y7);_.u=$0.prototype;_.u.getId=function(){return _.tP(this,hKz,1)};
_.u.getName=function(){return _.Np(this,2)};
_.u.setDescription=function(D){return _.E0(this,3,D)};
_.u.getUrl=function(){return _.Np(this,8)};
_.u.setUrl=function(D){return _.E0(this,8,D)};
var Or=function(D){return _.Yh(D,Er,10,_.R0())};
$0.prototype.getOwner=function(D){var Y=_.Pu(this,40,_.TT,3,!0);Bri(Y,D);return Y[D]};
$0.prototype.getVersion=function(){return bh(this,45)};
var cj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(cj,_.Y7);_.dkL=[0,NAn,JMn];_.itU=[0,NAn,JMn];var OtU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(OtU,_.Y7);var DW=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(DW,_.Y7);DW.prototype.getStatus=function(){return _.lh(this,1)};
DW.prototype.removeItem=function(D){return dho(this,2,D)};var c9Y=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(c9Y,_.Y7);c9Y.prototype.getName=function(){return _.Np(this,8)};var YB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(YB,_.Y7);YB.prototype.getCommand=function(){return _.lh(this,1)};
YB.prototype.getSource=function(){return _.tP(this,c9Y,2)};
YB.prototype.setVisible=function(D){return _.ll(this,5,D)};
YB.prototype.removeItem=function(D){return dho(this,7,D)};var Dy1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Dy1,_.Y7);Dy1.prototype.getCommand=function(){return _.lh(this,1)};
Dy1.prototype.removeItem=function(D){return dho(this,4,D)};
var YN4=_.zo(Dy1);var RF=function(D,Y,R){R=R===void 0?Error():R;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=D;Y+=":";R instanceof Error?(this.message=Y+R.message,this.stack=R.stack||""):(this.message=Y+String(R),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(RF,Error);_.AE=function(){this.JSC$9503_disposed_=this.JSC$9503_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.AE.prototype.JSC$9503_disposed_=!1;_.AE.prototype.isDisposed=function(){return this.JSC$9503_disposed_};
_.AE.prototype.dispose=function(){this.JSC$9503_disposed_||(this.JSC$9503_disposed_=!0,this.disposeInternal())};
_.AE.prototype[Symbol.dispose]=function(){this.dispose()};
_.WB=function(D,Y){D.addOnDisposeCallback(_.A4(_.OG,Y))};
_.AE.prototype.addOnDisposeCallback=function(D,Y){this.JSC$9503_disposed_?Y!==void 0?D.call(Y):D():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),Y&&(D=D.bind(Y)),this.onDisposeCallbacks_.push(D))};
_.AE.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ZW=function(D){_.AE.call(this);this.wpc=D};
_.n(ZW,_.AE);ZW.prototype.ybs=function(){return this.wpc.f()};
ZW.prototype.wOf=function(D){return this.wpc.c(D)};
ZW.prototype.ct=function(D){return this.wpc.m(bbo(D))};
ZW.prototype.skz=function(D){return this.wpc.mws(bbo(D))};
var DC=function(D){_.AE.call(this);var Y=this;this.vm=D;this.aTd="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.iwQ=void 0;this.mIM=this.vm.p;this.czX=this.xyk.bind(this);this.addOnDisposeCallback(function(){return void RE1(Y)})};
_.n(DC,_.AE);var Z$1=function(D){var Y;return _.C(function(R){if(R.nextAddress==1){if(!D.vm.wpc)throw new RF(30,"NWA");return D.q35?R.return(D.q35):R.yield(D.vm.wpc(),2)}Y=R.yieldResult;D.q35=new ZW(Y);return R.return(D.q35)})};
DC.prototype.snapshot=function(D){return this.vm.s(Object.assign({},D.lp&&{c:D.lp},D.jrl&&{s:D.jrl},D.cMy!==void 0&&{p:D.cMy}))};
DC.prototype.xyk=function(D){this.vm.e(D)};
DC.prototype.rS6=function(D,Y){return this.vm.c(D,Y,!1)};
var RE1=function(D){D.iwQ!==void 0&&(D.aTd.forEach(function(Y){var R;(R=D.iwQ)==null||R.removeEventListener(Y,D.czX)}),D.iwQ=void 0)};
DC.prototype.zf0=function(){return this.vm.l()};var tl=function(){_.AE.apply(this,arguments);this.gZJ=1};
_.n(tl,_.AE);tl.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.gZJ++;return this};
tl.prototype.dispose=function(){--this.gZJ||_.AE.prototype.dispose.call(this)};var tfU=function(D){this.wpU=D;D.addNewEventMetric("/client_streamz/bg/frs",_.X_("mk"))};
tfU.prototype.record=function(D,Y){this.wpU.record("/client_streamz/bg/frs",D,Y)};
var sJb=function(D){this.c3y=D;D.addNewEventMetric("/client_streamz/bg/wrl",_.X_("mn"),sW("ac"),sW("sc"),_.X_("rk"),_.X_("mk"))};
sJb.prototype.record=function(D,Y,R,Z,t,X){this.c3y.record("/client_streamz/bg/wrl",D,Y,R,Z,t,X)};
var XZU=function(D){this.ug9=D;D.addNewCounter("/client_streamz/bg/ec",_.X_("en"),_.X_("mk"))};
XZU.prototype.increment=function(D,Y){this.ug9.JSC$9756_incrementCounter("/client_streamz/bg/ec",D,Y)};
var uB1=function(D){this.qdq=D;D.addNewEventMetric("/client_streamz/bg/el",_.X_("en"),_.X_("mk"))};
uB1.prototype.record=function(D,Y,R){this.qdq.record("/client_streamz/bg/el",D,Y,R)};
var aG_=function(D){this.igN=D;D.addNewCounter("/client_streamz/bg/cec",sW("ec"),_.X_("mk"))};
aG_.prototype.increment=function(D,Y){this.igN.JSC$9756_incrementCounter("/client_streamz/bg/cec",D,Y)};
var MfU=function(D){this.vj9=D;D.addNewCounter("/client_streamz/bg/po/csc",sW("cs"),_.X_("mk"))};
MfU.prototype.increment=function(D,Y){this.vj9.JSC$9756_incrementCounter("/client_streamz/bg/po/csc",D,Y)};
var CTL=function(D){this.m4m=D;D.addNewCounter("/client_streamz/bg/po/ctav",_.X_("av"),_.X_("mk"))};
CTL.prototype.increment=function(D,Y){this.m4m.JSC$9756_incrementCounter("/client_streamz/bg/po/ctav",D,Y)};
var WSz=function(D){this.eTy=D;D.addNewCounter("/client_streamz/bg/po/cwsc",_.X_("su"),_.X_("mk"))};
WSz.prototype.increment=function(D,Y){this.eTy.JSC$9756_incrementCounter("/client_streamz/bg/po/cwsc",D,Y)};var t$U=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(t$U,_.Y7);var Zvi=function(D,Y){return _.Ez(D,3,Y,zYS)};var zEE=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(zEE,_.Y7);var SNU=[1,2,3];var Tg1=[0,SNU,_.LHr,ku9,hZr];var jJ4=[0,_.g0,[0,oi9,_.Qn]];var IGL=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(IGL,_.Y7);var FSE=[1,2,3];var GoY=[0,FSE,lZS,b7$,_.d0,jJ4];var Vf1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Vf1,_.Y7);var fG7=[0,_.g0,Tg1,GoY];var eEU=[0,_.Eb];var Af7=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Af7,_.Y7);var n77=[0,_.Eb,-1,_.pw];var rfU=[0,_.Eb,-1,_.BQ,_.pw];var wZz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(wZz,_.Y7);var $y7=[1,2,3];var v7D=[0,$y7,_.d0,n77,_.d0,rfU,_.d0,eEU];var o7b=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(o7b,_.Y7);o7b.prototype.JSC$9576_serializeBinary=KSU([0,_.Eb,v7D,mni,_.g0,fG7,Uni,KH5]);var b$z=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(b$z,_.Y7);var lGL=function(D){var Y=new o7b;Y=_.ew(Y,1,D.JSC$9692_metricName);var R=yfL(D);Y=_.Ez(Y,3,R,_.Ct);R=[];for(var Z=[],t=_.a(D.cellMap.keys()),X=t.next();!X.done;X=t.next())Z.push(X.value.split(","));for(t=0;t<Z.length;t++){X=Z[t];for(var M=D.cellType,W=D.getCells(X)||[],z=[],I=0;I<W.length;I++){var F=W[I],G=F&&F.cellValue;F=new IGL;switch(M){case 3:G=Number(G);Number.isFinite(G)&&Sq(F,1,FSE,sz(G));break;case 2:Sq(F,2,FSE,_.xE(Number(G)))}z.push(F)}M=z;for(W=0;W<M.length;W++){z=M[W];I=new Vf1;z=_.To(I,
2,z);I=[];F=NgL(D);for(G=0;G<F.length;G++){var V=F[G],e=X[G],r=new zEE;switch(V){case 3:Sq(r,1,SNU,Wu(String(e)));break;case 2:V=Number(e);Number.isFinite(V)&&Sq(r,2,SNU,_.OL(V));break;case 1:Sq(r,3,SNU,MDU(e==="true"))}I.push(r)}w0(z,1,I);R.push(z)}}w0(Y,4,R);return Y};var JfE=function(D){if(!D)return"";if(/^about:(?:blank|srcdoc)$/.test(D))return window.origin||"";D.indexOf("blob:")===0&&(D=D.substring(5));D=D.split("#")[0].split("?")[0];D=D.toLowerCase();D.indexOf("//")==0&&(D=window.location.protocol+D);/^[\w\-]*:\/\//.test(D)||(D=window.location.href);var Y=D.substring(D.indexOf("://")+3),R=Y.indexOf("/");R!=-1&&(Y=Y.substring(0,R));R=D.substring(0,D.indexOf("://"));if(!R)throw Error("qa`"+D);if(R!=="http"&&R!=="https"&&R!=="chrome-extension"&&R!=="moz-extension"&&
R!=="file"&&R!=="android-app"&&R!=="chrome-search"&&R!=="chrome-untrusted"&&R!=="chrome"&&R!=="app"&&R!=="devtools")throw Error("ra`"+R);D="";var Z=Y.indexOf(":");if(Z!=-1){var t=Y.substring(Z+1);Y=Y.substring(0,Z);if(R==="http"&&t!=="80"||R==="https"&&t!=="443")D=":"+t}return R+"://"+Y+D};var UyE=function(D,Y,R){var Z=String(_.ZU.location.href);return Z&&D&&Y?[Y,koz(JfE(Z),D,R||null)].join(" "):null},koz=function(D,Y,R){var Z=[],t=[];
if((Array.isArray(R)?2:1)==1)return t=[Y,D],_.xs(Z,function(W){t.push(W)}),KS_(t.join(" "));
var X=[],M=[];_.xs(R,function(W){M.push(W.key);X.push(W.value)});
R=Math.floor((new Date).getTime()/1E3);t=X.length==0?[R,Y,D]:[X.join(":"),R,Y,D];_.xs(Z,function(W){t.push(W)});
D=KS_(t.join(" "));D=[R,D];M.length==0||D.push(M.join(""));return D.join("_")},KS_=function(D){var Y=htS();
Y.update(D);return Y.digestString().toLowerCase()};var sk=function(D){this.JSC$9587_document_=D||{cookie:""}},hE7;
_.u=sk.prototype;_.u.isEnabled=function(){if(!_.ZU.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};
_.u.set=function(D,Y,R){var Z=!1;if(typeof R==="object"){var t=R.sameSite;Z=R.secure||!1;var X=R.domain||void 0;var M=R.path||void 0;var W=R.maxAge}if(/[;=\s]/.test(D))throw Error("sa`"+D);if(/[;\r\n]/.test(Y))throw Error("ta`"+Y);W===void 0&&(W=-1);R=X?";domain="+X:"";M=M?";path="+M:"";Z=Z?";secure":"";W=W<0?"":W==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+W*1E3)).toUTCString();this.JSC$9587_document_.cookie=D+"="+Y+R+M+W+Z+(t!=null?";samesite="+t:"")};
_.u.get=function(D,Y){for(var R=D+"=",Z=(this.JSC$9587_document_.cookie||"").split(";"),t=0,X;t<Z.length;t++){X=TU(Z[t]);if(X.lastIndexOf(R,0)==0)return X.slice(R.length);if(X==D)return""}return Y};
_.u.remove=function(D,Y,R){var Z=this.containsKey(D);this.set(D,"",{maxAge:0,path:Y,domain:R});return Z};
_.u.getKeys=function(){return hE7(this).keys};
_.u.getValues=function(){return hE7(this).values};
_.u.isEmpty=function(){return!this.JSC$9587_document_.cookie};
_.u.getCount=function(){return this.JSC$9587_document_.cookie?(this.JSC$9587_document_.cookie||"").split(";").length:0};
_.u.containsKey=function(D){return this.get(D)!==void 0};
_.u.containsValue=function(D){for(var Y=hE7(this).values,R=0;R<Y.length;R++)if(Y[R]==D)return!0;return!1};
_.u.clear=function(){for(var D=hE7(this).keys,Y=D.length-1;Y>=0;Y--)this.remove(D[Y])};
hE7=function(D){D=(D.JSC$9587_document_.cookie||"").split(";");for(var Y=[],R=[],Z,t,X=0;X<D.length;X++)t=TU(D[X]),Z=t.indexOf("="),Z==-1?(Y.push(""),R.push(t)):(Y.push(t.substring(0,Z)),R.push(t.substring(Z+1)));return{keys:Y,values:R}};
_.FW=new sk(typeof document=="undefined"?null:document);var D0r,LS_;D0r=function(){var D=_.ZU.__SAPISID||_.ZU.__APISID||_.ZU.__3PSAPISID||_.ZU.__1PSAPISID||_.ZU.__OVERRIDE_SID;if(D)return!0;typeof document!=="undefined"&&(D=new sk(document),D=D.get("SAPISID")||D.get("APISID")||D.get("__Secure-3PAPISID")||D.get("__Secure-1PAPISID"));return!!D};
LS_=function(D,Y,R,Z){(D=_.ZU[D])||typeof document==="undefined"||(D=(new sk(document)).get(Y));return D?UyE(D,R,Z):null};
_.PPU=function(D){var Y=JfE(_.ZU==null?void 0:_.ZU.location.href),R=[];if(D0r()){Y=Y.indexOf("https:")==0||Y.indexOf("chrome-extension:")==0||Y.indexOf("chrome-untrusted://new-tab-page")==0||Y.indexOf("moz-extension:")==0;var Z=Y?_.ZU.__SAPISID:_.ZU.__APISID;Z||typeof document==="undefined"||(Z=new sk(document),Z=Z.get(Y?"SAPISID":"APISID")||Z.get("__Secure-3PAPISID"));(Z=Z?UyE(Z,Y?"SAPISIDHASH":"APISIDHASH",D):null)&&R.push(Z);Y&&((Y=LS_("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",D))&&R.push(Y),
(D=LS_("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",D))&&R.push(D))}return R.length==0?null:R.join(" ")};var myY=function(){this.minSize=1024};
myY.prototype.compress=function(D){var Y,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return Y=new CompressionStream("gzip"),R=(new Response(Y.readable)).arrayBuffer(),Z=Y.writable.getWriter(),X.yield(Z.write((new TextEncoder).encode(D)),2);case 2:return X.yield(Z.close(),3);case 3:return t=Uint8Array,X.yield(R,4);case 4:return X.return(new t(X.yieldResult))}})};
myY.prototype.isSupported=function(D){return D<this.minSize?!1:typeof CompressionStream!=="undefined"};var qN4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(qN4,_.Y7);var XQ=function(D,Y){this.intervalMs=D;this.callback=Y;this.enabled=!1;this.nowFn=function(){return _.sb()};
this.lastTimeMs=this.nowFn()};
XQ.prototype.setInterval=function(D){this.intervalMs=D;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
XQ.prototype.start=function(){var D=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){D.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
XQ.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
XQ.prototype.tick=function(){var D=this;if(this.enabled){var Y=Math.max(this.nowFn()-this.lastTimeMs,0);Y<this.intervalMs*.8?this.timer=setTimeout(function(){D.tick()},this.intervalMs-Y):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var H$b=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(H$b,_.Y7);var xyz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(xyz,_.Y7);var PTU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(PTU,_.Y7);PTU.prototype.getTransmissionType=function(){return _.lh(this,1)};var Hb5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Hb5,_.Y7);Hb5.prototype.getVersion=function(){return _.Np(this,2)};var uQ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(uQ,_.Y7);var q3o=function(D){w0(xJU,1,D)};
uQ.prototype.getModel=function(){return _.Np(this,6)};
var QJL=_.zo(uQ);var Bgz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Bgz,_.Y7);var Lf9=["platform","platformVersion","architecture","model","uaFullVersion"],xJU=new uQ,mJU=null;var aF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(aF,_.Y7);var pZL=function(D){return _.s1(D,1,1)};var E7z=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,4)};
_.n(E7z,_.Y7);_.MZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,36)};
_.n(_.MZ,_.Y7);_.MZ.prototype.getExperimentIds=function(){return _.tP(this,qN4,16)};var g7U=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,19)};
_.n(g7U,_.Y7);g7U.prototype.setLogSource=function(D){return _.s1(this,2,D)};
g7U.prototype.setScheduler=function(D){return _.s1(this,10,D)};var i$7=function(D,Y){this.isServiceWorkerScope=Y=Y===void 0?!1:Y;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new g7U;Number.isInteger(D)&&this.logRequest.setLogSource(D);Y||(this.locale=document.documentElement.getAttribute("lang"));dyU(this,new aF)};
i$7.prototype.setLogSource=function(D){this.logRequest.setLogSource(D);return this};
var dyU=function(D,Y){_.To(D.logRequest,1,Y);_.lh(Y,1)||pZL(Y);D.isServiceWorkerScope||(Y=Cg(D),_.Np(Y,5)||_.ew(Y,5,D.locale));D.uach&&(Y=Cg(D),_.tP(Y,uQ,9)||_.To(Y,9,D.uach))},O$U=function(D,Y){D.transmissionType=Y},cfz=function(D){var Y=Y===void 0?Lf9:Y;
var R=D.isServiceWorkerScope?void 0:JZ();R?P19(R,Y).then(function(Z){D.uach=QJL(Z!=null?Z:"[]");Z=Cg(D);_.To(Z,9,D.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Cg=function(D){var Y=_.tP(D.logRequest,aF,1);
Y||(Y=new aF,dyU(D,Y));D=Y;Y=_.tP(D,Bgz,11);Y||(Y=new Bgz,_.To(D,11,Y));return Y};
i$7.prototype.build=function(D,Y,R,Z,t,X){Y=Y===void 0?0:Y;R=R===void 0?0:R;Z=Z===void 0?null:Z;t=t===void 0?0:t;X=X===void 0?0:X;if(!this.isServiceWorkerScope){var M=Cg(this);var W=new PTU;W=_.s1(W,1,this.transmissionType);W=_.ug(W,2,this.isFinal);R=_.Kw(W,3,R>0?R:void 0);R=_.Kw(R,4,t>0?t:void 0);R=_.Kw(R,5,X>0?X:void 0);t=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=t[_.sL]|0;R=zE(R,X)?R:A95(R,t,X)?eKj(R,t):new R.constructor(J9(t,X,!0));_.To(M,10,R)}M=this.logRequest.clone();R=Date.now().toString();
M=_.XG(M,4,sz(R));D=D.slice();D=w0(M,3,D);Z&&(M=new H$b,Z=_.Kw(M,13,Z),M=new xyz,Z=_.To(M,2,Z),M=new E7z,Z=_.To(M,1,Z),Z=_.s1(Z,2,9),_.To(D,18,Z));Y&&_.fI(D,14,Y);return D};a0.prototype.currBackoffCount_=0;a0.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
a0.prototype.getValue=function(){return this.currValue_};
var Dc_=function(D){D.currBaseValue_=Math.min(D.maxValue_,D.currBaseValue_*D.backoffFactor_);D.currValue_=Math.min(D.maxValue_,D.currBaseValue_+(D.randomFactor_?Math.round(D.randomFactor_*(Math.random()-.5)*2*D.currBaseValue_):0));D.currBackoffCount_++};var QBr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,8)};
_.n(QBr,_.Y7);var Yxz=_.zo(QBr);var BAb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(BAb,_.Y7);var WP;WP=new pTi;var zg=function(D){_.AE.call(this);var Y=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9665_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$9665_sendBeaconApiEnabled=!1;this.logSource=D.logSource;this.getAuthHeaderValue=
D.getAuthHeaderValue||function(){};
this.logRequestBuilder=new i$7(D.logSource,D.isServiceWorkerScope);this.network=D.network||null;this.productID=D.productID||null;this.bufferSize=1E3;this.clearcutUrl=D.urlOverride||null;this.sessionIndex=D.sessionIndex||null;this.disableAutomaticFlush=D.disableAutomaticFlush||!1;this.withCredentials=!D.disableWithCredentials;this.isServiceWorkerScope=D.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!JZ()&&!!JZ().navigator&&JZ().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(RSz())).searchParams&&!!(new URL(RSz())).searchParams.set;var R=pZL(new aF);dyU(this.logRequestBuilder,R);this.flushBackoff=new a0(1E4,3E5,.1);D=Zjb(this,D.backgroundJobDeferrer);this.JSC$9665_flushTimer=new XQ(this.flushBackoff.getValue(),D);this.backupTimer=new XQ(6E5,D);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){tXD(Y);
var Z;(Z=Y.metalogService)==null||Z.flush()}}),document.addEventListener("pagehide",function(){tXD(Y);
var Z;(Z=Y.metalogService)==null||Z.flush()}))};
_.n(zg,_.AE);var Zjb=function(D,Y){return D.isBrowserSupported?Y?function(){Y().then(function(){D.flush()})}:function(){D.flush()}:function(){}};
zg.prototype.disposeInternal=function(){tXD(this);this.JSC$9665_flushTimer.stop();this.backupTimer.stop();_.AE.prototype.disposeInternal.call(this)};
var sK1=function(D){D.clearcutUrl||(D.clearcutUrl=RSz());try{return(new URL(D.clearcutUrl)).toString()}catch(Y){return(new URL(D.clearcutUrl,JZ().location.origin)).toString()}};
zg.prototype.dispatch=function(D){if(D instanceof _.MZ)this.log(D);else try{var Y=new _.MZ,R=D.serialize();var Z=_.ew(Y,8,R);this.log(Z)}catch(t){SE(this,4,1)}};
var SE=function(D,Y,R){D.metalogService&&D.metalogService.increment(Y,R)};
zg.prototype.log=function(D){SE(this,2,1);if(this.isBrowserSupported){D=D.clone();var Y=this.sequencePosition++;D=_.fI(D,21,Y);this.componentId&&_.ew(D,26,this.componentId);Y=D;if(y1i(_.Vn(Y,1))==null){var R=Date.now();R=Number.isFinite(R)?R.toString():"0";_.XG(Y,1,sz(R))}_.bL5(_.Vn(Y,15))!=null||_.fI(Y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(R=this.experimentIds.clone(),_.To(Y,16,R));SE(this,1,1);Y=this.pendingEvents.length-this.bufferSize+1;Y>0&&(this.pendingEvents.splice(0,Y),
this.numLogsDroppedSinceLastFlush+=Y,SE(this,3,Y));this.pendingEvents.push(D);this.disableAutomaticFlush||this.JSC$9665_flushTimer.enabled||this.JSC$9665_flushTimer.start()}};
zg.prototype.flush=function(D,Y){var R=this;if(this.pendingEvents.length===0)D&&D();else if(this.JSC$9665_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Xh7(this);else{var Z=Date.now();if(this.noFlushUntilMs>Z&&this.startWaitingMs<Z)Y&&Y("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?O$U(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var t=this.pendingEvents.length,
X=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),M=this.getAuthHeaderValue();if(M&&this.lastFailedAuth===M)Y&&Y("stale-auth-token");else{this.pendingEvents=[];this.JSC$9665_flushTimer.enabled&&this.JSC$9665_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Z=X.serialize();var W;this.JSC$9665_compressor&&this.JSC$9665_compressor.isSupported(Z.length)&&
(W=this.JSC$9665_compressor.compress(Z));var z=uxz(this,Z,M),I=function(V){R.flushBackoff.reset();R.JSC$9665_flushTimer.setInterval(R.flushBackoff.getValue());if(V){var e=null;try{var r=JSON.stringify(JSON.parse(V.replace(")]}'\n","")));e=Yxz(r)}catch(l){}e&&(V=Number(bh(e,1,_.J1("-1"))),V>0&&(R.startWaitingMs=Date.now(),R.noFlushUntilMs=R.startWaitingMs+V),OLM(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,WP.fieldIndex),dUr(e,WP.fieldIndex),e=WP.ctor?WP.getExtensionFn(e,WP.ctor,WP.fieldIndex,
WP.JSC$8845_hasMessageId):WP.getExtensionFn(e,WP.fieldIndex,null,WP.JSC$8845_hasMessageId),e=e===null?void 0:e)&&(e=_.ZC(e,1,-1),e!==-1&&(R.flushBackoff=new a0(e<1?1:e,3E5,.1),R.JSC$9665_flushTimer.setInterval(R.flushBackoff.getValue())))}D&&D();R.numRetriesSinceLastSuccessfulFlush=0},F=function(V,e){var r=_.Yh(X,_.MZ,3,_.R0());
var l=Number(bh(X,14));Dc_(R.flushBackoff);R.JSC$9665_flushTimer.setInterval(R.flushBackoff.getValue());V===401&&M&&(R.lastFailedAuth=M);l&&(R.numLogsDroppedSinceLastFlush+=l);e===void 0&&(e=R.isRetryable(V));e&&(R.pendingEvents=r.concat(R.pendingEvents),R.disableAutomaticFlush||R.JSC$9665_flushTimer.enabled||R.JSC$9665_flushTimer.start());SE(R,7,1);Y&&Y("net-send-failed",V);++R.numRetriesSinceLastSuccessfulFlush},G=function(){R.network&&R.network.send(z,I,F)};
W?W.then(function(V){SE(R,5,t);z.requestHeaders["Content-Encoding"]="gzip";z.requestHeaders["Content-Type"]="application/binary";z.body=V;z.bodyType=2;G()},function(){SE(R,6,t);
G()}):G()}}}};
var uxz=function(D,Y,R){R=R===void 0?null:R;var Z=Z===void 0?D.withCredentials:Z;var t={},X=new URL(sK1(D));R&&(t.Authorization=R);D.sessionIndex&&(t["X-Goog-AuthUser"]=D.sessionIndex,X.searchParams.set("authuser",D.sessionIndex));D.pageId&&(Object.defineProperty(t,"X-Goog-PageId",{value:D.pageId}),X.searchParams.set("pageId",D.pageId));return{url:X.toString(),body:Y,bodyType:1,requestHeaders:t,requestType:"POST",withCredentials:Z,timeoutMillis:D.timeoutMillis}},tXD=function(D){D.logRequestBuilder.isFinal=
!0;
D.flush();D.logRequestBuilder.isFinal=!1},Xh7=function(D){ad_(D,function(Y,R){Y=new URL(Y);
Y.searchParams.set("format","json");var Z=!1;try{Z=JZ().navigator.sendBeacon(Y.toString(),R.serialize())}catch(t){}Z||(D.isSendBeaconSupported=!1);return Z})},ad_=function(D,Y){if(D.pendingEvents.length!==0){var R=new URL(sK1(D));
R.searchParams.delete("format");var Z=D.getAuthHeaderValue();Z&&R.searchParams.set("auth",Z);R.searchParams.set("authuser",D.sessionIndex||"0");for(Z=0;Z<10&&D.pendingEvents.length;++Z){var t=D.pendingEvents.slice(0,32),X=D.logRequestBuilder.build(t,D.numLogsDroppedSinceLastFlush,D.numRetriesSinceLastSuccessfulFlush,D.productID,D.persistedLogRecoveredCount,D.persistedLogExpiredCount);if(!Y(R.toString(),X)){++D.numRetriesSinceLastSuccessfulFlush;break}D.numLogsDroppedSinceLastFlush=0;D.numRetriesSinceLastSuccessfulFlush=
0;D.persistedLogRecoveredCount=0;D.persistedLogExpiredCount=0;D.pendingEvents=D.pendingEvents.slice(t.length)}D.JSC$9665_flushTimer.enabled&&D.JSC$9665_flushTimer.stop()}};
zg.prototype.isRetryable=function(D){return 500<=D&&D<600||D===401||D===0};
var RSz=function(){return"https://play.google.com/log?format=json&hasfast=true"};var MX7=function(){this.abortSupported=typeof AbortController!=="undefined"};
MX7.prototype.send=function(D,Y,R){var Z=this,t,X,M,W,z,I,F,G,V,e;return _.C(function(r){switch(r.nextAddress){case 1:return X=(t=Z.abortSupported?new AbortController:void 0)?setTimeout(function(){t.abort()},D.timeoutMillis):void 0,_.SX(r,2,3),M=Object.assign({},{method:D.requestType,
headers:Object.assign({},D.requestHeaders)},D.body&&{body:D.body},D.withCredentials&&{credentials:"include"},{signal:D.timeoutMillis&&t?t.signal:null}),r.yield(fetch(D.url,M),5);case 5:W=r.yieldResult;if(W.status!==200){(z=R)==null||z(W.status);r.jumpTo(3);break}if((I=Y)==null){r.jumpTo(7);break}return r.yield(W.text(),8);case 8:I(r.yieldResult);case 7:case 3:_.jX(r);clearTimeout(X);_.Fx(r,0);break;case 2:F=_.Gl(r);switch((G=F)==null?void 0:G.name){case "AbortError":(V=R)==null||V(408);break;default:(e=
R)==null||e(400)}r.jumpTo(3)}})};
MX7.prototype.getTransmissionType=function(){return 4};_.CG=function(D,Y){Y=Y===void 0?"0":Y;_.AE.call(this);this.logSource=D;this.sessionIndex=Y;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9683_clearExperimentIds=this.productID=null;this.JSC$9683_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.n(_.CG,_.AE);var DE9=function(D,Y){D.buildLabel=Y;return D},cQi=function(D,Y){D.network=Y;
return D},RrS=function(D,Y){D.JSC$9683_clearExperimentIds=Y},ObU=function(D){D.JSC$9683_sendBeaconApiEnabled=!0;
return D};
_.CG.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.CG.prototype.build=function(){this.network||(this.network=new MX7);var D=new zg({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.PPU,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.WB(this,D);if(this.buildLabel){var Y=this.buildLabel,R=
Cg(D.logRequestBuilder);_.ew(R,7,Y)}D.JSC$9665_compressor=new myY;this.componentId&&(D.componentId=this.componentId);this.productID&&(D.productID=this.productID);this.pageId&&(D.pageId=this.pageId);this.JSC$9683_clearExperimentIds&&((R=this.JSC$9683_clearExperimentIds)?(D.experimentIds||(D.experimentIds=new qN4),Y=D.experimentIds,R=R.serialize(),_.ew(Y,4,R)):D.experimentIds&&_.XG(D.experimentIds,4));this.JSC$9683_sendBeaconApiEnabled&&(D.JSC$9665_sendBeaconApiEnabled=D.isSendBeaconSupported);cfz(D.logRequestBuilder);
this.bufferSize&&(D.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(D);return D};var snl=function(D,Y,R,Z,t,X,M){D=D===void 0?-1:D;Y=Y===void 0?"":Y;R=R===void 0?"":R;Z=Z===void 0?!1:Z;t=t===void 0?"":t;_.AE.call(this);this.logSource=D;this.componentId=Y;X?Y=X:(D=new _.CG(D,"0"),D.componentId=Y,_.WB(this,D),R!==""&&(D.destinationUrl=R),Z&&(D.serviceWorkerScopeEnabled=!0),t&&DE9(D,t),M&&cQi(D,M),Y=D.build());this.JSC$9687_transport=Y};
_.n(snl,_.AE);snl.prototype.flush=function(D){D=D||[];if(D.length){for(var Y=new b$z,R=[],Z=0;Z<D.length;Z++){var t=D[Z],X=lGL(t);R.push(X);t.clear()}w0(Y,1,R);this.JSC$9687_transport.dispatch(Y);this.JSC$9687_transport.flush()}};var C4L=function(D){this.cellValue=D};var Tg=function(D,Y,R){this.JSC$9692_metricName=D;this.cellType=Y;this.fields=R||[];this.cellMap=new Map},NgL=function(D){return D.fields.map(function(Y){return Y.fieldType})},yfL=function(D){return D.fields.map(function(Y){return Y.fieldName})};
_.u=Tg.prototype;_.u.addCell=function(D){var Y=_.UN.apply(1,arguments),R=this.getCells(Y);R?R.push(new C4L(D)):this.JSC$9692_setCell(D,Y)};
_.u.JSC$9692_setCell=function(D){var Y=this.JSC$9692_getKey(_.UN.apply(1,arguments));this.cellMap.set(Y,[new C4L(D)])};
_.u.getCells=function(){var D=this.JSC$9692_getKey(_.UN.apply(0,arguments));return this.cellMap.has(D)?this.cellMap.get(D):void 0};
_.u.getCell=function(){var D=this.getCells(_.UN.apply(0,arguments));return D&&D.length?D[0]:void 0};
_.u.clear=function(){this.cellMap.clear()};
_.u.JSC$9692_getKey=function(){var D=_.UN.apply(0,arguments);return D?D.join(","):"key"};var W_z=function(D,Y){Tg.call(this,D,3,Y)};
_.n(W_z,Tg);W_z.prototype.JSC$9695_incrementCounterBy=function(D){var Y=_.UN.apply(1,arguments),R=0,Z=this.getCell(Y);Z&&(R=Z.cellValue);this.JSC$9692_setCell(R+D,Y)};var zSE=function(D,Y){Tg.call(this,D,2,Y)};
_.n(zSE,Tg);zSE.prototype.record=function(D){this.addCell(D,_.UN.apply(1,arguments))};_.jE=function(D){this.id=D};
_.jE.prototype.toString=function(){return this.id};_.IF=function(D,Y){this.type=D instanceof _.jE?String(D):D;this.currentTarget=this.target=Y;this.defaultPrevented=this.propagationStopped_=!1};
_.IF.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.IF.prototype.preventDefault=function(){this.defaultPrevented=!0};_.FQ=function(D,Y){_.IF.call(this,D?D.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;D&&this.init(D,Y)};
_.XN(_.FQ,_.IF);
_.FQ.prototype.init=function(D,Y){var R=this.type=D.type,Z=D.changedTouches&&D.changedTouches.length?D.changedTouches[0]:null;this.target=D.target||D.srcElement;this.currentTarget=Y;Y=D.relatedTarget;Y||(R=="mouseover"?Y=D.fromElement:R=="mouseout"&&(Y=D.toElement));this.relatedTarget=Y;Z?(this.clientX=Z.clientX!==void 0?Z.clientX:Z.pageX,this.clientY=Z.clientY!==void 0?Z.clientY:Z.pageY,this.screenX=Z.screenX||0,this.screenY=Z.screenY||0):(this.offsetX=_.zX||D.offsetX!==void 0?D.offsetX:D.layerX,
this.offsetY=_.zX||D.offsetY!==void 0?D.offsetY:D.layerY,this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0);this.button=D.button;this.keyCode=D.keyCode||0;this.key=D.key||"";this.charCode=D.charCode||(R=="keypress"?D.keyCode:0);this.ctrlKey=D.ctrlKey;this.altKey=D.altKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pointerId=D.pointerId||0;this.pointerType=D.pointerType;this.state=D.state;
this.timeStamp=D.timeStamp;this.event_=D;D.defaultPrevented&&_.FQ.superClass_.preventDefault.call(this)};
_.FQ.prototype.stopPropagation=function(){_.FQ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.FQ.prototype.preventDefault=function(){_.FQ.superClass_.preventDefault.call(this);var D=this.event_;D.preventDefault?D.preventDefault():D.returnValue=!1};var SxU="closure_listenable_"+(Math.random()*1E6|0),Gg=function(D){return!(!D||!D[SxU])};var T9L=0;var jK_=function(D,Y,R,Z,t){this.listener=D;this.proxy=null;this.src=Y;this.type=R;this.capture=!!Z;this.handler=t;this.key=++T9L;this.removed=this.callOnce=!1},IdE=function(D){D.removed=!0;
D.listener=null;D.proxy=null;D.src=null;D.handler=null};MC.prototype.add=function(D,Y,R,Z,t){var X=D.toString();D=this.listeners[X];D||(D=this.listeners[X]=[],this.typeCount_++);var M=F_D(D,Y,Z,t);M>-1?(Y=D[M],R||(Y.callOnce=!1)):(Y=new jK_(Y,this.src,X,!!Z,t),Y.callOnce=R,D.push(Y));return Y};
MC.prototype.remove=function(D,Y,R,Z){D=D.toString();if(!(D in this.listeners))return!1;var t=this.listeners[D];Y=F_D(t,Y,R,Z);return Y>-1?(IdE(t[Y]),_.nnU(t,Y),t.length==0&&(delete this.listeners[D],this.typeCount_--),!0):!1};
var GlL=function(D,Y){var R=Y.type;if(!(R in D.listeners))return!1;var Z=_.m5(D.listeners[R],Y);Z&&(IdE(Y),D.listeners[R].length==0&&(delete D.listeners[R],D.typeCount_--));return Z};
MC.prototype.removeAll=function(D){D=D&&D.toString();var Y=0,R;for(R in this.listeners)if(!D||R==D){for(var Z=this.listeners[R],t=0;t<Z.length;t++)++Y,IdE(Z[t]);delete this.listeners[R];this.typeCount_--}return Y};
MC.prototype.getListener=function(D,Y,R,Z){D=this.listeners[D.toString()];var t=-1;D&&(t=F_D(D,Y,R,Z));return t>-1?D[t]:null};
MC.prototype.hasListener=function(D,Y){var R=D!==void 0,Z=R?D.toString():"",t=Y!==void 0;return _.y7.some(this.listeners,function(X){for(var M=0;M<X.length;++M)if(!(R&&X[M].type!=Z||t&&X[M].capture!=Y))return!0;return!1})};
var F_D=function(D,Y,R,Z){for(var t=0;t<D.length;++t){var X=D[t];if(!X.removed&&X.listener==Y&&X.capture==!!R&&X.handler==Z)return t}return-1};var VXE,fdE,eSV,n3E,rFL,$C,vL,v31,whD,$cU,VF,o3E,AF4;VXE="closure_lm_"+(Math.random()*1E6|0);fdE={};eSV=0;_.yu=function(D,Y,R,Z,t){if(Z&&Z.once)return $C(D,Y,R,Z,t);if(Array.isArray(Y)){for(var X=0;X<Y.length;X++)_.yu(D,Y[X],R,Z,t);return null}R=AF4(R);return Gg(D)?D.listen(Y,R,_.Bo(Z)?!!Z.capture:!!Z,t):n3E(D,Y,R,!1,Z,t)};
n3E=function(D,Y,R,Z,t,X){if(!Y)throw Error("va");var M=_.Bo(t)?!!t.capture:!!t,W=VF(D);W||(D[VXE]=W=new MC(D));R=W.add(Y,R,Z,M,X);if(R.proxy)return R;Z=rFL();R.proxy=Z;Z.src=D;Z.listener=R;if(D.addEventListener)_.eWy||(t=M),t===void 0&&(t=!1),D.addEventListener(Y.toString(),Z,t);else if(D.attachEvent)D.attachEvent(whD(Y.toString()),Z);else if(D.addListener&&D.removeListener)D.addListener(Z);else throw Error("wa");eSV++;return R};
rFL=function(){var D=$cU,Y=function(R){return D.call(Y.src,Y.listener,R)};
return Y};
$C=function(D,Y,R,Z,t){if(Array.isArray(Y)){for(var X=0;X<Y.length;X++)$C(D,Y[X],R,Z,t);return null}R=AF4(R);return Gg(D)?D.listenOnce(Y,R,_.Bo(Z)?!!Z.capture:!!Z,t):n3E(D,Y,R,!0,Z,t)};
_.fg=function(D,Y,R,Z,t){if(Array.isArray(Y))for(var X=0;X<Y.length;X++)_.fg(D,Y[X],R,Z,t);else Z=_.Bo(Z)?!!Z.capture:!!Z,R=AF4(R),Gg(D)?D.unlisten(Y,R,Z,t):D&&(D=VF(D))&&(Y=D.getListener(Y,R,Z,t))&&vL(Y)};
vL=function(D){if(typeof D==="number"||!D||D.removed)return!1;var Y=D.src;if(Gg(Y))return GlL(Y.eventTargetListeners_,D);var R=D.type,Z=D.proxy;Y.removeEventListener?Y.removeEventListener(R,Z,D.capture):Y.detachEvent?Y.detachEvent(whD(R),Z):Y.addListener&&Y.removeListener&&Y.removeListener(Z);eSV--;(R=VF(Y))?(GlL(R,D),R.typeCount_==0&&(R.src=null,Y[VXE]=null)):IdE(D);return!0};
v31=function(D,Y,R,Z,t){R=AF4(R);Z=!!Z;return Gg(D)?D.getListener(Y,R,Z,t):D?(D=VF(D))?D.getListener(Y,R,Z,t):null:null};
whD=function(D){return D in fdE?fdE[D]:fdE[D]="on"+D};
$cU=function(D,Y){if(D.removed)D=!0;else{Y=new _.FQ(Y,this);var R=D.listener,Z=D.handler||D.src;D.callOnce&&vL(D);D=R.call(Z,Y)}return D};
VF=function(D){D=D[VXE];return D instanceof MC?D:null};
o3E="__closure_events_fn_"+(Math.random()*1E9>>>0);AF4=function(D){if(typeof D==="function")return D;D[o3E]||(D[o3E]=function(Y){return D.handleEvent(Y)});
return D[o3E]};_.eE=function(){_.AE.call(this);this.eventTargetListeners_=new MC(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.XN(_.eE,_.AE);_.eE.prototype[SxU]=!0;_.u=_.eE.prototype;_.u.setParentEventTarget=function(D){this.parentEventTarget_=D};
_.u.addEventListener=function(D,Y,R,Z){_.yu(this,D,Y,R,Z)};
_.u.removeEventListener=function(D,Y,R,Z){_.fg(this,D,Y,R,Z)};
_.u.dispatchEvent=function(D){var Y,R=this.parentEventTarget_;if(R)for(Y=[];R;R=R.parentEventTarget_)Y.push(R);R=this.actualEventTarget_;var Z=D.type||D;if(typeof D==="string")D=new _.IF(D,R);else if(D instanceof _.IF)D.target=D.target||R;else{var t=D;D=new _.IF(Z,R);_.y7.extend(D,t)}t=!0;var X;if(Y)for(X=Y.length-1;!D.propagationStopped_&&X>=0;X--){var M=D.currentTarget=Y[X];t=bjz(M,Z,!0,D)&&t}D.propagationStopped_||(M=D.currentTarget=R,t=bjz(M,Z,!0,D)&&t,D.propagationStopped_||(t=bjz(M,Z,!1,D)&&
t));if(Y)for(X=0;!D.propagationStopped_&&X<Y.length;X++)M=D.currentTarget=Y[X],t=bjz(M,Z,!1,D)&&t;return t};
_.u.disposeInternal=function(){_.eE.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.u.listen=function(D,Y,R,Z){return this.eventTargetListeners_.add(String(D),Y,!1,R,Z)};
_.u.listenOnce=function(D,Y,R,Z){return this.eventTargetListeners_.add(String(D),Y,!0,R,Z)};
_.u.unlisten=function(D,Y,R,Z){return this.eventTargetListeners_.remove(String(D),Y,R,Z)};
_.u.removeAllListeners=function(D){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(D):0};
var bjz=function(D,Y,R,Z){Y=D.eventTargetListeners_.listeners[String(Y)];if(!Y)return!0;Y=Y.concat();for(var t=!0,X=0;X<Y.length;++X){var M=Y[X];if(M&&!M.removed&&M.capture==R){var W=M.listener,z=M.handler||M.src;M.callOnce&&GlL(D.eventTargetListeners_,M);t=W.call(z,Z)!==!1&&t}}return t&&!Z.defaultPrevented};
_.eE.prototype.getListener=function(D,Y,R,Z){return this.eventTargetListeners_.getListener(String(D),Y,R,Z)};
_.eE.prototype.hasListener=function(D,Y){return this.eventTargetListeners_.hasListener(D!==void 0?String(D):void 0,Y)};var Al=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(D){return D&&AsyncContext.Snapshot.wrap(D)}:function(D){return D};var yF4=function(D,Y){this.create_=D;this.reset_=Y;this.occupants_=0;this.JSC$9727_head_=null};
yF4.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var D=this.JSC$9727_head_;this.JSC$9727_head_=D.next;D.next=null}else D=this.create_();return D};
yF4.prototype.put=function(D){this.reset_(D);this.occupants_<100&&(this.occupants_++,D.next=this.JSC$9727_head_,this.JSC$9727_head_=D)};var N9z=function(){this.workTail_=this.workHead_=null};
N9z.prototype.add=function(D,Y){var R=Bfn.get();R.set(D,Y);this.workTail_?this.workTail_.next=R:this.workHead_=R;this.workTail_=R};
N9z.prototype.remove=function(){var D=null;this.workHead_&&(D=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),D.next=null);return D};
var Bfn=new yF4(function(){return new ldE},function(D){return D.reset()}),ldE=function(){this.next=this.scope=this.fn=null};
ldE.prototype.set=function(D,Y){this.fn=D;this.scope=Y;this.next=null};
ldE.prototype.reset=function(){this.next=this.scope=this.fn=null};var JF4,pDU,Qpb,klE;pDU=!1;Qpb=new N9z;_.r3=function(D,Y){JF4||klE();pDU||(JF4(),pDU=!0);Qpb.add(D,Y)};
klE=function(){var D=Promise.resolve(void 0);JF4=function(){D.then(Eso)}};var Uc1=function(D){D.prototype.$goog_Thenable=!0},K_E=function(D){if(!D)return!1;
try{return!!D.$goog_Thenable}catch(Y){return!1}};var hS_,L_U,mcz,Hj1,xcE,P4Y,E3L,ijz,YGE,cF4,O5M;_.zz=function(D,Y){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(D!=_.Vy)try{var R=this;D.call(Y,function(Z){R.resolve_(2,Z)},function(Z){R.resolve_(3,Z)})}catch(Z){this.resolve_(3,Z)}};
hS_=function(){this.next=this.context=this.JSC$9738_onRejected=this.JSC$9738_onFulfilled=this.child=null;this.always=!1};
hS_.prototype.reset=function(){this.context=this.JSC$9738_onRejected=this.JSC$9738_onFulfilled=this.child=null;this.always=!1};
L_U=new yF4(function(){return new hS_},function(D){D.reset()});
mcz=function(D,Y,R){var Z=L_U.get();Z.JSC$9738_onFulfilled=D;Z.JSC$9738_onRejected=Y;Z.context=R;return Z};
_.TA=function(D){if(D instanceof _.zz)return D;var Y=new _.zz(_.Vy);Y.resolve_(2,D);return Y};
_.lf=function(D){return new _.zz(function(Y,R){R(D)})};
Hj1=function(D,Y,R){qxb(D,Y,R,null)||_.r3(_.A4(Y,D))};
_.w3=function(D){return new _.zz(function(Y,R){var Z=D.length,t=[];if(Z)for(var X=function(I,F){Z--;t[I]=F;Z==0&&Y(t)},M=function(I){R(I)},W,z=0;z<D.length;z++)W=D[z],Hj1(W,_.A4(X,z),M);
else Y(t)})};
xcE=function(D){return new _.zz(function(Y){var R=D.length,Z=[];if(R)for(var t=function(W,z,I){R--;Z[W]=z?{fulfilled:!0,value:I}:{fulfilled:!1,reason:I};R==0&&Y(Z)},X,M=0;M<D.length;M++)X=D[M],Hj1(X,_.A4(t,M,!0),_.A4(t,M,!1));
else Y(Z)})};
P4Y=function(D){return new _.zz(function(Y,R){var Z=D.length,t=[];if(Z)for(var X=function(I){Y(I)},M=function(I,F){Z--;
t[I]=F;Z==0&&R(t)},W,z=0;z<D.length;z++)W=D[z],Hj1(W,X,_.A4(M,z));
else Y(void 0)})};
_.iq=function(){var D,Y,R=new _.zz(function(Z,t){D=Z;Y=t});
return new QKU(R,D,Y)};
_.zz.prototype.then=function(D,Y,R){return B9E(this,Al(typeof D==="function"?D:null),Al(typeof Y==="function"?Y:null),R)};
Uc1(_.zz);E3L=function(D,Y,R,Z){phL(D,mcz(Y||_.Vy,R||null,Z))};
_.$B=function(D,Y){Y=Al(Y);Y=mcz(Y,Y);Y.always=!0;phL(D,Y);return D};
_.zz.prototype.finally=function(D){var Y=this;D=Al(D);return new _.zz(function(R,Z){E3L(Y,function(t){D();R(t)},function(t){D();
Z(t)})})};
_.zz.prototype.thenCatch=function(D,Y){return B9E(this,null,Al(D),Y)};
_.zz.prototype.catch=_.zz.prototype.thenCatch;_.zz.prototype.cancel=function(D){if(this.state_==0){var Y=new _.x6(D);_.r3(function(){g3D(this,Y)},this)}};
var g3D=function(D,Y){if(D.state_==0)if(D.parent_){var R=D.parent_;if(R.callbackEntries_){for(var Z=0,t=null,X=null,M=R.callbackEntries_;M&&(M.always||(Z++,M.child==D&&(t=M),!(t&&Z>1)));M=M.next)t||(X=M);t&&(R.state_==0&&Z==1?g3D(R,Y):(X?(Z=X,Z.next==R.callbackEntriesTail_&&(R.callbackEntriesTail_=Z),Z.next=Z.next.next):dcL(R),ijz(R,t,3,Y)))}D.parent_=null}else D.resolve_(3,Y)},phL=function(D,Y){D.callbackEntries_||D.state_!=2&&D.state_!=3||Oj1(D);
D.callbackEntriesTail_?D.callbackEntriesTail_.next=Y:D.callbackEntries_=Y;D.callbackEntriesTail_=Y},B9E=function(D,Y,R,Z){var t=mcz(null,null,null);
t.child=new _.zz(function(X,M){t.JSC$9738_onFulfilled=Y?function(W){try{var z=Y.call(Z,W);X(z)}catch(I){M(I)}}:X;
t.JSC$9738_onRejected=R?function(W){try{var z=R.call(Z,W);z===void 0&&W instanceof _.x6?M(W):X(z)}catch(I){M(I)}}:M});
t.child.parent_=D;phL(D,t);return t.child};
_.zz.prototype.unblockAndFulfill_=function(D){this.state_=0;this.resolve_(2,D)};
_.zz.prototype.unblockAndReject_=function(D){this.state_=0;this.resolve_(3,D)};
_.zz.prototype.resolve_=function(D,Y){this.state_==0&&(this===Y&&(D=3,Y=new TypeError("xa")),this.state_=1,qxb(Y,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=Y,this.state_=D,this.parent_=null,Oj1(this),D!=3||Y instanceof _.x6||cF4(this,Y)))};
var qxb=function(D,Y,R,Z){if(D instanceof _.zz)return E3L(D,Y,R,Z),!0;if(K_E(D))return D.then(Y,R,Z),!0;if(_.Bo(D))try{var t=D.then;if(typeof t==="function")return D1L(D,t,Y,R,Z),!0}catch(X){return R.call(Z,X),!0}return!1},D1L=function(D,Y,R,Z,t){var X=!1,M=function(z){X||(X=!0,R.call(t,z))},W=function(z){X||(X=!0,Z.call(t,z))};
try{Y.call(D,M,W)}catch(z){W(z)}},Oj1=function(D){D.executing_||(D.executing_=!0,_.r3(D.executeCallbacks_,D))},dcL=function(D){var Y=null;
D.callbackEntries_&&(Y=D.callbackEntries_,D.callbackEntries_=Y.next,Y.next=null);D.callbackEntries_||(D.callbackEntriesTail_=null);return Y};
_.zz.prototype.executeCallbacks_=function(){for(var D;D=dcL(this);)ijz(this,D,this.state_,this.result_);this.executing_=!1};
ijz=function(D,Y,R,Z){if(R==3&&Y.JSC$9738_onRejected&&!Y.always)for(;D&&D.hadUnhandledRejection_;D=D.parent_)D.hadUnhandledRejection_=!1;if(Y.child)Y.child.parent_=null,YGE(Y,R,Z);else try{Y.always?Y.JSC$9738_onFulfilled.call(Y.context):YGE(Y,R,Z)}catch(t){O5M.call(null,t)}L_U.put(Y)};
YGE=function(D,Y,R){Y==2?D.JSC$9738_onFulfilled.call(D.context,R):D.JSC$9738_onRejected&&D.JSC$9738_onRejected.call(D.context,R)};
cF4=function(D,Y){D.hadUnhandledRejection_=!0;_.r3(function(){D.hadUnhandledRejection_&&O5M.call(null,Y)})};
O5M=tS;_.x6=function(D){_.Yn.call(this,D)};
_.XN(_.x6,_.Yn);_.x6.prototype.name="cancel";var QKU=function(D,Y,R){this.promise=D;this.resolve=Y;this.reject=R};var vP;_.ul=function(D,Y){_.eE.call(this);this.JSC$9750_interval_=D||1;this.timerObject_=Y||_.ZU;this.boundTick_=(0,_.nG)(this.tick_,this);this.last_=_.sb()};
_.XN(_.ul,_.eE);_.u=_.ul.prototype;_.u.enabled=!1;_.u.JSC$9752_timer_=null;_.u.setInterval=function(D){this.JSC$9750_interval_=D;this.JSC$9752_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9752_timer_&&this.stop()};
_.u.tick_=function(){if(this.enabled){var D=_.sb()-this.last_;D>0&&D<this.JSC$9750_interval_*.8?this.JSC$9752_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9750_interval_-D):(this.JSC$9752_timer_&&(this.timerObject_.clearTimeout(this.JSC$9752_timer_),this.JSC$9752_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.u.start=function(){this.enabled=!0;this.JSC$9752_timer_||(this.JSC$9752_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9750_interval_),this.last_=_.sb())};
_.u.stop=function(){this.enabled=!1;this.JSC$9752_timer_&&(this.timerObject_.clearTimeout(this.JSC$9752_timer_),this.JSC$9752_timer_=null)};
_.u.disposeInternal=function(){_.ul.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
vP=function(D,Y,R){if(typeof D==="function")R&&(D=(0,_.nG)(D,R));else if(D&&typeof D.handleEvent=="function")D=(0,_.nG)(D.handleEvent,D);else throw Error("ya");return Number(Y)>2147483647?-1:_.ZU.setTimeout(D,Y||0)};
_.R3E=function(D){var Y=null;return(new _.zz(function(R,Z){Y=vP(function(){R(void 0)},D);
Y==-1&&Z(Error("za"))})).thenCatch(function(R){_.ZU.clearTimeout(Y);
throw R;})};var z_=function(D){_.AE.call(this);this.streamzLogger=D;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9756_flushTimer=new _.ul(this.flushInterval);this.JSC$9756_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.WB(this,this.JSC$9756_flushTimer)};
_.n(z_,_.AE);z_.prototype.sendIsolatedPayload=function(D){this.shouldSendIsolatedPayload=D;this.invocationLimit=1};
var Z0L=function(D){D.JSC$9756_flushTimer.enabled||D.JSC$9756_flushTimer.start();D.invocationCount++;D.invocationCount>=D.invocationLimit&&D.snapshotAndFlush()};
z_.prototype.snapshotAndFlush=function(){var D=this.metricMap.values();D=[].concat(_.oK(D)).filter(function(Y){return Y.cellMap.size});
D.length&&this.streamzLogger.flush(D,this.shouldSendIsolatedPayload);twY(D);this.invocationCount=0;this.JSC$9756_flushTimer.enabled&&this.JSC$9756_flushTimer.stop()};
z_.prototype.addNewCounter=function(D){var Y=_.UN.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new W_z(D,Y))};
z_.prototype.addNewEventMetric=function(D){var Y=_.UN.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new zSE(D,Y))};
var sIY=function(D,Y){return D.disabledMetrics.has(Y)?void 0:D.metricMap.get(Y)};
z_.prototype.JSC$9756_incrementCounter=function(D){this.JSC$9756_incrementCounterBy(D,1,_.UN.apply(1,arguments))};
z_.prototype.JSC$9756_incrementCounterBy=function(D,Y){var R=_.UN.apply(2,arguments),Z=sIY(this,D);Z&&Z instanceof W_z&&(Z.JSC$9695_incrementCounterBy(Y,R),Z0L(this))};
z_.prototype.record=function(D,Y){var R=_.UN.apply(2,arguments),Z=sIY(this,D);Z&&Z instanceof zSE&&(Z.record(Y,R),Z0L(this))};
var twY=function(D){for(var Y=0;Y<D.length;Y++)D[Y].clear()};_.oF=function(D,Y,R){R=R===void 0?{}:R;Y=Error.call(this,Y);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=D;this.metadata=R;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(_.oF,Error);_.oF.prototype.toString=function(){var D="RpcError("+(dJb(this.code)||String(this.code))+")";this.message&&(D+=": "+this.message);return D};_.X8E=_.ZU.JSON.parse;_.bQ=_.ZU.JSON.stringify;_.NA=_.ZU.JSON.parse;_.uLE=function(D){switch(D){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 a7L=function(D){switch(D){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Mwb,CmU=function(){};
_.XN(CmU,_.ibb);CmU.prototype.createInstance=function(){return new XMLHttpRequest};
Mwb=new CmU;_.yF=function(D){_.eE.call(this);this.headers=new Map;this.JSC$9765_xmlHttpFactory_=D||null;this.JSC$9765_active_=!1;this.JSC$9765_xhr_=null;this.JSC$9765_lastUri_="";this.JSC$9765_lastErrorCode_=0;this.JSC$9765_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9765_timeoutId_=null;this.responseType_="";this.JSC$9765_withCredentials_=!1};
_.XN(_.yF,_.eE);var WJ7=/^https?$/i,z3L=["POST","PUT"],SG_=[],ZKo=function(D,Y,R,Z,t,X,M){var W=new _.yF;SG_.push(W);Y&&W.listen("complete",Y);W.listenOnce("ready",W.cleanupSend_);X&&(W.timeoutInterval_=Math.max(0,X));M&&(W.JSC$9765_withCredentials_=M);W.send(D,R,Z,t)};
_.yF.prototype.cleanupSend_=function(){this.dispose();_.m5(SG_,this)};
_.yF.prototype.send=function(D,Y,R,Z){if(this.JSC$9765_xhr_)throw Error("Aa`"+this.JSC$9765_lastUri_+"`"+D);Y=Y?Y.toUpperCase():"GET";this.JSC$9765_lastUri_=D;this.JSC$9765_lastError_="";this.JSC$9765_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9765_active_=!0;this.JSC$9765_xhr_=this.createXhr();this.JSC$9765_xhr_.onreadystatechange=Al((0,_.nG)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9765_xhr_.open(Y,String(D),!0),this.inOpen_=!1}catch(M){TXY(this,M);return}D=R||"";R=new Map(this.headers);
if(Z)if(Object.getPrototypeOf(Z)===Object.prototype)for(var t in Z)R.set(t,Z[t]);else if(typeof Z.keys==="function"&&typeof Z.get==="function"){t=_.a(Z.keys());for(var X=t.next();!X.done;X=t.next())X=X.value,R.set(X,Z.get(X))}else throw Error("Ba`"+String(Z));Z=Array.from(R.keys()).find(function(M){return"content-type"==M.toLowerCase()});
t=_.ZU.FormData&&D instanceof _.ZU.FormData;!_.LM(z3L,Y)||Z||t||R.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Y=_.a(R);for(Z=Y.next();!Z.done;Z=Y.next())R=_.a(Z.value),Z=R.next().value,R=R.next().value,this.JSC$9765_xhr_.setRequestHeader(Z,R);this.responseType_&&(this.JSC$9765_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9765_xhr_&&this.JSC$9765_xhr_.withCredentials!==this.JSC$9765_withCredentials_&&(this.JSC$9765_xhr_.withCredentials=this.JSC$9765_withCredentials_);
try{this.JSC$9765_timeoutId_&&(clearTimeout(this.JSC$9765_timeoutId_),this.JSC$9765_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9765_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9765_xhr_.send(D),this.inSend_=!1}catch(M){TXY(this,M)}};
_.yF.prototype.createXhr=function(){return this.JSC$9765_xmlHttpFactory_?this.JSC$9765_xmlHttpFactory_.createInstance():Mwb.createInstance()};
_.yF.prototype.timeout_=function(){typeof bP5!="undefined"&&this.JSC$9765_xhr_&&(this.JSC$9765_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9765_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var TXY=function(D,Y){D.JSC$9765_active_=!1;D.JSC$9765_xhr_&&(D.inAbort_=!0,D.JSC$9765_xhr_.abort(),D.inAbort_=!1);D.JSC$9765_lastError_=Y;D.JSC$9765_lastErrorCode_=5;jIV(D);I7E(D)},jIV=function(D){D.errorDispatched_||(D.errorDispatched_=!0,D.dispatchEvent("complete"),D.dispatchEvent("error"))};
_.yF.prototype.abort=function(D){this.JSC$9765_xhr_&&this.JSC$9765_active_&&(this.JSC$9765_active_=!1,this.inAbort_=!0,this.JSC$9765_xhr_.abort(),this.inAbort_=!1,this.JSC$9765_lastErrorCode_=D||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),I7E(this))};
_.yF.prototype.disposeInternal=function(){this.JSC$9765_xhr_&&(this.JSC$9765_active_&&(this.JSC$9765_active_=!1,this.inAbort_=!0,this.JSC$9765_xhr_.abort(),this.inAbort_=!1),I7E(this,!0));_.yF.superClass_.disposeInternal.call(this)};
_.yF.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)FJL(this);else this.onReadyStateChangeEntryPoint_()};
_.yF.prototype.onReadyStateChangeEntryPoint_=function(){FJL(this)};
var FJL=function(D){if(D.JSC$9765_active_&&typeof bP5!="undefined")if(D.inSend_&&_.NZ(D)==4)setTimeout(D.onReadyStateChange_.bind(D),0);else if(D.dispatchEvent("readystatechange"),D.isComplete()){D.JSC$9765_active_=!1;try{if(D.isSuccess())D.dispatchEvent("complete"),D.dispatchEvent("success");else{D.JSC$9765_lastErrorCode_=6;try{var Y=_.NZ(D)>2?D.JSC$9765_xhr_.statusText:""}catch(R){Y=""}D.JSC$9765_lastError_=Y+" ["+D.getStatus()+"]";jIV(D)}}finally{I7E(D)}}},I7E=function(D,Y){if(D.JSC$9765_xhr_){D.JSC$9765_timeoutId_&&
(clearTimeout(D.JSC$9765_timeoutId_),D.JSC$9765_timeoutId_=null);
var R=D.JSC$9765_xhr_;D.JSC$9765_xhr_=null;Y||D.dispatchEvent("ready");try{R.onreadystatechange=null}catch(Z){}}};
_.yF.prototype.isActive=function(){return!!this.JSC$9765_xhr_};
_.yF.prototype.isComplete=function(){return _.NZ(this)==4};
_.yF.prototype.isSuccess=function(){var D=this.getStatus(),Y;if(!(Y=a7L(D))){if(D=D===0)D=fp1(String(this.JSC$9765_lastUri_)),D=!WJ7.test(D);Y=D}return Y};
_.NZ=function(D){return D.JSC$9765_xhr_?D.JSC$9765_xhr_.readyState:0};
_.u=_.yF.prototype;_.u.getStatus=function(){try{return _.NZ(this)>2?this.JSC$9765_xhr_.status:-1}catch(D){return-1}};
_.u.getResponseText=function(){try{return this.JSC$9765_xhr_?this.JSC$9765_xhr_.responseText:""}catch(D){return""}};
_.u.getResponse=function(){try{if(!this.JSC$9765_xhr_)return null;if("response"in this.JSC$9765_xhr_)return this.JSC$9765_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9765_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9765_xhr_)return this.JSC$9765_xhr_.mozResponseArrayBuffer}return null}catch(D){return null}};
_.u.getAllResponseHeaders=function(){return this.JSC$9765_xhr_&&_.NZ(this)>=2?this.JSC$9765_xhr_.getAllResponseHeaders()||"":""};
_.u.getLastError=function(){return typeof this.JSC$9765_lastError_==="string"?this.JSC$9765_lastError_:String(this.JSC$9765_lastError_)};var YKU=function(){};
YKU.prototype.send=function(D,Y,R){Y=Y===void 0?function(){}:Y;
R=R===void 0?function(){}:R;
ZKo(D.url,function(Z){Z=Z.target;Z.isSuccess()?Y(Z.getResponseText()):R(Z.getStatus())},D.requestType,D.body,D.requestHeaders,D.timeoutMillis,D.withCredentials)};
YKU.prototype.getTransmissionType=function(){return 1};var GIz=function(D,Y){this.tLX=D;this.event=Y;this.startTime=SH()},uWr;
GIz.prototype.done=function(){this.tLX.l7(this.event,SH()-this.startTime)};
var lQ=function(){tl.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.n(lQ,tl);_.Jl=function(D,Y,R){var Z=SH();Y=Y();D.l7(R,SH()-Z);return Y};
uWr=function(){lQ.apply(this,arguments)};
_.n(uWr,lQ);_.u=uWr.prototype;_.u.i35=function(){};
_.u.d6=function(){};
_.u.l7=function(){};
_.u.logError=function(){};
_.u.bH=function(){};
_.u.j10=function(){};
_.u.eJ6=function(){};
_.u.ysr=function(){};
var VwY=function(D){lQ.call(this);var Y=this;this.we=D;this.TEST_ONLY={yt2:function(){return Y.we},
getExperimentIds:function(){return Y.we.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void Y.we.dispose()})};
_.n(VwY,lQ);_.u=VwY.prototype;_.u.update=function(D){this.we.dispose();this.we=D};
_.u.d6=function(D){this.we.d6(D)};
_.u.l7=function(D,Y){this.we.l7(D,Y)};
_.u.logError=function(D){this.we.logError(D)};
_.u.bH=function(){this.we.bH()};
_.u.j10=function(D){this.we.j10(D)};
_.u.eJ6=function(D){this.we.eJ6(D)};
_.u.ysr=function(D){this.we.ysr(D)};
_.u.i35=function(D){this.we.i35(D)};
var f7U=function(D,Y){_.AE.call(this);var R=this;this.callback=D;this.cAy=Y;this.hgQ=-Y;this.addOnDisposeCallback(function(){return void clearTimeout(R.timer)})};
_.n(f7U,_.AE);var e3z=function(D){if(D.timer===void 0){var Y=Math.max(0,D.hgQ+D.cAy-SH());D.timer=setTimeout(function(){try{D.callback()}finally{D.hgQ=SH(),D.timer=void 0}},Y)}},AZ4=function(D,Y){lQ.call(this);
this.metrics=D;this.yz=Y};
_.n(AZ4,lQ);_.u=AZ4.prototype;_.u.i35=function(D){this.metrics.lQ2.record(D,this.yz)};
_.u.d6=function(D){this.metrics.eventCount.increment(D,this.yz)};
_.u.l7=function(D,Y){this.metrics.q6X.record(Y,D,this.yz)};
_.u.logError=function(D){this.metrics.errorCount.increment(D,this.yz)};
_.u.j10=function(D){this.metrics.t4K.increment(D,this.yz)};
_.u.eJ6=function(D){this.metrics.taq.increment(D,this.yz)};
_.u.ysr=function(D){this.metrics.kLn.increment(D,this.yz)};
var aHb=function(D,Y){Y=Y===void 0?[]:Y;var R={yz:D.yz||"_",eYh:D.eYh||[],yKv:D.yKv|0,destinationUrl:D.destinationUrl,hhM:D.hhM||function(){},
rbh:D.rbh||function(X,M){return Xrl(X,M,R.hhM,R.destinationUrl)}},Z=R.rbh("51",R.eYh.concat(Y));
AZ4.call(this,{lQ2:new tfU(Z),errorCount:new aG_(Z),eventCount:new XZU(Z),q6X:new uB1(Z),q7Y:new sJb(Z),t4K:new MfU(Z),taq:new CTL(Z),kLn:new WSz(Z)},R.yz);var t=this;this.TEST_ONLY={getExperimentIds:function(){return t.options.eYh.concat(t.cYp).sort(function(X,M){return X-M})}};
this.options=R;this.service=Z;this.wX9=!D.rbh;this.flushDebouncer=new f7U(function(){return void t.service.snapshotAndFlush()},R.yKv);
this.addOnDisposeCallback(function(){t.flushDebouncer.dispose();t.wX9&&t.service.dispose()});
(this.cYp=Y.slice()).sort(_.vnj)};
_.n(aHb,AZ4);aHb.prototype.bH=function(){e3z(this.flushDebouncer)};var lKr=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(lKr,_.Y7);_.JOy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(_.JOy,_.Y7);var p9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,0,p9.messageId)};
_.n(p9,_.Y7);var n2L=_.hE5(p9);p9.messageId="bfkj";var JQU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(JQU,_.Y7);var rZb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(rZb,_.Y7);var w8z=_.zo(rZb);_.Ta=function(){var D=this;this.promise=new Promise(function(Y,R){D.resolve=Y;D.reject=R})};_.kB=function(D){_.AE.call(this);var Y=this;this.odf=Math.floor(Math.random()*200);this.fOl=new rZb;if("challenge"in D&&n2L(D.challenge)){var R=_.Np(D.challenge,4,void 0,bU);var Z=_.Np(D.challenge,5,void 0,bU);_.Np(D.challenge,7,void 0,bU)&&(this.fOl=w8z(_.Np(D.challenge,7,void 0,bU)))}else R=D.program,Z=D.globalName;this.addOnDisposeCallback(function(){var r,l,U;return _.C(function(K){if(K.nextAddress==1)return K.yield(Y.kTM,2);r=K.yieldResult;l=r.vLz;(U=l)==null||U();_.V9(K)})});
this.x6=M$o(D.gl6||{},this.fOl);_.WB(this,this.x6);var t=new _.Ta;this.kTM=t.promise;this.x6.d6("t");var X=this.x6.share(),M=new GIz(X,"t"),W=function(r,l,U,K){if(!Y.x6.isDisposed()){var H="k";l?H="h":U&&(H="u");H!=="k"?K!==0&&(Y.x6.d6(H),Y.x6.l7(H,r)):Y.odf<=0?(Y.x6.d6(H),Y.x6.l7(H,r),Y.odf=Math.floor(Math.random()*200)):Y.odf--}},z=function(r,l,U,K){Promise.resolve().then(function(){M.done();
X.bH();X.dispose();t.resolve({dtU:r,vLz:l,krA:U,vH7:K})})};
if(!_.ZU[Z])throw this.x6.logError(25),Error("Ca");if(!_.ZU[Z].a)throw this.x6.logError(26),Error("Da");try{var I=_.ZU[Z].a;Z=[];for(var F=[],G=k6y(this.fOl),V=0;V<G.length;V++)Z.push(G[V]),F.push(1);var e=UJ$(this.fOl);for(G=0;G<e.length;G++)Z.push(e[G]),F.push(2);this.hrK=_.a(I(R,z,!0,D.j4m,W,[Z,F],_.Np(this.fOl,5))).next().value;this.mIM=t.promise.then(function(){})}catch(r){throw this.x6.logError(28),r;
}};
_.n(_.kB,_.AE);_.kB.prototype.snapshot=function(D){if(this.isDisposed())throw Error("Ea");this.x6.d6("n");var Y=this.x6.share();return this.kTM.then(function(R){var Z=R.dtU;return new Promise(function(t){var X=new GIz(Y,"n");Z(function(M){X.done();Y.i35(M.length);Y.bH();Y.dispose();t(M)},[D.lp,
D.jrl,D.br9,D.cMy])})})};
_.kB.prototype.xyk=function(D){this.kTM.then(function(Y){var R;(R=Y.krA)==null||R(D)})};
_.kB.prototype.rS6=function(D,Y){return this.kTM.then(function(R){var Z;return(Z=R.vH7)==null?void 0:Z(D,Y,!1)})};
_.kB.prototype.zf0=function(){return this.x6.share()};var $1z=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n($1z,_.Y7);var d79=_.hE5($1z);var v2z=function(){this.promises={};this.kVf=null},o2V=function(){v2z.instance||(v2z.instance=new v2z);
return v2z.instance},yZb=function(D,Y){return b0U(D,_.tP(Y,lKr,1,bU),_.tP(Y,_.JOy,2,bU),_.Np(Y,3,void 0,bU))},b0U=function(D,Y,R,Z){if(!Y&&!R)return Promise.resolve();
if(!Z)return TPb(Y,R);var t;(t=D.promises)[Z]||(t[Z]=new Promise(function(X,M){TPb(Y,R).then(function(){D.kVf=Z;X()},function(W){delete D.promises[Z];
M(W)})}));
return D.promises[Z]};var NXb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(NXb,_.Y7);var l7z=function(D,Y){return _.E0(D,1,Y)},JZz=function(D,Y){return _.E0(D,2,Y)};var Uk=function(D){_.AE.call(this);var Y=this;this.options=D;this.h8U=new _.Ta;this.mIM=this.h8U.promise;this.oVl=new _.Ta;this.j8C=1;this.www=new _.Ta;this.fdM=[];this.esp=D.esp||function(){};
this.m0U=new VwY(M$o(D.gl6||{}));kIL(this,D.cu,D.iYm,D.mWy,D.wDI,Object.assign({},U1U,D.a77||{}));this.addOnDisposeCallback(function(){return void KJU(Y)})};
_.n(Uk,_.AE);Uk.prototype.snapshot=function(D){var Y=this;return _.C(function(R){switch(R.nextAddress){case 1:if(Y.isDisposed())throw Error("Ea");if(Y.y4||Y.dxB){R.jumpTo(2);break}return R.yield(Y.oVl.promise,2);case 2:if(!Y.y4){R.jumpTo(4);break}return R.yield(Y.y4.snapshot(D),5);case 5:return R.return(R.yieldResult);case 4:throw Y.dxB;}})};
var h3V=function(D){var Y;return _.C(function(R){if(D.isDisposed())throw Error("Ea");(Y=D.bi)!=null&&(Y.endTimeMs=0,Y.resolver(1));return R.yield(D.www.promise,0)})},KJU=function(D){D.dxB=Error("Ga");
D.oVl.resolve();Kfj(D.h8U.promise);D.h8U.reject(Error("Ga"));D.m0U.dispose();Promise.all(D.fdM).then(function(){var R;return _.C(function(Z){(R=D.y4)==null||R.dispose();D.y4=void 0;_.V9(Z)})});
D.fdM=[];var Y;(Y=D.bi)!=null&&(Y.endTimeMs=0,Y.resolver(1));Kfj(D.www.promise);D.www.reject(Error("Ga"))};
Uk.prototype.xyk=function(D){var Y,R;(Y=this.y4)==null||(R=Y.xyk)==null||R.call(Y,D)};
Uk.prototype.rS6=function(D,Y){var R,Z,t;return(t=(R=this.y4)==null?void 0:(Z=R.rS6)==null?void 0:Z.call(R,D,Y))!=null?t:Promise.resolve()};
var LJY=function(D,Y){var R=D.esp;D.esp=function(){R();Y()}},m1D=function(D,Y){D.isDisposed()||(D.y4=Y,D.m0U.update(Y.zf0()),D.oVl.resolve(),D.h8U.resolve(void 0),D.esp())};
Uk.prototype.handleError=function(D){if(!this.isDisposed()){this.dxB=D;this.oVl.resolve();var Y,R;(R=(Y=this.options).jk2)==null||R.call(Y,D)}};
var qGD=function(D,Y){Y&&(Promise.all(D.fdM).then(function(){return void Y.dispose()}),D.fdM=[])},Kg=function(D,Y){D.j8C=Y;
var R,Z;(Z=(R=D.options).wv2)==null||Z.call(R,Y)},H01=function(D){D.isDisposed()||(D.www.resolve(),D.www=new _.Ta)},kIL=function(D,Y,R,Z,t,X){Z=Z===void 0?o2V():Z;
t=t===void 0?Promise.resolve(void 0):t;var M,W,z,I,F,G,V,e,r,l,U,K;_.C(function(H){switch(H.nextAddress){case 1:return H.yield(0,3);case 3:W=null;if(!M){H.jumpTo(6);break}Kg(D,7);_.SX(H,7);return H.yield(VJ(M.snapshot({}),X.h4x,function(){return Promise.resolve("E:CTO")}),9);
case 9:W=H.yieldResult;_.xw(H,6);break;case 7:_.Gl(H),W="E:UCE";case 6:z=void 0,I=M?X.s3N:X.xdy,F=new a0(I,X.h0m,X.w7J,X.guq),G=1;case 10:if(!(G<=X.maxAttempts)){H.jumpTo(12);break}if(G===1){H.jumpTo(13);break}Kg(D,0);D.bi=new x1D(F.getValue(),X.iRm,X.zmJ);return H.yield(D.bi.promise,14);case 14:V=H.yieldResult,D.bi=void 0,V===1?(G=1,F.reset()):Dc_(F);case 13:_.SX(H,15);e=void 0;if(R){e=R;H.jumpTo(17);break}Kg(D,5);r=Z.kVf;return H.yield(VJ(PmD(Y,r,W),X.w3p,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:e=H.yieldResult;case 17:return Kg(D,3),H.yield(VJ(yZb(Z,e),X.s7J,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return Kg(D,8),H.yield(t,20);case 20:return l=new _.kB({challenge:e,gl6:D.options.gl6,j4m:D.options.j4m}),H.yield(VJ(l.mIM,X.wUK,function(){return Promise.reject(Error("Ja"))}),21);
case 21:z=l;H.jumpTo(12);break;case 15:U=_.Gl(H),D.handleError(U),H01(D);case 11:G++;H.jumpTo(10);break;case 12:if(D.isDisposed()){H.jumpTo(5);break}z&&(R=void 0,qGD(D,M),M=z,m1D(D,z),H01(D));Kg(D,2);D.bi=new x1D(X.sDl,X.iRm,X.zmJ);return H.yield(D.bi.promise,22);case 22:D.bi=void 0;if(D.isDisposed()){H.jumpTo(5);break}H.jumpTo(3);break;case 5:(K=M)==null||K.dispose(),_.V9(H)}})};
Uk.prototype.zf0=function(){return this.m0U.share()};
var U1U={sDl:432E5,iRm:3E5,zmJ:10,h4x:1E4,w3p:3E4,s7J:3E4,wUK:6E4,xdy:1E3,s3N:6E4,h0m:6E5,w7J:.25,guq:2,maxAttempts:10},x1D=function(D,Y,R){var Z=this;this.endTimeMs=Date.now()+D;this.promise=new Promise(function(X){Z.resolver=X});
var t=function(){var X=Z.endTimeMs-Date.now();X<=R?Z.resolver(0):setTimeout(t,Math.min(X,Y))};
t()};var QI7,kZU=(QI7=Math.imul)!=null?QI7:function(D,Y){return D*Y|0},fG=[196,
200,224,18],hl=function(D,Y,R){R=R===void 0?[]:R;this.maxItems=D;this.o6=Y===void 0?0:Y;this.mh=R},BXL=function(D){var Y=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!Y)return new hl(D);var R=Y.split(",");if(R.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new hl(D);Y=R.slice(1);Y.length===1&&Y[0]===""&&(Y=[]);R=Number(R[0]);return isNaN(R)||R<0||R>Y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new hl(D)):new hl(D,R,Y)};
hl.prototype.serialize=function(){return String(this.o6)+","+this.mh.join()};
hl.prototype.insert=function(D,Y){var R=void 0;if(this.mh[this.o6]!==D){var Z=this.mh.indexOf(D);Z!==-1?(this.mh.splice(Z,1),Z<this.o6&&this.o6--,this.mh.splice(this.o6,0,D)):(R=this.mh[this.o6],this.mh[this.o6]=D)}this.o6=(this.o6+1)%this.maxItems;D=jnr("iU5q-!O9@$",this.serialize());R&&D&&Y(R);return D};
var p8L=function(D,Y){this.jer=Y;try{var R=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){R=!1}R&&(this.index=BXL(D))},E2D=function(D,Y,R,Z,t){var X=D.index?_.Jl(D.jer,function(){return Lz$(D.index,Kzl(Y),R,Z,t)},"W"):"u";
D.jer.ysr(X)},g2V=function(D,Y,R){var Z=_.a(D.index?_.Jl(D.jer,function(){return mEy(Kzl(Y),R)},"R"):["u"]),t=Z.next().value;
Z=Z.next().value;D.jer.eJ6(t);return Z};var d1E={toString:function(D){var Y=[],R=0;D-=-2147483648;Y[R++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(D%52);for(D=Math.floor(D/52);D>0;)Y[R++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(D%62),D=Math.floor(D/62);return Y.join("")}};var cZ7=function(D){D=i0E(D);for(var Y=2654435769,R=2654435769,Z=314159265,t=D.length,X=t,M=0,W=function(){Y-=R;Y-=Z;Y^=Z>>>13;R-=Z;R-=Y;R^=Y<<8;Z-=Y;Z-=R;Z^=R>>>13;Y-=R;Y-=Z;Y^=Z>>>12;R-=Z;R-=Y;R^=Y<<16;Z-=Y;Z-=R;Z^=R>>>5;Y-=R;Y-=Z;Y^=Z>>>3;R-=Z;R-=Y;R^=Y<<10;Z-=Y;Z-=R;Z^=R>>>15};X>=12;X-=12,M+=12)Y+=O01(D,M),R+=O01(D,M+4),Z+=O01(D,M+8),W();
Z+=t;switch(X){case 11:Z+=D[M+10]<<24;case 10:Z+=D[M+9]<<16;case 9:Z+=D[M+8]<<8;case 8:R+=D[M+7]<<24;case 7:R+=D[M+6]<<16;case 6:R+=D[M+5]<<8;case 5:R+=D[M+4];case 4:Y+=D[M+3]<<24;case 3:Y+=D[M+2]<<16;case 2:Y+=D[M+1]<<8;case 1:Y+=D[M]}W();return d1E.toString(Z)},i0E=function(D){for(var Y=[],R=0;R<D.length;R++)Y.push(D.charCodeAt(R));
return Y},O01=function(D,Y){return D[Y]+(D[Y+1]<<8)+(D[Y+2]<<16)+(D[Y+3]<<24)};var Lg=function(D){_.AE.call(this);this.ug=D;this.ldN=new _.Ta};
_.n(Lg,_.AE);var DCb=function(D,Y){var R=setTimeout(function(){D.ldN.resolve()},Y);
D.addOnDisposeCallback(function(){return void clearTimeout(R)})};
Lg.prototype.skz=function(D,Y){var R=this.ct(D);Y==null||Y(R);return _.Jl(this.ug,function(){return _.rb(R,2)},this.jM6)};
var YWz=function(D,Y,R,Z){return _.Jl(D.ug,function(){return R?D.skz(Y,Z):D.ct(Y,Z)},D.xhM)},R7D=function(D,Y,R,Z){Lg.call(this,D);
this.qY2=Y;this.vpx=R;this.xhM="m";this.jM6="x";this.i2y=0;DCb(this,Z)};
_.n(R7D,Lg);R7D.prototype.ct=function(D,Y){var R=this;this.ug.d6(this.xhM);++this.i2y>=this.vpx&&this.ldN.resolve();var Z=D();D=_.Jl(this.ug,function(){return R.qY2(Z)},"C");
if(D===void 0)throw new RF(17,"YNJ:Undefined");if(!(D instanceof Uint8Array))throw new RF(18,"ODM:Invalid");Y==null||Y(D);return D};
var ZG4=function(D,Y,R){Lg.call(this,D);this.sld=Y;this.xhM="f";this.jM6="z";DCb(this,R)};
_.n(ZG4,Lg);ZG4.prototype.ct=function(){return this.sld};
var tHb=function(D,Y,R){Lg.call(this,D);this.qvq=Y;this.xhM="w";this.jM6="z";DCb(this,R)};
_.n(tHb,Lg);tHb.prototype.ct=function(){var D=this;return _.Jl(this.ug,function(){return _.dr(D.qvq)},"d")};
tHb.prototype.skz=function(){return this.qvq};
var s0z=function(D,Y){Lg.call(this,D);this.error=Y;this.xhM="e";this.jM6="y"};
_.n(s0z,Lg);var XBL=function(D,Y){var R=(Y(D.error.message)+":"+Y(D.error.stack)).substring(0,2048);Y=R.length+1;R=qKy(R);var Z=new Uint8Array(4+R.length);Z.set([42,Y&127|128,Y>>7,D.error.code]);Z.set(R,4);return Z};
s0z.prototype.ct=function(){if(this.o04)return this.o04;this.o04=XBL(this,function(D){return"_"+cZ7(D)});
return XBL(this,function(D){return D})};
var u_L=function(D,Y,R){Lg.call(this,D);this.jA2=Y;this.clientState=R;this.xhM="S";this.jM6="q"};
_.n(u_L,Lg);u_L.prototype.ct=function(){var D=Math.floor(Date.now()/1E3),Y=[Math.random()*255,Math.random()*255],R=Y.concat([this.jA2&255,this.clientState],[D>>24&255,D>>16&255,D>>8&255,D&255]);D=new Uint8Array(2+R.length);D[0]=34;D[1]=R.length;D.set(R,2);R=D.subarray(2);for(var Z=Y=Y.length;Z<R.length;++Z)R[Z]^=R[Z%Y];this.ug.j10(this.clientState);return D};var aCV={uVJ:3E4,aQz:2E4},mP=function(D){_.AE.call(this);var Y=this;this.aUU=new _.Ta;this.tVL=0;this.um=void 0;this.state=2;this.vm=D.vm;this.cu=D.cu;this.a77=Object.assign({},aCV,D.a77||{});this.mg=D.vm.zf0();var R;this.onError=(R=D.onError)!=null?R:function(){};
this.o4Q=D.o4Q||!1;if(MH4(D)){var Z=this.vm;this.vjs=function(){return h3V(Z).catch(function(M){M=Y.reportError(new RF(Y.hW?20:32,"TRG:Disposed",M));Y.um=M;var W;(W=Y.hW)==null||W.dispose();Y.hW=void 0;Y.aUU.reject(M)})};
LJY(Z,function(){return void CgL(Y)});
Z.j8C===2&&CgL(this)}else this.vjs=D.nNK,CgL(this);var t=this.mg.share();t.d6("o");var X=new GIz(t,"o");this.aUU.promise.then(function(){X.done();t.bH();t.dispose()},function(){return void t.dispose()});
this.addOnDisposeCallback(function(){Y.hW?(Y.hW.dispose(),Y.hW=void 0):Y.um?Y.mg.bH():(Y.um=Y.reportError(new RF(32,"TNP:Disposed")),Y.mg.bH(),Y.aUU.reject(Y.um))});
_.WB(this,this.mg)};
_.n(mP,_.AE);mP.prototype.ybs=function(){return this.aUU.promise};
var Wm7=function(D,Y){if(!(Y instanceof RF))if(Y instanceof _.oF){var R=Error(Y.toString());R.stack=Y.stack;Y=new RF(11,"EBH:Error",R)}else Y=new RF(12,"BSO:Unknown",Y);return D.reportError(Y)},CgL=function(D){var Y,R,Z,t,X,M,W,z,I,F,G,V,e,r,l;
return _.C(function(U){switch(U.nextAddress){case 1:Y=void 0;D.tVL++;R=new _.Ta;D.vm instanceof Uk&&D.vm.fdM.push(R.promise);if(!D.o4Q){U.jumpTo(2);break}Z=new _.Ta;setTimeout(function(){return void Z.resolve()});
return U.yield(Z.promise,2);case 2:return t=D.mg.share(),_.SX(U,4,5),D.state=5,X={},M=[],U.yield(VJ(D.vm.snapshot({lp:X,br9:M}),D.a77.aQz,function(){return Promise.reject(new RF(15,"MDA:Timeout"))}),7);
case 7:W=U.yieldResult;if(D.isDisposed())throw new RF(D.hW?20:32,"MDA:Disposed");z=M[0];D.state=6;return U.yield(VJ(z7D(D.cu,W),D.a77.uVJ,function(){return Promise.reject(new RF(10,"BWB:Timeout"))}),8);
case 8:I=U.yieldResult;if(D.isDisposed())throw new RF(D.hW?20:32,"BWB:Disposed");D.state=7;Y=_.Jl(t,function(){var H=SWb(D,I,R,z);H.ldN.promise.then(function(){return void D.vjs()});
return H},"i");
case 5:_.jX(U);t.dispose();_.Fx(U,6);break;case 4:F=_.Gl(U);(G=Y)==null||G.dispose();if(!D.um){V=Wm7(D,F);R.resolve();var K;if(K=D.vm instanceof Uk&&D.tVL<2)a:if(F instanceof RF)K=F.code!==32&&F.code!==20&&F.code!==10;else{if(F instanceof _.oF)switch(F.code){case 2:case 13:case 14:case 4:break;default:K=!1;break a}K=!0}if(K)return e=(1+Math.random()*.25)*(D.hW?6E4:1E3),r=setTimeout(function(){return void D.vjs()},e),D.addOnDisposeCallback(function(){return void clearTimeout(r)}),U.return();
D.um=V}t.logError(D.hW?13:14);D.aUU.reject(D.um);return U.return();case 6:D.state=8,D.tVL=0,(l=D.hW)==null||l.dispose(),D.hW=Y,D.aUU.resolve(),_.V9(U)}})},SWb=function(D,Y,R,Z){var t=iRo(Y,2)*1E3;
if(t<=0)throw new RF(31,"TTM:Invalid");if(_.Np(Y,4))return new tHb(D.mg,_.Np(Y,4),t);if(!iRo(Y,3))return new ZG4(D.mg,J_n(_.Ar(Y,1)),t);if(!Z)throw new RF(4,"PMD:Undefined");Z=Z(J_n(_.Ar(Y,1)));if(!(Z instanceof Function))throw new RF(16,"APF:Failed");D.gTq=Math.floor((Date.now()+t)/1E3);D=new R7D(D.mg,Z,iRo(Y,3),t);D.addOnDisposeCallback(function(){return void R.resolve()});
return D};
mP.prototype.ct=function(D){return TeE(this,Object.assign({},D),!1)};
mP.prototype.skz=function(D){return TeE(this,Object.assign({},D),!0)};
mP.prototype.wOf=function(D){if(D>150)return!1;try{return this.cache=new p8L(D,this.mg),!0}catch(Y){return this.reportError(new RF(22,"GBJ:init",Y)),!1}};
mP.prototype.reportError=function(D){this.mg.logError(D.code);this.onError(D);return D};
var j0U=function(D,Y){Y=Y instanceof RF?Y:new RF(5,"TVD:error",Y);return D.reportError(Y)},TeE=function(D,Y,R){try{if(D.isDisposed())throw new RF(21,"BNT:disposed");
if(!D.hW&&D.um)throw D.um;var Z,t;return(t=(Z=ICb(D,Y,R))!=null?Z:Fm7(D,Y,R))!=null?t:G_z(D,Y,R)}catch(X){if(!Y.f4C)throw j0U(D,X);return VHU(D,R,X)}},ICb=function(D,Y,R){var Z;
return(Z=D.hW)==null?void 0:YWz(Z,function(){return fCL(D,Y)},R,function(t){var X;
if(D.hW instanceof R7D&&((X=Y.kw)==null?0:X.ssq))try{var M;(M=D.cache)==null||E2D(M,fCL(D,Y),t,Y.kw.sXz,D.gTq-120)}catch(W){D.reportError(new RF(24,"ELX:write",W))}})},Fm7=function(D,Y,R){var Z;
if((Z=Y.kw)!=null&&Z.k0q)try{var t,X=(t=D.cache)==null?void 0:g2V(t,fCL(D,Y),Y.kw.sXz);return X?R?_.Jl(D.mg,function(){return _.rb(X,2)},"a"):X:void 0}catch(M){D.reportError(new RF(23,"RXO:read",M))}},G_z=function(D,Y,R){var Z={stack:[],
error:void 0,hasError:!1};try{if(!Y.oPq)throw new RF(29,"SDF:notready");return YWz(U2$(Z,new u_L(D.mg,0,D.state)),function(){return fCL(D,Y)},R)}catch(t){Z.error=t,Z.hasError=!0}finally{Kj$(Z)}},VHU=function(D,Y,R){var Z={stack:[],
error:void 0,hasError:!1};try{var t=j0U(D,R);return YWz(U2$(Z,new s0z(D.mg,t)),function(){return[]},Y)}catch(X){Z.error=X,Z.hasError=!0}finally{Kj$(Z)}},fCL=function(D,Y){return Y.ggb?Y.ggb:Y.lp?_.Jl(D.mg,function(){return Y.ggb=qKy(Y.lp)},"c"):[]},MH4=function(D){return lU(function(Y){if(!De(Y))return!1;
for(var R=_.a(Object.entries(D)),Z=R.next();!Z.done;Z=R.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;if(!(Z in Y)){if(t.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!t(Y[Z]))return!1}return!0})}({vm:function(D){return lU(function(Y){return Y instanceof D})}(Uk)},"");var e7E=function(){var D=_.Cn();this.JSC$9883_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",tE("cookie_enabled"),tE("cookie_3p_enabled"),_.X_("browser"))};
e7E.prototype.increment=function(D,Y,R){this.JSC$9883_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",D,Y,R)};
var V6r=function(){var D=_.Cn();this.JSC$9907_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",sW("tick"),tE("from_st_cookie"))};
V6r.prototype.increment=function(D,Y){this.JSC$9907_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",D,Y)};
var AEU=function(){var D=_.Cn();this.JSC$9913_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.X_("status"))};
AEU.prototype.increment=function(D){this.JSC$9913_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",D)};
var nhD=function(){var D=_.Cn();this.JSC$9916_streamzService=D;D.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.X_("stage"),tE("is_using_ytd_player"),tE("has_expandable_tiles"))};
nhD.prototype.increment=function(D,Y,R){this.JSC$9916_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",D,Y,R)};
var rE7=function(){var D=_.Cn();this.JSC$9919_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/response_signature",_.X_("check_status"))};
rE7.prototype.increment=function(D){this.JSC$9919_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/web/response_signature",D)};
var wBU=function(){var D=_.Cn();this.JSC$9922_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.X_("sig"),sW("de"))};
wBU.prototype.increment=function(D,Y){this.JSC$9922_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/web/e_sig_log",D,Y)};
var $C1=function(){var D=_.Cn();this.JSC$9925_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.X_("sig"),sW("de"))};
$C1.prototype.increment=function(D,Y){this.JSC$9925_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/web/e_sig_en",D,Y)};
_.vhE=function(){var D=_.Cn();this.JSC$9928_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.X_("action"))};
_.vhE.prototype.increment=function(D){this.JSC$9928_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/web/enforcement_intent",D)};var qZ=window;var ohE=(new Date).getTime();_.y7.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.y7.createSet("action","cite","data","formaction","href","manifest","poster","src");var bGz=function(D){this.servicePromise_=D;D.then((0,_.nG)(function(){},this),function(){},this)},yEE=function(D,Y,R){D.servicePromise_.then(function(Z){var t=Z[Y];
if(!t)throw Error("Ka`"+Y);return t.apply(Z,R)})},JEE=function(D,Y,R){for(var Z=Array(arguments.length-2),t=2;t<arguments.length;t++)Z[t-2]=arguments[t];
t=NeE(D,Y).then(function(X){return X.apply(null,Z)},function(X){X=Error("La`"+Y+"`"+D,{cause:X});
delete lCD[Y];return _.lf(X)});
return new bGz(t)},lCD={},NeE=function(D,Y){var R=lCD[Y];
if(R)return R;R=(R=_.mf(Y))?_.TA(R):(new _.zz(function(Z,t){var X=(new ry(document)).createElement("SCRIPT");X.async=!0;_.dg(X,_.Af($UY(D)));X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||Z()};
X.onerror=function(M){t(Error("Ma`"+Y+"`"+D,{cause:M}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(X)})).then(function(){var Z=_.mf(Y);
if(!Z)throw Error("Na`"+Y+"`"+D);return Z});
return lCD[Y]=R};var k_1={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Km_=function(){var D=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=HvU(function(){return _.C(function(Y){if(Y.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?Y.return(Promise.resolve()):Y.yield(UCL(D),2);D.rsaForList.length>
0&&document.addEventListener("click",D.requestAccessForHelpPanel);_.V9(Y)})});
this.requestAccessForHelpPanel=function(){if(!(D.rsaForPromises.length>0)){for(var Y=_.a(D.rsaForList),R=Y.next();!R.done;R=Y.next()){R=R.value;try{D.rsaForPromises.push(document.requestStorageAccessFor(R))}catch(Z){}}Promise.all(D.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){D.reset()})}}};
Km_.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var UCL=function(D){var Y,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:Y=_.a(Object.values(k_1)),R=Y.next();case 2:if(R.done){X.jumpTo(0);break}Z=R.value;_.SX(X,5);return X.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Z}),7);case 7:t=X.yieldResult;t.state!=="granted"&&D.rsaForList.push(Z);_.xw(X,3);break;case 5:_.Gl(X);X.jumpTo(0);break;case 3:R=Y.next(),X.jumpTo(2)}})};(new Km_).initialize();var h7E=function(D){this.JSC$9942_loader_=D};
h7E.prototype.startHelp=function(D){yEE(this.JSC$9942_loader_,"startHelp",arguments)};
h7E.prototype.JSC$9944_loadChatSupport=function(D){yEE(this.JSC$9942_loader_,"loadChatSupport",arguments)};
var mCU=function(D,Y){Y=Y||{};D=JEE(LmY,"help.service.Lazy.create",D,{apiKey:Y.apiKey||Y.apiKey,asxUiUri:Y.asxUiUri||Y.asxUiUri,environment:Y.environment||Y.environment,flow:Y.flow||Y.flow,frdProductData:Y.frdProductData||Y.frdProductData,frdProductDataSerializedJspb:Y.frdProductDataSerializedJspb||Y.frdProductDataSerializedJspb,helpCenterPath:Y.helpCenterPath||Y.helpCenterPath,locale:Y.locale||Y.locale||"en-US".replace(/-/g,"_"),nonce:Y.nonce||Y.nonce,productData:Y.productData||Y.productData,receiverUri:Y.receiverUri||
Y.receiverUri,renderApiUri:Y.renderApiUri||Y.renderApiUri,theme:Y.theme||Y.theme,window:Y.window||Y.window});return new h7E(D)},LmY=new hk(VGi,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var qWD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(qWD,_.Y7);var HGL=_.zo(qWD);_.xCU=new function(D,Y,R,Z){this.configType=D;this.flagName=R;this.defaultValue=Z;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 Q07=function(){this.retriever=_.DH().resolve(PgU)};Px5(Node);Px5(Element);var Be7=Px5(HTMLElement);Px5(SVGElement);var pBU,EhY,PP,gh4;pBU=function(D){return typeof D.className=="string"?D.className:D.getAttribute&&D.getAttribute("class")||""};
EhY=function(D){return D.classList?D.classList:pBU(D).match(/\S+/g)||[]};
_.HP=function(D,Y){typeof D.className=="string"?D.className=Y:D.setAttribute&&D.setAttribute("class",Y)};
_.xB=function(D,Y){return D.classList?D.classList.contains(Y):_.LM(EhY(D),Y)};
_.ZT=function(D,Y){if(D.classList)D.classList.add(Y);else if(!_.xB(D,Y)){var R=pBU(D);_.HP(D,R+(R.length>0?" "+Y:Y))}};
PP=function(D,Y){if(D.classList)Array.prototype.forEach.call(Y,function(t){_.ZT(D,t)});
else{var R={};Array.prototype.forEach.call(EhY(D),function(t){R[t]=!0});
Array.prototype.forEach.call(Y,function(t){R[t]=!0});
Y="";for(var Z in R)Y+=Y.length>0?" "+Z:Z;_.HP(D,Y)}};
_.YP=function(D,Y){D.classList?D.classList.remove(Y):_.xB(D,Y)&&_.HP(D,Array.prototype.filter.call(EhY(D),function(R){return R!=Y}).join(" "))};
gh4=function(D,Y){D.classList?Array.prototype.forEach.call(Y,function(R){_.YP(D,R)}):_.HP(D,Array.prototype.filter.call(EhY(D),function(R){return!_.LM(Y,R)}).join(" "))};var dCz=function(D){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=D.document},cEz=function(D,Y){iGV(D);
var R=document.createElement("div"),Z;(Z=Y.parentNode)==null||Z.insertBefore(R,Y);R.tabIndex=0;R.id="fc-focus-trap-pre-div";R=document.createElement("div");var t;(t=Y.parentNode)==null||t.insertBefore(R,Y.nextSibling);R.tabIndex=0;R.id="fc-focus-trap-post-div";var X=OGU(D,Y),M=OGU(D,Y,!0);X&&M&&(D.focusChangeHandler=function(){var W=D.document.activeElement;if(W)if(_.hE(Y,W))D.previouslyFocusedElement=W;else if(W===D.document.activeElement)switch(D.previouslyFocusedElement){case X:M.focus();D.previouslyFocusedElement=
M;break;default:X.focus(),D.previouslyFocusedElement=X}},D.document.addEventListener("focus",D.focusChangeHandler,!0),D.document.addEventListener("focusin",D.focusChangeHandler))},iGV=function(D){D.focusChangeHandler&&(document.removeEventListener("focus",D.focusChangeHandler,!0),document.removeEventListener("focusin",D.focusChangeHandler),D.focusChangeHandler=null);
var Y;(Y=document.getElementById("fc-focus-trap-pre-div"))==null||Y.remove();var R;(R=document.getElementById("fc-focus-trap-post-div"))==null||R.remove()},Daz=function(D,Y,R,Z,t){R=R===void 0?!0:R;
var X;t=(X=t===void 0?null:t)!=null?X:OGU(D,Y,Z===void 0?!1:Z);t!==null&&(t.focus(),R&&cEz(D,Y))};
dCz.prototype.disableButton=function(D,Y){Y=Y===void 0?null:Y;D.disabled=!0;Y&&_.ZT(D,Y)};
var OGU=function(D,Y,R){R=R===void 0?!1:R;if(LQn(Y)&&!R)return Y;var Z=R?[].slice.call(Y.children,0).reverse():Y.children;Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next())if(t=t.value,Be7(t)&&(t=OGU(D,t,R)))return t;return LQn(Y)&&R?Y:null};var YUV=function(D){this.originalBodyOverflow="";this.JSC$9968_domHelper=f0(D)};
YUV.prototype.enableScrolling=function(){this.JSC$9968_domHelper.JSC$9295_document_.body.style.overflow=this.originalBodyOverflow};_.XN(_.re,_.AE);_.u=_.re.prototype;_.u.JSC$9971_id_=0;_.u.disposeInternal=function(){_.re.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9969_listener_;delete this.handler_};
_.u.start=function(D){this.stop();this.JSC$9971_id_=vP(this.callback_,D!==void 0?D:this.JSC$9969_interval_)};
_.u.stop=function(){this.isActive()&&_.ZU.clearTimeout(this.JSC$9971_id_);this.JSC$9971_id_=0};
_.u.fire=function(){this.stop();this.JSC$9971_doAction_()};
_.u.isActive=function(){return this.JSC$9971_id_!=0};
_.u.JSC$9971_doAction_=function(){this.JSC$9971_id_=0;this.JSC$9969_listener_&&this.JSC$9969_listener_.call(this.handler_)};_.aR=function(D){_.AE.call(this);this.handler_=D;this.JSC$9972_keys_={}};
_.XN(_.aR,_.AE);var RpD=[];_.aR.prototype.listen=function(D,Y,R,Z){Array.isArray(Y)||(Y&&(RpD[0]=Y.toString()),Y=RpD);for(var t=0;t<Y.length;t++){var X=_.yu(D,Y[t],R||this.handleEvent,Z||!1,this.handler_||this);if(!X)break;this.JSC$9972_keys_[X.key]=X}return this};
_.aR.prototype.listenOnce=function(D,Y,R,Z){return Z4U(this,D,Y,R,Z)};
var Z4U=function(D,Y,R,Z,t,X){if(Array.isArray(R))for(var M=0;M<R.length;M++)Z4U(D,Y,R[M],Z,t,X);else{Y=$C(Y,R,Z||D.handleEvent,t,X||D.handler_||D);if(!Y)return D;D.JSC$9972_keys_[Y.key]=Y}return D};
_.aR.prototype.unlisten=function(D,Y,R,Z,t){if(Array.isArray(Y))for(var X=0;X<Y.length;X++)this.unlisten(D,Y[X],R,Z,t);else if(D=v31(D,Y,R||this.handleEvent,_.Bo(Z)?!!Z.capture:!!Z,t||this.handler_||this))vL(D),delete this.JSC$9972_keys_[D.key];return this};
_.aR.prototype.removeAll=function(){_.y7.forEach(this.JSC$9972_keys_,function(D,Y){this.JSC$9972_keys_.hasOwnProperty(Y)&&vL(D)},this);
this.JSC$9972_keys_={}};
_.aR.prototype.disposeInternal=function(){_.aR.superClass_.disposeInternal.call(this);this.removeAll()};
_.aR.prototype.handleEvent=function(){throw Error("Oa");};var QF=function(){_.AE.call(this);this.services_={}};
_.XN(QF,_.AE);QF.prototype.connect=function(D){D&&D()};
QF.prototype.isConnected=function(){return!0};
QF.prototype.registerService=function(D,Y,R){this.services_[D]={callback:Y,objectPayload:!!R}};
QF.prototype.getService=function(D,Y){var R=this.services_[D];return R?R:this.defaultService_?{callback:_.A4(this.defaultService_,D),objectPayload:_.Bo(Y)}:null};
var ti7=function(D,Y){if(Y&&typeof D==="string")try{return JSON.parse(D)}catch(R){return null}else if(!Y&&typeof D!=="string")return(0,_.bQ)(D);return D};
QF.prototype.disposeInternal=function(){QF.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 BP=function(D,Y){this.sequence_=[];this.onCancelFunction_=D;this.defaultScope_=Y||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};
BP.prototype.cancel=function(D){if(this.fired_)this.result_ instanceof BP&&this.result_.cancel();else{if(this.parent_){var Y=this.parent_;delete this.parent_;D?Y.cancel(D):(Y.branches_--,Y.branches_<=0&&Y.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new pg(this))}};
BP.prototype.continue_=function(D,Y){this.blocked_=!1;se_(this,D,Y)};
var se_=function(D,Y,R){D.fired_=!0;D.result_=R;D.hadError_=!Y;X_7(D)},aeb=function(D){if(D.fired_){if(!D.silentlyCanceled_)throw new uDU(D);
D.silentlyCanceled_=!1}};
BP.prototype.callback=function(D){aeb(this);se_(this,!0,D)};
BP.prototype.errback=function(D){aeb(this);se_(this,!1,D)};
var MiU=function(D,Y,R){Ek(D,Y,null,R)};
BP.prototype.finally=function(D){var Y=this;return CMU(new Promise(function(R,Z){Ek(Y,function(t){D();R(t)},function(t){D();
Z(t)})}))};
var Ek=function(D,Y,R,Z){var t=D.fired_;t||(Y===R?Y=R=Al(Y):(Y=Al(Y),R=Al(R)));D.sequence_.push([Y,R,Z]);t&&X_7(D)};
BP.prototype.then=function(D,Y,R){var Z,t,X=new _.zz(function(M,W){t=M;Z=W});
Ek(this,t,function(M){M instanceof pg?X.cancel():Z(M);return WgE},this);
return X.then(D,Y,R)};
Uc1(BP);var zp1=function(D,Y){Y instanceof BP?MiU(D,(0,_.nG)(Y.branch,Y)):MiU(D,function(){return Y})};
BP.prototype.branch=function(D){var Y=new BP;Ek(this,Y.callback,Y.errback,Y);D&&(Y.parent_=this,this.branches_++);return Y};
BP.prototype.isError=function(D){return D instanceof Error};
var SUz=function(D){return Qc(D.sequence_,function(Y){return typeof Y[1]==="function"})},WgE={},X_7=function(D){if(D.unhandledErrorId_&&D.fired_&&SUz(D)){var Y=D.unhandledErrorId_,R=T2z[Y];
R&&(_.ZU.clearTimeout(R.JSC$9989_id_),delete T2z[Y]);D.unhandledErrorId_=0}D.parent_&&(D.parent_.branches_--,delete D.parent_);Y=D.result_;for(var Z=R=!1;D.sequence_.length&&!D.blocked_;){var t=D.sequence_.shift(),X=t[0],M=t[1];t=t[2];if(X=D.hadError_?M:X)try{var W=X.call(t||D.defaultScope_,Y);W===WgE&&(W=void 0);W!==void 0&&(D.hadError_=D.hadError_&&(W==Y||D.isError(W)),D.result_=Y=W);if(K_E(Y)||typeof _.ZU.Promise==="function"&&Y instanceof _.ZU.Promise)Z=!0,D.blocked_=!0}catch(z){Y=z,D.hadError_=
!0,SUz(D)||(R=!0)}}D.result_=Y;Z&&(W=(0,_.nG)(D.continue_,D,!0),Z=(0,_.nG)(D.continue_,D,!1),Y instanceof BP?(Ek(Y,W,Z),Y.blocking_=!0):Y.then(W,Z));R&&(Y=new jeU(Y),T2z[Y.JSC$9989_id_]=Y,D.unhandledErrorId_=Y.JSC$9989_id_)},CMU=function(D){var Y=new BP;
D.then(function(R){Y.callback(R)},function(R){Y.errback(R)});
return Y},uDU=function(){_.Yn.call(this)};
_.XN(uDU,_.Yn);uDU.prototype.message="Deferred has already fired";uDU.prototype.name="AlreadyCalledError";var pg=function(){_.Yn.call(this)};
_.XN(pg,_.Yn);pg.prototype.message="Deferred was canceled";pg.prototype.name="CanceledError";var jeU=function(D){this.JSC$9989_id_=_.ZU.setTimeout((0,_.nG)(this.throwError,this),0);this.JSC$9989_error_=D};
jeU.prototype.throwError=function(){delete T2z[this.JSC$9989_id_];throw this.JSC$9989_error_;};
var T2z={};var IeL={1:"NativeMessagingTransport"},FgE=["pu","lru","pru","lpu","ppu"],ViE=function(){for(var D=10,Y=GkU,R=Y.length,Z="";D-- >0;)Z+=Y.charAt(Math.floor(Math.random()*R));return Z},GkU="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var g3=function(D){_.AE.call(this);this.JSC$9992_domHelper_=D||f0()};
_.XN(g3,_.AE);g3.prototype.transportType=0;g3.prototype.getWindow=function(){return this.JSC$9992_domHelper_.getWindow()};
g3.prototype.getName=function(){return IeL[String(this.transportType)]||""};var d3=function(D,Y,R,Z,t){g3.call(this,R);this.JSC$9995_channel_=D;this.protocolVersion_=t||2;this.peerHostname_=Y||"*";this.JSC$9995_eventHandler_=new _.aR(this);this.maybeAttemptToConnectTimer_=new _.ul(100,this.getWindow());this.oneSidedHandshake_=!!Z;this.setupAckReceived_=new BP;this.setupAckSent_=new BP;this.JSC$9995_connected_=new BP;this.endpointId_=ViE();this.peerEndpointId_=null;this.oneSidedHandshake_?feE(this.JSC$9995_channel_)==1?zp1(this.JSC$9995_connected_,this.setupAckReceived_):
zp1(this.JSC$9995_connected_,this.setupAckSent_):(zp1(this.JSC$9995_connected_,this.setupAckReceived_),this.protocolVersion_==2&&zp1(this.JSC$9995_connected_,this.setupAckSent_));MiU(this.JSC$9995_connected_,this.notifyConnected_,this);this.JSC$9995_connected_.callback(!0);this.JSC$9995_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.XN(d3,g3);d3.prototype.peerProtocolVersion_=null;d3.prototype.initialized_=!1;d3.prototype.transportType=1;var ep4={};d3.prototype.sendTimerId_=0;
var rtD=function(D){var Y=D.event_.data;if(typeof Y!=="string")return!1;var R=Y.indexOf("|"),Z=Y.indexOf(":");if(R==-1||Z==-1)return!1;var t=Y.substring(0,R);R=Y.substring(R+1,Z);Y=Y.substring(Z+1);if(Z=iQ[t])return Z.xpcDeliver(R,Y,D.event_.origin),!0;Z=AtY(Y)[0];for(var X in iQ){var M=iQ[X];if(feE(M)==1&&!M.isConnected()&&R=="tp"&&(Z=="SETUP"||Z=="SETUP_NTPV2")&&ndY(M,D.event_.origin))return delete iQ[M.name],M.name=t,iQ[t]=M,M.xpcDeliver(R,Y),!0}return!1},w_Y=function(D){D.protocolVersion_!=2||
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||D.send("tp","SETUP_NTPV2,"+D.endpointId_);
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||D.send("tp","SETUP")},$az=function(D,Y){if(D.protocolVersion_!=2||D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||Y!=2){if(D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||Y!=1)return;
D.send("tp","SETUP_ACK")}else D.send("tp","SETUP_ACK_NTPV2");D.setupAckSent_.fired_||D.setupAckSent_.callback(!0)},vdE=function(D,Y){Y>D.peerProtocolVersion_&&(D.peerProtocolVersion_=Y);
D.peerProtocolVersion_==1&&(D.setupAckSent_.fired_||D.oneSidedHandshake_||D.setupAckSent_.callback(!0),D.peerEndpointId_=null)};
_.u=d3.prototype;_.u.connect=function(){var D=this.getWindow(),Y=_.Ey(D),R=ep4[Y];typeof R!=="number"&&(R=0);R==0&&_.yu(D.postMessage?D:D.document,"message",rtD,!1,d3);ep4[Y]=R+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.u.maybeAttemptToConnect_=function(){var D=feE(this.JSC$9995_channel_)==0;this.oneSidedHandshake_&&D||this.JSC$9995_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),w_Y(this))};
_.u.send=function(D,Y){var R=this.JSC$9995_channel_.peerWindowObject_;R&&(this.send=function(Z,t){var X=this,M=this.JSC$9995_channel_.name;this.sendTimerId_=vP(function(){X.sendTimerId_=0;try{var W=R.postMessage?R:R.document;W.postMessage&&W.postMessage(M+"|"+Z+":"+t,X.peerHostname_)}catch(z){}},0)},this.send(D,Y))};
_.u.notifyConnected_=function(){var D=this.JSC$9995_channel_,Y=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;D.isConnected()||D.connectionDelay_&&D.connectionDelay_.isActive()||(D.state_=2,_.OG(D.connectionDelay_),Y!==void 0?(D.connectionDelay_=new _.re(D.connectCb_,Y),D.connectionDelay_.start()):(D.connectionDelay_=null,D.connectCb_()))};
_.u.disposeInternal=function(){if(this.initialized_){var D=this.getWindow(),Y=_.Ey(D),R=ep4[Y];ep4[Y]=R-1;R==1&&_.fg(D.postMessage?D:D.document,"message",rtD,!1,d3)}this.sendTimerId_&&(_.ZU.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.OG(this.JSC$9995_eventHandler_);delete this.JSC$9995_eventHandler_;_.OG(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9995_connected_.cancel();delete this.JSC$9995_connected_;delete this.send;d3.superClass_.disposeInternal.call(this)};
var AtY=function(D){D=D.split(",");D[1]=D[1]||null;return D};var b4L;_.Ok=function(D){if(D.getValues&&typeof D.getValues=="function")return D.getValues();if(typeof Map!=="undefined"&&D instanceof Map||typeof Set!=="undefined"&&D instanceof Set)return Array.from(D.values());if(typeof D==="string")return D.split("");if(_.xn(D)){for(var Y=[],R=D.length,Z=0;Z<R;Z++)Y.push(D[Z]);return Y}return _.y7.getValues(D)};
_.od4=function(D){if(D.getKeys&&typeof D.getKeys=="function")return D.getKeys();if(!D.getValues||typeof D.getValues!="function"){if(typeof Map!=="undefined"&&D instanceof Map)return Array.from(D.keys());if(!(typeof Set!=="undefined"&&D instanceof Set)){if(_.xn(D)||typeof D==="string"){var Y=[];D=D.length;for(var R=0;R<D;R++)Y.push(R);return Y}return _.y7.getKeys(D)}}};
b4L=function(D,Y,R){if(D.forEach&&typeof D.forEach=="function")D.forEach(Y,R);else if(_.xn(D)||typeof D==="string")Array.prototype.forEach.call(D,Y,R);else for(var Z=_.od4(D),t=_.Ok(D),X=t.length,M=0;M<X;M++)Y.call(R,t[M],Z&&Z[M],D)};var nb9,sS,uC,KgU,ytb,le7,N27,Uab,JtV;
_.cO=function(D,Y){this.JSC$10000_domain_=this.userInfo_=this.scheme_="";this.JSC$10000_port_=null;this.fragment_=this.JSC$10000_path_="";this.JSC$10000_ignoreCase_=!1;var R;D instanceof _.cO?(this.JSC$10000_ignoreCase_=Y!==void 0?Y:D.JSC$10000_ignoreCase_,_.cP(this,D.scheme_),this.userInfo_=D.userInfo_,_.Ds(this,D.JSC$10000_domain_),_.YO(this,D.JSC$10000_port_),_.Rs(this,D.getPath()),_.Zs(this,D.JSC$10000_queryData_.clone()),_.tm(this,D.fragment_)):D&&(R=_.E3(String(D)))?(this.JSC$10000_ignoreCase_=
!!Y,_.cP(this,R[1]||"",!0),this.userInfo_=sS(R[2]||""),_.Ds(this,R[3]||"",!0),_.YO(this,R[4]),_.Rs(this,R[5]||"",!0),_.Zs(this,R[6]||"",!0),_.tm(this,R[7]||"",!0)):(this.JSC$10000_ignoreCase_=!!Y,this.JSC$10000_queryData_=new _.X$(null,this.JSC$10000_ignoreCase_))};
_.cO.prototype.toString=function(){var D=[],Y=this.scheme_;Y&&D.push(uC(Y,ytb,!0),":");var R=this.JSC$10000_domain_;if(R||Y=="file")D.push("//"),(Y=this.userInfo_)&&D.push(uC(Y,ytb,!0),"@"),D.push(_.HD(R).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),R=this.JSC$10000_port_,R!=null&&D.push(":",String(R));if(R=this.getPath())this.JSC$10000_domain_&&R.charAt(0)!="/"&&D.push("/"),D.push(uC(R,R.charAt(0)=="/"?N27:le7,!0));(R=this.JSC$10000_queryData_.toString())&&D.push("?",R);(R=this.fragment_)&&D.push("#",
uC(R,JtV));return D.join("")};
_.cO.prototype.resolve=function(D){var Y=this.clone(),R=!!D.scheme_;R?_.cP(Y,D.scheme_):R=!!D.userInfo_;R?Y.userInfo_=D.userInfo_:R=!!D.JSC$10000_domain_;R?_.Ds(Y,D.JSC$10000_domain_):R=D.JSC$10000_port_!=null;var Z=D.getPath();if(R)_.YO(Y,D.JSC$10000_port_);else if(R=!!D.JSC$10000_path_){if(Z.charAt(0)!="/")if(this.JSC$10000_domain_&&!this.JSC$10000_path_)Z="/"+Z;else{var t=Y.getPath().lastIndexOf("/");t!=-1&&(Z=Y.getPath().slice(0,t+1)+Z)}t=Z;if(t==".."||t==".")Z="";else if(_.CM(t,"./")||_.CM(t,
"/.")){Z=_.Xi(t,"/");t=t.split("/");for(var X=[],M=0;M<t.length;){var W=t[M++];W=="."?Z&&M==t.length&&X.push(""):W==".."?((X.length>1||X.length==1&&X[0]!="")&&X.pop(),Z&&M==t.length&&X.push("")):(X.push(W),Z=!0)}Z=X.join("/")}else Z=t}R?_.Rs(Y,Z):R=D.JSC$10000_queryData_.toString()!=="";R?_.Zs(Y,D.JSC$10000_queryData_.clone()):R=!!D.fragment_;R&&_.tm(Y,D.fragment_);return Y};
_.cO.prototype.clone=function(){return new _.cO(this)};
_.cP=function(D,Y,R){D.scheme_=R?sS(Y,!0):Y;D.scheme_&&(D.scheme_=D.scheme_.replace(/:$/,""));return D};
_.Ds=function(D,Y,R){D.JSC$10000_domain_=R?sS(Y,!0):Y;return D};
_.YO=function(D,Y){if(Y){Y=Number(Y);if(isNaN(Y)||Y<0)throw Error("Pa`"+Y);D.JSC$10000_port_=Y}else D.JSC$10000_port_=null;return D};
_.cO.prototype.getPath=function(){return this.JSC$10000_path_};
_.Rs=function(D,Y,R){D.JSC$10000_path_=R?sS(Y,!0):Y;return D};
_.Zs=function(D,Y,R){Y instanceof _.X$?(D.JSC$10000_queryData_=Y,kkL(D.JSC$10000_queryData_,D.JSC$10000_ignoreCase_)):(R||(Y=uC(Y,Uab)),D.JSC$10000_queryData_=new _.X$(Y,D.JSC$10000_ignoreCase_));return D};
_.xh=function(D,Y,R){D.JSC$10000_queryData_.set(Y,R);return D};
_.HB=function(D,Y){return D.JSC$10000_queryData_.get(Y)};
_.tm=function(D,Y,R){D.fragment_=R?sS(Y):Y;return D};
_.as=function(D){_.xh(D,"zx",mm());return D};
_.qC=function(D,Y){return D instanceof _.cO?D.clone():new _.cO(D,Y)};
nb9=function(D,Y){D instanceof _.cO||(D=_.qC(D));Y instanceof _.cO||(Y=_.qC(Y));return D.resolve(Y)};
sS=function(D,Y){return D?Y?decodeURI(D.replace(/%25/g,"%2525")):decodeURIComponent(D):""};
uC=function(D,Y,R){return typeof D==="string"?(D=encodeURI(D).replace(Y,KgU),R&&(D=D.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D):null};
KgU=function(D){D=D.charCodeAt(0);return"%"+(D>>4&15).toString(16)+(D&15).toString(16)};
ytb=/[#\/\?@]/g;le7=/[#\?:]/g;N27=/[#\?]/g;Uab=/[#\?@]/g;JtV=/#/g;_.X$=function(D,Y){this.count_=this.keyMap_=null;this.encodedQuery_=D||null;this.JSC$10001_ignoreCase_=!!Y};
_.Ml=function(D){D.keyMap_||(D.keyMap_=new Map,D.count_=0,D.encodedQuery_&&nKU(D.encodedQuery_,function(Y,R){D.add(O3(Y),R)}))};
_.u=_.X$.prototype;_.u.getCount=function(){_.Ml(this);return this.count_};
_.u.add=function(D,Y){_.Ml(this);this.encodedQuery_=null;D=Cf(this,D);var R=this.keyMap_.get(D);R||this.keyMap_.set(D,R=[]);R.push(Y);this.count_+=1;return this};
_.u.remove=function(D){_.Ml(this);D=Cf(this,D);return this.keyMap_.has(D)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(D).length,this.keyMap_.delete(D)):!1};
_.u.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.u.isEmpty=function(){_.Ml(this);return this.count_==0};
_.u.containsKey=function(D){_.Ml(this);D=Cf(this,D);return this.keyMap_.has(D)};
_.u.containsValue=function(D){var Y=this.getValues();return _.LM(Y,D)};
_.u.forEach=function(D,Y){_.Ml(this);this.keyMap_.forEach(function(R,Z){R.forEach(function(t){D.call(Y,t,Z,this)},this)},this)};
_.u.getKeys=function(){_.Ml(this);for(var D=Array.from(this.keyMap_.values()),Y=Array.from(this.keyMap_.keys()),R=[],Z=0;Z<Y.length;Z++)for(var t=D[Z],X=0;X<t.length;X++)R.push(Y[Z]);return R};
_.u.getValues=function(D){_.Ml(this);var Y=[];if(typeof D==="string")this.containsKey(D)&&(Y=Y.concat(this.keyMap_.get(Cf(this,D))));else{D=Array.from(this.keyMap_.values());for(var R=0;R<D.length;R++)Y=Y.concat(D[R])}return Y};
_.u.set=function(D,Y){_.Ml(this);this.encodedQuery_=null;D=Cf(this,D);this.containsKey(D)&&(this.count_-=this.keyMap_.get(D).length);this.keyMap_.set(D,[Y]);this.count_+=1;return this};
_.u.get=function(D,Y){if(!D)return Y;D=this.getValues(D);return D.length>0?String(D[0]):Y};
_.hp7=function(D,Y,R){D.remove(Y);R.length>0&&(D.encodedQuery_=null,D.keyMap_.set(Cf(D,Y),_.q$(R)),D.count_+=R.length)};
_.X$.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var D=[],Y=Array.from(this.keyMap_.keys()),R=0;R<Y.length;R++){var Z=Y[R],t=_.HD(Z);Z=this.getValues(Z);for(var X=0;X<Z.length;X++){var M=t;Z[X]!==""&&(M+="="+_.HD(Z[X]));D.push(M)}}return this.encodedQuery_=D.join("&")};
_.X$.prototype.clone=function(){var D=new _.X$;D.encodedQuery_=this.encodedQuery_;this.keyMap_&&(D.keyMap_=new Map(this.keyMap_),D.count_=this.count_);return D};
var Cf=function(D,Y){Y=String(Y);D.JSC$10001_ignoreCase_&&(Y=Y.toLowerCase());return Y},kkL=function(D,Y){Y&&!D.JSC$10001_ignoreCase_&&(_.Ml(D),D.encodedQuery_=null,D.keyMap_.forEach(function(R,Z){var t=Z.toLowerCase();
Z!=t&&(this.remove(Z),_.hp7(this,t,R))},D));
D.JSC$10001_ignoreCase_=Y};
_.X$.prototype.extend=function(D){for(var Y=0;Y<arguments.length;Y++)b4L(arguments[Y],function(R,Z){this.add(Z,R)},this)};var WF=function(D,Y){QF.call(this);for(var R=0,Z;Z=FgE[R];R++)if(Z in D&&!/^https?:\/\//.test(D[Z]))throw Error("Ra`"+D[Z]+"`"+Z);this.cfg_=D;this.name=this.cfg_.cn||ViE();this.JSC$9996_domHelper_=Y||f0();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.aR(this);D.lpu=D.lpu||eKY(this.JSC$9996_domHelper_.getWindow().location.href)+"/robots.txt";D.ppu=D.ppu||eKY(D.pu||"")+"/robots.txt";iQ[this.name]=this;v31(window,"unload",LgL)||$C(window,"unload",LgL)};
_.XN(WF,QF);var maD=RegExp("^%*tp$"),qUU=RegExp("^%+tp$");_.u=WF.prototype;_.u.connectionDelay_=null;_.u.peerWindowDeferred_=null;_.u.transport_=null;_.u.state_=1;_.u.isConnected=function(){return this.state_==2};
_.u.peerWindowObject_=null;_.u.iframeElement_=null;_.u.connect=function(D){this.connectCb_=D||_.Vy;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?MiU(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.u.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9996_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var D=this.iframeElement_.contentWindow;D||(D=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=D}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$9996_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new d3(this,this.cfg_.ph,this.JSC$9996_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()()};
_.u.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.OG(this.transport_);this.connectCb_=this.transport_=null;_.OG(this.connectionDelay_);this.connectionDelay_=null};
_.u.send=function(D,Y){if(this.isConnected()){try{var R=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(t){R=!1}if(R){_.Bo(Y)&&(Y=(0,_.bQ)(Y));R=this.transport_;var Z=R.send;maD.test(D)&&(D="%"+D);D=D.replace(/[%:|]/g,encodeURIComponent);Z.call(R,D,Y)}else this.close()}};
_.u.xpcDeliver=function(D,Y,R){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.nG)(this.xpcDeliver,this,D,Y,R));else if(ndY(this,R)&&!this.isDisposed()&&this.state_!=3)if(D&&D!="tp")this.isConnected()&&(D=D.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),D=qUU.test(D)?D.substring(1):D,D=this.getService(D,Y))&&(Y=ti7(Y,D.objectPayload),Y!=null&&D.callback(Y));else switch(D=this.transport_,R=AtY(Y),Y=R[1],R[0]){case "SETUP_ACK":vdE(D,1);D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":D.protocolVersion_==2&&(vdE(D,2),D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0));break;case "SETUP":vdE(D,1);$az(D,1);break;case "SETUP_NTPV2":D.protocolVersion_==2&&(R=D.peerProtocolVersion_,vdE(D,2),$az(D,2),R!=1&&D.peerEndpointId_==null||D.peerEndpointId_==Y||w_Y(D),D.peerEndpointId_=Y)}};
var feE=function(D){var Y=D.cfg_.role;return typeof Y==="number"?Y:window.parent==D.peerWindowObject_?1:0},ndY=function(D,Y){var R=D.cfg_.ph;
return _.M$(Y==null?"":String(Y))||_.M$(R==null?"":String(R))||Y==D.cfg_.ph};
WF.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete iQ[this.name];_.OG(this.peerLoadHandler_);delete this.peerLoadHandler_;WF.superClass_.disposeInternal.call(this)};
var LgL=function(){for(var D in iQ)_.OG(iQ[D])},iQ={};var xa1=function(D,Y){this.JSC$10010_win=D;this.allowAdsHttpEndpoint=Y;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10010_domHelper=f0(D);this.scrollManager=new YUV(D);this.accessibilityManager=new dCz(D);H4L(this)},H4L=function(D){var Y=function(){D.allowAdsPopup&&D.allowAdsPopup.style.setProperty("display","none","important");
D.wallElement.style.setProperty("display","","important");iGV(D.accessibilityManager);Daz(D.accessibilityManager,D.wallElement.querySelector(".fc-dialog-container"),!1,!1,D.wallElement.querySelector(".fc-button-whitelist"));D.scrollManager.enableScrolling()};
D.allowAdsPopup=D.JSC$10010_domHelper.JSC$9297_createDom("DIV",{"class":"fc-whitelist-root"});D.allowAdsPopup.style.setProperty("display","none","important");D.JSC$10010_domHelper.appendChild(D.JSC$10010_domHelper.JSC$9295_document_.body,D.allowAdsPopup);var R=D.JSC$10010_domHelper.JSC$9297_createDom("DIV",{"class":"fc-dialog-overlay"});D.JSC$10010_domHelper.appendChild(D.allowAdsPopup,R);var Z=D.JSC$10010_domHelper.JSC$9297_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:Y});D.JSC$10010_domHelper.appendChild(D.allowAdsPopup,
Z);R=D.JSC$10010_domHelper.JSC$9297_createDom("IFRAME");R.className="fc-whitelist-dialog";R.frameBorder="0";R.id="fc-whitelist-iframe";R.tabIndex="0";_.x7(R,D.allowAdsHttpEndpoint);D.JSC$10010_domHelper.appendChild(Z,R);Z={};Z.pu=_.n$(D.allowAdsHttpEndpoint).toString();Z.tp=1;Z.cn="fc-whitelist-channel";Z.ifrid=R.id;Z.osh=!0;D.allowAdsCrossPageChannel=new WF(Z);D.allowAdsCrossPageChannel.registerService("close",Y);D.allowAdsCrossPageChannel.registerService("refresh",function(){D.JSC$10010_win.location.reload()});
D.allowAdsCrossPageChannel.registerService("resize",function(t){if(t){var X=D.allowAdsPopup.querySelector(".fc-whitelist-dialog");t.width&&X.style.setProperty("width",t.width,"important");t.height&&X.style.setProperty("height",t.height,"important")}},!0);
D.allowAdsCrossPageChannel.connect()};
xa1.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10010_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var zR=window,S_=document,PMV=zR.location,QeU=function(){},B2V=/\[native code\]/,j_=function(D,Y,R){return D[Y]=D[Y]||R},p_z=function(D){D=D.sort();
for(var Y=[],R=void 0,Z=0;Z<D.length;Z++){var t=D[Z];t!=R&&Y.push(t);R=t}return Y},Is=function(){var D;
if((D=Object.create)&&B2V.test(D))D=D(null);else{D={};for(var Y in D)D[Y]=void 0}return D},F$=j_(zR,"gapi",{});var GR={};GR=j_(zR,"___jsl",Is());j_(GR,"I",0);j_(GR,"hel",10);var Ed1=function(){var D=PMV.href;if(GR.dpo)var Y=GR.h;else{Y=GR.h;var R=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Z=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(D=D&&(R.exec(D)||Z.exec(D)))try{Y=decodeURIComponent(D[2])}catch(t){}}return Y},gdL=function(D){var Y=j_(GR,"PQ",[]);
GR.PQ=[];var R=Y.length;if(R===0)D();else for(var Z=0,t=function(){++Z===R&&D()},X=0;X<R;X++)Y[X](t)},daL=function(D){return j_(j_(GR,"H",Is()),D,Is())};var V6=function(D){this.JSC$10012_obj_=D};
V6.prototype.value=function(){return this.JSC$10012_obj_};
V6.prototype.getWidth=function(){return this.JSC$10012_obj_.width};
V6.prototype.getHeight=function(){return this.JSC$10012_obj_.height};
V6.prototype.getStyle=function(){return this.JSC$10012_obj_.style};var i4D=function(D){this.JSC$10015_obj_=D||{}};
_.u=i4D.prototype;_.u.value=function(){return this.JSC$10015_obj_};
_.u.setUrl=function(D){this.JSC$10015_obj_.url=D;return this};
_.u.getUrl=function(){return this.JSC$10015_obj_.url};
_.u.getStyle=function(){return this.JSC$10015_obj_.style};
_.u.getId=function(){return this.JSC$10015_obj_.id};
_.u.getContext=function(){return this.JSC$10015_obj_.context};
var O4z=function(D){D.JSC$10015_obj_.attributes=D.JSC$10015_obj_.attributes||{};return new V6(D.JSC$10015_obj_.attributes)};var ct4=function(){i4D.apply(this,arguments)};
_.n(ct4,i4D);var DJL=j_(GR,"perf",Is());j_(DJL,"g",Is());var Y3z=j_(DJL,"i",Is());j_(DJL,"r",[]);Is();Is();var Zbb=function(D,Y,R){Y&&Y.length>0&&(Y=Rtb(Y),R&&R.length>0&&(Y+="___"+Rtb(R)),Y.length>28&&(Y=Y.substr(0,28)+(Y.length-28)),R=Y,Y=j_(Y3z,"_p",Is()),j_(Y,R,Is())[D]=(new Date).getTime(),Y=DJL.r,typeof Y==="function"?Y(D,"_p",R):Y.push([D,"_p",R]))},Rtb=function(D){return D.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var tjD=Is(),spD=[],ff=function(D){throw Error("Ua`"+D);};
spD.push(["jsl",function(D){for(var Y in D)if(Object.prototype.hasOwnProperty.call(D,Y)){var R=D[Y];typeof R=="object"?GR[Y]=j_(GR,Y,[]).concat(R):j_(GR,Y,R)}if(Y=D.u)D=j_(GR,"us",[]),D.push(Y),(Y=/^https:(.*)$/.exec(Y))&&D.push("http:"+Y[1])}]);
var XDU=/^(\/[a-zA-Z0-9_\-]+)+$/,uPz=[/\/amp\//,/\/amp$/,/^\/amp$/],a1D=/^[a-zA-Z0-9\-_\.,!]+$/,Mj4=/^gapi\.loaded_[0-9]+$/,C14=/^[a-zA-Z0-9,._-]+$/,Tfz=function(D,Y,R,Z,t){var X=D.split(";"),M=X.shift(),W=tjD[M],z=null;W?z=W(X,Y,R,Z):ff("no hint processor for: "+M);z||ff("failed to generate load url");Y=z;R=Y.match(Wf7);(Z=Y.match(ztU))&&Z.length===1&&S3_.test(Y)&&R&&R.length===1||ff("failed sanity: "+D);try{D="?";if(t&&t.length>0){$$n(t);var I=t.join(",");z=z+"?le="+I;D="&"}if(GR.rol){var F=GR.ol;
F&&F.length&&(z=""+z+D+"ol="+F.length)}}catch(G){}return z},Ffz=function(D,Y,R,Z){D=jp1(D);
Mj4.test(R)||ff("invalid_callback");Y=I11(Y);Z=Z&&Z.length?I11(Z):null;var t=function(X){return encodeURIComponent(X).replace(/%2C/g,",")};
return[encodeURIComponent(D.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",t(D.version),"/m=",t(Y),Z?"/exm="+t(Z):"","/rt=j/sv=1/d=1/ed=1",D.activeMods?"/am="+t(D.activeMods):"",D.resourceSig?"/rs="+t(D.resourceSig):"",D.zcms?"/t="+t(D.zcms):"","/cb=",t(R)].join("")},jp1=function(D){D.charAt(0)!=="/"&&ff("relative path");
for(var Y=D.substring(1).split("/"),R=[];Y.length;){D=Y.shift();if(!D.length||D.indexOf(".")==0)ff("empty/relative directory");else if(D.indexOf("=")>0){Y.unshift(D);break}R.push(D)}D={};for(var Z=0,t=Y.length;Z<t;++Z){var X=Y[Z].split("="),M=decodeURIComponent(X[0]),W=decodeURIComponent(X[1]);X.length==2&&M&&W&&(D[M]=D[M]||W)}Y="/"+R.join("/");XDU.test(Y)||ff("invalid_prefix");R=0;for(Z=uPz.length;R<Z;++R)uPz[R].test(Y)&&ff("invalid_prefix");R=G6E(D,"k",!0);Z=G6E(D,"am");t=G6E(D,"rs");D=G6E(D,"t");
return{pathPrefix:Y,version:R,activeMods:Z,resourceSig:t,zcms:D}},I11=function(D){for(var Y=[],R=0,Z=D.length;R<Z;++R){var t=D[R].replace(/\./g,"_").replace(/-/g,"_");
C14.test(t)&&Y.push(t)}return Y.join(",")},G6E=function(D,Y,R){D=D[Y];
!D&&R&&ff("missing: "+Y);if(D){if(a1D.test(D))return D;ff("invalid: "+Y)}return null},S3_=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ztU=/\/cb=/g,Wf7=/\/\//g;
tjD.m=function(D,Y,R,Z){(D=D[0])||ff("missing_hint");return"https://apis.google.com"+Ffz(D,Y,R,Z)};
var VjL=decodeURI("%73cript"),f17=/^[-+_0-9\/A-Za-z]+={0,2}$/,etE=function(D,Y){for(var R=[],Z=0;Z<D.length;++Z){var t=D[Z],X;if(X=t){a:{for(X=0;X<Y.length;X++)if(Y[X]===t)break a;X=-1}X=X<0}X&&R.push(t)}return R},AQ1=function(){var D=GR.nonce;
return D!==void 0?D&&D===String(D)&&D.match(f17)?D:GR.nonce=null:S_.querySelector?(D=S_.querySelector("script[nonce]"))?(D=D.nonce||D.getAttribute("nonce")||"",D&&D===String(D)&&D.match(f17)?GR.nonce=D:GR.nonce=null):null:null},wDU=function(D){if(S_.readyState!="loading")nsE(D);
else{var Y=AQ1(),R="";Y!==null&&(R=' nonce="'+Y+'"');D="<"+VjL+' src="'+encodeURI(D)+'"'+R+"></"+VjL+">";S_.write(rQD?rQD.createHTML(D):D)}},nsE=function(D){var Y=S_.createElement(VjL);
Y.setAttribute("src",rQD?rQD.createScriptURL(D):D);D=AQ1();D!==null&&Y.setAttribute("nonce",D);Y.async="true";(D=S_.getElementsByTagName(VjL)[0])?D.parentNode.insertBefore(Y,D):(S_.head||S_.body||S_.documentElement).appendChild(Y)},vsV=function(D,Y,R){$J1(function(){var Z=Y===Ed1()?j_(F$,"_",Is()):Is();
Z=j_(daL(Y),"_",Z);D(Z)},R)},T7U=function(D,Y){var R=Y||{};
typeof Y=="function"&&(R={},R.callback=Y);var Z=(Y=R)&&Y._c;if(Z)for(var t=0;t<spD.length;t++){var X=spD[t][0],M=spD[t][1];M&&Object.prototype.hasOwnProperty.call(Z,X)&&M(Z[X],D,Y)}Y=[];D?Y=D.split(":"):R.features&&(Y=R.features);if(!(D=R.h)&&(D=Ed1(),!D))throw Error("Va");os1(Y||[],R,D)},os1=function(D,Y,R){D=p_z(D)||[];
var Z=Y.callback,t=Y.config,X=Y.timeout,M=Y.ontimeout,W=Y.onerror,z=void 0;typeof W=="function"&&(z=W);var I=null,F=!1;if(X&&!M||!X&&M)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";W=j_(daL(R),"r",[]).sort();var G=j_(daL(R),"L",[]).sort(),V=GR.le||[],e=[].concat(W),r=function(c,Q){if(F)return 0;zR.clearTimeout(I);G.push.apply(G,l);var E=((F$||{}).config||{}).update;E?E(t):t&&j_(GR,"cu",[]).push(t);if(Q){Zbb("me0",c,e);try{vsV(Q,R,z)}finally{Zbb("me1",c,e)}}return 1};
X>0&&(I=zR.setTimeout(function(){F=!0;M()},X));
var l=etE(D,G);if(l.length){l=etE(D,W);var U=j_(GR,"CP",[]),K=U.length;U[K]=function(c){if(!c)return 0;Zbb("ml1",l,e);var Q=function(B){U[K]=null;r(l,c)&&gdL(function(){Z&&Z();B()})},E=function(){var B=U[K+1];
B&&B()};
K>0&&U[K-1]?U[K]=function(){Q(E)}:Q(E)};
if(l.length){var H="loaded_"+GR.I++;F$[H]=function(c){U[K](c);F$[H]=null};
D=Tfz(R,l,"gapi."+H,W,V);W.push.apply(W,l);Zbb("ml0",l,e);Y.sync||zR.___gapisync?wDU(D):nsE(D)}else U[K](QeU)}else r(l)&&Z&&Z()},bb4;
var yQ_=null,Nf1=_.ZU.trustedTypes;if(Nf1&&Nf1.createPolicy){try{yQ_=Nf1.createPolicy("goog#gapi",{createHTML:kdb,createScript:kdb,createScriptURL:kdb})}catch(D){_.ZU.console&&_.ZU.console.error(D.message)}bb4=yQ_}else bb4=yQ_;var rQD=bb4,$J1=function(D,Y){if(GR.hee&&GR.hel>0)try{return D()}catch(R){Y&&Y(R),GR.hel--,T7U("debug_error",function(){try{window.___jsl.hefn(R)}catch(Z){throw R;}})}else try{return D()}catch(R){throw Y&&Y(R),R;
}},l1E=F$.load;
l1E&&j_(GR,"ol",[]).push(l1E);F$.load=function(D,Y){return $J1(function(){return T7U(D,Y)})};var gwb;var k6L=function(D,Y){var R=R||[];this.serviceId_=D;this.moduleId_=Y||null;this.dependencies_=[];JQ_(this,R)};
k6L.prototype.toString=function(){return this.serviceId_};
k6L.prototype.getModuleId=function(){return this.moduleId_};
var JQ_=function(D,Y){var R=!1;R=R===void 0?!1:R;D.dependencies_=D.dependencies_.concat(Y);if(R){if(!D.moduleId_)throw Error("Wa`"+D.serviceId_);Y.map(function(Z){return Z.getModuleId()}).forEach(function(Z){dEn(function(t){t.addExtraEdge(D.moduleId_,Z)})})}};var Y7$=new k6L("MpJwZc","MpJwZc");var ZXi=new _.jE("a"),Rb9=function(D,Y,R){_.IF.call(this,D,Y);this.node=Y;this.kind=R};
_.n(Rb9,_.IF);var UJU=function(){this.JSC$10028_keys_={};this.urlPrefix_="";this.JSC$10028_queryData_={}};
UJU.prototype.toString=function(){var D=this.urlPrefix_+KfY(this),Y=_.TZ(this.JSC$10028_queryData_),R="";Y!=""&&(R="?"+Y);return D+R};
var ht1=function(D){D=e_(D,"md");return!!D&&D!=="0"},KfY=function(D){var Y=[],R=(0,_.nG)(function(Z){this.JSC$10028_keys_[Z]!==void 0&&Y.push(Z+"="+this.JSC$10028_keys_[Z])},D);
ht1(D)?(R("md"),R("k"),R("ck"),R("am"),R("rs"),R("gssmodulesetproto"),R("slk"),R("dti")):(R("sdch"),R("k"),R("ck"),R("am"),R("rt"),"d"in D.JSC$10028_keys_||Am(D,"d","0"),R("d"),R("exm"),R("excm"),(D.JSC$10028_keys_.excm||D.JSC$10028_keys_.exm)&&Y.push("ed=1"),R("im"),R("dg"),R("sm"),e_(D,"br")!="1"&&e_(D,"br")!="0"||R("br"),R("br-d"),e_(D,"rb")=="1"&&R("rb"),e_(D,"zs")!=="0"&&R("zs"),LfU(D)!==""&&R("wt"),R("gssmodulesetproto"),R("ujg"),R("sp"),R("rs"),R("cb"),R("ee"),R("slk"),R("dti"),R("m"));return Y.join("/")},
e_=function(D,Y){return D.JSC$10028_keys_[Y]?D.JSC$10028_keys_[Y]:null},Am=function(D,Y,R){R?D.JSC$10028_keys_[Y]=R:delete D.JSC$10028_keys_[Y]},mJE=function(D,Y){D.urlPrefix_=Y},q34=function(D,Y){Y&&Y.length>0?(Y.sort(),Am(D,"exm",Y.join(","))):Am(D,"exm",null)},Hb7=function(D,Y){Y&&Y.length>0?(Y.sort(),Am(D,"excm",Y.join(","))):Am(D,"excm",null)},xJE=function(D){return(D=e_(D,"m"))?D.split(","):[]},LfU=function(D){switch(e_(D,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},P1U=function(D,Y){var R=Object.keys(Y).filter(function(Z){return!!Object.keys(Y[Z]).length}).map(function(Z){var t=Object.keys(Y[Z]);
t.length>1&&t.sort();return Z+":"+t.join(",")});
R.sort();Am(D,"ee",R.join(";"))},Hqi=function(D){var Y=e_(D,"ee");
if(!Y)return{};D={};Y=_.a(Y.split(";"));for(var R=Y.next();!R.done;R=Y.next()){var Z=_.a(R.value.split(":"));R=Z.next().value;Z=Z.next().value;D[R]={};Z=_.a(Z.split(","));for(var t=Z.next();!t.done;t=Z.next())D[R][t.value]=!0}return D},QpD=function(D){delete D.JSC$10028_keys_.m;
delete D.JSC$10028_keys_.exm;delete D.JSC$10028_keys_.ed};
UJU.prototype.clone=function(){var D=new UJU;D.JSC$10028_keys_=Object.assign({},this.JSC$10028_keys_);D.urlPrefix_=this.urlPrefix_;D.JSC$10028_queryData_=Object.assign({},this.JSC$10028_queryData_);return D};
var xsi=function(D,Y){Y=Y===void 0?!0:Y;var R=BfE(D),Z=new UJU,t=_.E3(R)[5];_.y7.forEach(pDV,function(M){var W=t.match("/"+M+"=([^/]+)");W&&Am(Z,M,W[1])});
var X="";X=D.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";mJE(Z,D.substr(0,D.indexOf(X)+X.length));if(!Y)return Z;(D=_.E3(R)[6]||null)&&nKU(D,function(M,W){Z.JSC$10028_queryData_[M]=W});
return Z},Lib=function(D){D=_.zZ(BfE(D));
return D===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(D)?/\/k=/.test(D):!1},BfE=function(D){return D.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?D.substr(65):D},pDV={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",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"},Es4=RegExp("^loaded_(g|h)?[_\\d]+$");_.nf=function(D){this.JSC$10040_id_=D;this.opts={}};
_.nf.prototype.JSC$10042_setLabel=function(D){this.label_=D||void 0;return this};
_.nf.prototype.addUploadMetadata=function(D,Y){var R=this.opts.data||{};R[D]=Y;this.opts.data=R;return this};
var gs7=function(D){var Y=_.y7.filter(D.opts,function(R){return R!==null});
Y=_.y7.isEmpty(Y)?null:Y;D=[D.JSC$10040_id_,D.label_,Y];Y=ejy(D);return D=D.slice(0,Y+1)};
_.nf.prototype.toString=function(){var D=gs7(this);return"("+_.N1(D,function(Y){return JSON.stringify(Y)}).join(",")+")"};
_.nf.prototype.getId=function(){return this.JSC$10040_id_};
_.nf.prototype.getOptions=function(){return _.y7.clone(this.opts)};var rQ=function(){_.nf.call(this,"image-search")};
_.n(rQ,_.nf);rQ.prototype.setSize=function(D){this.opts.imgsz=D;return this};
rQ.prototype.JSC$10042_setLabel=function(D){_.nf.prototype.JSC$10042_setLabel.call(this,D);return this};
rQ.prototype.addUploadMetadata=function(D,Y){_.nf.prototype.addUploadMetadata.call(this,D,Y);return this};var wQ=function(){_.nf.call(this,"maps")};
_.n(wQ,_.nf);wQ.prototype.setZoom=function(D){this.opts.zoom=D;return this};
wQ.prototype.JSC$10042_setLabel=function(D){_.nf.prototype.JSC$10042_setLabel.call(this,D);return this};
wQ.prototype.addUploadMetadata=function(D,Y){_.nf.prototype.addUploadMetadata.call(this,D,Y);return this};_.$O=function(){_.nf.call(this,"photos")};
_.n(_.$O,_.nf);_.$O.prototype.JSC$10042_setLabel=function(D){_.nf.prototype.JSC$10042_setLabel.call(this,D);return this};
_.$O.prototype.addUploadMetadata=function(D,Y){_.nf.prototype.addUploadMetadata.call(this,D,Y);return this};var vF=function(){_.nf.call(this,"url")};
_.n(vF,_.nf);var dJD=function(){var D=new vF;D.opts.type="video";D.opts.site="youtube.com";return D};
vF.prototype.JSC$10042_setLabel=function(D){_.nf.prototype.JSC$10042_setLabel.call(this,D);return this};
vF.prototype.addUploadMetadata=function(D,Y){_.nf.prototype.addUploadMetadata.call(this,D,Y);return this};var bC=function(){_.nf.call(this,"video-search")};
_.n(bC,_.nf);var ibD=function(){var D=new bC;D.opts.site="youtube.com";return D};
bC.prototype.JSC$10042_setLabel=function(D){_.nf.prototype.JSC$10042_setLabel.call(this,D);return this};
bC.prototype.addUploadMetadata=function(D,Y){_.nf.prototype.addUploadMetadata.call(this,D,Y);return this};var Ob_=function(){_.nf.call(this,"web")};
_.n(Ob_,_.nf);Ob_.prototype.JSC$10042_setLabel=function(D){_.nf.prototype.JSC$10042_setLabel.call(this,D);return this};
Ob_.prototype.addUploadMetadata=function(D,Y){_.nf.prototype.addUploadMetadata.call(this,D,Y);return this};var y6=function(){this.items_=[];this.opts={}},cQb=function(D){switch(D){case "image-search":return new rQ;
case "maps":return new wQ;case "photos":return new _.$O;case "url":return new vF;case "video-search":return new bC;case "web":return new Ob_}return new _.nf(D)};
y6.prototype.addView=function(D){this.items_.push(typeof D==="string"?cQb(D):D);return this};
var DEU=function(D){return"("+_.N1(D.items_,function(Y){return Y.toString()}).join(",")+")"};
y6.prototype.toString=function(){return DEU(this)};
y6.prototype.getViews=function(D,Y){Y=Y===void 0?[]:Y;for(var R=this.items_,Z=0;Z<R.length;Z++){var t=R[Z];t instanceof y6?t.getViews(D,Y):t.getId()==D&&Y.push(t)}return Y};
y6.prototype.getOptions=function(){return _.y7.clone(this.opts)};var JE=function(D){this.basePickerUrl_=D||"https://docs.google.com/picker";this.nav_=new y6};
JE.prototype.nav_=null;JE.prototype.addView=function(D){this.nav_.addView(D);return this};
JE.prototype.getBaseUrl=function(){return this.basePickerUrl_};
JE.prototype.getViews=function(D){return this.nav_.getViews(D)};
_.YKV=function(D,Y){D.callback_=Y;return D};var Rr1=new Map;Rr1.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Rr1.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Rr1.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Zvb=new Set;Zvb.add("application/vnd.google-apps.kix");Zvb.add("application/vnd.google-apps.ritz");Zvb.add("application/vnd.google-apps.punch");var jnz=function(D,Y,R){var Z=R&&_.Np(R,1);R=t$E(R);var t=D[0].getId();switch(_.lh(t,2)){case 13:return snz(D,Y,Z,R);case 3:return Xrz(D,Y,Z,R);case 10:return uWz(D,Y,Z,R);case 27:return uWz(D,Y,Z,R);case 12:return aHD(D,Y);case 2:return M$4(D,Y,Z,R);case 5:return CxY(D,Y,Z,R);case 9:return WzE(D,Y,Z,R);case 6:return zrb(D,Y,Z,R);case 25:return SKz(D,Y,Z,R);case 1:return _.fw(D[0],mkb,26)?TPD(D,Y,Z,R):uWz(D,Y,Z,R);default:return{}}},zrb=function(D,Y,R,Z){D=D.map(function(t){return{id:t.getId().getId(),
serviceId:"youtube",name:t.getName(),description:_.Np(t,3),type:Nl(t),lastEditedUtc:_.LhL(_.tP(t,_.U0,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:_.Np(t,13),thumbnails:lC(Or(t))}});
return{action:Y,docs:D,viewToken:Z,view:R||"youtube",v2Translated:!0}},M$4=function(D,Y,R,Z){var t=D.map(function(X){var M=X.getId().getId(),W=_.Np(X,7),z=X.getName(),I=Nl(X),F=_.LhL(_.tP(X,_.U0,12)).getTime(),G=X.getUrl(),V=Number(ORb(X)),e=_.Np(X,3),r=_.Np(X,11),l=lC(Or(X));
var U=_.tP(X,cj,21);U=_.oc(U,1);var K=_.tP(X,cj,21);K=_.Np(K,10);var H=_.Np(X,13);var c=_.tP(X,cj,21);c=_.oc(c,9);var Q=_.tP(X,cj,21);Q=_.Np(Q,11);M={id:M,serviceId:"docs",mimeType:W,name:z,type:I,lastEditedUtc:F,url:G,sizeBytes:V,description:e,iconUrl:r,thumbnails:l,isShared:U,downloadUrl:K,embedUrl:H,copyable:c,resourceKey:Q};W=_.tP(X,cj,21);_.oc(W,12)&&(M.uploadState="success",M.isNew=!0);W=_.tP(X,cj,21);_.fw(W,gy,3)&&(X=_.tP(X,cj,21),X=_.tP(X,gy,3),_.fw(X,pC,2)&&(W=NC(X.getDuration().getSeconds()),
z=X.getDuration(),z=_.ZC(z,2),M.duration=W+z/1E9),M.aspectRatio=X.getAspectRatio());return M});
return{action:Y,docs:t,viewToken:Z,view:R||"all",extraUserInputs:IH1(D),v2Translated:!0}},CxY=function(D,Y,R,Z){D=D.map(function(t){var X=_.tP(t,gKL,15);
X=_.tP(X,Er,1);Io(t,10,Er,X);return{id:t.getId().getId(),serviceId:"web",mimeType:_.Np(t,7),name:t.getName(),type:Nl(t),url:t.getUrl(),description:_.Np(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lC(Or(t))}});
return{action:Y,docs:D,viewToken:Z,view:R||"image-search",v2Translated:!0}},WzE=function(D,Y,R,Z){D=D.map(function(t){return{serviceId:"url",
name:Or(t)[0].getUrl().split("/").pop(),type:Nl(t),mimeType:_.Np(t,7),url:t.getUrl(),description:_.Np(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lC(Or(t))}});
return{action:Y,docs:D,viewToken:Z,view:R||"url",v2Translated:!0}},TPD=function(D,Y,R,Z){D=D.map(function(t){return{id:t.getId().getId(),
serviceId:"picasa",name:t.getName(),type:Nl(t),description:_.Np(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lC(Or(t))}});
return{action:Y,docs:D,viewToken:Z,view:R||"webcam",v2Translated:!0}},uWz=function(D,Y,R,Z){return{action:Y,
docs:D.map(Fzz),viewToken:Z,view:GZU(R||"upload",D),extraUserInputs:IH1(D),v2Translated:!0}},GZU=function(D,Y){return Y.some(function(R){var Z;
return((Z=_.tP(R,dy,30))==null?void 0:_.lh(Z,3))===9})?D+"/gmailphotos":D},Xrz=function(D,Y,R,Z){var t=D.map(function(X){var M={id:X.getId().getId(),
serviceId:"picasa",mimeType:_.Np(X,7),name:X.getName(),type:Nl(X),lastEditedUtc:_.LhL(_.tP(X,_.U0,12)).getTime(),url:X.getUrl(),sizeBytes:Number(ORb(X)),description:_.Np(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lC(Or(X)),mediaKey:X.getId().getId(),parentId:_.Np(X,4)},W,z=(W=_.tP(X,xkL,18))==null?void 0:_.tP(W,HtD,3);z&&(M.latitude=yn(z,1),M.longitude=yn(z,2));var I;X=(I=_.tP(X,xkL,18))==null?void 0:bh(I,6);I=X!=null?NC(X):void 0;I&&(M.version=
I);return M});
return{action:Y,docs:t,viewToken:Z,view:R||"photos",extraUserInputs:IH1(D),v2Translated:!0}},snz=function(D,Y,R,Z){D=D.map(function(t){return{id:t.getId().getId(),
serviceId:"et",name:Or(t)[0].getUrl().split("/").pop(),description:_.Np(t,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lC(Or(t),"etjpg")}});
return{action:Y,docs:D,viewToken:Z,view:R||"et",v2Translated:!0}},SKz=function(D,Y,R,Z){D=D.map(function(t){var X=t.getId().getId(),M=Z["2"];
return{id:X,serviceId:M.type!=="gmail_themes"&&M.parent==="6226252643674576769"?"picasa":"static_themes",name:t.getName(),mimeType:_.Np(t,7),type:Nl(t),description:_.Np(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:t.getUrl(),embedUrl:t.getUrl(),thumbnails:lC(Or(t))}});
return{action:Y,docs:D,viewToken:Z,view:R||"photos",v2Translated:!0}},aHD=function(D,Y){D=D.map(function(R){var Z=_.tP(R,qzb,27);
Z=_.Pu(Z,1,_.TT,_.R0())[0];return{id:R.getId().getId(),serviceId:"contacts",mimeType:_.Np(R,7),name:R.getName(),description:_.Np(R,3),url:"mailto:"+Z,thumbnail:[{url:_.Np(R,11)}],email:Z}});
return{action:Y,docs:D,view:"contacts",v2Translated:!0}},t$E=function(D){if(!D)return{};
var Y=_.Np(D,3);Y=Y&&JSON.parse(Y)||{};return{0:_.Np(D,1),1:_.Np(D,2),2:Y}},lC=function(D,Y){Y=Y===void 0?"":Y;
if(!D.length)return null;Y=="etjpg"&&(D=D.filter(function(R){return R.getUrl().includes("w1200-h300")}));
return D.map(function(R){return{url:R.getUrl(),height:R.getHeight(),width:R.getWidth(),type:Y}})},IH1=function(D){return{isAttachment:D.some(function(Y){return _.oc(Y,31)})}},Fzz=function(D){var Y,R={id:(Y=D.getId())==null?void 0:Y.getId(),
serviceId:V$V(D),mimeType:_.Np(D,7),name:D.getName(),type:Nl(D),sizeBytes:Number(ORb(D)),description:_.Np(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:lC(Or(D)),isNew:!0};if(Y=_.tP(D,dy,30)){R.dataUrl=_.Np(Y,1)||null;a:{var Z=_.tP(D,dy,30);switch(_.lh(Z,3)){case 9:Z=_.Ub(Z,puV,2,i3);Z={remoteRefs:Z&&_.Np(Z,1)};break a;case 10:case 15:Z=_.Ub(Z,Bbb,4,i3);var t=Or(D);Z={photo_id:Z&&_.Np(Z,1),media_key:D.getId().getId(),media_type:_.lh(D,6)===1?1:2,image_url:t&&
t[0].getUrl(),width:t&&String(t[0].getWidth()),height:t&&String(t[0].getHeight())};break a}Z=null}R.uploadMetadata=Z;R.uploadId=_.Np(Y,9)||null;R.uploadState=fHE(Y)||null}(Z=Y&&_.Ub(Y,Bbb,4,i3))&&(R.id=_.Np(Z,1));(Z=Y&&_.Ub(Y,EKz,5,i3))&&(R.contentId=_.Np(Z,1));(Z=Y&&_.Ub(Y,Pkz,7,i3))&&(R.contentId=_.Np(Z,1));(Z=Y&&_.Ub(Y,Q9E,6,i3))&&(R.contentId=_.Np(Z,1));(Y==null?void 0:_.lh(Y,3))===1&&(R.mediaKey=D.getId().getId());return R},V$V=function(D){var Y;
switch(((Y=_.tP(D,dy,30))==null?void 0:_.lh(Y,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},Nl=function(D){switch(_.lh(D,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 _.Np(D,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},fHE=function(D){switch(D==null?void 0:_.lh(D,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 rTV,er_,AT4,nwz;_.wr7=function(D,Y){var R=Y||{};Y=R.document||document;var Z=_.n$(D).toString(),t=(new ry(Y)).createElement("SCRIPT"),X={script_:t,timeout_:void 0},M=new BP(er_,X),W=null,z=R.timeout!=null?R.timeout:5E3;z>0&&(W=window.setTimeout(function(){AT4(t,!0);M.errback(new nwz(1,"Timeout reached for loading script "+Z))},z),X.timeout_=W);
t.onload=t.onreadystatechange=function(){t.readyState&&t.readyState!="loaded"&&t.readyState!="complete"||(AT4(t,R.cleanupWhenDone||!1,W),M.callback(null))};
t.onerror=function(){AT4(t,!0,W);M.errback(new nwz(0,"Error while loading script "+Z))};
X=R.attributes||{};_.y7.extend(X,{type:"text/javascript",charset:"UTF-8"});y1b(t,X);_.dg(t,D);rTV(Y).appendChild(t);return M};
rTV=function(D){var Y=G_("HEAD",D);return Y&&Y.length!==0?Y[0]:D.documentElement};
er_=function(){if(this&&this.script_){var D=this.script_;D&&D.tagName=="SCRIPT"&&AT4(D,!0,this.timeout_)}};
AT4=function(D,Y,R){R!=null&&_.ZU.clearTimeout(R);D.onload=function(){};
D.onerror=function(){};
D.onreadystatechange=function(){};
Y&&window.setTimeout(function(){_.F_(D)},0)};
nwz=function(D,Y){var R="Jsloader error (code #"+D+")";Y&&(R+=": "+Y);_.Yn.call(this,R);this.code=D};
_.XN(nwz,_.Yn);var $EL=_.gY(["https://apis.google.com/js/api.js"]),vwY=_.tZ($EL),NPE=function(D,Y){var R=!1,Z=owV(D,Y).then(function(X){R=!0;return X}),t=_.R3E(5E3).then(function(){return R?owV(D,Y):bvV(Y).then(function(X){return yTE(X,D)})});
return P4Y([Z,t])},owV=function(D,Y){return lHb(Y).then(function(R){return yTE(R,D)})},yTE=function(D,Y){var R=_.Xi(Y,"gapi.")?Y.slice(5):Y;
return D[R]?_.TA(D[R]):new _.zz(function(Z,t){var X=vP(function(){t(Error("Ya"))},3E4);
D.load(Y,{callback:function(){_.ZU.clearTimeout(X);Z(D[R])},
onerror:function(M){_.ZU.clearTimeout(X);t(M)}})})},lHb=function(D){return D.gapi&&D.gapi.load?_.TA(D.gapi):bvV(D)},bvV=function(D){return _.wr7(vwY,{document:D.document}).then(function(){return D.gapi})},JTU=function(){};
JTU.prototype.load=function(D,Y){Y=Y===void 0?window:Y;var R=Date.now();return NPE(D,Y).then(function(Z){var t=Date.now();return{library:Z,loadStartMs:R,loadEndMs:t}},function(Z){throw Z instanceof Error?Z:Error(String(Z));
})};var aOU=function(){_.AE.call(this);this.gapiLoader_=new JTU;this.origin_=null;this.gapiPickerIframeResolver_=_.iq();this.gapiIframesResolver_=_.iq();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.n(aOU,_.AE);var kZV=function(D,Y){var R=_.mf("gapi.iframes",Y);return R?(D=Date.now(),_.TA({library:R,loadStartMs:D,loadEndMs:D})):D.gapiLoader_.load("gapi.iframes",Y)},UEL=function(D,Y,R,Z,t,X){var M=!1;
M=M===void 0?!1:M;kZV(D,JZ(Y.ownerDocument)).then(function(W){var z=W.library;D.gapiIframesResolver_.resolve(z);W=D.gapiPickerIframeResolver_;var I=W.resolve,F=M;F=F===void 0?!1:F;var G={};G["host-message-handler"]=R;D.hostMessageHandlerInternal_=G;var V=_.qC(Z);V=_.qC(V);V=_.YO(_.Ds(_.cP(new _.cO,V.scheme_),V.JSC$10000_domain_),V.JSC$10000_port_).toString();D.origin_=V;V=(new ct4).setUrl(Z);V.JSC$10015_obj_.where=Y;V.JSC$10015_obj_.allowPost=F;V.JSC$10015_obj_.messageHandlers=G;F=_.mf("makeWhiteListIframesFilter",
z)([D.origin_]);V.JSC$10015_obj_.messageHandlersFilter=F;t!=null&&(V.JSC$10015_obj_.id=t);X!=null&&(V.JSC$10015_obj_.rpctoken=X);F=O4z(V);F.JSC$10012_obj_.style={display:"block","min-width":"100%",width:"1px"};F.JSC$10012_obj_.height="100%";O4z(V).value().allow="camera 'src' "+D.origin_;z=z.getContext().openChild(V.value());I.call(W,z)},function(W){D.gapiIframesResolver_.reject(W);
D.gapiPickerIframeResolver_.reject(W)});
return D.gapiPickerIframeResolver_.promise},Kzz=function(D,Y){return _.w3([D.gapiIframesResolver_.promise,
D.gapiPickerIframeResolver_.promise]).then(function(R){var Z=_.a(R);R=Z.next().value;return(Z=Z.next().value)?Z.send("picker-message-handler",Y,void 0,_.mf("makeWhiteListIframesFilter",R)([D.origin_])):_.lf(Error("Za"))})};
aOU.prototype.disposeInternal=function(){hrE(this);_.AE.prototype.disposeInternal.call(this)};
var hrE=function(D){D.gapiPickerIframeResolver_.promise.then(function(Y){Y&&(Y.unregister("host-message-handler"),delete D.hostMessageHandlerInternal_["host-message-handler"])})};var LzU=function(){this.JSC$10102_nextId=0};var qKL=function(D,Y){switch(D.action){case "select-contacts":D=mEL(D.contacts);break;case "visibility":D=D.visible;var R=new YB;D=_.hr(R,1,7).setVisible(D);R={};R["iframe-command"]=D.serialize();D=R;break;default:D=null}return D?Kzz(Y,D):_.TA()},mEL=function(D){if(!D||D.length==0)return null;
var Y=new YB;_.hr(Y,1,11);var R=new LzU;D.forEach(function(Z){if(Z.email){var t=new $0;t=_.E0(t,2,Z.name?Z.name:Z.email);var X=new qzb;Z=_.Ukr(X,1,_.Ct,Z.email,_.TT);Z=_.To(t,27,Z);t=new hKz;X=":"+(R.JSC$10102_nextId++).toString(36);t=_.E0(t,1,X);t=_.hr(t,2,12);Z=_.To(Z,1,t)}else Z=null;Z&&Io(Y,7,$0,Z)});
D={};D["iframe-command"]=Y.serialize();return D};_.Hv_=function(){if(zCy){var D=/Windows NT ([0-9.]+)/;return(D=D.exec(_.Il()))?D[1]:"0"}return _.WNb?(D=/1[0|1][_.][0-9_.]+/,(D=D.exec(_.Il()))?D[0].replace(/_/g,"."):"10"):Yol?(D=/Android\s+([^\);]+)(\)|;)/,(D=D.exec(_.Il()))?D[1]:""):TEn||jwU||IPn?(D=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(D=D.exec(_.Il()))?D[1].replace(/_/g,"."):""):""}();var Jm;Jm=function(D){return(D=D.exec(_.Il()))?D[1]:""};
_.xEL=function(){if(_.TX)return Jm(/Firefox\/([0-9.]+)/);if(_.Cw||gP||aPS)return nJS;if(_.js){if(_.yU()||_.F5S()){var D=Jm(/CriOS\/([0-9.]+)/);if(D)return D}return Jm(/Chrome\/([0-9.]+)/)}if(_.UK&&!_.yU())return Jm(/Version\/([0-9.]+)/);if(Au5||nx$){if(D=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Il()))return D[1]+"."+D[2]}else if(oJb)return(D=Jm(/Android\s+([0-9.]+)/))?D:Jm(/Version\/([0-9.]+)/);return""}();var Px7=function(){};
_.tr(Px7);Px7.prototype.nextId_=0;_.kO=function(D){return":"+(D.nextId_++).toString(36)};var US=function(D){_.eE.call(this);this.JSC$10110_dom_=D||f0();this.JSC$10110_id_=null;this.inDocument_=!1;this.JSC$10110_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.XN(US,_.eE);US.prototype.idGenerator_=Px7.getInstance();US.prototype.getId=function(){return this.JSC$10110_id_||(this.JSC$10110_id_=_.kO(this.idGenerator_))};
US.prototype.getElement=function(){return this.JSC$10110_element_};
var Kf=function(D){D.googUiComponentHandler_||(D.googUiComponentHandler_=new _.aR(D));return D.googUiComponentHandler_},Qnb=function(D,Y){if(D==Y)throw Error("$a");
var R;if(R=Y&&D.parent_&&D.JSC$10110_id_){R=D.parent_;var Z=D.JSC$10110_id_;R=R.childIndex_&&Z?_.y7.get(R.childIndex_,Z)||null:null}if(R&&D.parent_!=Y)throw Error("$a");D.parent_=Y;US.superClass_.setParentEventTarget.call(D,Y)};
US.prototype.setParentEventTarget=function(D){if(this.parent_&&this.parent_!=D)throw Error("ab");US.superClass_.setParentEventTarget.call(this,D)};
US.prototype.JSC$10112_createDom=function(){this.JSC$10110_element_=this.JSC$10110_dom_.createElement("DIV")};
US.prototype.render=function(D){BP7(this,D)};
var BP7=function(D,Y,R){if(D.inDocument_)throw Error("bb");D.JSC$10110_element_||D.JSC$10112_createDom();Y?Y.insertBefore(D.JSC$10110_element_,R||null):D.JSC$10110_dom_.JSC$9295_document_.body.appendChild(D.JSC$10110_element_);D.parent_&&!D.parent_.inDocument_||D.enterDocument()};
_.u=US.prototype;_.u.decorate=function(D){if(this.inDocument_)throw Error("bb");if(D&&this.canDecorate(D)){this.wasDecorated_=!0;var Y=_.k2(D);this.JSC$10110_dom_&&this.JSC$10110_dom_.JSC$9295_document_==Y||(this.JSC$10110_dom_=f0(D));this.decorateInternal(D);this.enterDocument()}else throw Error("cb");};
_.u.canDecorate=function(){return!0};
_.u.decorateInternal=function(D){this.JSC$10110_element_=D};
_.u.enterDocument=function(){this.inDocument_=!0;prD(this,function(D){!D.inDocument_&&D.getElement()&&D.enterDocument()})};
_.u.exitDocument=function(){prD(this,function(D){D.inDocument_&&D.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.u.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);prD(this,function(D){D.dispose()});
!this.wasDecorated_&&this.JSC$10110_element_&&_.F_(this.JSC$10110_element_);this.parent_=this.model_=this.JSC$10110_element_=this.childIndex_=this.children_=null;US.superClass_.disposeInternal.call(this)};
_.u.getModel=function(){return this.model_};
_.u.addChild=function(D,Y){var R=this.children_?this.children_.length:0;if(D.inDocument_&&(Y||!this.inDocument_))throw Error("bb");if(R<0||R>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);D.parent_==this?(_.y7.set(this.childIndex_,D.getId(),D),_.m5(this.children_,D)):_.y7.add(this.childIndex_,D.getId(),D);Qnb(D,this);_.wor(this.children_,R,0,D);D.inDocument_&&this.inDocument_&&D.parent_==this?(Y=this.getContentElement(),
(Y.childNodes[R]||null)!=D.getElement()&&(D.getElement().parentElement==Y&&Y.removeChild(D.getElement()),R=Y.childNodes[R]||null,Y.insertBefore(D.getElement(),R))):Y?(this.JSC$10110_element_||this.JSC$10112_createDom(),R=this.children_?this.children_[R+1]||null:null,BP7(D,this.getContentElement(),R?R.JSC$10110_element_:null)):this.inDocument_&&!D.inDocument_&&D.JSC$10110_element_&&D.JSC$10110_element_.parentNode&&D.JSC$10110_element_.parentNode.nodeType==1&&D.enterDocument()};
_.u.getContentElement=function(){return this.JSC$10110_element_};
var prD=function(D,Y){D.children_&&D.children_.forEach(Y,void 0)};
US.prototype.removeChild=function(D,Y){if(D){var R=typeof D==="string"?D:D.getId();D=this.childIndex_&&R?_.y7.get(this.childIndex_,R)||null:null;R&&D&&(_.y7.remove(this.childIndex_,R),_.m5(this.children_,D),Y&&(D.exitDocument(),D.JSC$10110_element_&&_.F_(D.JSC$10110_element_)),Qnb(D,null))}if(!D)throw Error("eb");return D};_.XN(cTn,OvU);_.XN(DsU,OvU);var EwE;_.y7.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var gwD=function(D,Y){Y?D.setAttribute("role",Y):D.removeAttribute("role")},hm=function(D,Y,R){Array.isArray(R)&&(R=R.join(" "));
var Z="aria-"+Y;R===""||R==void 0?(EwE||(R={},EwE=(R.atomic=!1,R.autocomplete="none",R.dropeffect="none",R.haspopup=!1,R.live="off",R.multiline=!1,R.multiselectable=!1,R.orientation="vertical",R.readonly=!1,R.relevant="additions text",R.required=!1,R.sort="none",R.busy=!1,R.disabled=!1,R.hidden=!1,R.invalid="false",R)),R=EwE,Y in R?D.setAttribute(Z,R[Y]):D.removeAttribute(Z)):D.setAttribute(Z,R)};var dEE;_.Lf=function(D,Y,R){_.eE.call(this);this.target=D;this.handle=Y||D;this.limits=R||new Ur(NaN,NaN,NaN,NaN);this.JSC$10115_document_=_.k2(D);this.JSC$10115_eventHandler_=new _.aR(this);_.WB(this,this.JSC$10115_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;_.yu(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=dEE};
_.XN(_.Lf,_.eE);dEE=_.ZU.document&&_.ZU.document.documentElement&&!!_.ZU.document.documentElement.setCapture&&!!_.ZU.document.releaseCapture;_.iv_=function(D,Y){D.hysteresisDistanceSquared_=Math.pow(Y,2)};
_.u=_.Lf.prototype;_.u.setEnabled=function(D){this.enabled_=D};
_.u.disposeInternal=function(){_.Lf.superClass_.disposeInternal.call(this);_.fg(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10115_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10115_document_.releaseCapture();this.handle=this.target=null};
_.u.startDrag=function(D){var Y=D.type=="mousedown";if(!this.enabled_||this.dragging_||Y&&(D.event_.button!=0||_.WNb&&D.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new mk("start",this,D.clientX,D.clientY,D)))this.dragging_=!0,Y&&D.preventDefault();else return;else Y&&D.preventDefault();Y=this.JSC$10115_document_;var R=Y.documentElement,Z=!this.useSetCapture_;this.JSC$10115_eventHandler_.listen(Y,["touchmove","mousemove"],this.handleMove_,
{capture:Z,passive:!1});this.JSC$10115_eventHandler_.listen(Y,["touchend","mouseup"],this.endDrag,Z);this.useSetCapture_?(R.setCapture(!1),this.JSC$10115_eventHandler_.listen(R,"losecapture",this.endDrag)):this.JSC$10115_eventHandler_.listen(JZ(Y),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10115_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Z);this.clientX=this.startX=D.clientX;this.clientY=this.startY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=V7(f0(this.JSC$10115_document_))}};
_.u.endDrag=function(D,Y){this.JSC$10115_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10115_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new mk("end",this,D.clientX,D.clientY,D,OvV(this,this.deltaX),cTE(this,this.deltaY),Y||D.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.u.handleMove_=function(D){if(this.enabled_){var Y=D.clientX-this.clientX,R=D.clientY-this.clientY;this.clientX=D.clientX;this.clientY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;if(!this.dragging_){var Z=this.startX-this.clientX,t=this.startY-this.clientY;if(Z*Z+t*t>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new mk("start",this,D.clientX,D.clientY,D)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(D);return}}R=DsV(this,Y,R);Y=R.x;R=R.y;this.dragging_&&this.dispatchEvent(new mk("beforedrag",
this,D.clientX,D.clientY,D,Y,R))&&(Y1D(this,D,Y,R),D.preventDefault())}};
var DsV=function(D,Y,R){var Z=V7(f0(D.JSC$10115_document_));Y+=Z.x-D.pageScroll.x;R+=Z.y-D.pageScroll.y;D.pageScroll=Z;D.deltaX+=Y;D.deltaY+=R;return new _.lm(OvV(D,D.deltaX),cTE(D,D.deltaY))};
_.Lf.prototype.onScroll_=function(D){var Y=DsV(this,0,0);D.clientX=this.clientX;D.clientY=this.clientY;Y1D(this,D,Y.x,Y.y)};
var Y1D=function(D,Y,R,Z){D.target.style.left=R+"px";D.target.style.top=Z+"px";D.dispatchEvent(new mk("drag",D,Y.clientX,Y.clientY,Y,R,Z))},OvV=function(D,Y){var R=D.limits;
D=isNaN(R.left)?null:R.left;R=isNaN(R.width)?0:R.width;return Math.min(D!=null?D+R:Infinity,Math.max(D!=null?D:-Infinity,Y))},cTE=function(D,Y){var R=D.limits;
D=isNaN(R.top)?null:R.top;R=isNaN(R.height)?0:R.height;return Math.min(D!=null?D+R:Infinity,Math.max(D!=null?D:-Infinity,Y))};
_.Lf.prototype.isDragging=function(){return this.dragging_};
var mk=function(D,Y,R,Z,t,X,M){_.IF.call(this,D);this.clientX=R;this.clientY=Z;this.browserEvent=t;this.left=X!==void 0?X:Y.deltaX;this.top=M!==void 0?M:Y.deltaY};
_.XN(mk,_.IF);var ql=function(D){this.JSC$10122_map_=new Map;var Y=arguments.length;if(Y>1){if(Y%2)throw Error("ka");for(var R=0;R<Y;R+=2)this.set(arguments[R],arguments[R+1])}else D&&this.addAll(D)};
_.u=ql.prototype;_.u.getCount=function(){return this.JSC$10122_map_.size};
_.u.getValues=function(){return Array.from(this.JSC$10122_map_.values())};
_.u.getKeys=function(){return Array.from(this.JSC$10122_map_.keys())};
_.u.containsKey=function(D){return this.JSC$10122_map_.has(D)};
_.u.containsValue=function(D){return this.getValues().some(function(Y){return Y==D})};
_.u.equals=function(D,Y){var R=this;Y=Y===void 0?function(Z,t){return Z===t}:Y;
return this===D?!0:this.JSC$10122_map_.size!=D.getCount()?!1:this.getKeys().every(function(Z){return Y(R.JSC$10122_map_.get(Z),D.get(Z))})};
_.u.isEmpty=function(){return this.JSC$10122_map_.size==0};
_.u.clear=function(){this.JSC$10122_map_.clear()};
_.u.remove=function(D){return this.JSC$10122_map_.delete(D)};
_.u.get=function(D,Y){return this.JSC$10122_map_.has(D)?this.JSC$10122_map_.get(D):Y};
_.u.set=function(D,Y){this.JSC$10122_map_.set(D,Y);return this};
_.u.addAll=function(D){if(D instanceof ql){D=_.a(D.JSC$10122_map_);for(var Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;this.JSC$10122_map_.set(Y,R)}}else if(D)for(D=_.a(Object.entries(D)),Y=D.next();!Y.done;Y=D.next())R=_.a(Y.value),Y=R.next().value,R=R.next().value,this.JSC$10122_map_.set(Y,R)};
_.u.forEach=function(D,Y){var R=this;Y=Y===void 0?this:Y;this.JSC$10122_map_.forEach(function(Z,t){return D.call(Y,Z,t,R)})};
_.u.clone=function(){return new ql(this)};(function(){for(var D=["ms","moz","webkit","o"],Y,R=0;Y=D[R]&&!_.ZU.requestAnimationFrame;++R)_.ZU.requestAnimationFrame=_.ZU[Y+"RequestAnimationFrame"],_.ZU.cancelAnimationFrame=_.ZU[Y+"CancelAnimationFrame"]||_.ZU[Y+"CancelRequestAnimationFrame"];if(!_.ZU.requestAnimationFrame){var Z=0;_.ZU.requestAnimationFrame=function(t){var X=(new Date).getTime(),M=Math.max(0,16-(X-Z));Z=X+M;return _.ZU.setTimeout(function(){t(X+M)},M)};
_.ZU.cancelAnimationFrame||(_.ZU.cancelAnimationFrame=function(t){clearTimeout(t)})}})();
var R2L=[[],[]],Zq7=0,thY=!1,sE4=0,uGE=function(D,Y){var R=sE4++,Z={measureTask:{id:R,fn:D.measure,context:Y},mutateTask:{id:R,fn:D.mutate,context:Y},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Z.args||(Z.args=[]),Z.args.length=0,Z.args.push.apply(Z.args,arguments),Z.args.push(Z.state)):Z.args&&Z.args.length!=0?(Z.args[0]=Z.state,Z.args.length=1):Z.args=[Z.state];Z.isScheduled||(Z.isScheduled=!0,R2L[Zq7].push(Z));thY||(thY=!0,window.requestAnimationFrame(Xgb))}},Xgb=
function(){thY=!1;
var D=R2L[Zq7],Y=D.length;Zq7=(Zq7+1)%2;for(var R,Z=0;Z<Y;++Z){R=D[Z];var t=R.measureTask;R.isScheduled=!1;t.fn&&t.fn.apply(t.context,R.args)}for(Z=0;Z<Y;++Z)R=D[Z],t=R.mutateTask,R.isScheduled=!1,t.fn&&t.fn.apply(t.context,R.args),R.state={};D.length=0};var aO_=_.gY(["about:blank"]),Mhz=_.gY(["javascript:undefined"]),CDz=_.tZ(aO_);_.n$(CDz);var Wi4=_.tZ(Mhz);_.n$(Wi4);var HF=function(D){_.eE.call(this);this.JSC$10128_element_=D;this.listenKeyIn_=_.yu(this.JSC$10128_element_,"focus",this,!0);this.listenKeyOut_=_.yu(this.JSC$10128_element_,"blur",this,!0)};
_.XN(HF,_.eE);HF.prototype.handleEvent=function(D){var Y=new _.FQ(D.event_);Y.type=D.type=="focusin"||D.type=="focus"?"focusin":"focusout";this.dispatchEvent(Y)};
HF.prototype.disposeInternal=function(){HF.superClass_.disposeInternal.call(this);vL(this.listenKeyIn_);vL(this.listenKeyOut_);delete this.JSC$10128_element_};var z2Y=function(D,Y){this.JSC$10131_element_=D;this.JSC$10131_dom_=Y};var xO=function(D,Y){US.call(this,Y);this.useIframeMask_=!!D;this.lastFocus_=null;this.resizeBackgroundTask_=uGE({mutate:this.resizeBackground_},this);uGE({mutate:this.updateModalAndBackground_},this)};
_.XN(xO,US);_.u=xO.prototype;_.u.focusHandler_=null;_.u.visible_=!1;_.u.bgEl_=null;_.u.bgIframeEl_=null;_.u.tabCatcherElement_=null;_.u.backwardTabWrapInProgress_=!1;_.u.getCssClass=function(){return"goog-modalpopup"};
_.u.getBackgroundElement=function(){return this.bgEl_};
_.u.JSC$10112_createDom=function(){xO.superClass_.JSC$10112_createDom.call(this);var D=this.getElement(),Y=TU(this.getCssClass()).split(" ");PP(D,Y);D.tabIndex=0;_.PB(D,!1);S1Y(this);TRL(this)};
var S1Y=function(D){if(D.useIframeMask_&&!D.bgIframeEl_){var Y=D.JSC$10110_dom_.JSC$9297_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.x7(Y,CDz);D.bgIframeEl_=Y;D.bgIframeEl_.className=D.getCssClass()+"-bg";_.PB(D.bgIframeEl_,!1);XuV(D.bgIframeEl_,0)}D.bgEl_||(D.bgEl_=D.JSC$10110_dom_.JSC$9297_createDom("DIV",D.getCssClass()+"-bg"),_.PB(D.bgEl_,!1))},TRL=function(D){D.tabCatcherElement_||(D.tabCatcherElement_=D.JSC$10110_dom_.createElement("SPAN"),_.PB(D.tabCatcherElement_,
!1),D.tabCatcherElement_.tabIndex=0,D.tabCatcherElement_.style.position="absolute")};
_.u=xO.prototype;_.u.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.u.canDecorate=function(D){return!!D&&D.tagName=="DIV"};
_.u.decorateInternal=function(D){xO.superClass_.decorateInternal.call(this,D);D=TU(this.getCssClass()).split(" ");PP(this.getElement(),D);S1Y(this);TRL(this);this.getElement().tabIndex=0;_.PB(this.getElement(),!1)};
_.u.enterDocument=function(){this.bgIframeEl_&&_.Nq(this.bgIframeEl_,this.getElement());_.Nq(this.bgEl_,this.getElement());xO.superClass_.enterDocument.call(this);_.l3(this.tabCatcherElement_,this.getElement());this.focusHandler_=new HF(this.JSC$10110_dom_.JSC$9295_document_);Kf(this).listen(this.focusHandler_,"focusin",this.onFocus);jEL(this,!1)};
_.u.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.OG(this.focusHandler_);xO.superClass_.exitDocument.call(this);_.F_(this.bgIframeEl_);_.F_(this.bgEl_);_.F_(this.tabCatcherElement_)};
_.u.setVisible=function(D){if(D!=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_&&jEL(this,D),D){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10110_dom_.JSC$9295_document_.activeElement}catch(t){}this.updateModalAndBackground_();Kf(this).listen(this.JSC$10110_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10110_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);IOL(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)$C(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Kf(this).unlisten(this.JSC$10110_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10110_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)$C(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var Y=this.JSC$10110_dom_,R=Y.JSC$9295_document_.body,Z=Y.JSC$9295_document_.activeElement||R;if(!this.lastFocus_||this.lastFocus_==R){this.lastFocus_=null;break a}(Z==R||Y.contains(this.getElement(),Z))&&this.lastFocus_.focus()}catch(t){}this.lastFocus_=
null}}};
var jEL=function(D,Y){D.modalAriaVisibilityHelper_||(D.modalAriaVisibilityHelper_=new z2Y(D.JSC$10110_element_,D.JSC$10110_dom_));D=D.modalAriaVisibilityHelper_;if(Y){D.hiddenElements_||(D.hiddenElements_=[]);Y=D.JSC$10131_dom_.getChildren(D.JSC$10131_dom_.JSC$9295_document_.body);for(var R=0;R<Y.length;R++){var Z=Y[R],t;if(t=Z!=D.JSC$10131_element_)t=Z.getAttribute("aria-hidden"),t=!(t==null||t==void 0?0:String(t));t&&(hm(Z,"hidden",!0),D.hiddenElements_.push(Z))}}else if(D.hiddenElements_){for(Y=
0;Y<D.hiddenElements_.length;Y++)D.hiddenElements_[Y].removeAttribute("aria-hidden");D.hiddenElements_=null}};
xO.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var IOL=function(D,Y){D.bgIframeEl_&&_.PB(D.bgIframeEl_,Y);D.bgEl_&&_.PB(D.bgEl_,Y);_.PB(D.getElement(),Y);_.PB(D.tabCatcherElement_,Y)};
_.u=xO.prototype;_.u.onShow=function(){this.dispatchEvent("show")};
_.u.onHide=function(){IOL(this,!1);this.dispatchEvent("hide")};
_.u.isVisible=function(){return this.visible_};
_.u.focus=function(){this.focusElement_()};
_.u.resizeBackground_=function(){this.bgIframeEl_&&_.PB(this.bgIframeEl_,!1);this.bgEl_&&_.PB(this.bgEl_,!1);var D=this.JSC$10110_dom_.JSC$9295_document_;var Y=_.GI(JZ(this.JSC$10110_dom_.JSC$9295_document_)||window);var R=Math.max(Y.width,Math.max(D.body.scrollWidth,D.documentElement.scrollWidth));D=Math.max(Y.height,Math.max(D.body.scrollHeight,D.documentElement.scrollHeight));this.bgIframeEl_&&(_.PB(this.bgIframeEl_,!0),_.RKL(this.bgIframeEl_,R,D));this.bgEl_&&(_.PB(this.bgEl_,!0),_.RKL(this.bgEl_,
R,D))};
_.u.reposition=function(){var D;if(_.YzU(this.getElement())=="fixed")var Y=D=0;else Y=V7(this.JSC$10110_dom_),D=Y.x,Y=Y.y;var R=t07(this.getElement());var Z=_.GI(JZ(this.JSC$10110_dom_.JSC$9295_document_)||window);D=Math.max(D+Z.width/2-R.width/2,0);Y=Math.max(Y+Z.height/2-R.height/2,0);LC(this.getElement(),D,Y);LC(this.tabCatcherElement_,D,Y)};
_.u.onFocus=function(D){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():D.target==this.tabCatcherElement_&&vP(this.focusElement_,0,this)};
_.u.focusElement_=function(){try{this.getElement().focus()}catch(D){}};
_.u.disposeInternal=function(){_.OG(this.popupShowTransition_);this.popupShowTransition_=null;_.OG(this.popupHideTransition_);this.popupHideTransition_=null;_.OG(this.bgShowTransition_);this.bgShowTransition_=null;_.OG(this.bgHideTransition_);this.bgHideTransition_=null;xO.superClass_.disposeInternal.call(this)};var lg=function(D,Y,R){xO.call(this,Y,R);this.JSC$10141_class_=D||"modal-dialog";this.buttons_=(new PF).addButton(FiV,!0).addButton(GFz,!1,!0)};
_.XN(lg,xO);_.u=lg.prototype;_.u.escapeToCancel_=!0;_.u.hasTitleCloseButton_=!0;_.u.modal_=!0;_.u.draggable_=!0;_.u.backgroundElementOpacity_=.5;_.u.title_="";_.u.JSC$10143_dragger_=null;_.u.JSC$10143_disposeOnHide_=!1;_.u.titleEl_=null;_.u.titleTextEl_=null;_.u.titleTextId_=null;_.u.titleCloseEl_=null;_.u.contentEl_=null;_.u.buttonEl_=null;_.u.getCssClass=function(){return this.JSC$10141_class_};
_.u.setTitle=function(D){this.title_=D;this.titleTextEl_&&_.kr(this.titleTextEl_,D)};
_.u.getTitle=function(){return this.title_};
_.u.getContent=function(){return""};
_.u.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var VhD=function(D){D.getElement()||D.render();return D.getElement()};
lg.prototype.getBackgroundElement=function(){this.getElement()||this.render();return lg.superClass_.getBackgroundElement.call(this)};
var fOE=function(D,Y){D.backgroundElementOpacity_=Y;D.getElement()&&(Y=D.getBackgroundElement())&&XuV(Y,D.backgroundElementOpacity_)};
lg.prototype.setDraggable=function(D){this.draggable_=D;e2U(this,D&&this.inDocument_)};
lg.prototype.handleDrag=function(){};
var e2U=function(D,Y){var R=TU(D.JSC$10141_class_+"-title-draggable").split(" ");D.getElement()&&(Y?PP(D.titleEl_,R):gh4(D.titleEl_,R));Y&&!D.JSC$10143_dragger_?(Y=new _.Lf(D.getElement(),D.titleEl_),D.JSC$10143_dragger_=Y,PP(D.titleEl_,R),_.yu(D.JSC$10143_dragger_,"start",D.setDraggerLimits_,!1,D),_.yu(D.JSC$10143_dragger_,"drag",D.handleDrag,!1,D)):!Y&&D.JSC$10143_dragger_&&(D.JSC$10143_dragger_.dispose(),D.JSC$10143_dragger_=null)};
_.u=lg.prototype;
_.u.JSC$10112_createDom=function(){lg.superClass_.JSC$10112_createDom.call(this);var D=this.getElement(),Y=this.JSC$10110_dom_;this.titleTextId_=this.getId();var R=this.getId()+".contentEl";this.titleEl_=Y.JSC$9297_createDom("DIV",this.JSC$10141_class_+"-title",this.titleTextEl_=Y.JSC$9297_createDom("SPAN",{className:this.JSC$10141_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=Y.JSC$9297_createDom("SPAN",this.JSC$10141_class_+"-title-close"));UUE(D,this.titleEl_,this.contentEl_=
Y.JSC$9297_createDom("DIV",{className:this.JSC$10141_class_+"-content",id:R}),this.buttonEl_=Y.JSC$9297_createDom("DIV",this.JSC$10141_class_+"-buttons"));gwD(this.titleTextEl_,"heading");gwD(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;hm(this.titleCloseEl_,"label","Close");gwD(D,"dialog");hm(D,"labelledby",this.titleTextId_||"");_.PB(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(D=this.buttons_,D.JSC$10144_element_=this.buttonEl_,D.render());_.PB(this.buttonEl_,!!this.buttons_);
fOE(this,this.backgroundElementOpacity_)};
_.u.decorateInternal=function(D){lg.superClass_.decorateInternal.call(this,D);D=this.getElement();var Y=this.JSC$10141_class_+"-content";this.contentEl_=wy(document,null,Y,D)[0];this.contentEl_||(this.contentEl_=this.JSC$10110_dom_.JSC$9297_createDom("DIV",Y),D.appendChild(this.contentEl_));Y=this.JSC$10141_class_+"-title";var R=this.JSC$10141_class_+"-title-text",Z=this.JSC$10141_class_+"-title-close";(this.titleEl_=wy(document,null,Y,D)[0])?(this.titleTextEl_=wy(document,null,R,this.titleEl_)[0],
this.titleCloseEl_=wy(document,null,Z,this.titleEl_)[0]):(this.titleEl_=this.JSC$10110_dom_.JSC$9297_createDom("DIV",Y),D.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=dUz(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.vj("SPAN",{className:R,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;hm(D,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10110_dom_.JSC$9297_createDom("SPAN",Z),this.titleEl_.appendChild(this.titleCloseEl_));_.PB(this.titleCloseEl_,this.hasTitleCloseButton_);Y=this.JSC$10141_class_+"-buttons";(this.buttonEl_=wy(document,null,Y,D)[0])?(this.buttons_=new PF(this.JSC$10110_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10110_dom_.JSC$9297_createDom("DIV",Y),D.appendChild(this.buttonEl_),this.buttons_&&(D=this.buttons_,D.JSC$10144_element_=this.buttonEl_,D.render()),_.PB(this.buttonEl_,
!!this.buttons_));fOE(this,this.backgroundElementOpacity_)};
_.u.enterDocument=function(){lg.superClass_.enterDocument.call(this);Kf(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Kf(this).listen(this.buttonEl_,"click",this.onButtonClick_);e2U(this,this.draggable_);Kf(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var D=this.getElement();gwD(D,"dialog");this.titleTextEl_.id!==""&&hm(D,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){D=this.JSC$10110_dom_;
var Y=this.getBackgroundElement();D.removeNode(this.bgIframeEl_);D.removeNode(Y)}this.isVisible()&&jEL(this,!1)}};
_.u.exitDocument=function(){this.isVisible()&&this.setVisible(!1);e2U(this,!1);lg.superClass_.exitDocument.call(this)};
_.u.setVisible=function(D){D!=this.isVisible()&&(this.inDocument_||this.render(),lg.superClass_.setVisible.call(this,D))};
_.u.onShow=function(){lg.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.u.onHide=function(){lg.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10143_disposeOnHide_&&this.dispose()};
_.u.setDraggerLimits_=function(){var D=this.JSC$10110_dom_.JSC$9295_document_,Y=_.GI(JZ(D)||window),R=Math.max(D.body.scrollWidth,Y.width);D=Math.max(D.body.scrollHeight,Y.height);var Z=t07(this.getElement());_.YzU(this.getElement())=="fixed"?this.JSC$10143_dragger_.limits=new Ur(0,0,Math.max(0,Y.width-Z.width),Math.max(0,Y.height-Z.height)):this.JSC$10143_dragger_.limits=new Ur(0,0,R-Z.width,D-Z.height)};
_.u.onTitleCloseClick_=function(){APE(this)};
var APE=function(D){if(D.hasTitleCloseButton_){var Y=D.buttons_,R=Y&&Y.cancelButton_;R?(Y=Y.get(R),D.dispatchEvent(new Q6(R,Y))&&D.setVisible(!1)):D.setVisible(!1)}},nQL=function(D){D.hasTitleCloseButton_=!1;
D.titleCloseEl_&&_.PB(D.titleCloseEl_,D.hasTitleCloseButton_)};
lg.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;lg.superClass_.disposeInternal.call(this)};
lg.prototype.onButtonClick_=function(D){a:{for(D=D.target;D!=null&&D!=this.buttonEl_;){if(D.tagName=="BUTTON")break a;D=D.parentNode}D=null}if(D&&!D.disabled){D=D.name;var Y=this.buttons_.get(D);this.dispatchEvent(new Q6(D,Y))&&this.setVisible(!1)}};
lg.prototype.onKey_=function(D){var Y=!1,R=!1,Z=this.buttons_,t=D.target;if(D.type=="keydown")if(this.escapeToCancel_&&D.keyCode==27){var X=Z&&Z.cancelButton_;t=t.tagName=="SELECT"&&!t.disabled;X&&!t?(R=!0,Y=Z.get(X),Y=this.dispatchEvent(new Q6(X,Y))):t||(Y=!0)}else{if(D.keyCode==9&&D.shiftKey&&t==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(F){}vP(this.resetBackwardTabWrap_,0,this)}}else if(D.keyCode==13){if(t.tagName=="BUTTON"&&!t.disabled)X=t.name;
else if(t==this.titleCloseEl_)APE(this);else if(Z){var M=Z.defaultButton_,W;if(W=M)a:{W=G_("BUTTON",Z.JSC$10144_element_);for(var z,I=0;z=W[I];I++)if(z.name==M||z.id==M){W=z;break a}W=null}t=(t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="A")&&!t.disabled;!W||W.disabled||t||(X=M)}X&&Z&&(R=!0,Y=this.dispatchEvent(new Q6(X,String(Z.get(X)))))}else t!=this.titleCloseEl_||D.keyCode!=32&&D.key!=" "||APE(this);if(Y||R)D.stopPropagation(),D.preventDefault();Y&&this.setVisible(!1)};
var Q6=function(D,Y){this.type="dialogselect";this.key=D;this.caption=Y};
_.XN(Q6,_.IF);var PF=function(D){ql.call(this);D||f0();this.cancelButton_=this.JSC$10144_element_=this.defaultButton_=null};
_.XN(PF,ql);_.u=PF.prototype;_.u.clear=function(){ql.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.u.set=function(D,Y,R,Z){ql.prototype.set.call(this,D,Y);R&&(this.defaultButton_=D);Z&&(this.cancelButton_=D);return this};
_.u.addButton=function(D,Y,R){return this.set(D.key,D.caption,Y,R)};
_.u.render=function(){if(this.JSC$10144_element_){_.iT(this.JSC$10144_element_,z2j);var D=f0(this.JSC$10144_element_);this.forEach(function(Y,R){Y=D.JSC$9297_createDom("BUTTON",{name:R},Y);R==this.defaultButton_&&(Y.className="goog-buttonset-default");this.JSC$10144_element_.appendChild(Y)},this)}};
_.u.decorate=function(D){if(D&&D.nodeType==1){this.JSC$10144_element_=D;D=G_("BUTTON",this.JSC$10144_element_);for(var Y,R,Z,t=0;Y=D[t];t++)if(R=Y.name||Y.id,Z=dUz(Y)||Y.value,R){var X=t==0;this.set(R,Z,X,Y.name=="cancel");X&&_.ZT(Y,"goog-buttonset-default")}}};
_.u.getElement=function(){return this.JSC$10144_element_};
var FiV={key:"ok",caption:"OK"},GFz={key:"cancel",caption:"Cancel"},rPb={key:"yes",caption:"Yes"},wgY={key:"no",caption:"No"},$sz={key:"save",caption:"Save"},vQz={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new PF).addButton(FiV,!0,!0),(new PF).addButton(FiV,!0).addButton(GFz,!1,!0),(new PF).addButton(rPb,!0).addButton(wgY,!1,!0),(new PF).addButton(rPb).addButton(wgY,!0).addButton(GFz,!1,!0),(new PF).addButton(vQz).addButton($sz).addButton(GFz,!0,!0));_.XN(Y1b,lg);_.XN(R2y,JE);var oQE=_.gY(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),bqD=_.gY(["//apis.google.com/js/rpc.js"]),Wio=_.tZ(oQE),CDr=_.tZ(bqD),thj=null;var UW=function(D,Y){_.eE.call(this);this.JSC$10153_element_=D;D=_.gR(this.JSC$10153_element_)?this.JSC$10153_element_:this.JSC$10153_element_?this.JSC$10153_element_.body:null;this.isRtl_=!!D&&_.uEL(D);this.listenKey_=_.yu(this.JSC$10153_element_,_.WQ?"DOMMouseScroll":"mousewheel",this,Y)};
_.XN(UW,_.eE);UW.prototype.handleEvent=function(D){var Y=0,R=0,Z=D.event_;Z.type=="mousewheel"?(D=yPV(-Z.wheelDelta),Z.wheelDeltaX!==void 0?(Y=yPV(-Z.wheelDeltaX),R=yPV(-Z.wheelDeltaY)):R=D):(D=Z.detail,D>100?D=3:D<-100&&(D=-3),Z.axis!==void 0&&Z.axis===Z.HORIZONTAL_AXIS?Y=D:R=D);typeof this.maxDeltaX_==="number"&&(Y=_.UR(Y,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(R=_.UR(R,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(Y=-Y);Y=new NR_(D,Z,Y,R);this.dispatchEvent(Y)};
var yPV=function(D){return _.zX&&(_.WNb||SOn)&&D%40!=0?D:D/40};
UW.prototype.disposeInternal=function(){UW.superClass_.disposeInternal.call(this);vL(this.listenKey_);this.listenKey_=null};
var NR_=function(D,Y,R,Z){_.FQ.call(this,Y);this.type="mousewheel";this.detail=D;this.deltaX=R;this.deltaY=Z};
_.XN(NR_,_.FQ);_.Ra=function(D){var Y="instance_";if(D.instance_&&D.hasOwnProperty(Y))return D.instance_;Y=new D;return D.instance_=Y};var Mhl;var lOY=_.gY(["https://about:blank"]),JPY=_.gY(['javascript:""']),kFL=_.gY(["about:blank"]);_.XN(QJ,Y1b);_.u=QJ.prototype;_.u.JSC$10161_url_="";_.u.JSC$10161_iframe_=null;_.u.iframeLoaded_=!1;_.u.loadedFired_=!1;_.u.callback_=function(){};
_.u.enterDocument=function(){QJ.superClass_.enterDocument.call(this);uGU(this.getBackgroundElement(),Kf(this))};
_.u.render=function(D){var Y=this;QJ.superClass_.render.call(this,D);this.useGapi_?kZV(this.iframeManager_,window).then(function(){return Us7(Y)}).then(null,function(){Y.callback_({action:"error"})}):KiV(this)};
var Us7=function(D){var Y=D.JSC$10110_dom_.JSC$9297_createDom("div",["picker-dialog-content","picker-frame"]);_.PB(Y,!1);D.getContentElement().appendChild(Y);return UEL(D.iframeManager_,Y,function(R){var Z=YN4(R["iframe-command"]);switch(Z.getCommand()){case 1:R=D.callback_;Z=_.tP(Z,DW,2);var t="";switch(Z.getStatus()){case 2:t="cancel";break;case 1:t="picked";break;case 3:t="error"}var X=_.Yh(Z,$0,2,_.R0(hC9));Z=X.length===0?{action:t}:jnz(X,t,_.tP(Z,OtU,7));R.call(D,Z);D.setVisible(!1);break;case 4:nQL(D);
D.callback_({action:"loaded"});break;case 7:case 8:R=D.callback_;a:{t=Z.getCommand();X=_.tP(Z,DW,2);switch(t){case 7:t="uploadScheduled";break;case 8:t="uploadStateChange";break;default:Z={};break a}Z=_.Yh(X,$0,2,_.R0(hC9));if(Z.length===0)Z={action:t};else{var M=_.tP(X,OtU,7);X=M&&_.Np(M,1);M=t$E(M);Z=uWz(Z,t,X,M)}}R.call(D,Z)}},D.JSC$10161_url_,D.targetId_,D.rpcToken_).then(function(R){D.JSC$10161_iframe_=R.getIframeEl();
h27(D);_.PB(D.JSC$10161_iframe_.parentElement,!0);_.ZT(D.getElement(),"picker-dialog");LiD(D);return R})},KiV=function(D){D.JSC$10161_iframe_=D.JSC$10110_dom_.JSC$9297_createDom("IFRAME",{id:D.targetId_,
name:D.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.x7(D.JSC$10161_iframe_,ms4(D));_.ZT(D.getElement(),"picker-dialog");D.getContentElement().appendChild(D.JSC$10161_iframe_);Kf(D).listen(D.JSC$10161_iframe_,"load",function(){return void h27(D)});
D.JSC$10161_iframe_.src=D.JSC$10161_url_;LiD(D)},Hqb=function(D){q1D(D,(0,_.nG)(function(Y){Y.setAuthToken(this.targetId_,this.rpcToken_)},D))},LiD=function(D){var Y=_.HB(_.qC(D.JSC$10161_url_),"title");
Y&&D.setTitle(Y)},ms4=function(D){return _.Try("Internet Explorer")>=7&&_.Xi(D.JSC$10161_url_,"https")?_.tZ(lOY):_.Cw?_.tZ(JPY):_.tZ(kFL)},h27=function(D){Hqb(D);
D.iframeLoaded_=!0;D.JSC$10161_iframe_.tabIndex=0;D.isVisible()&&D.focus()};
QJ.prototype.handleKeydown_=function(D){D.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),D.stopPropagation(),D.preventDefault())};
var q1D=function(D,Y){var R=D.JSC$10159_gadgetsDomHelper_;sEo(function(){Y(R.getWindow().gadgets.rpc)},R)};
QJ.prototype.setUrl=function(D){D=_.xh(new _.cO(D),"rpcService",this.targetId_);_.xh(D,"rpctoken",this.rpcToken_);_.tm(D,"rpctoken="+this.rpcToken_);_.cP(D,"https");this.JSC$10161_url_=D.toString();this.JSC$10161_iframe_&&(this.JSC$10161_iframe_.src=this.JSC$10161_url_)};
var xsb=function(D,Y){D.callback_=Y;q1D(D,(0,_.nG)(function(R){R.register(this.targetId_,(0,_.nG)(this.handlePickerAction_,this))},D))};
QJ.prototype.handlePickerAction_=function(D){var Y=D.action;Y=="loaded"&&(this.loadedFired_=!0,PDU(this,new DsU(this.isVisible())),QEL(this),nQL(this),Kf(this).unlisten(this.JSC$10110_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10161_iframe_.tabIndex=0);Y!="picked"&&Y!="cancel"||this.setVisible(!1);this.callback_(D)};
var QEL=function(D){D.JSC$10161_appId_&&PDU(D,new cTn(D.JSC$10161_appId_,window.location.protocol+"//"+window.location.host))};
QJ.prototype.setRelayUrl=function(D){q1D(this,(0,_.nG)(function(Y){Y.setRelayUrl(this.targetId_,D)},this))};
var PDU=function(D,Y){D.useGapi_&&qKL(Y,D.iframeManager_).then(null,function(){D.callback_({action:"error"})});
q1D(D,(0,_.nG)(function(R){R.call(this.targetId_,"picker",null,Y)},D))};
QJ.prototype.resizePicker_=function(){var D=JZ(this.JSC$10110_dom_.JSC$9295_document_)||window;if(_.HB(_.qC(this.JSC$10161_url_),"ignoreLimits")=="true")D=new _.FL(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.HB(_.qC(this.JSC$10161_url_),"shadeDialog")=="true"){var Y=VhD(this);Y=apU(Y);var R=_.GI(D);D=R.width-80;R=R.height-40;Y&&(D-=Y.left?Y.left:0,D-=Y.right?Y.right:0,R-=Y.top?Y.top:0,R-=Y.bottom?Y.bottom:0);D=new _.FL(D>0?D:0,R>0?R:0)}else(Y=this.preferredDialogWidth_)?(Y=Math.max(320,
Math.min(1051,Y)),(R=this.preferredDialogHeight_)||(R=_.GI(D).height*.85),R=Math.max(480,Math.min(650,R))):(Y=_.GI(D),R=Y.width*.618,R=R<Y.height?Math.round(Math.max(480,Math.min(650,R*.85))):Math.round(Math.max(480,Math.min(650,Y.height*.85))),Y=Math.round(R/.618)),D=_.GI(D),Y=Math.min(Y,Math.max(D.width,320)),R=Math.min(R,Math.max(D.height,480)),D=new _.FL(Y,R);_.RKL(this.getContentElement(),D);this.reposition()};
QJ.prototype.reposition=function(){if(_.HB(_.qC(this.JSC$10161_url_),"shadeDialog")=="true"){var D=t07(this.getElement()),Y=_.GI(this.JSC$10110_dom_.getWindow());D=Math.floor(Y.width/2-D.width/2);Y=VhD(this);if(Y=apU(Y)){var R=Y.left?Y.left:0;R+=Y.right?Y.right:0;D=Math.floor(D-R/2)}D=D>0?D:0;Y=V7(this.JSC$10110_dom_).y;LC(this.getElement(),D,Y)}else QJ.superClass_.reposition.call(this)};
QJ.prototype.setVisible=function(D){if(D!=this.isVisible()&&this.autoSizeDialog_){var Y=this.JSC$10110_dom_.getWindow();D?(this.resizePicker_(),Kf(this).listen(Y,"resize",this.resizePicker_),this.iframeLoaded_||Kf(this).listen(Y,"keydown",this.handleKeydown_)):(Kf(this).unlisten(Y,"resize",this.resizePicker_),this.iframeLoaded_||Kf(this).unlisten(Y,"keydown",this.handleKeydown_))}QJ.superClass_.setVisible.call(this,D);PDU(this,new DsU(D))};
QJ.prototype.focus=function(){QJ.superClass_.focus.call(this);if(this.JSC$10161_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10161_iframe_.focus()}catch(D){}};var U$=function(D,Y){Y=Y===void 0?QJ:Y;JE.call(this,D);this.pickerConstructor=Y;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(D=window.location.origin)||(D=window.location.protocol+"//"+window.location.host);D&&this.urlParamMap_.set("origin",D);this.postProcessors_=[]};
_.n(U$,R2y);U$.prototype.JSC$10166_disposeOnHide_=!1;
U$.prototype.build=function(){this.JSC$10067_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10067_appId_);this.getRelayUrl()||this.setRelayUrl(_.Rs(_.tm(_.Zs(_.qC(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var D=new this.pickerConstructor(BRU(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);D.JSC$10143_disposeOnHide_=this.JSC$10166_disposeOnHide_;
D.JSC$10161_appId_=this.JSC$10067_appId_;D.loadedFired_&&QEL(D);xsb(D,this.callback_);return D};
var pgz=function(D){D.urlParamMap_.set("multiselectEnabled","true");return D};
_.u=U$.prototype;_.u.getHeight=function(){return this.dialogHeight_};
_.u.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.u.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.u.getTitle=function(){return this.urlParamMap_.get("title")};
_.u.getWidth=function(){return this.dialogWidth_};
var EQY=function(D){D.JSC$10166_disposeOnHide_=void 0;return D};
U$.prototype.setRelayUrl=function(D){this.urlParamMap_.set("parent",D);return this};
var gQL=function(D,Y){D.urlParamMap_.set("selectButtonLabel",Y);return D};
U$.prototype.setSize=function(D,Y){this.dialogWidth_=D;this.dialogHeight_=Y;return this};
U$.prototype.setTitle=function(D){this.urlParamMap_.set("title",D);return this};
var BRU=function(D){D.postProcessors_.length&&D.urlParamMap_.set("pp",JSON.stringify(D.postProcessors_));D.urlParamMap_.set("nav",DEU(D.nav_));var Y=new _.cO(D.getBaseUrl());D.urlParamMap_.forEach(function(R,Z){_.xh(Y,Z,R)});
return Y};var OqU=function(D,Y){D.name!==void 0?(this.name=D.name,this.code=dsV[D.name]):(this.code=D=D.code,this.name=iqL(D));_.Yn.call(this,GU_("%s %s",this.name,Y))};
_.XN(OqU,_.Yn);var iqL=function(D){var Y=_.y7.findKey(dsV,function(R){return D==R});
if(Y===void 0)throw Error("hb`"+D);return Y},BF={},dsV=(BF.AbortError=3,BF.EncodingError=5,BF.InvalidModificationError=9,BF.InvalidStateError=7,BF.NotFoundError=1,BF.NotReadableError=4,BF.NoModificationAllowedError=6,BF.PathExistsError=12,BF.QuotaExceededError=10,BF.SecurityError=2,BF.SyntaxError=8,BF.TypeMismatchError=11,BF);var cPE=function(D,Y){_.IF.call(this,D.type,Y);this.event_=D};
_.XN(cPE,_.IF);var DbV=function(D,Y,R){R===void 0&&(R=D.size);return D.slice?D.slice(Y,R):null};var TRM=new WeakMap,S1j=function(D,Y){D=[D];for(var R=Y.length-1;R>=0;--R)D.push(typeof Y[R],Y[R]);return D.join("\v")};_.IOy(function(){if(!_.ZU.Blob)return!1;var D=new Uint8Array(100);try{var Y=new Blob([D])}catch(R){return!1}return Y.size!=100?!1:!0});
var Y97=_.IOy(function(){if(!_.ZU.Blob)return!1;var D=new Uint8Array(100);try{var Y=new Blob([D])}catch(R){return!1}return DbV(Y,0,1)===null?!1:!0});_.ZU.U3bHHf!=null||(_.ZU.U3bHHf=0);_.ZU.U3bHHf++;_.Rk4=new WeakMap;_.ZI4=new WeakMap;var GFl={};var EW=void 0;var fOn=Symbol("pb");var JPj=ig("WizInjectionContext_Dispatcher");var OU=Symbol("qb");var WD,FP;WD=function(){this.afterRenderCallbacks=null};
_.EFU=Symbol("rb");FP=function(D){this.props=D;this.__unmounted=!1};
FP.prototype.didPatch=function(){};
FP.prototype.didMount=function(){};
FP.prototype.didUnmount=function(){};
FP.prototype.didUpdate=function(){};_.oQn=ig("WizInjectionContext_RootElement");var yPU=ig("WizInjectionContext_AppContext"),bqb=ig("WizInjectionContext_ModelRootElement"),NRU=ig("WizInjectionContext_RendererData"),lOj=ig("WizInjectionContext_InjectingConstructor"),vQl=ig("WizInjectionContext_AsyncDeps"),kFy={};var q1b=!1;var QEy={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:sw$,enableLazyTsx:XYi,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:tWy,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var cB=Object.assign({},{attributes:{},handleError:function(D){throw D;}},QEy);var tqL=Symbol("vb"),ji=Symbol("wb"),kzS=Symbol("xb"),lLi=Symbol("yb"),HI5=lU(function(D){return De(D)&&tqL in D});var Oq9=Symbol("zb"),pf={},dsU=(pf[Oq9]=!0,pf.debugName="[component]",pf.getComponentStack=function(){for(var D=[],Y=this;Y;)cPU(Y)&&D.push(Y.debugName),Y=Y.parent;return D},pf.registerSignal=function(){},pf.registerEffect=function(){},pf);var Yd=null,Ze=!1,ZIo=1,XD=Symbol("Ab"),zk={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 ES=Symbol("Bb"),gQ=Symbol("Cb"),sU=Symbol("Db"),WyU=Object.assign({},zk,{value:ES,dirty:!0,error:null,equal:DbU,kind:"computed",producerMustRecompute:function(D){return D.value===ES||D.value===gQ},
producerRecomputeValue:function(D){if(D.value===gQ)throw Error("Z");var Y=D.value;D.value=gQ;var R=aL5(D),Z=!1;try{var t=D.computation();Re(null);Z=Y!==ES&&Y!==sU&&t!==sU&&D.equal(Y,t)}catch(X){t=sU,D.error=X}finally{CoS(D,R)}Z?D.value=Y:(D.value=t,D.version++)}});var joS=function(){throw Error();};var Fyi=null,S9U=Object.assign({},zk,{equal:DbU,value:void 0,kind:"signal"});Object.assign({},zk,{value:ES,dirty:!0,error:null,equal:DbU,kind:"linkedSignal",producerMustRecompute:function(D){return D.value===ES||D.value===gQ},
producerRecomputeValue:function(D){if(D.value===gQ)throw Error("Z");var Y=D.value;D.value=gQ;var R=aL5(D);try{var Z=D.source();var t=D.computation(Z,Y===ES||Y===sU?void 0:{source:D.sourceValue,value:Y});D.sourceValue=Z}catch(X){t=sU,D.error=X}finally{CoS(D,R)}Y!==ES&&t!==sU&&D.equal(Y,t)?D.value=Y:(D.value=t,D.version++)}});Object.assign({},zk,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(D){D.schedule!==null&&D.schedule(D.ref)},
hasRun:!1,cleanupFn:function(){}});var Vqj=Symbol("Eb"),Ma=Symbol("Fb");var C4=Array.isArray;var oN$;var soE={},ykr=vNM(Object.assign({},{consumerAllowSignalWrites:!0},soE)),Sj=vNM(Object.assign({},{consumerAllowSignalWrites:!0},soE));var Ie=0,FD=!1,dQ=function(){this.queue=new Set};
dQ.prototype.remove=function(D){this.queue.delete(D)};
dQ.prototype.clear=function(){this.queue.clear()};
var XmL=function(){dQ.apply(this,arguments)};
_.n(XmL,dQ);XmL.prototype.schedule=function(D){this.queue.add(D)};
XmL.prototype.flush=function(){if(this.queue.size){FD=!0;try{for(var D=_.a(this.queue),Y=D.next();!Y.done;Y=D.next()){var R=Y.value;this.queue.delete(R);try{R.run()}catch(Z){unD(Z)}}}finally{FD=!1}}};
var aL7=new XmL,iC=function(){dQ.apply(this,arguments)};
_.n(iC,dQ);var MqY=function(){iC.apply(this,arguments)};
_.n(MqY,iC);MqY.prototype.schedule=function(D){D.hasRun?this.queue.add(D):D.run()};
MqY.prototype.flush=function(){if(this.queue.size)if(cB.flushRenderEffectsDuringRender){var D=this.queue;this.queue=new Set;xbU(D)}else xbU(this.queue)};
var NIU=new MqY,Co1=function(){iC.apply(this,arguments)};
_.n(Co1,iC);Co1.prototype.schedule=function(D){var Y=this;return _.C(function(R){if(R.nextAddress==1)return D.hasRun?R.jumpTo(2):R.yield(Promise.resolve(),3);if(R.nextAddress!=2)return D.run(),R.return();Y.queue.add(D);_.V9(R)})};
Co1.prototype.flush=function(){var D=this;return _.C(function(Y){if(Y.nextAddress==1)return D.queue.size?Y.yield(Promise.resolve(),2):Y.return();xbU(D.queue);_.V9(Y)})};
var Ub5=new Co1,WyV=function(){iC.apply(this,arguments)};
_.n(WyV,iC);WyV.prototype.schedule=function(D){this.queue.add(D)};
WyV.prototype.flush=function(){this.queue.size&&xbU(this.queue)};
var Jkl=new WyV,mbj=[NIU,aL7,Jkl,Ub5],zkD=[NIU,Jkl,Ub5],hkn=[];Fyi=function(){q9U();for(var D=_.a(hkn),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y()};
var unD=tS;var f4=Symbol("Kb");var VE=null,BIU,pmi=null,EN9;var OS={},S9E=Object.assign({},zk,(OS[tqL]=!0,OS.effectType=ji,OS.isResettableContext=!0,OS.hasRun=!1,OS.effectFn=null,OS.consumerIsAlwaysLive=!0,OS.consumerAllowSignalWrites=!0,OS.consumerMarkedDirty=Kyr,OS.kind="effect",OS.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ze)throw Error("Lb");this.dirty=!1;if(!this.hasRun||tqM(this)){this.hasRun=!0;$sl(this);var D=_.ge(this),Y=aL5(this);pgl("effectRun",this.debugName);try{n4(this.effectFn,this.componentStack,this)}catch(R){throw cB.enableContextBasedComponentStacks&&
At(R),R;}finally{EQj("effectRun",this.debugName),CoS(this,Y),_.ge(D)}}}},OS.componentStack=void 0,OS.debugName="[effect]",OS[Symbol.dispose]=function(){if(tt(this))for(var D=this.producers;D!==void 0;)D=Mqj(D);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;D=_.a(zkD);for(var Y=D.next();!Y.done;Y=D.next())Y.value.remove(this);wgj(this)},OS));var iIM=Object.assign({},S9E,{effectType:kzS});var OIU=Symbol("Mb");var ckU=Object.assign({},S9E,{effectType:ji});var U75=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 RMU={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},Yw$=
{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}]}},ylS={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},sDS=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],tYS={"*":{async:1,dir:0,loading:2,target:3}};var TIb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,cF={},uoo=(cF[1]=null,cF[2]=function(D,Y){return Y instanceof mS?HZ(Y):lT.toString()},cF[3]=function(D,Y){return vZ(Y)?_.oJ(Y):TIb.test(String(Y))?String(Y):lT.toString()},cF[4]=function(D,Y){return Y instanceof ef?_.n$(Y):lT.toString()},cF[5]=function(D,Y){return String(Y)},cF[7]=null,cF[8]=null,cF[10]=null,cF);var cxj=Symbol("Pb");var tJ5=function(D){var Y=jo1,R=D,Z="",t="",X=1;D<0&&(D=-D);if(D===Infinity)D=(Infinity*Math.sign(R)).toString();else{for(var M=0;M<ILU.length;M++){var W=ILU[M];X=Y[W];if(D>=X||X<=1&&D>.1*X){Z=W;break}}Z?(Z+="B",t=" "):X=1;D=Math.round(R/X*10)/10+t+Z}return D},ILU="Y Z E P T G M K  m u n".split(" "),jo1={"":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};_.Fyb=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 tQ={};RegExp.prototype.hasOwnProperty("sticky");var hM$=function(D){D=String(D);for(var Y=function(Z,t,X){for(var M=Math.min(t.length-X,Z.length),W=0;W<M;W++){var z=t[X+W];if(Z[W]!==("A"<=z&&z<="Z"?z.toLowerCase():z))return!1}return!0},R=0;(R=D.indexOf("<",R))!=-1;){if(Y("\x3c/script",D,R)||Y("\x3c!--",D,R))return"zSoyz";
R+=1}return D};var kd={default:"__default"};var Swi=Object.prototype.hasOwnProperty;Cyo.prototype=Object.create(null);var Dq=IqU();var p4=null;var oMi=function(D){this.created=[];this.deleted=[];this.node=D};var bFU=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var D=this,Y=D;D;)Y=D,D=D.parentNode;return Y};var GyM=function(D,Y){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=D;this.key=Y;this.text=void 0};var qa=null,H_=null,L4=null,P_=null,nMy=[],ANl=fqy,QE=[],B_=[],OHy=function(D){return yNb(function(Y,R,Z){L4=H_=Y;H_=null;R(Z);eMr(null);H_=L4;L4=L4.parentNode;return Y},D)}(),iHS=function(D){return yNb(function(Y,R,Z){var t={nextSibling:Y};
H_=t;R(Z);L4&&eMr(Y.nextSibling);return t===H_?null:H_},D)}();var EU=[],lqM=0;var g2=new Cyo;var kC=new Cyo;var Gzb=IqU(),qwM=Gzb[kd.default],m7l=Gzb.style,KBj=["focusin","focusout"],Pyl="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var $AM=function(){},jRo=function(){},NZS=function(){},oFo=function(){};var iM=Symbol("Wb");var gM9,EMj=pyM;var ap=Symbol("Xb");var y5M=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(" ")),
b2S=new Set(["a","font","script","style","title"]);var XP={setUp:aa9,tearDown:aa9,log:aa9,logNodeRange:aa9,graft:function(D,Y){Y()}};var T6={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var jj=null,Ip=function(D,Y){FP.call(this,D);var R=this;this.functionComponent=Y;this.hooks=[];this.hookCounter=0;this.disposeEffects=$d(function(Z){R.effectContext=Z;_.w2(function(){VPb(R,R.el)})},cB.alwaysTrackContexts||!!EW)};
_.n(Ip,FP);Ip.prototype.render=function(D){var Y=jj;jj=this;this.hookCounter=0;var R=Re(Sj),Z=_.ge(this.effectContext);try{return pgl("render",this.componentName),this.functionComponent(D)}finally{EQj("render",this.componentName),_.ge(Z),Re(R),jj=Y}};
_.YF.Object.defineProperties(Ip.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Poi(this.functionComponent)}}});var la5=Symbol("kc"),r59=function(D,Y,R){this.afterRenderCallbacks=null;this.kind=D;this.props=Y;this.children=R};
_.n(r59,WD);r59.prototype.render=function(){var D=nF5(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var Y=_.a(this.afterRenderCallbacks),R=Y.next();!R.done;R=Y.next())R=R.value,D=R(D);return D};
r59.prototype.getChildren=function(){return this.children};var kK9=[];joS=function(D){throw Error("ob`"+D.debugName);};
(function(){var D=p4;p4=function(Y){D==null||D(Y);UAi(Y)}})();var VqY=new WeakMap,fLY=0;var ekL=void 0,AkY={},nNE=new WeakMap,$tj={getComponent:function(D){if(D.hasAttribute("ng-version"))return AkY;if(!D.__wizComponent)return null;D=D.__wizComponent;nNE.set(D.propsAndState,D);return D.propsAndState},
getDirectiveMetadata:function(D){if(D===AkY)return{framework:"wiz",name:"<Root>",props:{}};D=nNE.get(D);if(!D)throw Error("lc");return{framework:"wiz",name:D.name,props:Object.fromEntries(Object.keys(D.props).map(function(Y){return[Y,Y]}))}},
"\u0275setProfiler":function(D){var Y;(Y=ekL)==null||Y();ekL=LyS(function(){D(2)})},
getInjector:function(D){return D.__wizComponent},
"\u0275getSignalGraph":function(D){var Y;D=(Y=D.effects)!=null?Y:[];var R=KUl(D),Z=Array.from(R.keys());Y=[];D=[];for(var t=new Map,X=0;X<Z.length;X++)t.set(Z[X],X);R=_.a(R.entries());for(Z=R.next();!Z.done;Z=R.next()){X=_.a(Z.value);Z=X.next().value;var M=X.next().value;X=Z;Z=t.get(X);var W=VqY.get(X);W||(W=fLY.toString(),VqY.set(X,W),fLY++);var z=void 0,I=((z=X.debugName)!=null?z:"").replace(/@.+/,"");if(X.kind==="computed"){z=X.computation;var F=void 0;Y.push({label:I,value:X.value,kind:X.kind,
epoch:X.version,debuggableFn:(F=z.userFn)!=null?F:z,id:W})}else if(X.kind==="signal")Y.push({label:I,value:X.value,kind:X.kind,epoch:X.version,debuggableFn:X.debugFn,id:W});else if(X.kind==="effect"){F=void 0;z=(F=X.effectFn)!=null?F:void 0;var G=F=void 0;Y.push({label:I,kind:X.kind,epoch:X.version,debuggableFn:(G=(F=z)==null?void 0:F.userFn)!=null?G:z,id:W})}else Y.push({label:I,kind:X.kind,epoch:X.version,id:W});X=_.a(M);for(M=X.next();!M.done;M=X.next())D.push({consumer:Z,producer:t.get(M.value)})}return{nodes:Y,
edges:D}},
isSignal:function(D){return typeof D==="function"&&D[XD]!==void 0}};Object.assign({},S9E,{effectType:ji,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var D=this.elementRef;var Y;D.element!=null||(D.element=(Y=D.document.getElementById(D.value))!=null?Y:void 0);D=D.element;for(Y=this.attributes;Y;){var R=Y.signal();R!==Y.prevValue&&(Y.prevValue=R,Y.namespace===1?D[Y.name]=R:U75.has(Y.name)?Jt(D,Y.name,R?"":null):Jt(D,Y.name,R));Y=Y.next}}});Object.assign({},S9E,{effectType:ji,hasRun:!0});_.T.debugName="RlDudd";var hoU={nonNullableCondIsNull:function(){return Error("pc")}};var PlU=function(){this.map=new Map};
PlU.prototype.push=function(D,Y){var R=this.map;R.has(D)&&(this.multi||(this.multi=new Map),this.multi.set(Y,R.get(D)));R.set(D,Y)};
PlU.prototype.pop=function(D){var Y=this.map,R=Y.get(D),Z;R!==void 0&&((Z=this.multi)==null?0:Z.has(R))?(Y.set(D,this.multi.get(R)),this.multi.delete(R)):Y.delete(D);return R};_.G6.debugName="nsTGHd";_.VL.debugName="tbhMcf";_.fb.debugName="zyMFzb";_.ej.debugName="vI1rtf";_.dAi={OUT_OF_ORDER_HOOK_CALL:function(D){return Error("qc`"+D)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("rc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("sc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("tc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(D,Y){return Error("uc`"+((Y===void 0?0:Y)?"IDOM":"Reactive")+"`"+(AQ(D)?D.description:D))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(D,Y){return Error("vc`"+(AQ(D)?D.description:D)+"`"+Y)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(D){return Error("wc`"+(AQ(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED:function(D){return Error("xc`"+(AQ(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(D){return Error("yc`"+(AQ(D)?D.description:D))}};gM9=wOo;var teo=Symbol("zc");FUU({beforeRender:function(D){var Y=_.ge(D.effectContext);try{var R;((R=D.__syncEffects)==null?0:R.length)&&XC5(D.__syncEffects)}finally{_.ge(Y)}},
didPatch:function(D){var Y=_.ge(D.effectContext);try{var R;((R=D.__syncEffects)==null?0:R.length)&&XC5(D.__syncEffects)}finally{_.ge(Y)}},
didUnmount:function(D){var Y;((Y=D.hooks)==null?0:Y.length)&&D.hooks.forEach(sbr)}});var rkV,wmz,$b4;rkV=_.ZU.window;_.NJ=(rkV==null?void 0:(wmz=rkV.yt)==null?void 0:wmz.config_)||(rkV==null?void 0:($b4=rkV.ytcfg)==null?void 0:$b4.data_)||{};_.ix("yt.config_",_.NJ);var vNL={},CiU=[];_.AT=function(D){var Y=_.UN.apply(1,arguments);var R=Error.call(this,D);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.args=[].concat(_.oK(Y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(_.AT,Error);var So5=function(D,Y,R){this.actionName=D;this.optionalAction=Y===void 0?!1:Y;this.args=R===void 0?null:R;this.returnValue=[]};_.Dv=function(D){this.name=D};_.qb=new _.Dv("signalAction");var ebr=/^[\w.]*$/,jbn={q:!0,search_query:!0},TCr=String(S7U);var YS;YS=Symbol("Ac");_.R6=function(D){this.name=D};
_.R6.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var A49=function(D){this.key=D},v8o=function(D){this.deferredKey=D},r4n=function(){var D=this;
this.providers=new Map;this.JSC$10418_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(D.providers)}}};
r4n.prototype.addProvider=function(D){this.providers.set(D.provide,D);var Y=this.JSC$10418_deferred.get(D.provide);if(Y)try{Y.resolver(this.resolve(D.provide))}catch(R){Y.rejector(R)}};
r4n.prototype.resolve=function(D){return D instanceof v8o?oNU(this,D):D instanceof A49?bID(this,D.key,[],!0):bID(this,D,[])};
var oNU=function(D,Y){Y=Y.deferredKey;if(D.JSC$10418_deferred.has(Y))return D.JSC$10418_deferred.get(Y).promise;var R={};R.promise=new Promise(function(Z,t){R.resolver=Z;R.rejector=t});
D.JSC$10418_deferred.set(Y,R);return R.promise},bID=function(D,Y,R,Z){Z=Z===void 0?!1:Z;
if(R.indexOf(Y)>-1)throw Error("Bc`"+Y);if(D.cachedValues.has(Y))return D.cachedValues.get(Y);if(!D.providers.has(Y)){if(Z)return;throw Error("Cc`"+Y);}Z=D.providers.get(Y);R.push(Y);if(Z.useValue!==void 0)var t=Z.useValue;else if(Z.useFactory)t=Z[YS]?ykz(D,Z[YS],R):[],t=Z.useFactory.apply(Z,_.oK(t));else if(Z.useClass){t=Z.useClass;var X=t[YS]?ykz(D,t[YS],R):[];t=new (Function.prototype.bind.apply(t,[null].concat(_.oK(X))))}else throw Error("Dc`"+Y);R.pop();Z.skipCache||D.cachedValues.set(Y,t);return t},
ykz=function(D,Y,R){return Y?Y.map(function(Z){return Z instanceof A49?bID(D,Z.key,R,!0):bID(D,Z,R)}):[]};var n8n;var Pm=new _.R6("ENDPOINT_HANDLER_TOKEN");_.Qj=new _.Dv("urlEndpoint");var NIV=function(){this.data=[];this.cachedPackedInt52=-1};
NIV.prototype.set=function(D,Y){Y=Y===void 0?!0:Y;0<=D&&D<52&&Number.isInteger(D)&&this.data[D]!==Y&&(this.data[D]=Y,this.cachedPackedInt52=-1)};
NIV.prototype.get=function(D){return!!this.data[D]};
var lLb=function(D){D.cachedPackedInt52===-1&&(D.cachedPackedInt52=D.data.reduce(function(Y,R,Z){return Y+(R?Math.pow(2,Z):0)},0));
return D.cachedPackedInt52};var HXn=function(D){var Y=Jkz;D=D===void 0?_.mf("yt.ads.biscotti.lastId_")||"":D;var R=Object,Z=R.assign,t={};t.dt=ohE;t.flash="0";a:{try{var X=Y.JSC$10424_win_.top.location.href}catch(O){X=2;break a}X=X?X===Y.doc_.location.href?0:1:2}t=(t.frm=X,t);try{t.u_tz=-(new Date).getTimezoneOffset();try{var M=qZ.history.length}catch(O){M=0}t.u_his=M;var W;t.u_h=(W=qZ.screen)==null?void 0:W.height;var z;t.u_w=(z=qZ.screen)==null?void 0:z.width;var I;t.u_ah=(I=qZ.screen)==null?void 0:I.availHeight;var F;t.u_aw=
(F=qZ.screen)==null?void 0:F.availWidth;var G;t.u_cd=(G=qZ.screen)==null?void 0:G.colorDepth}catch(O){}M=Y.JSC$10424_win_;try{var V=M.screenX;var e=M.screenY}catch(O){}try{var r=M.outerWidth;var l=M.outerHeight}catch(O){}try{var U=M.innerWidth;var K=M.innerHeight}catch(O){}try{var H=M.screenLeft;var c=M.screenTop}catch(O){}try{U=M.innerWidth,K=M.innerHeight}catch(O){}try{var Q=M.screen.availWidth;var E=M.screen.availTop}catch(O){}V=[H,c,V,e,Q,E,r,l,U,K];e=Wm5(!1,Y.JSC$10424_win_.top);r={};var B=B===
void 0?_.ZU:B;l=new NIV;"SVGElement"in B&&"createElementNS"in B.document&&l.set(0);U=r1z();U["allow-top-navigation-by-user-activation"]&&l.set(1);U["allow-popups-to-escape-sandbox"]&&l.set(2);B.crypto&&B.crypto.subtle&&l.set(3);"TextDecoder"in B&&"TextEncoder"in B&&l.set(4);B=lLb(l);Y=(r.bc=B,r.bih=e.height,r.biw=e.width,r.brdim=V.join(),r.vis=Rti(Y.doc_),r.wgl=!!qZ.WebGLRenderingContext,r);R=Z.call(R,t,Y);R.ca_type="image";D&&(R.bid=D);return R},Jkz=new function(){var D=window.document;
this.JSC$10424_win_=window;this.doc_=D};
_.ix("yt.ads_.signals_.getAdSignalsString",function(D){return IiU(HXn(D))});_.sb();navigator.userAgent.indexOf(" (CrKey ");var lio="XMLHttpRequest"in _.ZU?function(){return new XMLHttpRequest}:null;var kz1="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Ub7=[].concat(_.oK(kz1),["client_dev_set_cookie"]);var q7U={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"},UXo="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(_.oK(kz1)),iX5=!1,hbU=_.xXl,E8U=mXU;var GPj=[{messageFn:function(D){return"Cannot read property '"+D.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(D){return"Cannot call '"+D.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(D){return D.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Kyz={messageWeights:[],callbackWeights:[{callback:YM9,weight:500},{callback:R1o,weight:500}]};var hkE=function(){this.callbackWeights=[];this.messageWeights=[]},Ly1,Fpi=function(){if(!Ly1){var D=Ly1=new hkE;
D.messageWeights.length=0;D.callbackWeights.length=0;i5i(D,Kyz)}return Ly1},i5i=function(D,Y){Y.messageWeights&&D.messageWeights.push.apply(D.messageWeights,Y.messageWeights);
Y.callbackWeights&&D.callbackWeights.push.apply(D.callbackWeights,Y.callbackWeights)};_.XN(_.j$,_.AE);_.j$.prototype.subscribe=function(D,Y,R){var Z=this.topics_[D];Z||(Z=this.topics_[D]=[]);var t=this.JSC$10448_key_;this.subscriptions_[t]=D;this.subscriptions_[t+1]=Y;this.subscriptions_[t+2]=R;this.JSC$10448_key_=t+3;Z.push(t);return t};
var mbY=function(D){var Y=Axb,R=!1,Z=Y.subscribe("handleError",function(t){R||(R=!0,this.unsubscribeByKey(Z),D.apply(void 0,arguments))},Y)};
_.j$.prototype.unsubscribe=function(D,Y,R){if(D=this.topics_[D]){var Z=this.subscriptions_;if(D=D.find(function(t){return Z[t+1]==Y&&Z[t+2]==R}))return this.unsubscribeByKey(D)}return!1};
_.j$.prototype.unsubscribeByKey=function(D){var Y=this.subscriptions_[D];if(Y){var R=this.topics_[Y];this.publishDepth_!=0?(this.pendingKeys_.push(D),this.subscriptions_[D+1]=function(){}):(R&&_.m5(R,D),delete this.subscriptions_[D],delete this.subscriptions_[D+1],delete this.subscriptions_[D+2])}return!!Y};
_.j$.prototype.publish=function(D,Y){var R=this.topics_[D];if(R){var Z=Array(arguments.length-1),t=arguments.length,X;for(X=1;X<t;X++)Z[X-1]=arguments[X];if(this.async_)for(X=0;X<R.length;X++)t=R[X],q9_(this.subscriptions_[t+1],this.subscriptions_[t+2],Z);else{this.publishDepth_++;try{for(X=0,t=R.length;X<t&&!this.isDisposed();X++){var M=R[X];this.subscriptions_[M+1].apply(this.subscriptions_[M+2],Z)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;R=this.pendingKeys_.pop();)this.unsubscribeByKey(R)}}return X!=
0}return!1};
var q9_=function(D,Y,R){_.r3(function(){D.apply(Y,R)})};
_.j$.prototype.clear=function(D){if(D){var Y=this.topics_[D];Y&&(Y.forEach(this.unsubscribeByKey,this),delete this.topics_[D])}else this.subscriptions_.length=0,this.topics_={}};
_.j$.prototype.getCount=function(D){if(D){var Y=this.topics_[D];return Y?Y.length:0}D=0;for(Y in this.topics_)D+=this.getCount(Y);return D};
_.j$.prototype.disposeInternal=function(){_.j$.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Axb=new _.j$;var uD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(uD,_.Y7);uD.prototype.getColdHashData=function(){return _.Np(this,3)};
uD.prototype.getHotHashData=function(){return _.Np(this,5)};
uD.prototype.setHotHashData=function(D){return _.ew(this,5,D)};var jQU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(jQU,_.Y7);var xW$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(xW$,_.Y7);_.u=xW$.prototype;_.u.getDeviceId=function(){return _.Np(this,6)};
_.u.getExperimentIds=function(D){var Y=_.Pu(this,9,_.c4,3,!0);Bri(Y,D);return Y[D]};
_.u.getPlayerType=function(){return _.lh(this,36)};
_.u.setHomeGroupInfo=function(D){return _.To(this,81,D)};
_.u.clearLocationPlayabilityToken=function(){return _.XG(this,89)};var jq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(jq,_.Y7);jq.prototype.setKey=function(D){return _.ew(this,1,D)};
jq.prototype.getValue=function(){return k0(this,2,QtU)};
var QtU=[2,3,4,5,6];var HI7=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(HI7,_.Y7);HI7.prototype.setTrackingParams=function(D){return _.XG(this,1,_.$E(D,!1))};var Pqi=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Pqi,_.Y7);var Gab=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Gab,_.Y7);Gab.prototype.getExperimentIds=function(D){var Y=_.Pu(this,5,_.SLU,3,!0);Bri(Y,D);return Y[D]};var Vj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Vj,_.Y7);Vj.prototype.getToken=function(){return _.jH(this,2)};
Vj.prototype.setToken=function(D){return _.ew(this,2,D)};var Fn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Fn,_.Y7);Fn.prototype.setSafetyMode=function(D){return _.s1(this,5,D)};var Tz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Tz,_.Y7);Tz.prototype.setClient=function(D){return _.To(this,1,D)};var FVb={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 IlU;_.J6=function(){var D=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.ZU.addEventListener("beforeinstallprompt",function(Y){Y.preventDefault();D.deferredInstallPrompt=Y});
_.ZU.addEventListener("appinstalled",function(){D.appInstalledEventFired=!0},{once:!0})};
IlU=function(){if(!_.ZU.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.ZU.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.ZU.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.ZU.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.ZU.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(D){return"WEB_DISPLAY_MODE_UNKNOWN"}};var esU=function(){this.syncHeaders=!0},A6U=function(D){var Y={},R=[];
"USER_SESSION_ID"in _.NJ&&R.push({key:"u",value:_.JQ("USER_SESSION_ID")});if(R=_.PPU(R))Y.Authorization=R,R=D=D==null?void 0:D.sessionIndex,R===void 0&&(R=Number(_.JQ("SESSION_INDEX",0)),R=isNaN(R)?0:R),_.f("voice_search_auth_header_removal")||(Y["X-Goog-AuthUser"]=R.toString()),"INNERTUBE_HOST_OVERRIDE"in _.NJ||(Y["X-Origin"]=window.location.origin),D===void 0&&"DELEGATED_SESSION_ID"in _.NJ&&(Y["X-Goog-PageId"]=_.JQ("DELEGATED_SESSION_ID"));return Y};var xbV={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Zv=_.mf("ytglobal.prefsUserPrefsPrefs_")||{},Pob;_.ix("ytglobal.prefsUserPrefsPrefs_",Zv);_.tH=function(){this.cookieName=_.JQ("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.JQ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var D=_.FW.get(this.cookieName,void 0);D&&this.parse(D)};
_.nX=function(){Pob||(Pob=new _.tH);return Pob};
_.tH.prototype.get=function(D,Y){QoY(D);BIV(D);D=Zv[D]!==void 0?Zv[D].toString():null;return D!=null?D:Y?Y:""};
_.tH.prototype.set=function(D,Y){QoY(D);BIV(D);if(Y==null)throw Error("Gc");Zv[D]=Y.toString()};
_.tH.prototype.getFlag=function(D){return!!((pmb("f"+(Math.floor(D/31)+1))||0)&1<<D%31)};
_.rC=function(D,Y,R){D="f"+(Math.floor(Y/31)+1);Y=1<<Y%31;var Z=pmb(D)||0;Z=R?Z|Y:Z&~Y;Z===0?delete Zv[D]:(R=Z.toString(16),Zv[D]=R.toString())};
_.tH.prototype.remove=function(D){QoY(D);BIV(D);delete Zv[D]};
_.tH.prototype.save=function(){var D=!0;_.f("web_secure_pref_cookie_killswitch")&&(D=!1);_.GZ(this.cookieName,this.dump(),63072E3,this.cookieDomain,D)};
_.tH.prototype.clear=function(){_.y7.clear(Zv)};
_.tH.prototype.dump=function(){var D=[],Y;for(Y in Zv)Zv.hasOwnProperty(Y)&&D.push(Y+"="+encodeURIComponent(String(Zv[Y])));return D.join("&")};
var BIV=function(D){if(/^f([1-9][0-9]*)$/.test(D))throw Error("Hc`"+D);},QoY=function(D){if(!/^\w+$/.test(D))throw Error("Ic`"+D);
},pmb=function(D){D=Zv[D]!==void 0?Zv[D].toString():null;
return D!=null&&/^[A-Fa-f0-9]+$/.test(D)?parseInt(D,16):null};
_.tH.prototype.parse=function(D){D=decodeURIComponent(D).split("&");for(var Y=0;Y<D.length;Y++){var R=D[Y].split("="),Z=R[0];(R=R[1])&&(Zv[Z]=R.toString())}};var WWr={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"},VIU={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},flU={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},SM5={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var zf;_.sF=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Ak=function(D,Y,R){return D.addJob(Y,0,R)};
_.sF.prototype.addLowPriorityJob=function(D,Y){return this.addJob(D,1,Y)};
_.NP=function(D,Y,R){return D.addJob(Y,2,R)};
_.$c=function(D,Y,R){return D.addJob(Y,3,R)};
_.S7=function(D,Y,R){return D.addJob(Y,4,R)};
zf=function(D){var Y=_.mf("yt.scheduler.instance.addImmediateJob");Y?Y(D):D()};
_.sF.prototype.debounce=function(D,Y,R){var Z=this,t=0,X=function(){t&&Z.cancelJob(t);t=Z.addJob(D,Y,R);Z.cancelDebouncedJobMap.set(X,t)};
return X};
_.sF.prototype.cancelThrottle=function(D){(D=this.cancelThrottledJobMap.get(D))&&D()};var Xl=function(){_.sF.apply(this,arguments)};
_.n(Xl,_.sF);_.b$=function(){Xl.instance||(Xl.instance=new Xl);return Xl.instance};
Xl.prototype.addJob=function(D,Y,R){R!==void 0&&Number.isNaN(Number(R))&&(R=void 0);var Z=_.mf("yt.scheduler.instance.addJob");return Z?Z(D,Y,R):R===void 0?(D(),NaN):_.ME(D,R||0)};
Xl.prototype.cancelJob=function(D){if(D===void 0||!Number.isNaN(Number(D))){var Y=_.mf("yt.scheduler.instance.cancelJob");Y?Y(D):_.Wr(D)}};
Xl.prototype.start=function(){var D=_.mf("yt.scheduler.instance.start");D&&D()};
Xl.prototype.pause=function(){var D=_.mf("yt.scheduler.instance.pause");D&&D()};
_.yc=_.b$();_.nv.prototype.set=function(D,Y){Y===void 0?this.mechanism.remove(D):this.mechanism.set(D,(0,_.bQ)(Y))};
_.nv.prototype.get=function(D){try{var Y=this.mechanism.get(D)}catch(R){return}if(Y!==null)try{return JSON.parse(Y)}catch(R){throw"Storage: Invalid value was encountered";}};
_.nv.prototype.remove=function(D){this.mechanism.remove(D)};var uR=function(D){this.mechanism=D};
_.XN(uR,_.nv);var ENU=function(D){this.data=D},gNz=function(D){return D===void 0||D instanceof ENU?D:new ENU(D)};
uR.prototype.set=function(D,Y){uR.superClass_.set.call(this,D,gNz(Y))};
uR.prototype.getWrapper=function(D){D=uR.superClass_.get.call(this,D);if(D===void 0||D instanceof Object)return D;throw"Storage: Invalid value was encountered";};
uR.prototype.get=function(D){if(D=this.getWrapper(D)){if(D=D.data,D===void 0)throw"Storage: Invalid value was encountered";}else D=void 0;return D};_.XN(rP,uR);_.db7=function(D){var Y=D.creation;D=D.expiration;return!!D&&D<_.sb()||!!Y&&Y>_.sb()};
rP.prototype.set=function(D,Y,R){if(Y=gNz(Y)){if(R){if(R<_.sb()){rP.prototype.remove.call(this,D);return}Y.expiration=R}Y.creation=_.sb()}rP.superClass_.set.call(this,D,Y)};
rP.prototype.getWrapper=function(D,Y){var R=rP.superClass_.getWrapper.call(this,D);if(R)if(!Y&&_.db7(R))rP.prototype.remove.call(this,D);else return R};var a6=function(){};
a6.prototype.next=function(){return MF};
var MF={done:!0,value:void 0},CK=function(D){return{value:D,done:!1}};
a6.prototype.__iterator__=function(){return this};
_.iIL=function(D){if(D instanceof a6)return D;if(typeof D.__iterator__=="function")return D.__iterator__(!1);if(_.xn(D)){var Y=0,R=new a6;R.next=function(){for(;;){if(Y>=D.length)return MF;if(Y in D)return CK(D[Y++]);Y++}};
return R}throw Error("Jc");};var OIV=function(D){if(D instanceof WA||D instanceof zS||D instanceof SQ)return D;if(typeof D.next=="function")return new WA(function(){return D});
if(typeof D[Symbol.iterator]=="function")return new WA(function(){return D[Symbol.iterator]()});
if(typeof D.__iterator__=="function")return new WA(function(){return D.__iterator__()});
throw Error("Kc");},WA=function(D){this.func_=D};
WA.prototype.__iterator__=function(){return new zS(this.func_())};
WA.prototype[Symbol.iterator]=function(){return new SQ(this.func_())};
WA.prototype.toEs6=function(){return new SQ(this.func_())};
var zS=function(D){this.JSC$10532_iter_=D};
_.n(zS,a6);zS.prototype.next=function(){return this.JSC$10532_iter_.next()};
zS.prototype[Symbol.iterator]=function(){return new SQ(this.JSC$10532_iter_)};
zS.prototype.toEs6=function(){return new SQ(this.JSC$10532_iter_)};
var SQ=function(D){WA.call(this,function(){return D});
this.JSC$10535_iter_=D};
_.n(SQ,WA);SQ.prototype.next=function(){return this.JSC$10535_iter_.next()};var ckV=function(){};var TS=function(){};
_.XN(TS,ckV);TS.prototype.getCount=function(){for(var D=0,Y=_.a(this),R=Y.next();!R.done;R=Y.next())D++;return D};
TS.prototype[Symbol.iterator]=function(){return OIV(this.__iterator__(!0)).toEs6()};
TS.prototype.clear=function(){var D=Array.from(this);D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())this.remove(Y.value)};_.XN(wP,TS);_.u=wP.prototype;_.u.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var D=this.storage_;if(D)try{D.setItem("__sak","1");D.removeItem("__sak");var Y=!0}catch(R){Y=R instanceof DOMException&&(R.name==="QuotaExceededError"||R.code===22||R.code===1014||R.name==="NS_ERROR_DOM_QUOTA_REACHED")&&D&&D.length!==0}else Y=!1;this.cachedIsStorageAvailable_=Y}return this.cachedIsStorageAvailable_};
_.u.set=function(D,Y){jQ(this);try{this.storage_.setItem(D,Y)}catch(R){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.u.get=function(D){jQ(this);D=this.storage_.getItem(D);if(typeof D!=="string"&&D!==null)throw"Storage mechanism: Invalid value was encountered";return D};
_.u.remove=function(D){jQ(this);this.storage_.removeItem(D)};
_.u.getCount=function(){jQ(this);return this.storage_.length};
_.u.__iterator__=function(D){jQ(this);var Y=0,R=this.storage_,Z=new a6;Z.next=function(){if(Y>=R.length)return MF;var t=R.key(Y++);if(D)return CK(t);t=R.getItem(t);if(typeof t!=="string")throw"Storage mechanism: Invalid value was encountered";return CK(t)};
return Z};
_.u.clear=function(){jQ(this);this.storage_.clear()};
_.u.key=function(D){jQ(this);return this.storage_.key(D)};
var jQ=function(D){if(D.storage_==null)throw Error("Lc");D.isAvailable()||tS(Error("Lc"))};_.XN(jki,wP);var D7U=function(){var D=new jki;return D.isAvailable()?D:null};_.XN(IQU,wP);_.XN($w,TS);$w.prototype.set=function(D,Y){this.mechanism_.set(this.JSC$10550_prefix_+D,Y)};
$w.prototype.get=function(D){return this.mechanism_.get(this.JSC$10550_prefix_+D)};
$w.prototype.remove=function(D){this.mechanism_.remove(this.JSC$10550_prefix_+D)};
$w.prototype.__iterator__=function(D){var Y=this.mechanism_[Symbol.iterator](),R=this,Z=new a6;Z.next=function(){var t=Y.next();if(t.done)return t;for(t=t.value;t.slice(0,R.JSC$10550_prefix_.length)!=R.JSC$10550_prefix_;){t=Y.next();if(t.done)return t;t=t.value}return CK(D?t.slice(R.JSC$10550_prefix_.length):R.mechanism_.get(t))};
return Z};_.U1=function(D){this.expiringStorage_=(D=_.FWo(D))?new rP(D):null;this.JSC$10554_domain_=document.domain||window.location.hostname};
_.U1.prototype.set=function(D,Y,R,Z){R=R||31104E3;this.remove(D);if(this.expiringStorage_)try{this.expiringStorage_.set(D,Y,Date.now()+R*1E3);return}catch(X){}var t="";if(Z)try{t=escape((0,_.bQ)(Y))}catch(X){return}else t=escape(Y);_.GZ(D,t,R,this.JSC$10554_domain_)};
_.U1.prototype.get=function(D,Y){var R=void 0,Z=!this.expiringStorage_;if(!Z)try{R=this.expiringStorage_.get(D)}catch(t){Z=!0}if(Z&&(R=_.FW.get(D,void 0))&&(R=unescape(R),Y))try{R=JSON.parse(R)}catch(t){this.remove(D),R=void 0}return R};
_.U1.prototype.remove=function(D){this.expiringStorage_&&this.expiringStorage_.remove(D);_.aQ5(D,"/",this.JSC$10554_domain_)};
_.U1.prototype.getCreationTime=function(D){return this.expiringStorage_&&(D=(this.expiringStorage_.getWrapper(D)||{}).creation,typeof D==="number")?D:null};var VCn=function(){var D;return function(){D||(D=new _.U1("ytidb"));return D}}();var e1l;_.on=[];e1l=!1;var mwr=Au5||nx$;var I6={},YwU=(I6.AUTH_INVALID="No user identifier specified.",I6.EXPLICIT_ABORT="Transaction was explicitly aborted.",I6.IDB_NOT_SUPPORTED="IndexedDB is not supported.",I6.MISSING_INDEX="Index not created.",I6.MISSING_OBJECT_STORES="Object stores not created.",I6.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",I6.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",I6.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",I6.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",I6.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",I6.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",I6.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",I6),Fl={},RME=(Fl.AUTH_INVALID="ERROR",Fl.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Fl.EXPLICIT_ABORT="IGNORED",
Fl.IDB_NOT_SUPPORTED="ERROR",Fl.MISSING_INDEX="WARNING",Fl.MISSING_OBJECT_STORES="ERROR",Fl.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Fl.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Fl.QUOTA_EXCEEDED="WARNING",Fl.QUOTA_MAYBE_EXCEEDED="WARNING",Fl.UNKNOWN_ABORT="WARNING",Fl.INCOMPATIBLE_DB_VERSION="WARNING",Fl),GS={},ZFL=(GS.AUTH_INVALID=!1,GS.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,GS.EXPLICIT_ABORT=!1,GS.IDB_NOT_SUPPORTED=!1,GS.MISSING_INDEX=!1,GS.MISSING_OBJECT_STORES=!1,GS.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,GS.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,GS.QUOTA_EXCEEDED=!1,GS.QUOTA_MAYBE_EXCEEDED=!0,GS.UNKNOWN_ABORT=!0,GS.INCOMPATIBLE_DB_VERSION=!1,GS),kw=function(D,Y,R,Z,t){Y=Y===void 0?{}:Y;R=R===void 0?YwU[D]:R;Z=Z===void 0?RME[D]:Z;t=t===void 0?ZFL[D]:t;_.AT.call(this,R,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:D},Y));this.type=D;this.message=R;this.level=Z;this.retryable=t;Object.setPrototypeOf(this,kw.prototype)};
_.n(kw,_.AT);var tY1=function(D,Y){kw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Y,foundObjectStores:D},YwU.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,tY1.prototype)};
_.n(tY1,kw);var wUj=function(D,Y){var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.index=D;this.objectStore=Y;Object.setPrototypeOf(this,wUj.prototype)};
_.n(wUj,Error);var $wU=["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 Lv=function(D){this.executor=D},hT=function(D){var Y=this;
this.state={status:"PENDING"};this.JSC$10582_onFulfilled=[];this.JSC$10582_onRejected=[];D=D.executor;var R=function(t){if(Y.state.status==="PENDING"){Y.state={status:"FULFILLED",value:t};t=_.a(Y.JSC$10582_onFulfilled);for(var X=t.next();!X.done;X=t.next())X=X.value,X()}},Z=function(t){if(Y.state.status==="PENDING"){Y.state={status:"REJECTED",
reason:t};t=_.a(Y.JSC$10582_onRejected);for(var X=t.next();!X.done;X=t.next())X=X.value,X()}};
try{D(R,Z)}catch(t){Z(t)}};
hT.all=function(D){return new hT(new Lv(function(Y,R){var Z=[],t=D.length;t===0&&Y(Z);for(var X={i$jscomp$463:0};X.i$jscomp$463<D.length;X={i$jscomp$463:X.i$jscomp$463},++X.i$jscomp$463)hT.resolve(D[X.i$jscomp$463]).then(function(M){return function(W){Z[M.i$jscomp$463]=W;t--;t===0&&Y(Z)}}(X)).catch(function(M){R(M)})}))};
hT.resolve=function(D){return new hT(new Lv(function(Y,R){D instanceof hT?D.then(Y,R):Y(D)}))};
hT.reject=function(D){return new hT(new Lv(function(Y,R){R(D)}))};
hT.prototype.then=function(D,Y){var R=this,Z=D!=null?D:bhU,t=Y!=null?Y:oxi;return new hT(new Lv(function(X,M){R.state.status==="PENDING"?(R.JSC$10582_onFulfilled.push(function(){sD1(R,R,Z,X,M)}),R.JSC$10582_onRejected.push(function(){XyD(R,R,t,X,M)})):R.state.status==="FULFILLED"?sD1(R,R,Z,X,M):R.state.status==="REJECTED"&&XyD(R,R,t,X,M)}))};
hT.prototype.catch=function(D){return this.then(void 0,D)};
var sD1=function(D,Y,R,Z,t){try{if(D.state.status!=="FULFILLED")throw Error("Oc");var X=R(D.state.value);X instanceof hT?uo4(D,Y,X,Z,t):Z(X)}catch(M){t(M)}},XyD=function(D,Y,R,Z,t){try{if(D.state.status!=="REJECTED")throw Error("Pc");
var X=R(D.state.reason);X instanceof hT?uo4(D,Y,X,Z,t):Z(X)}catch(M){t(M)}},uo4=function(D,Y,R,Z,t){Y===R?t(new TypeError("Qc")):R.then(function(X){X instanceof hT?uo4(D,Y,X,Z,t):Z(X)},function(X){t(X)})};var VN;VN=window;_.DO=VN.ytcsi&&VN.ytcsi.now?VN.ytcsi.now:VN.performance&&VN.performance.timing&&VN.performance.now&&VN.performance.timing.navigationStart?function(){return VN.performance.timing.navigationStart+VN.performance.now()}:function(){return(new Date).getTime()};var qE=function(D,Y){this.JSC$10594_wrapped=D;this.options=Y;this.transactionCount=0;this.startedMs=Math.round((0,_.DO)());this.hasUnknownAbortedTransaction=!1},fK=function(){return _.f("idb_immediate_commit")},Cy4,WBV,nK,Tu_;
qE.prototype.add=function(D,Y,R){return _.Br(this,[D],{mode:"readwrite",enableRetries:!0,commit:fK()},function(Z){return Z.objectStore(D).add(Y,R)})};
qE.prototype.clear=function(D){return _.Br(this,[D],{mode:"readwrite",enableRetries:!0},function(Y){return Y.objectStore(D).clear()})};
qE.prototype.close=function(){this.JSC$10594_wrapped.close();var D;((D=this.options)==null?0:D.closed)&&this.options.closed()};
qE.prototype.count=function(D,Y){return _.Br(this,[D],{mode:"readonly",enableRetries:!0,commit:fK()},function(R){return R.objectStore(D).count(Y)})};
var hP=function(D,Y,R){D=D.JSC$10594_wrapped.createObjectStore(Y,R);return new eQ(D)};
qE.prototype.delete=function(D,Y){return _.Br(this,[D],{mode:"readwrite",enableRetries:!0,commit:fK()&&!(Y instanceof IDBKeyRange)},function(R){return R.objectStore(D).delete(Y)})};
var aqE=function(D,Y){return _.Br(D,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(R){return R.objectStore("ResponseStore").index("byInterface").delete(Y)})};
qE.prototype.get=function(D,Y){return _.Br(this,[D],{mode:"readonly",enableRetries:!0,commit:fK()},function(R){return R.objectStore(D).get(Y)})};
qE.prototype.getAll=function(D,Y,R){return _.Br(this,[D],{mode:"readonly",enableRetries:!0},function(Z){return Z.objectStore(D).getAll(Y,R)})};
qE.prototype.put=function(D,Y,R){return _.Br(this,[D],{mode:"readwrite",enableRetries:!0,commit:fK()},function(Z){return Z.objectStore(D).put(Y,R)})};
qE.prototype.objectStoreNames=function(){return Array.from(this.JSC$10594_wrapped.objectStoreNames)};
_.Br=function(D,Y,R,Z){var t,X,M,W,z,I,F,G,V,e,r,l;return _.C(function(U){switch(U.nextAddress){case 1:var K={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof R==="string"?K.mode=R:Object.assign(K,R);t=K;D.transactionCount++;X=t.enableRetries?3:1;M=0;case 2:if(W){U.jumpTo(4);break}M++;z=Math.round((0,_.DO)());_.SX(U,5);I=D.JSC$10594_wrapped.transaction(Y,t.mode);K=U.yield;var H=!!t.commit;var c=new Hr(I);H=MYY(c,Z,H);return K.call(U,H,7);case 7:return F=U.yieldResult,G=Math.round((0,_.DO)()),
Cy4(D,z,G,M,void 0,Y.join(),t),U.return(F);case 5:V=_.Gl(U);e=Math.round((0,_.DO)());r=vx9(V,D.JSC$10594_wrapped.name,Y.join(),D.JSC$10594_wrapped.version);if((l=r instanceof kw&&!r.retryable)||M>=X)Cy4(D,z,e,M,r,Y.join(),t),W=r;U.jumpTo(2);break;case 4:return U.return(Promise.reject(W))}})};
Cy4=function(D,Y,R,Z,t,X,M){Y=R-Y;t?(t instanceof kw&&(t.type==="QUOTA_EXCEEDED"||t.type==="QUOTA_MAYBE_EXCEEDED")&&yf("QUOTA_EXCEEDED",{dbName:lx(D.JSC$10594_wrapped.name),objectStoreNames:X,transactionCount:D.transactionCount,transactionMode:M.mode}),t instanceof kw&&t.type==="UNKNOWN_ABORT"&&(R-=D.startedMs,R<0&&R>=2147483648&&(R=0),yf("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:X,transactionDuration:Y,transactionCount:D.transactionCount,dbDuration:R}),D.hasUnknownAbortedTransaction=!0),
WBV(D,!1,Z,X,Y,M.tag),_.bx(t)):WBV(D,!0,Z,X,Y,M.tag)};
WBV=function(D,Y,R,Z,t,X){yf("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:D.hasUnknownAbortedTransaction,duration:t,isSuccessful:Y,tryCount:R,tag:X===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":X})};
qE.prototype.getVersion=function(){return this.JSC$10594_wrapped.version};
qE.prototype.getName=function(){return this.JSC$10594_wrapped.name};
var eQ=function(D){this.JSC$10609_wrapped=D};
eQ.prototype.add=function(D,Y){return mz(this.JSC$10609_wrapped.add(D,Y))};
eQ.prototype.autoIncrement=function(){return this.JSC$10609_wrapped.autoIncrement};
eQ.prototype.clear=function(){return mz(this.JSC$10609_wrapped.clear()).then(function(){})};
var Lq=function(D,Y,R){D.JSC$10609_wrapped.createIndex(Y,R,{unique:!1})};
eQ.prototype.count=function(D){return mz(this.JSC$10609_wrapped.count(D))};
var zME=function(D,Y){return EK(D,{query:Y},function(R){return R.delete().then(function(){return R.continue()})}).then(function(){})};
eQ.prototype.delete=function(D){return D instanceof IDBKeyRange?zME(this,D):mz(this.JSC$10609_wrapped.delete(D))};
eQ.prototype.get=function(D){return mz(this.JSC$10609_wrapped.get(D))};
eQ.prototype.getAll=function(D,Y){return"getAll"in IDBObjectStore.prototype?mz(this.JSC$10609_wrapped.getAll(D,Y)):Swb(this,D,Y)};
var Swb=function(D,Y,R){var Z=[];return EK(D,{query:Y},function(t){if(!(R!==void 0&&Z.length>=R))return Z.push(t.getValue()),t.continue()}).then(function(){return Z})};
eQ.prototype.index=function(D){try{return new AH(this.JSC$10609_wrapped.index(D))}catch(Y){if(Y instanceof Error&&Y.name==="NotFoundError")throw new wUj(D,this.JSC$10609_wrapped.name);throw Y;}};
eQ.prototype.getName=function(){return this.JSC$10609_wrapped.name};
eQ.prototype.keyPath=function(){return this.JSC$10609_wrapped.keyPath};
eQ.prototype.put=function(D,Y){return mz(this.JSC$10609_wrapped.put(D,Y))};
var EK=function(D,Y,R){D=D.JSC$10609_wrapped.openCursor(Y.query,Y.direction);return Tu_(D).then(function(Z){return lQi(Z,R)})},Hr=function(D){var Y=this;
this.JSC$10617_wrapped=D;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(R,Z){Y.JSC$10617_wrapped.addEventListener("complete",function(){R()});
Y.JSC$10617_wrapped.addEventListener("error",function(t){t.currentTarget===t.target&&Z(Y.JSC$10617_wrapped.error)});
Y.JSC$10617_wrapped.addEventListener("abort",function(){var t=Y.JSC$10617_wrapped.error;if(t)Z(t);else if(!Y.aborted){t=kw;for(var X=Y.JSC$10617_wrapped.objectStoreNames,M=[],W=0;W<X.length;W++){var z=X.item(W);if(z===null)throw Error("Rc");M.push(z)}t=new t("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:Y.JSC$10617_wrapped.db.name,mode:Y.JSC$10617_wrapped.mode});Z(t)}})})},MYY=function(D,Y,R){var Z=new Promise(function(t,X){try{var M=Y(D);
R&&D.commit();M.then(function(W){t(W)}).catch(X)}catch(W){X(W),D.abort()}});
return Promise.all([Z,D.done]).then(function(t){return _.a(t).next().value})};
Hr.prototype.abort=function(){this.JSC$10617_wrapped.abort();this.aborted=!0;throw new kw("EXPLICIT_ABORT");};
Hr.prototype.commit=function(){if(!this.aborted){var D,Y;(Y=(D=this.JSC$10617_wrapped).commit)==null||Y.call(D)}};
Hr.prototype.objectStore=function(D){D=this.JSC$10617_wrapped.objectStore(D);var Y=this.objectStoreCache.get(D);Y||(Y=new eQ(D),this.objectStoreCache.set(D,Y));return Y};
var AH=function(D){this.JSC$10619_wrapped=D};
AH.prototype.count=function(D){return mz(this.JSC$10619_wrapped.count(D))};
AH.prototype.delete=function(D){return _.YQ(this,{query:D},function(Y){return Y.delete().then(function(){return Y.continue()})})};
AH.prototype.get=function(D){return mz(this.JSC$10619_wrapped.get(D))};
AH.prototype.getAll=function(D,Y){return"getAll"in IDBIndex.prototype?mz(this.JSC$10619_wrapped.getAll(D,Y)):jDE(this,D,Y)};
var jDE=function(D,Y,R){var Z=[];return _.YQ(D,{query:Y},function(t){if(!(R!==void 0&&Z.length>=R))return Z.push(t.getValue()),t.continue()}).then(function(){return Z})};
AH.prototype.keyPath=function(){return this.JSC$10619_wrapped.keyPath};
AH.prototype.unique=function(){return this.JSC$10619_wrapped.unique};
_.YQ=function(D,Y,R){D=D.JSC$10619_wrapped.openCursor(Y.query===void 0?null:Y.query,Y.direction===void 0?"next":Y.direction);return Tu_(D).then(function(Z){return lQi(Z,R)})};
nK=function(D,Y){this.request=D;this.cursor=Y};
Tu_=function(D){return mz(D).then(function(Y){return Y?new nK(D,Y):null})};
nK.prototype.continue=function(D){this.cursor.continue(D);return Tu_(this.request)};
nK.prototype.delete=function(){return mz(this.cursor.delete()).then(function(){})};
nK.prototype.getValue=function(){return this.cursor.value};
nK.prototype.update=function(D){return mz(this.cursor.update(D))};var rk=function(D,Y){this.name=D;this.options=Y;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},IqV;
rk.prototype.openDb=function(D,Y,R){R=R===void 0?{}:R;return kLl(D,Y,R)};
rk.prototype.delete=function(D){D=D===void 0?{}:D;return _.Pr(this.name,D)};
IqV=function(D,Y){return new kw("INCOMPATIBLE_DB_VERSION",{dbName:D.name,oldVersion:D.options.version,newVersion:Y})};
_.Qf=function(D,Y){if(!Y)throw Kv("openWithToken",lx(D.name));return D.open()};
rk.prototype.open=function(){var D=this;if(!this.isCompatible)throw IqV(this);if(this.connectionPromise)return this.connectionPromise;var Y,R=function(){D.connectionPromise===Y&&(D.connectionPromise=void 0)},Z={blocking:function(X){X.close()},
closed:R,terminated:R,upgrade:this.options.upgrade},t=function(){var X,M,W,z,I,F,G,V,e,r;return _.C(function(l){switch(l.nextAddress){case 1:return M=(X=Error().stack)!=null?X:"",_.SX(l,2),l.yield(D.openDb(D.name,D.options.version,Z),4);case 4:for(var U=W=l.yieldResult,K=D.options,H=[],c=_.a(Object.keys(K.objectStores)),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var E=K.objectStores[Q],B=E.removedAtVersion===void 0?Number.MAX_VALUE:E.removedAtVersion;!(U.JSC$10594_wrapped.version>=E.addedAtVersion)||
U.JSC$10594_wrapped.version>=B||U.JSC$10594_wrapped.objectStoreNames.contains(Q)||H.push(Q)}z=H;if(z.length===0){l.jumpTo(5);break}I=Object.keys(D.options.objectStores);F=W.objectStoreNames();if(D.timesReopenedToFixMissingObjectStore<_.ZH("ytidb_reopen_db_retries",0))return D.timesReopenedToFixMissingObjectStore++,W.close(),_.bx(new kw("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:I,foundObjectStores:F})),l.return(t());if(!(D.timesDeletedToFixMissingObjectStore<_.ZH("ytidb_remake_db_retries",
1))){l.jumpTo(6);break}D.timesDeletedToFixMissingObjectStore++;return l.yield(D.delete(),7);case 7:return _.bx(new kw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:I,foundObjectStores:F})),l.return(t());case 6:throw new tY1(F,I);case 5:return l.return(W);case 2:G=_.Gl(l);if(G instanceof DOMException?G.name!=="VersionError":"DOMError"in self&&G instanceof DOMError?G.name!=="VersionError":!(G instanceof Object&&"message"in G)||G.message!=="An attempt was made to open a database using a lower version than the existing version."){l.jumpTo(8);
break}return l.yield(D.openDb(D.name,void 0,Object.assign({},Z,{upgrade:void 0})),9);case 9:V=l.yieldResult;e=V.getVersion();if(D.options.version!==void 0&&e>D.options.version+1)throw V.close(),D.isCompatible=!1,IqV(D,e);return l.return(V);case 8:throw R(),G instanceof Error&&!_.f("ytidb_async_stack_killswitch")&&(G.stack=G.stack+"\n"+M.substring(M.indexOf("\n")+1)),vx9(G,D.name,"",(r=D.options.version)!=null?r:-1);}})};
return this.connectionPromise=Y=t()};var UwU=new rk("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(D,Y){Y(1)&&hP(D,"databases",{keyPath:"actualName"})}});var xwn,qMj=new function(){}(new function(){});new _.Ta;var FBD=function(D,Y){rk.call(this,D,Y);this.options=Y;NE(D)};
_.n(FBD,rk);var cu9=function(D,Y){var R;return function(){R||(R=new FBD(D,Y));return R}};
FBD.prototype.openDb=function(D,Y,R){R=R===void 0?{}:R;return(this.options.shared?ExS:pUU)(D,Y,Object.assign({},R))};
FBD.prototype.delete=function(D){D=D===void 0?{}:D;return(this.options.shared?Ohr:gxM)(this.name,D)};var GyL={},D3U=cr("ytGcfConfig",{objectStores:(GyL.coldConfigStore={addedAtVersion:1},GyL.hotConfigStore={addedAtVersion:1},GyL),shared:!1,upgrade:function(D,Y){Y(1)&&(Lq(hP(D,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Lq(hP(D,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var VYU=function(){_.AE.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var D=_.mf("yt.gcf.config.hotUpdateCallbacks");D?(this.localHotConfigJobQueue=[].concat(_.oK(D)),this.sharedHotConfigJobQueue=D):(this.sharedHotConfigJobQueue=[],_.ix("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.n(VYU,_.AE);VYU.prototype.disposeInternal=function(){for(var D=_.a(this.localHotConfigJobQueue),Y=D.next();!Y.done;Y=D.next()){var R=this.sharedHotConfigJobQueue;Y=R.indexOf(Y.value);Y>=0&&R.splice(Y,1)}this.localHotConfigJobQueue.length=0;_.AE.prototype.disposeInternal.call(this)};var nI=function(){var D=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new VYU;this.TEST_ONLY={initializeConfigDb:function(){D.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return D.coldGlobalConfigGroup},
setHotConfigGroup:function(Y){fqL(D,Y)},
setHotHashData:function(Y){D.setHotHashData(Y)},
setColdConfigGroup:function(Y){eMz(D,Y)},
getColdHashData:function(){return D.coldHashData},
getHotHashData:function(){return D.hotHashData},
getHotConfigGroup:function(){return D.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return ANz()},
getExportedHotConfigGroup:function(){return wk()},
getExportedColdHashData:function(){return _.mf("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.mf("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){nML(D)},
resetInstance:function(){D.setHotHashData(void 0);rNU(D);delete nI.instance},
setDebounceTimer:function(Y){D.debounceTimer=Y},
getDebounceTimer:function(){return D.debounceTimer}}},wyb=function(){if(!nI.instance){var D=new nI;
nI.instance=D}return nI.instance},oMb=function(D){var Y;
_.C(function(R){if(R.nextAddress==1)return _.f("start_client_gcf")||_.f("delete_gcf_config_db")?_.f("start_client_gcf")?R.yield(_.OK(),3):R.jumpTo(2):R.return();R.nextAddress!=2&&((Y=R.yieldResult)&&_.e$()&&!_.f("delete_gcf_config_db")?(D.isConfigDbInitialized=!0,nML(D)):($7U(D),vM7(D)));return _.f("delete_gcf_config_db")?R.yield(XGb(),0):R.jumpTo(0)})},rI=function(){var D;
return(D=wk())!=null?D:_.JQ("RAW_HOT_CONFIG_GROUP")},bFV=function(D){var Y,R,Z,t,X,M;
return _.C(function(W){switch(W.nextAddress){case 1:if(D.hotGlobalConfigGroup)return W.return(wk());if(!D.isConfigDbInitialized)return Y=Kv("getHotConfig IDB not initialized"),_.qJ(Y),W.return(Promise.reject(Y));R=dP();Z=_.JQ("TIME_CREATED_MS");if(!R){t=Kv("getHotConfig token error");_.qJ(t);W.jumpTo(2);break}return W.yield(sQj(R),3);case 3:if((X=W.yieldResult)&&X.timestamp>Z)return fqL(D,X.config),D.setHotHashData(X.hashData),W.return(wk());case 2:vM7(D);if(!(R&&D.hotGlobalConfigGroup&&D.hotHashData)){W.jumpTo(4);
break}return W.yield(Rs9(D.hotGlobalConfigGroup,D.hotHashData,R,Z),4);case 4:return D.hotGlobalConfigGroup?W.return(wk()):(M=new _.AT("Config not available in ytConfig"),_.qJ(M),W.return(Promise.reject(M)))}})},Nuz=function(D){var Y,R,Z,t,X,M;
return _.C(function(W){switch(W.nextAddress){case 1:if(D.coldGlobalConfigGroup)return W.return(ANz());if(!D.isConfigDbInitialized)return Y=Kv("getColdConfig IDB not initialized"),_.qJ(Y),W.return(Promise.reject(Y));R=dP();Z=_.JQ("TIME_CREATED_MS");if(!R){t=Kv("getColdConfig");_.qJ(t);W.jumpTo(2);break}return W.yield(tIM(R),3);case 3:if((X=W.yieldResult)&&X.timestamp>Z)return eMz(D,X.config),yND(D,X.configData),rNU(D,X.hashData),W.return(ANz());case 2:$7U(D);if(!(R&&D.coldGlobalConfigGroup&&D.coldHashData&&
D.configData)){W.jumpTo(4);break}return W.yield(Zn$(D.coldGlobalConfigGroup,D.coldHashData,D.configData,R,Z),4);case 4:return D.coldGlobalConfigGroup?W.return(ANz()):(M=new _.AT("Config not available in ytConfig"),_.qJ(M),W.return(Promise.reject(M)))}})},nML=function(D){if(!D.hotGlobalConfigGroup||!D.coldGlobalConfigGroup){if(!dP()){var Y=Kv("scheduleGetConfigs");
_.qJ(Y)}D.initJob||(D.initJob=_.yc.addLowPriorityJob(function(){return _.C(function(R){switch(R.nextAddress){case 1:return _.SX(R,2),R.yield(bFV(D),4);case 4:_.xw(R,3);break;case 2:_.Gl(R);case 3:return _.SX(R,5),R.yield(Nuz(D),7);case 7:_.xw(R,6);break;case 5:_.Gl(R);case 6:D.initJob&&(D.initJob=0),_.V9(R)}})},100))}},RFj=function(D,Y,R){var Z,t,X;
return _.C(function(M){switch(M.nextAddress){case 1:if(!_.f("start_client_gcf")){M.jumpTo(0);break}R&&fqL(D,R);D.setHotHashData(Y);Z=dP();if(!Z){M.jumpTo(3);break}if(R){M.jumpTo(4);break}return M.yield(sQj(Z),5);case 5:t=M.yieldResult,R=(X=t)==null?void 0:X.config;case 4:return M.yield(Rs9(R,Y,Z),3);case 3:if(R)for(var W=R,z=_.a(D.configUpdateService.sharedHotConfigJobQueue),I=z.next();!I.done;I=z.next())I=I.value,I(W);_.V9(M)}})},ZHU=function(D,Y,R){var Z,t,X,M;
return _.C(function(W){if(W.nextAddress==1){if(!_.f("start_client_gcf"))return W.jumpTo(0);rNU(D,Y);return(Z=dP())?R?W.jumpTo(4):W.yield(tIM(Z),5):W.jumpTo(0)}W.nextAddress!=4&&(t=W.yieldResult,R=(X=t)==null?void 0:X.config);if(!R)return W.jumpTo(0);M=R.configData;return W.yield(Zn$(R,Y,M,Z),0)})},r6y=function(){var D=wyb(),Y=(0,_.DO)()-D.debounceTimer;
if(!(D.debounceTimer!==0&&Y<_.ZH("send_config_hash_timer"))){Y=_.mf("yt.gcf.config.coldConfigData");var R=_.mf("yt.gcf.config.hotHashData"),Z=_.mf("yt.gcf.config.coldHashData");Y&&R&&Z&&(D.debounceTimer=(0,_.DO)());return{coldConfigData:Y,hotHashData:R,coldHashData:Z}}},$7U=function(D){eMz(D,_.JQ("RAW_COLD_CONFIG_GROUP"));
rNU(D,_.JQ("SERIALIZED_COLD_HASH_DATA"));var Y;yND(D,(Y=D.coldGlobalConfigGroup)==null?void 0:Y.configData)},vM7=function(D){fqL(D,_.JQ("RAW_HOT_CONFIG_GROUP"));
D.setHotHashData(_.JQ("SERIALIZED_HOT_HASH_DATA"))},fqL=function(D,Y){D.hotGlobalConfigGroup=Y;
_.ix("yt.gcf.config.hotConfigGroup",D.hotGlobalConfigGroup||null)},eMz=function(D,Y){D.coldGlobalConfigGroup=Y;
_.ix("yt.gcf.config.coldConfigGroup",D.coldGlobalConfigGroup||null)};
nI.prototype.setHotHashData=function(D){this.hotHashData=D;_.ix("yt.gcf.config.hotHashData",this.hotHashData||null)};
var rNU=function(D,Y){D.coldHashData=Y;_.ix("yt.gcf.config.coldHashData",D.coldHashData||null)},yND=function(D,Y){D.configData=Y;
_.ix("yt.gcf.config.coldConfigData",D.configData||null)},wk=function(){return _.mf("yt.gcf.config.hotConfigGroup")},ANz=function(){return _.mf("yt.gcf.config.coldConfigGroup")};var zF={},lqL=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";zF.assign=function(D){for(var Y=Array.prototype.slice.call(arguments,1);Y.length;){var R=Y.shift();if(R){if(typeof R!=="object")throw new TypeError("Uc`"+R);for(var Z in R)Object.prototype.hasOwnProperty.call(R,Z)&&(D[Z]=R[Z])}}return D};
zF.shrinkBuf=function(D,Y){if(D.length===Y)return D;if(D.subarray)return D.subarray(0,Y);D.length=Y;return D};
var JNU={arraySet:function(D,Y,R,Z,t){if(Y.subarray&&D.subarray)D.set(Y.subarray(R,R+Z),t);else for(var X=0;X<Z;X++)D[t+X]=Y[R+X]},
flattenChunks:function(D){var Y,R;var Z=R=0;for(Y=D.length;Z<Y;Z++)R+=D[Z].length;var t=new Uint8Array(R);Z=R=0;for(Y=D.length;Z<Y;Z++){var X=D[Z];t.set(X,R);R+=X.length}return t}},kyD={arraySet:function(D,Y,R,Z,t){for(var X=0;X<Z;X++)D[t+X]=Y[R+X]},
flattenChunks:function(D){return[].concat.apply([],D)}};
zF.setTyped=function(){lqL?(zF.Buf8=Uint8Array,zF.Buf16=Uint16Array,zF.Buf32=Int32Array,zF.assign(zF,JNU)):(zF.Buf8=Array,zF.Buf16=Array,zF.Buf32=Array,zF.assign(zF,kyD))};
zF.setTyped();var U77=!0;try{new Uint8Array(1)}catch(D){U77=!1}
var sU5=function(D){var Y,R,Z=D.length,t=0;for(Y=0;Y<Z;Y++){var X=D.charCodeAt(Y);if((X&64512)===55296&&Y+1<Z){var M=D.charCodeAt(Y+1);(M&64512)===56320&&(X=65536+(X-55296<<10)+(M-56320),Y++)}t+=X<128?1:X<2048?2:X<65536?3:4}var W=new zF.Buf8(t);for(Y=R=0;R<t;Y++)X=D.charCodeAt(Y),(X&64512)===55296&&Y+1<Z&&(M=D.charCodeAt(Y+1),(M&64512)===56320&&(X=65536+(X-55296<<10)+(M-56320),Y++)),X<128?W[R++]=X:(X<2048?W[R++]=192|X>>>6:(X<65536?W[R++]=224|X>>>12:(W[R++]=240|X>>>18,W[R++]=128|X>>>12&63),W[R++]=
128|X>>>6&63),W[R++]=128|X&63);return W};var B$9={};B$9=function(D,Y,R,Z){var t=D&65535|0;D=D>>>16&65535|0;for(var X;R!==0;){X=R>2E3?2E3:R;R-=X;do t=t+Y[Z++]|0,D=D+t|0;while(--X);t%=65521;D%=65521}return t|D<<16|0};for(var wR={},$S,KBY=[],hMU=0;hMU<256;hMU++){$S=hMU;for(var LBD=0;LBD<8;LBD++)$S=$S&1?3988292384^$S>>>1:$S>>>1;KBY[hMU]=$S}wR=function(D,Y,R,Z){R=Z+R;for(D^=-1;Z<R;Z++)D=D>>>8^KBY[(D^Y[Z])&255];return D^-1};var IE={};IE={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 kaS=[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],KVU=[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],tNU=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],PXy=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fq=Array(576);aE(fq);var eh=Array(60);aE(eh);var TF=Array(512);aE(TF);var Sh=Array(256);aE(Sh);var U3M=Array(29);aE(U3M);var hsy=Array(30);aE(hsy);var YgU,RJl,Zr5,DB$=!1;var bD;
bD=[new oE(0,0,0,0,function(D,Y){var R=65535;for(R>D.pending_buf_size-5&&(R=D.pending_buf_size-5);;){if(D.lookahead<=1){$Q(D);if(D.lookahead===0&&Y===0)return 1;if(D.lookahead===0)break}D.strstart+=D.lookahead;D.lookahead=0;var Z=D.block_start+R;if(D.strstart===0||D.strstart>=Z)if(D.lookahead=D.strstart-Z,D.strstart=Z,AP(D,!1),D.strm.avail_out===0)return 1;if(D.strstart-D.block_start>=D.w_size-262&&(AP(D,!1),D.strm.avail_out===0))return 1}D.insert=0;if(Y===4)return AP(D,!0),D.strm.avail_out===0?3:
4;D.strstart>D.block_start&&AP(D,!1);return 1}),
new oE(4,4,8,4,pGU),new oE(4,5,16,8,pGU),new oE(4,6,32,32,pGU),new oE(4,4,16,16,vg),new oE(8,16,32,32,vg),new oE(8,16,128,128,vg),new oE(8,32,128,256,vg),new oE(32,128,258,1024,vg),new oE(32,258,258,4096,vg)];var c6o={};c6o=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 XEU=Object.prototype.toString;
OnM.prototype.push=function(D,Y){var R=this.strm,Z=this.options.chunkSize;if(this.ended)return!1;var t=Y===~~Y?Y:Y===!0?4:0;typeof D==="string"?R.input=sU5(D):XEU.call(D)==="[object ArrayBuffer]"?R.input=new Uint8Array(D):R.input=D;R.next_in=0;R.avail_in=R.input.length;do{R.avail_out===0&&(R.output=new zF.Buf8(Z),R.next_out=0,R.avail_out=Z);D=iny(R,t);if(D!==1&&D!==0)return m7z(this,D),this.ended=!0,!1;if(R.avail_out===0||R.avail_in===0&&(t===4||t===2))if(this.options.to==="string"){var X=zF.shrinkBuf(R.output,
R.next_out);Y=X;X=X.length;if(X<65537&&(Y.subarray&&U77||!Y.subarray))Y=String.fromCharCode.apply(null,zF.shrinkBuf(Y,X));else{for(var M="",W=0;W<X;W++)M+=String.fromCharCode(Y[W]);Y=M}this.chunks.push(Y)}else Y=zF.shrinkBuf(R.output,R.next_out),this.chunks.push(Y)}while((R.avail_in>0||R.avail_out===0)&&D!==1);if(t===4)return(R=this.strm)&&R.state?(Z=R.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?D=FG(R,-2):(R.state=null,D=Z===113?FG(R,-3):0)):D=-2,m7z(this,D),this.ended=
!0,D===0;t===2&&(m7z(this,0),R.avail_out=0);return!0};
var m7z=function(D,Y){Y===0&&(D.result=D.options.to==="string"?D.chunks.join(""):zF.flattenChunks(D.chunks));D.chunks=[];D.err=Y;D.msg=D.strm.msg};var qwL=typeof TextEncoder!=="undefined"?new TextEncoder:null,UBU=qwL?function(D){return qwL.encode(D)}:function(D){D=_.eH(D);
for(var Y=new Uint8Array(D.length),R=0;R<Y.length;R++)Y[R]=D[R];return Y};var MtU={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Way={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var vA=function(D,Y){this.version=D;this.args=Y};
vA.prototype.serialize=function(){return{version:this.version,args:this.args}};var W4b=function(D,Y){this.topic=D;this.dataClass=Y};
W4b.prototype.toString=function(){return this.topic};var HF4=_.mf("ytPubsub2Pubsub2Instance")||new _.j$;_.j$.prototype.subscribe=_.j$.prototype.subscribe;_.j$.prototype.unsubscribeByKey=_.j$.prototype.unsubscribeByKey;_.j$.prototype.publish=_.j$.prototype.publish;_.j$.prototype.clear=_.j$.prototype.clear;_.ix("ytPubsub2Pubsub2Instance",HF4);var CPy=_.mf("ytPubsub2Pubsub2SubscribedKeys")||{};_.ix("ytPubsub2Pubsub2SubscribedKeys",CPy);var Sgn=_.mf("ytPubsub2Pubsub2TopicToKeys")||{};_.ix("ytPubsub2Pubsub2TopicToKeys",Sgn);
var zJU=_.mf("ytPubsub2Pubsub2IsAsync")||{};_.ix("ytPubsub2Pubsub2IsAsync",zJU);_.ix("ytPubsub2Pubsub2SkipSubKey",null);var nyy=void 0,eJi=void 0;var Nd5=_.ZH("max_body_size_to_compress",5E5),lhr=_.ZH("min_body_size_to_compress",500),lD=!0,L4o=0,JP=0,hJM=_.ZH("compression_performance_threshold_lr",250),mBU=_.ZH("slow_compressions_before_abandon_count",4),$BS=!1,vyj=new Map,kmU=1,Jjn=!0;_.XN(kQ,xBi);kQ.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 x7L=function(D,Y,R){R||(R=0);var Z=D.W_;if(typeof Y==="string")for(var t=0;t<16;t++)Z[t]=Y.charCodeAt(R)<<24|Y.charCodeAt(R+1)<<16|Y.charCodeAt(R+2)<<8|Y.charCodeAt(R+3),R+=4;else for(t=0;t<16;t++)Z[t]=Y[R]<<24|Y[R+1]<<16|Y[R+2]<<8|Y[R+3],R+=4;for(Y=16;Y<80;Y++)R=Z[Y-3]^Z[Y-8]^Z[Y-14]^Z[Y-16],Z[Y]=(R<<1|R>>>31)&4294967295;Y=D.chain_[0];R=D.chain_[1];t=D.chain_[2];for(var X=D.chain_[3],M=D.chain_[4],W,z,I=0;I<80;I++)I<40?I<20?(W=X^R&(t^X),z=1518500249):(W=R^t^X,z=1859775393):I<60?(W=R&t|X&(R|t),
z=2400959708):(W=R^t^X,z=3395469782),W=(Y<<5|Y>>>27)+W+M+z+Z[I]&4294967295,M=X,X=t,t=(R<<30|R>>>2)&4294967295,R=Y,Y=W;D.chain_[0]=D.chain_[0]+Y&4294967295;D.chain_[1]=D.chain_[1]+R&4294967295;D.chain_[2]=D.chain_[2]+t&4294967295;D.chain_[3]=D.chain_[3]+X&4294967295;D.chain_[4]=D.chain_[4]+M&4294967295};
kQ.prototype.update=function(D,Y){if(D!=null){Y===void 0&&(Y=D.length);for(var R=Y-this.blockSize,Z=0,t=this.buf_,X=this.inbuf_;Z<Y;){if(X==0)for(;Z<=R;)x7L(this,D,Z),Z+=this.blockSize;if(typeof D==="string")for(;Z<Y;){if(t[X]=D.charCodeAt(Z),++X,++Z,X==this.blockSize){x7L(this,t);X=0;break}}else for(;Z<Y;)if(t[X]=D[Z],++X,++Z,X==this.blockSize){x7L(this,t);X=0;break}}this.inbuf_=X;this.total_+=Y}};
kQ.prototype.digest=function(){var D=[],Y=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var R=this.blockSize-1;R>=56;R--)this.buf_[R]=Y&255,Y/=256;x7L(this,this.buf_);for(R=Y=0;R<5;R++)for(var Z=24;Z>=0;Z-=8)D[Y]=this.chain_[R]>>Z&255,++Y;return D};var BdM;var bR=function(D){var Y=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(F){Y.databaseToken=F},
triggerThrottle:function(){Y.throttledSend()},
cancelThrottle:function(){Y.cancelThrottledSend()},
immediateSend:function(F){return _.C(function(G){return G.yield(Y.immediateSend(F),0)})},
requestWithinAgeLimit:function(F,G){return Y.requestWithinAgeLimit(F,G)},
retryQueuedRequests:function(){Y.retryQueuedRequests()}};
var R;this.throttleTimeout=(R=D.throttleTimeout)!=null?R:100;var Z;this.retryMaxAttempts=(Z=D.retryMaxAttempts)!=null?Z:1;var t;this.requestAgeLimitMs=(t=D.requestAgeLimitMs)!=null?t:2592E6;var X;this.queuedRequestAgeLimitMs=(X=D.queuedRequestAgeLimitMs)!=null?X:12E4;var M;this.retryDelayMs=(M=D.retryDelayMs)!=null?M:5E3;var W;this.databaseToken=(W=D.databaseToken)!=null?W:void 0;this.enableCleaning=!!D.enableCleaning;var z;this.cleaningRate=(z=D.cleaningRate)!=null?z:.1;var I;this.potentialEsfErrorLimit=
(I=D.potentialEsfErrorLimit)!=null?I:10;D.handleError&&(this.handleError=D.handleError);D.handleWarning&&(this.handleWarning=D.handleWarning);D.disableYtIdbTransactions&&(this.disableYtIdbTransactions=D.disableYtIdbTransactions);D.bypassDbTokenDependency&&(this.bypassDbTokenDependency=D.bypassDbTokenDependency);this.getBooleanFlag=D.getBooleanFlag;this.jobManager=D.jobManager;this.logsStore=D.logsStore;this.networkManager=D.networkManager;this.sendFn=D.sendFn;this.onlineEvent=D.onlineEvent;this.offlineEvent=
D.offlineEvent;o6(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Pyz(this)},Pyz=function(D){o6(D)&&!D.disableYtIdbTransactions&&(D.initialized=!0,D.enableCleaning&&Math.random()<=D.cleaningRate&&D.logsStore.cleanLogsStore(D.databaseToken),D.retryQueuedRequests(),D.networkManager.isNetworkAvailable()&&D.throttledSend(),D.networkManager.listen(D.onlineEvent,D.throttledSend.bind(D)),D.networkManager.listen(D.offlineEvent,D.cancelThrottledSend.bind(D)))};
_.u=bR.prototype;_.u.writeThenSend=function(D,Y){var R=this;Y=Y===void 0?{}:Y;if(o6(this)&&this.initialized){var Z={url:D,options:Y,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Z,this.databaseToken).then(function(t){Z.id=t;R.networkManager.isNetworkAvailable()&&R.immediateSend(Z)}).catch(function(t){R.immediateSend(Z);
QD7(R,t)})}else this.sendFn(D,Y)};
_.u.sendThenWrite=function(D,Y,R){var Z=this;Y=Y===void 0?{}:Y;if(o6(this)&&this.initialized){var t={url:D,options:Y,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(t.skipRetry=R);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!t.skipRetry){if(!t.skipRetry){var X=Y.onError?Y.onError:function(){};
Y.onError=function(M,W){return _.C(function(z){if(z.nextAddress==1)return z.yield(Z.logsStore.set(t,Z.databaseToken).catch(function(I){QD7(Z,I)}),2);
X(M,W);_.V9(z)})}}this.sendFn(D,Y,t.skipRetry)}else this.logsStore.set(t,this.databaseToken).catch(function(M){Z.sendFn(D,Y,t.skipRetry);
QD7(Z,M)})}else this.sendFn(D,Y,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&R)};
_.u.sendAndWrite=function(D,Y){var R=this;Y=Y===void 0?{}:Y;if(o6(this)&&this.initialized){var Z={url:D,options:Y,timestamp:this.now(),status:"NEW",sendCount:0},t=!1,X=Y.onSuccess?Y.onSuccess:function(){};
Z.options.onSuccess=function(M,W){Z.id!==void 0?R.logsStore.deleteRequest(Z.id,R.databaseToken):t=!0;R.networkManager.networkStatusHint&&R.getBooleanFlag&&R.getBooleanFlag("vss_network_hint")&&R.networkManager.networkStatusHint(!0);X(M,W)};
this.sendFn(Z.url,Z.options,void 0,!0);this.logsStore.set(Z,this.databaseToken).then(function(M){Z.id=M;t&&R.logsStore.deleteRequest(Z.id,R.databaseToken)}).catch(function(M){QD7(R,M)})}else this.sendFn(D,Y,void 0,!0)};
_.u.throttledSend=function(){var D=this;if(!o6(this))throw Error("Xc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D.logsStore.getMostRecentByStatus("NEW",D.databaseToken),2);if(R.nextAddress!=3)return Y=R.yieldResult,Y?R.yield(D.immediateSend(Y),3):(D.cancelThrottledSend(),R.return());D.intervalJob&&(D.intervalJob=0,D.throttledSend());_.V9(R)})},this.throttleTimeout))};
_.u.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.u.immediateSend=function(D){var Y=this,R;return _.C(function(Z){switch(Z.nextAddress){case 1:if(!o6(Y))throw Error("Yc");if(D.id===void 0){Z.jumpTo(2);break}return Z.yield(Y.logsStore.markAsQueued(D.id,Y.databaseToken),3);case 3:(R=Z.yieldResult)||Y.handleWarning(Error("Zc"));case 2:if(Y.requestWithinAgeLimit(D,Y.requestAgeLimitMs)){Z.jumpTo(4);break}Y.handleWarning(Error("$c"));if(D.id===void 0){Z.jumpTo(5);break}return Z.yield(Y.logsStore.deleteRequest(D.id,Y.databaseToken),5);case 5:return Z.return();
case 4:D.skipRetry||(D=BuV(Y,D));if(!D){Z.jumpTo(0);break}if(!D.skipRetry||D.id===void 0){Z.jumpTo(8);break}return Z.yield(Y.logsStore.deleteRequest(D.id,Y.databaseToken),8);case 8:Y.sendFn(D.url,D.options,!!D.skipRetry),_.V9(Z)}})};
var BuV=function(D,Y){if(!o6(D))throw Error("ad");var R=Y.options.onError?Y.options.onError:function(){};
Y.options.onError=function(t,X){var M,W,z,I;return _.C(function(F){switch(F.nextAddress){case 1:M=irb(X);(W=Or9(X))&&D.getBooleanFlag&&D.getBooleanFlag("web_enable_error_204")&&D.handleError(Error("bd"),Y.url,X);if(!(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&M||D.getBooleanFlag&&!D.getBooleanFlag("nwl_consider_error_code")&&D.potentialEsfErrorCounter<=D.potentialEsfErrorLimit)){F.jumpTo(2);break}if(!D.networkManager.sendNetworkCheckRequest){F.jumpTo(3);break}return F.yield(D.networkManager.sendNetworkCheckRequest(),
3);case 3:if(D.networkManager.isNetworkAvailable()){F.jumpTo(2);break}R(t,X);if(!D.getBooleanFlag||!D.getBooleanFlag("nwl_consider_error_code")||((z=Y)==null?void 0:z.id)===void 0){F.jumpTo(6);break}return F.yield(D.logsStore.resetRequest(Y.id,D.databaseToken,!1),6);case 6:return F.return();case 2:if(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&!M&&D.potentialEsfErrorCounter>D.potentialEsfErrorLimit)return F.return();D.potentialEsfErrorCounter++;if(((I=Y)==null?void 0:I.id)===void 0){F.jumpTo(8);
break}return Y.sendCount<D.retryMaxAttempts?F.yield(D.logsStore.resetRequest(Y.id,D.databaseToken,!0,W?!1:void 0),12):F.yield(D.logsStore.deleteRequest(Y.id,D.databaseToken),8);case 12:D.jobManager.addLowPriorityJob(function(){D.networkManager.isNetworkAvailable()&&D.throttledSend()},D.retryDelayMs);
case 8:R(t,X),_.V9(F)}})};
var Z=Y.options.onSuccess?Y.options.onSuccess:function(){};
Y.options.onSuccess=function(t,X){var M;return _.C(function(W){if(W.nextAddress==1)return((M=Y)==null?void 0:M.id)===void 0?W.jumpTo(2):W.yield(D.logsStore.deleteRequest(Y.id,D.databaseToken),2);D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);Z(t,X);_.V9(W)})};
return Y};
bR.prototype.requestWithinAgeLimit=function(D,Y){D=D.timestamp;return this.now()-D>=Y?!1:!0};
bR.prototype.retryQueuedRequests=function(){var D=this;if(!o6(this))throw Error("cd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(Y){Y&&!D.requestWithinAgeLimit(Y,D.queuedRequestAgeLimitMs)?D.jobManager.addLowPriorityJob(function(){return _.C(function(R){if(R.nextAddress==1)return Y.id===void 0?R.jumpTo(2):R.yield(D.logsStore.resetRequest(Y.id,D.databaseToken),2);D.retryQueuedRequests();_.V9(R)})}):D.networkManager.isNetworkAvailable()&&D.throttledSend()})};
var QD7=function(D,Y){D.writeError&&!D.networkManager.isNetworkAvailable()?D.writeError(Y):D.handleError(Y)},o6=function(D){return!!D.databaseToken||D.bypassDbTokenDependency};var cj9;var XKn={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var pyL={},Mv5=cr("ServiceWorkerLogsDatabase",{objectStores:(pyL.SWHealthLog={addedAtVersion:1},pyL),shared:!0,upgrade:function(D,Y){Y(1)&&Lq(hP(D,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var FQU={},IXU=0;var eUb;var yN=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Pg=function(){if(!yN.instance){var D=_.mf("yt.networkRequestMonitor.instance")||new yN;
_.ix("yt.networkRequestMonitor.instance",D);yN.instance=D}return yN.instance};
yN.prototype.requestComplete=function(D,Y){Y&&(this.anyRequestHasSucceeded=!0);D=this.removeParams(D);this.requestMap.get(D)||this.requestMap.set(D,Y)};
yN.prototype.isEndpointCFR=function(D){D=this.removeParams(D);return(D=this.requestMap.get(D))?!1:D===!1&&this.anyRequestHasSucceeded?!0:null};
yN.prototype.removeParams=function(D){return D.split("?")[0]};
yN.prototype.removeParams=yN.prototype.removeParams;yN.prototype.isEndpointCFR=yN.prototype.isEndpointCFR;yN.prototype.requestComplete=yN.prototype.requestComplete;yN.getInstance=Pg;var NF=function(D){_.eE.call(this);var Y=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=D!=null?D:{addLowPriorityJob:function(t,X){return setTimeout(t,X)},
cancelJob:function(t){clearTimeout(t)}};
var R,Z;this.isOnline=(Z=(R=window.navigator)==null?void 0:R.onLine)!=null?Z:!0;this.onNavigatorChange=function(){return _.C(function(t){return t.yield(EMY(Y),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||gMU(this)};
_.n(NF,_.eE);NF.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete NF.instance};
NF.prototype.isNetworkAvailable=function(){return this.isOnline};
var gMU=function(D){D.pollingJob=D.jobManager.addLowPriorityJob(function(){var Y;return _.C(function(R){if(R.nextAddress==1)return D.isOnline?((Y=window.navigator)==null?0:Y.onLine)?R.jumpTo(3):R.yield(EMY(D),3):R.yield(EMY(D),3);gMU(D);_.V9(R)})},3E4)},EMY=function(D,Y){return D.networkRequestPromise?D.networkRequestPromise:D.networkRequestPromise=new Promise(function(R){var Z,t,X,M;
return _.C(function(W){switch(W.nextAddress){case 1:return Z=window.AbortController?new window.AbortController:void 0,X=(t=Z)==null?void 0:t.signal,M=!1,_.SX(W,2,3),Z&&(D.abortTimeoutKey=D.jobManager.addLowPriorityJob(function(){Z.abort()},Y||2E4)),W.yield(fetch("/generate_204",{method:"HEAD",
signal:X}),5);case 5:M=!0;case 3:_.jX(W);D.networkRequestPromise=void 0;D.abortTimeoutKey&&(D.jobManager.cancelJob(D.abortTimeoutKey),D.abortTimeoutKey=0);M!==D.isOnline&&(D.isOnline=M,D.isOnline?D.dispatchEvent("networkstatus-online"):D.dispatchEvent("networkstatus-offline"));R(M);_.Fx(W,0);break;case 2:_.Gl(W),M=!1,W.jumpTo(3)}})})};var lR=function(){_.eE.call(this);var D=this;this.shouldFlushErrors=!1;NF.instance||(NF.instance=new NF(_.yc));this.sharedNetworkStatusManager=NF.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(D.shouldFlushErrors&&_.f("offline_error_handling")){var Y=Air().get("errors",!0);if(Y){for(var R in Y)if(Y[R]){var Z=new _.AT(R,"sent via offline_errors");Z.name=Y[R].name;Z.stack=Y[R].stack;Z.level=Y[R].level;_.hQ(Z)}Air().set("errors",{},2592E3,!0)}}})};
_.n(lR,_.eE);var d7U=function(){if(!lR.instance){var D=_.mf("yt.networkStatusManager.instance")||new lR;_.ix("yt.networkStatusManager.instance",D);lR.instance=D}return lR.instance};
_.u=lR.prototype;_.u.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.u.networkStatusHint=function(D){this.sharedNetworkStatusManager.isOnline=D};
_.u.getWindowStatus=function(){var D=window.navigator.onLine;return D===void 0?!0:D};
_.u.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.u.listen=function(D,Y){return this.sharedNetworkStatusManager.listen(D,Y)};
_.u.sendNetworkCheckRequest=function(D){D=EMY(this.sharedNetworkStatusManager,D);D.then(function(Y){_.f("use_cfr_monitor")&&Pg().requestComplete("generate_204",Y)});
return D};
lR.prototype.sendNetworkCheckRequest=lR.prototype.sendNetworkCheckRequest;lR.prototype.listen=lR.prototype.listen;lR.prototype.enableErrorFlushing=lR.prototype.enableErrorFlushing;lR.prototype.getWindowStatus=lR.prototype.getWindowStatus;lR.prototype.networkStatusHint=lR.prototype.networkStatusHint;lR.prototype.isNetworkAvailable=lR.prototype.isNetworkAvailable;lR.getInstance=d7U;_.xQ=function(D){D=D===void 0?{}:D;_.eE.call(this);var Y=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=d7U();var R=_.mf("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);R&&(D.rateLimit?(this.rateLimit=D.rateLimit,R("networkstatus-online",function(){iFD(Y,"publicytnetworkstatus-online")}),R("networkstatus-offline",function(){iFD(Y,"publicytnetworkstatus-offline")})):(R("networkstatus-online",function(){Y.dispatchEvent("publicytnetworkstatus-online")}),R("networkstatus-offline",
function(){Y.dispatchEvent("publicytnetworkstatus-offline")})))};
_.n(_.xQ,_.eE);_.xQ.prototype.isNetworkAvailable=function(){var D=_.mf("yt.networkStatusManager.instance.isNetworkAvailable");return D?D.bind(this.nsmInstance)():!0};
_.xQ.prototype.networkStatusHint=function(D){var Y=_.mf("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);Y&&Y(D)};
_.xQ.prototype.sendNetworkCheckRequest=function(D){var Y=this,R;return _.C(function(Z){R=_.mf("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Y.nsmInstance);return _.f("skip_network_check_if_cfr")&&Pg().isEndpointCFR("generate_204")?Z.return(new Promise(function(t){var X;Y.networkStatusHint(((X=window.navigator)==null?void 0:X.onLine)||!0);t(Y.isNetworkAvailable())})):R?Z.return(R(D)):Z.return(!0)})};
var iFD=function(D,Y){D.rateLimit?D.lastJobTime?(_.yc.cancelJob(D.schedulerJob),D.schedulerJob=_.yc.addLowPriorityJob(function(){D.lastPublicSignalSent!==Y&&(D.dispatchEvent(Y),D.lastPublicSignalSent=Y,D.lastJobTime=(0,_.DO)())},D.rateLimit-((0,_.DO)()-D.lastJobTime))):(D.dispatchEvent(Y),D.lastPublicSignalSent=Y,D.lastJobTime=(0,_.DO)()):D.dispatchEvent(Y)};var vC5,JH=function(){bR.call(this,{logsStore:{cleanLogsStore:uKS,deleteRequest:XL5,getMostRecentByStatus:Z8U,markAsQueued:tvS,resetRequest:sTU,set:RUS},networkManager:_.oCn(),handleError:function(D,Y,R){var Z,t=R==null?void 0:(Z=R.error)==null?void 0:Z.code;if(t===400||t===415){var X;D=new _.AT(D.message,Y,R==null?void 0:(X=R.error)==null?void 0:X.code);_.qJ(D,void 0,void 0,void 0,!0)}else _.hQ(D)},
handleWarning:_.qJ,sendFn:wLb,now:_.DO,writeError:nCy,jobManager:_.b$(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.ZH("potential_esf_error_limit",10),getBooleanFlag:_.f,disableYtIdbTransactions:!(_.e$()&&_.b8U())});this.initializationPromise=new _.Ta;_.f("networkless_immediately_drop_all_requests")&&aXl();Ohr("LogsDatabaseV2")};
_.n(JH,bR);_.cNE=function(){var D=_.mf("yt.networklessRequestController.instance");D||(D=new JH,_.ix("yt.networklessRequestController.instance",D),_.f("networkless_logging")&&_.OK().then(function(Y){D.databaseToken=Y;Pyz(D);D.initializationPromise.resolve();D.enableCleaning&&Math.random()<=D.cleaningRate&&D.databaseToken&&WQU(D.databaseToken);_.f("networkless_immediately_drop_sw_health_store")&&OFz(D)}));
return D};
JH.prototype.writeThenSend=function(D,Y){Y||(Y={});Y=$Ij(D,Y);_.e$()||(this.initialized=!1);bR.prototype.writeThenSend.call(this,D,Y)};
JH.prototype.sendThenWrite=function(D,Y,R){Y||(Y={});Y=$Ij(D,Y);_.e$()||(this.initialized=!1);bR.prototype.sendThenWrite.call(this,D,Y,R)};
JH.prototype.sendAndWrite=function(D,Y){Y||(Y={});Y=$Ij(D,Y);_.e$()||(this.initialized=!1);bR.prototype.sendAndWrite.call(this,D,Y)};
JH.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var OFz=function(D){var Y;_.C(function(R){if(!D.databaseToken)throw Y=Kv("clearSWHealthLogsDb"),Y;return R.return(zUi(D.databaseToken).catch(function(Z){D.handleError(Z)}))})};_.NsU=!1;_.yiM=_.ZU.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.NsU};_.ix("ytNetworklessLoggingInitializationOptions",_.yiM);var oo=function(D){var Y=this;this.config_=null;D?this.config_=D:u9b()&&(this.config_=_.RE());_.Ak(_.yc,function(){dBi(Y)},5E3)};
oo.prototype.isReady=function(){!this.config_&&u9b()&&(this.config_=_.RE());return!!this.config_};
var gyU=function(D,Y,R,Z){!_.JQ("VISITOR_DATA")&&Y!=="visitor_id"&&Math.random()<.01&&_.qJ(new _.AT("Missing VISITOR_DATA when sending innertube request.",Y,R,Z));if(!D.isReady()){var t=new _.AT("innertube xhrclient not ready",Y,R,Z);_.hQ(t);throw t;}var X={headers:Z.headers||{},method:"POST",postParams:R,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()},
onFetchTimeout:Z.onTimeout,onSuccess:function(G,V){if(Z.onSuccess)Z.onSuccess(V)},
onFetchSuccess:function(G){if(Z.onSuccess)Z.onSuccess(G)},
onProgress:function(G){if(Z.onProgress)Z.onProgress(G)},
onError:function(G,V){if(Z.onError)Z.onError(V)},
onFetchError:function(G){if(Z.onError)Z.onError(G)},
timeout:Z.timeout,withCredentials:!0,compress:Z.compress};X.headers["Content-Type"]||(X.headers["Content-Type"]="application/json");var M="";(t=D.config_.innertubeHostOverride)&&(M=t);var W=D.config_.innertubeUseThirdPartyAuth||!1,z=_.nIb(W,M,Z);Object.assign(X.headers,z);X.headers.Authorization&&!M&&W&&(X.headers["x-origin"]=window.location.origin);var I=_.BD(M+("/youtubei/"+D.config_.innertubeApiVersion+"/"+Y),{alt:"json"}),F=function(G){G=G===void 0?!1:G;var V;if(Z.retry&&M!="www.youtube-nocookie.com"&&
(G||_.f("skip_ls_gel_retry")||X.headers["Content-Type"]!=="application/json"||(V=pEl(Y,R,z,W)),V)){var e=X.onSuccess,r=X.onFetchSuccess;X.onSuccess=function(K,H){Eyn(V);e(K,H)};
R.onFetchSuccess=function(K,H){Eyn(V);r(K,H)}}try{if(G&&Z.retry&&!Z.networklessOptions.bypassNetworkless)X.method="POST",Z.networklessOptions.writeThenSend?_.cNE().writeThenSend(I,X):_.cNE().sendAndWrite(I,X);
else if(Z.compress){var l=!Z.networklessOptions.writeThenSend;if(X.postBody){var U=X.postBody;typeof U!=="string"&&(U=JSON.stringify(X.postBody));K4S(I,U,X,_.S$,l)}else K4S(I,JSON.stringify(X.postParams),X,PiU,l)}else _.f("web_all_payloads_via_jspb")?_.S$(I,X):PiU(I,X)}catch(K){if(K.name==="InvalidAccessError")V&&(Eyn(V),V=0),_.qJ(Error("dd"));else throw K;}V&&_.Ak(_.yc,function(){dBi(D)},5E3)};
_.lXr()?P0M().then(function(G){F(G)}):F(!1)};var U0o=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(U0o,_.Y7);var DA_=0,kD$=_.zX?"webkit":_.WQ?"moz":_.Cw?"ms":aPS?"o":"";_.ix("ytDomDomGetNextId",_.mf("ytDomDomGetNextId")||function(){return++DA_});var YdL={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},iD=function(D){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(D=
D||window.event){this.event=D;for(var Y in D)Y in YdL||(this[Y]=D[Y]);this.scale=D.scale;this.rotation=D.rotation;var R=D.target||D.srcElement;R&&R.nodeType==3&&(R=R.parentNode);this.target=R;var Z=D.relatedTarget;if(Z)try{Z=Z.nodeName?Z:null}catch(t){Z=null}else this.type=="mouseover"?Z=D.fromElement:this.type=="mouseout"&&(Z=D.toElement);this.relatedTarget=Z;this.clientX=D.clientX!=void 0?D.clientX:D.pageX;this.clientY=D.clientY!=void 0?D.clientY:D.pageY;this.keyCode=D.keyCode?D.keyCode:D.which;
this.charCode=D.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=D.altKey;this.ctrlKey=D.ctrlKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pageX_=D.pageX;this.pageY_=D.pageY}}catch(t){}},Ro7=function(D){if(document.body&&document.documentElement){var Y=document.body.scrollTop+document.documentElement.scrollTop;
D.pageX_=D.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);D.pageY_=D.clientY+Y}};
iD.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
iD.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
iD.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var dR=_.ZU.ytEventsEventsListeners||{};_.ix("ytEventsEventsListeners",dR);var q4r=_.ZU.ytEventsEventsCounter||{count:0};_.ix("ytEventsEventsCounter",q4r);var H8r=_.fC(function(){var D=!1;try{var Y=Object.defineProperty({},"capture",{get:function(){D=!0}});
window.addEventListener("test",null,Y)}catch(R){}return D});_.XN(DL,_.AE);DL.prototype.onMouseMove_=function(D){D.pageX_===void 0&&Ro7(D);var Y=D.pageX_;D.pageY_===void 0&&Ro7(D);this.position_=new _.lm(Y,D.pageY_)};
DL.prototype.checkPosition_=function(){if(this.position_){var D=(0,_.DO)();if(this.previousTime_!=0){var Y=this.previousPosition_,R=this.position_,Z=Y.x-R.x;Y=Y.y-R.y;Z=Math.sqrt(Z*Z+Y*Y)/(D-this.previousTime_);this.cycles_[this.index_]=Math.abs((Z-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(R=Y=0;R<4;R++)Y+=this.cycles_[R]||0;Y>=3&&this.callback_();this.previousVelocity_=Z}this.previousTime_=D;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
DL.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.xIo(this.mouseListenerKey_)};var pLU={};var Yml=new _.Dv("rawColdConfigGroup");var DPU=new _.Dv("rawHotConfigGroup");var Z2L=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Z2L,_.Y7);var kp$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(kp$,_.Y7);var eq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D,500)};
_.n(eq,_.Y7);eq.prototype.getPayloadCase=function(){return _.r0(this,tPD)};
eq.prototype.getContext=function(){return _.tP(this,kp$,33)};
var tPD=[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,527];var EPl=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(EPl,_.Y7);var nPb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(nPb,_.Y7);nPb.prototype.setVideoId=function(D){return Sq(this,1,rpM,Wu(D))};
nPb.prototype.getPlaylistId=function(){return _.jH(this,Gz(this,rpM,2))};
var rpM=[1,2];var HBy=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(HBy,_.Y7);HBy.prototype.getContext=function(){return _.tP(this,Tz,1)};
HBy.prototype.getTier=function(){return _.lh(this,7)};var sRD,tk,s9;sRD=_.ZU.ytPubsubPubsubInstance||new _.j$;tk=_.ZU.ytPubsubPubsubSubscribedKeys||{};s9=_.ZU.ytPubsubPubsubTopicToKeys||{};_.EC9=_.ZU.ytPubsubPubsubIsSynchronous||{};_.j$.prototype.subscribe=_.j$.prototype.subscribe;_.j$.prototype.unsubscribeByKey=_.j$.prototype.unsubscribeByKey;_.j$.prototype.publish=_.j$.prototype.publish;_.j$.prototype.clear=_.j$.prototype.clear;_.ix("ytPubsubPubsubInstance",sRD);_.ix("ytPubsubPubsubTopicToKeys",s9);_.ix("ytPubsubPubsubIsSynchronous",_.EC9);
_.ix("ytPubsubPubsubSubscribedKeys",tk);var uo=window;var kS=_.f("web_enable_lifecycle_monitoring")&&cib()!==0,XOE=_.f("web_enable_lifecycle_monitoring");var u3U=function(D){var Y=this;var R=R===void 0?0:R;var Z=Z===void 0?_.b$():Z;this.JSC$10816_defaultPriority=R;this.scheduler=Z;this.completedResolver=new _.Ta;this.scheduledPayloads=D;for(D={i$jscomp$487:0};D.i$jscomp$487<this.scheduledPayloads.length;D={payload$jscomp$19:void 0,i$jscomp$487:D.i$jscomp$487},D.i$jscomp$487++)D.payload$jscomp$19=this.scheduledPayloads[D.i$jscomp$487],R=function(t){return function(){t.payload$jscomp$19.job();Y.scheduledPayloads[t.i$jscomp$487].processed=!0;Y.scheduledPayloads.every(function(X){return X.processed===
!0})&&Y.completedResolver.resolve()}}(D),Z=this.getPriority(D.payload$jscomp$19),Z=this.scheduler.addJob(R,Z),this.scheduledPayloads[D.i$jscomp$487]=Object.assign({},D.payload$jscomp$19,{job:R,
jobId:Z})};
u3U.prototype.flushJobs=function(){var D=this,Y=Array.from(this.scheduledPayloads.keys()).sort(function(Z,t){return D.getPriority(D.scheduledPayloads[t])-D.getPriority(D.scheduledPayloads[Z])});
Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=this.scheduledPayloads[R.value],R.jobId===void 0||R.processed||(this.scheduler.cancelJob(R.jobId),this.scheduler.addJob(R.job,10))};
u3U.prototype.cancel=function(){for(var D=_.a(this.scheduledPayloads),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.jobId===void 0||Y.processed||this.scheduler.cancelJob(Y.jobId),Y.processed=!0;this.completedResolver.resolve()};
u3U.prototype.getPriority=function(D){var Y;return(Y=D.priority)!=null?Y:this.JSC$10816_defaultPriority};var UF=function(D){this.state=D;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};kS&&DWU(this.state)};
UF.prototype.install=function(D){this.plugins.push(D);return this};
UF.prototype.uninstall=function(){var D=this;_.UN.apply(0,arguments).forEach(function(Y){Y=D.plugins.indexOf(Y);Y>-1&&D.plugins.splice(Y,1)})};
UF.prototype.transition=function(D,Y){var R=this;kS&&YDo(this.state);var Z=this.transitions.find(function(X){return Array.isArray(X.from)?X.from.find(function(M){return M===R.state&&X.to===D}):X.from===R.state&&X.to===D});
if(Z){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);aaU(this,D,Y);this.state=D;kS&&DWU(this.state);Z=Z.action.bind(this);var t=this.plugins.filter(function(X){return X[D]}).map(function(X){return X[D]});
Z(MPL(this,t),Y)}else throw Error("ed`"+this.state+"`"+D);};
var MPL=function(D,Y){var R=Y.filter(function(t){return Cl_(D,t)===10}),Z=Y.filter(function(t){return Cl_(D,t)!==10});
return D.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var t=_.UN.apply(0,arguments);return _.C(function(X){if(X.nextAddress==1)return X.yield(D.runImmediateJobsAsync.apply(D,[R].concat(_.oK(t))),2);D.setJobSetWithScheduledJobs.apply(D,[Z].concat(_.oK(t)));_.V9(X)})}:function(){var t=_.UN.apply(0,arguments);
D.runImmediateJobsSync.apply(D,[R].concat(_.oK(t)));D.setJobSetWithScheduledJobs.apply(D,[Z].concat(_.oK(t)))}};
UF.prototype.runImmediateJobsSync=function(D){var Y=_.UN.apply(1,arguments);_.b$();for(var R=_.a(D),Z=R.next(),t={};!Z.done;t={lifecycle$jscomp$2:void 0},Z=R.next())t.lifecycle$jscomp$2=Z.value,zf(function(X){return function(){WU4(X.lifecycle$jscomp$2.name);ZBU(function(){return X.lifecycle$jscomp$2.callback.apply(X.lifecycle$jscomp$2,_.oK(Y))});
KK(X.lifecycle$jscomp$2.name)}}(t))};
UF.prototype.runImmediateJobsAsync=function(D){var Y=_.UN.apply(1,arguments),R,Z,t,X;return _.C(function(M){M.nextAddress==1&&(_.b$(),R=_.a(D),Z=R.next(),t={});if(M.nextAddress!=3){if(Z.done)return M.jumpTo(0);t.lifecycle$jscomp$3=Z.value;t.asyncJobCompletion=void 0;X=function(W){return function(){WU4(W.lifecycle$jscomp$3.name);var z=ZBU(function(){return W.lifecycle$jscomp$3.callback.apply(W.lifecycle$jscomp$3,_.oK(Y))});
mhy(z)?W.asyncJobCompletion=_.f("web_lifecycle_error_handling_killswitch")?z.then(function(){KK(W.lifecycle$jscomp$3.name)}):z.then(function(){KK(W.lifecycle$jscomp$3.name)},function(I){RlS(I);
KK(W.lifecycle$jscomp$3.name)}):KK(W.lifecycle$jscomp$3.name)}}(t);
zf(X);return t.asyncJobCompletion?M.yield(t.asyncJobCompletion,3):M.jumpTo(3)}t={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Z=R.next();return M.jumpTo(2)})};
UF.prototype.setJobSetWithScheduledJobs=function(D){var Y=_.UN.apply(1,arguments),R=this,Z=D.map(function(t){return{job:function(){WU4(t.name);ZBU(function(){return t.callback.apply(t,_.oK(Y))});
KK(t.name)},
priority:Cl_(R,t)}});
Z.length&&(this.jobSet=new u3U(Z))};
var Cl_=function(D,Y){var R,Z;return(Z=(R=D.overridePriority)!=null?R:Y.priority)!=null?Z:0},WU4=function(D){kS&&D&&DWU(D)},KK=function(D){kS&&D&&YDo(D)},aaU=function(D,Y,R){XOE&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+D.constructor.name+"] '"+D.state+"' to '"+Y+"'"),console.log("with message: ",R),console.groupEnd())};
_.YF.Object.defineProperties(UF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var zoD=function(D){UF.call(this,D===void 0?"none":D);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(){}}]},Sdz;
_.n(zoD,UF);zoD.prototype.runApplicationNavigationBegin=function(D,Y){var R=this;this.navigationTimer=_.Ak(_.yc,function(){R.currentState==="application_navigating"&&R.transition("none")},5E3);
D(Y==null?void 0:Y.event)};
zoD.prototype.runApplicationNavigationEnd=function(D,Y){this.navigationTimer&&(_.yc.cancelJob(this.navigationTimer),this.navigationTimer=null);D(Y==null?void 0:Y.event)};
_.cpM=function(){Sdz||(Sdz=new zoD);return Sdz};var OBj=[];_.ix("yt.logging.transport.getScrapedGelPayloads",function(){return OBj});var ao=function(){var D=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return D.totalEntries}}};
ao.prototype.storePayload=function(D,Y){D=t75(D);this.store[D]?this.store[D].push(Y):(this.memoizedKeySequences={},this.store[D]=[Y]);this.totalEntries++;_.f("more_accurate_gel_parser")&&(Y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Y));return D};
ao.prototype.smartExtractMatchingEntries=function(D){if(!D.keys.length)return[];for(var Y=TZV(this,D.keys.splice(0,1)[0]),R=[],Z=0;Z<Y.length;Z++)this.store[Y[Z]]&&D.sizeLimit&&(this.store[Y[Z]].length<=D.sizeLimit?(R.push.apply(R,_.oK(this.store[Y[Z]])),delete this.store[Y[Z]]):R.push.apply(R,_.oK(this.store[Y[Z]].splice(0,D.sizeLimit))));this.totalEntries-=R.length;(D==null?0:D.sizeLimit)&&R.length<(D==null?void 0:D.sizeLimit)&&(D.sizeLimit-=R.length,R.push.apply(R,_.oK(this.smartExtractMatchingEntries(D))));
return R};
ao.prototype.extractMatchingEntries=function(D){D=TZV(this,D);for(var Y=[],R=0;R<D.length;R++)this.store[D[R]]&&(Y.push.apply(Y,_.oK(this.store[D[R]])),delete this.store[D[R]]);this.totalEntries-=Y.length;return Y};
ao.prototype.getSequenceCount=function(D){D=TZV(this,D);for(var Y=0,R=0;R<D.length;R++){var Z=void 0;Y+=((Z=this.store[D[R]])==null?void 0:Z.length)||0}return Y};
var TZV=function(D,Y){var R=t75(Y);if(D.memoizedKeySequences[R])return D.memoizedKeySequences[R];var Z=Object.keys(D.store)||[];if(Z.length<=1&&t75(Y)===Z[0])return Z;for(var t=[],X=0;X<Z.length;X++){var M=Z[X].split("/");if(jR4(Y.auth,M[0])){var W=Y.isJspb;jR4(W===void 0?"undefined":W?"true":"false",M[1])&&jR4(Y.cttAuthInfo,M[2])&&(W=Y.tier,W=W===void 0?"undefined":JSON.stringify(W),jR4(W,M[3])&&t.push(Z[X]))}}return D.memoizedKeySequences[R]=t},jR4=function(D,Y){return D===void 0||D==="undefined"?
!0:D===Y};
ao.prototype.getSequenceCount=ao.prototype.getSequenceCount;ao.prototype.extractMatchingEntries=ao.prototype.extractMatchingEntries;ao.prototype.smartExtractMatchingEntries=ao.prototype.smartExtractMatchingEntries;ao.prototype.storePayload=ao.prototype.storePayload;var Jpb,N1U,kfy,Wm,IaE,sPn,tGM,ypU,bB9,Gfb,lTU,dWj,$WU;Jpb=_.ZH("initial_gel_batch_timeout",2E3);N1U=_.ZH("gel_queue_timeout_max_ms",6E4);kfy=_.ZH("gel_min_batch_size",5);Wm=void 0;IaE=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
sPn=new IaE;tGM=new IaE;ypU=new IaE;bB9=new IaE;lTU=!0;dWj=1;_.gP9=new Map;$WU=_.ZU.ytLoggingTransportTokensToCttTargetIds_||{};_.ix("ytLoggingTransportTokensToCttTargetIds_",$WU);var wNn=_.ZU.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.ix("ytLoggingTransportTokensToJspbCttTargetIds_",wNn);var CI={};var wI=_.ZU.ytLoggingGelSequenceIdObj_||{};_.ix("ytLoggingGelSequenceIdObj_",wI);var a4U=[];var f4n=new Set,Smj=0,rxn=0,ncU=0,jPl=[],Tqo=[],wKU=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var LpU=function(){};
LpU.prototype.getUrl=function(D,Y){Y=Y===void 0?!1:Y;return D.hasOwnProperty("shareEndpoint")?null:_.bHS(D,null,Y)};
var AKr=function(D,Y,R){D={endpoint:Y,actions:[]};R=(R.path?R.path[0]:R.target).icon||"";Y=R.indexOf(":");Y>0&&(R=R.substr(Y+1));R&&D.actions.push(R);return D};var UPo=/Command$/,kPr=/Endpoint$/,Nql=new Map;var FUV,GKL;FUV=1;_.Bm=function(){this.actionRoutingMap=new Map};
_.Bm.prototype.triggerAction=function(D){var Y=new So5(D,!1,_.UN.apply(1,arguments));this.handleAction(Y);return Y.returnValue};
_.Bm.prototype.triggerOptionalAction=function(D){var Y=new So5(D,!0,_.UN.apply(1,arguments));this.handleAction(Y);return Y.returnValue};
_.hH=function(D,Y,R){Y.forEach(function(Z){var t=JxU(Z);t&&D.triggerOptionalAction(t,Z,R,void 0)})};
_.Bm.prototype.handleAction=function(D){var Y=this.actionRoutingMap.get(D.actionName);Y&&GKL(D,Y);D.optionalAction||D.returnValue.length!==0||(D=new _.AT("Unhandled action",D.actionName),_.qJ(D))};
GKL=function(D,Y){Y.forEach(function(R){var Z=null;R?Z=R.apply(null,D.args):(R=Error("fd"),R.params=D.actionName,_.hQ(R));D.returnValue.push(Z)})};
_.pI=function(D,Y,R){R||(R=FUV++);for(var Z=_.a(Object.keys(Y)),t=Z.next();!t.done;t=Z.next()){t=t.value;var X=D.actionRoutingMap.get(t);X||(X=new Map,D.actionRoutingMap.set(t,X));D.registerActionHandler(R,t,Y[t],X)}return R};
_.Bm.prototype.registerActionHandler=function(D,Y,R,Z){Z.set(D,_.Lb(R))};
_.E9=function(D,Y,R){Y=_.a(Object.keys(Y));for(var Z=Y.next();!Z.done;Z=Y.next())(Z=D.actionRoutingMap.get(Z.value))&&Z.delete(R)};
_.tr(_.Bm);var HHU=function(D,Y){var R=_.Bm.getInstance();_.$s(function(){var Z={},t=_.pI(R,(Z[D]=Y,Z));_.w2(function(){var X={};_.E9(R,(X[D]="",X),t)})})};var KKM=Symbol("hd");gM9=wOo;var tVj=new Set(["For","If","Match","Watch"]),VPD={},fa1=(VPD[kd.default]=function(){return HFo},VPD.style=function(){return HFo},VPD),eo_;
for(eo_ in fa1)cB.attributes[eo_]=fa1[eo_](cB.attributes[eo_]);var RD=new _.R6("VISIBILITY_OBSERVER");var TKy={retrieve:function(D){return this.id.\u0275prov.token===D.\u0275prov.token?this.contextValue:this?_.de(this,this.id):fOn}};var rBr=function(D,Y,R){if(D!==O9)return!1;D=OHy(document.createElement("div"),function(){var Z=D1(!1);try{R[0]()}finally{D1(Z)}});
D=Array.from(D.childNodes);D.length===1&&(D=D[0]);return D};var A5U=function(D){D=D.clone();QpD(D);Am(D,"dg",null);Am(D,"d","0");q34(D,null);Hb7(D,null);return D},nF7=!0,r5U=function(D,Y,R){var Z=R===void 0?{}:R;
R=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var t=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var X=Z.extraEdges===void 0?void 0:Z.extraEdges;Z=Z.callback===void 0?void 0:Z.callback;Am(D,"m",Y.join(","));X&&P1U(D,X);R&&(Am(D,"ck",R),t?Am(D,"rs",t):nF7&&(nF7=!1));if(Z){if(Z!=null&&!Es4.test(Z))throw Error("Xa`"+Z);Am(D,"cb",Z)}D=D.toString();_.Xi(D,"/")&&(D=eKY(document.location.href)+D);return _.Af(D)};var $AL=function(D){return wO4(D).then(function(Y){return JSON.parse(Y.responseText)})},wO4=function(D){var Y={},R=Y.xmlHttpFactory?Y.xmlHttpFactory.createInstance():Mwb.createInstance();
return(new _.zz(function(Z,t){var X;try{R.open("GET",D,!0)}catch(z){t(new LK("Error opening XHR: "+z.message,D,R))}R.onreadystatechange=function(){if(R.readyState==4){_.ZU.clearTimeout(X);var z;!(z=a7L(R.status))&&(z=R.status===0)&&(z=fp1(D),z=!(z=="http"||z=="https"||z==""));z?Z(R):t(new vFY(R.status,D,R))}};
R.onerror=function(){t(new LK("Network error",D,R))};
if(Y.headers)for(var M in Y.headers){var W=Y.headers[M];W!=null&&R.setRequestHeader(M,W)}Y.withCredentials&&(R.withCredentials=Y.withCredentials);Y.responseType&&(R.responseType=Y.responseType);Y.mimeType&&R.overrideMimeType(Y.mimeType);Y.timeoutMs>0&&(X=_.ZU.setTimeout(function(){R.onreadystatechange=function(){};
R.abort();t(new oF4(D,R))},Y.timeoutMs));
try{R.send(null)}catch(z){R.onreadystatechange=function(){},_.ZU.clearTimeout(X),t(new LK("Error sending XHR: "+z.message,D,R))}})).thenCatch(function(Z){Z instanceof _.x6&&R.abort();
throw Z;})},LK=function(D,Y,R){_.Yn.call(this,D+", url="+Y);
this.url=Y;this.xhr=R};
_.XN(LK,_.Yn);LK.prototype.name="XhrError";var vFY=function(D,Y,R){LK.call(this,"Request Failed, status="+D,Y,R);this.status=D};
_.XN(vFY,LK);vFY.prototype.name="XhrHttpError";var oF4=function(D,Y){LK.call(this,"Request timed out",D,Y)};
_.XN(oF4,LK);oF4.prototype.name="XhrTimeoutError";ZD=ZD||{};var mv=function(){_.AE.call(this)};
_.XN(mv,_.AE);mv.prototype.initialize=function(){};var b21=function(D,Y){this.fn_=D;this.handler_=Y};
b21.prototype.execute=function(D){this.fn_&&(this.fn_.call(this.handler_||null,D),this.fn_=this.handler_=null)};
b21.prototype.abort=function(){this.handler_=this.fn_=null};var qF=function(D,Y){_.AE.call(this);this.deps_=D;this.JSC$10943_id_=Y;this.onloadCallbacks_=[];this.JSC$10943_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.XN(qF,_.AE);qF.prototype.moduleConstructor_=mv;qF.prototype.module_=null;qF.prototype.getId=function(){return this.JSC$10943_id_};
qF.prototype.registerCallback=function(D,Y){return y5L(this.onloadCallbacks_,D,Y)};
var NZ1=function(D,Y){y5L(D.JSC$10943_onErrorCallbacks_,Y)},y5L=function(D,Y,R){Y=new b21(Y,R);
D.push(Y);return Y};
qF.prototype.isLoaded=function(){return!!this.module_};
qF.prototype.onLoad=function(D){var Y=new this.moduleConstructor_;Y.initialize(D());this.module_=Y;Y=(Y=la7(this.earlyOnloadCallbacks_,D()))||la7(this.onloadCallbacks_,D());Y||(this.JSC$10943_onErrorCallbacks_.length=0);return Y};
qF.prototype.onError=function(D){(D=la7(this.JSC$10943_onErrorCallbacks_,D))&&tS(Error("ld`"+D));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var la7=function(D,Y){for(var R=[],Z=0;Z<D.length;Z++)try{D[Z].execute(Y)}catch(t){tS(t),R.push(t)}D.length=0;return R.length?R:null};
qF.prototype.disposeInternal=function(){qF.superClass_.disposeInternal.call(this);_.OG(this.module_)};var J5E,mA7,hoE,LUz,UAb,KUz,QRY,xA1,PlE;
_.xS=function(D,Y,R,Z,t){Z=Z===void 0?!1:Z;t=t===void 0?!1:t;var X=X===void 0?!0:X;this.scsReferenceUrl_=xsi(_.n$(D).toString(),X);this.cssRowKey_=Y;this.combinedSignature_=R;this.useNegativeLoading_=Z;this.requestedModuleMap_={};this.JSC$10946_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(D=e_(this.scsReferenceUrl_,"excm"))?D.split(","):[];this.shouldScanForCss_=t;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;PD$();_.HA(this,xJE(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
J5E=function(D,Y){if(Y.href||Y.getAttribute("data-href"))if(Y=Y.href||Y.getAttribute("data-href"),Lib(Y)&&!xsi(Y).urlPrefix_.endsWith("_/js/")){Y=xJE(xsi(Y));Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,D.loadedCssModuleList_.includes(R)||D.loadedCssModuleList_.push(R)}};
_.xS.prototype.JSC$10948_loadModules=function(D,Y,R){var Z=R===void 0?{}:R;R=Z.extraEdges;var t=Z.onError;var X=Z.onSuccess;Z=Z.forceReload;this.JSC$10946_moduleInfoMap_=Y;if(!D)throw Error("md");if(this.shouldScanForCss_){Y=_.a(document.getElementsByTagName("style"));for(var M=Y.next();!M.done;M=Y.next())J5E(this,M.value);Y=_.a(document.getElementsByTagName("link"));for(M=Y.next();!M.done;M=Y.next())J5E(this,M.value)}kKU(this,UAb(this,D),R,t,X,Z)};
var kKU=function(D,Y,R,Z,t,X){Z=Z===void 0?function(){}:Z;
t=t===void 0?function(){}:t;
X=X===void 0?!1:X;KUz(D,Y,function(M,W,z){z=z===void 0?W:z;D.enableFallbackFetch&&X?D.loadWithFetch(M,W,Z,t,z):D.load(M,W,Z,t,z,R)},R)||Z(-1)};
_.xS.prototype.loadWithFetch=function(){_.C(function(){throw Error("nd");})};
_.xS.prototype.maybeSetAdditionalFields=function(){};
mA7=function(D,Y,R){if(D.useNegativeLoading_){var Z=D.scsReferenceUrl_;D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,extraEdges:R,requestedModuleIds:hoE(D),requestedCssModuleIds:LUz(D)};var t=D===void 0?{}:D;D=t.requestedModuleIds===void 0?[]:t.requestedModuleIds;R=t.requestedCssModuleIds===void 0?[]:t.requestedCssModuleIds;var X=t.cssRowKey===void 0?void 0:t.cssRowKey;var M=t.combinedSignature===void 0?void 0:t.combinedSignature;var W=t.extraEdges===void 0?void 0:t.extraEdges;
t=t.callback===void 0?void 0:t.callback;Z=A5U(Z);Am(Z,"d","1");q34(Z,D);Hb7(Z,R);Y=r5U(Z,Y,{cssRowKey:X,combinedSignature:M,extraEdges:W,callback:t})}else Z=D.scsReferenceUrl_,D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,requestedModuleIds:hoE(D),requestedCssModuleIds:LUz(D)},W=D===void 0?{}:D,D=W.requestedCssModuleIds===void 0?[]:W.requestedCssModuleIds,R=W.cssRowKey===void 0?void 0:W.cssRowKey,X=W.combinedSignature===void 0?void 0:W.combinedSignature,M=W.extraEdges===void 0?
void 0:W.extraEdges,W=W.callback===void 0?void 0:W.callback,Z=A5U(Z),Hb7(Z,D),Y=r5U(Z,Y,{cssRowKey:R,combinedSignature:X,extraEdges:M,callback:W});return Y};
_.HA=function(D,Y){for(var R=!1,Z=[],t=0;t<Y.length;++t){var X=Y[t];D.requestedModuleMap_[X]||(D.requestedModuleMap_[X]=!0,D.requestedModuleList_.push(X),R=!0,Z.push(X))}R&&(D.requestedModuleListSorted_=!1)};
_.PA=function(D,Y){for(var R=[],Z=0;Z<Y.length;++Z){var t=Y[Z];D.requestedModuleMap_[t]&&(delete D.requestedModuleMap_[t],_.m5(D.requestedModuleList_,t),R.push(t))}};
_.xS.prototype.load=function(D,Y,R,Z,t){t=t===void 0?Y:t;_.n$(D);var X=this.useCors_,M=this.corsMode_,W=this.fetchPriority,z=_.I0("SCRIPT");_.dg(z,D);X&&(z.crossOrigin=M);z.async=!1;W&&z.setAttribute("fetchpriority",W);_.HA(this,Y);_.qdz(this,D,z,Y,R,Z,t)};
_.qdz=function(D,Y,R,Z,t,X,M){M=M===void 0?Z:M;D.lastScript_=R;D.insertPos.insertBefore(R,D.insertPos.firstChild);_.H2z(R,Z,function(){R.parentElement.removeChild(R);D.lastScript_==R&&(D.lastScript_=null);var W=new Set;Z.map(function(I){return W.add(I)});
for(var z in D.JSC$10946_moduleInfoMap_)D.JSC$10946_moduleInfoMap_[z].isLoaded()&&W.add(z);Array.from(W);X()},function(W){R.parentElement.removeChild(R);
D.lastScript_==R&&(D.lastScript_=null);_.PA(D,W);D.pendingModuleGraphUpdate_?D.pendingModuleGraphUpdate_.then(function(){t(-1,Y)}):t(-1,Y)},M)};
_.H2z=function(D,Y,R,Z,t){t=t===void 0?Y:t;var X=Y.length,M=function(){X=0;D.onload=null;D.onerror=null;W=function(){}},W=function(){M();
var I=t.filter(function(F){return!o0().getModuleInfo(F).isLoaded()});
I.length!==0?Z(I,"Response was successful but was missing module(s) "+I+"."):R()},z=function(){X--;
X==0&&W()};
Y.forEach(function(I){I=o0().getModuleInfo(I);I.isLoaded()?z():(y5L(I.earlyOnloadCallbacks_,z),NZ1(I,z))});
D.onload=function(){return W()};
D.onerror=function(){M();Z(Y)}};
hoE=function(D){D.requestedModuleListSorted_||(D.requestedModuleListSorted_=!0,D.requestedModuleList_.sort());return D.requestedModuleList_};
LUz=function(D){D=D.loadedCssModuleList_;D.sort();return D};
UAb=function(D,Y){return Y.filter(function(R){return!D.requestedModuleMap_[R]})};
KUz=function(D,Y,R,Z){if(D.pendingModuleGraphUpdate_)return D.pendingModuleGraphUpdate_.then(function(){KUz(D,Y,R,Z)}),!0;
if(!D.useNegativeLoading_){var t=[],X=Object.assign({},D.requestedModuleMap_);xA1(D,Y,function(F){t.push(F.getId())},Z,function(F){return!F.isLoaded()},X);
Y=t}for(X=0;X<Y.length;){for(var M=Y.length-X,W=X==0?Y:Y.slice(X,Y.length),z=mA7(D,W,Z),I=_.n$(z).toString();I.length>D.urlMaxLength;)if(M>1)M-=Math.ceil((I.length-D.urlMaxLength)/6),M=Math.max(M,1),W=Y.slice(X,X+M),z=mA7(D,W,Z),I=_.n$(z).toString();else return D.useNegativeLoading_?(D.useNegativeLoading_=!1,D.pendingModuleGraphUpdate_=PlE(D).then(function(F){QRY(D,F,Z)}),KUz(D,Y.slice(X),R,Z)):!1;
X+=M;D.useNegativeLoading_?R(z,W):R(z,W,X===Y.length?Y:[])}return!0};
QRY=function(D,Y,R){o0().setAllModuleInfoString((Y||{}).moduleGraph);xA1(D,hoE(D),function(Z){_.HA(D,[Z.getId()])},R);
D.pendingModuleGraphUpdate_=null};
xA1=function(D,Y,R,Z,t,X){X=X===void 0?{}:X;var M=o0();Y=_.a(Y);for(var W=Y.next();!W.done;W=Y.next()){W=W.value;var z=M.getModuleInfo(W);if(!(X[W]||t&&!t(z))){X[W]=!0;var I=z.deps_||[];if(Z){var F=[];Z[W]&&(F=Object.keys(Z[W]));I=I.concat(F)}xA1(D,I,R,Z,t,X);R(z)}}};
PlE=function(D){D=D.scsReferenceUrl_.clone();QpD(D);Am(D,"dg",null);Am(D,"md","1");return $AL(D.toString())};var Fuj=new Uint8Array(123);var BZb=[];var pOU=function(){this.JSC$10022_loader_=null};
_.u=pOU.prototype;_.u.setBatchModeEnabled=function(){};
_.u.setAllModuleInfoString=function(){};
_.u.addExtraEdge=function(){throw Error("od");};
_.u.removeExtraEdge=function(){throw Error("pd");};
_.u.getModuleContext=function(){return null};
_.u.isActive=function(){return!1};
_.u.isUserActive=function(){return!1};
_.u.registerCallback=function(){};var QN=function(D,Y,R,Z,t){var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.name="ModuleLoadFailure";this.type=D;this.status=Y;this.requestedModuleIds=R;this.url=Z;this.cause=t;this.message=this.toString()};
_.n(QN,Error);QN.prototype.toString=function(){return EFE(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var EFE=function(D){switch(D.type){case QN.Type.UNAUTHORIZED:return"Unauthorized";case QN.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case QN.Type.TIMEOUT:return"Timed out";case QN.Type.OLD_CODE_GONE:return"Out of date module id";case QN.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+D.type}};
ZD.ModuleLoadFailure=QN;ZD.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var BA=function(){this.moduleIds_=this.JSC$10022_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10961_extraEdges_={};this.JSC$10961_callbackMap_={};this.JSC$10961_currentlyLoadingModule_=this.baseModuleInfo_=new qF([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new BP;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.XN(BA,pOU);var gF_=function(D,Y){_.Yn.call(this,"Error loading "+D+": "+Y)};
_.XN(gF_,_.Yn);BA.prototype.setBatchModeEnabled=function(D){this.batchModeEnabled_=D};
BA.prototype.setAllModuleInfoString=function(D,Y){if(!(this instanceof BA))this.setAllModuleInfoString(D,Y);else if(typeof D==="string"){if(D.startsWith("d$")){D=D.substring(2);for(var R=[],Z=0,t=D.indexOf("/"),X=0,M=!1,W=0;;){var z=M?D.substring(X):D.substring(X,t);if(z.length===0)Z++,X="sy"+Z.toString(36),z=[];else{var I=z.indexOf(":");if(I<0)X=z,z=[];else if(I===z.length-1)X=z.substring(0,I),z=Array(R[W-1]);else{X=z.substring(0,I);z=z.substring(I+1).split(",");I=W;for(var F=0;F<z.length;F++)I-=
z[F].length===0?1:Number(z[F]),z[F]=R[I]}I=0;if(X.length===0)I=1;else if(X.charAt(0)==="+"||X.charAt(0)==="-")I=Number(X);I!==0&&(Z+=I,X="sy"+Z.toString(36))}R.push(X);dAb(this,X,z);if(M)break;X=t+1;t=D.indexOf("/",X);t===-1&&(M=!0);W++}this.moduleIds_=R}else if(D.startsWith("p$"))i2b(this,D);else{D=D.split("/");R=[];for(Z=0;Z<D.length;Z++){W=D[Z].split(":");t=W[0];M=[];if(W[1])for(M=W[1].split(","),W=0;W<M.length;W++)M[W]=R[parseInt(M[W],36)];R.push(t);dAb(this,t,M)}this.moduleIds_=R}Y&&Y.length?
(_.Po(this.loadingModuleIds_,Y),this.lastInitialModuleId_=_.N$(Y)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10961_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10961_currentlyLoadingModule_=null,(Y=this.baseModuleInfo_.onLoad((0,_.nG)(this.getModuleContext,this)))&&Y.length&&O2L(this,new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,Y[0])),pK(this))}};
var i2b=function(D,Y){var R=Y.substring(2);for(Y=0;Y<64;Y++)Fuj["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(Y)]=Y;var Z={buf:R,pos:0};sw(Z);var t=sw(Z),X=sw(Z)+1;Y=Array(t);var M=Array(t),W=Array(t);X=Array(X);var z=0,I=0,F=Z.pos,G=Z.buf.indexOf("|",Z.pos);Z.pos=G+1;for(G=0;G<t;G++){var V=sw(Z),e=V&2,r=V&1;V>>>=2;r?(z+=V>>>1^-(V&1),V="sy"+z.toString(36)):(r=F,F+=V,V=R.substring(r,F));Y[G]=V;e&&(X[I++]=V)}X[I]="";Z.pos++;I=t&-2;R=t&1;for(z=0;z<I;z+=2)F=GbS(Z),W[z]=
F&7,W[z+1]=F>>>3&7;R&&(R=GbS(Z),W[I]=R&7);Z.pos++;for(I=0;I<t;I++)W[I]===7&&(W[I]=sw(Z));Z.pos++;for(R=I=0;R<t;R++){z=W[R];F=z===0?BZb:Array(z);M[R]=F;G=I;for(e=0;e<z;e++)G-=sw(Z),F[e]=X[G];X[I]===Y[R]&&I++}for(Z=0;Z<Y.length;Z++)dAb(D,Y[Z],M[Z]);D.moduleIds_=Y};
_.u=BA.prototype;_.u.getModuleInfo=function(D){return this.moduleInfoMap[D]};
_.u.addExtraEdge=function(D,Y){var R=this.getModuleInfo(D);R&&R.isLoaded()?this.load(Y):(this.JSC$10961_extraEdges_[D]||(this.JSC$10961_extraEdges_[D]={}),this.JSC$10961_extraEdges_[D][Y]=!0)};
_.u.removeExtraEdge=function(D,Y){if(this.JSC$10961_extraEdges_[D]){delete this.JSC$10961_extraEdges_[D][Y];for(var R in this.JSC$10961_extraEdges_[D])return;delete this.JSC$10961_extraEdges_[D]}};
_.u.isActive=function(){return this.loadingModuleIds_.length>0};
_.u.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var pK=function(D){var Y=D.lastActive_,R=D.isActive();R!=Y&&(D.executeCallbacks_(R?"active":"idle"),D.lastActive_=R);Y=D.isUserActive();Y!=D.userLastActive_&&(D.executeCallbacks_(Y?"userActive":"userIdle"),D.userLastActive_=Y)},dAb=function(D,Y,R){D.moduleInfoMap[Y]?(D=D.moduleInfoMap[Y].deps_,D!=R&&D.splice.apply(D,[0,
D.length].concat(_.oK(R)))):D.moduleInfoMap[Y]=new qF(R,Y)},DXE=function(D,Y,R){var Z=[];
$$n(Y,Z);Y=[];for(var t={},X=0;X<Z.length;X++){var M=Z[X],W=D.getModuleInfo(M);if(!W)throw Error("qd`"+M);var z=new BP;t[M]=z;W.isLoaded()?z.callback(null):(c54(D,M,W,!!R,z),D.isModuleLoading(M)||Y.push(M))}Y.length>0&&(D.loadingModuleIds_.length===0?D.loadModules_(Y):(D.requestedModuleIdsQueue_.push(Y),pK(D)));return t},c54=function(D,Y,R,Z,t){R.registerCallback(t.callback,t);
NZ1(R,function(X){t.errback(new gF_(Y,X))});
D.isModuleLoading(Y)?Z&&(Y7U(D,Y),pK(D)):Z&&Y7U(D,Y)};
BA.prototype.loadModules_=function(D,Y,R){var Z=this;Y||(this.consecutiveFailures_=0);var t=RbU(this,D);this.loadingModuleIds_=t;this.requestedLoadingModuleIds_=this.batchModeEnabled_?D:_.q$(t);pK(this);if(t.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,t);if(Object.keys(this.JSC$10961_extraEdges_).length>0&&!this.JSC$10022_loader_.supportsExtraEdges)throw Error("rd");D=(0,_.nG)(this.JSC$10022_loader_.JSC$10948_loadModules,this.JSC$10022_loader_,_.q$(t),this.moduleInfoMap,
{extraEdges:this.JSC$10961_extraEdges_,forceReload:!!R,onError:function(X,M){var W=Z.requestedLoadingModuleIds_;X=X!=null?X:void 0;Z.consecutiveFailures_++;var z=_.q$(t);Z.requestedLoadingModuleIds_=W;t.forEach(_.A4(_.m5,Z.requestedModuleIds_),Z);X==401?(O2L(Z,new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.UNAUTHORIZED,X)),Z.requestedModuleIdsQueue_.length=0):X==410?(ZXb(Z,new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.OLD_CODE_GONE,X)),te4(Z)):Z.consecutiveFailures_>=3?(ZXb(Z,new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
X,z,M)),te4(Z)):Z.loadModules_(Z.requestedLoadingModuleIds_,!0,X==8001||!1)},
onTimeout:(0,_.nG)(this.handleLoadTimeout_,this)});(Y=Math.pow(this.consecutiveFailures_,2)*5E3)?_.ZU.setTimeout(D,Y):D()}};
var RbU=function(D,Y){Y=Y.filter(function(t){return D.moduleInfoMap[t].isLoaded()?(_.ZU.setTimeout(function(){return Error("sd`"+t)},0),!1):!0});
for(var R=[],Z=0;Z<Y.length;Z++)R=R.concat(sbz(D,Y[Z]));$$n(R);return!D.batchModeEnabled_&&R.length>1?(Y=R.shift(),D.requestedModuleIdsQueue_=R.map(function(t){return[t]}).concat(D.requestedModuleIdsQueue_),[Y]):R},sbz=function(D,Y){var R=_.y7.createSet(D.requestedModuleIds_),Z=[];
R[Y]||Z.push(Y);Y=[Y];for(var t=0;t<Y.length;t++)for(var X=D.getModuleInfo(Y[t]).deps_,M=X.length-1;M>=0;M--){var W=X[M];D.getModuleInfo(W).isLoaded()||R[W]||(Z.push(W),Y.push(W))}Z.reverse();$$n(Z);return Z};
BA.prototype.JSC$10956_setLoaded=function(){if(this.JSC$10961_currentlyLoadingModule_){var D=this.JSC$10961_currentlyLoadingModule_.getId(),Y=[];if(this.JSC$10961_extraEdges_[D]){for(var R=_.a(Object.keys(this.JSC$10961_extraEdges_[D])),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=this.getModuleInfo(Z);t&&!t.isLoaded()&&(this.removeExtraEdge(D,Z),Y.push(Z))}this.loadMultiple(Y)}this.isDisposed()||((Y=this.moduleInfoMap[D].onLoad((0,_.nG)(this.getModuleContext,this)))&&Y.length&&O2L(this,new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,Y[0])),_.m5(this.userInitiatedLoadingModuleIds_,D),_.m5(this.loadingModuleIds_,D),this.loadingModuleIds_.length===0&&te4(this),this.lastInitialModuleId_&&D==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),pK(this),this.JSC$10961_currentlyLoadingModule_=null)}};
BA.prototype.isModuleLoading=function(D){if(_.LM(this.loadingModuleIds_,D))return!0;for(var Y=0;Y<this.requestedModuleIdsQueue_.length;Y++)if(_.LM(this.requestedModuleIdsQueue_[Y],D))return!0;return!1};
BA.prototype.load=function(D,Y){return DXE(this,[D],Y)[D]};
BA.prototype.loadMultiple=function(D){return DXE(this,D)};
var Y7U=function(D,Y){_.LM(D.userInitiatedLoadingModuleIds_,Y)||D.userInitiatedLoadingModuleIds_.push(Y)};
BA.prototype.beforeLoadModuleCode=function(D){var Y=this;this.JSC$10961_currentlyLoadingModule_&&this.JSC$10961_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10956_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[D]&&XC7(this,this.moduleInfoMap[D].deps_||[],function(R){R.module_=new mv;_.m5(Y.loadingModuleIds_,R.getId())},function(R){return!R.isLoaded()});
this.JSC$10961_currentlyLoadingModule_=this.getModuleInfo(D)};
BA.prototype.handleLoadTimeout_=function(){ZXb(this,new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.TIMEOUT));te4(this)};
var ZXb=function(D,Y){D.requestedLoadingModuleIds_.length>1?D.requestedModuleIdsQueue_=D.requestedLoadingModuleIds_.map(function(R){return[R]}).concat(D.requestedModuleIdsQueue_):O2L(D,Y)},O2L=function(D,Y){var R=D.requestedLoadingModuleIds_;
D.loadingModuleIds_.length=0;for(var Z=[],t=0;t<D.requestedModuleIdsQueue_.length;t++){var X=D.requestedModuleIdsQueue_[t].filter(function(z){var I=sbz(this,z);return Qc(R,function(F){return _.LM(I,F)})},D);
_.Po(Z,X)}for(t=0;t<R.length;t++)_.AS9(Z,R[t]);for(t=0;t<Z.length;t++){for(X=0;X<D.requestedModuleIdsQueue_.length;X++)_.m5(D.requestedModuleIdsQueue_[X],Z[t]);_.m5(D.userInitiatedLoadingModuleIds_,Z[t])}if(t=D.JSC$10961_callbackMap_.error)for(X=0;X<t.length;X++)for(var M=t[X],W=0;W<Z.length;W++)M("error",Z[W],Y);for(Z=0;Z<R.length;Z++)if(D.moduleInfoMap[R[Z]])D.moduleInfoMap[R[Z]].onError(Y);D.requestedLoadingModuleIds_.length=0;pK(D)},te4=function(D){for(;D.requestedModuleIdsQueue_.length;){var Y=
D.requestedModuleIdsQueue_.shift().filter(function(R){return!this.getModuleInfo(R).isLoaded()},D);
if(Y.length>0){D.loadModules_(Y);return}}pK(D)};
BA.prototype.registerCallback=function(D,Y){Array.isArray(D)||(D=[D]);for(var R=0;R<D.length;R++){var Z=D[R],t=Y,X=this.JSC$10961_callbackMap_;X[Z]||(X[Z]=[]);X[Z].push(t)}};
BA.prototype.executeCallbacks_=function(D){for(var Y=this.JSC$10961_callbackMap_[D],R=0;Y&&R<Y.length;R++)Y[R](D)};
var XC7=function(D,Y,R,Z,t){Z=Z===void 0?function(){return!0}:Z;
t=t===void 0?{}:t;Y=_.a(Y);for(var X=Y.next();!X.done;X=Y.next()){X=X.value;var M=D.getModuleInfo(X);!t[X]&&Z(M)&&(t[X]=!0,XC7(D,M.deps_||[],R,Z,t),R(M))}};
BA.prototype.dispose=function(){_.c8(_.y7.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10961_callbackMap_={};this.isDisposed_=!0};
BA.prototype.isDisposed=function(){return this.isDisposed_};
_.vB=function(){return new BA};var uaD=[5E3,2E4],aiY=function(){this.JSC$10022_loader_=null;this.JSC$10969_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10969_queue_=[];this.JSC$10969_extraEdges_=Object.create(null);this.JSC$10969_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.n(aiY,pOU);_.u=aiY.prototype;_.u.setAllModuleInfoString=function(){this.JSC$10969_currentlyLoadingModule_&&this.JSC$10969_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10956_setLoaded()};
_.u.getModuleInfo=function(D){var Y=this.JSC$10969_moduleInfoMap_[D];Y||(Y=new qF([],D),this.JSC$10969_moduleInfoMap_[D]=Y);return Y};
_.u.addExtraEdge=function(D,Y){this.getModuleInfo(D).isLoaded()?this.load(Y):(this.JSC$10969_extraEdges_[D]||(this.JSC$10969_extraEdges_[D]={}),this.JSC$10969_extraEdges_[D][Y]=!0)};
_.u.removeExtraEdge=function(D,Y){if(this.JSC$10969_extraEdges_[D]){delete this.JSC$10969_extraEdges_[D][Y];for(var R in this.JSC$10969_extraEdges_[D])return;delete this.JSC$10969_extraEdges_[D]}};
_.u.isModuleLoading=function(D){return!!this.loadingModules_[D]};
_.u.load=function(D){MeD(this,[D]);return CiE(this,D)};
_.u.loadMultiple=function(D){var Y=this,R=Object.create(null),Z=[];D.forEach(function(t){R[t]||(R[t]=CiE(Y,t),Z.push(t))});
MeD(this,Z);return R};
_.u.beforeLoadModuleCode=function(D){var Y;((Y=this.JSC$10969_currentlyLoadingModule_)==null?void 0:Y.getId())==="synthetic_module_overhead"&&this.JSC$10956_setLoaded();var R,Z;W34(this,(Z=(R=this.JSC$10969_moduleInfoMap_[D])==null?void 0:R.deps_)!=null?Z:[],function(t){t.module_=new mv},function(t){return!t.isLoaded()});
this.JSC$10969_currentlyLoadingModule_=this.getModuleInfo(D)};
_.u.JSC$10956_setLoaded=function(){if(this.JSC$10969_currentlyLoadingModule_){var D=this.JSC$10969_currentlyLoadingModule_.getId(),Y=[];if(this.JSC$10969_extraEdges_[D]){for(var R=_.a(Object.keys(this.JSC$10969_extraEdges_[D])),Z=R.next();!Z.done;Z=R.next())Z=Z.value,this.getModuleInfo(Z).isLoaded()||(this.removeExtraEdge(D,Z),Y.push(Z));this.loadMultiple(Y)}this.JSC$10969_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10969_currentlyLoadingModule_=null;(!this.isModuleLoading(D)&&/^sy[0-9a-z]{0,4}$/.test(D)||D==="synthetic_module_overhead")&&delete this.JSC$10969_moduleInfoMap_[D];this.unsetModulesAsLoading(D)}};
_.u.setModulesAsLoading=function(){var D=this;_.UN.apply(0,arguments).forEach(function(Y){D.loadingModules_[Y]=!0})};
_.u.unsetModulesAsLoading=function(){var D=this;_.UN.apply(0,arguments).forEach(function(Y){delete D.loadingModules_[Y]})};
var CiE=function(D,Y){return new _.zz(function(R,Z){var t=D.getModuleInfo(Y);t.isLoaded()?R(null):(t.registerCallback(function(){R(null)}),NZ1(t,function(X){var M="Error loading "+Y+": "+X;
X instanceof ZD.ModuleLoadFailure&&X.url&&(M=M+", requested url: "+X.url.toString());Z(Error(M))}))})},MeD=function(D,Y){Y=Y.filter(function(R){return!D.isModuleLoading(R)&&!D.getModuleInfo(R).isLoaded()});
Y.length>0&&(D.setModulesAsLoading.apply(D,_.oK(Y)),D.JSC$10969_queue_.push(Y),zbz(D))},zbz=function(D){for(var Y={};D.activeLoads_<Infinity&&D.JSC$10969_queue_.length>0;Y={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})Y.ids$jscomp$36=D.JSC$10969_queue_.shift().filter(function(R){return!D.getModuleInfo(R).isLoaded()}),Y.ids$jscomp$36.length>0&&(D.activeLoads_++,Y.finishLoad=function(R){return function(){D.activeLoads_--;
zbz(D);R.finishLoad=function(){}}}(Y),_.w3(Y.ids$jscomp$36.map(function(R){return CiE(D,R)})).then(function(R){return function(){(0,R.finishLoad)()}}(Y)),Y.attempt$jscomp$6=0,Y.load$jscomp$1=function(R){return function(){if(Object.keys(D.JSC$10969_extraEdges_).length>0&&!D.JSC$10022_loader_.supportsExtraEdges)throw Error("rd");
D.JSC$10022_loader_.JSC$10948_loadModules(R.ids$jscomp$36,D.JSC$10969_moduleInfoMap_,{extraEdges:D.JSC$10969_extraEdges_,onError:function(Z,t){var X=uaD[R.attempt$jscomp$6++];X!==void 0?setTimeout(function(){(0,R.load$jscomp$1)()},X):(D.unsetModulesAsLoading.apply(D,_.oK(R.ids$jscomp$36)),(0,R.finishLoad)(),R.ids$jscomp$36.forEach(function(M){M=D.getModuleInfo(M);
if(!M.isLoaded())M.onError(new ZD.ModuleLoadFailure(ZD.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,Z,R.ids$jscomp$36,t))}))}})}}(Y),(0,Y.load$jscomp$1)())},W34=function(D,Y,R,Z,t){Z=Z===void 0?function(){return!0}:Z;
t=t===void 0?{}:t;Y=_.a(Y);for(var X=Y.next();!X.done;X=Y.next()){X=X.value;var M=D.getModuleInfo(X);!t[X]&&Z(M)&&(t[X]=!0,W34(D,M.deps_||[],R,Z,t),R(M))}};var S7V=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var fxi=Symbol("ud");window.JSCompiler_renameProperty=function(D){return D};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var TCz=!S7V||HTMLElement.es5Shimmed||_.ZU.Reflect===void 0||_.ZU.customElements===void 0||_.ZU.customElements.polyfillWrapFlushCallback||!1,jbE,gRU=function(){var D=HTMLElement;if(TCz)return D;if(jbE!==void 0)return jbE;var Y=_.ZU.Reflect,R=function(){return Y.construct(D,[],this.constructor)};
R.prototype=D.prototype;R.prototype.constructor=R;R.es5Shimmed=!0;Object.setPrototypeOf(R,D);return jbE=R},IiE=!1;TCz||IiE||(IiE=!0,_.ZU.HTMLElement=gRU());/*

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 wlj=/(url\()([^)]*)(\))/g,n6i=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,rRS,Xo;var Hy=!window.ShadyDOM||!window.ShadyDOM.inUse,F3E=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),GA7=!window.customElements.polyfillWrapFlushCallback,VeL;if(VeL=Hy&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var fiU=new CSSStyleSheet;fiU.replaceSync("");var ebz=document.createElement("div");ebz.attachShadow({mode:"open"});ebz.shadowRoot.adoptedStyleSheets=[fiU];VeL=ebz.shadowRoot.adoptedStyleSheets[0]===fiU}catch(D){VeL=!1}
var A4U=VeL,n8E=window.Polymer&&window.Polymer.rootPath||v65(document.baseURI||window.location.href),fF=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Uiy=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,By=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,r4E=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,q7=window.Polymer&&window.Polymer.legacyOptimizations||!1,Qt=window.Polymer&&window.Polymer.legacyWarnings||!1,wC1=window.Polymer&&window.Polymer.syncInitialRender||
!1,nF=window.Polymer&&window.Polymer.legacyUndefined||!1,$X_=window.Polymer&&window.Polymer.orderedComputed||!1,EF=window.Polymer&&window.Polymer.removeNestedTemplates||!1,gk=window.Polymer&&window.Polymer.fastDomIf||!1,dk=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,v84=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,o8U=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var iR={},bXL={},wu=function(){return HTMLElement.apply(this,arguments)||this};
_.n(wu,HTMLElement);wu.import=function(D,Y){return D?(D=iR[D]||bXL[D.toLowerCase()])&&Y?D.querySelector(Y):D:null};
wu.prototype.attributeChangedCallback=function(D,Y,R){Y!==R&&this.register()};
wu.prototype.register=function(D){if(D=D||this.id){if(By&&(iR[D]||bXL[D.toLowerCase()])!==void 0)throw iR[D]=bXL[D.toLowerCase()]=null,Error("vd`"+D);this.id=D;iR[D]=bXL[D.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.YF.Object.defineProperties(wu.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var D=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;D=_.uy(this.getAttribute("assetpath")||"",D.baseURI);this.__assetpath=v65(D)}return this.__assetpath}}});
_.YF.Object.defineProperties(wu,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
wu["import"]=wu.import;wu.prototype.modules=iR;customElements.define("dom-module",wu);var y4E=0,b9n=0,aD=[],NCL=0,o6y=!1,li4=document.createTextNode(""),J4z,LF;(new window.MutationObserver(yRU)).observe(li4,{characterData:!0});_.OF={after:function(D){return{run:function(Y){return window.setTimeout(Y,D)},
cancel:function(Y){window.clearTimeout(Y)}}},
run:function(D,Y){return window.setTimeout(D,Y)},
cancel:function(D){window.clearTimeout(D)}};
_.NI={run:function(D){return window.requestAnimationFrame(D)},
cancel:function(D){window.cancelAnimationFrame(D)}};
J4z={run:function(D){return window.requestIdleCallback?window.requestIdleCallback(D):window.setTimeout(D,16)},
cancel:function(D){window.cancelIdleCallback?window.cancelIdleCallback(D):window.clearTimeout(D)}};
LF={run:function(D){o6y||(o6y=!0,li4.textContent=NCL++);aD.push(D);return y4E++},
cancel:function(D){var Y=D-b9n;if(Y>=0){if(!aD[Y])throw Error("wd`"+D);aD[Y]=null}}};var kAz=0,cA=function(D){var Y=D.__mixinApplications;Y||(Y=new WeakMap,D.__mixinApplications=Y);var R=kAz++;return function(Z){var t=Z.__mixinSet;if(t&&t[R])return Z;var X=Y,M=X.get(Z);M||(M=D(Z),X.set(Z,M),Z=Object.create(M.__mixinSet||t||null),Z[R]=!0,M.__mixinSet=Z);return M}};_.Vt=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(D){return ShadyDOM.patch(D)}:function(D){return D};var UX4=cA(function(D){var Y=function(){var R=D.call(this)||this;R.__dataEnabled=!1;R.__dataReady=!1;R.__dataInvalid=!1;R.__data={};R.__dataPending=null;R.__dataOld=null;R.__dataInstanceProps=null;R.__dataCounter=0;R.__serializing=!1;R._initializeProperties();return R};
_.n(Y,D);Y.createProperties=function(R){var Z=this.prototype,t;for(t in R)t in Z||Z._createPropertyAccessor(t)};
Y.attributeNameForProperty=function(R){return R.toLowerCase()};
Y.typeForProperty=function(){};
Y.prototype._createPropertyAccessor=function(R,Z){this._addPropertyToAttributeMap(R);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[R]||(this.__dataHasAccessor[R]=!0,this._definePropertyAccessor(R,Z))};
Y.prototype._addPropertyToAttributeMap=function(R){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Z=this.__dataAttributes[R];Z||(Z=this.constructor.attributeNameForProperty(R),this.__dataAttributes[Z]=R);return Z};
Y.prototype._definePropertyAccessor=function(R,Z){Object.defineProperty(this,R,{get:function(){return this.__data[R]},
set:Z?function(){}:function(t){this._setPendingProperty(R,t,!0)&&this._invalidateProperties()}})};
Y.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
Y.prototype._initializeProperties=function(){for(var R in this.__dataHasAccessor)this.hasOwnProperty(R)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[R]=this[R],delete this[R])};
Y.prototype._initializeInstanceProperties=function(R){Object.assign(this,R)};
Y.prototype._setProperty=function(R,Z){this._setPendingProperty(R,Z)&&this._invalidateProperties()};
Y.prototype._getProperty=function(R){return this.__data[R]};
Y.prototype._setPendingProperty=function(R,Z){var t=this.__data[R],X=this._shouldPropertyChange(R,Z,t);X&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||R in this.__dataOld||(this.__dataOld[R]=t),this.__data[R]=Z,this.__dataPending[R]=Z);return X};
Y.prototype._isPropertyPending=function(R){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(R))};
Y.prototype._invalidateProperties=function(){var R=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,LF.run(function(){R.__dataInvalid&&(R.__dataInvalid=!1,R._flushProperties())}))};
Y.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
Y.prototype._flushProperties=function(){this.__dataCounter++;var R=this.__data,Z=this.__dataPending,t=this.__dataOld;this._shouldPropertiesChange(R,Z,t)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(R,Z,t));this.__dataCounter--};
Y.prototype._shouldPropertiesChange=function(R,Z){return!!Z};
Y.prototype._propertiesChanged=function(){};
Y.prototype._shouldPropertyChange=function(R,Z,t){return t!==Z&&(t===t||Z===Z)};
Y.prototype.attributeChangedCallback=function(R,Z,t,X){Z!==t&&this._attributeToProperty(R,t);D.prototype.attributeChangedCallback&&D.prototype.attributeChangedCallback.call(this,R,Z,t,X)};
Y.prototype._attributeToProperty=function(R,Z,t){if(!this.__serializing){var X=this.__dataAttributes;R=X&&X[R]||R;this[R]=this._deserializeValue(Z,t||this.constructor.typeForProperty(R))}};
Y.prototype._propertyToAttribute=function(R,Z,t){this.__serializing=!0;t=arguments.length<3?this[R]:t;this._valueToNodeAttribute(this,t,Z||this.constructor.attributeNameForProperty(R));this.__serializing=!1};
Y.prototype._valueToNodeAttribute=function(R,Z,t){Z=this._serializeValue(Z);if(t==="class"||t==="name"||t==="slot")R=(0,_.Vt)(R);Z===void 0?R.removeAttribute(t):R.setAttribute(t,Z===""&&window.trustedTypes?window.trustedTypes.emptyScript:Z)};
Y.prototype._serializeValue=function(R){switch(typeof R){case "boolean":return R?"":void 0;default:return R!=null?R.toString():void 0}};
Y.prototype._deserializeValue=function(R,Z){switch(Z){case Boolean:return R!==null;case Number:return Number(R);default:return R}};
return Y});var K3D=0,NK9=[];var hbV=cA(function(D){function Y(X){X=Object.getPrototypeOf(X);return X.prototype instanceof t?X:null}
function R(X){if(!X.hasOwnProperty("__ownProperties")){var M=null;if(X.hasOwnProperty("properties")){var W=X.properties;if(W){M={};for(var z in W){var I=W[z];M[z]=typeof I==="function"?{type:I}:I}}}X.__ownProperties=M}return X.__ownProperties}
var Z=UX4(D),t=function(){return Z.apply(this,arguments)||this};
_.n(t,Z);t.finalize=function(){if(!this.hasOwnProperty("__finalized")){var X=Y(this);X&&X.finalize();this.__finalized=!0;this._finalizeClass()}};
t._finalizeClass=function(){var X=R(this);X&&this.createProperties(X)};
t.typeForProperty=function(X){return(X=this._properties[X])&&X.type};
t.prototype._initializeProperties=function(){K3D++;this.constructor.finalize();Z.prototype._initializeProperties.call(this)};
t.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this._enableProperties()};
t.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this)};
_.YF.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var X=this;if(!this.hasOwnProperty("__observedAttributes")){lxU(this.prototype);var M=this._properties;this.__observedAttributes=M?Object.keys(M).map(function(W){return X.prototype._addPropertyToAttributeMap(W)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var X=Y(this);this.__properties=Object.assign({},X&&X._properties,R(this))}return this.__properties}}});
return t});var JRU={},kbM=/-[a-z]/g,UVl=/([A-Z])/g;for(var L3U={},mXE=HTMLElement.prototype;mXE;){for(var q7E=Object.getOwnPropertyNames(mXE),HXE=0;HXE<q7E.length;HXE++)L3U[q7E[HXE]]=!0;mXE=Object.getPrototypeOf(mXE)}var xXz=window.trustedTypes?function(D){return trustedTypes.isHTML(D)||trustedTypes.isScript(D)||trustedTypes.isScriptURL(D)}:function(){return!1},Pi_=cA(function(D){var Y=UX4(D);
D=function(){return Y.apply(this,arguments)||this};
_.n(D,Y);D.createPropertiesForAttributes=function(){for(var R=this.observedAttributes,Z=0;Z<R.length;Z++)this.prototype._createPropertyAccessor(M7(R[Z]))};
D.attributeNameForProperty=function(R){return CF(R)};
D.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);Y.prototype._initializeProperties.call(this)};
D.prototype._initializeProtoProperties=function(R){for(var Z in R)this._setProperty(Z,R[Z])};
D.prototype._ensureAttribute=function(R,Z){this.hasAttribute(R)||this._valueToNodeAttribute(this,Z,R)};
D.prototype._serializeValue=function(R){switch(typeof R){case "object":if(R instanceof Date)return R.toString();if(R){if(xXz(R))return R;try{return JSON.stringify(R)}catch(Z){return""}}default:return Y.prototype._serializeValue.call(this,R)}};
D.prototype._deserializeValue=function(R,Z){switch(Z){case Object:try{var t=JSON.parse(R)}catch(X){t=R}break;case Array:try{t=JSON.parse(R)}catch(X){t=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+R)}break;case Date:t=isNaN(R)?String(R):Number(R);t=new Date(t);break;default:t=Y.prototype._deserializeValue.call(this,R,Z)}return t};
D.prototype._definePropertyAccessor=function(R,Z){if(!L3U[R]){var t=this[R];t!==void 0&&(this.__data?this._setPendingProperty(R,t):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[R]=t))}Y.prototype._definePropertyAccessor.call(this,R,Z)};
D.prototype._hasAccessor=function(R){return this.__dataHasAccessor&&this.__dataHasAccessor[R]};
D.prototype._isPropertyPending=function(R){return!!(this.__dataPending&&R in this.__dataPending)};
return D});var QbL={"dom-if":!0,"dom-repeat":!0},BC_=!1,pCE=!1,E8E=function(){var D=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(Y){return Y}});
return function(Y,R,Z){R=R.getAttribute(Z);D&&Z.startsWith("on-")?Y.setAttribute(Z,D.createScript(R,Z)):Y.setAttribute(Z,R)}}(),g8D=cA(function(D){var Y=function(){return D.apply(this,arguments)||this};
_.n(Y,D);Y._parseTemplate=function(R,Z){if(!R._templateInfo){var t=R._templateInfo={};t.nodeInfoList=[];t.nestedTemplate=!!Z;t.stripWhiteSpace=Z&&Z.stripWhiteSpace||R.hasAttribute&&R.hasAttribute("strip-whitespace");this._parseTemplateContent(R,t,{parent:null})}return R._templateInfo};
Y._parseTemplateContent=function(R,Z,t){return this._parseTemplateNode(R.content,Z,t)};
Y._parseTemplateNode=function(R,Z,t){var X=!1;R.localName!="template"||R.hasAttribute("preserve-content")?R.localName==="slot"&&(Z.hasInsertionPoint=!0):X=this._parseTemplateNestedTemplate(R,Z,t)||X;if(!BC_){BC_=!0;var M=document.createElement("textarea");M.placeholder="a";pCE=M.placeholder===M.textContent}pCE&&R.localName==="textarea"&&R.placeholder&&R.placeholder===R.textContent&&(R.textContent=null);R.firstChild&&this._parseTemplateChildNodes(R,Z,t);R.hasAttributes&&R.hasAttributes()&&(X=this._parseTemplateNodeAttributes(R,
Z,t)||X);return X||t.noted};
Y._parseTemplateChildNodes=function(R,Z,t){if(R.localName!=="script"&&R.localName!=="style")for(var X=R.firstChild,M=0,W;X;X=W){if(X.localName=="template"){var z=X.getAttribute("is");if(z&&QbL[z])for(W=X,W.removeAttribute("is"),X=W.ownerDocument.createElement(z),W.parentNode.replaceChild(X,W),X.appendChild(W);W.attributes.length;)z=W.attributes[0].name,E8E(X,W,z),W.removeAttribute(z)}W=X.nextSibling;if(X.nodeType===Node.TEXT_NODE){for(z=W;z&&z.nodeType===Node.TEXT_NODE;)X.textContent+=z.textContent,
W=z.nextSibling,R.removeChild(z),z=W;if(Z.stripWhiteSpace&&!X.textContent.trim()){R.removeChild(X);continue}}z={parentIndex:M,parentInfo:t};this._parseTemplateNode(X,Z,z)&&(z.infoIndex=Z.nodeInfoList.push(z)-1);X.parentNode&&M++}};
Y._parseTemplateNestedTemplate=function(R,Z,t){Z=this._parseTemplate(R,Z);(Z.content=R.content.ownerDocument.createDocumentFragment()).appendChild(R.content);t.templateInfo=Z;return!0};
Y._parseTemplateNodeAttributes=function(R,Z,t){for(var X=!1,M=Array.from(R.attributes),W=M.length-1,z;z=M[W];W--)X=this._parseTemplateNodeAttribute(R,Z,t,z.name,z.value)||X;return X};
Y._parseTemplateNodeAttribute=function(R,Z,t,X,M){return X.slice(0,3)==="on-"?(R.removeAttribute(X),t.events=t.events||[],t.events.push({name:X.slice(3),value:M}),!0):X==="id"?(t.id=M,!0):!1};
Y._contentForTemplate=function(R){var Z=R._templateInfo;return Z&&Z.content||R.content};
Y.prototype._stampTemplate=function(R,Z){R&&!R.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(R);Z=Z||this.constructor._parseTemplate(R);var t=Z.nodeInfoList;R=document.importNode(Z.content||R.content,!0);R.__noInsertionPoint=!Z.hasInsertionPoint;var X=R.nodeList=Array(t.length);R.$={};for(var M=0,W=t.length,z=void 0;M<W&&(z=t[M]);M++){var I=X[M]=KuU(R,z);z.id&&(R.$[z.id]=I);var F=I,G=z,V=Z;G.templateInfo&&(F._templateInfo=G.templateInfo,F._parentTemplateInfo=
V);if(z.events&&z.events.length)for(F=0,G=z.events,V=void 0;F<G.length&&(V=G[F]);F++)this._addMethodEventListenerToNode(I,V.name,V.value,this)}return R};
Y.prototype._addMethodEventListenerToNode=function(R,Z,t,X){t=hI9(X||R,t);this._addEventListenerToNode(R,Z,t);return t};
Y.prototype._addEventListenerToNode=function(R,Z,t){R.addEventListener(Z,t)};
Y.prototype._removeEventListenerFromNode=function(R,Z,t){R.removeEventListener(Z,t)};
return Y});var Fo=0,AN=[],dXY={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},iX7=/[A-Z]/,OXE=function(D,Y,R,Z,t){var X=t?zy(D):D;if(Y=Y[X])for(X=0;X<Y.length;X++){var M=Y[X];if(M.info.lastRun!==Fo&&(!t||PEM(D,M.trigger))){M.info.lastRun=Fo;M=M.info;for(var W=R,z=Z,I=0,F=W.length-1,G=-1;I<=F;){var V=I+F>>1,e=z.get(W[V].methodInfo)-z.get(M.methodInfo);if(e<0)I=V+1;else if(e>0)F=V-1;else{G=V;break}}G<
0&&(G=F+1);W.splice(G,0,M)}}},saS=[],c4D=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"),YL=cA(function(D){var Y=g8D(Pi_(D));
D=function(){var R=Y.call(this)||this;R.__isPropertyEffectsClient=!0;return R};
_.n(D,Y);D.prototype._initializeProperties=function(){Y.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};
D.prototype._registerHost=function(){if(DB.length){var R=DB[DB.length-1];R._enqueueClient(this);this.__dataHost=R}};
D.prototype._initializeProtoProperties=function(R){this.__data=Object.create(R);this.__dataPending=Object.create(R);this.__dataOld={}};
D.prototype._initializeInstanceProperties=function(R){var Z=this.__readOnly,t;for(t in R)Z&&Z[t]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[t]=this.__dataPending[t]=R[t])};
D.prototype._addPropertyEffect=function(R,Z,t){this._createPropertyAccessor(R,Z=="__readOnly");var X=xVS(this,Z,!0)[R];X||(X=this[Z][R]=[]);X.push(t)};
D.prototype._removePropertyEffect=function(R,Z,t){R=xVS(this,Z,!0)[R];t=R.indexOf(t);t>=0&&R.splice(t,1)};
D.prototype._hasPropertyEffect=function(R,Z){Z=this[Z];return!(!Z||!Z[R])};
D.prototype._hasReadOnlyEffect=function(R){return this._hasPropertyEffect(R,"__readOnly")};
D.prototype._hasNotifyEffect=function(R){return this._hasPropertyEffect(R,"__notifyEffects")};
D.prototype._hasReflectEffect=function(R){return this._hasPropertyEffect(R,"__reflectEffects")};
D.prototype._hasComputedEffect=function(R){return this._hasPropertyEffect(R,"__computeEffects")};
D.prototype._setPendingPropertyOrPath=function(R,Z,t,X){if(X||zy(Array.isArray(R)?R[0]:R)!==R){if(!X&&(X=ID(this,R),R=H9l(this,R,Z),!R||!Y.prototype._shouldPropertyChange.call(this,R,Z,X)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(R,Z,t)){if(t=this.__dataLinkedPaths)for(var M in t)X=t[M],SY(M,R)?(X=Ty(M,X,R),this._setPendingPropertyOrPath(X,Z,!0,!0)):SY(X,R)&&(X=Ty(X,M,R),this._setPendingPropertyOrPath(X,Z,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[R])return this._setPendingProperty(R,
Z,t);this[R]=Z}return!1};
D.prototype._setUnmanagedPropertyToNode=function(R,Z,t){if(t!==R[Z]||typeof t=="object")Z==="className"&&(R=(0,_.Vt)(R)),R[Z]=t};
D.prototype._setPendingProperty=function(R,Z,t){var X=this.__dataHasPaths&&Wy(R);if(this._shouldPropertyChange(R,Z,(X?this.__dataTemp:this.__data)[R])){this.__dataPending||(this.__dataPending={},this.__dataOld={});R in this.__dataOld||(this.__dataOld[R]=this.__data[R]);X?this.__dataTemp[R]=Z:this.__data[R]=Z;this.__dataPending[R]=Z;if(X||this.__notifyEffects&&this.__notifyEffects[R])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[R]=t;return!0}return!1};
D.prototype._setProperty=function(R,Z){this._setPendingProperty(R,Z,!0)&&this._invalidateProperties()};
D.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
D.prototype._enqueueClient=function(R){this.__dataPendingClients=this.__dataPendingClients||[];R!==this&&this.__dataPendingClients.push(R)};
D.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
D.prototype.__enableOrFlushClients=function(){var R=this.__dataPendingClients;if(R){this.__dataPendingClients=null;for(var Z=0;Z<R.length;Z++){var t=R[Z];t.__dataEnabled?t.__dataPending&&t._flushProperties():t._enableProperties()}}};
D.prototype._readyClients=function(){this.__enableOrFlushClients()};
D.prototype.setProperties=function(R,Z){for(var t in R)!Z&&this.__readOnly&&this.__readOnly[t]||this._setPendingPropertyOrPath(t,R[t],!0);this._invalidateProperties()};
D.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
D.prototype._propertiesChanged=function(R,Z,t){R=this.__dataHasPaths;this.__dataHasPaths=!1;var X;if(X=this.__computeEffects)if($X_){Fo++;var M=dV5(this),W=[],z;for(z in Z)OXE(z,X,W,M,R);for(;z=W.shift();)O9U(this,"",Z,t,z)&&OXE(z.methodInfo,X,W,M,R);Object.assign(t,this.__dataOld);Object.assign(Z,this.__dataPending);this.__dataPending=null}else for(M=Z;Gy(this,X,M,t,R);)Object.assign(t,this.__dataOld),Object.assign(Z,this.__dataPending),M=this.__dataPending,this.__dataPending=null;X=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Z,t,R);this._flushClients();Gy(this,this.__reflectEffects,Z,t,R);Gy(this,this.__observeEffects,Z,t,R);if(X){M=this.__notifyEffects;W=Fo++;for(var I in X)if(X[I]){if(z=M){var F=M;z=W;var G=I,V=Z,e=t,r=R,l=!1,U=r?zy(G):G;if(F=F[U]){U=0;for(var K=F.length,H=void 0;U<K&&(H=F[U]);U++)H.info&&H.info.lastRun===z||r&&!PEM(G,H.trigger)||(H.info&&(H.info.lastRun=z),H.fn(this,G,V,e,H.info,r,void 0),l=!0)}z=l}if(z)var c=!0;else{if(z=R)z=I,G=Z,V=zy(z),V!==
z?(V=CF(V)+"-changed",BKl(this,V,G[z],z),z=!0):z=!1;z&&(c=!0)}}var Q;c&&(Q=this.__dataHost)&&Q._invalidateProperties&&Q._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
D.prototype._propagatePropertyChanges=function(R,Z,t){this.__propagateEffects&&Gy(this,this.__propagateEffects,R,Z,t);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,R,Z,t)};
D.prototype._runEffectsForTemplate=function(R,Z,t,X){var M=this,W=function(z,I){Gy(M,R.propertyEffects,z,t,I,R.nodeList);for(var F=R.firstChild;F;F=F.nextSibling)M._runEffectsForTemplate(F,z,t,I)};
R.runEffects?R.runEffects(W,Z,X):W(Z,X)};
D.prototype.linkPaths=function(R,Z){R=jY(R);Z=jY(Z);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[R]=Z};
D.prototype.unlinkPaths=function(R){R=jY(R);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[R]};
D.prototype.notifySplices=function(R,Z){var t={path:""};R=ID(this,R,t);M39(this,R,t.path,Z)};
D.prototype.get=function(R,Z){return ID(Z||this,R)};
D.prototype.set=function(R,Z,t){t?H9l(t,R,Z):this.__readOnly&&this.__readOnly[R]||this._setPendingPropertyOrPath(R,Z,!0)&&this._invalidateProperties()};
D.prototype.push=function(R){var Z=_.UN.apply(1,arguments),t={path:""},X=ID(this,R,t),M=X.length,W=X.push.apply(X,_.oK(Z));Z.length&&ru(this,X,t.path,M,Z.length,[]);return W};
D.prototype.pop=function(R){var Z={path:""};R=ID(this,R,Z);var t=!!R.length,X=R.pop();t&&ru(this,R,Z.path,R.length,0,[X]);return X};
D.prototype.splice=function(R,Z,t){var X=_.UN.apply(3,arguments),M={path:""},W=ID(this,R,M);Z<0?Z=W.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var z=arguments.length===2?W.splice(Z):W.splice.apply(W,[Z,t].concat(_.oK(X)));(X.length||z.length)&&ru(this,W,M.path,Z,X.length,z);return z};
D.prototype.shift=function(R){var Z={path:""};R=ID(this,R,Z);var t=!!R.length,X=R.shift();t&&ru(this,R,Z.path,0,0,[X]);return X};
D.prototype.unshift=function(R){var Z=_.UN.apply(1,arguments),t={path:""},X=ID(this,R,t),M=X.unshift.apply(X,_.oK(Z));Z.length&&ru(this,X,t.path,0,Z.length,[]);return M};
D.prototype.notifyPath=function(R,Z){if(arguments.length==1){var t={path:""};Z=ID(this,R,t);t=t.path}else t=Array.isArray(R)?jY(R):R;this._setPendingPropertyOrPath(t,Z,!0,!0)&&this._invalidateProperties()};
D.prototype._createReadOnlyProperty=function(R,Z){this._addPropertyEffect(R,"__readOnly");Z&&(this["_set"+(R[0].toUpperCase()+R.substring(1))]=function(t){this._setProperty(R,t)})};
D.prototype._createPropertyObserver=function(R,Z,t){var X={property:R,method:Z,dynamicFn:!!t};this._addPropertyEffect(R,"__observeEffects",{fn:QZi,info:X,trigger:{name:R}});t&&this._addPropertyEffect(Z,"__observeEffects",{fn:QZi,info:X,trigger:{name:Z}})};
D.prototype._createMethodObserver=function(R,Z){var t=ucl(R);if(!t)throw Error("xd`"+R);Zoi(this,t,"__observeEffects",i99,null,Z)};
D.prototype._createNotifyingProperty=function(R){this._addPropertyEffect(R,"__notifyEffects",{fn:pl$,info:{eventName:CF(R)+"-changed",property:R}})};
D.prototype._createReflectedProperty=function(R){var Z=this.constructor.attributeNameForProperty(R);Z[0]==="-"?console.warn("Property "+R+" cannot be reflected to attribute "+Z+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(R,"__reflectEffects",{fn:E6S,info:{attrName:Z}})};
D.prototype._createComputedProperty=function(R,Z,t){var X=ucl(Z);if(!X)throw Error("yd`"+Z);Z=Zoi(this,X,"__computeEffects",O9U,R,t);xVS(this,"__computeInfo")[R]=Z};
D.prototype._marshalArgs=function(R,Z,t){for(var X=this.__data,M=[],W=0,z=R.length;W<z;W++){var I=R[W],F=I.name,G=I.structured,V=I.wildcard,e=I.value;I.literal||(V?(I=SY(F,Z),G=aFU(X,t,I?Z:F),e={path:I?Z:F,value:G,base:I?ID(X,F):G}):e=G?aFU(X,t,F):X[F]);if(nF&&!this._overrideLegacyUndefined&&e===void 0&&R.length>1)return AN;M[W]=e}return M};
D.addPropertyEffect=function(R,Z,t){this.prototype._addPropertyEffect(R,Z,t)};
D.createPropertyObserver=function(R,Z,t){this.prototype._createPropertyObserver(R,Z,t)};
D.createMethodObserver=function(R,Z){this.prototype._createMethodObserver(R,Z)};
D.createNotifyingProperty=function(R){this.prototype._createNotifyingProperty(R)};
D.createReadOnlyProperty=function(R,Z){this.prototype._createReadOnlyProperty(R,Z)};
D.createReflectedProperty=function(R){this.prototype._createReflectedProperty(R)};
D.createComputedProperty=function(R,Z,t){this.prototype._createComputedProperty(R,Z,t)};
D.bindTemplate=function(R){return this.prototype._bindTemplate(R)};
D.prototype._bindTemplate=function(R,Z){var t=this.constructor._parseTemplate(R),X=this.__preBoundTemplateInfo==t;if(!X)for(var M in t.propertyEffects)this._createPropertyAccessor(M);Z?(t=Object.create(t),t.wasPreBound=X,this.__templateInfo?(R=R._parentTemplateInfo||this.__templateInfo,Z=R.lastChild,t.parent=R,R.lastChild=t,(t.previousSibling=Z)?Z.nextSibling=t:R.firstChild=t):this.__templateInfo=t):this.__preBoundTemplateInfo=t;return t};
D._addTemplatePropertyEffect=function(R,Z,t){(R.hostProps=R.hostProps||{})[Z]=!0;R=R.propertyEffects=R.propertyEffects||{};(R[Z]=R[Z]||[]).push(t)};
D.prototype._stampTemplate=function(R,Z){Z=Z||this._bindTemplate(R,!0);DB.push(this);R=Y.prototype._stampTemplate.call(this,R,Z);DB.pop();Z.nodeList=R.nodeList;if(!Z.wasPreBound)for(var t=Z.childNodes=[],X=R.firstChild;X;X=X.nextSibling)t.push(X);R.templateInfo=Z;t=Z.nodeList;X=Z.nodeInfoList;if(X.length)for(var M=0;M<X.length;M++){var W=t[M],z=X[M].bindings;if(z)for(var I=0;I<z.length;I++){var F=z[I],G=W,V=F;if(V.isCompound){for(var e=G.__dataCompoundStorage||(G.__dataCompoundStorage={}),r=V.parts,
l=Array(r.length),U=0;U<r.length;U++)l[U]=r[U].literal;r=V.target;e[r]=l;V.literal&&V.kind=="property"&&(r==="className"&&(G=(0,_.Vt)(G)),G[r]=V.literal)}RGb(W,this,F)}W.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Z,this.__data,null,!1),this._flushClients());return R};
D.prototype._removeBoundDom=function(R){R=R.templateInfo;var Z=R.previousSibling,t=R.nextSibling,X=R.parent;Z?Z.nextSibling=t:X&&(X.firstChild=t);t?t.previousSibling=Z:X&&(X.lastChild=Z);R.nextSibling=R.previousSibling=null;R=R.childNodes;for(Z=0;Z<R.length;Z++)t=R[Z],(0,_.Vt)((0,_.Vt)(t).parentNode).removeChild(t)};
D._parseTemplateNode=function(R,Z,t){var X=Y._parseTemplateNode.call(this,R,Z,t);if(R.nodeType===Node.TEXT_NODE){var M=this._parseBindings(R.textContent,Z);M&&(R.textContent=t3l(M)||" ",YRy(this,Z,t,"text","textContent",M),X=!0)}return X};
D._parseTemplateNodeAttribute=function(R,Z,t,X,M){var W=this._parseBindings(M,Z);if(W){M=X;var z="property";iX7.test(X)?z="attribute":X[X.length-1]=="$"&&(X=X.slice(0,-1),z="attribute");var I=t3l(W);I&&z=="attribute"&&(X=="class"&&R.hasAttribute("class")&&(I+=" "+R.getAttribute(X)),R.setAttribute(X,I));z=="attribute"&&M=="disable-upgrade$"&&R.setAttribute(X,"");R.localName==="input"&&M==="value"&&R.setAttribute(M,"");R.removeAttribute(M);z==="property"&&(X=M7(X));YRy(this,Z,t,z,X,W,I);return!0}return Y._parseTemplateNodeAttribute.call(this,
R,Z,t,X,M)};
D._parseTemplateNestedTemplate=function(R,Z,t){var X=Y._parseTemplateNestedTemplate.call(this,R,Z,t),M=R.parentNode,W=t.templateInfo,z=M.localName==="dom-if",I=M.localName==="dom-repeat";EF&&(z||I)&&(M.removeChild(R),t=t.parentInfo,t.templateInfo=W,t.noted=!0,X=!1);R=W.hostProps;if(gk&&z)R&&(Z.hostProps=Object.assign(Z.hostProps||{},R),EF||(t.parentInfo.noted=!0));else for(var F in R)YRy(this,Z,t,"property","_host_"+F,[{mode:"{",source:F,dependencies:[F],hostProp:!0}]);return X};
D._parseBindings=function(R,Z){for(var t=[],X=0,M;(M=c4D.exec(R))!==null;){M.index>X&&t.push({literal:R.slice(X,M.index)});X=M[1][0];var W=!!M[2];M=M[3].trim();var z=!1,I="",F=-1;X=="{"&&(F=M.indexOf("::"))>0&&(I=M.substring(F+2),M=M.substring(0,F),z=!0);F=ucl(M);var G=[];if(F){var V=F,e=V.args;V=V.methodName;for(var r=0;r<e.length;r++){var l=e[r];l.literal||G.push(l)}if((e=Z.dynamicFns)&&e[V]||F.static)G.push(V),F.dynamicFn=!0}else G.push(M);t.push({source:M,mode:X,negate:W,customEvent:z,signature:F,
dependencies:G,event:I});X=c4D.lastIndex}X&&X<R.length&&(R=R.substring(X))&&t.push({literal:R});return t.length?t:null};
D._evaluateBinding=function(R,Z,t,X,M,W){R=Z.signature?i99(R,t,X,M,Z.signature):t!=Z.source?ID(R,Z.source):W&&Wy(t)?ID(R,t):R.__data[t];Z.negate&&(R=!R);return R};
_.YF.Object.defineProperties(D.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return dXY}}});
return D}),DB=[];var DwD=window.ShadyCSS&&window.ShadyCSS.cssBuild,Rh=cA(function(D){function Y(Z,t,X,M){if(!DwD){for(var W=t.content.querySelectorAll("style"),z=SRM(t),I=TYS(X),F=t.content.firstElementChild,G=0;G<I.length;G++){var V=I[G];V.textContent=Z._processStyleText(V.textContent,M);t.content.insertBefore(V,F)}for(F=I=0;F<z.length;F++)G=z[F],V=W[I],V!==G?(G=G.cloneNode(!0),V.parentNode.insertBefore(G,V)):I++,G.textContent=Z._processStyleText(G.textContent,M)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,
X);if(o8U&&DwD&&A4U&&(t=t.content.querySelectorAll("style"))){var e="";Array.from(t).forEach(function(r){e+=r.textContent;r.parentNode.removeChild(r)});
Z._styleSheet=new CSSStyleSheet;Z._styleSheet.replaceSync(e)}}
var R=hbV(YL(D));D=function(){return R.call(this)||this};
_.n(D,R);D._finalizeClass=function(){R._finalizeClass.call(this);var Z;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Z=this.__ownObservers)&&this.createObservers(Z,this._properties);this._prepareTemplate()};
D._prepareTemplate=function(){var Z=this.template;Z&&(typeof Z==="string"?(console.error("template getter must return HTMLTemplateElement"),Z=null):q7||(Z=Z.cloneNode(!0)));this.prototype._template=Z};
D.createProperties=function(Z){for(var t in Z){var X=this.prototype,M=t,W=Z[t],z=Z;W.computed&&(W.readOnly=!0);W.computed&&(X._hasReadOnlyEffect(M)?console.warn("Cannot redefine computed property '"+M+"'."):X._createComputedProperty(M,W.computed,z));W.readOnly&&!X._hasReadOnlyEffect(M)?X._createReadOnlyProperty(M,!W.computed):W.readOnly===!1&&X._hasReadOnlyEffect(M)&&console.warn("Cannot make readOnly property '"+M+"' non-readOnly.");W.reflectToAttribute&&!X._hasReflectEffect(M)?X._createReflectedProperty(M):
W.reflectToAttribute===!1&&X._hasReflectEffect(M)&&console.warn("Cannot make reflected property '"+M+"' non-reflected.");W.notify&&!X._hasNotifyEffect(M)?X._createNotifyingProperty(M):W.notify===!1&&X._hasNotifyEffect(M)&&console.warn("Cannot make notify property '"+M+"' non-notify.");W.observer&&X._createPropertyObserver(M,W.observer,z[W.observer]);X._addPropertyToAttributeMap(M)}};
D.createObservers=function(Z,t){for(var X=this.prototype,M=0;M<Z.length;M++)X._createMethodObserver(Z[M],t)};
D.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);R.prototype._initializeProperties.call(this);this.rootPath=n8E;this.importPath=this.constructor.importPath;var Z=this.constructor;if(!Z.hasOwnProperty("__propertyDefaults")){Z.__propertyDefaults=null;var t=Z._properties,X;for(X in t){var M=t[X];"value"in M&&(Z.__propertyDefaults=Z.__propertyDefaults||{},Z.__propertyDefaults[X]=M)}}if(Z=Z.__propertyDefaults)for(var W in Z)t=Z[W],
this._canApplyPropertyDefault(W)&&(t=typeof t.value=="function"?t.value.call(this):t.value,this._hasAccessor(W)?this._setPendingProperty(W,t,!0):this[W]=t)};
D.prototype._canApplyPropertyDefault=function(Z){return!this.hasOwnProperty(Z)};
D._processStyleText=function(Z,t){return $Vj(Z,t)};
D._finalizeTemplate=function(Z){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var X=this.importPath;X=X?_.uy(X):"";Y(this,t,Z,X);this.prototype._bindTemplate(t)}};
D.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);R.prototype.connectedCallback.call(this)};
D.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);R.prototype.ready.call(this)};
D.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));R.prototype._readyClients.call(this)};
D.prototype._attachDom=function(Z){var t=(0,_.Vt)(this);if(t.attachShadow)return Z?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:Z}),t.shadowRoot.appendChild(Z),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),wC1&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw Error("Ad");};
D.prototype.updateStyles=function(Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Z)};
D.prototype.resolveUrl=function(Z,t){!t&&this.importPath&&(t=_.uy(this.importPath));return _.uy(Z,t)};
D._parseTemplateContent=function(Z,t,X){t.dynamicFns=t.dynamicFns||this._properties;return R._parseTemplateContent.call(this,Z,t,X)};
D._addTemplatePropertyEffect=function(Z,t,X){!Qt||t in this._properties||X.info.part.signature&&X.info.part.signature.static||X.info.part.hostProp||Z.nestedTemplate||console.warn("Property '"+t+"' used in template but not declared in 'properties'; attribute will not be observed.");return R._addTemplatePropertyEffect.call(this,Z,t,X)};
_.YF.Object.defineProperties(D,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Z=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Z==="function"&&(Z=Z());if(Z===void 0){if(Z=this.hasOwnProperty("is")){Z=this.is;var t=null;if(Z&&(!By||r4E)&&(t=wu.import(Z,"template"),By&&!t))throw Error("zd`"+Z);Z=t}Z=Z||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Z}return this._template},
set:function(Z){this._template=Z}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Z=this.importMeta;Z?this._importPath=v65(Z.url):this._importPath=(Z=wu.import(this.is))&&Z.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return D});var YMU=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(D){return D}}),eG9=function(D,Y){R14(D,Y);
this.value=Y.reduce(function(R,Z,t){return R+AnU(Z)+D[t+1]},D[0]).toString()},R14;
eG9.prototype.toString=function(){return this.value};
_.ZhL=function(D){var Y=_.UN.apply(1,arguments);R14(D,Y);var R=document.createElement("template");Y=Y.reduce(function(Z,t,X){if(t instanceof HTMLTemplateElement)t=t.innerHTML;else if(t instanceof eG9)t=AnU(t);else throw Error("Cd`"+t);return Z+t+D[X+1]},D[0]);
YMU&&(Y=YMU.createHTML(Y));R.innerHTML=Y;return R};
R14=function(D,Y){if(!Array.isArray(D)||!Array.isArray(D.raw)||Y.length!==D.length-1)throw new TypeError("Dd");};var ZB=Rh(HTMLElement);var tCb=cA(function(D){var Y=Rh(D);D=function(){var R=Y.call(this)||this;R.__lastItems=null;R.__lastMulti=null;R.__selectedMap=null;return R};
_.n(D,Y);D.prototype.__updateSelection=function(R,Z){var t=Z.path;t=="items"?(Z=Z.base||[],t=this.__lastItems,R!==this.__lastMulti&&this.clearSelection(),t&&(t=fF$(Z,t),this.__applySplices(t)),this.__lastItems=Z,this.__lastMulti=R):Z.path=="items.splices"?this.__applySplices(Z.value.indexSplices):(R=t.slice(6),Z=parseInt(R,10),R.indexOf(".")<0&&R==Z&&this.__deselectChangedIdx(Z))};
D.prototype.__applySplices=function(R){for(var Z=this,t=this.__selectedMap,X={},M=0;M<R.length;X={s$jscomp$108:void 0},M++){X.s$jscomp$108=R[M];t.forEach(function(F){return function(G,V){G<F.s$jscomp$108.index||(G>=F.s$jscomp$108.index+F.s$jscomp$108.removed.length?t.set(V,G+F.s$jscomp$108.addedCount-F.s$jscomp$108.removed.length):t.set(V,-1))}}(X));
for(var W=0;W<X.s$jscomp$108.addedCount;W++){var z=X.s$jscomp$108.index+W;t.has(this.items[z])&&t.set(this.items[z],z)}}this.__updateLinks();var I=0;t.forEach(function(F,G){F<0?(Z.multi?Z.splice("selected",I,1):Z.selected=Z.selectedItem=null,t.delete(G)):I++})};
D.prototype.__updateLinks=function(){var R=this;this.__dataLinkedPaths={};if(this.multi){var Z=0;this.__selectedMap.forEach(function(t){t>=0&&R.linkPaths("items."+t,"selected."+Z++)})}else this.__selectedMap.forEach(function(t){R.linkPaths("selected","items."+t);
R.linkPaths("selectedItem","items."+t)})};
D.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
D.prototype.isSelected=function(R){return this.__selectedMap.has(R)};
D.prototype.isIndexSelected=function(R){return this.isSelected(this.items[R])};
D.prototype.__deselectChangedIdx=function(R){var Z=this,t=this.__selectedIndexForItemIndex(R);if(t>=0){var X=0;this.__selectedMap.forEach(function(M,W){t==X++&&Z.deselect(W)})}};
D.prototype.__selectedIndexForItemIndex=function(R){if(R=this.__dataLinkedPaths["items."+R])return parseInt(R.slice(9),10)};
D.prototype.deselect=function(R){var Z=this.__selectedMap.get(R);if(Z>=0){this.__selectedMap.delete(R);var t;this.multi&&(t=this.__selectedIndexForItemIndex(Z));this.__updateLinks();this.multi?this.splice("selected",t,1):this.selected=this.selectedItem=null}};
D.prototype.deselectIndex=function(R){this.deselect(this.items[R])};
D.prototype.select=function(R){this.selectIndex(this.items.indexOf(R))};
D.prototype.selectIndex=function(R){var Z=this.items[R];this.isSelected(Z)?this.toggle&&this.deselectIndex(R):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Z,R),this.__updateLinks(),this.multi?this.push("selected",Z):this.selected=this.selectedItem=Z)};
_.YF.Object.defineProperties(D,{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 D}),skL=tCb(ZB),tw=function(){return skL.apply(this,arguments)||this};
_.n(tw,skL);_.YF.Object.defineProperties(tw,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(tw.is,tw);var XU7=window.Polymer;window.Polymer=function(D){return window.Polymer._polymerFn(D)};
XU7&&Object.assign(Polymer,XU7);Polymer._polymerFn=function(){throw Error("Ed");};/*

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:$Vj,resolveUrl:_.uy,pathFromUrl:v65};Polymer.DomModule=wu;Polymer.Async={timeOut:_.OF,animationFrame:_.NI,idlePeriod:J4z,microTask:LF};Polymer.dedupingMixin=cA;Polymer.wrap=_.Vt;Polymer.PropertiesChanged=UX4;Polymer.telemetry={instanceCount:K3D,incrementInstanceCount:function(){K3D++},
registrations:NK9,register:lxU,dumpRegistrations:function(){NK9.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=hbV;Polymer.CaseMap={dashToCamelCase:M7,camelToDashCase:CF};Polymer.PropertyAccessors=Pi_;Polymer.TemplateStamp=g8D;Polymer.Path={isPath:Wy,root:zy,isAncestor:LuU,isDescendant:SY,translate:Ty,matches:mV5,normalize:jY,split:q0U,get:ID,set:H9l,isDeep:Wy};Polymer.Settings={useShadow:Hy,useNativeCSSProperties:F3E,useNativeCustomElements:GA7,get rootPath(){return n8E},setRootPath:function(D){n8E=D},
get sanitizeDOMValue(){return fF},setSanitizeDOMValue:function(D){fF=D},
get passiveTouchGestures(){return Uiy},setPassiveTouchGestures:function(D){Uiy=D},
get strictTemplatePolicy(){return By},setStrictTemplatePolicy:function(D){By=D},
get allowTemplateFromDomModule(){return r4E},setAllowTemplateFromDomModule:function(D){r4E=D},
get legacyOptimizations(){return q7},setLegacyOptimizations:function(D){q7=D},
get syncInitialRender(){return wC1},setSyncInitialRender:function(D){wC1=D},
get legacyUndefined(){return nF},setLegacyUndefined:function(D){nF=D},
get legacyWarnings(){return Qt},setLegacyWarnings:function(D){Qt=D},
get orderedComputed(){return $X_},setOrderedComputed:function(D){$X_=D},
get fastDomIf(){return gk},setFastDomIf:function(D){gk=D},
get removeNestedTemplates(){return EF},setRemoveNestedTemplates:function(D){EF=D},
get suppressTemplateNotifications(){return dk},setSuppressTemplateNotifications:dk};Polymer.rootPath!==void 0&&(n8E=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(fF=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Uiy=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(By=Polymer.strictTemplatePolicy);r4E=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(q7=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(wC1=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(nF=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Qt=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&($X_=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(gk=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(EF=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(dk=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return fF},
set:function(D){fF=D}});Polymer.PropertyEffects=YL;Polymer.StyleGather={stylesFromModules:zGo,stylesFromModule:WLr,stylesFromTemplate:SRM,stylesFromModuleImports:TYS,cssFromModules:IFy,cssFromModule:jaU,cssFromTemplate:FLb,cssFromModuleImports:function(D){return(D=wu.import(D))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):""}};Polymer.ElementMixin=Rh;Polymer.updateStyles=function(D){window.ShadyCSS&&window.ShadyCSS.styleDocument(D)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:fF$};Polymer.html=_.ZhL;Polymer.htmlLiteral=function(D){return new eG9(D,_.UN.apply(1,arguments))};Polymer.Element=ZB;Polymer.ArraySelectorMixin=tCb;Polymer.ArraySelector=tw;var us7=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,aQ7=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,RDU=/@media\s(.*)/;var $i9=null,wfn=window.HTMLImports&&window.HTMLImports.whenReady||null,v5$;var MCE=null,so=null,XS=function(){this.customStyles=[];this.enqueued=!1;o5y(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},C0U=function(D){!D.enqueued&&so&&(D.enqueued=!0,o5y(so))};
XS.prototype.addCustomStyle=function(D){D.__seenByShadyCSS||(D.__seenByShadyCSS=!0,this.customStyles.push(D),C0U(this))};
XS.prototype.getStyleForCustomStyle=function(D){if(D.__shadyCSSCachedStyle)return D.__shadyCSSCachedStyle;var Y;D.getStyle?Y=D.getStyle():Y=D;return Y};
XS.prototype.processStyles=function(){for(var D=this.customStyles,Y=0;Y<D.length;Y++){var R=D[Y];if(!R.__shadyCSSCachedStyle){var Z=this.getStyleForCustomStyle(R);Z&&(Z=Z.__appliedElement||Z,MCE&&MCE(Z),R.__shadyCSSCachedStyle=Z)}}return D};
XS.prototype.addCustomStyle=XS.prototype.addCustomStyle;XS.prototype.getStyleForCustomStyle=XS.prototype.getStyleForCustomStyle;XS.prototype.processStyles=XS.prototype.processStyles;Object.defineProperties(XS.prototype,{transformCallback:{get:function(){return MCE},
set:function(D){MCE=D}},
validateCallback:{get:function(){return so},
set:function(D){var Y=!1;so||(Y=!0);so=D;Y&&C0U(this)}}});var ynr=!(window.ShadyDOM&&window.ShadyDOM.inUse),boi,Da;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Da=window.ShadyCSS.cssBuild);var WWz=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?boi=window.ShadyCSS.nativeCss:window.ShadyCSS?(NYn(window.ShadyCSS),window.ShadyCSS=void 0):NYn(window.WebComponents&&window.WebComponents.flags);var cri=boi;var z1L=new XS;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(D,Y){z1L.processStyles();n5U(D,Y)},
styleElement:function(){z1L.processStyles()},
styleDocument:function(D){z1L.processStyles();n5U(document.body,D)},
getComputedStyleValue:function(D,Y){return rny(D,Y)},
flushCustomStyles:function(){},
nativeCss:cri,nativeShadow:ynr,cssBuild:Da,disableRuntime:WWz});window.ShadyCSS.CustomStyleInterface=z1L;var SM7=window.ShadyCSS.CustomStyleInterface,uj=function(){var D=HTMLElement.call(this)||this;D._style=null;SM7.addCustomStyle(D);return D};
_.n(uj,HTMLElement);uj.prototype.getStyle=function(){if(this._style)return this._style;var D=this.querySelector("style");if(!D)return null;this._style=D;var Y=D.getAttribute("include");Y&&(D.removeAttribute("include"),D.textContent=IFy(Y)+D.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
uj.prototype.getStyle=uj.prototype.getStyle;window.customElements.define("custom-style",uj);Polymer.CustomStyle=uj;var ah=function(){this._timer=this._callback=this._asyncModule=null},M0,jkb;
ah.prototype.setConfig=function(D,Y){var R=this;this._asyncModule=D;this._callback=Y;this._timer=this._asyncModule.run(function(){R._timer=null;M0.delete(R);R._callback()})};
ah.prototype.cancel=function(){this.isActive()&&(TLL(this),M0.delete(this))};
var TLL=function(D){D.isActive()&&(D._asyncModule.cancel(D._timer),D._timer=null)};
ah.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
ah.prototype.isActive=function(){return this._timer!=null};
_.CD=function(D,Y,R){D instanceof ah?TLL(D):D=new ah;D.setConfig(Y,R);return D};
M0=new Set;_.WX=function(D){M0.add(D)};
jkb=function(){var D=!!M0.size;M0.forEach(function(Y){try{Y.flush()}catch(R){setTimeout(function(){throw R;})}});
return D};var Jn5=typeof document.head.style.touchAction==="string",lFU=["mousedown","mousemove","mouseup","click"],xij=[0,1,4,2],IQ_;try{IQ_=(new MouseEvent("test",{buttons:1})).buttons===1}catch(D){IQ_=!1}var Ho5=IQ_,k3r=!1;(function(){try{var D=Object.defineProperty({},"passive",{get:function(){k3r=!0}});
window.addEventListener("test",null,D);window.removeEventListener("test",null,D)}catch(Y){}})();
var hGy=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),LLn=[],FW4={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Ybn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},miU=function(D){var Y=D.sourceCapabilities;if(!Y||Y.firesTouchEvents)if(D.__polymerGesturesHandled={skip:!0},D.type==="click"){Y=!1;for(var R=pfl(D),Z=0;Z<R.length;Z++){if(R[Z].nodeType===Node.ELEMENT_NODE)if(R[Z].localName==="label")LLn.push(R[Z]);
else if(FW4[R[Z].localName]){var t=R[Z];var X=Array.prototype.slice.call(t.labels||[]);if(!X.length){X=[];try{var M=t.getRootNode();if(t.id){var W=M.querySelectorAll("label[for = '"+t.id+"']");for(t=0;t<W.length;t++)X.push(W[t])}}catch(z){}}for(t=0;t<X.length;t++)Y=Y||LLn.indexOf(X[t])>-1}if(R[Z]===GLL)return}Y||(D.preventDefault(),D.stopPropagation())}},GLL=null,zp=null,g5i=0,dib=0,E5b=-1,ioj=!1;
document.addEventListener("touchend",function(D){zp||qRr(!0);GLL=pfl(D)[0];zp=_.CD(zp,_.OF.after(2500),function(){qRr();zp=GLL=null})},k3r?{passive:!0}:!1);
var pfl=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(D){return D.composedPath&&D.composedPath()||[]},kM={},ly=[];
Ool({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){oD(this.info)},
mousedown:function(D){if(vy(D)){var Y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),R=this;Qa9(this.info,function(Z){vy(Z)||(mB("up",Y,Z),oD(R.info))},function(Z){vy(Z)&&mB("up",Y,Z);
oD(R.info)});
mB("down",Y,D)}},
touchstart:function(D){mB("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)},
touchend:function(D){mB("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)}});
Ool({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(D){this.moves.length>2&&this.moves.shift();this.moves.push(D)},
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;oD(this.info)},
mousedown:function(D){if(vy(D)){var Y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),R=this,Z=function(t){var X=t.clientX,M=t.clientY;cnn(R.info,X,M)&&(R.info.state=R.info.started?t.type==="mouseup"?"end":"track":"start",R.info.state==="start"&&JN("tap"),R.info.addMove({x:X,y:M}),vy(t)||(R.info.state="end",oD(R.info)),Y&&DpU(R.info,Y,t),R.info.started=!0)};
Qa9(this.info,Z,function(t){R.info.started&&Z(t);oD(R.info)});
this.info.x=D.clientX;this.info.y=D.clientY}},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchmove:function(D){var Y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];var R=D.clientX,Z=D.clientY;cnn(this.info,R,Z)&&(this.info.state==="start"&&JN("tap"),this.info.addMove({x:R,y:Z}),DpU(this.info,Y,D),this.info.state="track",this.info.started=!0)},
touchend:function(D){var Y=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:D.clientX,y:D.clientY}),DpU(this.info,Y,D))}});
Ool({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(D){vy(D)&&(this.info.x=D.clientX,this.info.y=D.clientY)},
click:function(D){vy(D)&&R9M(this.info,D)},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchend:function(D){R9M(this.info,D.changedTouches[0],D)}});var VCE=cA(function(D){var Y=function(){return D.apply(this,arguments)||this};
_.n(Y,D);Y.prototype._addEventListenerToNode=function(R,Z,t){Uw(R,Z,t)||D.prototype._addEventListenerToNode.call(this,R,Z,t)};
Y.prototype._removeEventListenerFromNode=function(R,Z,t){KF(R,Z,t)||D.prototype._removeEventListenerFromNode.call(this,R,Z,t)};
return Y});var SR=cA(function(D){var Y=function(){return D.apply(this,arguments)||this};
_.n(Y,D);Y.prototype._shouldPropertyChange=function(R,Z,t){return ZwU(this,R,Z,t,!0)};
return Y}),fQb=cA(function(D){var Y=function(){return D.apply(this,arguments)||this};
_.n(Y,D);Y.prototype._shouldPropertyChange=function(R,Z,t){return ZwU(this,R,Z,t,this.mutableData)};
_.YF.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return Y});
SR._mutablePropertyChange=ZwU;var tsj=!1;var e1z=VCE(fQb(YL(HTMLElement))),Tp=function(){var D=e1z.call(this)||this;if(By)throw Error("Fd");D.root=null;D.$=null;D.__children=null;return D};
_.n(Tp,e1z);_.u=Tp.prototype;_.u.attributeChangedCallback=function(){this.mutableData=!0};
_.u.connectedCallback=function(){scU()||(this.style.display="none");this.render()};
_.u.disconnectedCallback=function(){this.__removeChildren()};
_.u.__insertChildren=function(){(0,_.Vt)((0,_.Vt)(this).parentNode).insertBefore(this.root,this)};
_.u.__removeChildren=function(){if(this.__children)for(var D=0;D<this.__children.length;D++)this.root.appendChild(this.__children[D])};
_.u.render=function(){var D=this;if(!this.__children){var Y=Y||this.querySelector("template");if(!Y){var R=new MutationObserver(function(){if(Y=D.querySelector("template"))R.disconnect(),D.render();else throw Error("Gd");});
R.observe(this,{childList:!0});return}this.root=this._stampTemplate(Y);this.$=this.root.$;this.__children=[];for(var Z=this.root.firstChild;Z;Z=Z.nextSibling)this.__children[this.__children.length]=Z;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.YF.Object.defineProperties(Tp,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Tp);Polymer.Debouncer=ah;Polymer.Gestures={gestures:kM,recognizers:ly,deepTargetFind:BY$,addListener:Uw,removeListener:KF,register:Ool,setTouchAction:_.hN,prevent:JN,resetMouseCanceller:function(){zp&&zp.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Uw,remove:KF};Polymer.GestureEventListeners=VCE;Polymer.MutableData=SR;Polymer.OptionalMutableData=fQb;Polymer.DomBind=Tp;_.jR=function(){do{var D=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var Y=jkb()}while(D||Y)};var XQ9=null;uNU.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:uNU,writable:!0}});var jcS=YL(uNU),T0b=SR(jcS),Au7=YL(function(){}),xM=function(D){var Y=Au7.call(this)||this;
Y._configureProperties(D);Y.root=Y._stampTemplate(Y.__dataHost);var R=[];Y.children=R;for(var Z=Y.root.firstChild;Z;Z=Z.nextSibling)R.push(Z),Z.__templatizeInstance=Y;Y.__templatizeOwner&&Y.__templatizeOwner.__hideTemplateChildren__&&Y._showHideChildren(!0);R=Y.__templatizeOptions;(D&&R.instanceProps||!R.instanceProps)&&Y._enableProperties();return Y};
_.n(xM,Au7);_.u=xM.prototype;_.u._configureProperties=function(D){if(this.__templatizeOptions.forwardHostProp)for(var Y in this.__hostProps)this._setPendingProperty(Y,this.__dataHost["_host_"+Y]);for(var R in D)this._setPendingProperty(R,D[R])};
_.u.forwardHostProp=function(D,Y){this._setPendingPropertyOrPath(D,Y,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.u._addEventListenerToNode=function(D,Y,R){var Z=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(D,Y,function(X){X.model=Z;R(X)});
else{var t=this.__dataHost.__dataHost;t&&t._addEventListenerToNode(D,Y,R)}};
_.u._showHideChildren=function(D){Msl(D,this.children)};
_.u._setUnmanagedPropertyToNode=function(D,Y,R){D.__hideTemplateChildren__&&D.nodeType==Node.TEXT_NODE&&Y=="textContent"?D.__polymerTextContent__=R:Au7.prototype._setUnmanagedPropertyToNode.call(this,D,Y,R)};
_.u.dispatchEvent=function(){return!0};
_.YF.Object.defineProperties(xM.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var D=this.__parentModel;if(!D){var Y;D=this;do D=D.__dataHost.__dataHost;while((Y=D.__templatizeOptions)&&!Y.parentModel);this.__parentModel=D}return D}}});
var Woi=SR(xM);var Ih=function(){var D=ZB.call(this)||this;D.__renderDebouncer=null;D._lastIf=!1;D.__hideTemplateChildren__=!1;return D};
_.n(Ih,ZB);_.u=Ih.prototype;_.u.__debounceRender=function(){var D=this;this.__renderDebouncer=_.CD(this.__renderDebouncer,LF,function(){return D.__render()});
_.WX(this.__renderDebouncer)};
_.u.disconnectedCallback=function(){ZB.prototype.disconnectedCallback.call(this);var D=(0,_.Vt)(this).parentNode;D&&(D.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Vt)(D).host)||this.__teardownInstance()};
_.u.connectedCallback=function(){ZB.prototype.connectedCallback.call(this);scU()||(this.style.display="none");this.if&&this.__debounceRender()};
_.u.__ensureTemplate=function(){var D=this;if(!this.__template){var Y=this._templateInfo?this:(0,_.Vt)(this).querySelector("template");if(!Y){var R=new MutationObserver(function(){if((0,_.Vt)(D).querySelector("template"))R.disconnect(),D.__render();else throw Error("Jd");});
R.observe(this,{childList:!0});return!1}this.__template=Y}return!0};
_.u.__ensureInstance=function(){var D=(0,_.Vt)(this).parentNode;if(this.__hasInstance()){var Y=this.__getInstanceNodes();if(Y&&Y.length&&(0,_.Vt)(this).previousSibling!==Y[Y.length-1])for(var R=0,Z=void 0;R<Y.length&&(Z=Y[R]);R++)(0,_.Vt)(D).insertBefore(Z,this)}else{if(!D||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(D)}return!0};
_.u.render=function(){_.jR()};
_.u.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();dk&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.u.__hasInstance=function(){};
_.u.__getInstanceNodes=function(){};
_.u.__createAndInsertInstance=function(){};
_.u.__teardownInstance=function(){};
_.u._showHideChildren=function(){};
_.YF.Object.defineProperties(Ih,{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:Ih.prototype.__debounceRender},restamp:{type:Boolean,observer:Ih.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var nxU=function(){var D=Ih.call(this)||this;D.__instance=null;D.__syncInfo=null;return D};
_.n(nxU,Ih);_.u=nxU.prototype;_.u.__hasInstance=function(){return!!this.__instance};
_.u.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.u.__createAndInsertInstance=function(D){var Y=this,R=this.__dataHost||this;if(By&&!this.__dataHost)throw Error("Hd");var Z=R._bindTemplate(this.__template,!0);Z.runEffects=function(t,X,M){var W=Y.__syncInfo;if(Y.if)W&&(Y.__syncInfo=null,Y._showHideChildren(),X=Object.assign(W.changedProps,X)),t(X,M);else if(Y.__instance)if(W||(W=Y.__syncInfo={runEffects:t,changedProps:{}}),M)for(var z in X)t=zy(z),W.changedProps[t]=Y.__dataHost[t];else Object.assign(W.changedProps,X)};
this.__instance=R._stampTemplate(this.__template,Z);(0,_.Vt)(D).insertBefore(this.__instance,this)};
_.u.__syncHostProperties=function(){var D=this.__syncInfo;D&&(this.__syncInfo=null,D.runEffects(D.changedProps,!1))};
_.u.__teardownInstance=function(){var D=this.__dataHost||this;this.__instance&&(D._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.u._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,Msl(D,this.__instance.templateInfo.childNodes));D||this.__syncHostProperties()};
var ruU=function(){var D=Ih.call(this)||this;D.__ctor=null;D.__instance=null;D.__invalidProps=null;return D};
_.n(ruU,Ih);_.u=ruU.prototype;_.u.__hasInstance=function(){return!!this.__instance};
_.u.__getInstanceNodes=function(){return this.__instance.children};
_.u.__createAndInsertInstance=function(D){this.__ctor||(this.__ctor=Py(this.__template,this,{mutableData:!0,forwardHostProp:function(Y,R){this.__instance&&(this.if?this.__instance.forwardHostProp(Y,R):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[zy(Y)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Vt)(D).insertBefore(this.__instance.root,this)};
_.u.__teardownInstance=function(){if(this.__instance){var D=this.__instance.children;if(D&&D.length){var Y=(0,_.Vt)(D[0]).parentNode;if(Y){Y=(0,_.Vt)(Y);for(var R=0,Z=void 0;R<D.length&&(Z=D[R]);R++)Y.removeChild(Z)}}this.__instance=this.__invalidProps=null}};
_.u.__syncHostProperties=function(){var D=this.__invalidProps;if(D){this.__invalidProps=null;for(var Y in D)this.__instance._setPendingProperty(Y,this.__dataHost[Y]);this.__instance._flushProperties()}};
_.u._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,this.__instance._showHideChildren(D));D||this.__syncHostProperties()};
_.Ug=gk?nxU:ruU;customElements.define(_.Ug.is,_.Ug);Polymer.enqueueDebouncer=_.WX;Polymer.flush=_.jR;Polymer.Templatize={templatize:Py,modelForElement:e9M};Polymer.TemplateInstanceBase=xM;Polymer.DomIf=_.Ug;var wUY=fQb(ZB),ky=function(){var D=wUY.call(this)||this;D.__instances=[];D.__renderDebouncer=null;D.__itemsIdxToInstIdx={};D.__chunkCount=null;D.__renderStartTime=null;D.__itemsArrayChanged=!1;D.__shouldMeasureChunk=!1;D.__shouldContinueChunking=!1;D.__chunkingId=0;D.__sortFn=null;D.__filterFn=null;D.__observePaths=null;D.__ctor=null;D.__isDetached=!0;D.template=null;return D};
_.n(ky,wUY);_.u=ky.prototype;_.u.disconnectedCallback=function(){wUY.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var D=0;D<this.__instances.length;D++)this.__detachInstance(D);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.u.connectedCallback=function(){wUY.prototype.connectedCallback.call(this);scU()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var D=(0,_.Vt)((0,_.Vt)(this).parentNode),Y=0;Y<this.__instances.length;Y++)this.__attachInstance(Y,D);this.__chunkingId&&this.__render()}};
_.u.__ensureTemplatized=function(){var D=this;if(!this.__ctor){var Y=this.template=this._templateInfo?this:this.querySelector("template");if(!Y){var R=new MutationObserver(function(){if(D.querySelector("template"))R.disconnect(),D.__render();else throw Error("Kd");});
R.observe(this,{childList:!0});return!1}var Z={};Z[this.as]=!0;Z[this.indexAs]=!0;Z[this.itemsIndexAs]=!0;this.__ctor=Py(Y,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Z,forwardHostProp:function(t,X){for(var M=this.__instances,W=0,z=void 0;W<M.length&&(z=M[W]);W++)z.forwardHostProp(t,X)},
notifyInstanceProp:function(t,X,M){mV5(this.as,X)&&(t=t[this.itemsIndexAs],X==this.as&&(this.items[t]=M),X=Ty(this.as,"items."+t,X),this.notifyPath(X,M))}})}return!0};
_.u.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.u.__functionFromPropertyValue=function(D){if(typeof D==="string"){var Y=this.__getMethodHost();return function(){return Y[D].apply(Y,arguments)}}return D};
_.u.__sortChanged=function(D){this.__sortFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.u.__filterChanged=function(D){this.__filterFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.u.__computeFrameTime=function(D){return Math.ceil(1E3/D)};
_.u.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.u.__handleObservedPaths=function(D){if(this.__sortFn||this.__filterFn)if(!D)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var Y=this.__observePaths,R=0;R<Y.length;R++)D.indexOf(Y[R])===0&&this.__debounceRender(this.__render,this.delay)};
_.u.__itemsChanged=function(D){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(D.path,D.value)||(D.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.u.__debounceRender=function(D,Y){Y=Y===void 0?0:Y;this.__renderDebouncer=_.CD(this.__renderDebouncer,Y>0?_.OF.after(Y):LF,D.bind(this));_.WX(this.__renderDebouncer)};
_.u.render=function(){this.__debounceRender(this.__render);_.jR()};
_.u.__render=function(){var D=this;if(this.__ensureTemplatized()){var Y=this.items||[],R=this.__sortAndFilterItems(Y),Z=this.__calculateLimit(R.length);this.__updateInstances(Y,Z,R);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){D.__chunkingId=null;D.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);dk&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.u.__sortAndFilterItems=function(D){for(var Y=this,R=Array(D.length),Z=0;Z<D.length;Z++)R[Z]=Z;this.__filterFn&&(R=R.filter(function(t,X,M){return Y.__filterFn(D[t],X,M)}));
this.__sortFn&&R.sort(function(t,X){return Y.__sortFn(D[t],D[X])});
return R};
_.u.__calculateLimit=function(D){var Y=D,R=this.__instances.length;if(this.initialCount){var Z;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(Y=Math.min(D,this.initialCount),this.__chunkCount=(Z=Math.max(Y-R,0))||1):(Z=Math.min(Math.max(D-R,0),this.__chunkCount),Y=Math.min(R+Z,D));this.__shouldMeasureChunk=Z===this.__chunkCount;this.__shouldContinueChunking=Y<D;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return Y};
_.u.__continueChunking=function(){if(this.__shouldMeasureChunk){var D=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/D*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.u.__updateInstances=function(D,Y,R){var Z=this.__itemsIdxToInstIdx={},t;for(t=0;t<Y;t++){var X=this.__instances[t],M=R[t],W=D[M];Z[M]=t;X?(X._setPendingProperty(this.as,W),X._setPendingProperty(this.indexAs,t),X._setPendingProperty(this.itemsIndexAs,M),X._flushProperties()):this.__insertInstance(W,t,M)}for(D=this.__instances.length-1;D>=t;D--)this.__detachAndRemoveInstance(D)};
_.u.__detachInstance=function(D){D=this.__instances[D];for(var Y=(0,_.Vt)(D.root),R=0;R<D.children.length;R++)Y.appendChild(D.children[R]);return D};
_.u.__attachInstance=function(D,Y){Y.insertBefore(this.__instances[D].root,this)};
_.u.__detachAndRemoveInstance=function(D){this.__detachInstance(D);this.__instances.splice(D,1)};
_.u.__stampInstance=function(D,Y,R){var Z={};Z[this.as]=D;Z[this.indexAs]=Y;Z[this.itemsIndexAs]=R;return new this.__ctor(Z)};
_.u.__insertInstance=function(D,Y,R){D=this.__stampInstance(D,Y,R);R=(R=this.__instances[Y+1])?R.children[0]:this;(0,_.Vt)((0,_.Vt)(this).parentNode).insertBefore(D.root,R);return this.__instances[Y]=D};
_.u._showHideChildren=function(D){for(var Y=0;Y<this.__instances.length;Y++)this.__instances[Y]._showHideChildren(D)};
_.u.__handleItemPath=function(D,Y){var R=D.slice(6),Z=R.indexOf(".");D=Z<0?R:R.substring(0,Z);if(D==parseInt(D,10)){R=Z<0?"":R.substring(Z+1);this.__handleObservedPaths(R);if(D=this.__instances[this.__itemsIdxToInstIdx[D]])D._setPendingPropertyOrPath(this.as+(R?"."+R:""),Y,!1,!0),D._flushProperties();return!0}};
_.u.itemForElement=function(D){return(D=this.modelForElement(D))&&D[this.as]};
_.u.indexForElement=function(D){return(D=this.modelForElement(D))&&D[this.indexAs]};
_.u.modelForElement=function(D){return e9M(this.template,D)};
_.YF.Object.defineProperties(ky,{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:ky.prototype.__sortChanged},filter:{type:Function,observer:ky.prototype.__filterChanged},observe:{type:String,observer:ky.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!dk,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.*)"]}}});
ky.prototype._setRenderedItemCount=function(){};
customElements.define(ky.is,ky);Polymer.DomRepeat=ky;var $wV=function(D,Y){var R=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=D;this.callback=Y;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){R._schedule()};
this.connect();this._schedule()},vxU=function(D){var Y=(0,_.Vt)(D);
if(pF(D))return Y.assignedNodes({flatten:!0});D=[];for(var R=0;R<Y.childNodes.length;R++){var Z=Y.childNodes[R];pF(Z)?D.push.apply(D,_.oK((0,_.Vt)(Z).assignedNodes({flatten:!0}))):D.push(Z)}return D};
_.u=$wV.prototype;_.u.connect=function(){var D=this;pF(this._target)?this._listenSlots([this._target]):(0,_.Vt)(this._target).children&&(this._listenSlots((0,_.Vt)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(Y){D._processMutations(Y)}):(this._nativeChildrenObserver=new MutationObserver(function(Y){D._processMutations(Y)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.u.disconnect=function(){pF(this._target)?this._unlistenSlots([this._target]):(0,_.Vt)(this._target).children&&(this._unlistenSlots((0,_.Vt)(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};
_.u._schedule=function(){var D=this;this._scheduled||(this._scheduled=!0,LF.run(function(){return D.flush()}))};
_.u._processMutations=function(D){this._processSlotMutations(D);this.flush()};
_.u._processSlotMutations=function(D){if(D)for(var Y=0;Y<D.length;Y++){var R=D[Y];R.addedNodes&&this._listenSlots(R.addedNodes);R.removedNodes&&this._unlistenSlots(R.removedNodes)}};
_.u.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 D={target:this._target,addedNodes:[],removedNodes:[]},Y=vxU(this._target),R=fF$(Y,this._effectiveNodes),Z=0,t=void 0;Z<R.length&&(t=R[Z]);Z++)for(var X=0,M=void 0;X<t.removed.length&&(M=t.removed[X]);X++)D.removedNodes.push(M);
Z=0;for(t=void 0;Z<R.length&&(t=R[Z]);Z++)for(X=t.index;X<t.index+t.addedCount;X++)D.addedNodes.push(Y[X]);this._effectiveNodes=Y;Y=!1;if(D.addedNodes.length||D.removedNodes.length)Y=!0,this.callback.call(this._target,D);return Y};
_.u._listenSlots=function(D){for(var Y=0;Y<D.length;Y++){var R=D[Y];pF(R)&&R.addEventListener("slotchange",this._boundSchedule)}};
_.u._unlistenSlots=function(D){for(var Y=0;Y<D.length;Y++){var R=D[Y];pF(R)&&R.removeEventListener("slotchange",this._boundSchedule)}};var FS=Element.prototype,oxb=FS.matches||FS.matchesSelector||FS.mozMatchesSelector||FS.msMatchesSelector||FS.oMatchesSelector||FS.webkitMatchesSelector,bh_=function(D,Y){return oxb.call(D,Y)},Ew=function(D){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(D);
this.node=D},JuU;
_.u=Ew.prototype;_.u.observeNodes=function(D){return new $wV(this.node,D)};
_.u.unobserveNodes=function(D){D.disconnect()};
_.u.notifyObserver=function(){};
_.u.deepContains=function(D){if((0,_.Vt)(this.node).contains(D))return!0;var Y=D;for(D=D.ownerDocument;Y&&Y!==D&&Y!==this.node;)Y=(0,_.Vt)(Y).parentNode||(0,_.Vt)(Y).host;return Y===this.node};
_.u.getOwnerRoot=function(){return(0,_.Vt)(this.node).getRootNode()};
_.u.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Vt)(this.node).assignedNodes({flatten:!0}):[]};
_.u.getDestinationInsertionPoints=function(){for(var D=[],Y=(0,_.Vt)(this.node).assignedSlot;Y;)D.push(Y),Y=(0,_.Vt)(Y).assignedSlot;return D};
_.u.importNode=function(D,Y){return(0,_.Vt)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(D,Y)};
_.u.getEffectiveChildNodes=function(){return vxU(this.node)};
_.u.queryDistributedElements=function(D){for(var Y=this.getEffectiveChildNodes(),R=[],Z=0,t=Y.length,X=void 0;Z<t&&(X=Y[Z]);Z++)X.nodeType===Node.ELEMENT_NODE&&bh_(X,D)&&R.push(X);return R};
_.YF.Object.defineProperties(Ew.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var D=this.node;return D._activeElement!==void 0?D._activeElement:D.activeElement}}});
var Gp=function(D){this.event=D};
_.YF.Object.defineProperties(Gp.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 yu1=Ew;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var NLL=window.ShadyDOM.Wrapper,lQb=function(){return NLL.apply(this,arguments)||this};
_.n(lQb,NLL);Object.getOwnPropertyNames(Ew.prototype).forEach(function(D){D!="activeElement"&&D!="constructor"&&(lQb.prototype[D]=Ew.prototype[D])});
n09(lQb.prototype,["classList"]);yu1=lQb;Object.defineProperties(Gp.prototype,{localTarget:{get:function(){var D=this.event.currentTarget;D=D&&_.oR(D).getOwnerRoot();for(var Y=this.path,R=0;R<Y.length;R++){var Z=Y[R];if(_.oR(Z).getOwnerRoot()===D)return Z}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else ArU(),n09(Ew.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),rro();JuU=yu1;_.oR=function(D){D=D||document;if(D instanceof yu1)return D;if(D instanceof Gp)return D;var Y=D.__domApi;Y||(D instanceof Event?Y=new Gp(D):Y=new yu1(D),D.__domApi=Y);return Y};var kLz=/:host\(:dir\((ltr|rtl)\)\)/g,UwE=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,KWD=/:dir\((?:ltr|rtl)\)/,h1U=!(!window.ShadyDOM||!window.ShadyDOM.inUse),du=[],VZ=null,gu="",LWE=cA(function(D){h1U||VZ||(gu=document.documentElement.getAttribute("dir"),VZ=new MutationObserver(wQr),VZ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var Y=Pi_(D);D=function(){var R=Y.call(this)||this;R.__autoDirOptOut=!1;return R};
_.n(D,Y);D._processStyleText=function(R,Z){R=Y._processStyleText.call(this,R,Z);!h1U&&KWD.test(R)&&(R=this._replaceDirInCssText(R),this.__activateDir=!0);return R};
D._replaceDirInCssText=function(R){R=R.replace(kLz,':host([dir="$1"])');return R=R.replace(UwE,':host([dir="$2"]) $1')};
D.prototype.ready=function(){Y.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
D.prototype.connectedCallback=function(){Y.prototype.connectedCallback&&Y.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(VZ&&VZ.takeRecords().length&&wQr(),du.push(this),this.__autoDirOptOut||this.setAttribute("dir",gu))};
D.prototype.disconnectedCallback=function(){Y.prototype.disconnectedCallback&&Y.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var R=du.indexOf(this);R>-1&&du.splice(R,1)}};
D.__activateDir=!1;return D});var mwz=function(D){for(;D;){var Y=Object.getOwnPropertyDescriptor(D,"observedAttributes");if(Y)return Y.get;D=Object.getPrototypeOf(D.prototype).constructor}return function(){return[]}};
cA(function(D){var Y=Rh(D),R=mwz(Y);D=function(){return Y.call(this)||this};
_.n(D,Y);D.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:Y.prototype._initializeProperties.call(this)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||Y.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(Z){return Y.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
D.prototype.attributeChangedCallback=function(Z,t,X,M){Z=="disable-upgrade"?this.__isUpgradeDisabled&&X==null&&(Y.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Vt)(this).isConnected&&Y.prototype.connectedCallback.call(this)):Y.prototype.attributeChangedCallback.call(this,Z,t,X,M)};
D.prototype.connectedCallback=function(){this.__isUpgradeDisabled||Y.prototype.connectedCallback.call(this)};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||Y.prototype.disconnectedCallback.call(this)};
_.YF.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return R.call(this).concat("disable-upgrade")}}});
return D});var iy=!1,v0U=[],Ow=[];var N05=window.ShadyDOM,lD9=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",kXo):document.readyState==="interactive"||document.readyState==="complete"?kXo():window.addEventListener("DOMContentLoaded",kXo);var h9n=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=""},Upo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Kob=/@import[^;]*;/gim,PhU=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,QcU=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,B0U=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,pQU=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,HwU=/^@[^\s]*keyframes/,
qbl=/\s+/g;var E0i={};var iw5=Promise.resolve();var qMY=new Set;var HhL=/;\s*/m,xwE=/^\s*(initial)|(inherit)\s*$/,P0L=/\s*!important/,QkE=function(){this._map={}};
QkE.prototype.set=function(D,Y){D=D.trim();this._map[D]={properties:Y,dependants:{}}};
QkE.prototype.get=function(D){D=D.trim();return this._map[D]||null};
var BL4=null,fD=function(){this._measureElement=this._currentElement=null;this._map=new QkE};
_.u=fD.prototype;_.u.detectMixin=function(D){D=aQ7.test(D)||us7.test(D);aQ7.lastIndex=0;us7.lastIndex=0;return D};
_.u.transformTemplate=function(D,Y){if(D._gatheredStyle===void 0){var R=[];for(var Z=D.content.querySelectorAll("style"),t=0;t<Z.length;t++){var X=Z[t];if(X.hasAttribute("shady-unscoped")){if(!ynr){var M=X.textContent;if(!qMY.has(M)){qMY.add(M);var W=document.createElement("style");W.setAttribute("shady-unscoped","");W.textContent=M;document.head.appendChild(W)}X.parentNode.removeChild(X)}}else R.push(X.textContent),X.parentNode.removeChild(X)}(R=R.join("").trim())?(Z=document.createElement("style"),
Z.textContent=R,D.content.insertBefore(Z,D.content.firstChild),R=Z):R=null;D._gatheredStyle=R}return(D=D._gatheredStyle)?this.JSC$11174_transformStyle(D,Y):null};
_.u.JSC$11174_transformStyle=function(D,Y){Y=Y===void 0?"":Y;var R=Yrr(D);this.transformRules(R,Y);D.textContent=Dql(R);return R};
_.u.transformCustomStyle=function(D){var Y=this,R=Yrr(D);ZCy(R,function(Z){Z.selector===":root"&&(Z.selector="html");Y.transformRule(Z)});
D.textContent=Dql(R);return R};
_.u.transformRules=function(D,Y){var R=this;this._currentElement=Y;ZCy(D,function(Z){R.transformRule(Z)});
this._currentElement=null};
_.u.transformRule=function(D){D.cssText=pUV(this,D.parsedCssText,D);D.selector===":root"&&(D.selector=":host > *")};
var pUV=function(D,Y,R){Y=Y.replace(us7,function(Z,t,X,M){return D._produceCssProperties(Z,t,X,M,R)});
return D._consumeCssProperties(Y,R)};
_.u=fD.prototype;_.u._getInitialValueForProperty=function(D){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(D)};
_.u._fallbacksFromPreviousRules=function(D){for(var Y=this,R=D;R.parent;)R=R.parent;var Z={},t=!1;ZCy(R,function(X){(t=t||X===D)||X.selector===D.selector&&Object.assign(Z,Y._cssTextToMap(X.parsedCssText))});
return Z};
_.u._consumeCssProperties=function(D,Y){for(var R;R=aQ7.exec(D);){var Z=R[0],t=R[1];R=R.index;var X=R+Z.indexOf("@apply"),M=R+Z.length;Z=D.slice(0,X);D=D.slice(M);X=Y?this._fallbacksFromPreviousRules(Y):{};Object.assign(X,this._cssTextToMap(Z));t=this._atApplyToCssProperties(t,X);D=Z+t+D;aQ7.lastIndex=R+t.length}return D};
_.u._atApplyToCssProperties=function(D,Y){D=D.replace(HhL,"");var R=[],Z=this._map.get(D);Z||(this._map.set(D,{}),Z=this._map.get(D));if(Z){this._currentElement&&(Z.dependants[this._currentElement]=!0);var t,X=Z.properties;for(t in X){var M=Y&&Y[t];Z=[t,": var(",D,"_-_",t];M&&Z.push(",",M.replace(P0L,""));Z.push(")");P0L.test(X[t])&&Z.push(" !important");R.push(Z.join(""))}}return R.join("; ")};
_.u._replaceInitialOrInherit=function(D,Y){var R=xwE.exec(Y);R&&(Y=R[1]?this._getInitialValueForProperty(D):"apply-shim-inherit");return Y};
_.u._cssTextToMap=function(D,Y){Y=Y===void 0?!1:Y;D=D.split(";");for(var R,Z,t={},X=0;X<D.length;X++)if(R=D[X])Z=R.split(":"),Z.length>1&&(R=Z[0].trim(),Z=Z.slice(1).join(":"),Y&&(Z=this._replaceInitialOrInherit(R,Z)),t[R]=Z);return t};
_.u._invalidateMixinEntry=function(D){if(BL4)for(var Y in D.dependants)Y!==this._currentElement&&BL4(Y)};
_.u._produceCssProperties=function(D,Y,R,Z,t){var X=this;R&&tUi(R,function(r,l){l&&X._map.get(l)&&(Z="@apply "+l+";")});
if(!Z)return D;var M=this._consumeCssProperties(""+Z,t);t=D.slice(0,D.indexOf("--"));var W=M=this._cssTextToMap(M,!0),z=this._map.get(Y),I=z&&z.properties;I?W=Object.assign(Object.create(I),M):this._map.set(Y,W);var F=[],G,V=!1;for(G in W){var e=M[G];e===void 0&&(e="initial");!I||G in I||(V=!0);F.push(Y+"_-_"+G+": "+e)}V&&this._invalidateMixinEntry(z);z&&(z.properties=W);R&&(t=D+";"+t);return t+F.join("; ")+";"};
fD.prototype.detectMixin=fD.prototype.detectMixin;fD.prototype.transformStyle=fD.prototype.JSC$11174_transformStyle;fD.prototype.transformCustomStyle=fD.prototype.transformCustomStyle;fD.prototype.transformRules=fD.prototype.transformRules;fD.prototype.transformRule=fD.prototype.transformRule;fD.prototype.transformTemplate=fD.prototype.transformTemplate;fD.prototype._separator="_-_";Object.defineProperty(fD.prototype,"invalidCallback",{get:function(){return BL4},
set:function(D){BL4=D}});var eR=new fD,Ex1=function(){this.customStyleInterface=null;eR.invalidCallback=g0i},Aw=function(D){!D.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(D.customStyleInterface=window.ShadyCSS.CustomStyleInterface,D.customStyleInterface.transformCallback=function(Y){eR.transformCustomStyle(Y)},D.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){D.customStyleInterface.enqueued&&D.flushCustomStyles()})})};
_.u=Ex1.prototype;_.u.prepareTemplate=function(D,Y){Aw(this);sgy(D)===""&&(E0i[Y]=D,Y=eR.transformTemplate(D,Y),D._styleAst=Y)};
_.u.flushCustomStyles=function(){Aw(this);if(this.customStyleInterface){var D=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var Y=0;Y<D.length;Y++){var R=this.customStyleInterface.getStyleForCustomStyle(D[Y]);R&&eR.transformCustomStyle(R)}this.customStyleInterface.enqueued=!1}}};
_.u.styleSubtree=function(D,Y){Aw(this);Y&&n5U(D,Y);if(D.shadowRoot)for(this.styleElement(D),D=D.shadowRoot.children||D.shadowRoot.childNodes,Y=0;Y<D.length;Y++)this.styleSubtree(D[Y]);else for(D=D.children||D.childNodes,Y=0;Y<D.length;Y++)this.styleSubtree(D[Y])};
_.u.styleElement=function(D){Aw(this);var Y=D.localName,R;Y?Y.indexOf("-")>-1?R=Y:R=D.getAttribute&&D.getAttribute("is")||"":R=D.is;Y=E0i[R];if(!(Y&&sgy(Y)!==""||!Y||dpU(Y))){if(dpU(Y)||Y._applyShimValidatingVersion!==Y._applyShimNextVersion)this.prepareTemplate(Y,R),Owr(Y);if(D=D.shadowRoot)if(D=D.querySelector("style"))D.__cssRules=Y._styleAst,D.textContent=Dql(Y._styleAst)}};
_.u.styleDocument=function(D){Aw(this);this.styleSubtree(document.body,D)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var nD=new Ex1,gxL=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(D,Y){nD.flushCustomStyles();nD.prepareTemplate(D,Y)},
prepareTemplateStyles:function(D,Y,R){window.ShadyCSS.prepareTemplate(D,Y,R)},
prepareTemplateDom:function(){},
styleSubtree:function(D,Y){nD.flushCustomStyles();nD.styleSubtree(D,Y)},
styleElement:function(D){nD.flushCustomStyles();nD.styleElement(D)},
styleDocument:function(D){nD.flushCustomStyles();nD.styleDocument(D)},
getComputedStyleValue:function(D,Y){return rny(D,Y)},
flushCustomStyles:function(){nD.flushCustomStyles()},
nativeCss:cri,nativeShadow:ynr,cssBuild:Da,disableRuntime:WWz};gxL&&(window.ShadyCSS.CustomStyleInterface=gxL)}window.ShadyCSS.ApplyShim=eR;var dwL;dwL=window.ShadyCSS;_.r7=cA(function(D){D=VCE(Rh(D));var Y=DwD?D:LWE(D),R=mwz(Y),Z={x:"pan-x",y:"pan-y",none:"none",all:"auto"};D=function(){return Y.call(this)||this};
_.n(D,Y);D.prototype.created=function(){};
D.prototype.__attributeReaction=function(t,X,M){(this.__dataAttributes&&this.__dataAttributes[t]||t==="disable-upgrade")&&this.attributeChangedCallback(t,X,M,null)};
D.prototype.setAttribute=function(t,X){if(v84&&!this._legacyForceObservedAttributes){var M=this.getAttribute(t);Y.prototype.setAttribute.call(this,t,X);this.__attributeReaction(t,M,String(X))}else Y.prototype.setAttribute.call(this,t,X)};
D.prototype.removeAttribute=function(t){if(v84&&!this._legacyForceObservedAttributes){var X=this.getAttribute(t);Y.prototype.removeAttribute.call(this,t);this.__attributeReaction(t,X,null)}else Y.prototype.removeAttribute.call(this,t)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||Y.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(t){return Y.prototype._canApplyPropertyDefault.call(this,t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))};
D.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(Y.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
D.prototype.attached=function(){};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(Y.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
D.prototype.detached=function(){};
D.prototype.attributeChangedCallback=function(t,X,M,W){X!==M&&(t=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Vt)(this).isConnected&&this.connectedCallback()):(Y.prototype.attributeChangedCallback.call(this,t,X,M,W),this.attributeChanged(t,X,M)))};
D.prototype.attributeChanged=function(){};
D.prototype._initializeProperties=function(){if(q7&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var t=Object.getPrototypeOf(this);t.hasOwnProperty("__hasRegisterFinished")||(this._registered(),t.__hasRegisterFinished=!0);Y.prototype._initializeProperties.call(this);this.root=this;this.created();v84&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
D.prototype._takeAttributes=function(){for(var t=this.attributes,X=0,M=t.length;X<M;X++){var W=t[X];this.__attributeReaction(W.name,null,W.value)}};
D.prototype._registered=function(){};
D.prototype.ready=function(){this._ensureAttributes();Y.prototype.ready.call(this)};
D.prototype._ensureAttributes=function(){};
D.prototype._applyListeners=function(){};
D.prototype.serialize=function(t){return this._serializeValue(t)};
D.prototype.deserialize=function(t,X){return this._deserializeValue(t,X)};
D.prototype.reflectPropertyToAttribute=function(t,X,M){this._propertyToAttribute(t,X,M)};
D.prototype.serializeValueToAttribute=function(t,X,M){this._valueToNodeAttribute(M||this,t,X)};
D.prototype.extend=function(t,X){if(!t||!X)return t||X;for(var M=Object.getOwnPropertyNames(X),W=0,z=void 0;W<M.length&&(z=M[W]);W++){var I=Object.getOwnPropertyDescriptor(X,z);I&&Object.defineProperty(t,z,I)}return t};
D.prototype.mixin=function(t,X){for(var M in X)t[M]=X[M];return t};
D.prototype.chainObject=function(t,X){t&&X&&t!==X&&(t.__proto__=X);return t};
D.prototype.instanceTemplate=function(t){t=this.constructor._contentForTemplate(t);return document.importNode(t,!0)};
D.prototype.fire=function(t,X,M){M=M||{};X=X===null||X===void 0?{}:X;t=new Event(t,{bubbles:M.bubbles===void 0?!0:M.bubbles,cancelable:!!M.cancelable,composed:M.composed===void 0?!0:M.composed});t.detail=X;(0,_.Vt)(M.node||this).dispatchEvent(t);return t};
D.prototype.listen=function(t,X,M){t=t||this;var W=this.__boundListeners||(this.__boundListeners=new WeakMap),z=W.get(t);z||(z={},W.set(t,z));W=X+M;z[W]||(z[W]=this._addMethodEventListenerToNode(t,X,M,this))};
D.prototype.unlisten=function(t,X,M){t=t||this;var W=this.__boundListeners&&this.__boundListeners.get(t);M=X+M;var z=W&&W[M];z&&(this._removeEventListenerFromNode(t,X,z),W[M]=null)};
D.prototype.setScrollDirection=function(t,X){_.hN(X||this,Z[t]||"auto")};
D.prototype.$$=function(t){return this.root.querySelector(t)};
D.prototype.distributeContent=function(){var t=_.oR(this);window.ShadyDOM&&t.shadowRoot&&ShadyDOM.flush()};
D.prototype.getEffectiveChildNodes=function(){return _.oR(this).getEffectiveChildNodes()};
D.prototype.queryDistributedElements=function(t){return _.oR(this).queryDistributedElements(t)};
D.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
D.prototype.getEffectiveTextContent=function(){for(var t=this.getEffectiveChildNodes(),X=[],M=0,W;W=t[M];M++)W.nodeType!==Node.COMMENT_NODE&&X.push(W.textContent);return X.join("")};
D.prototype.queryEffectiveChildren=function(t){return(t=this.queryDistributedElements(t))&&t[0]};
D.prototype.queryAllEffectiveChildren=function(t){return this.queryDistributedElements(t)};
D.prototype.getContentChildNodes=function(t){return(t=this.root.querySelector(t||"slot"))?_.oR(t).getDistributedNodes():[]};
D.prototype.getContentChildren=function(t){return this.getContentChildNodes(t).filter(function(X){return X.nodeType===Node.ELEMENT_NODE})};
D.prototype.isLightDescendant=function(t){return this!==t&&(0,_.Vt)(this).contains(t)&&(0,_.Vt)(this).getRootNode()===(0,_.Vt)(t).getRootNode()};
D.prototype.isLocalDescendant=function(t){return this.root===(0,_.Vt)(t).getRootNode()};
D.prototype.scopeSubtree=function(t,X){return Jry(t,X===void 0?!1:X)};
D.prototype.getComputedStyleValue=function(t){return dwL.getComputedStyleValue(this,t)};
D.prototype.debounce=function(t,X,M){this._debouncers=this._debouncers||{};return this._debouncers[t]=_.CD(this._debouncers[t],M>0?_.OF.after(M):LF,X.bind(this))};
D.prototype.isDebouncerActive=function(t){this._debouncers=this._debouncers||{};t=this._debouncers[t];return!(!t||!t.isActive())};
D.prototype.flushDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.flush()};
D.prototype.cancelDebouncer=function(t){this._debouncers=this._debouncers||{};(t=this._debouncers[t])&&t.cancel()};
D.prototype.async=function(t,X){return X>0?_.OF.run(t.bind(this),X):~LF.run(t.bind(this))};
D.prototype.cancelAsync=function(t){t<0?LF.cancel(~t):_.OF.cancel(t)};
D.prototype.create=function(t,X){t=document.createElement(t);if(X)if(t.setProperties)t.setProperties(X);else for(var M in X)t[M]=X[M];return t};
D.prototype.elementMatches=function(t,X){return bh_(X||this,t)};
D.prototype.toggleAttribute=function(t,X){var M=this;arguments.length===3&&(M=arguments[2]);arguments.length==1&&(X=!M.hasAttribute(t));if(X)return(0,_.Vt)(M).setAttribute(t,""),!0;(0,_.Vt)(M).removeAttribute(t);return!1};
D.prototype.toggleClass=function(t,X,M){M=M||this;arguments.length==1&&(X=!M.classList.contains(t));X?M.classList.add(t):M.classList.remove(t)};
D.prototype.transform=function(t,X){X=X||this;X.style.webkitTransform=t;X.style.transform=t};
D.prototype.translate3d=function(t,X,M,W){this.transform("translate3d("+t+","+X+","+M+")",W||this)};
D.prototype.arrayDelete=function(t,X){if(Array.isArray(t)){if(X=t.indexOf(X),X>=0)return t.splice(X,1)}else if(X=ID(this,t).indexOf(X),X>=0)return this.splice(t,X,1);return null};
D.prototype._logger=function(t,X){Array.isArray(X)&&X.length===1&&Array.isArray(X[0])&&(X=X[0]);switch(t){case "log":case "warn":case "error":console[t].apply(console,_.oK(X))}};
D.prototype._log=function(){this._logger("log",_.UN.apply(0,arguments))};
D.prototype._warn=function(){this._logger("warn",_.UN.apply(0,arguments))};
D.prototype._error=function(){this._logger("error",_.UN.apply(0,arguments))};
D.prototype._logf=function(t){return["[%s::%s]",this.is,t].concat(_.oK(_.UN.apply(1,arguments)))};
_.YF.Object.defineProperties(D.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var t=(0,_.Vt)(this).getRootNode();return t instanceof DocumentFragment?t.host:t}}});
_.YF.Object.defineProperties(D,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return v84&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],lxU(this.prototype)),this.__observedAttributes):R.call(this).concat("disable-upgrade")}}});
D.prototype.is="";return D});Polymer.FlattenedNodesObserver=$wV;Polymer.DomApi=JuU;Polymer.EventApi=Gp;Polymer.dom=_.oR;Polymer.dom.matchesSelector=bh_;Polymer.dom.flush=_.jR;Polymer.dom.addDebouncer=_.WX;Polymer.DirMixin=LWE;Polymer.RenderStatus={beforeNextRender:_.yri,afterNextRender:_.cy,flush:function(){for(;v0U.length||Ow.length;)$p9(v0U),$p9(Ow);iy=!1}};Polymer.LegacyElementMixin=_.r7;var ihz;ihz=SR._mutablePropertyChange;var Ohz={properties:{mutableData:Boolean},_shouldPropertyChange:function(D,Y,R){return ihz(this,D,Y,R,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(D,Y,R){return ihz(this,D,Y,R,!0)}};
Polymer.OptionalMutableDataBehavior=Ohz;var Xj9={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Wcr={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},C3r=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Wcr),cuU=(0,_.r7)(HTMLElement),YJU=function(D,Y){D||console.warn("Polymer.Class requires `info` argument");Y=Y?Y(cuU):cuU;Y=zDo(D,Y,D.behaviors);Y.is=Y.prototype.is=
D.is;return Y};Polymer.Class=YJU;Polymer.mixinBehaviors=function(D,Y){return zDo({},(0,_.r7)(Y),D)};
Polymer.GenerateClassFromInfo=zDo;_.Jj=function(D){var Y=typeof D==="function"?D:_.Jj.Class(D);D._legacyForceObservedAttributes&&(Y.prototype._legacyForceObservedAttributes=D._legacyForceObservedAttributes);customElements.define(Y.is,Y);return Y};
_.Jj.Class=YJU;Polymer._polymerFn=_.Jj;var D3_=window.onLegacyPolymerFunctionDefinedCallback;D3_&&D3_();var ZkU={templatize:function(D,Y){this._templatizerTemplate=D;this.ctor=Py(D,this,{mutableData:!!Y,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(D){return new this.ctor(D)},
modelForElement:function(D){return e9M(this._templatizerTemplate,D)}};Polymer.Templatizer=ZkU;_.w7=(0,_.r7)(HTMLElement).prototype;Polymer.Base=_.w7;var Tyy=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.RR=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.n(_.RR,PolymerFakeBaseClass);var Za=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.n(Za,PolymerFakeBaseClass);var jgi=Symbol("Ld"),nrl=[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 Y$z=Y$z||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},RsU;(function(D){function Y(Q,E,B){var O=c.get(Q);if(!O){if(!B)return;O=new K;c.set(Q,O)}Q=O.get(E);if(!Q){if(!B)return;Q=new K;O.set(E,Q)}return Q}
function R(Q,E,B){if(Z(Q,E,B))return!0;E=V(E);return E!==null?R(Q,E,B):!1}
function Z(Q,E,B){E=Y(E,B,!1);return E===void 0?!1:!!E.has(Q)}
function t(Q,E,B){if(Z(Q,E,B))return X(Q,E,B);E=V(E);if(E!==null)return t(Q,E,B)}
function X(Q,E,B){E=Y(E,B,!1);if(E!==void 0)return E.get(Q)}
function M(Q,E){var B=W(Q,E);Q=V(Q);if(Q===null)return B;var O=M(Q,E);if(O.length<=0)return B;if(B.length<=0)return O;E=new H;Q=[];B=_.a(B);for(var Wo=B.next();!Wo.done;Wo=B.next())Wo=Wo.value,E.has(Wo)||(E.add(Wo),Q.push(Wo));B=_.a(O);for(O=B.next();!O.done;O=B.next())O=O.value,E.has(O)||(E.add(O),Q.push(O));return Q}
function W(Q,E){Q=Y(Q,E,!1);var B=[];Q&&Q.forEach(function(O,Wo){return B.push(Wo)});
return B}
function z(Q){return Q===void 0}
function I(Q){return typeof Q==="object"?Q!==null:typeof Q==="function"}
function F(Q){return typeof Q==="function"}
function G(Q){return typeof Q==="symbol"?Q:String(Q)}
function V(Q){var E=Object.getPrototypeOf(Q);if(typeof Q!=="function"||Q===U||E!==U)return E;var B=Object.getPrototypeOf(Q.prototype);if(B==null||B===Object.prototype)return E;B=B.constructor;return typeof B!=="function"||B===Q?E:B}
function e(){function Q(){this._keys=[];this._values=[];this._cache=E}
var E={};Q.prototype={get size(){return this._keys.length},has:function(B){return B===this._cache?!0:this._find(B)>=0?(this._cache=B,!0):!1},
get:function(B){var O=this._find(B);if(O>=0)return this._cache=B,this._values[O]},
set:function(B,O){this.delete(B);this._keys.push(B);this._values.push(O);this._cache=B;return this},
delete:function(B){B=this._find(B);return B>=0?(this._keys.splice(B,1),this._values.splice(B,1),this._cache=E,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=E},
forEach:function(B){for(var O=this.size,Wo=0;Wo<O;++Wo){var Sb=this._keys[Wo],VU=this._values[Wo];this._cache=Sb;B.call(this,VU,Sb,this)}},
_find:function(B){for(var O=this._keys,Wo=O.length,Sb=0;Sb<Wo;++Sb)if(O[Sb]===B)return Sb;return-1}};
return Q}
function r(){function Q(){this._map=new K}
Q.prototype={get size(){return this._map.length},has:function(E){return this._map.has(E)},
add:function(E){this._map.set(E,E);return this},
delete:function(E){return this._map.delete(E)},
clear:function(){this._map.clear()},
forEach:function(E,B){this._map.forEach(E,B)}};
return Q}
function l(){function Q(){this._key=B()}
function E(nM,Ho){for(var KM=0;KM<Ho;++KM)nM[KM]=Math.random()*255|0}
function B(){do{if(Wo)var nM=Wo.randomBytes(16);else typeof Uint8Array==="function"?(nM=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(nM):E(nM,16)):(nM=Array(16),E(nM,16));nM[6]=nM[6]&79|64;nM[8]=nM[8]&191|128;for(var Ho="",KM=0;KM<16;++KM){var Xb=nM[KM];if(KM===4||KM===6||KM===8)Ho+="-";Xb<16&&(Ho+="0");Ho+=Xb.toString(16).toLowerCase()}nM="@@WeakMap@@"+Ho}while(Sb.call(VU,nM));VU[nM]=!0;return nM}
function O(nM,Ho){if(!Sb.call(nM,AS)){if(!Ho)return;Object.defineProperty(nM,AS,{value:Object.create(null)})}return nM[AS]}
var Wo=typeof global!=="undefined"&&typeof Y$z==="object"&&typeof require==="function"&&require("crypto"),Sb=Object.prototype.hasOwnProperty,VU={},AS=B();Q.prototype={has:function(nM){return(nM=O(nM,!1))?this._key in nM:!1},
get:function(nM){if(nM=O(nM,!1))return nM[this._key]},
set:function(nM,Ho){O(nM,!0)[this._key]=Ho;return this},
delete:function(nM){return(nM=O(nM,!1))&&this._key in nM?delete nM[this._key]:!1},
clear:function(){this._key=B()}};
return Q}
var U=Object.getPrototypeOf(Function),K=typeof Map==="function"?Map:e(),H=typeof Set==="function"?Set:r(),c=new (typeof WeakMap==="function"?WeakMap:l());D.decorate=function(Q,E,B,O){if(z(O)){if(z(B)){if(!Array.isArray(Q))throw new TypeError;if(!F(E))throw new TypeError;for(B=Q.length-1;B>=0;--B)if(O=(0,Q[B])(E),!z(O)){if(!F(O))throw new TypeError;E=O}return E}if(!Array.isArray(Q))throw new TypeError;if(!I(E))throw new TypeError;B=G(B);for(O=Q.length-1;O>=0;--O)(0,Q[O])(E,B)}else{if(Array.isArray(Q))if(I(E)){if(z(B))throw new TypeError;
if(!I(O))throw new TypeError;}else throw new TypeError;else throw new TypeError;B=G(B);for(var Wo=Q.length-1;Wo>=0;--Wo){var Sb=(0,Q[Wo])(E,B,O);if(!z(Sb)){if(!I(Sb))throw new TypeError;O=Sb}}return O}};
D.metadata=function(Q,E){return function(B,O){if(z(O)){if(!F(B))throw new TypeError;Y(B,void 0,!0).set(Q,E)}else{if(!I(B))throw new TypeError;O=G(O);Y(B,O,!0).set(Q,E)}}};
D.defineMetadata=function(Q,E){var B;if(I(E))z(B)||(B=G(B));else throw new TypeError;Y(E,B,!0).set("parameters",Q)};
D.hasMetadata=function(Q,E,B){if(I(E))z(B)||(B=G(B));else throw new TypeError;return R(Q,E,B)};
D.hasOwnMetadata=function(Q,E,B){if(I(E))z(B)||(B=G(B));else throw new TypeError;return Z(Q,E,B)};
D.getMetadata=function(Q,E,B){if(I(E))z(B)||(B=G(B));else throw new TypeError;return t(Q,E,B)};
D.getOwnMetadata=function(Q,E,B){if(I(E))z(B)||(B=G(B));else throw new TypeError;return X(Q,E,B)};
D.getMetadataKeys=function(Q,E){if(I(Q))z(E)||(E=G(E));else throw new TypeError;return M(Q,E)};
D.getOwnMetadataKeys=function(Q,E){if(I(Q))z(E)||(E=G(E));else throw new TypeError;return W(Q,E)};
D.deleteMetadata=function(Q,E,B){if(I(E))z(B)||(B=G(B));else throw new TypeError;var O=Y(E,B,!1);if(!z(O)){if(!O.delete(Q))return!1;if(O.size>0)return!0;Q=c.get(E);Q.delete(B);if(Q.size>0)return!0;c.delete(E);return!0}};
(function(Q){if(typeof Q.Reflect!=="undefined"){if(Q.Reflect!==D)for(var E in D)Q.Reflect[E]=D[E]}else Q.Reflect=D})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(RsU||(RsU={}));var ZnU=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
ZnU.prototype.addEventListener=function(D,Y,R){this.target.addEventListener(D,Y,R)};
ZnU.prototype.removeEventListener=function(D,Y,R){this.target.removeEventListener(D,Y,R)};
ZnU.prototype.dispatchEvent=function(D){if(this.onabort&&D.type==="abort")this.onabort(D);return this.target.dispatchEvent(D)};var tIL=function(){this.signal=new ZnU};
tIL.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var D=document.createEvent("Event");D.initEvent("abort",!1,!1);this.signal.dispatchEvent(D)}};var mf5=self;var sQY=[0,_.BQ,_.Eb,_.BQ];var XGD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(XGD,_.Y7);var u9D=_.C$(XGD,[0,_.H7U,_.g0,sQY,_.Eb,_.ih]);_.XN(_.t5,_.AE);_.u=_.t5.prototype;_.u.start=function(){this.stop();this.usingListeners_=!1;var D=alU(this),Y=MIU(this);D&&!Y&&this.JSC$11223_win_.mozRequestAnimationFrame?(this.JSC$11223_id_=_.yu(this.JSC$11223_win_,"MozBeforePaint",this.callback_),this.JSC$11223_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11223_id_=D&&Y?D.call(this.JSC$11223_win_,this.callback_):this.JSC$11223_win_.setTimeout(cSE(this.callback_),20)};
_.u.stop=function(){if(this.isActive()){var D=alU(this),Y=MIU(this);D&&!Y&&this.JSC$11223_win_.mozRequestAnimationFrame?vL(this.JSC$11223_id_):D&&Y?Y.call(this.JSC$11223_win_,this.JSC$11223_id_):this.JSC$11223_win_.clearTimeout(this.JSC$11223_id_)}this.JSC$11223_id_=null};
_.u.fire=function(){this.stop();this.JSC$11225_doAction_()};
_.u.isActive=function(){return this.JSC$11223_id_!=null};
_.u.JSC$11225_doAction_=function(){this.usingListeners_&&this.JSC$11223_id_&&vL(this.JSC$11223_id_);this.JSC$11223_id_=null;this.JSC$11223_listener_.call(this.handler_,_.sb())};
_.u.disposeInternal=function(){this.stop();_.t5.superClass_.disposeInternal.call(this)};
var alU=function(D){D=D.JSC$11223_win_;return D.requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||null},MIU=function(D){D=D.JSC$11223_win_;
return D.cancelAnimationFrame||D.cancelRequestAnimationFrame||D.webkitCancelRequestAnimationFrame||D.mozCancelRequestAnimationFrame||D.oCancelRequestAnimationFrame||D.msCancelRequestAnimationFrame||null};_.gq=function(D,Y,R){_.AE.call(this);this.JSC$11226_listener_=R!=null?D.bind(R):D;this.JSC$11226_interval_=Y;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11226_timer_=null};
_.n(_.gq,_.AE);_.u=_.gq.prototype;_.u.fire=function(D){this.args_=arguments;this.JSC$11226_timer_||this.pauseCount_?this.shouldFire_=!0:CXb(this)};
_.u.stop=function(){this.JSC$11226_timer_&&(_.ZU.clearTimeout(this.JSC$11226_timer_),this.JSC$11226_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.u.pause=function(){this.pauseCount_++};
_.u.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11226_timer_||(this.shouldFire_=!1,CXb(this))};
_.u.disposeInternal=function(){_.AE.prototype.disposeInternal.call(this);this.stop()};
var CXb=function(D){D.JSC$11226_timer_=vP(function(){D.JSC$11226_timer_=null;D.shouldFire_&&!D.pauseCount_&&(D.shouldFire_=!1,CXb(D))},D.JSC$11226_interval_);
var Y=D.args_;D.args_=null;D.JSC$11226_listener_.apply(null,Y)};var WVz=function(D,Y){this.childIterator_=D[_.ZU.Symbol.iterator]();this.mapFn_=Y};
WVz.prototype[Symbol.iterator]=function(){return this};
WVz.prototype.next=function(){var D=this.childIterator_.next();return{value:D.done?void 0:this.mapFn_.call(void 0,D.value),done:D.done}};
var zs_=function(D,Y){return new WVz(D,Y)};var S$b={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 VxU=function(D){var Y=T$E(D);if(!Y)throw Error("Pd`"+D);return Y},T$E=function(D){var Y={};
D=String(D);var R=D.charAt(0)=="#"?D:"#"+D;if(jQE.test(R))return Y.hex=SeU(R),Y.type="hex",Y;R=njU(D);return R.length?(Y.hex=Zar(R[0],R[1],R[2]),Y.type="rgb",Y):S$b&&(D=S$b[D.toLowerCase()])?(Y.hex=D,Y.type="named",Y):null},IlV=/#(.)(.)(.)/,SeU=function(D){if(!jQE.test(D))throw Error("Rd`"+D);
D.length==4&&(D=D.replace(IlV,"#$1$1$2$2$3$3"));return D.toLowerCase()},ffb=function(D){D=SeU(D);
D=parseInt(D.slice(1),16);return[D>>16,D>>8&255,D&255]},Zar=function(D,Y,R){D=Number(D);
Y=Number(Y);R=Number(R);if(D!=(D&255)||Y!=(Y&255)||R!=(R&255))throw Error("Sd`"+D+"`"+Y+"`"+R);Y=D<<16|Y<<8|R;return D<16?"#"+(16777216|Y).toString(16).slice(1):"#"+Y.toString(16)},jQE=/^#(?:[0-9a-f]{3}){1,2}$/i,FVD=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,njU=function(D){var Y=D.match(FVD);
if(Y){D=Number(Y[1]);var R=Number(Y[2]);Y=Number(Y[3]);if(D>=0&&D<=255&&R>=0&&R<=255&&Y>=0&&Y<=255)return[D,R,Y]}return[]};var GaD={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},V_=GaD;V_=GaD;var dHU,VIV,flV;dHU=function(D,Y){switch(Y){case 1:return D%4!=0||D%100==0&&D%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
VIV=function(D,Y,R,Z,t){D=new Date(D,Y,R);t=t||0;return D.valueOf()+(((Z!==void 0?Z:3)-t+7)%7-((D.getDay()+6)%7-t+7)%7)*864E5};
_.$L=function(D,Y,R){typeof D==="number"?(this.date=flV(D,Y||0,R||1),esV(this,R||1)):_.Bo(D)?(this.date=flV(D.getFullYear(),D.getMonth(),D.getDate()),esV(this,D.getDate())):(this.date=new Date(_.sb()),D=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),esV(this,D))};
flV=function(D,Y,R){Y=new Date(D,Y,R);D>=0&&D<100&&Y.setFullYear(Y.getFullYear()-1900);return Y};
_.u=_.$L.prototype;_.u.firstDayOfWeek_=V_.FIRSTDAYOFWEEK;_.u.firstWeekCutOffDay_=V_.FIRSTWEEKCUTOFFDAY;_.u.clone=function(){var D=new _.$L(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.u.getFullYear=function(){return this.date.getFullYear()};
_.u.getYear=function(){return this.getFullYear()};
_.u.getMonth=function(){return this.date.getMonth()};
_.u.getDate=function(){return this.date.getDate()};
_.u.getTime=function(){return this.date.getTime()};
_.u.getDay=function(){return this.date.getDay()};
_.u.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.u.getUTCMonth=function(){return this.date.getUTCMonth()};
_.u.getUTCDate=function(){return this.date.getUTCDate()};
_.u.getUTCDay=function(){return this.date.getDay()};
_.u.getUTCHours=function(){return this.date.getUTCHours()};
_.u.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.u.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.u.set=function(D){this.date=new Date(D.getFullYear(),D.getMonth(),D.getDate())};
_.u.setFullYear=function(D){this.date.setFullYear(D)};
_.u.setYear=function(D){this.setFullYear(D)};
_.u.setMonth=function(D){this.date.setMonth(D)};
_.u.setDate=function(D){this.date.setDate(D)};
_.u.setTime=function(D){this.date.setTime(D)};
_.u.setUTCFullYear=function(D){this.date.setUTCFullYear(D)};
_.u.setUTCMonth=function(D){this.date.setUTCMonth(D)};
_.u.setUTCDate=function(D){this.date.setUTCDate(D)};
_.u.add=function(D){if(D.years||D.months){var Y=this.getMonth()+D.months+D.years*12,R=this.getYear()+Math.floor(Y/12);Y%=12;Y<0&&(Y+=12);var Z=Math.min(dHU(R,Y),this.getDate());this.setDate(1);this.setFullYear(R);this.setMonth(Y);this.setDate(Z)}D.days&&(R=this.getYear(),Y=R>=0&&R<=99?-1900:0,D=new Date((new Date(R,this.getMonth(),this.getDate(),12)).getTime()+D.days*864E5),this.setDate(1),this.setFullYear(D.getFullYear()+Y),this.setMonth(D.getMonth()),this.setDate(D.getDate()),esV(this,D.getDate()))};
_.u.JSC$11239_toIsoString=function(D){var Y=this.getFullYear(),R=Y<0?"-":Y>=1E4?"+":"";return[R+_.Zo(Math.abs(Y),R?6:4),_.Zo(this.getMonth()+1,2),_.Zo(this.getDate(),2)].join(D?"-":"")};
_.u.equals=function(D){return!(!D||this.getYear()!=D.getYear()||this.getMonth()!=D.getMonth()||this.getDate()!=D.getDate())};
_.u.toString=function(){return this.JSC$11239_toIsoString()};
var esV=function(D,Y){D.getDate()!=Y&&D.date.setUTCHours(D.date.getUTCHours()+(D.getDate()<Y?1:-1))};
_.$L.prototype.valueOf=function(){return this.date.valueOf()};var oh=function(D,Y,R,Z,t){this.reversed=!!Y;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!R;D&&vX(this,D,Z);this.depth=t!=void 0?t:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.XN(oh,a6);var vX=function(D,Y,R,Z){if(D.node=Y)D.tagType=typeof R==="number"?R:D.node.nodeType!=1?0:D.reversed?-1:1;typeof Z==="number"&&(D.depth=Z)};
_.u=oh.prototype;_.u.JSC$11254_copyFrom=function(D){this.node=D.node;this.tagType=D.tagType;this.depth=D.depth;this.reversed=D.reversed;this.constrained=D.constrained};
_.u.clone=function(){return new oh(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.u.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return MF;var D=this.node;var Y=this.reversed?-1:1;if(this.tagType==Y){var R=this.reversed?D.lastChild:D.firstChild;R?vX(this,R):vX(this,D,Y*-1)}else(R=this.reversed?D.previousSibling:D.nextSibling)?vX(this,R):vX(this,D.parentNode,Y*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(D=this.node)?CK(D):MF};
_.u.equals=function(D){return D.node==this.node&&(!this.node||D.tagType==this.tagType)};
_.u.splice=function(D){var Y=this.node,R=this.reversed?1:-1;this.tagType==R&&(this.tagType=R*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;oh.prototype.next.call(this);this.reversed=!this.reversed;R=_.xn(arguments[0])?arguments[0]:arguments;for(var Z=R.length-1;Z>=0;Z--)_.l3(R[Z],Y);_.F_(Y)};var A6V=function(){},bj=function(D){for(var Y=[],R=D.getTextRangeCount(),Z=0;Z<R;Z++)Y.push(D.getTextRange(Z));
return Y};
A6V.prototype.isReversed=function(){return!1};
A6V.prototype.getWindow=function(){return JZ(_.k2(this.JSC$11256_getStartNode()))};
var nID=function(D,Y){oh.call(this,D,Y,!0)};
_.XN(nID,oh);var yZ=function(D,Y,R,Z,t){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!t;if(D){this.startNode_=D;this.startOffset_=Y;this.endNode_=R;this.endOffset_=Z;if(D.nodeType==1&&D.tagName!="BR")if(D=D.childNodes,Y=D[Y])this.startNode_=Y,this.startOffset_=0;else{D.length&&(this.startNode_=_.N$(D));var X=!0}R.nodeType==1&&((this.endNode_=R.childNodes[Z])?this.endOffset_=0:this.endNode_=R)}oh.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);X&&this.next()};
_.XN(yZ,nID);_.u=yZ.prototype;_.u.JSC$11262_getStartNode=function(){return this.startNode_};
_.u.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)};
_.u.next=function(){return this.isLast()?MF:yZ.superClass_.next.call(this)};
_.u.JSC$11254_copyFrom=function(D){this.startNode_=D.startNode_;this.endNode_=D.endNode_;this.startOffset_=D.startOffset_;this.endOffset_=D.endOffset_;this.isReversed_=D.isReversed_;yZ.superClass_.JSC$11254_copyFrom.call(this,D)};
_.u.clone=function(){var D=new yZ(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);D.JSC$11254_copyFrom(this);return D};var r6L=function(){};
r6L.prototype.__iterator__=function(){return new yZ(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var N0=function(D){this.range_=D};
_.XN(N0,r6L);var wG_=function(D){var Y=_.k2(D).createRange();if(D.nodeType==3)Y.setStart(D,0),Y.setEnd(D,D.length);else if(b3(D)||D.nodeType==3){for(var R,Z=D;(R=Z.firstChild)&&(b3(R)||R.nodeType==3);)Z=R;Y.setStart(Z,0);for(Z=D;(R=Z.lastChild)&&(b3(R)||R.nodeType==3);)Z=R;Y.setEnd(Z,Z.nodeType==1?Z.childNodes.length:Z.length)}else R=D.parentNode,D=Array.prototype.indexOf.call(R.childNodes,D),Y.setStart(R,D),Y.setEnd(R,D+1);return Y},$3U=function(D,Y,R,Z){var t=_.k2(D).createRange();
t.setStart(D,Y);t.setEnd(R,Z);return t};
_.u=N0.prototype;_.u.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.u.getContainer=function(){return this.range_.commonAncestorContainer};
_.u.compareBrowserRangeEndpoints=function(D,Y,R){return this.range_.compareBoundaryPoints(R==1?Y==1?_.ZU.Range.START_TO_START:_.ZU.Range.START_TO_END:Y==1?_.ZU.Range.END_TO_START:_.ZU.Range.END_TO_END,D)};
_.u.isCollapsed=function(){return this.range_.collapsed};
_.u.select=function(D){this.selectInternal(JZ(_.k2(this.range_.startContainer)).getSelection(),D)};
_.u.selectInternal=function(D){D.removeAllRanges();D.addRange(this.range_)};
_.u.insertNode=function(D,Y){var R=this.range_.cloneRange();R.collapse(Y);R.insertNode(D);R.detach();return D};
_.u.collapse=function(D){this.range_.collapse(D)};_.XN(sd,N0);sd.prototype.selectInternal=function(D,Y){!Y||this.isCollapsed()?sd.superClass_.selectInternal.call(this,D,Y):(D.collapse(this.range_.endContainer,this.range_.endOffset),D.extend(this.range_.startContainer,this.range_.startOffset))};_.XN(X3,N0);X3.prototype.compareBrowserRangeEndpoints=function(D,Y,R){return X3.superClass_.compareBrowserRangeEndpoints.call(this,D,Y,R)};
X3.prototype.selectInternal=function(D,Y){Y?D.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):D.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var vIE=function(D){return _.zX?new X3(D):_.WQ?new sd(D):new N0(D)};var lj=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},oIU;
_.XN(lj,A6V);oIU=function(D,Y){var R=new lj;R.browserRangeWrapper_=D;R.isReversed_=!!Y;return R};
_.bnE=function(D){D=_.zX?new X3(wG_(D)):_.WQ?new sd(wG_(D)):new N0(wG_(D));return oIU(D)};
_.Jw=function(D,Y,R,Z){var t=new lj;t.isReversed_=y64(D,Y,R,Z);if(_.gR(D)&&!b3(D)){var X=D.parentNode;Y=Array.prototype.indexOf.call(X.childNodes,D);D=X}_.gR(R)&&!b3(R)&&(X=R.parentNode,Z=Array.prototype.indexOf.call(X.childNodes,R),R=X);t.isReversed_?(t.startNode_=R,t.startOffset_=Z,t.endNode_=D,t.endOffset_=Y):(t.startNode_=D,t.startOffset_=Y,t.endNode_=R,t.endOffset_=Z);return t};
_.u=lj.prototype;_.u.clone=function(){var D=new lj;D.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();D.startNode_=this.startNode_;D.startOffset_=this.startOffset_;D.endNode_=this.endNode_;D.endOffset_=this.endOffset_;D.isReversed_=this.isReversed_;return D};
_.u.JSC$11256_getType=function(){return"text"};
_.u.getBrowserRangeObject=function(){return kL(this).range_};
_.u.getTextRangeCount=function(){return 1};
_.u.getTextRange=function(){return this};
var kL=function(D){var Y;if(!(Y=D.browserRangeWrapper_)){Y=D.JSC$11256_getStartNode();var R=D.JSC$11256_getStartOffset(),Z=D.JSC$11256_getEndNode(),t=D.JSC$11256_getEndOffset();Y=_.zX?new X3($3U(Y,R,Z,t)):_.WQ?new sd($3U(Y,R,Z,t)):new N0($3U(Y,R,Z,t));Y=D.browserRangeWrapper_=Y}return Y};
_.u=lj.prototype;_.u.getContainer=function(){return kL(this).getContainer()};
_.u.JSC$11256_getStartNode=function(){return this.startNode_||(this.startNode_=kL(this).range_.startContainer)};
_.u.JSC$11256_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=kL(this).range_.startOffset};
_.u.JSC$11256_getEndNode=function(){return this.endNode_||(this.endNode_=kL(this).range_.endContainer)};
_.u.JSC$11256_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=kL(this).range_.endOffset};
_.u.isReversed=function(){return this.isReversed_};
_.u.JSC$11256_containsRange=function(D,Y){if(D.JSC$11256_getType()=="text"){var R=kL(this);D=kL(D);Y=Y&&!D.isCollapsed();D=D.range_;R=Y?R.compareBrowserRangeEndpoints(D,0,1)>=0&&R.compareBrowserRangeEndpoints(D,1,0)<=0:R.compareBrowserRangeEndpoints(D,0,0)>=0&&R.compareBrowserRangeEndpoints(D,1,1)<=0}else R=!1;return R};
_.u.isCollapsed=function(){return kL(this).isCollapsed()};
_.u.JSC$11256_getText=function(){return kL(this).range_.toString()};
_.u.__iterator__=function(){return new yZ(this.JSC$11256_getStartNode(),this.JSC$11256_getStartOffset(),this.JSC$11256_getEndNode(),this.JSC$11256_getEndOffset())};
_.u.select=function(){kL(this).select(this.isReversed_)};
_.u.JSC$11256_removeContents=function(){var D=kL(this).range_;D.extractContents();if(D.startContainer.hasChildNodes()&&(D=D.startContainer.childNodes[D.startOffset])){var Y=D.previousSibling;iLU(D)==""&&_.F_(D);Y&&iLU(Y)==""&&_.F_(Y)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.u.insertNode=function(D,Y){D=kL(this).insertNode(D,Y);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return D};
_.u.collapse=function(D){D=this.isReversed()?!D:D;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(D);D?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var N$L=function(){};
_.XN(N$L,A6V);N$L.prototype.JSC$11256_containsRange=function(D,Y){var R=bj(this);D=bj(D);return(Y?Qc:_.t6l)(D,function(Z){return Qc(R,function(t){return t.JSC$11256_containsRange(Z,Y)})})};
N$L.prototype.insertNode=function(D,Y){Y?_.Nq(D,this.JSC$11256_getStartNode()):_.l3(D,this.JSC$11256_getEndNode());return D};var llz,J6z=f0().JSC$9295_document_.documentElement;llz=J6z.requestFullscreen?"fullscreenchange":J6z.webkitRequestFullscreen?"webkitfullscreenchange":J6z.mozRequestFullScreen?"mozfullscreenchange":J6z.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var ka1=function(){var D=f0().JSC$9295_document_;return!!(D.webkitIsFullScreen||D.mozFullScreen||D.msFullscreenElement||D.fullscreenElement)};var Uo=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.XN(Uo,N$L);_.u=Uo.prototype;_.u.clone=function(){var D=new Uo;D.browserRanges_=_.q$(this.browserRanges_);return D};
_.u.JSC$11256_getType=function(){return"mutli"};
_.u.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.u.getTextRangeCount=function(){return this.browserRanges_.length};
_.u.getTextRange=function(D){this.ranges_[D]||(this.ranges_[D]=oIU(vIE(this.browserRanges_[D])));return this.ranges_[D]};
_.u.getContainer=function(){if(!this.container_){for(var D=[],Y=this.getTextRangeCount(),R=0;R<Y;R++)D.push(this.getTextRange(R).getContainer());this.container_=PU1.apply(null,D)}return this.container_};
var KD=function(D){D.sortedRanges_||(D.sortedRanges_=bj(D),D.sortedRanges_.sort(function(Y,R){var Z=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();var t=R.JSC$11256_getStartNode();R=R.JSC$11256_getStartOffset();return Z==t&&Y==R?0:y64(Z,Y,t,R)?1:-1}));
return D.sortedRanges_};
_.u=Uo.prototype;_.u.JSC$11256_getStartNode=function(){return KD(this)[0].JSC$11256_getStartNode()};
_.u.JSC$11256_getStartOffset=function(){return KD(this)[0].JSC$11256_getStartOffset()};
_.u.JSC$11256_getEndNode=function(){return _.N$(KD(this)).JSC$11256_getEndNode()};
_.u.JSC$11256_getEndOffset=function(){return _.N$(KD(this)).JSC$11256_getEndOffset()};
_.u.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.u.JSC$11256_getText=function(){return bj(this).map(function(D){return D.JSC$11256_getText()}).join("")};
_.u.__iterator__=function(){return new hw(this)};
_.u.select=function(){var D=this.getWindow().getSelection();D.removeAllRanges();for(var Y=this.getTextRangeCount(),R=0;R<Y;R++)D.addRange(this.getTextRange(R).getBrowserRangeObject())};
_.u.JSC$11256_removeContents=function(){bj(this).forEach(function(D){D.JSC$11256_removeContents()})};
_.u.collapse=function(D){if(!this.isCollapsed()){var Y=D?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;Y.collapse(D);this.ranges_=[Y];this.sortedRanges_=[Y];this.browserRanges_=[Y.getBrowserRangeObject()]}};
var hw=function(D){this.iterators_=null;this.currentIdx_=0;D&&(this.iterators_=KD(D).map(function(Y){return _.iIL(Y)}));
oh.call(this,D?this.JSC$11262_getStartNode():null,!1,!0)};
_.XN(hw,nID);_.u=hw.prototype;_.u.JSC$11262_getStartNode=function(){return this.iterators_[0].JSC$11262_getStartNode()};
_.u.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.u.next=function(){for(;this.currentIdx_<this.iterators_.length;){var D=this.iterators_[this.currentIdx_],Y=D.next();if(Y.done)this.currentIdx_++;else return vX(this,D.node,D.tagType,D.depth),Y}return MF};
_.u.JSC$11254_copyFrom=function(D){this.iterators_=_.q$(D.iterators_);hw.superClass_.JSC$11254_copyFrom.call(this,D)};
_.u.clone=function(){var D=new hw(null);D.JSC$11254_copyFrom(this);return D};var U3L,y64;_.Tb=function(){var D=window.getSelection();return D&&U3L(D)};
U3L=function(D){var Y=!1;if(D.createRange)try{var R=D.createRange()}catch(t){return null}else if(D.rangeCount){if(D.rangeCount>1){R=new Uo;Y=D.rangeCount;for(var Z=0;Z<Y;Z++)R.browserRanges_.push(D.getRangeAt(Z));return R}R=D.getRangeAt(0);Y=y64(D.anchorNode,D.anchorOffset,D.focusNode,D.focusOffset)}else return null;return oIU(vIE(R),Y)};
_.LD=function(D,Y){return _.Jw(D,Y,D,Y)};
_.mw=function(D,Y,R,Z){return _.Jw(D,Y,R,Z)};
y64=function(D,Y,R,Z){if(D==R)return Z<Y;var t;if(D.nodeType==1&&Y)if(t=D.childNodes[Y])D=t,Y=0;else if(_.hE(D,R))return!0;if(R.nodeType==1&&Z)if(t=R.childNodes[Z])R=t,Z=0;else if(_.hE(R,D))return!1;return(xUV(D,R)||Y-Z)>0};var q0=function(){_.eE.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.nG)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.nG)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.nG)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.nG)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.nG)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.nG)(this.dispatchProgressEvent_,this)};
_.XN(q0,_.eE);q0.prototype.abort=function(){try{this.reader_.abort()}catch(D){throw new OqU(D,"aborting read");}};
q0.prototype.getError=function(){return this.reader_.error&&new OqU(this.reader_.error,"reading file")};
q0.prototype.dispatchProgressEvent_=function(D){this.dispatchEvent(new cPE(D,this))};
q0.prototype.disposeInternal=function(){q0.superClass_.disposeInternal.call(this);delete this.reader_};
var hsL=function(D){var Y=new q0,R=KVV(Y);Y.reader_.readAsArrayBuffer(D);return R},LVb=function(D){var Y=new q0,R=KVV(Y);
Y.reader_.readAsDataURL(D);return R},KVV=function(D){var Y=new BP;
D.listen("loadend",_.A4(function(R,Z){var t=Z.reader_.result,X=Z.getError();t==null||X?R.errback(X):R.callback(t);Z.dispose()},Y,D));
return Y};var HX=function(){_.eE.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11296_eventHandler_=new _.aR(this);this.JSC$11296_isInitialized_=!1};
_.XN(HX,_.eE);var m3L=new _.jE("d"),q$E=new _.jE("beforedragstart"),Hnz=new _.jE("dragstart"),x3E=new _.jE("beforedragmove"),PXL=new _.jE("dragmove"),QQ1=new _.jE("beforedragend"),B$U=new _.jE("dragend"),pG_=new _.jE("e");HX.prototype.isDragging=function(){return!!this.JSC$11296_dragger_};
var EIL=function(D,Y){Y.dlgGrowthDirection_=0;Y.dlgDragHoverClass_=void 0;Y.dlgDragPermission=0;D.dragLists_.push(Y)},gIE=function(D,Y){D.getHandleForDragItem_=Y};
HX.prototype.init=function(){if(!this.JSC$11296_isInitialized_){for(var D=this.dragLists_.length,Y=0;Y<D;Y++)for(var R=_.J0(this.dragLists_[Y]),Z=R.length,t=0;t<Z;++t){var X=R[t],M=this.getHandleForDragItem_(X),W=_.Ey(M);this.dragItemForHandle_[W]=X;this.dragItemHoverClasses_&&(this.JSC$11296_eventHandler_.listen(X,"mouseover",this.handleDragItemMouseover_),this.JSC$11296_eventHandler_.listen(X,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11296_eventHandler_.listen(M,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11296_eventHandler_.listen(M,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(X);this.JSC$11296_eventHandler_.listen(M,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11296_isInitialized_=!0}};
HX.prototype.disposeInternal=function(){this.JSC$11296_eventHandler_.dispose();for(var D=this.dragLists_.length,Y=0;Y<D;Y++){var R=this.dragLists_[Y];R.dlgGrowthDirection_=void 0;R.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;d3V(this);HX.superClass_.disposeInternal.call(this)};
var inL=function(D,Y){for(var R=D.dragLists_.length,Z=0;Z<R;Z++){var t=D.dragLists_[Z];t.dlgBounds_=bC$(t)}R=D.dragItems_.length;for(Z=0;Z<R;Z++)t=D.dragItems_[Z],t!=Y&&(t.dlgBounds_=bC$(t))};
_.u=HX.prototype;
_.u.handlePotentialDragStart_=function(D){var Y=_.Ey(D.currentTarget);Y=this.dragItemForHandle_[Y];if(Y.parentElement.dlgDragPermission!=2){this.currDragItem_=Y;a:{Y=this.currDragItem_;for(var R=Y.cloneNode(!0),Z=G_("TEXTAREA",Y),t=G_("TEXTAREA",R),X=0;X<Z.length;X++)t[X].value=Z[X].value;switch(Y.tagName){case "TR":Y=_.vj("TABLE",null,_.vj("TBODY",null,R));break a;case "TD":case "TH":Y=_.vj("TABLE",null,_.vj("TBODY",null,_.vj("TR",null,R)));break a;case "TEXTAREA":R.value=Y.value;default:Y=R;break a}Y=
void 0}this.draggerEl_=Y;this.draggerElClasses_&&PP(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.k2(this.currDragItem_).body.appendChild(this.draggerEl_);R=_.UG(this.currDragItem_);Y=this.draggerEl_;Z=_.UG(Y);if(R instanceof _.lm){var M=R.y;R=R.x}LC(Y,Y.offsetLeft+(R-Z.x),Y.offsetTop+(Number(M)-Z.y));this.JSC$11296_dragger_=new _.Lf(this.draggerEl_);_.iv_(this.JSC$11296_dragger_,this.hysteresisDistance_);
_.yu(this.JSC$11296_dragger_,"start",this.handleDragStart_,!1,this);_.yu(this.JSC$11296_dragger_,"end",this.handleDragEnd_,!1,this);_.yu(this.JSC$11296_dragger_,"earlycancel",this.JSC$11298_cleanup_,!1,this);this.dispatchEvent(new xL(m3L,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11296_dragger_));this.JSC$11296_dragger_.startDrag(D)}};
_.u.handleDragStart_=function(D){if(this.dispatchEvent(new xL(q$E,this,D.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.mUL(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?PP(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var Y=Zt4(this.draggerEl_);this.draggerEl_.halfWidth=Y.width/2;this.draggerEl_.halfHeight=Y.height/2;Y=this.draggerEl_.getBoundingClientRect();
var R=D.clientY,Z=OvV(this.JSC$11296_dragger_,D.clientX);if(Z>Y.right){var t=this.currDragItem_.getBoundingClientRect();this.JSC$11296_dragger_.deltaX=Z-(Z-t.left)/t.width*Y.width}R=cTE(this.JSC$11296_dragger_,R);R>Y.bottom&&(this.JSC$11296_dragger_.deltaY+=R-Y.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";inL(this,this.currDragItem_);this.currDragItem_.style.display="";_.yu(this.JSC$11296_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new xL(Hnz,
this,D.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11296_dragger_))}else D.preventDefault(),this.JSC$11298_cleanup_()};
_.u.handleDragMove_=function(D){var Y=_.UG(this.draggerEl_);Y=new _.lm(Y.x+this.draggerEl_.halfWidth,Y.y+this.draggerEl_.halfHeight);a:{var R=null;if(this.currDragItem_.style.display!="none"){R=this.currDragItem_.parentNode;var Z=bC$(R);if(OnL(Y,Z))break a}Z=this.dragLists_.length;for(var t=0;t<Z;t++){var X=this.dragLists_[t];if(X!=R&&OnL(Y,X.dlgBounds_)){R=X;break a}}R=null}if(R){if(R==null)throw Error("Td");Z=0;t=!1;X=void 0;switch(R.dlgGrowthDirection_){case 0:Z=Y.y;var M=c64;var W=DBU;break;case 4:t=
!0;case 2:Z=Y.x;M=YgV;W=DBU;break;case 5:t=!0;case 3:Z=Y.x,M=RJz,W=Zr7}for(var z=null,I,F=_.J0(R),G=F.length,V=0;V<G;V++){var e=F[V];if(e!=this.currDragItem_){var r=M(e.dlgBounds_);if(t){var l=tNV(e,Y);X===void 0&&(X=l);W(Z,r)&&(I==void 0||l<X||l==X&&(W(r,I)||r==I))&&(z=e,I=r);l<X&&(X=l)}else W(Z,r)&&(I==void 0||W(r,I))&&(z=e,I=r)}}M=z!==null&&tNV(z,Y)>X?null:z}else M=null;if(!this.dispatchEvent(new xL(x3E,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11296_dragger_,Y,R,M)))return!1;if(R&&R.dlgDragPermission!=
1)this.currDragItem_.parentNode==R&&_.mUL(this.currDragItem_)==M||R.insertBefore(this.currDragItem_,M),this.currDragItem_.style.display="",R.dlgDragHoverClass_&&_.ZT(R,R.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",W=this.dragLists_.length,I=0;I<W;I++)Z=this.dragLists_[I],Z.dlgDragHoverClass_&&_.YP(Z,Z.dlgDragHoverClass_);R!=this.currHoverList_&&(this.currHoverList_=R,inL(this,this.currDragItem_));this.dispatchEvent(new xL(PXL,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11296_dragger_,
Y,R,M));return!1};
_.u.JSC$11298_cleanup_=function(){d3V(this);this.JSC$11296_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var D=this.dragLists_.length,Y=0;Y<D;Y++)this.dragLists_[Y].dlgBounds_=null;D=this.dragItems_.length;for(Y=0;Y<D;Y++)this.dragItems_[Y].dlgBounds_=null};
_.u.handleDragEnd_=function(D){if(!this.dispatchEvent(new xL(QQ1,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11296_dragger_)))return!1;d3V(this);this.dispatchEvent(new xL(B$U,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11296_dragger_));this.JSC$11298_cleanup_();return!0};
var d3V=function(D){_.OG(D.JSC$11296_dragger_);var Y=D.draggerEl_&&D.draggerEl_.parentElement;D.draggerEl_&&_.F_(D.draggerEl_);D.currDragItem_&&D.currDragItem_.style.display=="none"&&(D.origList_.insertBefore(D.currDragItem_,D.origNextItem_),D.currDragItem_.style.display="");D.currDragItemClasses_&&D.currDragItem_?gh4(D.currDragItem_,D.currDragItemClasses_||[]):D.currDragItem_&&(D.currDragItem_.style.visibility="");for(var R=D.dragLists_.length,Z=0;Z<R;Z++){var t=D.dragLists_[Z];t.dlgDragHoverClass_&&
_.YP(t,t.dlgDragHoverClass_)}Y&&D.dispatchEvent(new xL(pG_,D,null,D.currDragItem_,D.draggerEl_,D.JSC$11296_dragger_))};
_.u=HX.prototype;_.u.getHandleForDragItem_=function(D){return D};
_.u.handleDragItemMouseover_=function(D){PP(D.currentTarget,this.dragItemHoverClasses_||[])};
_.u.handleDragItemMouseout_=function(D){gh4(D.currentTarget,this.dragItemHoverClasses_||[])};
_.u.handleDragItemHandleMouseover_=function(D){PP(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.u.handleDragItemHandleMouseout_=function(D){gh4(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
var OnL=function(D,Y){return D.x>Y.left&&D.x<Y.left+Y.width&&D.y>Y.top&&D.y<Y.top+Y.height},tNV=function(D,Y){D=D.dlgBounds_;
return Math.abs(Y.y-(D.top+(D.height-1)/2))},c64=function(D){return D.top+D.height-1},YgV=function(D){return D.left+D.width-1},RJz=function(D){return D.left||0},DBU=function(D,Y){return D<Y},Zr7=function(D,Y){return D>Y},xL=function(D,Y,R,Z,t,X){_.IF.call(this,D);
this.event=R;this.currDragItem=Z;this.draggerEl=t;this.JSC$11300_dragger=X};
_.XN(xL,_.IF);_.XN(MA,_.AE);var sU7=new _.lm(0,0);MA.prototype.JSC$11304_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
MA.prototype.JSC$11304_onMouseMove=function(D){var Y=this.containerIsActuallyContent_?sU7:V7(f0(this.containerNode_)),R=this.horizontalScrolling_?this.calculateScrollDelta(D.clientX+Y.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Z=this.calculateScrollDelta(D.clientY+Y.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=R;this.scrollDelta_.y=Z;!(R=!R&&!Z)&&(R=this.constrainScroll_)&&(R=D.clientX+Y.x,D=D.clientY+Y.y,Y=this.containerBounds_,R=!(Y.left<=R&&Y.left+Y.width>=
R&&Y.top<=D&&Y.top+Y.height>=D));R?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
MA.prototype.calculateScrollDelta=function(D,Y,R){var Z=0;D<Y?Z=-8:D>Y+R&&(Z=8);return Z};
MA.prototype.disposeInternal=function(){MA.superClass_.disposeInternal.call(this);this.JSC$11302_eventHandler_.dispose();this.scrollTimer_.dispose()};var XEE={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"}}},PX=XEE;PX=XEE;var QZ={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 uvY=function(){},EM=function(D){if(typeof D=="number"){var Y=new uvY;
Y.standardOffset_=D;var R=D;if(R==0)R="Etc/GMT";else{var Z=["Etc/GMT",R<0?"-":"+"];R=Math.abs(R);Z.push(Math.floor(R/60)%100);R%=60;R!=0&&Z.push(":",_.Zo(R,2));R=Z.join("")}Y.timeZoneId_=R;R=D;R==0?R="UTC":(Z=["UTC",R<0?"+":"-"],R=Math.abs(R),Z.push(Math.floor(R/60)%100),R%=60,R!=0&&Z.push(":",R),R=Z.join(""));D=ahE(D);Y.tzNames_=[R,R];Y.tzNamesExt_={STD_LONG_NAME_GMT:D,STD_GENERIC_LOCATION:D};Y.transitions_=[];return Y}Y=new uvY;Y.timeZoneId_=D.id;Y.standardOffset_=-D.std_offset;Y.tzNames_=D.names;
Y.tzNamesExt_=D.names_ext;Y.transitions_=D.transitions;return Y},ahE=function(D){var Y=["GMT"];
Y.push(D<=0?"+":"-");D=Math.abs(D);Y.push(_.Zo(Math.floor(D/60)%100,2),":",_.Zo(D%60,2));return Y.join("")},MNU=function(D,Y){Y=Date.UTC(Y.getUTCFullYear(),Y.getUTCMonth(),Y.getUTCDate(),Y.getUTCHours(),Y.getUTCMinutes())/36E5;
for(var R=0;R<D.transitions_.length&&Y>=D.transitions_[R];)R+=2;return R==0?0:D.transitions_[R-1]},CPL=function(D,Y){D=D.standardOffset_-MNU(D,Y);
return D===-1440?0:D};var gL=function(D,Y){this.patternParts_=[];this.JSC$11315_dateTimeSymbols_=Y||V_;typeof D=="number"?W4D(this,D):zJE(this,D)},SgE=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],BX=function(D){return D.getHours?D.getHours():0},zJE=function(D,Y){for(vZj&&(Y=Y.replace(/\u200f/g,""));Y;){for(var R=Y,Z=0;Z<SgE.length;++Z){var t=Y.match(SgE[Z]);
if(t){var X=t[0];Y=Y.substring(X.length);Z==0&&(X=="''"?X="'":(X=X.substring(1,t[1]=="'"?X.length-1:X.length),X=X.replace(/''/g,"'")));D.patternParts_.push({text:X,type:Z});break}}if(R===Y)throw Error("Ud`"+Y);}};
gL.prototype.format=function(D,Y){if(!D)throw Error("Vd");var R=Y?(D.getTimezoneOffset()-CPL(Y,D))*6E4:0,Z=R?new Date(D.getTime()+R):D,t=Z;Y&&Z.getTimezoneOffset()!=D.getTimezoneOffset()&&(Z=new Date(Z.getTime()+(Z.getTimezoneOffset()-D.getTimezoneOffset())*6E4),t=new Date(D.getTime()+(R+(R>0?-864E5:864E5))));R=[];for(var X=0;X<this.patternParts_.length;++X){var M=this.patternParts_[X].text;1==this.patternParts_[X].type?R.push(TdV(this,M,D,Z,t,Y)):R.push(M)}return R.join("")};
var W4D=function(D,Y){if(Y<4)var R=D.JSC$11315_dateTimeSymbols_.DATEFORMATS[Y];else if(Y<8)R=D.JSC$11315_dateTimeSymbols_.TIMEFORMATS[Y-4];else if(Y<12)R=D.JSC$11315_dateTimeSymbols_.DATETIMEFORMATS[Y-8],R=R.replace("{1}",D.JSC$11315_dateTimeSymbols_.DATEFORMATS[Y-8]),R=R.replace("{0}",D.JSC$11315_dateTimeSymbols_.TIMEFORMATS[Y-8]);else if(Y===12)R=D.JSC$11315_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(Y===13)R=D.JSC$11315_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{W4D(D,10);return}zJE(D,R)},pD=function(D,Y){Y=String(Y);
D=D.JSC$11315_dateTimeSymbols_||V_;if(D.ZERODIGIT!==void 0&&!$xi){for(var R=[],Z=0;Z<Y.length;Z++){var t=Y.charCodeAt(Z);R.push(48<=t&&t<=57?String.fromCharCode(D.ZERODIGIT+t-48):Y.charAt(Z))}Y=R.join("")}return Y},$xi=!1,vZj=!1,Ih7=function(D,Y,R,Z){R=R.getFullYear();
R<=0&&Z&&(R=1-R);return pD(D,jUD(R,Y))},jUD=function(D,Y){Y==2&&(D%=100);
D<0&&Y++;return _.Zo(D,Y)},Eo=function(D){if(!(D.getHours&&D.getSeconds&&D.getMinutes))throw Error("Wd");
},F4E=function(D,Y){Eo(Y);
Y=BX(Y);return D.JSC$11315_dateTimeSymbols_.AMPMS[Y>=12&&Y<24?1:0]},TdV=function(D,Y,R,Z,t,X){var M=Y.length;
switch(Y.charAt(0)){case "G":return R=Z.getFullYear()>0?1:0,M>=4?D.JSC$11315_dateTimeSymbols_.ERANAMES[R]:D.JSC$11315_dateTimeSymbols_.ERAS[R];case "y":return Ih7(D,M,Z,!0);case "Y":return R=(new Date(VIV(Z.getFullYear(),Z.getMonth(),Z.getDate(),D.JSC$11315_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11315_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),M==2&&(R%=100),pD(D,jUD(R,M));case "u":return Ih7(D,M,Z,!1);case "M":a:switch(R=Z.getMonth(),M){case 5:M=D.JSC$11315_dateTimeSymbols_.NARROWMONTHS[R];
break a;case 4:M=D.JSC$11315_dateTimeSymbols_.MONTHS[R];break a;case 3:M=D.JSC$11315_dateTimeSymbols_.SHORTMONTHS[R];break a;default:M=pD(D,_.Zo(R+1,M))}return M;case "k":return Eo(t),pD(D,_.Zo(BX(t)||24,M));case "S":return pD(D,(t.getMilliseconds()/1E3).toFixed(Math.min(3,M)).slice(2)+(M>3?_.Zo(0,M-3):""));case "E":return R=Z.getDay(),M>=4?D.JSC$11315_dateTimeSymbols_.WEEKDAYS[R]:D.JSC$11315_dateTimeSymbols_.SHORTWEEKDAYS[R];case "a":return F4E(D,t);case "b":return F4E(D,t);case "B":return F4E(D,
t);case "h":return Eo(t),pD(D,_.Zo(BX(t)%12||12,M));case "K":return Eo(t),pD(D,_.Zo(BX(t)%12,M));case "H":return Eo(t),pD(D,_.Zo(BX(t),M));case "c":a:switch(R=Z.getDay(),M){case 5:M=D.JSC$11315_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[R];break a;case 4:M=D.JSC$11315_dateTimeSymbols_.STANDALONEWEEKDAYS[R];break a;case 3:M=D.JSC$11315_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[R];break a;default:M=pD(D,_.Zo(R,1))}return M;case "L":a:switch(R=Z.getMonth(),M){case 5:M=D.JSC$11315_dateTimeSymbols_.STANDALONENARROWMONTHS[R];
break a;case 4:M=D.JSC$11315_dateTimeSymbols_.STANDALONEMONTHS[R];break a;case 3:M=D.JSC$11315_dateTimeSymbols_.STANDALONESHORTMONTHS[R];break a;default:M=pD(D,_.Zo(R+1,M))}return M;case "Q":return R=Math.floor(Z.getMonth()/3),M<4?D.JSC$11315_dateTimeSymbols_.SHORTQUARTERS[R]:D.JSC$11315_dateTimeSymbols_.QUARTERS[R];case "d":return pD(D,_.Zo(Z.getDate(),M));case "m":return Eo(t),pD(D,_.Zo(t.getMinutes?t.getMinutes():0,M));case "s":return Eo(t),pD(D,_.Zo(t.getSeconds(),M));case "v":return(X||EM(R.getTimezoneOffset())).timeZoneId_;
case "V":return D=X||EM(R.getTimezoneOffset()),M<=2?D.timeZoneId_:MNU(D,R)>0?D.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?D.tzNamesExt_.STD_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return R=VIV(t.getFullYear(),t.getMonth(),t.getDate(),D.JSC$11315_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11315_dateTimeSymbols_.FIRSTDAYOFWEEK),pD(D,_.Zo(Math.floor(Math.round((R-(new Date((new Date(R)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,M));case "z":return D=X||EM(R.getTimezoneOffset()),M<4?D.tzNames_[MNU(D,R)>0?2:0]:D.tzNames_[MNU(D,R)>0?3:1];case "Z":return Y=X||EM(R.getTimezoneOffset()),M<4?(M=-CPL(Y,R),D=[M<0?"-":"+"],M=Math.abs(M),D.push(_.Zo(Math.floor(M/60)%100,2),_.Zo(M%60,2)),M=D.join("")):M=pD(D,ahE(CPL(Y,R))),M;default:return""}};var GmV=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,VN4=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ezy=function(D){this.patternParts_=[];this.JSC$11324_dateTimeSymbols_=V_;if(typeof D=="number"){D>11&&(D=10);if(D<4)var Y=this.JSC$11324_dateTimeSymbols_.DATEFORMATS[D];else D<8?Y=this.JSC$11324_dateTimeSymbols_.TIMEFORMATS[D-4]:(Y=this.JSC$11324_dateTimeSymbols_.DATETIMEFORMATS[D-8],Y=Y.replace("{1}",this.JSC$11324_dateTimeSymbols_.DATEFORMATS[D-8]),Y=Y.replace("{0}",this.JSC$11324_dateTimeSymbols_.TIMEFORMATS[D-
8]));fh4(this,Y)}else fh4(this,D)},fh4=function(D,Y){for(var R=!1,Z="",t=0;t<Y.length;t++){var X=Y.charAt(t);
if(GmV.test(X))for(Z.length>0&&(D.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z=""),D.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});t<Y.length-1&&Y.charAt(t+1)==" ";)t++;else if(R)X=="'"?t+1<Y.length&&Y.charAt(t+1)=="'"?(Z+="'",t++):R=!1:Z+=X;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(X)>=0){Z.length>0&&(D.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z="");for(var M=Y.charAt(t),W=t+1;W<Y.length&&Y.charAt(W)==M;)W++;M=W-t;M<=0?W=!1:(W="MydhHmsSDkK".indexOf(X),
W=W>0||W==0&&M<3);D.patternParts_.push({text:X,count:M,abutStart:!1,numeric:W});t+=M-1}else X=="'"?t+1<Y.length&&Y.charAt(t+1)=="'"?(Z+="'",t++):R=!0:Z+=X}Z.length>0&&D.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1});Y=!1;for(R=0;R<D.patternParts_.length;R++)D.patternParts_[R].numeric?!Y&&R+1<D.patternParts_.length&&D.patternParts_[R+1].numeric&&(Y=!0,D.patternParts_[R].abutStart=!0):Y=!1};
ezy.prototype.parse=function(D,Y,R){var Z=!1,t=!1;R&&(Z=R.predictive||!1,t=R.validate||!1);if(Z)for(R=0;R<this.patternParts_.length;R++){var X=this.patternParts_[R];if(X.count>0&&("abBhHkKm".indexOf(X.text.charAt(0))<0||X.count>2||X.abutStart))throw Error("Xd`"+X.text.charAt(0));}X=new eJb;R=[0];X.dayPeriodIndex=-1;for(var M=0;M<this.patternParts_.length&&!(Z&&R[0]>=D.length);M++){if(this.patternParts_[M].count==0){a:{var W=D;var z=R,I=this.patternParts_[M],F=Z;if(I.text.match(GmV)!=null){if(I=z[0],
AjY(W,z),z[0]>I){W=!0;break a}}else{if(W.indexOf(I.text,z[0])==z[0]){z[0]+=I.text.length;W=!0;break a}if(F&&I.text.indexOf(W.substring(z[0]))==0){z[0]+=W.length-z[0];W=!0;break a}}W=!1}if(W)continue;return 0}if(this.patternParts_[M].abutStart){a:{z=D;I=R;F=M;var G=I[0],V=0;for(W=F;W<this.patternParts_.length;W++){var e=this.patternParts_[W],r=e.count;if(r===0)break;if(W==F&&(r-=V,V++,r==0)){W=0;break a}var l=W>F&&e.numeric,U=I[0];if(!nyL(this,z,I,e,r,X,!1)||l&&I[0]-U<r)W=F-1,I[0]=G}W-=F}if(W<=0)return 0;
M+=W-1}else if(!nyL(this,D,R,this.patternParts_[M],0,X,Z))return 0}a:{D=t;if(Y==null)throw Error("Yd");X.era!=void 0&&X.year!=void 0&&X.era==0&&X.year>0&&(X.year=-(X.year-1));X.year!=void 0&&Y.setFullYear(X.year);Z=Y.getDate();Y.setDate(1);X.month!=void 0&&Y.setMonth(X.month);X.day!=void 0?Y.setDate(X.day):(t=dHU(Y.getFullYear(),Y.getMonth()),Y.setDate(Z>t?t:Z));typeof Y.setHours==="function"&&(X.hours==void 0&&(X.hours=Y.getHours()),X.hours<12&&(X.ampm!=void 0&&X.ampm>0?X.hours+=12:X.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(X.dayPeriodName)||["night1","night2"].includes(X.dayPeriodName)&&X.hours>=6)&&(X.hours+=12)),Y.setHours(X.hours));typeof Y.setMinutes==="function"&&X.minutes!=void 0&&Y.setMinutes(X.minutes);typeof Y.setSeconds==="function"&&X.seconds!=void 0&&Y.setSeconds(X.seconds);typeof Y.setMilliseconds==="function"&&X.milliseconds!=void 0&&Y.setMilliseconds(X.milliseconds);if(D&&(X.year&&X.year!=Y.getFullYear()||X.month&&X.month!=
Y.getMonth()||X.day&&X.day!=Y.getDate()||X.hours&&X.hours>=24||X.minutes&&X.minutes>=60||X.seconds&&X.seconds>=60||X.milliseconds&&X.milliseconds>=1E3))Y=!1;else{X.tzOffset!=void 0&&Y.setTime(Y.getTime()+(X.tzOffset-Y.getTimezoneOffset())*60*1E3);X.ambiguousYear&&(D=new Date,D.setFullYear(D.getFullYear()-80),Y.getTime()<D.getTime()&&Y.setFullYear(D.getFullYear()+100));if(X.dayOfWeek!=void 0)if(X.day==void 0)X=(7+X.dayOfWeek-Y.getDay())%7,X>3&&(X-=7),D=Y.getMonth(),Y.setDate(Y.getDate()+X),Y.getMonth()!=
D&&Y.setDate(Y.getDate()+(X>0?-7:7));else if(X.dayOfWeek!=Y.getDay()){Y=!1;break a}Y=!0}}return Y?R[0]:0};
var nyL=function(D,Y,R,Z,t,X,M){AjY(Y,R);if(Z.numeric&&t>0&&R[0]+t>Y.length)return!1;switch(Z.text.charAt(0)){case "G":return g7(Y,R,[D.JSC$11324_dateTimeSymbols_.ERAS],function(W){return X.era=W}),!0;
case "M":case "L":return rjV(D,Y,R,t,Z,X);case "E":return g7(Y,R,[D.JSC$11324_dateTimeSymbols_.WEEKDAYS,D.JSC$11324_dateTimeSymbols_.SHORTWEEKDAYS],function(W){return X.dayOfWeek=W});
case "B":case "b":return t=[],D=[[].concat(D.JSC$11324_dateTimeSymbols_.AMPMS)],t.push("isAm"),t.push("isPm"),Y=g7(Y,R,D,function(W){return X.dayPeriodIndex=W},M),X.dayPeriodName=t[X.dayPeriodIndex],M?Y:!0;
case "a":return Y=g7(Y,R,[D.JSC$11324_dateTimeSymbols_.AMPMS],function(W){return X.ampm=W},M),M?Y:!0;
case "y":return wEY(D,Y,R,Z,t,X);case "Q":return g7(Y,R,[D.JSC$11324_dateTimeSymbols_.QUARTERS,D.JSC$11324_dateTimeSymbols_.SHORTQUARTERS],function(W){X.month=W*3;X.day=1});
case "d":return d7(D,Y,R,Z,t,function(W){X.day=W}),!0;
case "S":return $B1(D,Y,R,t,X);case "h":case "K":case "H":case "k":return Y=d7(D,Y,R,Z,t,function(W){X.hours=Z.text.charAt(0)==="h"&&W===12?0:W},M),M?Y:!0;
case "m":return Y=d7(D,Y,R,Z,t,function(W){X.minutes=W},M),M?Y:!0;
case "s":return d7(D,Y,R,Z,t,function(W){X.seconds=W}),!0;
case "z":case "Z":case "v":return vyY(D,Y,R,X);default:return!1}},wEY=function(D,Y,R,Z,t,X){var M=R[0];
t=ij(D,Y,R,t);t===null&&(t=ij(D,Y,R,0,!0));if(t===null)return!1;t>=0&&R[0]-M==2&&Z.count==2?(D=t,Y=(new Date).getFullYear()-80,R=Y%100,X.ambiguousYear=D==R,D+=Math.floor(Y/100)*100+(D<R?100:0),X.year=D):X.year=t;return!0},rjV=function(D,Y,R,Z,t,X){return t.numeric&&d7(D,Y,R,t,Z,function(M){X.month=M-1})?!0:g7(Y,R,[D.JSC$11324_dateTimeSymbols_.MONTHS,
D.JSC$11324_dateTimeSymbols_.STANDALONEMONTHS,D.JSC$11324_dateTimeSymbols_.SHORTMONTHS,D.JSC$11324_dateTimeSymbols_.STANDALONESHORTMONTHS],function(M){X.month=M})},$B1=function(D,Y,R,Z,t){var X=R[0];
D=ij(D,Y,R,Z);if(D===null)return!1;R=R[0]-X;t.milliseconds=R<3?D*Math.pow(10,3-R):Math.round(D/Math.pow(10,R-3));return!0},vyY=function(D,Y,R,Z){Y.indexOf("GMT",R[0])==R[0]&&(R[0]+=3);
if(R[0]>=Y.length)return Z.tzOffset=0,!0;var t=R[0],X=ij(D,Y,R,0,!0);if(X===null)return!1;if(R[0]<Y.length&&Y.charAt(R[0])==":"){var M=X*60;R[0]++;X=ij(D,Y,R,0);if(X===null)return!1;M+=X}else M=X,M=M<24&&R[0]-t<=3?M*60:M%100+M/100*60;Z.tzOffset=-M;return!0},d7=function(D,Y,R,Z,t,X,M){M=M||!1;
var W=R[0];D=ij(D,Y,R,t);if(D===null)return!1;if(M&&R[0]-W<Z.count){if(R[0]<Y.length)return!1;D*=Math.pow(10,Z.count-(R[0]-W))}X(D);return!0},g7=function(D,Y,R,Z,t){t=t||!1;
for(var X,M=0;M<R.length;M++){X=Y;for(var W=R[M],z=t,I=0,F=null,G=D.substring(X[0]).toLowerCase(),V=0;V<W.length;V++){var e=W[V].toLowerCase();if(z&&e.indexOf(G)==0){I=G.length;F=V;break}W[V].length>I&&G.indexOf(e)==0&&(I=W[V].length,F=V)}F!==null&&(X[0]+=I);X=F;if(X!==null)return Z(X),!0}return!1},AjY=function(D,Y){(D=D.substring(Y[0]).match(VN4))&&(Y[0]+=D[0].length)},ij=function(D,Y,R,Z,t){Y=Z>0?Y.substring(0,R[0]+Z):Y;
t=t||!1;if(D.JSC$11324_dateTimeSymbols_.ZERODIGIT){Z=[];for(var X=R[0];X<Y.length;X++){var M=Y.charCodeAt(X)-D.JSC$11324_dateTimeSymbols_.ZERODIGIT;Z.push(0<=M&&M<=9?String.fromCharCode(M+48):Y.charAt(X))}Y=Z.join("")}else Y=Y.substring(R[0]);D=Y.match(new RegExp("^"+(t?"[+-]?":"")+"\\d+"));if(!D)return null;R[0]+=D[0].length;return parseInt(D[0],10)},eJb=function(){};
eJb.prototype.ambiguousYear=!1;_.oyb={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 brY={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"},yjV=brY,Nd7=brY;Nd7=yjV=brY;var JjE,Oo,DS,iT9,cX,lhz;
_.Q5=function(D,Y,R,Z){var t;if(t=Y){a:if(Y&&Y.length===3){for(t=0;t<3;t++){var X=Y[t];if(X<"A"||X>"Z"&&X<"a"||X>"z"){t=!1;break a}}t=!0}else t=!1;t=!t}if(t)throw new TypeError("Zd");this.intlCurrencyCode_=Y?Y.toUpperCase():null;this.currencyStyle_=R||0;this.overrideNumberFormatSymbols_=Z||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_=Oo(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof D==="number")switch(D){case 1:cX(this,Oo(this).DECIMAL_PATTERN);break;case 2:cX(this,Oo(this).SCIENTIFIC_PATTERN);break;case 3:cX(this,Oo(this).PERCENT_PATTERN);break;case 4:D=Oo(this).CURRENCY_PATTERN;Y=["0"];if(R=
QZ[DS(this)]){R=R[0]&7;if(R>0)for(Y.push("."),Z=0;Z<R;Z++)Y.push("0");D=D.replace(/0.00/g,Y.join(""))}cX(this,D);break;case 5:lhz(this,1);break;case 6:lhz(this,2);break;default:throw Error("be");}else cX(this,D)};
JjE=!1;Oo=function(D){return D.overrideNumberFormatSymbols_||(JjE?Nd7:yjV)};
DS=function(D){return D.intlCurrencyCode_||Oo(D).DEF_CURRENCY_CODE};
iT9=function(D,Y){if(Y>308)throw Error("ae`"+Y);D.maximumFractionDigits_=Y;return D};
cX=function(D,Y){var R=[0];D.positivePrefix_=kmV(D,Y,R);for(var Z=R[0],t=-1,X=0,M=0,W=0,z=-1,I=Y.length,F=!0;R[0]<I&&F;R[0]++)switch(Y.charAt(R[0])){case "#":M>0?W++:X++;z>=0&&t<0&&z++;break;case "0":if(W>0)throw Error("he`"+Y);M++;z>=0&&t<0&&z++;break;case ",":z>0&&D.groupingArray_.push(z);z=0;break;case ".":if(t>=0)throw Error("ie`"+Y);t=X+M+W;break;case "E":if(D.useExponentialNotation_)throw Error("je`"+Y);D.useExponentialNotation_=!0;D.minExponentDigits_=0;R[0]+1<I&&Y.charAt(R[0]+1)=="+"&&(R[0]++,
D.useSignForPositiveExponent_=!0);for(;R[0]+1<I&&Y.charAt(R[0]+1)=="0";)R[0]++,D.minExponentDigits_++;if(X+M<1||D.minExponentDigits_<1)throw Error("ke`"+Y);F=!1;break;default:R[0]--,F=!1}M==0&&X>0&&t>=0&&(M=t,M==0&&M++,W=X-M,X=M-1,M=1);if(t<0&&W>0||t>=0&&(t<X||t>X+M)||z==0)throw Error("le`"+Y);W=X+M+W;D.maximumFractionDigits_=t>=0?W-t:0;t>=0&&(D.minimumFractionDigits_=X+M-t,D.minimumFractionDigits_<0&&(D.minimumFractionDigits_=0));D.minimumIntegerDigits_=(t>=0?t:W)-X;D.useExponentialNotation_&&(D.maximumIntegerDigits_=
X+D.minimumIntegerDigits_,D.maximumFractionDigits_==0&&D.minimumIntegerDigits_==0&&(D.minimumIntegerDigits_=1));D.groupingArray_.push(Math.max(0,z));D.decimalSeparatorAlwaysShown_=t==0||t==W;Z=R[0]-Z;D.positiveSuffix_=kmV(D,Y,R);R[0]<Y.length&&Y.charAt(R[0])==";"?(R[0]++,D.multiplier_!=1&&(D.negativePercentSignExpected_=!0),D.negativePrefix_=kmV(D,Y,R),R[0]+=Z,D.negativeSuffix_=kmV(D,Y,R)):(D.negativePrefix_+=D.positivePrefix_,D.negativeSuffix_+=D.positiveSuffix_)};
lhz=function(D,Y){D.compactStyle_=Y;cX(D,Oo(D).DECIMAL_PATTERN);D.minimumFractionDigits_=0;iT9(D,2);if(D.minimumFractionDigits_>0)throw Error("$d");D.significantDigits_=2};
_.Q5.prototype.parse=function(D,Y){Y=Y||[0];if(this.compactStyle_!==0)throw Error("ce");D=D.replace(/ |\u202f/g,"\u00a0");var R=D.indexOf(this.positivePrefix_,Y[0])==Y[0],Z=D.indexOf(this.negativePrefix_,Y[0])==Y[0];R&&Z&&(this.positivePrefix_.length>this.negativePrefix_.length?Z=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(R=!1));R?Y[0]+=this.positivePrefix_.length:Z&&(Y[0]+=this.negativePrefix_.length);if(D.indexOf(Oo(this).INFINITY,Y[0])==Y[0]){Y[0]+=Oo(this).INFINITY.length;var t=
Infinity}else{t=D;var X=!1,M=!1,W=!1,z=-1,I=1,F=Oo(this).DECIMAL_SEP,G=Oo(this).GROUP_SEP,V=Oo(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("de");G=G.replace(/\u202f/g,"\u00a0");for(var e="";Y[0]<t.length;Y[0]++){var r=t.charAt(Y[0]),l=UBE(this,r);if(l>=0&&l<=9)e+=l,W=!0;else if(r==F.charAt(0)){if(X||M)break;e+=".";X=!0}else if(r==G.charAt(0)&&("\u00a0"!=G.charAt(0)||Y[0]+1<t.length&&UBE(this,t.charAt(Y[0]+1))>=0)){if(X||M)break}else if(r==V.charAt(0)){if(M)break;e+="E";M=!0;z=Y[0]}else if(r==
"+"||r=="-"){if(W&&z!=Y[0]-1)break;e+=r}else if(this.multiplier_==1&&r==Oo(this).PERCENT.charAt(0)){if(I!=1)break;I=100;if(W){Y[0]++;break}}else if(this.multiplier_==1&&r==Oo(this).PERMILL.charAt(0)){if(I!=1)break;I=1E3;if(W){Y[0]++;break}}else break}this.multiplier_!=1&&(I=this.multiplier_);t=parseFloat(e)/I}if(R){if(D.indexOf(this.positiveSuffix_,Y[0])!=Y[0])return NaN;Y[0]+=this.positiveSuffix_.length}else if(Z){if(D.indexOf(this.negativeSuffix_,Y[0])!=Y[0])return NaN;Y[0]+=this.negativeSuffix_.length}return Z?
-t:t};
_.Q5.prototype.format=function(D){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ee");if(isNaN(D))return Oo(this).NAN;var Y=[];var R=D;if(this.compactStyle_==0)R=Yl;else{R=Math.abs(R);var Z=K41(this,R<=1?0:hJL(R)).divisorBase;R=K41(this,Z+hJL(L44(this,R1(R,-Z)).intValue))}D=R1(D,-R.divisorBase);(Z=D<0||D==0&&1/D<0)?R.negative_prefix?Y.push(R.negative_prefix):(Y.push(R.prefix),Y.push(this.negativePrefix_)):(Y.push(R.prefix),Y.push(this.positivePrefix_));if(isFinite(D))if(D*=
Z?-1:1,D*=this.multiplier_,this.useExponentialNotation_){var t=D;if(t==0)mBE(this,t,this.minimumIntegerDigits_,Y),qgL(this,0,Y);else{var X=Math.floor(Math.log(t)/Math.log(10)+2E-15);t=R1(t,-X);var M=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(M=X%this.maximumIntegerDigits_,M<0&&(M=this.maximumIntegerDigits_+M),t=R1(t,M),X-=M,M=1):this.minimumIntegerDigits_<1?(X++,t=R1(t,-1)):(X-=this.minimumIntegerDigits_-1,t=R1(t,this.minimumIntegerDigits_-
1));mBE(this,t,M,Y);qgL(this,X,Y)}}else mBE(this,D,this.minimumIntegerDigits_,Y);else Y.push(Oo(this).INFINITY);Z?R.negative_suffix?Y.push(R.negative_suffix):(isFinite(D)&&Y.push(R.suffix),Y.push(this.negativeSuffix_)):(isFinite(D)&&Y.push(R.suffix),Y.push(this.positiveSuffix_));return Y.join("")};
var L44=function(D,Y){var R=R1(Y,D.maximumFractionDigits_);D.significantDigits_>0&&(R=HrV(R,D.significantDigits_,D.maximumFractionDigits_));R=Math.round(R);if(isFinite(R)){var Z=Math.floor(R1(R,-D.maximumFractionDigits_));R=Math.floor(R-R1(Z,D.maximumFractionDigits_));if(R<0||R>=R1(1,D.maximumFractionDigits_))Z=Math.round(Y),R=0}else Z=Y,R=0;return{intValue:Z,fracValue:R}},mBE=function(D,Y,R,Z){if(D.minimumFractionDigits_>D.maximumFractionDigits_)throw Error("ee");
Z||(Z=[]);Y=L44(D,Y);var t=Y.intValue,X=Y.fracValue,M=D.minimumFractionDigits_>0||X>0||!1;Y=D.minimumFractionDigits_;M&&(Y=D.minimumFractionDigits_);for(var W="",z=t;z>1E20;)W="0"+W,z=Math.round(R1(z,-1));W=z+W;var I=Oo(D).DECIMAL_SEP;z=Oo(D).ZERO_DIGIT.codePointAt(0);var F=W.length,G=0;if(t>0||R>0){for(t=F;t<R;t++)Z.push(String.fromCodePoint(z));if(D.groupingArray_.length>=2)for(R=1;R<D.groupingArray_.length;R++)G+=D.groupingArray_[R];R=F-G;if(R>0){t=D.groupingArray_;G=F=0;for(var V,e=Oo(D).GROUP_SEP,
r=W.length,l=0;l<r;l++)if(Z.push(String.fromCodePoint(z+Number(W.charAt(l)))),r-l>1)if(V=t[G],l<R){var U=R-l;(V===1||V>0&&U%V===1)&&Z.push(e)}else G<t.length&&(l===R?G+=1:V===l-R-F+1&&(Z.push(e),F+=V,G+=1))}else{R=W;W=D.groupingArray_;t=Oo(D).GROUP_SEP;V=R.length;e=[];for(F=W.length-1;F>=0&&V>0;F--){G=W[F];for(r=0;r<G&&V-r-1>=0;r++)e.push(String.fromCodePoint(z+Number(R.charAt(V-r-1))));V-=G;V>0&&e.push(t)}Z.push.apply(Z,e.reverse())}}else M||Z.push(String.fromCodePoint(z));(D.decimalSeparatorAlwaysShown_||
M)&&Z.push(I);X=String(X);M=X.split("e+");M.length==2&&(X=String(HrV(parseFloat(M[0]),D.significantDigits_,1)),X=X.replace(".",""),X+=(0,_.ASU)("0",parseInt(M[1],10)-X.length+1));D.maximumFractionDigits_+1>X.length&&(X="1"+(0,_.ASU)("0",D.maximumFractionDigits_-X.length)+X);for(D=X.length;X.charAt(D-1)=="0"&&D>Y+1;)D--;for(Y=1;Y<D;Y++)Z.push(String.fromCodePoint(z+Number(X.charAt(Y))))},qgL=function(D,Y,R){R.push(Oo(D).EXP_SYMBOL);
Y<0?(Y=-Y,R.push(Oo(D).MINUS_SIGN)):D.useSignForPositiveExponent_&&R.push(Oo(D).PLUS_SIGN);Y=""+Y;for(var Z=Oo(D).ZERO_DIGIT,t=Y.length;t<D.minExponentDigits_;t++)R.push(Z);D=Z.codePointAt(0)-xBb;for(Z=0;Z<Y.length;Z++)R.push(String.fromCodePoint(D+Y.codePointAt(Z)))},UBE=function(D,Y){Y=Y.codePointAt(0);
if(48<=Y&&Y<58)return Y-48;D=Oo(D).ZERO_DIGIT.codePointAt(0);return D<=Y&&Y<D+10?Y-D:-1},xBb="0".codePointAt(0),kmV=function(D,Y,R){for(var Z="",t=!1,X=Y.length;R[0]<X;R[0]++){var M=Y.charAt(R[0]);
if(M=="'")R[0]+1<X&&Y.charAt(R[0]+1)=="'"?(R[0]++,Z+="'"):t=!t;else if(t)Z+=M;else switch(M){case "#":case "0":case ",":case ".":case ";":return Z;case "\u00a4":if(R[0]+1<X&&Y.charAt(R[0]+1)=="\u00a4")R[0]++,Z+=DS(D);else switch(D.currencyStyle_){case 0:M=DS(D);Z+=M in QZ?QZ[M][1]:M;break;case 2:M=DS(D);var W=QZ[M];Z+=W?M==W[1]?M:M+" "+W[1]:M;break;case 1:M=DS(D),Z+=M in QZ?QZ[M][2]:M}break;case "%":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("fe");if(D.negativePercentSignExpected_&&
D.multiplier_!=100)throw Error("ge");D.multiplier_=100;D.negativePercentSignExpected_=!1;Z+=Oo(D).PERCENT;break;case "\u2030":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("fe");if(D.negativePercentSignExpected_&&D.multiplier_!=1E3)throw Error("ge");D.multiplier_=1E3;D.negativePercentSignExpected_=!1;Z+=Oo(D).PERMILL;break;default:Z+=M}}return Z},Yl={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},K41=function(D,Y){D=D.compactStyle_==1?PX.COMPACT_DECIMAL_SHORT_PATTERN:PX.COMPACT_DECIMAL_LONG_PATTERN;D==null&&(D=PX.COMPACT_DECIMAL_SHORT_PATTERN);if(Y<3)return Yl;Y=Math.min(14,Y);var R=D[R1(1,Y)];for(--Y;!R&&Y>=3;)R=D[R1(1,Y)],Y--;if(!R)return Yl;R=R.other;var Z=D="",t=R.indexOf(";");t>=0&&(R=R.substring(0,t),t=R.substring(t+1))&&(Z=/([^0]*)(0+)(.*)/.exec(t),D=Z[1],Z=Z[3]);return R&&R!="0"?(R=/([^0]*)(0+)(.*)/.exec(R))?{divisorBase:Y+
1-(R[2].length-1),negative_prefix:D,negative_suffix:Z,prefix:R[1],suffix:R[3]}:Yl:Yl},hJL=function(D){if(!isFinite(D))return D>0?D:0;
for(var Y=0;(D/=10)>=1;)Y++;return Y},R1=function(D,Y){if(!D||!isFinite(D)||Y==0)return D;
D=String(D).split("e");return parseFloat(D[0]+"e"+(parseInt(D[1]||0,10)+Y))},PP_=function(D,Y){return D&&isFinite(D)?R1(Math.round(R1(D,Y)),-Y):D},HrV=function(D,Y,R){if(!D)return D;
Y=Y-hJL(D)-1;return Y<-R?PP_(D,-R):PP_(D,Y)};var QU4=function(D){return D%10==1&&D%100!=11?"one":D%10==2&&D%100!=12?"two":D%10==3&&D%100!=13?"few":"other"},BdL=QU4;
BdL=QU4;var pEz;pEz=function(D,Y){var R=D|0;if(void 0===Y){Y=Math;var Z=Y.min,t=D+"",X=t.indexOf(".");Y=Z.call(Y,X===-1?0:t.length-X-1,3)}Z=Math.pow(10,Y);D={v:Y,f:(D*Z|0)%Z};return R==1&&D.v==0?"one":"other"};
_.dL=pEz;_.dL=pEz;var EyE,gy_,dBb,OrU,cjU;_.irD=function(D){this.JSC$11367_pattern_=D;this.parsedPattern_=this.literals_=this.initialLiterals_=null;D=yjV;var Y=PX;if(EyE!==D||gy_!==Y)EyE=D,gy_=Y,dBb=new _.Q5(1);this.numberFormatter_=dBb};
EyE=null;gy_=null;dBb=null;OrU=RegExp("'([{}#].*?)'","g");cjU=RegExp("''","g");
_.irD.prototype.format=function(D){if(this.JSC$11367_pattern_){this.initialLiterals_=[];var Y=DI_(this,this.JSC$11367_pattern_);this.parsedPattern_=Y4z(this,Y);this.JSC$11367_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.q$(this.initialLiterals_),Y=[],RU1(this,this.parsedPattern_,D,!1,Y),D=Y.join("");this.literals_.length>0;)D=D.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else D="";return D};
var RU1=function(D,Y,R,Z,t){for(var X=0;X<Y.length;X++)switch(Y[X].type){case 4:t.push(Y[X].value);break;case 3:var M=Y[X].value;var W=D,z=t,I=R[M];I===void 0?z.push("Undefined parameter - "+M):(W.literals_.push(I),z.push(W.buildPlaceholder_(W.literals_)));break;case 2:M=Y[X].value;W=D;z=R;I=Z;var F=t,G=M.argumentIndex;z[G]===void 0?F.push("Undefined parameter - "+G):(G=M[z[G]],G===void 0&&(G=M.other),RU1(W,G,z,I,F));break;case 0:M=Y[X].value;Z8_(D,M,R,_.dL,Z,t);break;case 1:M=Y[X].value,Z8_(D,M,
R,BdL,Z,t)}},Z8_=function(D,Y,R,Z,t,X){var M=Y.argumentIndex,W=Y.argumentOffset,z=+R[M];
isNaN(z)?X.push("Undefined or invalid parameter - "+M):(W=z-W,M=Y[R[M]],M===void 0&&(Z=Z(Math.abs(W)),M=Y[Z],M===void 0&&(M=Y.other)),Y=[],RU1(D,M,R,t,Y),R=Y.join(""),t?X.push(R):(D=D.numberFormatter_.format(W),X.push(R.replace(/#/g,D))))},DI_=function(D,Y){var R=D.initialLiterals_,Z=D.buildPlaceholder_.bind(D);
Y=Y.replace(cjU,function(){R.push("'");return Z(R)});
return Y=Y.replace(OrU,function(t,X){R.push(X);return Z(R)})},tv1=function(D){var Y=0,R=[],Z=[],t=/[{}]/g;
t.lastIndex=0;for(var X;X=t.exec(D);){var M=X.index;X[0]=="}"?(R.pop(),R.length==0&&(X={type:1},X.value=D.substring(Y,M),Z.push(X),Y=M+1)):(R.length==0&&(Y=D.substring(Y,M),Y!=""&&Z.push({type:0,value:Y}),Y=M+1),R.push("{"))}D=D.substring(Y);D!=""&&Z.push({type:0,value:D});return Z},sTE=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,XL7=/^\s*(\w+)\s*,\s*selectordinal\s*,/,uK1=/^\s*(\w+)\s*,\s*select\s*,/,Y4z=function(D,Y){var R=[];
Y=tv1(Y);for(var Z=0;Z<Y.length;Z++){var t={};if(0==Y[Z].type)t.type=4,t.value=Y[Z].value;else if(1==Y[Z].type){var X=Y[Z].value;switch(sTE.test(X)?0:XL7.test(X)?1:uK1.test(X)?2:/^\s*\w+\s*/.test(X)?3:5){case 2:t.type=2;t.value=aXz(D,Y[Z].value);break;case 0:t.type=0;t.value=Mv7(D,Y[Z].value);break;case 1:t.type=1;t.value=Cf_(D,Y[Z].value);break;case 3:t.type=3,t.value=Y[Z].value}}R.push(t)}return R},aXz=function(D,Y){var R="";
Y=Y.replace(uK1,function(W,z){R=z;return""});
var Z={};Z.argumentIndex=R;Y=tv1(Y);for(var t=0;t<Y.length;){var X=Y[t].value;t++;var M=void 0;1==Y[t].type&&(M=Y4z(D,Y[t].value));Z[X.replace(/\s/g,"")]=M;t++}return Z},Mv7=function(D,Y){var R="",Z=0;
Y=Y.replace(sTE,function(z,I,F){R=I;F&&(Z=parseInt(F,10));return""});
var t={};t.argumentIndex=R;t.argumentOffset=Z;Y=tv1(Y);for(var X=0;X<Y.length;){var M=Y[X].value;X++;var W=void 0;1==Y[X].type&&(W=Y4z(D,Y[X].value));t[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=W;X++}return t},Cf_=function(D,Y){var R="";
Y=Y.replace(XL7,function(W,z){R=z;return""});
var Z={};Z.argumentIndex=R;Z.argumentOffset=0;Y=tv1(Y);for(var t=0;t<Y.length;){var X=Y[t].value;t++;var M=void 0;1==Y[t].type&&(M=Y4z(D,Y[t].value));Z[X.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;t++}return Z};
_.irD.prototype.buildPlaceholder_=function(D){return"\ufddf_"+(D.length-1).toString(10)+"_"};var WQ_;
WQ_={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 y$U=function(){this.rdtfSymbols_=zUb||WQ_;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
y$U.prototype.format=function(D,Y){a:{Y=S4z(this,Y);switch(this.style_){case 2:if(Y.NARROW!=void 0){Y=Y.NARROW;break a}case 1:if(Y.SHORT!=void 0){Y=Y.SHORT;break a}default:Y=Y.LONG;break a}Y=void 0}if(!this.alwaysNumeric_&&Y&&Y.R&&Y.R[""+D])D=Y.R[""+D];else if(Y){var R=Math.abs(D);D=(new _.irD("{N,plural,"+(D>0||D==0&&1/D==Infinity?Y.F:Y.P)+"}")).format({N:R})}else D="";return D};
var S4z=function(D,Y){switch(Y){default:case 0:return D.rdtfSymbols_.YEAR;case 1:return D.rdtfSymbols_.QUARTER;case 2:return D.rdtfSymbols_.MONTH;case 3:return D.rdtfSymbols_.WEEK;case 4:return D.rdtfSymbols_.DAY;case 5:return D.rdtfSymbols_.HOUR;case 6:return D.rdtfSymbols_.MINUTE;case 7:return D.rdtfSymbols_.SECOND}};var TsL=function(D,Y,R,Z,t,X,M,W){this.x0=D;this.y0=Y;this.x1=R;this.y1=Z;this.x2=t;this.y2=X;this.x3=M;this.y3=W};
TsL.prototype.clone=function(){return new TsL(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
TsL.prototype.equals=function(D){return this.x0==D.x0&&this.y0==D.y0&&this.x1==D.x1&&this.y1==D.y1&&this.x2==D.x2&&this.y2==D.y2&&this.x3==D.x3&&this.y3==D.y3};
var jT7=function(D,Y){if(Y==0)return D.x0;if(Y==1)return D.x3;var R=nC(D.x0,D.x1,Y),Z=nC(D.x1,D.x2,Y);D=nC(D.x2,D.x3,Y);R=nC(R,Z,Y);Z=nC(Z,D,Y);return nC(R,Z,Y)},IX_=function(D,Y){var R=(Y-D.x0)/(D.x3-D.x0);
if(R<=0)return 0;if(R>=1)return 1;for(var Z=0,t=1,X=0,M=0;M<8;M++){X=jT7(D,R);var W=(jT7(D,R+1E-6)-X)/1E-6;if(Math.abs(X-Y)<1E-6)return R;if(Math.abs(W)<1E-6)break;else X<Y?Z=R:t=R,R-=(X-Y)/W}for(M=0;Math.abs(X-Y)>1E-6&&M<8;M++)X<Y?(Z=R,R=(R+t)/2):(t=R,R=(R+Z)/2),X=jT7(D,R);return R};var ZS=function(){_.eE.call(this);this.JSC$11388_name_="closure_frame"+FQE++;this.iframesForDisposal_=[];GDE[this.JSC$11388_name_]=this},t2;
_.XN(ZS,_.eE);var GDE={},FQE=0,VvL=function(D,Y){var R=f0(D);b4L(Y,function(Z,t){Array.isArray(Z)||(Z=[Z]);_.xs(Z,function(X){X=R.JSC$9297_createDom("INPUT",{type:"hidden",name:t,value:X});D.appendChild(X)})})};
_.u=ZS.prototype;_.u.JSC$11390_form_=null;_.u.JSC$11390_iframe_=null;_.u.iframeName_=null;_.u.nextIframeId_=0;_.u.JSC$11390_active_=!1;_.u.complete_=!1;_.u.success_=!1;_.u.lastContent_=null;_.u.JSC$11390_lastErrorCode_=0;_.u.iframeDisposalTimer_=null;
_.u.send=function(D,Y,R,Z){if(this.JSC$11390_active_)throw Error("me");D=new _.cO(D);Y=Y?Y.toUpperCase():"GET";R&&_.as(D);t2||(t2=_.vj("FORM"),t2.acceptCharset="utf-8",R=t2.style,R.position="absolute",R.visibility="hidden",R.top=R.left="-10px",R.width=R.height="10px",R.overflow="hidden",document.body.appendChild(t2));this.JSC$11390_form_=t2;Y=="GET"&&VvL(this.JSC$11390_form_,D.JSC$10000_queryData_);Z&&VvL(this.JSC$11390_form_,Z);R=D.toString();R=Qni(R);Z=this.JSC$11390_form_;R=_.K$($7(R));R!==void 0&&
(Z.action=R);this.JSC$11390_form_.method=Y;fXE(this);eUD(this)};
_.u.abort=function(D){if(this.JSC$11390_active_){var Y=sP(this);if(Y)if(Gg(Y))Y.removeAllListeners(void 0);else if(Y=VF(Y)){var R=0,Z;for(Z in Y.listeners)for(var t=Y.listeners[Z].concat(),X=0;X<t.length;++X)vL(t[X])&&++R}this.success_=this.JSC$11390_active_=this.complete_=!1;this.JSC$11390_lastErrorCode_=D||7;this.dispatchEvent("abort");Aiz(this)}};
_.u.disposeInternal=function(){this.JSC$11390_active_&&this.abort();ZS.superClass_.disposeInternal.call(this);this.JSC$11390_iframe_&&nCL(this);eUD(this);this.JSC$11390_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11390_form_=null;this.JSC$11390_lastErrorCode_=0;delete GDE[this.JSC$11388_name_]};
_.u.isComplete=function(){return this.complete_};
_.u.isSuccess=function(){return this.success_};
_.u.isActive=function(){return this.JSC$11390_active_};
_.u.getResponseText=function(){return this.lastContent_};
_.u.getLastError=function(){return _.uLE(this.JSC$11390_lastErrorCode_)};
var fXE=function(D){D.JSC$11390_active_=!0;D.complete_=!1;D.JSC$11390_lastErrorCode_=0;D.iframeName_=D.JSC$11388_name_+"_"+(D.nextIframeId_++).toString(36);D.JSC$11390_iframe_=f0(D.JSC$11390_form_).JSC$9297_createDom("IFRAME",{name:D.iframeName_,id:D.iframeName_});var Y=D.JSC$11390_iframe_.style;Y.visibility="hidden";Y.width=Y.height="10px";Y.display="none";_.zX?Y.marginTop=Y.marginLeft="-10px":(Y.position="absolute",Y.top=Y.left="-10px");f0(D.JSC$11390_form_).JSC$9295_document_.body.appendChild(D.JSC$11390_iframe_);
Y=D.iframeName_+"_inner";var R=Qz_(D.JSC$11390_iframe_);if(document.baseURI){var Z=SG(Y);Z='<head><base href="'+SG(document.baseURI)+'"></head><body><iframe id="'+Z+'" name="'+Z+'"></iframe>';Z=qy(Z)}else Z=SG(Y),Z=qy('<body><iframe id="'+Z+'" name="'+Z+'"></iframe>');R.write(HZ(Z));_.yu(R.getElementById(Y),"load",D.onIframeLoaded_,!1,D);Z=G_("TEXTAREA",D.JSC$11390_form_);for(var t=0,X=Z.length;t<X;t++){var M=Z[t].value;iLU(Z[t])!=M&&(_.kr(Z[t],M),Z[t].value=M)}Z=R.importNode(D.JSC$11390_form_,!0);
Z.target=Y;Z.action=D.JSC$11390_form_.action;R.body.appendChild(Z);t=G_("SELECT",D.JSC$11390_form_);X=G_("SELECT",Z);M=0;for(var W=t.length;M<W;M++)for(var z=G_("OPTION",t[M]),I=G_("OPTION",X[M]),F=0,G=z.length;F<G;F++)I[F].selected=z[F].selected;t=G_("INPUT",D.JSC$11390_form_);X=G_("INPUT",Z);M=0;for(W=t.length;M<W;M++)if(t[M].type=="file"&&t[M].value!=X[M].value){D.JSC$11390_form_.target=Y;Z=D.JSC$11390_form_;break}try{D.errorHandled_=!1,Z.submit(),R.close(),_.WQ&&setTimeout(D.testForFirefoxSilentError_.bind(D),
250)}catch(V){_.fg(R.getElementById(Y),"load",D.onIframeLoaded_,!1,D),R.close(),Xe(D,2)}};
ZS.prototype.onIframeLoaded_=function(){_.fg(sP(this),"load",this.onIframeLoaded_,!1,this);try{var D=this.JSC$11390_iframe_?Qz_(sP(this)):null;this.complete_=!0;this.JSC$11390_active_=!1;try{var Y=D.body;this.lastContent_=Y.textContent||Y.innerText}catch(t){var R=1}var Z;R||typeof this.errorChecker_!="function"||(Z=this.errorChecker_(D))&&(R=4);R?Xe(this,R):(this.success_=!0,this.JSC$11390_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Aiz(this))}catch(t){Xe(this,1)}};
var Xe=function(D,Y){D.errorHandled_||(D.success_=!1,D.JSC$11390_active_=!1,D.complete_=!0,D.JSC$11390_lastErrorCode_=Y,D.dispatchEvent("complete"),D.dispatchEvent("error"),Aiz(D),D.errorHandled_=!0)},Aiz=function(D){nCL(D);
eUD(D);D.JSC$11390_form_=null;D.dispatchEvent("ready")},nCL=function(D){var Y=D.JSC$11390_iframe_;
Y&&(Y.onreadystatechange=null,Y.onload=null,Y.onerror=null,D.iframesForDisposal_.push(Y));D.iframeDisposalTimer_&&(clearTimeout(D.iframeDisposalTimer_),D.iframeDisposalTimer_=null);_.WQ?D.iframeDisposalTimer_=setTimeout(D.disposeIframes_.bind(D),2E3):D.disposeIframes_();D.JSC$11390_iframe_=null;D.iframeName_=null};
ZS.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var D=this.iframesForDisposal_.pop();_.F_(D)}};
var eUD=function(D){D.JSC$11390_form_&&D.JSC$11390_form_==t2&&_.yy(D.JSC$11390_form_)},sP=function(D){return D.JSC$11390_iframe_?Qz_(D.JSC$11390_iframe_).getElementById(D.iframeName_+"_inner"):null};
ZS.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11390_active_){var D=this.JSC$11390_iframe_?Qz_(sP(this)):null;D&&!AZo(D,"documentUri")?(_.fg(sP(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Xe(this,3):Xe(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.u_=function(D){return D=="\r"||D=="\n"||D==" "||D=="\t"};var riE;_.a1=function(D){this.errorMessage_=null;this.result_=[];this.JSC$11392_buffer_="";this.stack_=[];this.JSC$11392_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!D||!D.deliverMessageAsRawString)};
riE={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};_.a1.prototype.isInputValid=function(){return this.streamState_!=3};
_.a1.prototype.done=function(){return this.streamState_===2};
var MK=function(D,Y,R){D.streamState_=3;D.errorMessage_="The stream is broken @"+D.JSC$11392_pos_+"/"+R+". With input:\n"+Y;throw Error(D.errorMessage_);};
_.a1.prototype.acceptsBinaryInput=function(){return!1};
_.a1.prototype.parse=function(D){function Y(){for(;V<D.length;)if(_.u_(D[V]))V++,X.JSC$11392_pos_++;else break;return V<I}
function R(){for(var r;;){r=D[V++];if(!r)break;X.JSC$11392_pos_++;switch(X.state_){case z.INIT:r==="{"?X.state_=z.OBJECT_OPEN:r==="["?X.state_=z.ARRAY_OPEN:_.u_(r)||MK(X,D,V);continue;case z.KEY_START:case z.OBJECT_OPEN:if(_.u_(r))continue;if(X.state_===z.KEY_START)M.push(z.KEY_END);else if(r==="}"){t("{}");X.state_=Z();continue}else M.push(z.OBJECT_END);r==='"'?X.state_=z.STRING:MK(X,D,V);continue;case z.KEY_END:case z.OBJECT_END:if(_.u_(r))continue;r===":"?(X.state_===z.OBJECT_END&&(M.push(z.OBJECT_END),
X.depth_++),X.state_=z.VALUE):r==="}"?(X.depth_--,t(),X.state_=Z()):r===","?(X.state_===z.OBJECT_END&&M.push(z.OBJECT_END),X.state_=z.KEY_START):MK(X,D,V);continue;case z.ARRAY_OPEN:case z.VALUE:if(_.u_(r))continue;if(X.state_===z.ARRAY_OPEN)if(X.depth_++,X.state_=z.VALUE,r==="]"){X.depth_--;if(X.depth_===0){X.state_=z.ARRAY_END;return}t("[]");X.state_=Z();continue}else M.push(z.ARRAY_END);r==='"'?X.state_=z.STRING:r==="{"?X.state_=z.OBJECT_OPEN:r==="["?X.state_=z.ARRAY_OPEN:r==="t"?X.state_=z.TRUE1:
r==="f"?X.state_=z.FALSE1:r==="n"?X.state_=z.NULL1:r!=="-"&&("0123456789".indexOf(r)!==-1?X.state_=z.NUM_DIGIT:MK(X,D,V));continue;case z.ARRAY_END:if(r===",")M.push(z.ARRAY_END),X.state_=z.VALUE,X.depth_===1&&(G=V);else if(r==="]"){X.depth_--;if(X.depth_===0)return;t();X.state_=Z()}else if(_.u_(r))continue;else MK(X,D,V);continue;case z.STRING:var l=V;a:for(;;){for(;X.unicodeCount_>0;)if(r=D[V++],X.unicodeCount_===4?X.unicodeCount_=0:X.unicodeCount_++,!r)break a;if(r==='"'&&!X.slashed_){X.state_=
Z();break}if(r==="\\"&&!X.slashed_&&(X.slashed_=!0,r=D[V++],!r))break;if(X.slashed_)if(X.slashed_=!1,r==="u"&&(X.unicodeCount_=1),r=D[V++])continue;else break;W.lastIndex=V;r=W.exec(D);if(!r){V=D.length+1;break}V=r.index+1;r=D[r.index];if(!r)break}X.JSC$11392_pos_+=V-l;continue;case z.TRUE1:if(!r)continue;r==="r"?X.state_=z.TRUE2:MK(X,D,V);continue;case z.TRUE2:if(!r)continue;r==="u"?X.state_=z.TRUE3:MK(X,D,V);continue;case z.TRUE3:if(!r)continue;r==="e"?X.state_=Z():MK(X,D,V);continue;case z.FALSE1:if(!r)continue;
r==="a"?X.state_=z.FALSE2:MK(X,D,V);continue;case z.FALSE2:if(!r)continue;r==="l"?X.state_=z.FALSE3:MK(X,D,V);continue;case z.FALSE3:if(!r)continue;r==="s"?X.state_=z.FALSE4:MK(X,D,V);continue;case z.FALSE4:if(!r)continue;r==="e"?X.state_=Z():MK(X,D,V);continue;case z.NULL1:if(!r)continue;r==="u"?X.state_=z.NULL2:MK(X,D,V);continue;case z.NULL2:if(!r)continue;r==="l"?X.state_=z.NULL3:MK(X,D,V);continue;case z.NULL3:if(!r)continue;r==="l"?X.state_=Z():MK(X,D,V);continue;case z.NUM_DECIMAL_POINT:r===
"."?X.state_=z.NUM_DIGIT:MK(X,D,V);continue;case z.NUM_DIGIT:if("0123456789.eE+-".indexOf(r)!==-1)continue;else V--,X.JSC$11392_pos_--,X.state_=Z();continue;default:MK(X,D,V)}}}
function Z(){var r=M.pop();return r!=null?r:z.VALUE}
function t(r){X.depth_>1||(r||(r=G===-1?X.JSC$11392_buffer_+D.substring(F,V):D.substring(G,V)),X.deliverMessageAsRawString_?X.result_.push(r):X.result_.push(JSON.parse(r)),G=V)}
for(var X=this,M=X.stack_,W=X.stringInputPattern_,z=riE,I=D.length,F=0,G=-1,V=0;V<I;)switch(X.streamState_){case 3:return MK(X,D,V),null;case 2:return Y()&&MK(X,D,V),null;case 0:if(Y()){var e=D[V++];X.JSC$11392_pos_++;if(e==="["){X.streamState_=1;F=V;X.state_=z.ARRAY_OPEN;continue}else MK(X,D,V)}return null;case 1:return R(),X.depth_===0&&X.state_==z.ARRAY_END?(X.streamState_=2,X.JSC$11392_buffer_=D.substring(V)):X.JSC$11392_buffer_=G===-1?X.JSC$11392_buffer_+D.substring(F):D.substring(G),X.result_.length>
0?(e=X.result_,X.result_=[],e):null}return null};_.XN(_.C2,rP);WO.prototype.getValue=function(){return this.JSC$11400_value_};
WO.prototype.clone=function(){return new WO(this.JSC$11400_key_,this.JSC$11400_value_)};var CJ=function(D){this.nodes_=[];if(D)a:{if(D instanceof CJ){var Y=D.getKeys();D=D.getValues();if(this.getCount()<=0){for(var R=this.nodes_,Z=0;Z<Y.length;Z++)R.push(new WO(Y[Z],D[Z]));break a}}else Y=_.y7.getKeys(D),D=_.y7.getValues(D);for(R=0;R<Y.length;R++)this.insert(Y[R],D[R])}};
_.u=CJ.prototype;_.u.insert=function(D,Y){var R=this.nodes_;R.push(new WO(D,Y));D=R.length-1;Y=this.nodes_;for(R=Y[D];D>0;){var Z=D-1>>1;if(Y[Z].JSC$11400_key_>R.JSC$11400_key_)Y[D]=Y[Z],D=Z;else break}Y[D]=R};
_.u.remove=function(){var D=this.nodes_,Y=D.length,R=D[0];if(!(Y<=0)){if(Y==1)D.length=0;else{D[0]=D.pop();D=0;Y=this.nodes_;for(var Z=Y.length,t=Y[D];D<Z>>1;){var X=D*2+1,M=D*2+2;X=M<Z&&Y[M].JSC$11400_key_<Y[X].JSC$11400_key_?M:X;if(Y[X].JSC$11400_key_>t.JSC$11400_key_)break;Y[D]=Y[X];D=X}Y[D]=t}return R.getValue()}};
_.u.peek=function(){var D=this.nodes_;if(D.length!=0)return D[0].getValue()};
_.u.getValues=function(){for(var D=this.nodes_,Y=[],R=D.length,Z=0;Z<R;Z++)Y.push(D[Z].getValue());return Y};
_.u.getKeys=function(){for(var D=this.nodes_,Y=[],R=D.length,Z=0;Z<R;Z++)Y.push(D[Z].JSC$11400_key_);return Y};
_.u.containsValue=function(D){return this.nodes_.some(function(Y){return Y.getValue()==D})};
_.u.containsKey=function(D){return this.nodes_.some(function(Y){return Y.JSC$11400_key_==D})};
_.u.clone=function(){return new CJ(this)};
_.u.getCount=function(){return this.nodes_.length};
_.u.isEmpty=function(){return this.nodes_.length===0};
_.u.clear=function(){this.nodes_.length=0};_.W6=function(D,Y){this.JSC$11406_map_={};this.JSC$11406_keys_=[];this.version_=this.size=0;var R=arguments.length;if(R>1){if(R%2)throw Error("ka");for(var Z=0;Z<R;Z+=2)this.set(arguments[Z],arguments[Z+1])}else D&&this.addAll(D)};
_.u=_.W6.prototype;_.u.getCount=function(){return this.size};
_.u.getValues=function(){zY(this);for(var D=[],Y=0;Y<this.JSC$11406_keys_.length;Y++)D.push(this.JSC$11406_map_[this.JSC$11406_keys_[Y]]);return D};
_.u.getKeys=function(){zY(this);return this.JSC$11406_keys_.concat()};
_.u.containsKey=function(D){return this.has(D)};
_.u.has=function(D){return St(this.JSC$11406_map_,D)};
_.u.containsValue=function(D){for(var Y=0;Y<this.JSC$11406_keys_.length;Y++){var R=this.JSC$11406_keys_[Y];if(St(this.JSC$11406_map_,R)&&this.JSC$11406_map_[R]==D)return!0}return!1};
_.u.equals=function(D,Y){if(this===D)return!0;if(this.size!=D.getCount())return!1;Y=Y||wLD;zY(this);for(var R,Z=0;R=this.JSC$11406_keys_[Z];Z++)if(!Y(this.get(R),D.get(R)))return!1;return!0};
var wLD=function(D,Y){return D===Y};
_.W6.prototype.isEmpty=function(){return this.size==0};
_.W6.prototype.clear=function(){this.JSC$11406_map_={};this.version_=this.size=this.JSC$11406_keys_.length=0};
_.W6.prototype.remove=function(D){return this.delete(D)};
_.W6.prototype.delete=function(D){return St(this.JSC$11406_map_,D)?(delete this.JSC$11406_map_[D],--this.size,this.version_++,this.JSC$11406_keys_.length>2*this.size&&zY(this),!0):!1};
var zY=function(D){if(D.size!=D.JSC$11406_keys_.length){for(var Y=0,R=0;Y<D.JSC$11406_keys_.length;){var Z=D.JSC$11406_keys_[Y];St(D.JSC$11406_map_,Z)&&(D.JSC$11406_keys_[R++]=Z);Y++}D.JSC$11406_keys_.length=R}if(D.size!=D.JSC$11406_keys_.length){Y={};for(Z=R=0;R<D.JSC$11406_keys_.length;){var t=D.JSC$11406_keys_[R];St(Y,t)||(D.JSC$11406_keys_[Z++]=t,Y[t]=1);R++}D.JSC$11406_keys_.length=Z}};
_.u=_.W6.prototype;_.u.get=function(D,Y){return St(this.JSC$11406_map_,D)?this.JSC$11406_map_[D]:Y};
_.u.set=function(D,Y){St(this.JSC$11406_map_,D)||(this.size+=1,this.JSC$11406_keys_.push(D),this.version_++);this.JSC$11406_map_[D]=Y};
_.u.addAll=function(D){if(D instanceof _.W6)for(var Y=D.getKeys(),R=0;R<Y.length;R++)this.set(Y[R],D.get(Y[R]));else for(Y in D)this.set(Y,D[Y])};
_.u.forEach=function(D,Y){for(var R=this.getKeys(),Z=0;Z<R.length;Z++){var t=R[Z],X=this.get(t);D.call(Y,X,t,this)}};
_.u.clone=function(){return new _.W6(this)};
_.u.transpose=function(){for(var D=new _.W6,Y=0;Y<this.JSC$11406_keys_.length;Y++){var R=this.JSC$11406_keys_[Y];D.set(this.JSC$11406_map_[R],R)}return D};
_.u.keys=function(){return OIV(this.__iterator__(!0)).toEs6()};
_.u.values=function(){return OIV(this.__iterator__(!1)).toEs6()};
_.u.entries=function(){var D=this;return zs_(this.keys(),function(Y){return[Y,D.get(Y)]})};
_.u.__iterator__=function(D){zY(this);var Y=0,R=this.version_,Z=this,t=new a6;t.next=function(){if(R!=Z.version_)throw Error("ne");if(Y>=Z.JSC$11406_keys_.length)return MF;var X=Z.JSC$11406_keys_[Y++];return CK(D?X:Z.JSC$11406_map_[X])};
return t};
var St=function(D,Y){return Object.prototype.hasOwnProperty.call(D,Y)};var vC7=function(){this.JSC$11409_map_=new _.W6;this.JSC$11409_head_=new $IY("");this.JSC$11409_head_.next=this.JSC$11409_head_.prev=this.JSC$11409_head_},oCE=function(D,Y){if(Y=D.JSC$11409_map_.get(Y))Y.remove(),D.insert_(Y);
return Y};
_.u=vC7.prototype;_.u.get=function(D,Y){return(D=oCE(this,D))?D.value:Y};
_.u.set=function(D,Y){var R=oCE(this,D);R?R.value=Y:(R=new $IY(D,Y),this.JSC$11409_map_.set(D,R),this.insert_(R))};
_.u.peek=function(){return this.JSC$11409_head_.next.value};
_.u.shift=function(){return b8E(this,this.JSC$11409_head_.next)};
_.u.pop=function(){return b8E(this,this.JSC$11409_head_.prev)};
_.u.remove=function(D){return(D=this.JSC$11409_map_.get(D))?(this.removeNode(D),!0):!1};
_.u.removeNode=function(D){D.remove();this.JSC$11409_map_.remove(D.key)};
_.u.getCount=function(){return this.JSC$11409_map_.getCount()};
_.u.isEmpty=function(){return this.JSC$11409_map_.isEmpty()};
_.u.getKeys=function(){return this.map(function(D,Y){return Y})};
_.u.getValues=function(){return this.map(function(D){return D})};
_.u.contains=function(D){return this.some(function(Y){return Y==D})};
_.u.containsKey=function(D){return this.JSC$11409_map_.containsKey(D)};
_.u.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11409_head_.prev)};
_.u.forEach=function(D,Y){for(var R=this.JSC$11409_head_.next;R!=this.JSC$11409_head_;R=R.next)D.call(Y,R.value,R.key,this)};
_.u.map=function(D,Y){for(var R=[],Z=this.JSC$11409_head_.next;Z!=this.JSC$11409_head_;Z=Z.next)R.push(D.call(Y,Z.value,Z.key,this));return R};
_.u.some=function(D,Y){for(var R=this.JSC$11409_head_.next;R!=this.JSC$11409_head_;R=R.next)if(D.call(Y,R.value,R.key,this))return!0;return!1};
_.u.every=function(D,Y){for(var R=this.JSC$11409_head_.next;R!=this.JSC$11409_head_;R=R.next)if(!D.call(Y,R.value,R.key,this))return!1;return!0};
_.u.insert_=function(D){D.next=this.JSC$11409_head_.next;D.prev=this.JSC$11409_head_;this.JSC$11409_head_.next=D;for(D.next.prev=D;this.getCount()>100;)this.removeNode(this.JSC$11409_head_.prev)};
var b8E=function(D,Y){D.JSC$11409_head_!=Y&&D.removeNode(Y);return Y.value},$IY=function(D,Y){this.key=D;
this.value=Y};
$IY.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var yiL=function(){CJ.apply(this,arguments)};
_.n(yiL,CJ);yiL.prototype.enqueue=function(D,Y){this.insert(D,Y)};var NsE=function(){var D=Error();D.name="SecurityError";throw D;},rAU=function(){return{get opener(){return null},
get closed(){return!0},get location(){NsE()},get document(){NsE()},postMessage:function(){},
close:function(){},
focus:function(){}}};var y0i={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 J0l={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 lXz={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(J0l).join("|");var Ji4=function(){function D(W){W.substr(-1)!==";"&&(W+=";");return M(W)}
for(var Y=Object.keys(lXz).sort(loU),R=Object.keys(J0l).sort(loU),Z=0,t=0;Z<R.length;Z++)Y[t]===R[Z]?(R[Z]+=";?",t++):R[Z]+=";";var X=new RegExp("&(?:"+R.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),M=ktb();return function(W){return String(W).replace(X,D)}}();/*

 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 kDU={};var UI4=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"),KQE=/[\\&]/,hUU=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),LQE=RegExp('[&<>"]',"g"),mIE=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),q4z=function(D){return D.charCodeAt(0)===92?D.charAt(1):Ji4(D)},H8z=function(D){return KQE.test(D)?D.replace(hUU,q4z):D},xI4=function(D){try{var Y,R="";
if(typeof t!=="string"){var Z=t;var t=";/?:@&=+$,-_.!~*'()#"}typeof Z==="undefined"&&(Z=!0);var X,M=kDU[t];if(M)var W=M;else{M=kDU[t]=[];for(X=0;X<128;X++){var z=String.fromCharCode(X);/^[0-9a-z]$/i.test(z)?M.push(z):M.push("%"+("0"+X.toString(16).toUpperCase()).slice(-2))}for(X=0;X<t.length;X++)M[t.charCodeAt(X)]=t[X];W=M}var I=0;for(Y=D.length;I<Y;I++){var F=D.charCodeAt(I);if(Z&&F===37&&I+2<Y&&/^[0-9a-f]{2}$/i.test(D.slice(I+1,I+3)))R+=D.slice(I,I+3),I+=2;else if(F<128)R+=W[F];else if(F>=55296&&
F<=57343){if(F>=55296&&F<=56319&&I+1<Y){var G=D.charCodeAt(I+1);if(G>=56320&&G<=57343){R+=encodeURIComponent(D[I]+D[I+1]);I++;continue}}R+="%EF%BF%BD"}else R+=encodeURIComponent(D[I])}return R}catch(V){return D}},PfE=function(D){switch(D){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return D}},TY=function(D,Y){return LQE.test(D)?Y?D.replace(mIE,PfE):D.replace(LQE,PfE):D};/*

 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 jt;if(String.fromCodePoint)jt=function(D){try{return String.fromCodePoint(D)}catch(Y){if(Y instanceof RangeError)return String.fromCharCode(65533);throw Y;}};
else{var QTb=String.fromCharCode,BsL=Math.floor;jt=function(){var D=[],Y=-1,R=arguments.length;if(!R)return"";for(var Z="";++Y<R;){var t=Number(arguments[Y]);if(!isFinite(t)||t<0||t>1114111||BsL(t)!==t)return String.fromCharCode(65533);if(t<=65535)D.push(t);else{t-=65536;var X=(t>>10)+55296;t=t%1024+56320;D.push(X,t)}if(Y+1===R||D.length>16384)Z+=QTb.apply(null,D),D.length=0}return Z}};var pLV=function(D){this.root=this.current=D;this.entering=!0};
pLV.prototype.next=function(){var D=this.current,Y=this.entering;if(D===null)return null;a:switch(D._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 R=!0;break a;default:R=!1}Y&&R?D._firstChild?(this.current=D._firstChild,this.entering=!0):this.entering=!1:D===this.root?this.current=null:D._next===null?(this.current=
D._parent,this.entering=!1):(this.current=D._next,this.entering=!0);return{entering:Y,node:D}};
var jP=function(D,Y){this._type=D;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=Y;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};
jP.prototype.appendChild=function(D){D.unlink();D._parent=this;this._lastChild?(this._lastChild._next=D,D._prev=this._lastChild):this._firstChild=D;this._lastChild=D};
jP.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 ECU=function(D,Y){Y.unlink();Y._next=D._next;Y._next&&(Y._next._prev=Y);Y._prev=D;D._next=Y;Y._parent=D._parent;Y._next||(Y._parent._lastChild=Y)};
jP.prototype.insertBefore=function(D){D.unlink();D._prev=this._prev;D._prev&&(D._prev._next=D);D._next=this;this._prev=D;D._parent=this._parent;D._prev||(D._parent._firstChild=D)};
_.YF.Object.defineProperties(jP.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(D){this._literal=D}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(D){this._destination=D}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(D){this._title=D}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(D){this._info=D}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(D){this._level=D}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(D){this._listData.type=D}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(D){this._listData.tight=D}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(D){this._listData.start=D}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(D){this._onEnter=D}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(D){this._onExit=D}}});var UqS=/[ \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,
hDU={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 gC1=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]/),
dIU=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),i8D=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),O8Y=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),ciD=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),DWE=/`+/,YD4=/^`+/,Rl1=/\.\.\./g,ZBV=/--+/g,t77=/^<([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])?)*)>/,
stU=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,XN1=/^ *(?:\n *)?/,u4E=/^[ \t\n\x0b\x0c\x0d]/,aTE=/[ \t\n\x0b\x0c\x0d]+/g,M7L=/^\s/,Cqb=/ *$/,WIY=/^ */,zlz=/^ *(?:\n|$)/,SD7=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),T14=/^[^\n`\[\]\\!<&*_'"]+/m,I1=function(D){var Y=new jP("text");Y._literal=D;return Y},Fe=function(D){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=D||{}};
Fe.prototype.match=function(D){D=D.exec(this.subject.slice(this.pos));if(D===null)return null;this.pos+=D.index+D[0].length;return D[0]};
Fe.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var GY=function(D){D.match(XN1);return!0},jtU=function(D,Y,R){var Z=0;
var t=D.pos;if(Y===39||Y===34)Z++,D.pos++;else for(;D.peek()===Y;)Z++,D.pos++;if(Z===0)Z=null;else{var X=t===0?"\n":D.subject.charAt(t-1);var M=D.peek();M=M===-1?"\n":jt(M);var W=M7L.test(M);M=gC1.test(M);var z=M7L.test(X);var I=gC1.test(X);X=!W&&!(M&&!z&&!I);W=!z&&!(I&&!W&&!M);Y===95?(z=X&&(!W||I),M=W&&(!X||M)):(z=Y===39||Y===34?X&&!W:X,M=W);D.pos=t;Z={numdelims:Z,can_open:z,can_close:M}}if(!Z)return!1;t=Z.numdelims;M=D.pos;D.pos+=t;M=Y===39?"\u2019":Y===34?"\u201c":D.subject.slice(M,D.pos);M=I1(M);
R.appendChild(M);D.delimiters={cc:Y,numdelims:t,origdelims:t,node:M,previous:D.delimiters,next:null,can_open:Z.can_open,can_close:Z.can_close};D.delimiters.previous!==null&&(D.delimiters.previous.next=D.delimiters);return!0},ITL=function(D,Y){Y.previous!==null&&(Y.previous.next=Y.next);
Y.next===null?D.delimiters=Y.previous:Y.next.previous=Y.previous},FI_=function(D,Y){var R,Z,t=[],X=!1;
t[95]=Y;t[42]=Y;t[39]=Y;t[34]=Y;for(R=D.delimiters;R!==null&&R.previous!==Y;)R=R.previous;for(;R!==null;){var M=R.cc;if(R.can_close){var W=R.previous;for(Z=!1;W!==null&&W!==Y&&W!==t[M];){X=(R.can_open||W.can_close)&&(W.origdelims+R.origdelims)%3===0;if(W.cc===R.cc&&W.can_open&&!X){Z=!0;break}W=W.previous}var z=R;if(M===42||M===95)if(Z){var I=R.numdelims>=2&&W.numdelims>=2?2:1;var F=W.node;var G=R.node;W.numdelims-=I;R.numdelims-=I;F._literal=F._literal.slice(0,F._literal.length-I);G._literal=G._literal.slice(0,
G._literal.length-I);var V=new jP(I===1?"emph":"strong");for(I=F._next;I&&I!==G;){var e=I._next;I.unlink();V.appendChild(I);I=e}ECU(F,V);I=W;e=R;I.next!==e&&(I.next=e,e.previous=I);W.numdelims===0&&(F.unlink(),ITL(D,W));R.numdelims===0&&(G.unlink(),W=R.next,ITL(D,R),R=W)}else R=R.next;else M===39?(R.node._literal="\u2019",Z&&(W.node._literal="\u2018"),R=R.next):M===34&&(R.node._literal="\u201d",Z&&(W.node.literal="\u201c"),R=R.next);Z||X||(t[M]=z.previous,z.can_open||ITL(D,z))}else R=R.next}for(;D.delimiters!==
null&&D.delimiters!==Y;)ITL(D,D.delimiters)},GfD=function(D){D=D.match(dIU);
return D===null?null:H8z(D.substr(1,D.length-2))},V77=function(D){var Y=D.match(i8D);
if(Y===null){Y=D.pos;for(var R=0,Z;(Z=D.peek())!==-1;)if(Z===92)D.pos+=1,D.peek()!==-1&&(D.pos+=1);else if(Z===40)D.pos+=1,R+=1;else if(Z===41)if(R<1)break;else D.pos+=1,--R;else if(u4E.exec(jt(Z))!==null)break;else D.pos+=1;Y=D.subject.substr(Y,D.pos-Y);return xI4(H8z(Y))}return xI4(H8z(Y.substr(1,Y.length-2)))},fTL=function(D){D=D.match(SD7);
return D===null||D.length>1001?0:D.length},elV=function(D,Y,R,Z){D.brackets!==null&&(D.brackets.bracketAfter=!0);
D.brackets={node:Y,previous:D.brackets,previousDelimiter:D.delimiters,index:R,image:Z,active:!0}},ApV=function(D,Y){var R;
return(R=D.match(T14))?(D.options.smart?Y.appendChild(I1(R.replace(Rl1,"\u2026").replace(ZBV,function(Z){var t=0,X=0;Z.length%3===0?X=Z.length/3:Z.length%2===0?t=Z.length/2:Z.length%3===2?(t=1,X=(Z.length-2)/3):(t=2,X=(Z.length-4)/3);Z="";var M;for(M=0;M<X;M++)Z+="\u2014";for(M=0;M<t;M++)Z+="\u2013";return Z}))):Y.appendChild(I1(R)),!0):!1},nPD=function(D,Y,R){D.subject=Y;
D.pos=0;Y=D.pos;var Z=fTL(D);if(Z===0)return 0;var t=D.subject.substr(0,Z);if(D.peek()===58)D.pos++;else return D.pos=Y,0;GY(D);Z=V77(D);if(Z===null||Z.length===0)return D.pos=Y,0;var X=D.pos;GY(D);var M=GfD(D);M===null&&(M="",D.pos=X);var W=!0;D.match(zlz)===null&&(M===""?W=!1:(M="",D.pos=X,W=D.match(zlz)!==null));if(!W)return D.pos=Y,0;t=LcM(t);if(t==="")return D.pos=Y,0;R[t]||(R[t]={destination:Z,title:M});return D.pos-Y},rpL=function(D,Y){var R,Z=D.peek();
if(Z===-1)return!1;switch(Z){case 10:D.pos+=1;if((R=Y._lastChild)&&R.type==="text"&&R._literal[R._literal.length-1]===" "){var t=R._literal[R._literal.length-2]===" ";R._literal=R._literal.replace(Cqb,"");Y.appendChild(new jP(t?"linebreak":"softbreak"))}else Y.appendChild(new jP("softbreak"));D.match(WIY);R=!0;break;case 92:R=D.subject;D.pos+=1;D.peek()===10?(D.pos+=1,R=new jP("linebreak"),Y.appendChild(R)):O8Y.test(R.charAt(D.pos))?(Y.appendChild(I1(R.charAt(D.pos))),D.pos+=1):Y.appendChild(I1("\\"));
R=!0;break;case 96:a:if(R=D.match(YD4),R===null)R=!1;else{t=D.pos;for(var X;(X=D.match(DWE))!==null;)if(X===R){X=new jP("code");X._literal=D.subject.slice(t,D.pos-R.length).trim().replace(aTE," ");Y.appendChild(X);R=!0;break a}D.pos=t;Y.appendChild(I1(R));R=!0}break;case 42:case 95:R=jtU(D,Z,Y);break;case 39:case 34:R=D.options.smart&&jtU(D,Z,Y);break;case 91:R=D.pos;D.pos+=1;t=I1("[");Y.appendChild(t);elV(D,t,R,!1);R=!0;break;case 33:R=D.pos;D.pos+=1;D.peek()===91?(D.pos+=1,t=I1("!["),Y.appendChild(t),
elV(D,t,R+1,!0)):Y.appendChild(I1("!"));R=!0;break;case 93:var M,W=!1,z;D.pos+=1;var I=D.pos;t=D.brackets;if(t===null)Y.appendChild(I1("]"));else if(t.active){R=t.image;var F=D.pos;D.peek()===40&&(D.pos++,GY(D)&&(X=V77(D))!==null&&GY(D)&&(u4E.test(D.subject.charAt(D.pos-1))&&(M=GfD(D)),1)&&GY(D)&&D.peek()===41?(D.pos+=1,W=!0):D.pos=F);if(!W){var G=D.pos,V=fTL(D);V>2?z=D.subject.slice(G,G+V):t.bracketAfter||(z=D.subject.slice(t.index,I));V===0&&(D.pos=F);z&&(z=D.refmap[LcM(z)])&&(X=z.destination,M=
z.title,W=!0)}if(W){I=new jP(R?"image":"link");I._destination=X;I._title=M||"";for(X=t.node._next;X;)M=X._next,X.unlink(),I.appendChild(X),X=M;Y.appendChild(I);FI_(D,t.previousDelimiter);D.brackets=D.brackets.previous;t.node.unlink();if(!R)for(t=D.brackets;t!==null;)t.image||(t.active=!1),t=t.previous}else D.brackets=D.brackets.previous,D.pos=I,Y.appendChild(I1("]"))}else Y.appendChild(I1("]")),D.brackets=D.brackets.previous;R=!0;break;case 60:(R=D.match(t77))?(R=R.slice(1,R.length-1),t=new jP("link"),
t._destination=xI4("mailto:"+R),t._title="",t.appendChild(I1(R)),Y.appendChild(t),R=!0):(R=D.match(stU))?(R=R.slice(1,R.length-1),t=new jP("link"),t._destination=xI4(R),t._title="",t.appendChild(I1(R)),Y.appendChild(t),R=!0):R=!1;R||(R=D.match(UI4),R===null?R=!1:(t=new jP("html_inline"),t._literal=R,Y.appendChild(t),R=!0));break;case 38:(R=D.match(ciD))?(Y.appendChild(I1(Ji4(R))),R=!0):R=!1;break;default:R=ApV(D,Y)}R||(D.pos+=1,Y.appendChild(I1(jt(Z))));return!0};
Fe.prototype.parseInlines=function(D){this.subject=D._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;rpL(this,D););D._string_content=null;FI_(this,null)};
Fe.prototype.parse=Fe.prototype.parseInlines;var wNE=[/./,/^<(?: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")],$W_=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],vPV=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,oPV=/^[#`~*+_=<>0-9-\|]|\|/,bBU=/[^ \t\f\v\r\n]/,ypE=/^[*+-]/,N1E=/^(\d{1,9})([.)])/,lTV=/^#{1,6}(?:[ \t]+|$)/,JpD=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,kfL=/^(?:`{3,}|~{3,})(?= *$)/,UWb=/^(?:=+|-+)[ \t]*$/,KI_=/\r\n|\n|\r/,qry=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,HCn=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,hl1={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(D,Y){for(D=Y._firstChild;D;){if(mqn(D)&&D._next){Y._listData.tight=!1;break}for(var R=D._firstChild;R;){if(mqn(R)&&(D._next||R._next)){Y._listData.tight=!1;break}R=R._next}D=D._next}},
canContain:function(D){return D==="item"},
acceptsLines:!1},block_quote:{continue:function(D){var Y=D.currentLine;if(D.indented||SP(Y,D.nextNonspace)!==62)return 1;Vm(D);fJ(D,1,!1);zK(SP(Y,D.offset))&&fJ(D,1,!0);return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},item:{continue:function(D,Y){if(D.blank){if(Y._firstChild==null)return 1;Vm(D)}else if(D.indent>=Y._listData.markerOffset+Y._listData.padding)fJ(D,Y._listData.markerOffset+Y._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(D){return D!=="item"&&!xqS(D)},
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(D,Y){var R=D.currentLine,Z=D.indent;if(Y._isFenced){if((Z=Z<=3&&R.charAt(D.nextNonspace)===Y._fenceChar&&R.slice(D.nextNonspace).match(kfL))&&Z[0].length>=Y._fenceLength)return D.finalize(Y,D.lineNumber),2;for(Y=Y._fenceOffset;Y>0&&zK(SP(R,D.offset));)fJ(D,1,!0),Y--}else if(Z>=4)fJ(D,4,!0);else if(D.blank)Vm(D);else return 1;return 0},
finalize:function(D,Y){if(Y._isFenced){var R=Y._string_content,Z=R.indexOf("\n");D=R.slice(0,Z);R=R.slice(Z+1);Y.info=H8z(D.trim());Y._literal=R}else Y._literal=Y._string_content.replace(/(\n *)+$/,"\n");Y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(D,Y){return!D.blank||Y._htmlBlockType!==6&&Y._htmlBlockType!==7?0:1},
finalize:function(D,Y){Y._literal=Y._string_content.replace(/(\n *)+$/,"");Y._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(D){return D.blank?1:0},
finalize:function(D,Y){for(var R,Z=!1;SP(Y._string_content,0)===91&&(R=nPD(D.inlineParser,Y._string_content,D.refmap));)Y._string_content=Y._string_content.slice(R),Z=!0;Z&&!bBU.test(Y._string_content)&&Y.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(D){return TK(D.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(D){return D=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(D,Y){if(!Y._rowIsDelimiter){D=Y._isHeader?"th":"td";for(var R=Y._parent._tableColumns,Z=Y._string_content,t=0,X="",M,W=Y._sourcepos[0][0];t<Z.length;){switch(Z[t]){case "|":M&&(M._string_content=X.trim(),X="",M=null,R--,R<=0&&(t=Z.length));break;default:if(!M){M=new jP(D,[[W,t],[W,t]]);var z=Y._parent._columnAlignment,I=Y._parent._tableColumns-R;z&&I<=z.length&&I>=0&&(M._alignment=z[I]);Y.appendChild(M)}X+=Z[t];M._sourcepos[1][1]=t}t++}M&&(M._string_content=X.trim());Y._string_content=
""}},
canContain:function(D){return D!=="row"},
acceptsLines:!1}},LIz=[function(D){if(D.indented||SP(D.currentLine,D.nextNonspace)!==62)return 0;Vm(D);fJ(D,1,!1);zK(SP(D.currentLine,D.offset))&&fJ(D,1,!0);et(D);D.addChild("block_quote",D.nextNonspace);return 1},
function(D){var Y;if(!D.indented&&(Y=D.currentLine.slice(D.nextNonspace).match(lTV))){Vm(D);fJ(D,Y[0].length,!1);et(D);var R=D.addChild("heading",D.nextNonspace);R.level=Y[0].trim().length;R._string_content=D.currentLine.slice(D.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");fJ(D,D.currentLine.length-D.offset);return 2}return 0},
function(D){var Y;if(!D.indented&&(Y=D.currentLine.slice(D.nextNonspace).match(JpD))){var R=Y[0].length;et(D);var Z=D.addChild("code_block",D.nextNonspace);Z._isFenced=!0;Z._fenceLength=R;Z._fenceChar=Y[0][0];Z._fenceOffset=D.indent;Vm(D);fJ(D,R,!1);return 2}return 0},
function(D,Y){if(!D.indented&&SP(D.currentLine,D.nextNonspace)===60){var R=D.currentLine.slice(D.nextNonspace),Z;for(Z=1;Z<=7;Z++)if(wNE[Z].test(R)&&(Z<7||Y.type!=="paragraph"))return et(D),D.addChild("html_block",D.offset)._htmlBlockType=Z,2}return 0},
function(D,Y){var R;if(!D.indented&&Y.type==="paragraph"&&(R=D.currentLine.slice(D.nextNonspace).match(UWb))){et(D);var Z=new jP("heading",Y.sourcepos);Z.level=R[0][0]==="="?1:2;Z._string_content=Y._string_content;ECU(Y,Z);Y.unlink();D.tip=Z;fJ(D,D.currentLine.length-D.offset,!1);return 2}return 0},
function(D){return!D.indented&&vPV.test(D.currentLine.slice(D.nextNonspace))?(et(D),D.addChild("thematic_break",D.nextNonspace),fJ(D,D.currentLine.length-D.offset,!1),2):0},
function(D,Y){var R,Z;if(!(Z=D.indented&&Y.type!=="list")){a:{var t=Y,X=D.currentLine.slice(D.nextNonspace);Z={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:D.indent};if(R=X.match(ypE))Z.type="bullet",Z.bulletChar=R[0][0];else{if(!(R=X.match(N1E))||t.type==="paragraph"&&R[1]!=="1"){R=null;break a}Z.type="ordered";Z.start=parseInt(R[1],10);Z.delimiter=R[2]}var M=SP(D.currentLine,D.nextNonspace+R[0].length);if(M!==-1&&M!==9&&M!==32||t.type==="paragraph"&&!D.currentLine.slice(D.nextNonspace+
R[0].length).match(bBU))R=null;else{Vm(D);fJ(D,R[0].length,!0);t=D.column;X=D.offset;do fJ(D,1,!0),M=SP(D.currentLine,D.offset);while(D.column-t<5&&zK(M));M=SP(D.currentLine,D.offset)===-1;var W=D.column-t;W>=5||W<1||M?(Z.padding=R[0].length+1,D.column=t,D.offset=X,zK(SP(D.currentLine,D.offset))&&fJ(D,1,!0)):Z.padding=R[0].length+W;R=Z}}Z=!R}if(Z)return 0;et(D);(Z=D.tip.type!=="list")||(Y=Y._listData,Z=!(Y.type===R.type&&Y.delimiter===R.delimiter&&Y.bulletChar===R.bulletChar));Z&&(Y=D.addChild("list",
D.nextNonspace),Y._listData=R);Y=D.addChild("item",D.nextNonspace);Y._listData=R;return 1},
function(D){var Y;return((Y=D.options.shouldParseIndentAsCodeBlock)!=null?Y:1)&&D.indented&&D.tip.type!=="paragraph"&&!D.blank?(fJ(D,4,!0),et(D),D.addChild("code_block",D.offset),2):0},
function(D,Y){var R=TK(D.currentLine),Z=TK(D.lookahead);if(R!==0&&Z<0&&Math.abs(R)==Math.abs(Z)&&!xqS(Y.type)){et(D);Y=D.addChild("table",D.nextNonspace);Y._tableRows=1;Y._tableColumns=Math.abs(R);R=D.lookahead;if(HCn.test(R)){Z=[];for(var t=0,X=!1,M=0,W=void 0;t<R.length;){var z=M>=3;switch(R[t]){case "-":M++;break;case "|":X&&(Z.push(W),W=void 0,M=0);X=!0;break;case ":":W||z||(W="left"),!W&&z&&(W="right"),W==="left"&&z&&(W="center")}t++}R=Z}else R=void 0;Y._columnAlignment=R;Y=D.addChild("row",
D.nextNonspace);Y._isHeader=!0;fJ(D,D.currentLine.length-D.offset,!1);Y._string_content=D.currentLine;return 1}return 0},
function(D,Y){if(Y.type=="table"&&TK(D.currentLine)!==0){et(D);var R=Y;Y=D.addChild("row",D.nextNonspace);TK(D.currentLine)<0?Y._rowIsDelimiter=!0:R._tableRows+=1;fJ(D,D.currentLine.length-D.offset,!1);Y._string_content=D.currentLine;return 2}return 0}],S5n=function(){var D={shouldParseIndentAsCodeBlock:!1};
D=D===void 0?{}:D;this.lastMatchedContainer=this.doc=P3U();this.refmap={};this.lastLineLength=0;this.inlineParser=new Fe(D);this.options=D;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=hl1;this.blockStarts=LIz},mWV=function(D){D.partiallyConsumedTab&&(D.offset+=1,D.tip._string_content+=" ".repeat(4-D.column%
4));
D.tip._string_content+=D.currentLine.slice(D.offset)+"\n"};
S5n.prototype.addChild=function(D,Y){for(;!this.blocks[this.tip.type].canContain(D);)this.finalize(this.tip,this.lineNumber-1);D=new jP(D,[[this.lineNumber,Y+1],[0,0]]);D._string_content="";this.tip.appendChild(D);return this.tip=D};
var et=function(D){if(!D.allClosed){for(;D.oldtip!==D.lastMatchedContainer;){var Y=D.oldtip._parent;D.finalize(D.oldtip,D.lineNumber-1);D.oldtip=Y}D.allClosed=!0}},fJ=function(D,Y,R){for(var Z=D.currentLine,t,X;Y>0&&(X=Z[D.offset]);)X==="\t"?(t=4-D.column%4,R?(D.partiallyConsumedTab=t>Y,t=t>Y?Y:t,D.column+=t,D.offset+=D.partiallyConsumedTab?0:1,Y-=t):(D.partiallyConsumedTab=!1,D.column+=t,D.offset+=1,--Y)):(D.partiallyConsumedTab=!1,D.offset+=1,D.column+=1,--Y)},Vm=function(D){D.offset=D.nextNonspace;
D.column=D.nextNonspaceColumn;D.partiallyConsumedTab=!1},qD7=function(D){for(var Y=D.currentLine,R=D.offset,Z=D.column,t;(t=Y.charAt(R))!=="";)if(t===" ")R++,Z++;
else if(t==="\t")R++,Z+=4-Z%4;else break;D.blank=t==="\n"||t==="\r"||t==="";D.nextNonspace=R;D.nextNonspaceColumn=Z;D.indent=D.nextNonspaceColumn-D.column;D.indented=D.indent>=4};
S5n.prototype.finalize=function(D,Y){var R=D._parent;D._open=!1;D.sourcepos[1]=[Y,this.lastLineLength];this.blocks[D.type].finalize(this,D);this.tip=R};
S5n.prototype.parse=function(D){this.tip=this.doc=P3U();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!D)return this.doc;this.options.time&&console.time("preparing input");var Y=D.split(KI_),R=Y.length;D.charCodeAt(D.length-1)===10&&--R;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(D=0;D<R;D++)a:{var Z=void 0,t=Y[D],X=Y[D+1],M=!0,W=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;t.indexOf("\x00")!==-1&&(t=t.replace(/\0/g,"\ufffd"));this.currentLine=t;for(this.lookahead=X;(Z=W._lastChild)&&Z._open;){W=Z;qD7(this);switch(this.blocks[W.type].continue(this,W)){case 0:break;case 1:M=!1;break;case 2:this.lastLineLength=t.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!M){W=W._parent;break}}this.allClosed=W===this.oldtip;this.lastMatchedContainer=
W;Z=W.type!=="paragraph"&&hl1[W.type].acceptsLines;X=this.blockStarts;for(M=X.length;!Z;){qD7(this);if(!this.indented&&!oPV.test(t.slice(this.nextNonspace))){Vm(this);break}for(var z=0;z<M;){var I=X[z](this,W);if(I===1){W=this.tip;break}else if(I===2){W=this.tip;Z=!0;break}else z++}if(z===M){Vm(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){et(this);this.blank&&W.lastChild&&(W.lastChild._lastLineBlank=!0);Z=W.type;X=this.blank&&!(Z==="block_quote"||Z==="code_block"&&W._isFenced||
Z==="item"&&!W._firstChild&&W.sourcepos[0][0]===this.lineNumber);for(M=W;M;)M._lastLineBlank=X,M=M._parent;this.blocks[Z].acceptsLines?(mWV(this),Z==="html_block"&&W._htmlBlockType>=1&&W._htmlBlockType<=5&&$W_[W._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(W,this.lineNumber)):this.offset<t.length&&!this.blank&&(this.addChild("paragraph",this.offset),Vm(this),mWV(this))}else mWV(this);this.lastLineLength=t.length}for(;this.tip;)this.finalize(this.tip,R);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");t=new pLV(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;R=t.next();)Y=R.node,D=Y.type,R.entering||D!=="paragraph"&&D!=="heading"&&D!=="th"&&D!="td"||this.inlineParser.parse(Y);this.options.time&&console.timeEnd("inline parsing");return this.doc};Qg$.prototype.render=function(D){D=new pLV(D);var Y;this.buffer="";for(this.lastOut="\n";Y=D.next();){var R=Y.node.type;if(this[R])this[R](Y.node,Y.entering)}return this.buffer};
Qg$.prototype.out=function(D){A2(this,D)};
var A2=function(D,Y){D.buffer+=Y;D.lastOut=Y};
Qg$.prototype.cr=function(){this.lastOut!=="\n"&&A2(this,"\n")};var HBL=/^javascript:|vbscript:|file:|data:/i,xWU=/^data:image\/(?:png|gif|jpeg|webp)/i,Pqb=function(D){return HBL.test(D)&&!xWU.test(D)};
IR.prototype=Object.create(Qg$.prototype);_.u=IR.prototype;_.u.text=function(D){this.out(D.literal)};
_.u.html_inline=function(D){this.options.safe?A2(this,"\x3c!-- raw HTML omitted --\x3e"):A2(this,D.literal)};
_.u.html_block=function(D){this.cr();this.options.safe?A2(this,"\x3c!-- raw HTML omitted --\x3e"):A2(this,D.literal);this.cr()};
_.u.softbreak=function(){A2(this,this.options.softbreak)};
_.u.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.u.link=function(D,Y){var R=this.attrs(D);Y?(this.options.safe&&Pqb(D.destination)||R.push(["href",TY(D.destination,!0)]),D.title&&R.push(["title",TY(D.title,!0)]),this.tag("a",R)):this.tag("/a")};
_.u.image=function(D,Y){Y?(this.disableTags===0&&(this.options.safe&&Pqb(D.destination)?A2(this,'<img src="" alt="'):A2(this,'<img src="'+TY(D.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(D.title&&A2(this,'" title="'+TY(D.title,!0)),A2(this,'" />')))};
_.u.emph=function(D,Y){this.tag(Y?"em":"/em")};
_.u.strong=function(D,Y){this.tag(Y?"strong":"/strong")};
_.u.paragraph=function(D,Y){var R=D.parent.parent;D=this.attrs(D);R!==null&&R.type==="list"&&R.listTight||(Y?(this.cr(),this.tag("p",D)):(this.tag("/p"),this.cr()))};
_.u.heading=function(D,Y){var R="h"+D.level;D=this.attrs(D);Y?(this.cr(),this.tag(R,D)):(this.tag("/"+R),this.cr())};
_.u.code=function(D){this.tag("code");this.out(D.literal);this.tag("/code")};
_.u.code_block=function(D){var Y=D.info?D.info.split(/\s+/):[],R=this.attrs(D);Y.length>0&&Y[0].length>0&&R.push(["class","language-"+TY(Y[0],!0)]);this.cr();this.tag("pre");this.tag("code",R);this.out(D.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.u.thematic_break=function(D){D=this.attrs(D);this.cr();this.tag("hr",D,!0);this.cr()};
_.u.block_quote=function(D,Y){D=this.attrs(D);Y?(this.cr(),this.tag("blockquote",D)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.u.list=function(D,Y){var R=D.listType==="bullet"?"ul":"ol",Z=this.attrs(D);Y?(D=D.listStart,D!==null&&D!==1&&Z.push(["start",D.toString()]),this.cr(),this.tag(R,Z)):(this.cr(),this.tag("/"+R));this.cr()};
_.u.item=function(D,Y){D=this.attrs(D);Y?this.tag("li",D):(this.tag("/li"),this.cr())};
_.u.custom_inline=function(D,Y){Y&&D.onEnter?A2(this,D.onEnter):!Y&&D.onExit&&A2(this,D.onExit)};
_.u.custom_block=function(D,Y){this.cr();Y&&D.onEnter?A2(this,D.onEnter):!Y&&D.onExit&&A2(this,D.onExit);this.cr()};
_.u.table=function(D,Y){D=this.attrs(D);Y?(this.cr(),this.tag("table",D)):(this.tag("/table"),this.cr())};
_.u.row=function(D,Y){D._rowIsDelimiter||(D=this.attrs(D),Y?this.tag("tr",D):this.tag("/tr"))};
_.u.td=function(D,Y){var R=this.attrs(D);D._alignment&&R.push(["align",D._alignment]);Y?this.tag("td",R):this.tag("/td")};
_.u.th=function(D,Y){var R=this.attrs(D);D._alignment&&R.push(["align",D._alignment]);Y?this.tag("th",R):this.tag("/th")};
_.u.out=function(D){A2(this,TY(D,!1))};
_.u.tag=function(D,Y,R){if(!(this.disableTags>0)){this.buffer+="<"+D;if(Y&&Y.length>0){D=0;for(var Z;(Z=Y[D])!==void 0;)this.buffer+=" "+Z[0]+'="'+Z[1]+'"',D++}R&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.u.attrs=function(D){var Y=[];this.options.sourcepos&&(D=D.sourcepos)&&Y.push(["data-sourcepos",String(D[0][0])+":"+String(D[0][1])+"-"+String(D[1][0])+":"+String(D[1][1])]);return Y};
IR.prototype.text=IR.prototype.text;IR.prototype.html_inline=IR.prototype.html_inline;IR.prototype.html_block=IR.prototype.html_block;IR.prototype.softbreak=IR.prototype.softbreak;IR.prototype.linebreak=IR.prototype.linebreak;IR.prototype.link=IR.prototype.link;IR.prototype.image=IR.prototype.image;IR.prototype.emph=IR.prototype.emph;IR.prototype.strong=IR.prototype.strong;IR.prototype.paragraph=IR.prototype.paragraph;IR.prototype.heading=IR.prototype.heading;IR.prototype.code=IR.prototype.code;
IR.prototype.code_block=IR.prototype.code_block;IR.prototype.thematic_break=IR.prototype.thematic_break;IR.prototype.block_quote=IR.prototype.block_quote;IR.prototype.list=IR.prototype.list;IR.prototype.item=IR.prototype.item;IR.prototype.custom_inline=IR.prototype.custom_inline;IR.prototype.custom_block=IR.prototype.custom_block;IR.prototype.table=IR.prototype.table;IR.prototype.row=IR.prototype.row;IR.prototype.td=IR.prototype.td;IR.prototype.th=IR.prototype.th;IR.prototype.out=IR.prototype.out;
IR.prototype.tag=IR.prototype.tag;IR.prototype.attrs=IR.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 QtE,B1E,AoM;(function(){function D(k,J){return k<J?-1:k>J?1:k>=J?0:NaN}
function Y(k){return function(J,m){return D(k(J),m)}}
function R(){for(var k=0,J=arguments.length,m={},DU;k<J;++k){if(!(DU=arguments[k]+"")||DU in m)throw Error("pe`"+DU);m[DU]=[]}return new Z(m)}
function Z(k){this._=k}
function t(k,J){return k.trim().split(/^|\s+/).map(function(m){var DU="",al=m.indexOf(".");al>=0&&(DU=m.slice(al+1),m=m.slice(0,al));if(m&&!J.hasOwnProperty(m))throw Error("qe`"+m);return{type:m,name:DU}})}
function X(k,J,m){for(var DU=0,al=k.length;DU<al;++DU)if(k[DU].name===J){k[DU]=YPK;k=k.slice(0,DU).concat(k.slice(DU+1));break}m!=null&&k.push({name:J,value:m});return k}
function M(k){var J=k,m=J.indexOf(":");m>=0&&(J=k.slice(0,m))!=="xmlns"&&(k=k.slice(m+1));return wY.hasOwnProperty(J)?{space:wY[J],local:k}:k}
function W(k){return function(){var J=this.ownerDocument,m=this.namespaceURI;return m==="http://www.w3.org/1999/xhtml"&&J.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?J.createElement(k):J.createElementNS(m,k)}}
function z(k){return function(){return this.ownerDocument.createElementNS(k.space,k.local)}}
function I(k){k=M(k);return(k.local?z:W)(k)}
function F(){}
function G(k){return k==null?F:function(){return this.querySelector(k)}}
function V(k){return Array(k.length)}
function e(k,J){this.ownerDocument=k.ownerDocument;this.namespaceURI=k.namespaceURI;this._next=null;this._parent=k;this.__data__=J}
function r(k){return function(){return k}}
function l(k,J,m,DU,al,Fi){for(var rr=0,l9,Rz=J.length,i9=Fi.length;rr<i9;++rr)(l9=J[rr])?(l9.__data__=Fi[rr],DU[rr]=l9):m[rr]=new e(k,Fi[rr]);for(;rr<Rz;++rr)if(l9=J[rr])al[rr]=l9}
function U(k,J,m,DU,al,Fi,rr){var l9,Rz,i9={},Z_=J.length,jD=Fi.length,gz=Array(Z_),$K;for(l9=0;l9<Z_;++l9)if(Rz=J[l9])gz[l9]=$K="$"+rr.call(Rz,Rz.__data__,l9,J),$K in i9?al[l9]=Rz:i9[$K]=Rz;for(l9=0;l9<jD;++l9)$K="$"+rr.call(k,Fi[l9],l9,Fi),(Rz=i9[$K])?(DU[l9]=Rz,Rz.__data__=Fi[l9],i9[$K]=null):m[l9]=new e(k,Fi[l9]);for(l9=0;l9<Z_;++l9)(Rz=J[l9])&&i9[gz[l9]]===Rz&&(al[l9]=Rz)}
function K(k,J){return k<J?-1:k>J?1:k>=J?0:NaN}
function H(k){return function(){this.removeAttribute(k)}}
function c(k){return function(){this.removeAttributeNS(k.space,k.local)}}
function Q(k,J){return function(){this.setAttribute(k,J)}}
function E(k,J){return function(){this.setAttributeNS(k.space,k.local,J)}}
function B(k,J){return function(){var m=J.apply(this,arguments);m==null?this.removeAttribute(k):this.setAttribute(k,m)}}
function O(k,J){return function(){var m=J.apply(this,arguments);m==null?this.removeAttributeNS(k.space,k.local):this.setAttributeNS(k.space,k.local,m)}}
function Wo(k){return function(){this.style.removeProperty(k)}}
function Sb(k,J,m){return function(){this.style.setProperty(k,J,m)}}
function VU(k,J,m){return function(){var DU=J.apply(this,arguments);DU==null?this.style.removeProperty(k):this.style.setProperty(k,DU,m)}}
function AS(k,J){return k.style.getPropertyValue(J)||(k.ownerDocument&&k.ownerDocument.defaultView||k.document&&k||k.defaultView).getComputedStyle(k,null).getPropertyValue(J)}
function nM(k){return function(){delete this[k]}}
function Ho(k,J){return function(){this[k]=J}}
function KM(k,J){return function(){var m=J.apply(this,arguments);m==null?delete this[k]:this[k]=m}}
function Xb(){this.textContent=""}
function kE(k){return function(){this.textContent=k}}
function SD(k){return function(){var J=k.apply(this,arguments);this.textContent=J==null?"":J}}
function co(){this.innerHTML=""}
function GE(k){return function(){this.innerHTML=k}}
function TE(k){return function(){var J=k.apply(this,arguments);this.innerHTML=J==null?"":J}}
function yV(){return null}
function vu(){var k=this.parentNode;k&&k.removeChild(this)}
function dz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function sy(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function D_(k,J,m){k=fL(k,J,m);return function(DU){var al=DU.relatedTarget;al&&(al===this||al.compareDocumentPosition(this)&8)||k.call(this,DU)}}
function fL(k,J,m){return function(){k.call(this,this.__data__,J,m)}}
function zT(k){return k.trim().split(/^|\s+/).map(function(J){var m="",DU=J.indexOf(".");DU>=0&&(m=J.slice(DU+1),J=J.slice(0,DU));return{type:J,name:m}})}
function eD(k){return function(){var J=this.__on;if(J){for(var m=0,DU=-1,al=J.length,Fi;m<al;++m)(Fi=J[m],k.type&&Fi.type!==k.type||Fi.name!==k.name)?J[++DU]=Fi:this.removeEventListener(Fi.type,Fi.listener,Fi.capture);++DU?J.length=DU:delete this.__on}}}
function YK(k,J,m){var DU=oWE.hasOwnProperty(k.type)?D_:fL;return function(al,Fi,rr){al=this.__on;var l9;Fi=DU(J,Fi,rr);if(al){rr=0;for(var Rz=al.length;rr<Rz;++rr)if((l9=al[rr]).type===k.type&&l9.name===k.name){this.removeEventListener(l9.type,l9.listener,l9.capture);this.addEventListener(l9.type,l9.listener=Fi,l9.capture=m);l9.value=J;return}}this.addEventListener(k.type,Fi,m);l9={type:k.type,name:k.name,value:J,listener:Fi,capture:m};al?al.push(l9):this.__on=[l9]}}
function RK(k,J,m){var DU=k.ownerDocument&&k.ownerDocument.defaultView||k.document&&k||k.defaultView,al=DU.CustomEvent;typeof al==="function"?al=new al(J,m):(al=DU.document.createEvent("Event"),m?(al.initEvent(J,m.bubbles,m.cancelable),al.detail=m.detail):al.initEvent(J,!1,!1));k.dispatchEvent(al)}
function Dp(k,J){return function(){return RK(this,k,J)}}
function az(k,J){return function(){return RK(this,k,J.apply(this,arguments))}}
function EL(k,J){this._groups=k;this._parents=J}
function FE(){return new EL([[document.documentElement]],RmI)}
function v4(){this._="@"+(++ZJk).toString(36)}
function oz(k,J,m){k.prototype=J.prototype=m;m.constructor=k}
function e0(k,J){k=Object.create(k.prototype);for(var m in J)k[m]=J[m];return k}
function Cj(){}
function j0(k){var J;k=(k+"").trim().toLowerCase();return(J=ttz.exec(k))?(J=parseInt(J[1],16),new QI(J>>8&15|J>>4&240,J>>4&15|J&240,(J&15)<<4|J&15,1)):(J=s1b.exec(k))?oI(parseInt(J[1],16)):(J=X6K.exec(k))?new QI(J[1],J[2],J[3],1):(J=ue9.exec(k))?new QI(J[1]*255/100,J[2]*255/100,J[3]*255/100,1):(J=aSK.exec(k))?eY(J[1],J[2],J[3],J[4]):(J=Mtp.exec(k))?eY(J[1]*255/100,J[2]*255/100,J[3]*255/100,J[4]):(J=C_p.exec(k))?ZO(J[1],J[2]/100,J[3]/100,1):(J=Waz.exec(k))?ZO(J[1],J[2]/100,J[3]/100,J[4]):bND.hasOwnProperty(k)?
oI(bND[k]):k==="transparent"?new QI(NaN,NaN,NaN,0):null}
function oI(k){return new QI(k>>16&255,k>>8&255,k&255,1)}
function eY(k,J,m,DU){DU<=0&&(k=J=m=NaN);return new QI(k,J,m,DU)}
function H4(k){k instanceof Cj||(k=j0(k));if(!k)return new QI;k=k.rgb();return new QI(k.r,k.g,k.b,k.opacity)}
function mh(k,J,m,DU){return arguments.length===1?H4(k):new QI(k,J,m,DU==null?1:DU)}
function QI(k,J,m,DU){this.r=+k;this.g=+J;this.b=+m;this.opacity=+DU}
function aJ(k){k=Math.max(0,Math.min(255,Math.round(k)||0));return(k<16?"0":"")+k.toString(16)}
function ZO(k,J,m,DU){DU<=0?k=J=m=NaN:m<=0||m>=1?k=J=NaN:J<=0&&(k=NaN);return new vD(k,J,m,DU)}
function TI(k){if(k instanceof vD)return new vD(k.h,k.s,k.l,k.opacity);k instanceof Cj||(k=j0(k));if(!k)return new vD;if(k instanceof vD)return k;k=k.rgb();var J=k.r/255,m=k.g/255,DU=k.b/255,al=Math.min(J,m,DU),Fi=Math.max(J,m,DU),rr=NaN,l9=Fi-al,Rz=(Fi+al)/2;l9?(rr=J===Fi?(m-DU)/l9+(m<DU)*6:m===Fi?(DU-J)/l9+2:(J-m)/l9+4,l9/=Rz<.5?Fi+al:2-Fi-al,rr*=60):l9=Rz>0&&Rz<1?0:rr;return new vD(rr,l9,Rz,k.opacity)}
function E1(k,J,m,DU){return arguments.length===1?TI(k):new vD(k,J,m,DU==null?1:DU)}
function vD(k,J,m,DU){this.h=+k;this.s=+J;this.l=+m;this.opacity=+DU}
function ch(k,J,m){return(k<60?J+(m-J)*k/60:k<180?m:k<240?J+(m-J)*(240-k)/60:J)*255}
function U9(k){if(k instanceof ol)return new ol(k.l,k.a,k.b,k.opacity);if(k instanceof nL){if(isNaN(k.h))return new ol(k.l,0,0,k.opacity);var J=k.h*yGz;return new ol(k.l,Math.cos(J)*k.c,Math.sin(J)*k.c,k.opacity)}k instanceof QI||(k=H4(k));var m=S0(k.r),DU=S0(k.g),al=S0(k.b);J=hS(.2225045*m+.7168786*DU+.0606169*al);if(m===DU&&DU===al)var Fi=m=J;else Fi=hS((.4360747*m+.3850649*DU+.1430804*al)/.96422),m=hS((.0139322*m+.0971045*DU+.7141733*al)/.82521);return new ol(116*J-16,500*(Fi-J),200*(J-m),k.opacity)}
function ol(k,J,m,DU){this.l=+k;this.a=+J;this.b=+m;this.opacity=+DU}
function hS(k){return k>zmb?Math.pow(k,1/3):k/NmL+lYb}
function QU(k){return k>dJ?k*k*k:NmL*(k-lYb)}
function Iz(k){return 255*(k<=.0031308?12.92*k:1.055*Math.pow(k,1/2.4)-.055)}
function S0(k){return(k/=255)<=.04045?k/12.92:Math.pow((k+.055)/1.055,2.4)}
function yB(k){if(k instanceof nL)return new nL(k.h,k.c,k.l,k.opacity);k instanceof ol||(k=U9(k));if(k.a===0&&k.b===0)return new nL(NaN,0,k.l,k.opacity);var J=Math.atan2(k.b,k.a)*JGU;return new nL(J<0?J+360:J,Math.sqrt(k.a*k.a+k.b*k.b),k.l,k.opacity)}
function wb(k,J,m,DU){return arguments.length===1?yB(k):new nL(k,J,m,DU==null?1:DU)}
function nL(k,J,m,DU){this.h=+k;this.c=+J;this.l=+m;this.opacity=+DU}
function A1(k,J,m,DU){if(arguments.length===1){var al=k;if(al instanceof kK)al=new kK(al.h,al.s,al.l,al.opacity);else{al instanceof QI||(al=H4(al));var Fi=al.g/255,rr=al.b/255,l9=(kJU*rr+al.r/255*-1.7884503806-3.5172982438*Fi)/(kJU+-1.7884503806-3.5172982438);rr-=l9;var Rz=(1.97294*(Fi-l9)- -.29227*rr)/-.90649;rr=(Fi=Math.sqrt(Rz*Rz+rr*rr)/(1.97294*l9*(1-l9)))?Math.atan2(Rz,rr)*JGU-120:NaN;al=new kK(rr<0?rr+360:rr,Fi,l9,al.opacity)}}else al=new kK(k,J,m,DU==null?1:DU);return al}
function kK(k,J,m,DU){this.h=+k;this.s=+J;this.l=+m;this.opacity=+DU}
function IJ(k,J,m,DU,al){var Fi=k*k,rr=Fi*k;return((1-3*k+3*Fi-rr)*J+(4-6*Fi+3*rr)*m+(1+3*k+3*Fi-3*rr)*DU+rr*al)/6}
function Fb(k){return function(){return k}}
function AZ(k,J){return function(m){return k+m*J}}
function tT(k,J,m){return k=Math.pow(k,m),J=Math.pow(J,m)-k,m=1/m,function(DU){return Math.pow(k+DU*J,m)}}
function hf(k,J){var m=J-k;return m?AZ(k,m>180||m<-180?m-360*Math.round(m/360):m):Fb(isNaN(k)?J:k)}
function lM(k){return(k=+k)===1?KI:function(J,m){return m-J?tT(J,m,k):Fb(isNaN(J)?m:J)}}
function KI(k,J){var m=J-k;return m?AZ(k,m):Fb(isNaN(k)?J:k)}
function il(k){return function(J){var m=J.length,DU=Array(m),al=Array(m),Fi=Array(m),rr;for(rr=0;rr<m;++rr){var l9=mh(J[rr]);DU[rr]=l9.r||0;al[rr]=l9.g||0;Fi[rr]=l9.b||0}DU=k(DU);al=k(al);Fi=k(Fi);l9.opacity=1;return function(Rz){l9.r=DU(Rz);l9.g=al(Rz);l9.b=Fi(Rz);return l9+""}}}
function aI(k,J){return k=+k,J-=k,function(m){return k+J*m}}
function IU(k){return function(){return k}}
function Bc(k){return function(J){return k(J)+""}}
function pM(k,J){var m=dx$.lastIndex=icr.lastIndex=0,DU,al,Fi,rr=-1,l9=[],Rz=[];k+="";for(J+="";(DU=dx$.exec(k))&&(al=icr.exec(J));)(Fi=al.index)>m&&(Fi=J.slice(m,Fi),l9[rr]?l9[rr]+=Fi:l9[++rr]=Fi),(DU=DU[0])===(al=al[0])?l9[rr]?l9[rr]+=al:l9[++rr]=al:(l9[++rr]=null,Rz.push({i:rr,x:aI(DU,al)})),m=icr.lastIndex;m<J.length&&(Fi=J.slice(m),l9[rr]?l9[rr]+=Fi:l9[++rr]=Fi);return l9.length<2?Rz[0]?Bc(Rz[0].x):IU(J):(J=Rz.length,function(i9){for(var Z_=0,jD;Z_<J;++Z_)l9[(jD=Rz[Z_]).i]=jD.x(i9);return l9.join("")})}
function GT(k,J,m,DU,al,Fi){var rr,l9,Rz;if(rr=Math.sqrt(k*k+J*J))k/=rr,J/=rr;if(Rz=k*m+J*DU)m-=k*Rz,DU-=J*Rz;if(l9=Math.sqrt(m*m+DU*DU))m/=l9,DU/=l9,Rz/=l9;k*DU<J*m&&(k=-k,J=-J,Rz=-Rz,rr=-rr);return{translateX:al,translateY:Fi,rotate:Math.atan2(J,k)*U84,skewX:Math.atan(Rz)*U84,scaleX:rr,scaleY:l9}}
function lk(k,J,m,DU){function al(i9){return i9.length?i9.pop()+" ":""}
function Fi(i9,Z_,jD,gz,$K,VB){i9!==jD||Z_!==gz?($K=$K.push("translate(",null,J,null,m),VB.push({i:$K-4,x:aI(i9,jD)},{i:$K-2,x:aI(Z_,gz)})):(jD||gz)&&$K.push("translate("+jD+J+gz+m)}
function rr(i9,Z_,jD,gz){i9!==Z_?(i9-Z_>180?Z_+=360:Z_-i9>180&&(i9+=360),gz.push({i:jD.push(al(jD)+"rotate(",null,DU)-2,x:aI(i9,Z_)})):Z_&&jD.push(al(jD)+"rotate("+Z_+DU)}
function l9(i9,Z_,jD,gz){i9!==Z_?gz.push({i:jD.push(al(jD)+"skewX(",null,DU)-2,x:aI(i9,Z_)}):Z_&&jD.push(al(jD)+"skewX("+Z_+DU)}
function Rz(i9,Z_,jD,gz,$K,VB){i9!==jD||Z_!==gz?($K=$K.push(al($K)+"scale(",null,",",null,")"),VB.push({i:$K-4,x:aI(i9,jD)},{i:$K-2,x:aI(Z_,gz)})):jD===1&&gz===1||$K.push(al($K)+"scale("+jD+","+gz+")")}
return function(i9,Z_){var jD=[],gz=[];i9=k(i9);Z_=k(Z_);Fi(i9.translateX,i9.translateY,Z_.translateX,Z_.translateY,jD,gz);rr(i9.rotate,Z_.rotate,jD,gz);l9(i9.skewX,Z_.skewX,jD,gz);Rz(i9.scaleX,i9.scaleY,Z_.scaleX,Z_.scaleY,jD,gz);i9=Z_=null;return function($K){for(var VB=-1,Lj=gz.length,AF;++VB<Lj;)jD[(AF=gz[VB]).i]=AF.x($K);return jD.join("")}}}
function uk(k){return function(J,m){var DU=k((J=E1(J)).h,(m=E1(m)).h),al=KI(J.s,m.s),Fi=KI(J.l,m.l),rr=KI(J.opacity,m.opacity);return function(l9){J.h=DU(l9);J.s=al(l9);J.l=Fi(l9);J.opacity=rr(l9);return J+""}}}
function M1(k){return function(J,m){var DU=k((J=wb(J)).h,(m=wb(m)).h),al=KI(J.c,m.c),Fi=KI(J.l,m.l),rr=KI(J.opacity,m.opacity);return function(l9){J.h=DU(l9);J.c=al(l9);J.l=Fi(l9);J.opacity=rr(l9);return J+""}}}
function Q7(k){return function DU(m){function al(Fi,rr){var l9=k((Fi=A1(Fi)).h,(rr=A1(rr)).h),Rz=KI(Fi.s,rr.s),i9=KI(Fi.l,rr.l),Z_=KI(Fi.opacity,rr.opacity);return function(jD){Fi.h=l9(jD);Fi.s=Rz(jD);Fi.l=i9(Math.pow(jD,m));Fi.opacity=Z_(jD);return Fi+""}}
m=+m;al.gamma=DU;return al}(1)}
function kh(){return om||(KO4(qI),om=T8.now()+IHS)}
function qI(){om=0}
function fH(){this._call=this._time=this._next=null}
function CT(k,J,m){var DU=new fH;DU.restart(k,J,m);return DU}
function Wn(){om=(Fzr=T8.now())+IHS;iZ=jS=0;try{kh();++iZ;for(var k=GZ9,J;k;)(J=om-k._time)>=0&&k._call.call(null,J),k=k._next;--iZ}finally{iZ=0;k=GZ9;for(var m=Infinity;k;)if(k._call){m>k._time&&(m=k._time);var DU=k;k=k._next}else J=k._next,k._next=null,k=DU?DU._next=J:GZ9=J;IM=DU;ze(m);om=0}}
function Kci(){var k=T8.now(),J=k-Fzr;J>1E3&&(IHS-=J,Fzr=k)}
function ze(k){iZ||(jS&&(jS=clearTimeout(jS)),k-om>24?(k<Infinity&&(jS=setTimeout(Wn,k-T8.now()-IHS)),Fm&&(Fm=clearInterval(Fm))):(Fm||(Fzr=T8.now(),Fm=setInterval(Kci,1E3)),iZ=1,KO4(Wn)))}
function h4V(k,J,m){var DU=new fH;J=J==null?0:+J;DU.restart(function(al){DU.stop();k(al+J)},J,m);
return DU}
function OcU(k,J,m,DU,al,Fi){var rr=k.__transition;if(!rr)k.__transition={};else if(m in rr)return;SPK(k,m,{name:J,index:DU,group:al,on:TpT,tween:j19,time:Fi.time,delay:Fi.delay,duration:Fi.duration,ease:Fi.ease,timer:null,state:0})}
function c$M(k,J){k=TR(k,J);if(k.state>0)throw Error("re");return k}
function b8(k,J){k=TR(k,J);if(k.state>2)throw Error("se");return k}
function TR(k,J){k=k.__transition;if(!k||!(k=k[J]))throw Error("te");return k}
function SPK(k,J,m){function DU(Rz){var i9,Z_;if(m.state!==1)return Fi();for(gz in rr){var jD=rr[gz];if(jD.name===m.name){if(jD.state===3)return h4V(DU);jD.state===4?(jD.state=6,jD.timer.stop(),jD.on.call("interrupt",k,k.__data__,jD.index,jD.group),delete rr[gz]):+gz<J&&(jD.state=6,jD.timer.stop(),delete rr[gz])}}h4V(function(){m.state===3&&(m.state=4,m.timer.restart(al,m.delay,m.time),al(Rz))});
m.state=2;m.on.call("start",k,k.__data__,m.index,m.group);if(m.state===2){m.state=3;l9=Array(Z_=m.tween.length);var gz=0;for(i9=-1;gz<Z_;++gz)if(jD=m.tween[gz].value.call(k,k.__data__,m.index,m.group))l9[++i9]=jD;l9.length=i9+1}}
function al(Rz){Rz=Rz<m.duration?m.ease.call(null,Rz/m.duration):(m.timer.restart(Fi),m.state=5,1);for(var i9=-1,Z_=l9.length;++i9<Z_;)l9[i9].call(null,Rz);m.state===5&&(m.on.call("end",k,k.__data__,m.index,m.group),Fi())}
function Fi(){m.state=6;m.timer.stop();delete rr[J];for(var Rz in rr)return;delete k.__transition}
var rr=k.__transition,l9;rr[J]=m;m.timer=CT(function(Rz){m.state=1;m.timer.restart(DU,m.delay,m.time);m.delay<=Rz&&DU(Rz-m.delay)},0,m.time)}
function ISK(k,J){var m,DU;return function(){var al=b8(this,k),Fi=al.tween;if(Fi!==m){DU=m=Fi;Fi=0;for(var rr=DU.length;Fi<rr;++Fi)if(DU[Fi].name===J){DU=DU.slice();DU.splice(Fi,1);break}}al.tween=DU}}
function FaK(k,J,m){var DU,al;if(typeof m!=="function")throw Error();return function(){var Fi=b8(this,k),rr=Fi.tween;if(rr!==DU){al=(DU=rr).slice();rr={name:J,value:m};for(var l9=0,Rz=al.length;l9<Rz;++l9)if(al[l9].name===J){al[l9]=rr;break}l9===Rz&&al.push(rr)}Fi.tween=al}}
function DQj(k,J,m){var DU=k._id;k.each(function(){var al=b8(this,DU);(al.value||(al.value={}))[J]=m.apply(this,arguments)});
return function(al){return TR(al,DU).value[J]}}
function LOD(k,J){var m;return(typeof J==="number"?aI:J instanceof j0?m8L:(m=j0(J))?(J=m,m8L):pM)(k,J)}
function GYp(k){return function(){this.removeAttribute(k)}}
function Vtk(k){return function(){this.removeAttributeNS(k.space,k.local)}}
function fSp(k,J,m){var DU,al;return function(){var Fi=this.getAttribute(k);return Fi===m?null:Fi===DU?al:al=J(DU=Fi,m)}}
function emh(k,J,m){var DU,al;return function(){var Fi=this.getAttributeNS(k.space,k.local);return Fi===m?null:Fi===DU?al:al=J(DU=Fi,m)}}
function A2b(k,J,m){var DU,al,Fi;return function(){var rr=m(this);if(rr==null)return void this.removeAttribute(k);var l9=this.getAttribute(k);return l9===rr?null:l9===DU&&rr===al?Fi:Fi=J(DU=l9,al=rr)}}
function nlp(k,J,m){var DU,al,Fi;return function(){var rr=m(this);if(rr==null)return void this.removeAttributeNS(k.space,k.local);var l9=this.getAttributeNS(k.space,k.local);return l9===rr?null:l9===DU&&rr===al?Fi:Fi=J(DU=l9,al=rr)}}
function r2k(k,J){function m(){var DU=this,al=J.apply(DU,arguments);return al&&function(Fi){DU.setAttributeNS(k.space,k.local,al(Fi))}}
m._value=J;return m}
function w6t(k,J){function m(){var DU=this,al=J.apply(DU,arguments);return al&&function(Fi){DU.setAttribute(k,al(Fi))}}
m._value=J;return m}
function $KK(k,J){return function(){c$M(this,k).delay=+J.apply(this,arguments)}}
function vlb(k,J){return J=+J,function(){c$M(this,k).delay=J}}
function olz(k,J){return function(){b8(this,k).duration=+J.apply(this,arguments)}}
function bJI(k,J){return J=+J,function(){b8(this,k).duration=J}}
function y2T(k,J){if(typeof J!=="function")throw Error();return function(){b8(this,k).ease=J}}
function NpI(k){return(k+"").trim().split(/^|\s+/).every(function(J){var m=J.indexOf(".");m>=0&&(J=J.slice(0,m));return!J||J==="start"})}
function lS9(k,J,m){var DU,al,Fi=NpI(J)?c$M:b8;return function(){var rr=Fi(this,k),l9=rr.on;if(l9!==DU)(al=(DU=l9).copy()).on(J,m);rr.on=al}}
function J2z(k){return function(){var J=this.parentNode,m;for(m in this.__transition)if(+m!==k)return;J&&J.removeChild(this)}}
function kYI(k,J){var m,DU,al;return function(){var Fi=AS(this,k),rr=(this.style.removeProperty(k),AS(this,k));return Fi===rr?null:Fi===m&&rr===DU?al:al=J(m=Fi,DU=rr)}}
function UKk(k){return function(){this.style.removeProperty(k)}}
function KaK(k,J,m){var DU,al;return function(){var Fi=AS(this,k);return Fi===m?null:Fi===DU?al:al=J(DU=Fi,m)}}
function hmh(k,J,m){var DU,al,Fi;return function(){var rr=AS(this,k),l9=m(this);l9==null&&(l9=(this.style.removeProperty(k),AS(this,k)));return rr===l9?null:rr===DU&&l9===al?Fi:Fi=J(DU=rr,al=l9)}}
function Lak(k,J,m){function DU(){var al=this,Fi=J.apply(al,arguments);return Fi&&function(rr){al.style.setProperty(k,Fi(rr),m)}}
DU._value=J;return DU}
function mKK(k){return function(){this.textContent=k}}
function qPk(k){return function(){var J=k(this);this.textContent=J==null?"":J}}
function NQ(k,J,m,DU){this._groups=k;this._parents=J;this._name=m;this._id=DU}
function YcU(k){return{type:k}}
function RuM(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function V$U(){}
function qH_(k,J){var m=new V$U;if(k instanceof V$U)k.each(function(rr,l9){m.set(l9,rr)});
else if(Array.isArray(k)){var DU=-1,al=k.length,Fi;if(J==null)for(;++DU<al;)m.set(DU,k[DU]);else for(;++DU<al;)m.set(J(Fi=k[DU],DU,k),Fi)}else if(k)for(DU in k)m.set(DU,k[DU]);return m}
function fHU(){}
function HN4(k){return function(J){for(var m={},DU=0;DU<k.length;DU++)m[k[DU]]=J[DU]||"";return m}}
function HJu(k,J){var m=HN4(k);return function(DU,al){return J(m(DU),al,k)}}
function xKp(k){var J=Object.create(null),m=[];k.forEach(function(DU){for(var al in DU)al in J||m.push(J[al]=al)});
return m}
function x8V(k){function J(rr,l9){function Rz(){if(VB)return ZOU;if(Lj)return Lj=!1,PsY;var Hm,K4=jD,Ch;if(rr.charCodeAt(K4)===34){for(;jD++<Z_&&rr.charCodeAt(jD)!==34||rr.charCodeAt(++jD)===34;);(Hm=jD)>=Z_?VB=!0:(Ch=rr.charCodeAt(jD++))===10?Lj=!0:Ch===13&&(Lj=!0,rr.charCodeAt(jD)===10&&++jD);return rr.slice(K4+1,Hm-1).replace(/""/g,'"')}for(;jD<Z_;){if((Ch=rr.charCodeAt(Hm=jD++))===10)Lj=!0;else if(Ch===13)Lj=!0,rr.charCodeAt(jD)===10&&++jD;else if(Ch!==Fi)continue;return rr.slice(K4,Hm)}return VB=
!0,rr.slice(K4,Z_)}
var i9=[],Z_=rr.length,jD=0,gz=0,$K,VB=Z_<=0,Lj=!1;rr.charCodeAt(Z_-1)===10&&--Z_;for(rr.charCodeAt(Z_-1)===13&&--Z_;($K=Rz())!==ZOU;){for(var AF=[];$K!==PsY&&$K!==ZOU;)AF.push($K),$K=Rz();l9&&(AF=l9(AF,gz++))==null||i9.push(AF)}return i9}
function m(rr){return rr.map(DU).join(k)}
function DU(rr){return rr==null?"":al.test(rr)?'"'+rr.replace(/"/g,'""')+'"':rr}
var al=new RegExp('["'+k+"\n\r]"),Fi=k.charCodeAt(0);return{parse:function(rr,l9){var Rz,i9;rr=J(rr,function(Z_,jD){if(Rz)return Rz(Z_,jD-1);i9=Z_;Rz=l9?HJu(Z_,l9):HN4(Z_)});
rr.columns=i9||[];return rr},
parseRows:J,format:function(rr,l9){l9==null&&(l9=xKp(rr));return[l9.map(DU).join(k)].concat(rr.map(function(Rz){return l9.map(function(i9){return DU(Rz[i9])}).join(k)})).join("\n")},
formatRows:function(rr){return rr.map(m).join("\n")}}}
function P_9(k){if(!k.ok)throw Error("ue`"+k.status+"`"+k.statusText);return k.text()}
function QiE(k){return function(J,m,DU){arguments.length===2&&typeof m==="function"&&(DU=m,m=void 0);return fetch(J,m).then(P_9).then(function(al){return k(al,DU)})}}
function BmV(k,J,m,DU){if(isNaN(J)||isNaN(m))return k;var al,Fi=k._root;DU={data:DU};var rr=k._x0,l9=k._y0,Rz=k._x1,i9=k._y1,Z_,jD,gz,$K,VB;if(!Fi)return k._root=DU,k;for(;Fi.length;)if((gz=J>=(Z_=(rr+Rz)/2))?rr=Z_:Rz=Z_,($K=m>=(jD=(l9+i9)/2))?l9=jD:i9=jD,al=Fi,!(Fi=Fi[VB=$K<<1|gz]))return al[VB]=DU,k;var Lj=+k._x.call(null,Fi.data);var AF=+k._y.call(null,Fi.data);if(J===Lj&&m===AF)return DU.next=Fi,al?al[VB]=DU:k._root=DU,k;do al=al?al[VB]=Array(4):k._root=Array(4),(gz=J>=(Z_=(rr+Rz)/2))?rr=Z_:Rz=
Z_,($K=m>=(jD=(l9+i9)/2))?l9=jD:i9=jD;while((VB=$K<<1|gz)===(gz=(AF>=jD)<<1|Lj>=Z_));return al[gz]=Fi,al[VB]=DU,k}
function yT(k,J,m,DU,al){this.node=k;this.x0=J;this.y0=m;this.x1=DU;this.y1=al}
function Q1z(k){return k[0]}
function Bpt(k){return k[1]}
function tnr(k,J,m,DU,al,Fi){this._x=k;this._y=J;this._x0=m;this._y0=DU;this._x1=al;this._y1=Fi;this._root=void 0}
function pkb(k){for(var J={data:k.data},m=J;k=k.next;)m=m.next={data:k.data};return J}
function erU(k,J){if((J=(k=J?k.toExponential(J-1):k.toExponential()).indexOf("e"))<0)return null;var m=k.slice(0,J);return[m.length>1?m[0]+m.slice(2):m,+k.slice(J+1)]}
function p6K(k){return k=erU(Math.abs(k)),k?k[1]:NaN}
function El9(k,J){return function(m,DU){for(var al=m.length,Fi=[],rr=0,l9=k[0],Rz=0;al>0&&l9>0;){Rz+l9+1>DU&&(l9=Math.max(1,DU-Rz));Fi.push(m.substring(al-=l9,al+l9));if((Rz+=l9+1)>DU)break;l9=k[rr=(rr+1)%k.length]}return Fi.reverse().join(J)}}
function glE(k){return function(J){return J.replace(/[0-9]/g,function(m){return k[+m]})}}
function s$n(k){return new XMS(k)}
function XMS(k){if(!(J=dKT.exec(k)))throw Error("ve`"+k);var J;this.fill=J[1]||" ";this.align=J[2]||">";this.sign=J[3]||"-";this.symbol=J[4]||"";this.zero=!!J[5];this.width=J[6]&&+J[6];this.comma=!!J[7];this.precision=J[8]&&+J[8].slice(1);this.trim=!!J[9];this.type=J[10]||""}
function EW4(k,J){J=erU(k,J);if(!J)return k+"";k=J[0];J=J[1];return J<0?"0."+Array(-J).join("0")+k:k.length>J+1?k.slice(0,J+1)+"."+k.slice(J+1):k+Array(J-k.length+2).join("0")}
function gWL(k){return k}
function iJ9(k){function J(l9){function Rz(PZ){var cg=Ch,qk=HK,FB,XB;if(K4==="c")qk=ht(PZ)+qk,PZ="";else{PZ=+PZ;var bk=PZ<0;PZ=ht(Math.abs(PZ),AF);if(Hm){var U3=PZ.length,by=1,xN=-1;a:for(;by<U3;++by)switch(PZ[by]){case ".":xN=FB=by;break;case "0":xN===0&&(xN=by);FB=by;break;default:if(!+PZ[by])break a;xN>0&&(xN=0)}PZ=xN>0?PZ.slice(0,xN)+PZ.slice(FB+1):PZ}bk&&+PZ===0&&(bk=!1);cg=(bk?jD==="("?jD:"-":jD==="-"||jD==="("?"":jD)+cg;qk=(K4==="s"?d81[8+iNU/3]:"")+qk+(bk&&jD==="("?")":"");if(T_)for(bk=-1,
FB=PZ.length;++bk<FB;)if(XB=PZ.charCodeAt(bk),48>XB||XB>57){qk=(XB===46?al+PZ.slice(bk+1):PZ.slice(bk))+qk;PZ=PZ.slice(0,bk);break}}Lj&&!$K&&(PZ=m(PZ,Infinity));XB=cg.length+PZ.length+qk.length;bk=XB<VB?Array(VB-XB+1).join(i9):"";Lj&&$K&&(PZ=m(bk+PZ,bk.length?VB-qk.length:Infinity),bk="");switch(Z_){case "<":PZ=cg+PZ+qk+bk;break;case "=":PZ=cg+bk+PZ+qk;break;case "^":PZ=bk.slice(0,XB=bk.length>>1)+cg+PZ+qk+bk.slice(XB);break;default:PZ=bk+cg+PZ+qk}return Fi(PZ)}
l9=s$n(l9);var i9=l9.fill,Z_=l9.align,jD=l9.sign,gz=l9.symbol,$K=l9.zero,VB=l9.width,Lj=l9.comma,AF=l9.precision,Hm=l9.trim,K4=l9.type;K4==="n"?(Lj=!0,K4="g"):OND[K4]||(AF==null&&(AF=12),Hm=!0,K4="g");if($K||i9==="0"&&Z_==="=")$K=!0,i9="0",Z_="=";var Ch=gz==="$"?DU[0]:gz==="#"&&/[boxX]/.test(K4)?"0"+K4.toLowerCase():"",HK=gz==="$"?DU[1]:/[%p]/.test(K4)?rr:"",ht=OND[K4],T_=/[defgprs%]/.test(K4);AF=AF==null?6:/[gprs]/.test(K4)?Math.max(1,Math.min(21,AF)):Math.max(0,Math.min(20,AF));Rz.toString=function(){return l9+
""};
return Rz}
var m=k.grouping&&k.thousands?El9(k.grouping,k.thousands):gWL,DU=k.currency,al=k.decimal,Fi=k.numerals?glE(k.numerals):gWL,rr=k.percent||"%";return{format:J,formatPrefix:function(l9,Rz){var i9=J((l9=s$n(l9),l9.type="f",l9));l9=Math.max(-8,Math.min(8,Math.floor(p6K(Rz)/3)))*3;var Z_=Math.pow(10,-l9),jD=d81[8+l9/3];return function(gz){return i9(Z_*gz)+jD}}}}
function Tt(){this.reset()}
function cGY(k,J,m){var DU=k.s=J+m,al=DU-J;k.t=J-(DU-al)+(m-al)}
function ATo(k){return k>1?$5:k<-1?-$5:Math.asin(k)}
function OJK(){}
function Dx7(k){var J=k[0];k=k[1];var m=vf(k);return[m*vf(J),m*IQ(J),IQ(k)]}
function YnY(k,J){return[k[1]*J[2]-k[2]*J[1],k[2]*J[0]-k[0]*J[2],k[0]*J[1]-k[1]*J[0]]}
function RxV(k){var J=nwr(k[0]*k[0]+k[1]*k[1]+k[2]*k[2]);k[0]/=J;k[1]/=J;k[2]/=J}
function c20(){var k=[],J;return{point:function(m,DU){J.push([m,DU])},
lineStart:function(){k.push(J=[])},
lineEnd:OJK,rejoin:function(){k.length>1&&k.push(k.pop().concat(k.shift()))},
result:function(){var m=k;k=[];J=null;return m}}}
function rTU(k,J,m,DU){this.x=k;this.z=J;this.o=m;this.e=DU;this.v=!1;this.n=this.p=null}
function Dv9(k,J,m,DU,al){var Fi=[],rr=[];k.forEach(function(jD){if(!((gz=jD.length-1)<=0)){var gz,$K=jD[0],VB=jD[gz],Lj=$K;if(lu(Lj[0]-VB[0])<1E-6&&lu(Lj[1]-VB[1])<1E-6){al.lineStart();for(l9=0;l9<gz;++l9)al.point(($K=jD[l9])[0],$K[1]);al.lineEnd()}else Fi.push(gz=new rTU($K,jD,null,!0)),rr.push(gz.o=new rTU($K,null,gz,!1)),Fi.push(gz=new rTU(VB,jD,null,!1)),rr.push(gz.o=new rTU(VB,null,gz,!0))}});
if(Fi.length){rr.sort(J);Zcz(Fi);Zcz(rr);var l9=0;for(k=rr.length;l9<k;++l9)rr[l9].e=m=!m;m=Fi[0];for(var Rz;;){for(var i9=m,Z_=!0;i9.v;)if((i9=i9.n)===m)return;J=i9.z;al.lineStart();do{i9.v=i9.o.v=!0;if(i9.e){if(Z_)for(l9=0,k=J.length;l9<k;++l9)al.point((Rz=J[l9])[0],Rz[1]);else DU(i9.x,i9.n.x,1,al);i9=i9.n}else{if(Z_)for(J=i9.p.z,l9=J.length-1;l9>=0;--l9)al.point((Rz=J[l9])[0],Rz[1]);else DU(i9.x,i9.p.x,-1,al);i9=i9.p}i9=i9.o;J=i9.z;Z_=!Z_}while(!i9.v);al.lineEnd()}}}
function Zcz(k){if(J=k.length){for(var J,m=0,DU=k[0],al;++m<J;)DU.n=al=k[m],al.p=DU,DU=al;DU.n=al=k[0];al.p=DU}}
function Y_b(k){return k.length>1}
function ROp(k,J){return((k=k.x)[0]<0?k[1]-$5-1E-6:$5-k[1])-((J=J.x)[0]<0?J[1]-$5-1E-6:$5-J[1])}
function uhi(){}
function t8b(k){return function(J,m){var DU=vf(J),al=vf(m);DU=k(DU*al);return[DU*al*IQ(J),DU*IQ(m)]}}
function G8(k){return function(J,m){var DU=nwr(J*J+m*m),al=k(DU),Fi=IQ(al);al=vf(al);return[s8z(J*Fi,DU*al),ATo(DU&&m*Fi/DU)]}}
function Zyh(k){var J=0,m=k.children,DU=m&&m.length;if(DU)for(;--DU>=0;)J+=m[DU].value;else J=1;k.value=J}
function XsU(k,J){var m=new VM(k);k=+k.value&&(m.value=k.value);var DU,al=[m],Fi,rr,l9,Rz;for(J==null&&(J=tBb);DU=al.pop();)if(k&&(DU.value=+DU.data.value),(rr=J(DU.data))&&(Rz=rr.length))for(DU.children=Array(Rz),l9=Rz-1;l9>=0;--l9)al.push(Fi=DU.children[l9]=new VM(rr[l9])),Fi.parent=DU,Fi.depth=DU.depth+1;return m.eachBefore(s50)}
function tBb(k){return k.children}
function Xxt(k){k.data=k.data.data}
function s50(k){var J=0;do k.height=J;while((k=k.parent)&&k.height<++J)}
function VM(k){this.data=k;this.depth=this.height=0;this.parent=null}
function ab(k,J,m,DU){function al(Fi){return k(Fi=new Date(+Fi)),Fi}
al.floor=al;al.ceil=function(Fi){return k(Fi=new Date(Fi-1)),J(Fi,1),k(Fi),Fi};
al.round=function(Fi){var rr=al(Fi),l9=al.ceil(Fi);return Fi-rr<l9-Fi?rr:l9};
al.offset=function(Fi,rr){return J(Fi=new Date(+Fi),rr==null?1:Math.floor(rr)),Fi};
al.range=function(Fi,rr,l9){var Rz=[],i9;Fi=al.ceil(Fi);l9=l9==null?1:Math.floor(l9);if(!(Fi<rr&&l9>0))return Rz;do Rz.push(i9=new Date(+Fi)),J(Fi,l9),k(Fi);while(i9<Fi&&Fi<rr);return Rz};
al.filter=function(Fi){return ab(function(rr){if(rr>=rr)for(;k(rr),!Fi(rr);)rr.setTime(rr-1)},function(rr,l9){if(rr>=rr)if(l9<0)for(;++l9<=0;)for(;J(rr,-1),!Fi(rr););
else for(;--l9>=0;)for(;J(rr,1),!Fi(rr););})};
m&&(al.count=function(Fi,rr){ab5.setTime(+Fi);Mni.setTime(+rr);k(ab5);k(Mni);return Math.floor(m(ab5,Mni))},al.every=function(Fi){Fi=Math.floor(Fi);
return isFinite(Fi)&&Fi>0?Fi>1?al.filter(DU?function(rr){return DU(rr)%Fi===0}:function(rr){return al.count(0,rr)%Fi===0}):al:null});
return al}
function yW(k){return ab(function(J){J.setDate(J.getDate()-(J.getDay()+7-k)%7);J.setHours(0,0,0,0)},function(J,m){J.setDate(J.getDate()+m*7)},function(J,m){return(m-J-(m.getTimezoneOffset()-J.getTimezoneOffset())*6E4)/6048E5})}
function NS(k){return ab(function(J){J.setUTCDate(J.getUTCDate()-(J.getUTCDay()+7-k)%7);J.setUTCHours(0,0,0,0)},function(J,m){J.setUTCDate(J.getUTCDate()+m*7)},function(J,m){return(m-J)/6048E5})}
function uAt(k){if(0<=k.y&&k.y<100){var J=new Date(-1,k.m,k.d,k.H,k.M,k.S,k.L);J.setFullYear(k.y);return J}return new Date(k.y,k.m,k.d,k.H,k.M,k.S,k.L)}
function wr5(k){if(0<=k.y&&k.y<100){var J=new Date(Date.UTC(-1,k.m,k.d,k.H,k.M,k.S,k.L));J.setUTCFullYear(k.y);return J}return new Date(Date.UTC(k.y,k.m,k.d,k.H,k.M,k.S,k.L))}
function fU(k){return{y:k,m:0,d:1,H:0,M:0,S:0,L:0}}
function aVK(k){function J(qk,FB){return function(XB){var bk=[],U3=-1,by=0,xN=qk.length,sK,i_;for(XB instanceof Date||(XB=new Date(+XB));++U3<xN;)if(qk.charCodeAt(U3)===37){bk.push(qk.slice(by,U3));(by=uJz[sK=qk.charAt(++U3)])!=null?sK=qk.charAt(++U3):by=sK==="e"?" ":"0";if(i_=FB[sK])sK=i_(XB,by);bk.push(sK);by=U3+1}bk.push(qk.slice(by,U3));return bk.join("")}}
function m(qk,FB){return function(XB){var bk=fU(1900);if(DU(bk,qk,XB,0)!=XB.length)return null;if("Q"in bk)return new Date(bk.Q);"p"in bk&&(bk.H=bk.H%12+bk.p*12);if("V"in bk){if(bk.V<1||bk.V>53)return null;"w"in bk||(bk.w=1);if("Z"in bk){XB=wr5(fU(bk.y));var U3=XB.getUTCDay();XB=U3>4||U3===0?Cuy.ceil(XB):Cuy(XB);XB=akz.offset(XB,(bk.V-1)*7);bk.y=XB.getUTCFullYear();bk.m=XB.getUTCMonth();bk.d=XB.getUTCDate()+(bk.w+6)%7}else XB=FB(fU(bk.y)),U3=XB.getDay(),XB=U3>4||U3===0?W$U.ceil(XB):W$U(XB),XB=M8L.offset(XB,
(bk.V-1)*7),bk.y=XB.getFullYear(),bk.m=XB.getMonth(),bk.d=XB.getDate()+(bk.w+6)%7}else if("W"in bk||"U"in bk)"w"in bk||(bk.w="u"in bk?bk.u%7:"W"in bk?1:0),U3="Z"in bk?wr5(fU(bk.y)).getUTCDay():FB(fU(bk.y)).getDay(),bk.m=0,bk.d="W"in bk?(bk.w+6)%7+bk.W*7-(U3+5)%7:bk.w+bk.U*7-(U3+6)%7;return"Z"in bk?(bk.H+=bk.Z/100|0,bk.M+=bk.Z%100,wr5(bk)):FB(bk)}}
function DU(qk,FB,XB,bk){for(var U3=0,by=FB.length,xN=XB.length,sK;U3<by;){if(bk>=xN)return-1;sK=FB.charCodeAt(U3++);if(sK===37){if(sK=FB.charAt(U3++),sK=cg[sK in uJz?FB.charAt(U3++):sK],!sK||(bk=sK(qk,XB,bk))<0)return-1}else if(sK!=XB.charCodeAt(bk++))return-1}return bk}
var al=k.dateTime,Fi=k.date,rr=k.time,l9=k.periods,Rz=k.days,i9=k.shortDays,Z_=k.months,jD=k.shortMonths,gz=eS(l9),$K=AJ(l9),VB=eS(Rz),Lj=AJ(Rz),AF=eS(i9),Hm=AJ(i9),K4=eS(Z_),Ch=AJ(Z_),HK=eS(jD),ht=AJ(jD),T_={a:function(qk){return i9[qk.getDay()]},
A:function(qk){return Rz[qk.getDay()]},
b:function(qk){return jD[qk.getMonth()]},
B:function(qk){return Z_[qk.getMonth()]},
c:null,d:CB7,e:CB7,f:MBz,H:CSI,I:WMu,j:zOz,L:W0_,m:S_u,M:TiK,p:function(qk){return l9[+(qk.getHours()>=12)]},
Q:zx7,s:SnV,S:j5k,u:IVz,U:FMz,V:GBT,w:VBI,W:fVK,x:null,X:null,y:eOb,Y:AhI,Z:nGh,"%":Tt1},PZ={a:function(qk){return i9[qk.getUTCDay()]},
A:function(qk){return Rz[qk.getUTCDay()]},
b:function(qk){return jD[qk.getUTCMonth()]},
B:function(qk){return Z_[qk.getUTCMonth()]},
c:null,d:j8E,e:j8E,f:rhK,H:wxu,I:$vp,j:vG0,L:IkE,m:oGz,M:byu,p:function(qk){return l9[+(qk.getUTCHours()>=12)]},
Q:zx7,s:SnV,S:yh9,u:Nih,U:lVz,V:Jhb,w:kBE,W:UvK,x:null,X:null,y:KMz,Y:hOt,Z:LMz,"%":Tt1},cg={a:function(qk,FB,XB){return(FB=AF.exec(FB.slice(XB)))?(qk.w=Hm[FB[0].toLowerCase()],XB+FB[0].length):-1},
A:function(qk,FB,XB){return(FB=VB.exec(FB.slice(XB)))?(qk.w=Lj[FB[0].toLowerCase()],XB+FB[0].length):-1},
b:function(qk,FB,XB){return(FB=HK.exec(FB.slice(XB)))?(qk.m=ht[FB[0].toLowerCase()],XB+FB[0].length):-1},
B:function(qk,FB,XB){return(FB=K4.exec(FB.slice(XB)))?(qk.m=Ch[FB[0].toLowerCase()],XB+FB[0].length):-1},
c:function(qk,FB,XB){return DU(qk,al,FB,XB)},
d:F0Y,e:F0Y,f:mvI,H:G5b,I:G5b,j:q_K,L:Hy0,m:xv0,M:PSK,p:function(qk,FB,XB){return(FB=gz.exec(FB.slice(XB)))?(qk.p=$K[FB[0].toLowerCase()],XB+FB[0].length):-1},
Q:Q5b,s:Bib,S:pxk,u:EG9,U:gGb,V:dvk,w:iyk,W:Oyu,x:function(qk,FB,XB){return DU(qk,Fi,FB,XB)},
X:function(qk,FB,XB){return DU(qk,rr,FB,XB)},
y:ch9,Y:D8K,Z:YHk,"%":R4k};T_.x=J(Fi,T_);T_.X=J(rr,T_);T_.c=J(al,T_);PZ.x=J(Fi,PZ);PZ.X=J(rr,PZ);PZ.c=J(al,PZ);return{format:function(qk){var FB=J(qk,T_);FB.toString=function(){return qk};
return FB},
parse:function(qk){var FB=m(qk,uAt);FB.toString=function(){return qk};
return FB},
utcFormat:function(qk){var FB=J(qk,PZ);FB.toString=function(){return qk};
return FB},
utcParse:function(qk){var FB=m(qk,wr5);FB.toString=function(){return qk};
return FB}}}
function u1(k,J,m){var DU=k<0?"-":"";k=(DU?-k:k)+"";var al=k.length;return DU+(al<m?Array(m-al+1).join(J)+k:k)}
function ZN0(k){return k.replace(tFk,"\\$&")}
function eS(k){return new RegExp("^(?:"+k.map(ZN0).join("|")+")","i")}
function AJ(k){for(var J={},m=-1,DU=k.length;++m<DU;)J[k[m].toLowerCase()]=m;return J}
function iyk(k,J,m){return(J=WU.exec(J.slice(m,m+1)))?(k.w=+J[0],m+J[0].length):-1}
function EG9(k,J,m){return(J=WU.exec(J.slice(m,m+1)))?(k.u=+J[0],m+J[0].length):-1}
function gGb(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.U=+J[0],m+J[0].length):-1}
function dvk(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.V=+J[0],m+J[0].length):-1}
function Oyu(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.W=+J[0],m+J[0].length):-1}
function D8K(k,J,m){return(J=WU.exec(J.slice(m,m+4)))?(k.y=+J[0],m+J[0].length):-1}
function ch9(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.y=+J[0]+(+J[0]>68?1900:2E3),m+J[0].length):-1}
function YHk(k,J,m){return(J=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(J.slice(m,m+6)))?(k.Z=J[1]?0:-(J[2]+(J[3]||"00")),m+J[0].length):-1}
function xv0(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.m=J[0]-1,m+J[0].length):-1}
function F0Y(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.d=+J[0],m+J[0].length):-1}
function q_K(k,J,m){return(J=WU.exec(J.slice(m,m+3)))?(k.m=0,k.d=+J[0],m+J[0].length):-1}
function G5b(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.H=+J[0],m+J[0].length):-1}
function PSK(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.M=+J[0],m+J[0].length):-1}
function pxk(k,J,m){return(J=WU.exec(J.slice(m,m+2)))?(k.S=+J[0],m+J[0].length):-1}
function Hy0(k,J,m){return(J=WU.exec(J.slice(m,m+3)))?(k.L=+J[0],m+J[0].length):-1}
function mvI(k,J,m){return(J=WU.exec(J.slice(m,m+6)))?(k.L=Math.floor(J[0]/1E3),m+J[0].length):-1}
function R4k(k,J,m){return(k=sib.exec(J.slice(m,m+1)))?m+k[0].length:-1}
function Q5b(k,J,m){return(J=WU.exec(J.slice(m)))?(k.Q=+J[0],m+J[0].length):-1}
function Bib(k,J,m){return(J=WU.exec(J.slice(m)))?(k.Q=+J[0]*1E3,m+J[0].length):-1}
function CB7(k,J){return u1(k.getDate(),J,2)}
function CSI(k,J){return u1(k.getHours(),J,2)}
function WMu(k,J){return u1(k.getHours()%12||12,J,2)}
function zOz(k,J){return u1(1+M8L.count(Oh(k),k),J,3)}
function W0_(k,J){return u1(k.getMilliseconds(),J,3)}
function MBz(k,J){return W0_(k,J)+"000"}
function S_u(k,J){return u1(k.getMonth()+1,J,2)}
function TiK(k,J){return u1(k.getMinutes(),J,2)}
function j5k(k,J){return u1(k.getSeconds(),J,2)}
function IVz(k){k=k.getDay();return k===0?7:k}
function FMz(k,J){return u1(XkT.count(Oh(k),k),J,2)}
function GBT(k,J){var m=k.getDay();k=m>=4||m===0?zu9(k):zu9.ceil(k);return u1(zu9.count(Oh(k),k)+(Oh(k).getDay()===4),J,2)}
function VBI(k){return k.getDay()}
function fVK(k,J){return u1(W$U.count(Oh(k),k),J,2)}
function eOb(k,J){return u1(k.getFullYear()%100,J,2)}
function AhI(k,J){return u1(k.getFullYear()%1E4,J,4)}
function nGh(k){k=k.getTimezoneOffset();return(k>0?"-":(k*=-1,"+"))+u1(k/60|0,"0",2)+u1(k%60,"0",2)}
function j8E(k,J){return u1(k.getUTCDate(),J,2)}
function wxu(k,J){return u1(k.getUTCHours(),J,2)}
function $vp(k,J){return u1(k.getUTCHours()%12||12,J,2)}
function vG0(k,J){return u1(1+akz.count(cI(k),k),J,3)}
function IkE(k,J){return u1(k.getUTCMilliseconds(),J,3)}
function rhK(k,J){return IkE(k,J)+"000"}
function oGz(k,J){return u1(k.getUTCMonth()+1,J,2)}
function byu(k,J){return u1(k.getUTCMinutes(),J,2)}
function yh9(k,J){return u1(k.getUTCSeconds(),J,2)}
function Nih(k){k=k.getUTCDay();return k===0?7:k}
function lVz(k,J){return u1(uqt.count(cI(k),k),J,2)}
function Jhb(k,J){var m=k.getUTCDay();k=m>=4||m===0?ScM(k):ScM.ceil(k);return u1(ScM.count(cI(k),k)+(cI(k).getUTCDay()===4),J,2)}
function kBE(k){return k.getUTCDay()}
function UvK(k,J){return u1(Cuy.count(cI(k),k),J,2)}
function KMz(k,J){return u1(k.getUTCFullYear()%100,J,2)}
function hOt(k,J){return u1(k.getUTCFullYear()%1E4,J,4)}
function LMz(){return"+0000"}
function Tt1(){return"%"}
function zx7(k){return+k}
function SnV(k){return Math.floor(+k/1E3)}
function W8(k){for(var J=k.length/6|0,m=Array(J),DU=0;DU<J;)m[DU]="#"+k.slice(DU*6,++DU*6);return m}
function Kb(k){return aYk(k[k.length-1])}
function $EM(k){var J=k.length;return function(m){return k[Math.max(0,Math.min(J-1,Math.floor(m*J)))]}}
function V87(k){this._context=k}
function fkL(k){this._curve=k}
function exU(k,J,m){var DU=k._x1-k._x0;J-=k._x1;var al=(k._y1-k._y0)/(DU||J<0&&-0);k=(m-k._y1)/(J||DU<0&&-0);return((al<0?-1:1)+(k<0?-1:1))*Math.min(Math.abs(al),Math.abs(k),.5*Math.abs((al*J+k*DU)/(DU+J)))||0}
function A$U(k,J){var m=k._x1-k._x0;return m?(3*(k._y1-k._y0)/m-J)/2:J}
function THU(k,J,m){var DU=k._x0,al=k._x1,Fi=k._y1,rr=(al-DU)/3;k._context.bezierCurveTo(DU+rr,k._y0+rr*J,al-rr,Fi-rr*m,al,Fi)}
function j$9(k){this._context=k}
function nZb(k){this._context=k}
function nU(k,J,m){this.k=k;this.x=J;this.y=m}
(function(k){k.length===1&&(k=Y(k));return{left:function(J,m,DU,al){DU==null&&(DU=0);al==null&&(al=J.length);for(;DU<al;){var Fi=DU+al>>>1;k(J[Fi],m)<0?DU=Fi+1:al=Fi}return DU},
right:function(J,m,DU,al){DU==null&&(DU=0);al==null&&(al=J.length);for(;DU<al;){var Fi=DU+al>>>1;k(J[Fi],m)>0?al=Fi:DU=Fi+1}return DU}}})(D);
var YPK={value:function(){}};
Z.prototype=R.prototype={constructor:Z,on:function(k,J){var m=this._,DU=t(k+"",m),al,Fi=-1,rr=DU.length;if(arguments.length<2)for(;++Fi<rr;){var l9;if(l9=al=(k=DU[Fi]).type){a:{l9=m[al];for(var Rz=0,i9=l9.length;Rz<i9;++Rz)if((al=l9[Rz]).name===k.name){al=al.value;break a}al=void 0}l9=al}if(l9)return al}else{if(J!=null&&typeof J!=="function")throw Error("we`"+J);for(;++Fi<rr;)if(al=(k=DU[Fi]).type)m[al]=X(m[al],k.name,J);else if(J==null)for(al in m)m[al]=X(m[al],k.name,null);return this}},
copy:function(){var k={},J=this._,m;for(m in J)k[m]=J[m].slice();return new Z(k)},
call:function(k,J){if((al=arguments.length-2)>0)for(var m=Array(al),DU=0,al,Fi;DU<al;++DU)m[DU]=arguments[DU+2];if(!this._.hasOwnProperty(k))throw Error("qe`"+k);Fi=this._[k];DU=0;for(al=Fi.length;DU<al;++DU)Fi[DU].value.apply(J,m)},
apply:function(k,J,m){if(!this._.hasOwnProperty(k))throw Error("qe`"+k);k=this._[k];for(var DU=0,al=k.length;DU<al;++DU)k[DU].value.apply(J,m)}};
var wY={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/"},r$U=function(k){return function(){return this.matches(k)}};
if(typeof document!=="undefined"){var rV=document.documentElement;if(!rV.matches){var MFk=rV.webkitMatchesSelector||rV.msMatchesSelector||rV.mozMatchesSelector||rV.oMatchesSelector;r$U=function(k){return function(){return MFk.call(this,k)}}}}var ws1=r$U;
e.prototype={constructor:e,appendChild:function(k){return this._parent.insertBefore(k,this._next)},
insertBefore:function(k,J){return this._parent.insertBefore(k,J)},
querySelector:function(k){return this._parent.querySelector(k)},
querySelectorAll:function(k){return this._parent.querySelectorAll(k)}};
var oWE={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(oWE={mouseenter:"mouseover",mouseleave:"mouseout"}));var RmI=[null];EL.prototype=FE.prototype={constructor:EL,select:function(k){typeof k!=="function"&&(k=G(k));for(var J=this._groups,m=J.length,DU=Array(m),al=0;al<m;++al)for(var Fi=J[al],rr=Fi.length,l9=DU[al]=Array(rr),Rz,i9,Z_=0;Z_<rr;++Z_)(Rz=Fi[Z_])&&(i9=k.call(Rz,Rz.__data__,Z_,Fi))&&("__data__"in Rz&&(i9.__data__=Rz.__data__),l9[Z_]=i9);return new EL(DU,
this._parents)},
filter:function(k){typeof k!=="function"&&(k=ws1(k));for(var J=this._groups,m=J.length,DU=Array(m),al=0;al<m;++al)for(var Fi=J[al],rr=Fi.length,l9=DU[al]=[],Rz,i9=0;i9<rr;++i9)(Rz=Fi[i9])&&k.call(Rz,Rz.__data__,i9,Fi)&&l9.push(Rz);return new EL(DU,this._parents)},
data:function(k,J){if(!k)return $K=Array(this.size()),i9=-1,this.each(function(K4){$K[++i9]=K4}),$K;
var m=J?U:l,DU=this._parents,al=this._groups;typeof k!=="function"&&(k=r(k));for(var Fi=al.length,rr=Array(Fi),l9=Array(Fi),Rz=Array(Fi),i9=0;i9<Fi;++i9){var Z_=DU[i9],jD=al[i9],gz=jD.length,$K=k.call(Z_,Z_&&Z_.__data__,i9,DU),VB=$K.length,Lj=l9[i9]=Array(VB),AF=rr[i9]=Array(VB);gz=Rz[i9]=Array(gz);m(Z_,jD,Lj,AF,gz,$K,J);jD=Z_=0;for(var Hm;Z_<VB;++Z_)if(gz=Lj[Z_]){for(Z_>=jD&&(jD=Z_+1);!(Hm=AF[jD])&&++jD<VB;);gz._next=Hm||null}}rr=new EL(rr,DU);rr._enter=l9;rr._exit=Rz;return rr},
enter:function(){return new EL(this._enter||this._groups.map(V),this._parents)},
exit:function(){return new EL(this._exit||this._groups.map(V),this._parents)},
merge:function(k){var J=this._groups;k=k._groups;for(var m=J.length,DU=Math.min(m,k.length),al=Array(m),Fi=0;Fi<DU;++Fi)for(var rr=J[Fi],l9=k[Fi],Rz=rr.length,i9=al[Fi]=Array(Rz),Z_,jD=0;jD<Rz;++jD)if(Z_=rr[jD]||l9[jD])i9[jD]=Z_;for(;Fi<m;++Fi)al[Fi]=J[Fi];return new EL(al,this._parents)},
order:function(){for(var k=this._groups,J=-1,m=k.length;++J<m;)for(var DU=k[J],al=DU.length-1,Fi=DU[al],rr;--al>=0;)if(rr=DU[al])Fi&&Fi!==rr.nextSibling&&Fi.parentNode.insertBefore(rr,Fi),Fi=rr;return this},
sort:function(k){function J(jD,gz){return jD&&gz?k(jD.__data__,gz.__data__):!jD-!gz}
k||(k=K);for(var m=this._groups,DU=m.length,al=Array(DU),Fi=0;Fi<DU;++Fi){for(var rr=m[Fi],l9=rr.length,Rz=al[Fi]=Array(l9),i9,Z_=0;Z_<l9;++Z_)if(i9=rr[Z_])Rz[Z_]=i9;Rz.sort(J)}return(new EL(al,this._parents)).order()},
call:function(){var k=arguments[0];arguments[0]=this;k.apply(null,arguments);return this},
nodes:function(){var k=Array(this.size()),J=-1;this.each(function(){k[++J]=this});
return k},
node:function(){for(var k=this._groups,J=0,m=k.length;J<m;++J)for(var DU=k[J],al=0,Fi=DU.length;al<Fi;++al){var rr=DU[al];if(rr)return rr}return null},
size:function(){var k=0;this.each(function(){++k});
return k},
empty:function(){return!this.node()},
each:function(k){for(var J=this._groups,m=0,DU=J.length;m<DU;++m)for(var al=J[m],Fi=0,rr=al.length,l9;Fi<rr;++Fi)(l9=al[Fi])&&k.call(l9,l9.__data__,Fi,al);return this},
attr:function(k,J){var m=M(k);if(arguments.length<2){var DU=this.node();return m.local?DU.getAttributeNS(m.space,m.local):DU.getAttribute(m)}return this.each((J==null?m.local?c:H:typeof J==="function"?m.local?O:B:m.local?E:Q)(m,J))},
style:function(k,J,m){return arguments.length>1?this.each((J==null?Wo:typeof J==="function"?VU:Sb)(k,J,m==null?"":m)):AS(this.node(),k)},
property:function(k,J){return arguments.length>1?this.each((J==null?nM:typeof J==="function"?KM:Ho)(k,J)):this.node()[k]},
text:function(k){return arguments.length?this.each(k==null?Xb:(typeof k==="function"?SD:kE)(k)):this.node().textContent},
html:function(k){return arguments.length?this.each(k==null?co:(typeof k==="function"?TE:GE)(k)):this.node().innerHTML},
append:function(k){var J=typeof k==="function"?k:I(k);return this.select(function(){return this.appendChild(J.apply(this,arguments))})},
insert:function(k,J){var m=typeof k==="function"?k:I(k),DU=J==null?yV:typeof J==="function"?J:G(J);return this.select(function(){return this.insertBefore(m.apply(this,arguments),DU.apply(this,arguments)||null)})},
remove:function(){return this.each(vu)},
clone:function(k){return this.select(k?sy:dz)},
datum:function(k){return arguments.length?this.property("__data__",k):this.node().__data__},
on:function(k,J,m){var DU=zT(k+""),al=DU.length,Fi;if(arguments.length<2){var rr=this.node().__on;if(rr)for(var l9=0,Rz=rr.length,i9;l9<Rz;++l9){var Z_=0;for(i9=rr[l9];Z_<al;++Z_)if((Fi=DU[Z_]).type===i9.type&&Fi.name===i9.name)return i9.value}}else{rr=J?YK:eD;m==null&&(m=!1);for(Z_=0;Z_<al;++Z_)this.each(rr(DU[Z_],J,m));return this}},
dispatch:function(k,J){return this.each((typeof J==="function"?az:Dp)(k,J))}};
var ZJk=0;v4.prototype=function(){return new v4}.prototype={constructor:v4,
get:function(k){for(var J=this._;!(J in k);)if(!(k=k.parentNode))return;return k[J]},
set:function(k,J){return k[this._]=J},
remove:function(k){return this._ in k&&delete k[this._]},
toString:function(){return this._}};
var D5=1/.7,ttz=/^#([0-9a-f]{3})$/,s1b=/^#([0-9a-f]{6})$/,X6K=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ue9=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),aSK=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Mtp=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*\\)$"),
C_p=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Waz=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*\\)$"),bND={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};
oz(Cj,j0,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
oz(QI,mh,e0(Cj,{brighter:function(k){k=k==null?D5:Math.pow(D5,k);return new QI(this.r*k,this.g*k,this.b*k,this.opacity)},
darker:function(k){k=k==null?.7:Math.pow(.7,k);return new QI(this.r*k,this.g*k,this.b*k,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"#"+aJ(this.r)+aJ(this.g)+aJ(this.b)},
toString:function(){var k=this.opacity;k=isNaN(k)?1:Math.max(0,Math.min(1,k));return(k===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))+(k===1?")":", "+k+")")}}));
oz(vD,E1,e0(Cj,{brighter:function(k){k=k==null?D5:Math.pow(D5,k);return new vD(this.h,this.s,this.l*k,this.opacity)},
darker:function(k){k=k==null?.7:Math.pow(.7,k);return new vD(this.h,this.s,this.l*k,this.opacity)},
rgb:function(){var k=this.h%360+(this.h<0)*360,J=this.l,m=J+(J<.5?J:1-J)*(isNaN(k)||isNaN(this.s)?0:this.s);J=2*J-m;return new QI(ch(k>=240?k-240:k+120,J,m),ch(k,J,m),ch(k<120?k+240:k-120,J,m),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 yGz=Math.PI/180,JGU=180/Math.PI,lYb=4/29,dJ=6/29,NmL=3*dJ*dJ,zmb=dJ*dJ*dJ;oz(ol,function(k,J,m,DU){return arguments.length===1?U9(k):new ol(k,J,m,DU==null?1:DU)},e0(Cj,{brighter:function(k){return new ol(this.l+18*(k==null?1:k),this.a,this.b,this.opacity)},
darker:function(k){return new ol(this.l-18*(k==null?1:k),this.a,this.b,this.opacity)},
rgb:function(){var k=(this.l+16)/116,J=isNaN(this.a)?k:k+this.a/500,m=isNaN(this.b)?k:k-this.b/200;J=.96422*QU(J);k=1*QU(k);m=.82521*QU(m);return new QI(Iz(3.1338561*J-1.6168667*k-.4906146*m),Iz(-.9787684*J+1.9161415*k+.033454*m),Iz(.0719453*J-.2289914*k+1.4052427*m),this.opacity)}}));
oz(nL,wb,e0(Cj,{brighter:function(k){return new nL(this.h,this.c,this.l+18*(k==null?1:k),this.opacity)},
darker:function(k){return new nL(this.h,this.c,this.l-18*(k==null?1:k),this.opacity)},
rgb:function(){return U9(this).rgb()}}));
var kJU=1.78277*-.29227-.1347134789;oz(kK,A1,e0(Cj,{brighter:function(k){k=k==null?D5:Math.pow(D5,k);return new kK(this.h,this.s,this.l*k,this.opacity)},
darker:function(k){k=k==null?.7:Math.pow(.7,k);return new kK(this.h,this.s,this.l*k,this.opacity)},
rgb:function(){var k=isNaN(this.h)?0:(this.h+120)*yGz,J=+this.l,m=isNaN(this.s)?0:this.s*J*(1-J),DU=Math.cos(k);k=Math.sin(k);return new QI(255*(J+m*(-.14861*DU+1.78277*k)),255*(J+m*(-.29227*DU+-.90649*k)),255*(J+1.97294*DU*m),this.opacity)}}));
var m8L=function m(J){function DU(Fi,rr){var l9=al((Fi=mh(Fi)).r,(rr=mh(rr)).r),Rz=al(Fi.g,rr.g),i9=al(Fi.b,rr.b),Z_=KI(Fi.opacity,rr.opacity);return function(jD){Fi.r=l9(jD);Fi.g=Rz(jD);Fi.b=i9(jD);Fi.opacity=Z_(jD);return Fi+""}}
var al=lM(J);DU.gamma=m;return DU}(1),aYk=il(function(J){var m=J.length-1;
return function(DU){var al=DU<=0?DU=0:DU>=1?(DU=1,m-1):Math.floor(DU*m),Fi=J[al],rr=J[al+1];return IJ((DU-al/m)*m,al>0?J[al-1]:2*Fi-rr,Fi,rr,al<m-1?J[al+2]:2*rr-Fi)}});
il(function(J){var m=J.length;return function(DU){var al=Math.floor(((DU%=1)<0?++DU:DU)*m);return IJ((DU-al/m)*m,J[(al+m-1)%m],J[al%m],J[(al+1)%m],J[(al+2)%m])}});
var dx$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,icr=new RegExp(dx$.source,"g"),U84=180/Math.PI,IbM={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},wV,F$9,$xb,vwj,Cs9=lk(function(J){if(J==="none")return IbM;wV||(wV=document.createElement("DIV"),F$9=document.documentElement,$xb=document.defaultView);wV.style.transform=J;J=$xb.getComputedStyle(F$9.appendChild(wV),null).getPropertyValue("transform");F$9.removeChild(wV);J=J.slice(7,-1).split(",");return GT(+J[0],+J[1],+J[2],+J[3],
+J[4],+J[5])},"px, ","px)","deg)"),WOK=lk(function(J){if(J==null)return IbM;
vwj||(vwj=document.createElementNS("http://www.w3.org/2000/svg","g"));vwj.setAttribute("transform",J);if(!(J=vwj.transform.baseVal.consolidate()))return IbM;J=J.matrix;return GT(J.a,J.b,J.c,J.d,J.e,J.f)},", ",")",")");
uk(hf);uk(KI);M1(hf);M1(KI);Q7(hf);var GV$=Q7(KI),iZ=0,jS=0,Fm=0,GZ9,IM,Fzr=0,om=0,IHS=0,T8=typeof performance==="object"&&performance.now?performance:Date,KO4=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(J){setTimeout(J,17)};
fH.prototype=CT.prototype={constructor:fH,restart:function(J,m,DU){if(typeof J!=="function")throw new TypeError("xe");DU=(DU==null?kh():+DU)+(m==null?0:+m);this._next||IM===this||(IM?IM._next=this:GZ9=this,IM=this);this._call=J;this._time=DU;ze()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ze())}};
var TpT=R("start","end","interrupt"),j19=[],z4z=FE.prototype.constructor,vZY=0,Y_=FE.prototype;NQ.prototype=function(J){return FE().transition(J)}.prototype={constructor:NQ,
select:function(J){var m=this._name,DU=this._id;typeof J!=="function"&&(J=G(J));for(var al=this._groups,Fi=al.length,rr=Array(Fi),l9=0;l9<Fi;++l9)for(var Rz=al[l9],i9=Rz.length,Z_=rr[l9]=Array(i9),jD,gz,$K=0;$K<i9;++$K)(jD=Rz[$K])&&(gz=J.call(jD,jD.__data__,$K,Rz))&&("__data__"in jD&&(gz.__data__=jD.__data__),Z_[$K]=gz,OcU(Z_[$K],m,DU,$K,Z_,TR(jD,DU)));return new NQ(rr,this._parents,m,DU)},
filter:function(J){typeof J!=="function"&&(J=ws1(J));for(var m=this._groups,DU=m.length,al=Array(DU),Fi=0;Fi<DU;++Fi)for(var rr=m[Fi],l9=rr.length,Rz=al[Fi]=[],i9,Z_=0;Z_<l9;++Z_)(i9=rr[Z_])&&J.call(i9,i9.__data__,Z_,rr)&&Rz.push(i9);return new NQ(al,this._parents,this._name,this._id)},
merge:function(J){if(J._id!==this._id)throw Error();var m=this._groups;J=J._groups;for(var DU=m.length,al=Math.min(DU,J.length),Fi=Array(DU),rr=0;rr<al;++rr)for(var l9=m[rr],Rz=J[rr],i9=l9.length,Z_=Fi[rr]=Array(i9),jD,gz=0;gz<i9;++gz)if(jD=l9[gz]||Rz[gz])Z_[gz]=jD;for(;rr<DU;++rr)Fi[rr]=m[rr];return new NQ(Fi,this._parents,this._name,this._id)},
selection:function(){return new z4z(this._groups,this._parents)},
transition:function(){for(var J=this._name,m=this._id,DU=++vZY,al=this._groups,Fi=al.length,rr=0;rr<Fi;++rr)for(var l9=al[rr],Rz=l9.length,i9,Z_=0;Z_<Rz;++Z_)if(i9=l9[Z_]){var jD=TR(i9,m);OcU(i9,J,DU,Z_,l9,{time:jD.time+jD.delay+jD.duration,delay:0,duration:jD.duration,ease:jD.ease})}return new NQ(al,this._parents,J,DU)},
call:Y_.call,nodes:Y_.nodes,node:Y_.node,size:Y_.size,empty:Y_.empty,each:Y_.each,on:function(J,m){var DU=this._id;return arguments.length<2?TR(this.node(),DU).on.on(J):this.each(lS9(DU,J,m))},
attr:function(J,m){var DU=M(J),al=DU==="transform"?WOK:LOD;return this.attrTween(J,typeof m==="function"?(DU.local?nlp:A2b)(DU,al,DQj(this,"attr."+J,m)):m==null?(DU.local?Vtk:GYp)(DU):(DU.local?emh:fSp)(DU,al,m+""))},
attrTween:function(J,m){var DU="attr."+J;if(arguments.length<2)return(DU=this.tween(DU))&&DU._value;if(m==null)return this.tween(DU,null);if(typeof m!=="function")throw Error();var al=M(J);return this.tween(DU,(al.local?r2k:w6t)(al,m))},
style:function(J,m,DU){var al=J==="transform"?Cs9:LOD;return m==null?this.styleTween(J,kYI(J,al)).on("end.style."+J,UKk(J)):this.styleTween(J,typeof m==="function"?hmh(J,al,DQj(this,"style."+J,m)):KaK(J,al,m+""),DU)},
styleTween:function(J,m,DU){var al="style."+J;if(arguments.length<2)return(al=this.tween(al))&&al._value;if(m==null)return this.tween(al,null);if(typeof m!=="function")throw Error();return this.tween(al,Lak(J,m,DU==null?"":DU))},
text:function(J){return this.tween("text",typeof J==="function"?qPk(DQj(this,"text",J)):mKK(J==null?"":J+""))},
remove:function(){return this.on("end.remove",J2z(this._id))},
tween:function(J,m){var DU=this._id;if(arguments.length<2){DU=TR(this.node(),DU).tween;for(var al=0,Fi=DU.length,rr;al<Fi;++al)if((rr=DU[al]).name===J)return rr.value;return null}return this.each((m==null?ISK:FaK)(DU,J,m))},
delay:function(J){var m=this._id;return arguments.length?this.each((typeof J==="function"?$KK:vlb)(m,J)):TR(this.node(),m).delay},
duration:function(J){var m=this._id;return arguments.length?this.each((typeof J==="function"?olz:bJI)(m,J)):TR(this.node(),m).duration},
ease:function(J){var m=this._id;return arguments.length?this.each(y2T(m,J)):TR(this.node(),m).ease}};
var Vn$={time:null,delay:0,duration:250,ease:function(J){return((J*=2)<=1?J*J*J:(J-=2)*J*J+2)/2}};
FE.prototype.transition=function(J){var m;if(J instanceof NQ){var DU=J._id;J=J._name}else DU=++vZY,(m=Vn$).time=kh(),J=J==null?null:J+"";for(var al=this._groups,Fi=al.length,rr=0;rr<Fi;++rr)for(var l9=al[rr],Rz=l9.length,i9,Z_=0;Z_<Rz;++Z_)if(i9=l9[Z_]){var jD=i9,gz=J,$K=DU,VB=Z_,Lj=l9,AF;if(!(AF=m))a:{AF=void 0;for(var Hm=DU;!(AF=i9.__transition)||!(AF=AF[Hm]);)if(!(i9=i9.parentNode)){AF=(Vn$.time=kh(),Vn$);break a}}OcU(jD,gz,$K,VB,Lj,AF)}return new NQ(al,this._parents,J,DU)};
["e","w"].map(YcU);["n","s"].map(YcU);"n e s w nw ne se sw".split(" ").map(YcU);RuM.prototype=function(){return new RuM}.prototype={constructor:RuM,
moveTo:function(J,m){this._+="M"+(this._x0=this._x1=+J)+","+(this._y0=this._y1=+m)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(J,m){this._+="L"+(this._x1=+J)+","+(this._y1=+m)},
bezierCurveTo:function(J,m,DU,al,Fi,rr){this._+="C"+ +J+","+ +m+","+ +DU+","+ +al+","+(this._x1=+Fi)+","+(this._y1=+rr)},
rect:function(J,m,DU,al){this._+="M"+(this._x0=this._x1=+J)+","+(this._y0=this._y1=+m)+"h"+ +DU+"v"+ +al+"h"+-DU+"Z"},
toString:function(){return this._}};
V$U.prototype=qH_.prototype={constructor:V$U,has:function(J){return" "+J in this},
get:function(J){return this[" "+J]},
set:function(J,m){this[" "+J]=m;return this},
remove:function(J){J=" "+J;return J in this&&delete this[J]},
clear:function(){for(var J in this)J[0]===" "&&delete this[J]},
keys:function(){var J=[],m;for(m in this)m[0]===" "&&J.push(m.slice(1));return J},
values:function(){var J=[],m;for(m in this)m[0]===" "&&J.push(this[m]);return J},
entries:function(){var J=[],m;for(m in this)m[0]===" "&&J.push({key:m.slice(1),value:this[m]});return J},
size:function(){var J=0,m;for(m in this)m[0]===" "&&++J;return J},
empty:function(){for(var J in this)if(J[0]===" ")return!1;return!0},
each:function(J){for(var m in this)m[0]===" "&&J(this[m],m.slice(1),this)}};
var l8=qH_.prototype;fHU.prototype=function(J,m){var DU=new fHU;if(J instanceof fHU)J.each(function(rr){DU.add(rr)});
else if(J){var al=-1,Fi=J.length;if(m==null)for(;++al<Fi;)DU.add(J[al]);else for(;++al<Fi;)DU.add(m(J[al],al,J))}return DU}.prototype={constructor:fHU,
has:l8.has,add:function(J){this[" "+J]=J;return this},
remove:l8.remove,clear:l8.clear,values:l8.keys,size:l8.size,empty:l8.empty,each:l8.each};var PsY={},ZOU={},SHk=x8V(",").parse,Tmb=x8V("\t").parse;QiE(SHk);QiE(Tmb);var NB=function(J,m,DU){m=new tnr(m==null?Q1z:m,DU==null?Bpt:DU,NaN,NaN,NaN,NaN);return J==null?m:m.addAll(J)}.prototype=tnr.prototype;
NB.copy=function(){var J=new tnr(this._x,this._y,this._x0,this._y0,this._x1,this._y1),m=this._root,DU,al;if(!m)return J;if(!m.length)return J._root=pkb(m),J;for(DU=[{source:m,target:J._root=Array(4)}];m=DU.pop();)for(var Fi=0;Fi<4;++Fi)if(al=m.source[Fi])al.length?DU.push({source:al,target:m.target[Fi]=Array(4)}):m.target[Fi]=pkb(al);return J};
NB.add=function(J){var m=+this._x.call(null,J),DU=+this._y.call(null,J);return BmV(this.cover(m,DU),m,DU,J)};
NB.addAll=function(J){var m,DU,al=J.length,Fi,rr,l9=Array(al),Rz=Array(al),i9=Infinity,Z_=Infinity,jD=-Infinity,gz=-Infinity;for(DU=0;DU<al;++DU)isNaN(Fi=+this._x.call(null,m=J[DU]))||isNaN(rr=+this._y.call(null,m))||(l9[DU]=Fi,Rz[DU]=rr,Fi<i9&&(i9=Fi),Fi>jD&&(jD=Fi),rr<Z_&&(Z_=rr),rr>gz&&(gz=rr));jD<i9&&(i9=this._x0,jD=this._x1);gz<Z_&&(Z_=this._y0,gz=this._y1);this.cover(i9,Z_).cover(jD,gz);for(DU=0;DU<al;++DU)BmV(this,l9[DU],Rz[DU],J[DU]);return this};
NB.cover=function(J,m){if(isNaN(J=+J)||isNaN(m=+m))return this;var DU=this._x0,al=this._y0,Fi=this._x1,rr=this._y1;if(isNaN(DU))Fi=(DU=Math.floor(J))+1,rr=(al=Math.floor(m))+1;else if(DU>J||J>Fi||al>m||m>rr){var l9=Fi-DU,Rz=this._root,i9;switch(i9=(m<(al+rr)/2)<<1|J<(DU+Fi)/2){case 0:do{var Z_=Array(4);Z_[i9]=Rz;Rz=Z_}while(l9*=2,Fi=DU+l9,rr=al+l9,J>Fi||m>rr);break;case 1:do Z_=Array(4),Z_[i9]=Rz,Rz=Z_;while(l9*=2,DU=Fi-l9,rr=al+l9,DU>J||m>rr);break;case 2:do Z_=Array(4),Z_[i9]=Rz,Rz=Z_;while(l9*=
2,Fi=DU+l9,al=rr-l9,J>Fi||al>m);break;case 3:do Z_=Array(4),Z_[i9]=Rz,Rz=Z_;while(l9*=2,DU=Fi-l9,al=rr-l9,DU>J||al>m)}this._root&&this._root.length&&(this._root=Rz)}else return this;this._x0=DU;this._y0=al;this._x1=Fi;this._y1=rr;return this};
NB.data=function(){var J=[];this.visit(function(m){if(!m.length){do J.push(m.data);while(m=m.next)}});
return J};
NB.extent=function(J){return arguments.length?this.cover(+J[0][0],+J[0][1]).cover(+J[1][0],+J[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
NB.find=function(J,m,DU){var al=this._x0,Fi=this._y0,rr,l9,Rz,i9,Z_=this._x1,jD=this._y1,gz=[],$K=this._root,VB;$K&&gz.push(new yT($K,al,Fi,Z_,jD));DU==null?DU=Infinity:(al=J-DU,Fi=m-DU,Z_=J+DU,jD=m+DU,DU*=DU);for(;VB=gz.pop();)if(!(!($K=VB.node)||(rr=VB.x0)>Z_||(l9=VB.y0)>jD||(Rz=VB.x1)<al||(i9=VB.y1)<Fi))if($K.length){VB=(rr+Rz)/2;var Lj=(l9+i9)/2;gz.push(new yT($K[3],VB,Lj,Rz,i9),new yT($K[2],rr,Lj,VB,i9),new yT($K[1],VB,l9,Rz,Lj),new yT($K[0],rr,l9,VB,Lj));if($K=(m>=Lj)<<1|J>=VB)VB=gz[gz.length-
1],gz[gz.length-1]=gz[gz.length-1-$K],gz[gz.length-1-$K]=VB}else if(VB=J-+this._x.call(null,$K.data),Lj=m-+this._y.call(null,$K.data),VB=VB*VB+Lj*Lj,VB<DU){var AF=Math.sqrt(DU=VB);al=J-AF;Fi=m-AF;Z_=J+AF;jD=m+AF;AF=$K.data}return AF};
NB.remove=function(J){if(isNaN(i9=+this._x.call(null,J))||isNaN(Z_=+this._y.call(null,J)))return this;var m,DU=this._root,al,Fi=this._x0,rr=this._y0,l9=this._x1,Rz=this._y1,i9,Z_,jD,gz,$K,VB,Lj;if(!DU)return this;if(DU.length)for(;;){($K=i9>=(jD=(Fi+l9)/2))?Fi=jD:l9=jD;(VB=Z_>=(gz=(rr+Rz)/2))?rr=gz:Rz=gz;if(!(m=DU,DU=DU[Lj=VB<<1|$K]))return this;if(!DU.length)break;if(m[Lj+1&3]||m[Lj+2&3]||m[Lj+3&3]){var AF=m;var Hm=Lj}}for(;DU.data!==J;)if(!(al=DU,DU=DU.next))return this;(J=DU.next)&&delete DU.next;
if(al)return J?al.next=J:delete al.next,this;if(!m)return this._root=J,this;J?m[Lj]=J:delete m[Lj];(DU=m[0]||m[1]||m[2]||m[3])&&DU===(m[3]||m[2]||m[1]||m[0])&&!DU.length&&(AF?AF[Hm]=DU:this._root=DU);return this};
NB.removeAll=function(J){for(var m=0,DU=J.length;m<DU;++m)this.remove(J[m]);return this};
NB.root=function(){return this._root};
NB.size=function(){var J=0;this.visit(function(m){if(!m.length){do++J;while(m=m.next)}});
return J};
NB.visit=function(J){var m=[],DU,al=this._root,Fi,rr,l9,Rz,i9;for(al&&m.push(new yT(al,this._x0,this._y0,this._x1,this._y1));DU=m.pop();)if(!J(al=DU.node,rr=DU.x0,l9=DU.y0,Rz=DU.x1,i9=DU.y1)&&al.length){DU=(rr+Rz)/2;var Z_=(l9+i9)/2;(Fi=al[3])&&m.push(new yT(Fi,DU,Z_,Rz,i9));(Fi=al[2])&&m.push(new yT(Fi,rr,Z_,DU,i9));(Fi=al[1])&&m.push(new yT(Fi,DU,l9,Rz,Z_));(Fi=al[0])&&m.push(new yT(Fi,rr,l9,DU,Z_))}};
NB.visitAfter=function(J){var m=[],DU=[],al;for(this._root&&m.push(new yT(this._root,this._x0,this._y0,this._x1,this._y1));al=m.pop();){var Fi=al.node;if(Fi.length){var rr,l9=al.x0,Rz=al.y0,i9=al.x1,Z_=al.y1,jD=(l9+i9)/2,gz=(Rz+Z_)/2;(rr=Fi[0])&&m.push(new yT(rr,l9,Rz,jD,gz));(rr=Fi[1])&&m.push(new yT(rr,jD,Rz,i9,gz));(rr=Fi[2])&&m.push(new yT(rr,l9,gz,jD,Z_));(rr=Fi[3])&&m.push(new yT(rr,jD,gz,i9,Z_))}DU.push(al)}for(;al=DU.pop();)J(al.node,al.x0,al.y0,al.x1,al.y1);return this};
NB.x=function(J){return arguments.length?(this._x=J,this):this._x};
NB.y=function(J){return arguments.length?(this._y=J,this):this._y};
var dKT=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;s$n.prototype=XMS.prototype;XMS.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 iNU,OND={"%":function(J,m){return(J*100).toFixed(m)},
b:function(J){return Math.round(J).toString(2)},
c:function(J){return J+""},
d:function(J){return Math.round(J).toString(10)},
e:function(J,m){return J.toExponential(m)},
f:function(J,m){return J.toFixed(m)},
g:function(J,m){return J.toPrecision(m)},
o:function(J){return Math.round(J).toString(8)},
p:function(J,m){return EW4(J*100,m)},
r:EW4,s:function(J,m){var DU=erU(J,m);if(!DU)return J+"";var al=DU[0];DU=DU[1];DU=DU-(iNU=Math.max(-8,Math.min(8,Math.floor(DU/3)))*3)+1;var Fi=al.length;return DU===Fi?al:DU>Fi?al+Array(DU-Fi+1).join("0"):DU>0?al.slice(0,DU)+"."+al.slice(DU):"0."+Array(1-DU).join("0")+erU(J,Math.max(0,m+DU-1))[0]},
X:function(J){return Math.round(J).toString(16).toUpperCase()},
x:function(J){return Math.round(J).toString(16)}},d81="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),ji0;
(function(J){return ji0=iJ9(J)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Tt.prototype={constructor:Tt,reset:function(){this.s=this.t=0},
add:function(J){cGY(owU,J,this.t);cGY(this,owU.s,this.s);this.s?this.t+=owU.t:this.s=owU.t},
valueOf:function(){return this.s}};
var owU=new Tt,N7=Math.PI,$5=N7/2,oZb=N7/4,IY9=N7*2,fby=N7/180,lu=Math.abs,eun=Math.atan,s8z=Math.atan2,vf=Math.cos,IQ=Math.sin,nwr=Math.sqrt;new Tt;new Tt;new Tt;var AVU=new Tt;(function(J,m,DU,al){return function(Fi){function rr(ht,T_){J(ht,T_)&&Fi.point(ht,T_)}
function l9(ht,T_){$K.point(ht,T_)}
function Rz(){HK.point=l9;$K.lineStart()}
function i9(){HK.point=rr;$K.lineEnd()}
function Z_(ht,T_){Ch.push([ht,T_]);Lj.point(ht,T_)}
function jD(){Lj.lineStart();Ch=[]}
function gz(){Z_(Ch[0][0],Ch[0][1]);Lj.lineEnd();var ht=Lj.clean(),T_=VB.result(),PZ=T_.length,cg;Ch.pop();Hm.push(Ch);Ch=null;if(PZ)if(ht&1){if(PZ=T_[0],(T_=PZ.length-1)>0){AF||(Fi.polygonStart(),AF=!0);Fi.lineStart();for(ht=0;ht<T_;++ht)Fi.point((cg=PZ[ht])[0],cg[1]);Fi.lineEnd()}}else PZ>1&&ht&2&&T_.push(T_.pop().concat(T_.shift())),K4.push(T_.filter(Y_b))}
var $K=m(Fi),VB=c20(),Lj=m(VB),AF=!1,Hm,K4,Ch,HK={point:rr,lineStart:Rz,lineEnd:i9,polygonStart:function(){HK.point=Z_;HK.lineStart=jD;HK.lineEnd=gz;K4=[];Hm=[]},
polygonEnd:function(){HK.point=rr;HK.lineStart=Rz;HK.lineEnd=i9;var ht=K4,T_=ht.length;var PZ=-1;for(var cg=0,qk,FB;++PZ<T_;)cg+=ht[PZ].length;for(qk=Array(cg);--T_>=0;)for(FB=ht[T_],PZ=FB.length;--PZ>=0;)qk[--cg]=FB[PZ];K4=qk;ht=Hm;T_=al[0];cg=al[1];var XB=IQ(cg);PZ=[IQ(T_),-vf(T_),0];FB=qk=0;AVU.reset();XB===1?cg=$5+1E-6:XB===-1&&(cg=-$5-1E-6);XB=0;for(var bk=ht.length;XB<bk;++XB)if(by=(U3=ht[XB]).length){var U3,by,xN=U3[by-1],sK=xN[0],i_=xN[1]/2+oZb,bvU=IQ(i_),bc7=vf(i_);for(i_=0;i_<by;++i_,sK=
ntn,bvU=y$V,bc7=$H,xN=yTn){var yTn=U3[i_],ntn=yTn[0];$H=yTn[1]/2+oZb;var y$V=IQ($H),$H=vf($H),R3=ntn-sK,rVy=R3>=0?1:-1,wM5=rVy*R3,NPn=wM5>N7;bvU*=y$V;AVU.add(s8z(bvU*rVy*IQ(wM5),bc7*$H+bvU*vf(wM5)));qk+=NPn?R3+rVy*IY9:R3;NPn^sK>=T_^ntn>=T_&&(xN=YnY(Dx7(xN),Dx7(yTn)),RxV(xN),sK=YnY(PZ,xN),RxV(sK),sK=(NPn^R3>=0?-1:1)*ATo(sK[2]),cg>sK||cg===sK&&(xN[0]||xN[1]))&&(FB+=NPn^R3>=0?1:-1)}}ht=(qk<-1E-6||qk<1E-6&&AVU<-1E-6)^FB&1;K4.length?(AF||(Fi.polygonStart(),AF=!0),Dv9(K4,ROp,ht,DU,Fi)):ht&&(AF||(Fi.polygonStart(),
AF=!0),Fi.lineStart(),DU(null,null,1,Fi),Fi.lineEnd());AF&&(Fi.polygonEnd(),AF=!1);K4=Hm=null},
sphere:function(){Fi.polygonStart();Fi.lineStart();DU(null,null,1,Fi);Fi.lineEnd();Fi.polygonEnd()}};
return HK}})(function(){return!0},function(J){var m=NaN,DU=NaN,al=NaN,Fi;
return{lineStart:function(){J.lineStart();Fi=1},
point:function(rr,l9){var Rz=rr>0?N7:-N7,i9=lu(rr-m);if(lu(i9-N7)<1E-6)J.point(m,DU=(DU+l9)/2>0?$5:-$5),J.point(al,DU),J.lineEnd(),J.lineStart(),J.point(Rz,DU),J.point(rr,DU),Fi=0;else if(al!==Rz&&i9>=N7){lu(m-al)<1E-6&&(m-=al*1E-6);lu(rr-Rz)<1E-6&&(rr-=Rz*1E-6);i9=m;var Z_=DU,jD=rr,gz,$K,VB=IQ(i9-jD);DU=lu(VB)>1E-6?eun((IQ(Z_)*($K=vf(l9))*IQ(jD)-IQ(l9)*(gz=vf(Z_))*IQ(i9))/(gz*$K*VB)):(Z_+l9)/2;J.point(al,DU);J.lineEnd();J.lineStart();J.point(Rz,DU);Fi=0}J.point(m=rr,DU=l9);al=Rz},
lineEnd:function(){J.lineEnd();m=DU=NaN},
clean:function(){return 2-Fi}}},function(J,m,DU,al){J==null?(DU*=$5,al.point(-N7,DU),al.point(0,DU),al.point(N7,DU),al.point(N7,0),al.point(N7,-DU),al.point(0,-DU),al.point(-N7,-DU),al.point(-N7,0),al.point(-N7,DU)):lu(J[0]-m[0])>1E-6?(J=J[0]<m[0]?N7:-N7,DU=DU*J/2,al.point(-J,DU),al.point(0,DU),al.point(J,DU)):al.point(m[0],m[1])},[-N7,
-$5]);new Tt;new Tt;new Tt;new Tt;uhi.prototype={constructor:uhi,point:function(J,m){this.stream.point(J,m)},
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()}};
vf(30*fby);(function(J){return function(m){var DU=new uhi,al;for(al in J)DU[al]=J[al];DU.stream=m;return DU}})({point:function(J,m){this.stream.point(J*fby,m*fby)}});
t8b(function(J){return nwr(2/(1+J))}).invert=G8(function(J){return 2*ATo(J/2)});
t8b(function(J){return(J=J>1?0:J<-1?N7:Math.acos(J))&&J/IQ(J)}).invert=G8(function(J){return J});
nwr(3);G8(eun);G8(ATo);G8(function(J){return 2*eun(J)});
VM.prototype=XsU.prototype={constructor:VM,count:function(){return this.eachAfter(Zyh)},
each:function(J){var m,DU=[this],al;do{var Fi=DU.reverse();for(DU=[];m=Fi.pop();)if(J(m),m=m.children){var rr=0;for(al=m.length;rr<al;++rr)DU.push(m[rr])}}while(DU.length);return this},
eachAfter:function(J){for(var m,DU=[this],al=[],Fi,rr;m=DU.pop();)if(al.push(m),m=m.children)for(Fi=0,rr=m.length;Fi<rr;++Fi)DU.push(m[Fi]);for(;m=al.pop();)J(m);return this},
eachBefore:function(J){for(var m,DU=[this],al;m=DU.pop();)if(J(m),m=m.children)for(al=m.length-1;al>=0;--al)DU.push(m[al]);return this},
sum:function(J){return this.eachAfter(function(m){for(var DU=+J(m.data)||0,al=m.children,Fi=al&&al.length;--Fi>=0;)DU+=al[Fi].value;m.value=DU})},
sort:function(J){return this.eachBefore(function(m){m.children&&m.children.sort(J)})},
path:function(J){var m=this;var DU=m;var al=J;if(DU!==al){var Fi=DU.ancestors(),rr=al.ancestors(),l9=null;DU=Fi.pop();for(al=rr.pop();DU===al;)l9=DU,DU=Fi.pop(),al=rr.pop();DU=l9}for(al=[m];m!==DU;)m=m.parent,al.push(m);for(m=al.length;J!==DU;)al.splice(m,0,J),J=J.parent;return al},
ancestors:function(){for(var J=this,m=[J];J=J.parent;)m.push(J);return m},
links:function(){var J=this,m=[];J.each(function(DU){DU!==J&&m.push({source:DU.parent,target:DU})});
return m},
copy:function(){return XsU(this).eachBefore(Xxt)}};
(function(J,m){this._=J;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=m}).prototype=Object.create(VM.prototype);
var ab5=new Date,Mni=new Date,NtY=ab(function(){},function(J,m){J.setTime(+J+m)},function(J,m){return m-J});
NtY.every=function(J){J=Math.floor(J);return isFinite(J)&&J>0?J>1?ab(function(m){m.setTime(Math.floor(m/J)*J)},function(m,DU){m.setTime(+m+DU*J)},function(m,DU){return(DU-m)/J}):NtY:null};
ab(function(J){J.setTime(Math.floor(J/1E3)*1E3)},function(J,m){J.setTime(+J+m*1E3)},function(J,m){return(m-J)/1E3},function(J){return J.getUTCSeconds()});
ab(function(J){J.setTime(Math.floor(J/6E4)*6E4)},function(J,m){J.setTime(+J+m*6E4)},function(J,m){return(m-J)/6E4},function(J){return J.getMinutes()});
ab(function(J){var m=J.getTimezoneOffset()*6E4%36E5;m<0&&(m+=36E5);J.setTime(Math.floor((+J-m)/36E5)*36E5+m)},function(J,m){J.setTime(+J+m*36E5)},function(J,m){return(m-J)/36E5},function(J){return J.getHours()});
var M8L=ab(function(J){J.setHours(0,0,0,0)},function(J,m){J.setDate(J.getDate()+m)},function(J,m){return(m-J-(m.getTimezoneOffset()-J.getTimezoneOffset())*6E4)/864E5},function(J){return J.getDate()-1}),XkT=yW(0),W$U=yW(1);
yW(2);yW(3);var zu9=yW(4);yW(5);yW(6);ab(function(J){J.setDate(1);J.setHours(0,0,0,0)},function(J,m){J.setMonth(J.getMonth()+m)},function(J,m){return m.getMonth()-J.getMonth()+(m.getFullYear()-J.getFullYear())*12},function(J){return J.getMonth()});
var Oh=ab(function(J){J.setMonth(0,1);J.setHours(0,0,0,0)},function(J,m){J.setFullYear(J.getFullYear()+m)},function(J,m){return m.getFullYear()-J.getFullYear()},function(J){return J.getFullYear()});
Oh.every=function(J){return isFinite(J=Math.floor(J))&&J>0?ab(function(m){m.setFullYear(Math.floor(m.getFullYear()/J)*J);m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,DU){m.setFullYear(m.getFullYear()+DU*J)}):null};
ab(function(J){J.setUTCSeconds(0,0)},function(J,m){J.setTime(+J+m*6E4)},function(J,m){return(m-J)/6E4},function(J){return J.getUTCMinutes()});
ab(function(J){J.setUTCMinutes(0,0,0)},function(J,m){J.setTime(+J+m*36E5)},function(J,m){return(m-J)/36E5},function(J){return J.getUTCHours()});
var akz=ab(function(J){J.setUTCHours(0,0,0,0)},function(J,m){J.setUTCDate(J.getUTCDate()+m)},function(J,m){return(m-J)/864E5},function(J){return J.getUTCDate()-1}),uqt=NS(0),Cuy=NS(1);
NS(2);NS(3);var ScM=NS(4);NS(5);NS(6);ab(function(J){J.setUTCDate(1);J.setUTCHours(0,0,0,0)},function(J,m){J.setUTCMonth(J.getUTCMonth()+m)},function(J,m){return m.getUTCMonth()-J.getUTCMonth()+(m.getUTCFullYear()-J.getUTCFullYear())*12},function(J){return J.getUTCMonth()});
var cI=ab(function(J){J.setUTCMonth(0,1);J.setUTCHours(0,0,0,0)},function(J,m){J.setUTCFullYear(J.getUTCFullYear()+m)},function(J,m){return m.getUTCFullYear()-J.getUTCFullYear()},function(J){return J.getUTCFullYear()});
cI.every=function(J){return isFinite(J=Math.floor(J))&&J>0?ab(function(m){m.setUTCFullYear(Math.floor(m.getUTCFullYear()/J)*J);m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,DU){m.setUTCFullYear(m.getUTCFullYear()+DU*J)}):null};
var uJz={"-":"",_:" ",0:"0"},WU=/^\s*\d+/,sib=/^%/,tFk=/[\\^$*+?|[\]().{}]/g,lHi;(function(J){lHi=aVK(J);QtE=lHi.utcFormat;B1E=lHi.utcParse;return lHi})({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||QtE("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||B1E("%Y-%m-%dT%H:%M:%S.%LZ");W8("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
W8("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");W8("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");W8("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");W8("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");W8("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");W8("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
W8("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");W8("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");W8("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");W8("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");W8("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var FOt=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(W8);Kb(FOt);var GJk=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(W8);Kb(GJk);var VFh=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(W8);Kb(VFh);var fYE=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(W8);
Kb(fYE);var e4z=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(W8);Kb(e4z);var AGE=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(W8);Kb(AGE);var nWK=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(W8);Kb(nWK);var rGK=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(W8);Kb(rGK);var wkt=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(W8);Kb(wkt);var $8k=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(W8);Kb($8k);var vWp=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(W8);Kb(vWp);var oWK=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(W8);Kb(oWK);var bN0=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(W8);Kb(bN0);var yG9=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(W8);Kb(yG9);var Nmt=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(W8);Kb(Nmt);var lYE=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(W8);Kb(lYE);var JGk=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(W8);Kb(JGk);var kJk=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(W8);Kb(kJk);var U8u=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(W8);Kb(U8u);var KOu=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(W8);Kb(KOu);var h4I=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(W8);Kb(h4I);var LO0=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(W8);Kb(LO0);var m8t=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(W8);Kb(m8t);var qHp=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(W8);Kb(qHp);var HNu=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(W8);Kb(HNu);var x8I=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(W8);Kb(x8I);var PsK=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(W8);Kb(PsK);GV$(A1(300,.5,0),A1(-240,.5,1));GV$(A1(-100,.75,.35),A1(80,1.5,.8));GV$(A1(260,.75,.35),A1(80,1.5,.8));A1();mh();$EM(W8("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
$EM(W8("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
$EM(W8("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
$EM(W8("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
V87.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(J,m){J=+J;m=+m;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(J,m):this._context.moveTo(J,m);break;case 1:this._point=2;default:this._context.lineTo(J,m)}}};
(function(J){function m(DU){return new fkL(J(DU))}
m._curve=J;return m})(function(J){return new V87(J)});
fkL.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(J,m){this._curve.point(m*Math.sin(J),m*-Math.cos(J))}};
j$9.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:THU(this,this._t0,A$U(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(J,m){var DU=NaN;J=+J;m=+m;if(J!==this._x1||m!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(J,m):this._context.moveTo(J,m);break;case 1:this._point=2;break;case 2:this._point=3;THU(this,A$U(this,DU=exU(this,J,m)),DU);break;default:THU(this,this._t0,DU=exU(this,J,m))}this._x0=this._x1;this._x1=J;this._y0=this._y1;this._y1=m;this._t0=DU}}};
(function(J){this._context=new nZb(J)}.prototype=Object.create(j$9.prototype)).point=function(J,m){j$9.prototype.point.call(this,m,J)};
nZb.prototype={moveTo:function(J,m){this._context.moveTo(m,J)},
closePath:function(){this._context.closePath()},
lineTo:function(J,m){this._context.lineTo(m,J)},
bezierCurveTo:function(J,m,DU,al,Fi,rr){this._context.bezierCurveTo(m,J,al,DU,rr,Fi)}};
nU.prototype={constructor:nU,scale:function(J){return J===1?this:new nU(this.k*J,this.x,this.y)},
translate:function(J,m){return J===0&m===0?this:new nU(this.k,this.x+this.k*J,this.y+this.k*m)},
apply:function(J){return[J[0]*this.k+this.x,J[1]*this.k+this.y]},
invert:function(J){return[(J[0]-this.x)/this.k,(J[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new nU(1,0,0);AoM=j0;wY.svg=wY.svg;wY.xhtml=wY.xhtml;wY.xlink=wY.xlink;wY.xml=wY.xml;wY.xmlns=wY.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 pNL="hammer_"+(Math.random()*1E6|0),EPz=function(){var D=document||document;if(!D[pNL]){var Y=function(){(function(R,Z,t,X){function M(ol,hS,QU){return setTimeout(V(ol,QU),hS)}
function W(ol,hS,QU){return Array.isArray(ol)?(z(ol,QU[hS],QU),!0):!1}
function z(ol,hS,QU){var Iz;if(ol)if(ol.forEach)ol.forEach(hS,QU);else if(ol.length!==X){var S0=0;for(Iz=ol.length;S0<Iz;S0++)hS.call(QU,ol[S0],S0,ol)}else for(S0 in ol)ol.hasOwnProperty(S0)&&hS.call(QU,ol[S0],S0,ol)}
function I(ol,hS,QU){for(var Iz=Object.keys(hS),S0=0,yB=Iz.length;S0<yB;S0++)if(!QU||QU&&ol[Iz[S0]]===X)ol[Iz[S0]]=hS[Iz[S0]];return ol}
function F(ol,hS){return I(ol,hS,!0)}
function G(ol,hS,QU){hS=hS.prototype;var Iz=ol.prototype=Object.create(hS);Iz.constructor=ol;Iz._super=hS;QU&&I(Iz,QU)}
function V(ol,hS){return function(){return ol.apply(hS,arguments)}}
function e(ol,hS){return typeof ol=="function"?ol.apply(hS?hS[0]||X:X,hS):ol}
function r(ol,hS,QU){z(U(hS),function(Iz){ol.addEventListener(Iz,QU,!1)})}
function l(ol,hS,QU){z(U(hS),function(Iz){ol.removeEventListener(Iz,QU,!1)})}
function U(ol){return ol.trim().split(/\s+/g)}
function K(ol,hS,QU){if(ol.indexOf&&!QU)return ol.indexOf(hS);for(var Iz=0,S0=ol.length;Iz<S0;Iz++)if(QU&&ol[Iz][QU]==hS||!QU&&ol[Iz]===hS)return Iz;return-1}
function H(ol,hS,QU){for(var Iz=[],S0=[],yB=0,wb=ol.length;yB<wb;yB++){var nL=hS?ol[yB][hS]:ol[yB];K(S0,nL)<0&&Iz.push(ol[yB]);S0[yB]=nL}QU&&(Iz=hS?Iz.sort(function(A1,kK){return A1[hS]>kK[hS]}):Iz.sort());
return Iz}
function c(ol,hS){for(var QU,Iz=hS[0].toUpperCase()+hS.slice(1),S0=0,yB=az.length;S0<yB;S0++)if(QU=(QU=az[S0])?QU+Iz:hS,QU in ol)return QU;return X}
function Q(ol,hS){var QU=this;this.manager=ol;this.callback=hS;this.element=ol.element;this.target=ol.options.inputTarget;this.domHandler=function(Iz){e(ol.options.enable,[ol])&&QU.handler(Iz)};
this.evEl&&r(this.element,this.evEl,this.domHandler);this.evTarget&&r(this.target,this.evTarget,this.domHandler);this.evWin&&r(R,this.evWin,this.domHandler)}
function E(ol){var hS;oI?hS=Ho:eY?hS=KM:j0?hS=Xb:hS=nM;return new hS(ol,B)}
function B(ol,hS,QU){var Iz=QU.pointers.length,S0=QU.changedPointers.length,yB=hS&1&&Iz-S0===0;QU.isFirst=!!yB;QU.isFinal=!!(hS&12&&Iz-S0===0);yB&&(ol.session={});QU.eventType=hS;hS=ol.session;Iz=QU.pointers;S0=Iz.length;hS.firstInput||(hS.firstInput=O(QU));S0>1&&!hS.firstMultiple?hS.firstMultiple=O(QU):S0===1&&(hS.firstMultiple=!1);yB=hS.firstInput;var wb=(S0=hS.firstMultiple)?S0.center:yB.center,nL=QU.center=Wo(Iz);QU.timeStamp=oz();QU.deltaTime=QU.timeStamp-yB.timeStamp;QU.angle=AS(wb,nL);QU.distance=
VU(wb,nL);yB=QU.center;wb=hS.offsetDelta||{};nL=hS.prevDelta||{};var A1=hS.prevInput||{};if(QU.eventType===1||A1.eventType===4)nL=hS.prevDelta={x:A1.deltaX||0,y:A1.deltaY||0},wb=hS.offsetDelta={x:yB.x,y:yB.y};QU.deltaX=nL.x+(yB.x-wb.x);QU.deltaY=nL.y+(yB.y-wb.y);QU.offsetDirection=Sb(QU.deltaX,QU.deltaY);S0?(yB=S0.pointers,yB=VU(Iz[0],Iz[1],mh)/VU(yB[0],yB[1],mh)):yB=1;QU.scale=yB;S0?(S0=S0.pointers,Iz=AS(Iz[1],Iz[0],mh)-AS(S0[1],S0[0],mh)):Iz=0;QU.rotation=Iz;wb=hS.lastInterval||QU;Iz=QU.timeStamp-
wb.timeStamp;QU.eventType!=8&&(Iz>25||wb.velocity===X)?(yB=wb.deltaX-QU.deltaX,wb=wb.deltaY-QU.deltaY,nL=yB/Iz||0,A1=wb/Iz||0,Iz=nL,S0=A1,nL=v4(nL)>v4(A1)?nL:A1,yB=Sb(yB,wb),hS.lastInterval=QU):(nL=wb.velocity,Iz=wb.velocityX,S0=wb.velocityY,yB=wb.direction);QU.velocity=nL;QU.velocityX=Iz;QU.velocityY=S0;QU.direction=yB;hS=ol.element;a:{for(Iz=QU.srcEvent.target;Iz;){if(Iz==hS){Iz=!0;break a}Iz=Iz.parentNode}Iz=!1}Iz&&(hS=QU.srcEvent.target);QU.target=hS;ol.emit("hammer.input",QU);ol.recognize(QU);
ol.session.prevInput=QU}
function O(ol){for(var hS=[],QU=0;QU<ol.pointers.length;QU++)hS[QU]={clientX:FE(ol.pointers[QU].clientX),clientY:FE(ol.pointers[QU].clientY)};return{timeStamp:oz(),pointers:hS,center:Wo(hS),deltaX:ol.deltaX,deltaY:ol.deltaY}}
function Wo(ol){var hS=ol.length;if(hS===1)return{x:FE(ol[0].clientX),y:FE(ol[0].clientY)};for(var QU=0,Iz=0,S0=0;S0<hS;S0++)QU+=ol[S0].clientX,Iz+=ol[S0].clientY;return{x:FE(QU/hS),y:FE(Iz/hS)}}
function Sb(ol,hS){return ol===hS?1:v4(ol)>=v4(hS)?ol>0?2:4:hS>0?8:16}
function VU(ol,hS,QU){QU||(QU=H4);var Iz=hS[QU[0]]-ol[QU[0]];ol=hS[QU[1]]-ol[QU[1]];return Math.sqrt(Iz*Iz+ol*ol)}
function AS(ol,hS,QU){QU||(QU=H4);return Math.atan2(hS[QU[1]]-ol[QU[1]],hS[QU[0]]-ol[QU[0]])*180/Math.PI}
function nM(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Q.apply(this,arguments)}
function Ho(){this.evEl=TI;this.evWin=E1;Q.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function KM(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Q.apply(this,arguments)}
function Xb(){Q.apply(this,arguments);var ol=V(this.handler,this);this.touch=new KM(this.manager,ol);this.mouse=new nM(this.manager,ol)}
function kE(ol,hS){this.manager=ol;this.set(hS)}
function SD(ol){if(ol.indexOf("none")>-1)return"none";var hS=ol.indexOf("pan-x")>-1,QU=ol.indexOf("pan-y")>-1;return hS&&QU?"pan-x pan-y":hS||QU?hS?"pan-x":"pan-y":ol.indexOf("manipulation")>-1?"manipulation":"auto"}
function co(ol){this.id=e0++;this.manager=null;this.options=F(ol||{},this.defaults);ol=this.options.enable;this.options.enable=ol===X?!0:ol;this.state=1;this.simultaneous={};this.requireFail=[]}
function GE(ol){return ol==16?"down":ol==8?"up":ol==2?"left":ol==4?"right":""}
function TE(ol,hS){return(hS=hS.manager)?hS.get(ol):ol}
function yV(){co.apply(this,arguments)}
function vu(){yV.apply(this,arguments);this.pY=this.pX=null}
function dz(){yV.apply(this,arguments)}
function sy(){co.apply(this,arguments);this._input=this._timer=null}
function D_(){yV.apply(this,arguments)}
function fL(){yV.apply(this,arguments)}
function zT(){co.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function eD(ol,hS){hS=hS||{};var QU=hS.recognizers;hS.recognizers=QU===X?eD.defaults.preset:QU;return new YK(ol,hS)}
function YK(ol,hS){hS=hS||{};this.options=F(hS,eD.defaults);this.options.inputTarget=this.options.inputTarget||ol;this.handlers={};this.session={};this.recognizers=[];this.element=ol;this.input=E(this);this.touchAction=new kE(this,this.options.touchAction);RK(this,!0);z(hS.recognizers,function(QU){var Iz=this.add(new QU[0](QU[1]));QU[2]&&Iz.recognizeWith(QU[2]);QU[3]&&Iz.requireFailure(QU[2])},this)}
function RK(ol,hS){var QU=ol.element;z(ol.options.cssProps,function(Iz,S0){QU.style[c(QU.style,S0)]=hS?Iz:""})}
function Dp(ol,hS){var QU=Z.createEvent("Event");QU.initEvent(ol,!0,!0);QU.gesture=hS;hS.target.dispatchEvent(QU)}
var az=" webkit moz MS ms o".split(" "),EL=Z.createElement("div"),FE=Math.round,v4=Math.abs,oz=Date.now,e0=1,Cj=/mobile|tablet|ip(ad|hone|od)|android/i,j0="ontouchstart"in R,oI=c(R,"PointerEvent")!==X,eY=j0&&Cj.test(navigator.userAgent),H4=["x","y"],mh=["clientX","clientY"];Q.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(R,this.evWin,this.domHandler)}};
var QI={mousedown:1,mousemove:2,mouseup:4};G(nM,Q,{handler:function(ol){var hS=QI[ol.type];hS&1&&ol.button===0&&(this.pressed=!0);hS&2&&ol.which!==1&&(hS=4);this.pressed&&this.allow&&(hS&4&&(this.pressed=!1),this.callback(this.manager,hS,{pointers:[ol],changedPointers:[ol],pointerType:"mouse",srcEvent:ol}))}});
var aJ={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ZO={2:"touch",3:"pen",4:"mouse",5:"kinect"},TI="pointerdown",E1="pointermove pointerup pointercancel";R.MSPointerEvent&&(TI="MSPointerDown",E1="MSPointerMove MSPointerUp MSPointerCancel");G(Ho,Q,{handler:function(ol){var hS=this.store,QU=!1,Iz=ol.type.toLowerCase().replace("ms","");Iz=aJ[Iz];var S0=ZO[ol.pointerType]||ol.pointerType;Iz&1&&(ol.button===0||S0=="touch")?hS.push(ol):Iz&12&&(QU=!0);var yB=K(hS,ol.pointerId,"pointerId");
yB<0||(hS[yB]=ol,this.callback(this.manager,Iz,{pointers:hS,changedPointers:[ol],pointerType:S0,srcEvent:ol}),QU&&hS.splice(yB,1))}});
var vD={touchstart:1,touchmove:2,touchend:4,touchcancel:8};G(KM,Q,{handler:function(ol){var hS=vD[ol.type];var QU=Array.prototype.slice.call(ol.touches,0);var Iz=this.targetIds;if(hS&3&&QU.length===1)Iz[QU[0].identifier]=!0,Iz=[QU,QU];else{var S0,yB=Array.prototype.slice.call(ol.targetTouches,0),wb=Array.prototype.slice.call(ol.changedTouches,0),nL=[];if(hS===1)for(QU=0,S0=yB.length;QU<S0;QU++)Iz[yB[QU].identifier]=!0;QU=0;for(S0=wb.length;QU<S0;QU++)Iz[wb[QU].identifier]&&nL.push(wb[QU]),hS&12&&
delete Iz[wb[QU].identifier];Iz=nL.length?[H(yB.concat(nL),"identifier",!0),nL]:void 0}Iz&&this.callback(this.manager,hS,{pointers:Iz[0],changedPointers:Iz[1],pointerType:"touch",srcEvent:ol})}});
G(Xb,Q,{handler:function(ol,hS,QU){var Iz=QU.pointerType=="mouse";if(QU.pointerType=="touch")this.mouse.allow=!1;else if(Iz&&!this.mouse.allow)return;hS&12&&(this.mouse.allow=!0);this.callback(ol,hS,QU)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ch=c(EL.style,"touchAction"),U9=ch!==X;kE.prototype={set:function(ol){ol=="compute"&&(ol=this.compute());U9&&(this.manager.element.style[ch]=ol);this.actions=ol.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var ol=[];z(this.manager.recognizers,function(hS){e(hS.options.enable,[hS])&&(ol=ol.concat(hS.getTouchAction()))});
return SD(ol.join(" "))},
preventDefaults:function(ol){if(!U9){var hS=ol.srcEvent;ol=ol.offsetDirection;if(this.manager.session.prevented)hS.preventDefault();else{var QU=this.actions,Iz=QU.indexOf("none")>-1,S0=QU.indexOf("pan-y")>-1;QU=QU.indexOf("pan-x")>-1;if(Iz||S0&&QU||S0&&ol&6||QU&&ol&24)return this.preventSrc(hS)}}},
preventSrc:function(ol){this.manager.session.prevented=!0;ol.preventDefault()}};
co.prototype={defaults:{},set:function(ol){I(this.options,ol);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(ol){if(W(ol,"recognizeWith",this))return this;var hS=this.simultaneous;ol=TE(ol,this);hS[ol.id]||(hS[ol.id]=ol,ol.recognizeWith(this));return this},
dropRecognizeWith:function(ol){if(W(ol,"dropRecognizeWith",this))return this;ol=TE(ol,this);delete this.simultaneous[ol.id];return this},
requireFailure:function(ol){if(W(ol,"requireFailure",this))return this;var hS=this.requireFail;ol=TE(ol,this);K(hS,ol)===-1&&(hS.push(ol),ol.requireFailure(this));return this},
dropRequireFailure:function(ol){if(W(ol,"dropRequireFailure",this))return this;ol=TE(ol,this);ol=K(this.requireFail,ol);ol>-1&&this.requireFail.splice(ol,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(ol){return!!this.simultaneous[ol.id]},
emit:function(ol){function hS(S0){QU.manager.emit(QU.options.event+(S0?Iz&16?"cancel":Iz&8?"end":Iz&4?"move":Iz&2?"start":"":""),ol)}
var QU=this,Iz=this.state;Iz<8&&hS(!0);hS();Iz>=8&&hS(!0)},
tryEmit:function(ol){if(this.canEmit())return this.emit(ol);this.state=32},
canEmit:function(){for(var ol=0;ol<this.requireFail.length;ol++)if(!(this.requireFail[ol].state&33))return!1;return!0},
recognize:function(ol){ol=I({},ol);e(this.options.enable,[this,ol])?(this.state&56&&(this.state=1),this.state=this.process(ol),this.state&30&&this.tryEmit(ol)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
G(yV,co,{defaults:{pointers:1},attrTest:function(ol){var hS=this.options.pointers;return hS===0||ol.pointers.length===hS},
process:function(ol){var hS=this.state,QU=ol.eventType,Iz=hS&6;ol=this.attrTest(ol);return Iz&&(QU&8||!ol)?hS|16:Iz||ol?QU&4?hS|8:hS&2?hS|4:2:32}});
G(vu,yV,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var ol=this.options.direction;if(ol===30)return["none"];var hS=[];ol&6&&hS.push("pan-y");ol&24&&hS.push("pan-x");return hS},
directionTest:function(ol){var hS=this.options,QU=!0,Iz=ol.distance,S0=ol.direction,yB=ol.deltaX,wb=ol.deltaY;S0&hS.direction||(hS.direction&6?(S0=yB===0?1:yB<0?2:4,QU=yB!=this.pX,Iz=Math.abs(ol.deltaX)):(S0=wb===0?1:wb<0?8:16,QU=wb!=this.pY,Iz=Math.abs(ol.deltaY)));ol.direction=S0;return QU&&Iz>hS.threshold&&S0&hS.direction},
attrTest:function(ol){return yV.prototype.attrTest.call(this,ol)&&(this.state&2||!(this.state&2)&&this.directionTest(ol))},
emit:function(ol){this.pX=ol.deltaX;this.pY=ol.deltaY;var hS=GE(ol.direction);hS&&this.manager.emit(this.options.event+hS,ol);this._super.emit.call(this,ol)}});
G(dz,yV,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ol){return this._super.attrTest.call(this,ol)&&(Math.abs(ol.scale-1)>this.options.threshold||this.state&2)},
emit:function(ol){this._super.emit.call(this,ol);ol.scale!==1&&this.manager.emit(this.options.event+(ol.scale<1?"in":"out"),ol)}});
G(sy,co,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(ol){var hS=this.options,QU=ol.pointers.length===hS.pointers,Iz=ol.distance<hS.threshold,S0=ol.deltaTime>hS.time;this._input=ol;if(!Iz||!QU||ol.eventType&12&&!S0)this.reset();else if(ol.eventType&1)this.reset(),this._timer=M(function(){this.state=8;this.tryEmit()},hS.time,this);
else if(ol.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(ol){this.state===8&&(ol&&ol.eventType&4?this.manager.emit(this.options.event+"up",ol):(this._input.timeStamp=oz(),this.manager.emit(this.options.event,this._input)))}});
G(D_,yV,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ol){return this._super.attrTest.call(this,ol)&&(Math.abs(ol.rotation)>this.options.threshold||this.state&2)}});
G(fL,yV,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return vu.prototype.getTouchAction.call(this)},
attrTest:function(ol){var hS=this.options.direction;if(hS&30)var QU=ol.velocity;else hS&6?QU=ol.velocityX:hS&24&&(QU=ol.velocityY);return this._super.attrTest.call(this,ol)&&hS&ol.direction&&v4(QU)>this.options.velocity&&ol.eventType&4},
emit:function(ol){var hS=GE(ol.direction);hS&&this.manager.emit(this.options.event+hS,ol);this.manager.emit(this.options.event,ol)}});
G(zT,co,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(ol){var hS=this.options,QU=ol.pointers.length===hS.pointers,Iz=ol.distance<hS.threshold,S0=ol.deltaTime<hS.time;this.reset();if(ol.eventType&1&&this.count===0)return this.failTimeout();if(Iz&&S0&&QU){if(ol.eventType!=4)return this.failTimeout();QU=this.pTime?ol.timeStamp-this.pTime<hS.interval:!0;Iz=!this.pCenter||VU(this.pCenter,ol.center)<hS.posThreshold;this.pTime=ol.timeStamp;this.pCenter=ol.center;Iz&&QU?this.count+=1:this.count=1;this._input=ol;if(this.count%hS.taps===0)return this.hasRequireFailures()?
(this._timer=M(function(){this.state=8;this.tryEmit()},hS.interval,this),2):8}return 32},
failTimeout:function(){this._timer=M(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))}});
eD.VERSION="2.0.2";eD.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[D_,{enable:!1}],[dz,{enable:!1},["rotate"]],[fL,{direction:6}],[vu,{direction:6},["swipe"]],[zT],[zT,{event:"doubletap",taps:2},["tap"]],[sy]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};YK.prototype={set:function(ol){I(this.options,ol);return this},
stop:function(ol){this.session.stopped=ol?2:1},
recognize:function(ol){var hS=this.session;if(!hS.stopped){this.touchAction.preventDefaults(ol);var QU=this.recognizers,Iz=hS.curRecognizer;if(!Iz||Iz&&Iz.state&8)Iz=hS.curRecognizer=null;for(var S0=0,yB=QU.length;S0<yB;S0++){var wb=QU[S0];hS.stopped===2||Iz&&wb!=Iz&&!wb.canRecognizeWith(Iz)?wb.reset():wb.recognize(ol);!Iz&&wb.state&14&&(Iz=hS.curRecognizer=wb)}}},
get:function(ol){if(ol instanceof co)return ol;for(var hS=this.recognizers,QU=0;QU<hS.length;QU++)if(hS[QU].options.event==ol)return hS[QU];return null},
add:function(ol){if(W(ol,"add",this))return this;var hS=this.get(ol.options.event);hS&&this.remove(hS);this.recognizers.push(ol);ol.manager=this;this.touchAction.update();return ol},
remove:function(ol){if(W(ol,"remove",this))return this;var hS=this.recognizers;ol=this.get(ol);hS.splice(K(hS,ol),1);this.touchAction.update();return this},
on:function(ol,hS){var QU=this.handlers;z(U(ol),function(Iz){QU[Iz]=QU[Iz]||[];QU[Iz].push(hS)});
return this},
off:function(ol,hS){var QU=this.handlers;z(U(ol),function(Iz){hS?QU[Iz].splice(K(QU[Iz],hS),1):delete QU[Iz]});
return this},
emit:function(ol,hS){this.options.domEvents&&Dp(ol,hS);var QU=this.handlers[ol]&&this.handlers[ol].slice();if(QU&&QU.length){hS.type=ol;hS.preventDefault=function(){hS.srcEvent.preventDefault()};
ol=0;for(var Iz=QU.length;ol<Iz;ol++)QU[ol](hS)}},
destroy:function(){this.element&&RK(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
I(eD,{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:YK,Input:Q,TouchAction:kE,Recognizer:co,AttrRecognizer:yV,Tap:zT,Pan:vu,Swipe:fL,Pinch:dz,Rotate:D_,Press:sy,on:r,off:l,each:z,merge:F,extend:I,inherit:G,bindFn:V,prefixed:c});
R[t]=eD})(window,document,"Hammer");
return window.Hammer}.call({});
Y.DOCUMENT=D;D[pNL]=Y}return D[pNL]};/*

 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 gPU=function(D,Y){if(D.length!==Y.length)return!1;for(var R=0;R<D.length;++R)if(D[R]!==Y[R])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var dWY=_.a(["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"]),iB7=dWY.next();!iB7.done;iB7=dWY.next()){var OBY=iB7.value,cpL=document.createElement("link");cpL.rel="stylesheet";cpL.href=OBY;document.head.appendChild(cpL)};var iCr,c0U,Yk5,ErS,OCj,grl,ByS,pjo;iCr={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};c0U={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:"*"};Yk5={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};ErS=/[a-z0-9*]/;OCj=/U\+/;grl=/^arrow/;ByS=/^space(bar)?/;pjo=/^escape$/;_.nJ={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(D,Y){this._imperativeKeyBindings[D]=Y;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(D,Y){Y=Zgj(Y);for(var R=0;R<Y.length;++R)if(DZl(Y[R],D))return!0;return!1},
_collectKeyBindings:function(){var D=this.behaviors.map(function(Y){return Y.keyBindings});
D.indexOf(this.keyBindings)===-1&&D.push(this.keyBindings);return D},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(R){for(var Z in R)this._addKeyBinding(Z,R[Z])},this);
for(var D in this._imperativeKeyBindings)this._addKeyBinding(D,this._imperativeKeyBindings[D]);for(var Y in this._keyBindings)this._keyBindings[Y].sort(function(R,Z){R=R[0].hasModifiers;return R===Z[0].hasModifiers?0:R?-1:1})},
_addKeyBinding:function(D,Y){Zgj(D).forEach(function(R){this._keyBindings[R.event]=this._keyBindings[R.event]||[];this._keyBindings[R.event].push([R,Y])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(D){var Y=this._onKeyBindingEvent.bind(this,this._keyBindings[D]);this._boundKeyHandlers.push([this.keyEventTarget,D,Y]);this.keyEventTarget.addEventListener(D,Y)},this)},
_unlistenKeyEventListeners:function(){for(var D,Y,R;this._boundKeyHandlers.length;)D=this._boundKeyHandlers.pop(),Y=D[0],R=D[1],D=D[2],Y.removeEventListener(R,D)},
_onKeyBindingEvent:function(D,Y){this.stopKeyboardEventPropagation&&Y.stopPropagation();if(!Y.defaultPrevented)for(var R=0;R<D.length;R++){var Z=D[R][0],t=D[R][1];if(DZl(Z,Y)&&(this._triggerKeyHandler(Z,t,Y),Y.defaultPrevented))break}},
_triggerKeyHandler:function(D,Y,R){var Z=Object.create(D);Z.keyboardEvent=R;D=new CustomEvent(D.event,{detail:Z,cancelable:!0});this[Y].call(this,D);D.defaultPrevented&&R.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
*/
_.Jj({is:"iron-a11y-keys",_template:null,behaviors:[_.nJ],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(D){this.keyEventTarget=D},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(D){this.fire("keys-pressed",D.detail,{})}});_.rp={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(D){this._setFocused(D.type==="focus")},
_disabledChanged:function(D){this.setAttribute("aria-disabled",D?"true":"false");this.style.pointerEvents=D?"none":"";D?(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 wp={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(D){this._detectKeyboardFocus(D);D||this._setPressed(!1)},
_detectKeyboardFocus:function(D){this._setReceivedFocusFromKeyboard(!this.pointerDown&&D)},
_userActivate:function(D){this.active!==D&&(this.active=D,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(D){D=D.detail.keyboardEvent;var Y=_.oR(D).localTarget;this.isLightDescendant(Y)||(D.preventDefault(),D.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(D){D=_.oR(D.detail.keyboardEvent).localTarget;this.isLightDescendant(D)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(D,Y){Y&&Y!=D&&this.hasAttribute(Y)&&this.removeAttribute(Y)},
_activeChanged:function(D){this.toggles?this.setAttribute(this.ariaActiveAttribute,D?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},DP_=[_.nJ,
wp];_.$l={IronButtonState:DP_,IronButtonStateImpl:wp};_.v6={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.o1=function(D){_.o1[" "](D);this.type=D&&D.type||"default";this.key=D&&D.key;D&&"value"in D&&(this.value=D.value)};
_.o1.prototype.byKey=function(D){this.key=D;return this.value};
_.YF.Object.defineProperties(_.o1.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var D=this.type,Y=this.key;if(D&&Y)return b_[D]&&b_[D][Y]},
set:function(D){var Y=this.type,R=this.key;Y&&R&&(Y=b_[Y]=b_[Y]||{},D==null?delete Y[R]:Y[R]=D)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var D=b_[this.type];return D?Object.keys(D).map(function(Y){return b_[this.type][Y]},this):[]}}});
_.o1[" "]=function(){};
var b_={};_.Jj({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(D,Y,R){D=new _.o1({type:D,key:Y});R!==void 0&&R!==D.value?D.value=R:this.value!==D.value&&(this.value=D.value);return D},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(D){D&&(this.value=this)},
byKey:function(D){return(new _.o1({type:this.type,key:D})).value}});var Ymz;Ymz=null;_.ym={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Ymz=new _.o1({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return Ymz&&Ymz.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(D){this.invalid=D===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(D);return!this.invalid},
_getValidity:function(D){return this.hasValidator()?this._validator.validate(D):!0}};var RFY={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"}},ZHE=[_.v6,
_.ym,RFY];_.Jj({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 _.o1({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(D){return this.name+":"+D},this)},
applyIcon:function(D,Y){this.removeIcon(D);if(Y=this._cloneIcon(Y,this.rtlMirroring&&this._targetIsRTL(D))){var R=_.oR(D.root||D);R.insertBefore(Y,R.childNodes[0]);return D._svgIcon=Y}return null},
removeIcon:function(D){D._svgIcon&&(_.oR(D.root||D).removeChild(D._svgIcon),D._svgIcon=null)},
_targetIsRTL:function(D){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(D&&D.nodeType!==Node.ELEMENT_NODE&&(D=D.host),this.__targetIsRTL=D&&window.getComputedStyle(D).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 D=Object.create(null);_.oR(this).querySelectorAll("[id]").forEach(function(Y){D[Y.id]=Y});
return D},
_cloneIcon:function(D,Y){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[D],this.size,Y)},
_prepareSvgClone:function(D,Y,R){if(D){D=D.cloneNode(!0);var Z=document.createElementNS("http://www.w3.org/2000/svg","svg");Y=D.getAttribute("viewBox")||"0 0 "+Y+" "+Y;var t="pointer-events: none; display: block; width: 100%; height: 100%;";R&&D.hasAttribute("mirror-in-rtl")&&(t+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");Z.setAttribute("viewBox",Y);Z.setAttribute("preserveAspectRatio","xMidYMid meet");Z.setAttribute("focusable","false");Z.style&&(Z.style.cssText=
t);Z.appendChild(D).removeAttribute("id");return Z}return null}});var tGL=function(D){this.multi=!1;this.selection=[];this.selectCallback=D};
_.u=tGL.prototype;_.u.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.u.clear=function(D){this.selection.slice().forEach(function(Y){(!D||D.indexOf(Y)<0)&&this.setItemSelected(Y,!1)},this)};
_.u.isSelected=function(D){return this.selection.indexOf(D)>=0};
_.u.setItemSelected=function(D,Y){if(D!=null&&Y!==this.isSelected(D)){if(Y)this.selection.push(D);else{var R=this.selection.indexOf(D);R>=0&&this.selection.splice(R,1)}this.selectCallback&&this.selectCallback(D,Y)}};
_.u.select=function(D){this.multi?this.toggle(D):this.get()!==D&&(this.setItemSelected(this.get(),!1),this.setItemSelected(D,!0))};
_.u.toggle=function(D){this.setItemSelected(D,!this.isSelected(D))};_.gd={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 tGL(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.oR(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(D){return this.items?this.items.indexOf(D):-1},
select:function(D){this.selected=D},
selectPrevious:function(){var D=this.items.length,Y=D-1;this.selected!==void 0&&(Y=(Number(this._valueToIndex(this.selected))-1+D)%D);this.selected=this._indexToValue(Y)},
selectNext:function(){var D=0;this.selected!==void 0&&(D=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(D)},
selectIndex:function(D){this.select(this._indexToValue(D))},
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(D){this.listen(this,D,"_activateHandler")},
_removeListener:function(D){this.unlisten(this,D,"_activateHandler")},
_activateEventChanged:function(D,Y){this._removeListener(Y);this._addListener(D)},
_updateItems:function(){var D=_.oR(this).queryDistributedElements(this.selectable||"*");D=Array.prototype.filter.call(D,this._bindFilterItem);this._setItems(D)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var D=this._valueToItem(this.selected);D?this._selection.select(D):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(D){return!this._excludedLocalNames[D.localName]},
_valueToItem:function(D){return D==null?null:this.items[this._valueToIndex(D)]},
_valueToIndex:function(D){if(this.attrForSelected)for(var Y=0,R;R=this.items[Y];Y++){if(this._valueForItem(R)==D)return Y}else return Number(D)},
_indexToValue:function(D){if(this.attrForSelected){if(D=this.items[D])return this._valueForItem(D)}else return D},
_valueForItem:function(D){if(!D)return null;if(!this.attrForSelected)return D=this.indexOf(D),D===-1?null:D;var Y=D[M7(this.attrForSelected)];return Y!=void 0?Y:D.getAttribute(this.attrForSelected)},
_applySelection:function(D,Y){this.selectedClass&&this.toggleClass(this.selectedClass,Y,D);this.selectedAttribute&&this.toggleAttribute.call(D,this.selectedAttribute,Y);this._selectionChange();this.fire("iron-"+(Y?"select":"deselect"),{item:D})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(D){return _.oR(D).observeNodes(function(Y){this._updateItems();this._updateSelected();this.fire("iron-items-changed",Y,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(D){D=D.target;for(var Y=this.items;D&&D!=this;){var R=Y.indexOf(D);if(R>=0){Y=this._indexToValue(R);this._itemActivate(Y,D);break}D=D.parentNode}},
_itemActivate:function(D,Y){this.fire("iron-activate",{selected:D,item:Y},{cancelable:!0}).defaultPrevented||this.select(D)}};var sPE={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(D){this.multi?this._toggleSelected(D):this.selected=D},
multiChanged:function(D){this._selection.multi=D;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(D){return this._indexToValue(this.indexOf(D))},this).filter(function(D){return D!=null},this)):_.gd._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(D){D=D||[];D=(this._valuesToItems(D)||[]).filter(function(R){return R!==null&&R!==void 0});
this._selection.clear(D);for(var Y=0;Y<D.length;Y++)this._selection.setItemSelected(D[Y],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var D=this._selection.get();this.multi?(this._setSelectedItems(D),this._setSelectedItem(D.length?D[0]:null)):D!==null&&D!==void 0?(this._setSelectedItems([D]),this._setSelectedItem(D)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(D){var Y=this.selectedValues.indexOf(D);Y<0?this.push("selectedValues",D):this.splice("selectedValues",Y,1)},
_valuesToItems:function(D){return D==null?null:D.map(function(Y){return this._valueToItem(Y)},this)}},XKE=[_.gd,
sPE];var uUU;
_.NK={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(D){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var Y=this._valueToItem(D);Y&&Y.hasAttribute("disabled")||(this._setFocusedItem(Y),sPE.select.apply(this,arguments))},
_resetTabindices:function(){var D=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(Y){Y.setAttribute("tabindex",Y===D?"0":"-1");Y.setAttribute("aria-selected",this._selection.isSelected(Y))},this)},
_updateMultiselectable:function(D){D?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(D){if(this._MODIFIER_KEYS.indexOf(D.key)===-1){this.cancelDebouncer("_clearSearchText");var Y=this._searchText||"";Y+=(D.key&&D.key.length==1?D.key:String.fromCharCode(D.keyCode)).toLocaleLowerCase();D=Y.length;for(var R=0,Z;Z=this.items[R];R++)if(!Z.hasAttribute("disabled")){var t=this.attrForItemTitle||"textContent";t=(Z[t]||Z.getAttribute(t)||"").trim();if(!(t.length<D)&&t.slice(0,D).toLocaleLowerCase()==Y){this._setFocusedItem(Z);break}}this._searchText=Y;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var D=this.items.length,Y=Number(this.indexOf(this.focusedItem)),R=1;R<D+1;R++){var Z=this.items[(Y-R+D)%D];if(!Z.hasAttribute("disabled")){var t=_.oR(Z).getOwnerRoot()||document;this._setFocusedItem(Z);if(_.oR(t).activeElement==Z)break}}},
_focusNext:function(){for(var D=this.items.length,Y=Number(this.indexOf(this.focusedItem)),R=1;R<D+1;R++){var Z=this.items[(Y+R)%D];if(!Z.hasAttribute("disabled")){var t=_.oR(Z).getOwnerRoot()||document;this._setFocusedItem(Z);if(_.oR(t).activeElement==Z)break}}},
_applySelection:function(D,Y){Y?D.setAttribute("aria-selected","true"):D.setAttribute("aria-selected","false");_.gd._applySelection.apply(this,arguments)},
_focusedItemChanged:function(D,Y){Y&&Y.setAttribute("tabindex","-1");!D||D.hasAttribute("disabled")||this.disabled||(D.setAttribute("tabindex","0"),D.focus())},
_onIronItemsChanged:function(D){D.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var D=this.getAttribute("tabindex");_.NK._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",D);_.NK._shiftTabPressed=!1},1)},
_onFocus:function(D){!_.NK._shiftTabPressed&&(D=_.oR(D).rootTarget,D===this||typeof D.tabIndex==="undefined"||this.isLightDescendant(D))&&(this._defaultFocusAsync=this.async(function(){var Y=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);Y?this._setFocusedItem(Y):this.items[0]&&this._focusNext()}))},
_onUpKey:function(D){this._focusPrevious();D.detail.keyboardEvent.preventDefault()},
_onDownKey:function(D){this._focusNext();D.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var D=this.focusedItem;D&&D.blur()},
_onKeydown:function(D){this.keyboardEventMatchesKeys(D,"up down esc")||this._focusWithKeyboardEvent(D);D.stopPropagation()},
_activateHandler:function(D){_.gd._activateHandler.call(this,D);D.stopPropagation()},
_disabledChanged:function(D){D?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};uUU=[XKE,_.nJ,_.NK];_.a4V={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(D){this.focusedItem&&(this.focusedItem.click(),D.detail.keyboardEvent.preventDefault())},
_onDownKey:function(D){this.focusedItem&&(this.focusedItem.click(),D.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(D){return D.ctrlKey||D.shiftKey||D.altKey||D.metaKey},
_onLeftKey:function(D){this._isSpecialKey(D.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),D.detail.keyboardEvent.preventDefault())},
_onRightKey:function(D){this._isSpecialKey(D.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),D.detail.keyboardEvent.preventDefault())},
_onKeydown:function(D){this.keyboardEventMatchesKeys(D,"up down left right esc")||this._focusWithKeyboardEvent(D)}};
_.MG7=[uUU,_.a4V];var CI4;CI4=new Set;_.l_={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):(CI4.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(D){this.resizerShouldNotify(D)&&this._notifyDescendant(D)},this),this._fireResize())},
assignParentResizable:function(D){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=D)&&D._interestedResizables.indexOf(this)===-1&&(D._interestedResizables.push(this),D._subscribeIronResize(this))},
stopResizeNotificationsFor:function(D){var Y=this._interestedResizables.indexOf(D);Y>-1&&(this._interestedResizables.splice(Y,1),this._unsubscribeIronResize(D))},
_subscribeIronResize:function(D){D.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(D){D.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(D){this._notifyingDescendant?D.stopPropagation():Hy||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(D){var Y=_.oR(D).rootTarget;Y!==this&&(Y.assignParentResizable(this),this._notifyDescendant(Y),D.stopPropagation())},
_parentResizableChanged:function(D){D&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(D){this.isAttached&&(this._notifyingDescendant=!0,D.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var D=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function R(){document.removeEventListener("readystatechange",R);D()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(Y){Y!==this&&Y._findParent()},this):(CI4.forEach(function(Y){Y!==this&&Y._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?CI4.delete(this):CI4.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
*/
_.WpU={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(D,Y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);Y&&(D==="document"?this.scrollTarget=this._doc:typeof D==="string"?this.scrollTarget=(Y=this.domHost)&&Y.$?Y.$[D]:_.oR(this.ownerDocument).querySelector("#"+D):this._isValidScrollTarget()&&(this._oldScrollTarget=D,this._toggleScrollListener(this._shouldHaveListener,D)))},
_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(D){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,D):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
D)},set _scrollLeft(D){this.scrollTarget===this._doc?window.scrollTo(D,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=D)},scroll:function(D,Y){if(typeof D==="object"){var R=D.left;Y=D.top}else R=D;R=R||0;Y=Y||0;this.scrollTarget===this._doc?window.scrollTo(R,Y):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=R,this.scrollTarget.scrollTop=Y)},
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(D,Y){Y=Y===this._doc?window:Y;D?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),Y.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(Y.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(D){this._shouldHaveListener=D;this._toggleScrollListener(D,this.scrollTarget)}};_.Jj({is:"iron-selector",_template:null,behaviors:[XKE]});var J2={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(D){if(D.timing)for(var Y in D.timing)this.animationTiming[Y]=D.timing[Y];return this.animationTiming},
setPrefixedProperty:function(D,Y,R){for(var Z={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[Y],t,X=0;t=Z[X];X++)D.style[t]=R;D.style[Y]=R},
complete:function(){}};_.Jj({is:"fade-in-animation",_template:null,behaviors:[J2],configure:function(D){return this._effect=new KeyframeEffect(D.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(D))}});_.Jj({is:"fade-out-animation",_template:null,behaviors:[J2],configure:function(D){return this._effect=new KeyframeEffect(D.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(D))}});var zF1=[{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(D,Y){for(var R in Y)D[R]=Y[R]},
_cloneConfig:function(D){var Y={isClone:!0};this._copyProperties(Y,D);return Y},
_getAnimationConfigRecursive:function(D,Y,R){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 Z=D?this.animationConfig[D]:this.animationConfig;Array.isArray(Z)||(Z=[Z]);if(Z)for(var t,X=0;t=Z[X];X++)if(t.animatable)t.animatable._getAnimationConfigRecursive(t.type||D,Y,R);else if(t.id){var M=Y[t.id];
M?(M.isClone||(Y[t.id]=this._cloneConfig(M),M=Y[t.id]),this._copyProperties(M,t)):Y[t.id]=t}else R.push(t)}},
getAnimationConfig:function(D){var Y={},R=[];this._getAnimationConfigRecursive(D,Y,R);for(var Z in Y)R.push(Y[Z]);return R}},
{_configureAnimations:function(D){var Y=[],R=[];if(D.length>0)for(var Z,t=0;Z=D[t];t++){var X=document.createElement(Z.name);if(X.isNeonAnimation){var M=null;X.configure||(X.configure=function(){return null});
M=X.configure(Z);R.push({result:M,config:Z})}else console.warn(this.is+":",Z.name,"not found!")}for(D=0;D<R.length;D++){M=R[D].result;Z=R[D].config;try{typeof M.cancel!="function"&&(M=document.timeline.play(M))}catch(W){M=null,console.warn("Couldnt play","(",Z.name,").",W)}M&&Y.push({neonAnimation:X,config:Z,animation:M})}return Y},
_shouldComplete:function(D){for(var Y=!0,R=0;R<D.length;R++)if(D[R].animation.playState!="finished"){Y=!1;break}return Y},
_complete:function(D){for(var Y=0;Y<D.length;Y++)D[Y].neonAnimation.complete(D[Y].config);for(Y=0;Y<D.length;Y++)D[Y].animation.cancel()},
playAnimation:function(D,Y){var R=this.getAnimationConfig(D);if(R){this._active=this._active||{};this._active[D]&&(this._complete(this._active[D]),delete this._active[D]);var Z=this._configureAnimations(R);if(Z.length==0)this.fire("neon-animation-finish",Y,{bubbles:!1});else for(this._active[D]=Z,R=0;R<Z.length;R++)Z[R].animation.onfinish=function(){this._shouldComplete(Z)&&(this._complete(Z),delete this._active[D],this.fire("neon-animation-finish",Y,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var D in this._active){var Y=this._active[D],R;for(R in Y)Y[R].animation&&Y[R].animation.cancel&&Y[R].animation.cancel()}this._active={}}}];var F3=function(D,Y){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.arg=Y;this.name=this.constructor.name;this.constructor=F3;this.__proto__=F3.prototype};
_.n(F3,Error);var SmY=cA(function(D){var Y=function(){return D.apply(this,arguments)||this};
_.n(Y,D);Y.prototype._marshalArgs=function(R,Z,t){Z=D.prototype._marshalArgs.call(this,R,Z,t);if(this._legacyUndefinedCheck&&Z.length>1)for(t=0;t<Z.length;t++)if(Z[t]===void 0||R[t].wildcard&&Z[t].base===void 0)throw R=R[t].name,new F3("Argument '"+R+"' is undefined.",R);return Z};
Y.prototype._addPropertyEffect=function(R,Z,t){return D.prototype._addPropertyEffect.call(this,R,Z,tE9(t,t&&t.info&&t.info.methodName))};
Y._addTemplatePropertyEffect=function(R,Z,t){return D._addTemplatePropertyEffect.call(this,R,Z,tE9(t))};
return Y}),Tq4=_.Jj.Class;
_.Jj.Class=function(D,Y){return Tq4(D,function(R){return Y?Y(SmY(R)):SmY(R)})};
var jPz=cA(function(D){var Y=SmY(D);D=function(){return Y.apply(this,arguments)||this};
_.n(D,Y);_.YF.Object.defineProperties(D.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return D}),I47=Py.mixin;
Py.mixin=I47?function(D){return jPz(I47(D))}:jPz;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.kl=_.$l.IronButtonState;var RnS=q7;/*

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.
*/
var GPY;_.Fpb="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");GPY=function(){var D=[],Y;var R=R||_.Fpb.length;for(Y=0;Y<8;Y++)D[Y]=_.Fpb[0|Math.random()*R];return D.join("")};var aWr=function(){return Math.random().toString(36).substring(7).split("").join(".")},uQi="@@redux/INIT"+aWr(),WPl="@@redux/REPLACE"+aWr();var zcj=typeof Symbol==="function"&&Symbol.observable||"@@observable";var VGb=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var f4E="top right bottom left width height size weight".split(" "),eFD=typeof MutationObserver!=="undefined",AxD=VGb&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,ncV=function(){this.mutationEventsAdded_=this.JSC$11665_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=SkM(this.refresh.bind(this))},rxE=function(D,
Y){var R=D.observers_;
Y=R.indexOf(Y);~Y&&R.splice(Y,1);!R.length&&D.JSC$11665_connected_&&VGb&&D.JSC$11665_connected_&&(document.removeEventListener("transitionend",D.onTransitionEnd_),window.removeEventListener("resize",D.refresh),D.mutationsObserver_&&(D.mutationsObserver_.disconnect(),AxD&&(HTMLElement.prototype.attachShadow=AxD)),D.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",D.refresh),D.mutationsObserver_=null,D.mutationEventsAdded_=!1,D.JSC$11665_connected_=!1)};
ncV.prototype.refresh=function(){wKV(this)&&this.refresh()};
var wKV=function(D){D=D.observers_.filter(function(Y){return $Pz(Y),Y.activeObservations_.length>0});
D.forEach(function(Y){return vc7(Y)});
return D.length>0},ocD=function(D){if(VGb&&!D.JSC$11665_connected_){document.addEventListener("transitionend",D.onTransitionEnd_);
window.addEventListener("resize",D.refresh);if(eFD){D.mutationsObserver_=new MutationObserver(D.refresh);var Y={attributes:!0,childList:!0,characterData:!0,subtree:!0};D.mutationsObserver_.observe(document,Y);AxD&&(function t(Z){var X=Z.shadowRoot;X&&(D.mutationsObserver_.observe(X,Y),t(X));for(Z=Z.firstElementChild;Z;)t(Z),Z=Z.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Z=AxD.apply(this,_.UN.apply(0,arguments));
D.mutationsObserver_.observe(Z,Y);return Z})}else document.addEventListener("DOMSubtreeModified",D.refresh),D.mutationEventsAdded_=!0;
D.JSC$11665_connected_=!0}};
ncV.prototype.onTransitionEnd_=function(D){var Y=D.propertyName===void 0?"":D.propertyName;f4E.some(function(R){return!!~Y.indexOf(R)})&&this.refresh()};
var bH1=null;var yxb=function(D,Y){for(var R=_.a(Object.keys(Y)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Object.defineProperty(D,Z,{value:Y[Z],enumerable:!1,writable:!1,configurable:!0})};var UP=function(D){var Y;return(D==null?void 0:(Y=D.ownerDocument)==null?void 0:Y.defaultView)||globalThis};var Nqz={x:0,y:0,width:0,height:0},l4V=typeof SVGGraphicsElement!=="undefined"?function(D){return D instanceof UP(D).SVGGraphicsElement}:function(D){return D instanceof UP(D).SVGElement&&typeof D.getBBox==="function"};var JxE=function(D){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=D};
JxE.prototype.isActive=function(){var D=this.target;if(VGb)if(l4V(D)){var Y=D.getBBox();Y={x:0,y:0,width:Y.width,height:Y.height}}else{var R=D.clientWidth,Z=D.clientHeight;if(R||Z){var t=UP(D).getComputedStyle(D);Y=VQ(t["padding-top"]);var X=VQ(t["padding-left"]),M=X+VQ(t["padding-right"]),W=Y+VQ(t["padding-bottom"]),z=VQ(t.width),I=VQ(t.height);t.boxSizing==="border-box"&&(Math.round(z+M)!==R&&(z-=T3i(t,"left","right")+M),Math.round(I+W)!==Z&&(I-=T3i(t,"top","bottom")+W));D!==UP(D).document.documentElement&&
(D=Math.round(z+M)-R,Z=Math.round(I+W)-Z,Math.abs(D)!==1&&(z-=D),Math.abs(Z)!==1&&(I-=Z));Y={x:X,y:Y,width:z,height:I}}else Y=Nqz}else Y=Nqz;this.contentRect_=Y;return Y.width!==this.broadcastWidth||Y.height!==this.broadcastHeight};var kPz=function(D,Y){var R=Y.x;var Z=Y.y;var t=Y.width;Y=Y.height;var X=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);yxb(X,{x:R,y:Z,width:t,height:Y,top:Z,right:R+t,bottom:Y+Z,left:R});yxb(this,{target:D,contentRect:X})};var UP4=function(D,Y){var R=bH1;this.activeObservations_=[];this.observations_=new Map;if(typeof D!=="function")throw new TypeError("Oe");this.callback_=D;this.controller_=R;this.callbackCtx_=Y};
UP4.prototype.observe=function(D){if(D===void 0)throw new TypeError("Pe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(D instanceof UP(D).Element))throw new TypeError("Qe");var Y=this.observations_;Y.has(D)||(Y.set(D,new JxE(D)),D=this.controller_,~D.observers_.indexOf(this)||D.observers_.push(this),D.JSC$11665_connected_||ocD(D),this.controller_.refresh())}};
UP4.prototype.unobserve=function(D){if(D===void 0)throw new TypeError("Pe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(D instanceof UP(D).Element))throw new TypeError("Qe");var Y=this.observations_;Y.has(D)&&(Y.delete(D),Y.size||rxE(this.controller_,this))}};
UP4.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();rxE(this.controller_,this)};
var $Pz=function(D){D.activeObservations_.splice(0);D.observations_.forEach(function(Y){Y.isActive()&&D.activeObservations_.push(Y)})},vc7=function(D){if(D.activeObservations_.length>0){var Y=D.callbackCtx_,R=D.activeObservations_.map(function(Z){var t=Z.target,X=Z.contentRect_;
Z.broadcastWidth=X.width;Z.broadcastHeight=X.height;return new kPz(t,X)});
D.callback_.call(Y,R,Y);D.activeObservations_.splice(0)}};var KJ=function(D){if(!(this instanceof KJ))throw new TypeError("Re");if(!arguments.length)throw new TypeError("Pe");bH1||(bH1=new ncV);this.observer_=new UP4(D,this)};
KJ.prototype.observe=function(D){this.observer_.observe(D)};
KJ.prototype.unobserve=function(D){this.observer_.unobserve(D)};
KJ.prototype.disconnect=function(){this.observer_.disconnect()};var eP$=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:KJ;var Alo="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(" "),ecU={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},fWj=null,jFj=null;var nBl={},rln=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 N3l={text:1},vBn={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Kp1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,hFV={CONSTANT:{isUnwrappable:function(D){return D instanceof hk},
unwrap:$UY},JAVASCRIPT:{isUnwrappable:function(D){return D instanceof _.p$},
unwrap:sKS},HTML:{isUnwrappable:function(D){return D instanceof mS},
unwrap:function(D){return HZ(D)}},
RESOURCE_URL:{isUnwrappable:function(D){return D instanceof ef},
unwrap:_.n$},STRING:{isUnwrappable:function(D){return D instanceof Object},
unwrap:function(D){return String(D)}},
STYLE:{isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D}},
URL:{isUnwrappable:function(D){return vZ(D)},
unwrap:_.oJ}},LpV={CONSTANT:lWM,JAVASCRIPT:lWM,HTML:function(D){D=D instanceof mS?D:qy(String(D).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return HZ(D)},
RESOURCE_URL:lWM,STRING:String,STYLE:lWM,URL:function(D,Y){D=Kp1.test(D)?D:void 0;return D===void 0?Y:D}};var PQr=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Jll=/[\t\n\f\r ]+/,UZl=/[\t\n\f\r ,]+/g,hcU=function(D,Y,R){return R},n2={},mPE=function(){var D=function(){var Z={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",Z):Z}(),Y=D.createHTML(""),R=D.createScript("");
D=D.createScriptURL("");return{INNOCUOUS_STRING:Y,INNOCUOUS_SCRIPT:R,INNOCUOUS_URL:D}}(),A5=mPE.INNOCUOUS_STRING,xZU=mPE.INNOCUOUS_SCRIPT,Hgo=mPE.INNOCUOUS_URL;var qmV=function(D){var Y=QFy(D);return function(R,Z,t,X){return X?Y(X,Z,t,R):A5}}({reportHandler:function(D,Y){if(D)try{throw Error(Y);
}catch(R){_.Nb(R)}},
safeTypesBridge:function(D,Y,R){var Z=hFV[Y];return Z.isUnwrappable(D)&&(Z=Z.unwrap(D,R),Z!==R)?Z:(0,LpV[Y])(String(D),R)},
allowedIdentifierPrefixes:[""]});if(fF!==void 0)throw Error("Se");fF=qmV;if(fF!==qmV)throw Error("Te");rZ("Injectable",[]);var FkU=rZ("Inject",[["token",void 0]]),V_n=rZ("Optional",[]);rZ("Injectable",[]);var fsy=rZ("Self",[]),eXo=rZ("SkipSelf",[]);rZ("Host",[]);var HHE={},xPE=function(){};
xPE.prototype.resolve=function(){throw Error("Ve");};
xPE.prototype.addProvider=function(){throw Error("Ve");};var jso=Function;var PIz=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,QP7=function(){this._reflect=window.Reflect};
_.u=QP7.prototype;_.u.factory=function(D){return function(){return new (Function.prototype.bind.apply(D,[null].concat(_.oK(_.UN.apply(0,arguments)))))}};
_.u._zipTypesAndAnnotations=function(D,Y){var R=typeof D==="undefined"?Array(Y.length):Array(D.length);for(var Z=0;Z<R.length;Z++)R[Z]=typeof D==="undefined"?[]:D[Z]!=Object?[D[Z]]:[],Y&&pPU(Y[Z])&&(R[Z]=R[Z].concat(Y[Z]));return R};
_.u._ownParameters=function(D,Y){if(PIz.exec(D.toString()))return null;if(D.parameters&&D.parameters!==Y.parameters)return D.parameters;var R=D.ctorParameters;return R&&R!==Y.ctorParameters?(Y=typeof R==="function"?R():R,D=Y.map(function(Z){return Z&&Z.type}),Y=Y.map(function(Z){return Z&&gBr(Z.decorators)}),this._zipTypesAndAnnotations(D,Y)):pPU(this._reflect)&&pPU(this._reflect.getOwnMetadata)&&(Y=this._reflect.getOwnMetadata("parameters",D),(R=this._reflect.getOwnMetadata("design:paramtypes",D))||
Y)?this._zipTypesAndAnnotations(R,Y):Array(D.length).fill(void 0)};
_.u.parameters=function(D){if(!D.prototype)return[];var Y=Object.getPrototypeOf(D.prototype).constructor;(D=this._ownParameters(D,Y))||Y===Object||(D=this.parameters(Y));return D||[]};
_.u._ownAnnotations=function(D,Y){if(D.annotations&&D.annotations!==Y.annotations)return D=D.annotations,typeof D==="function"&&D.annotations&&(D=D.annotations),D;if(D.decorators&&D.decorators!==Y.decorators)return gBr(D.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",D)};
_.u.annotations=function(D){var Y=Object.getPrototypeOf(D.prototype).constructor;D=this._ownAnnotations(D,Y)||[];return(Y!==Object?this.annotations(Y):[]).concat(D)};
_.u._ownPropMetadata=function(D,Y){if(D.propMetadata&&D.propMetadata!==Y.propMetadata)return D=D.propMetadata,typeof D==="function"&&D.propMetadata&&(D=D.propMetadata),D;if(D.propDecorators&&D.propDecorators!==Y.propDecorators){var R=D.propDecorators,Z={};Object.keys(R).forEach(function(t){Z[t]=gBr(R[t])});
return Z}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",D)};
_.u.propMetadata=function(D){var Y=Object.getPrototypeOf(D.prototype).constructor,R={};if(Y!==Object){var Z=this.propMetadata(Y);Object.keys(Z).forEach(function(X){R[X]=Z[X]})}var t=this._ownPropMetadata(D,Y);
t&&Object.keys(t).forEach(function(X){var M=[];R.hasOwnProperty(X)&&M.push.apply(M,_.oK(R[X]));M.push.apply(M,_.oK(t[X]));R[X]=M});
return R};
_.u.getter=function(D){return function(Y){return Y[D]}};
_.u.setter=function(D){return function(Y,R){return Y[D]=R}};
_.u.method=function(D){return function(Y,R){if(!Y[D])throw Error("We`"+D);return Y[D].apply(Y,R)}};var Bqz=function(){};var pKz=function(D){this.reflectionCapabilities=D};
_.n(pKz,Bqz);_.u=pKz.prototype;_.u.factory=function(D){return this.reflectionCapabilities.factory(D)};
_.u.parameters=function(D){return this.reflectionCapabilities.parameters(D)};
_.u.annotations=function(D){return this.reflectionCapabilities.annotations(D)};
_.u.propMetadata=function(D){return this.reflectionCapabilities.propMetadata(D)};
_.u.getter=function(D){return this.reflectionCapabilities.getter(D)};
_.u.setter=function(D){return this.reflectionCapabilities.setter(D)};
_.u.method=function(D){return this.reflectionCapabilities.method(D)};var t_i=new pKz(new QP7);var h2=function(D,Y){this.token=D;this.id=Y;if(D===void 0||D===null)throw Error("af");};
_.YF.Object.defineProperties(h2.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return wZ(this.token)}}});
_.YF.Object.defineProperties(h2,{JSC$11707_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return vO.JSC$11711_numberOfKeys}}});
var EcY=function(){this._allKeys=new Map};
EcY.prototype.get=function(D){if(D instanceof h2)return D;if(this._allKeys.has(D))return this._allKeys.get(D);var Y=new h2(D,h2.JSC$11707_numberOfKeys);this._allKeys.set(D,Y);return Y};
_.YF.Object.defineProperties(EcY.prototype,{JSC$11711_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var vO=new EcY;var AmM=function(D,Y,R){this.key=D;this.optional=Y;this.visibility=R},XFM=function(D){return new AmM(D,!1,null)},aso=[],WkM=function(D,Y,R){this.key=D;
this.resolvedFactories=Y;this.multiProvider=R},M_y=function(D,Y,R,Z){this.factory=D;
this.dependencies=Y;this.providerClass=R;this.providerValue=Z};var LJ={},ma=function(D,Y){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=Y===void 0?null:Y;D=_.a(D);for(Y=D.next();!Y.done;Y=D.next())this.addProvider(Y.value)};
_.u=ma.prototype;_.u.addProvider=function(D){this.keyIdToIndex.set(D.key.id,this.keyIds.length);this.providers.push(D);this.keyIds.push(D.key.id);this.objs.push(LJ)};
_.u.resolve=function(D,Y){Y=Y===void 0?HHE:Y;return this._getByKey(vO.get($F(D)),null,Y)};
_.u._new=function(D){if(this.constructedKeyIds[D.key.id])throw YSU(this,D.key);this.constructedKeyIds[D.key.id]=!0;return this._instantiateProvider(D)};
_.u._instantiateProvider=function(D){if(D.multiProvider){for(var Y=Array(D.resolvedFactories.length),R=0;R<D.resolvedFactories.length;++R)Y[R]=this._instantiate(D,D.resolvedFactories[R]);return Y}return this._instantiate(D,D.resolvedFactories[0])};
_.u._instantiate=function(D,Y){var R=this,Z=Y.factory;try{var t=Y.dependencies.map(function(M){return R._getByReflectiveDependency(M)})}catch(M){throw M.addKey&&M.addKey(this,D.key),M;
}try{var X=Z.apply(null,_.oK(t))}catch(M){throw RXr(this,M,D.key);}return X};
_.u._getByReflectiveDependency=function(D){return this._getByKey(D.key,D.visibility,D.optional?null:HHE)};
_.u._getByKey=function(D,Y,R){return D===gcL?this:Y instanceof fsy?this._getByKeySelf(D,R):this._getByKeyDefault(D,R,Y)};
_.u._getObjByKeyId=function(D){for(var Y=0;Y<this.keyIds.length;Y++)if(this.keyIds[Y]===D)return this.objs[Y]===LJ&&(this.objs[Y]=this._new(this.providers[Y])),this.objs[Y];return LJ};
_.u._throwOrNull=function(D,Y){if(Y!==HHE)return Y;throw Dlb(this,D);};
_.u._getByKeySelf=function(D,Y){var R=this._getObjByKeyId(D.id);return R!==LJ?R:this._throwOrNull(D,Y)};
_.u._getByKeyDefault=function(D,Y,R){for(var Z=R=R instanceof eXo?this.parent:this;R instanceof ma;){var t=R._getObjByKeyId(D.id);if(t!==LJ)return t;R=R.parent}t=void 0;if(R!==null)try{var X=R.resolve(D.token,Y);if(X!==LJ)return X}catch(M){t=M}if(!(Z instanceof ma&&rmj(D.token))){if(t)throw t;return this._throwOrNull(D,Y)}for(X=Z;X.parent instanceof ma;)X=X.parent;X.addProvider(zXi({provide:D.token,useClass:D.token}));return X.resolve(D.token,Y)};
_.u.toString=function(){return this.displayName};
_.YF.Object.defineProperties(ma.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+nOj(this,function(D){return' "'+D.key.displayName+'" '}).join(", ")+"])"}}});
var gcL=vO.get($F(xPE));(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,n,m){if(e==Array.prototype||e==Object.prototype)return e;e[n]=m.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 n=0;n<e.length;++n){var m=e[n];if(m&&m.Math==Math)return m}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$";$jscomp.polyfill=function(e,n,m,b){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,n,m,b):$jscomp.polyfillUnisolated(e,n,m,b))};
$jscomp.polyfillUnisolated=function(e,n){var m=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in m))return;m=m[q]}e=e[e.length-1];b=m[e];n=n(b);n!=b&&n!=null&&$jscomp.defineProperty(m,e,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(e,n,m){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<b.length-1;v++){var t=b[v];if(!(t in e))return;e=e[t]}b=b[b.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&m==="es6"?e[b]:null;n=n(m);n!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:n}):n!==m&&($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:n})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(m,b,q){return m==e&&b=="q"&&q==n}}));
return n.q===!0}catch(m){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 n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var n=function(v,t){this.$jscomp$symbol$id_=v;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};
n.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var m="jscomp_symbol_"+e+"_",b=0,q=function(v){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n(m+(v||"")+"_"+b++,v)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<n.length;m++){var b=$jscomp.global[n[m]];typeof b==="function"&&typeof b.prototype[e]!="function"&&$jscomp.defineProperty(b.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 n=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.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,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){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 m(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,t)){var h=new m;$jscomp.defineProperty(f,t,{value:h})}}
function v(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof m)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(n())return e;var t="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("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,t))throw Error("WeakMap key fail: "+f);f[t][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,t)?f[t][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)?delete f[t][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){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(n())return e;var m=new WeakMap,b=function(d){this[0]={};this[1]=t();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=t();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 v(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return v(this,function(d){return d.key})};
b.prototype.values=function(){return v(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"?m.has(h)?h=m.get(h):(k=""+ ++A,m.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}},v=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}})},t=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){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 v=q.entries(),t=v.next();if(t.done||t.value[0]!=b||t.value[1]!=b)return!1;t=v.next();return t.done||t.value[0]==b||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:v.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=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};
m.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
m.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
m.prototype.clear=function(){this.map_.clear();this.size=0};
m.prototype.has=function(b){return this.map_.has(b)};
m.prototype.entries=function(){return this.map_.entries()};
m.prototype.values=function(){return this.map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(b,q){var v=this;this.map_.forEach(function(t){return b.call(q,t,t,v)})};
return m},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function n(m){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(m);var b=new Set(this);m=$jscomp.checkIsValidIterator(m.keys());for(var q=m.next();!q.done;)b.add(q.value),q=m.next();return b}
return e?e:n},"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,n){return e.size<=n.size?{smallerSetIterator:e.keys(),largerSet:n}:{smallerSetIterator:$jscomp.checkIsValidIterator(n.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 n=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;n.XRegExp=e()}})(function(){return function q(n,m,b){function v(d,f){if(!m[d]){if(!n[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(t)return t(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=m[d]={exports:{}};n[d][0].call(f.exports,function(k){var r=n[d][1][k];return v(r?r:k)},f,f.exports,q,n,m,b)}return m[d].exports}
for(var t=typeof require=="function"&&require,A=0;A<b.length;A++)v(b[A]);return v}({1:[function(n,m){m.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 v(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var t=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,t],"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 u={},B;for(B in f)f.hasOwnProperty(B)&&(r=v(f[B],k),u[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=v(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(!u.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+u[L].pattern.replace(t,function(T,U,O){if(U){if(M=u[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,u[L].names[P]?"\\k<"+u[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(n,m){m.exports=function(b){function q(v,t,A,d){return{name:v,value:t,start:A,end:d}}
b.matchRecursive=function(v,t,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),u=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;t=b(t,r);A=b(A,r);if(u){if(u.length>1)throw Error("Cannot use more than one escape character");u=b.escape(u);var E=new RegExp("(?:"+u+"[\\S\\s]|(?:(?!"+b.union([t,A],"",{conjunction:"or"}).source+")[^"+u+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){u&&(p+=(b.exec(v,E,p,"sticky")||[""])[0].length);d=b.exec(v,t,p);r=b.exec(v,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],v.slice(I,F),I,F)),f[1]&&B.push(q(f[1],v.slice(F,J),F,J)),f[2]&&B.push(q(f[2],v.slice(J,D),J,D)),f[3]&&B.push(q(f[3],v.slice(D,p),D,p))):B.push(v.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&v.length>I&&B.push(q(f[0],v.slice(I),I,v.length));
return B}}},
{}],3:[function(n,m){m.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function v(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function t(k){var r="",u=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=v(B[1]);C>u+1&&(r+="\\u"+h(f(u+1)),C>u+2&&(r+="-\\u"+h(f(C-1))));u=v(B[2]||B[1])});
u<65535&&(r+="\\u"+h(f(u+1)),u<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,u){var B=k[1]==="P"||!!k[2],C=u.indexOf("A")>-1;u=q(k[4]||k[3]);var D=A[u];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(u))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){u=q(D.inverseOf);if(!A.hasOwnProperty(u))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[u];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[u][k])||(r=A[u],u=A[u],C="",u.bmp&&!u.isBmpLast&&(C="["+u.bmp+"]"+(u.astral?"|":"")),u.astral&&(C+=u.astral),u.isBmpLast&&u.bmp&&(C+=(u.astral?"|":"")+"["+u.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[u]["b!"]||(A[u]["b!"]=t(A[u].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,u=0;u<k.length;++u){r=k[u];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(n,m){m.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(n,m){m.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(n,m){m.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(n,m){m.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(n,m){var b=n("./xregexp");n("./addons/build")(b);n("./addons/matchrecursive")(b);n("./addons/unicode-base")(b);n("./addons/unicode-blocks")(b);n("./addons/unicode-categories")(b);n("./addons/unicode-properties")(b);n("./addons/unicode-scripts")(b);m.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(n,m){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 v(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function t(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=v(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?v(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 u(a,c){var g;if(v(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=v(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 t(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=u(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=v;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:t(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]=t(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]=t(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]=t(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=t(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:"("});m.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var dPU=window.XRegExp;var iH1=-1,OHL=function(D){addEventListener("pageshow",function(Y){Y.persisted&&(iH1=Y.timeStamp,D(Y))},!0)};var DVU=function(D,Y,R){var Z=cxY,t,X;return function(M){if(Y.value>=0&&(M||R)){var W;if((X=Y.value-((W=t)!=null?W:0))||t===void 0)t=Y.value,Y.delta=X,M=Y.value,Y.rating=M>Z[1]?"poor":M>Z[0]?"needs-improvement":"good",D(Y)}}};var Y0D=function(D){requestAnimationFrame(function(){return requestAnimationFrame(function(){return D()})})};var RIY=function(){var D=performance.getEntriesByType("navigation")[0];if(D&&D.responseStart>0&&D.responseStart<performance.now())return D};var Z97=function(){var D,Y;return(Y=(D=RIY())==null?void 0:D.activationStart)!=null?Y:0};var tVY=function(){var D=D===void 0?-1:D;var Y=RIY(),R="navigate";iH1>=0?R="back-forward-cache":Y&&(document.prerendering||Z97()>0?R="prerender":document.wasDiscarded?R="restore":Y.type&&(R=Y.type.replace(/_/g,"-")));return{name:"LCP",value:D,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:R}};var $lU=new WeakMap;var sZU=function(D){var Y=Y===void 0?{}:Y;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var R=new PerformanceObserver(function(Z){Promise.resolve().then(function(){D(Z.getEntries())})});
R.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},Y));return R}}catch(Z){}};var XlL=function(D){var Y=!1;return function(){Y||(D(),Y=!0)}};var qK=-1,uFE=function(D){document.visibilityState==="hidden"&&qK>-1&&(qK=D.type==="visibilitychange"?D.timeStamp:0,removeEventListener("visibilitychange",uFE,!0),removeEventListener("prerenderingchange",uFE,!0))},axV=function(){addEventListener("visibilitychange",uFE,!0);
addEventListener("prerenderingchange",uFE,!0)},MVb=function(){if(qK<0){var D=Z97(),Y,R;
qK=(R=document.prerendering?void 0:(Y=globalThis.performance.getEntriesByType("visibility-state").filter(function(Z){return Z.name==="hidden"&&Z.startTime>D})[0])==null?void 0:Y.startTime)!=null?R:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
axV();OHL(function(){setTimeout(function(){qK=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;axV()})})}return{get firstHiddenTime(){return qK}}};var CEY=function(D){document.prerendering?addEventListener("prerenderingchange",function(){return D()},!0):D()};var Wu4=function(D){var Y=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?D():(D=XlL(D),document.addEventListener("visibilitychange",D,{once:!0}),Y(function(){D();document.removeEventListener("visibilitychange",D)}))};var wFo=function(){};
wFo.prototype._processEntry=function(D){var Y;(Y=this._onBeforeProcessingEntry)==null||Y.call(this,D)};var cxY=[2500,4E3],hB5=function(D){var Y=Y===void 0?{}:Y;CEY(function(){var R=MVb(),Z=tVY(),t=vOn(Y),X=function(G){Y.reportAllChanges||(G=G.slice(-1));G=_.a(G);for(var V=G.next();!V.done;V=G.next())V=V.value,t._processEntry(V),V.startTime<R.firstHiddenTime&&(Z.value=Math.max(V.startTime-Z97(),0),Z.entries=[V],W())},M=sZU(X);
if(M){var W=DVU(D,Z,Y.reportAllChanges);for(var z=XlL(function(){X(M.takeRecords());M.disconnect();W(!0)}),I=_.a(["keydown",
"click","visibilitychange"]),F=I.next();!F.done;F=I.next())addEventListener(F.value,function(){return Wu4(z)},{capture:!0,
once:!0});OHL(function(G){Z=tVY();W=DVU(D,Z,Y.reportAllChanges);Y0D(function(){Z.value=performance.now()-G.timeStamp;W(!0)})})}})};var zIU;var S0L;_.P=function(){return S0L!==void 0?S0L:S0L=document.createElement("template")};
document.head.appendChild(_.P().content);var TKL;_.Jj({_template:function(){if(TKL!==void 0)return TKL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;zIU===void 0&&(zIU=document.createElement("template"));var Z=zIU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return TKL=D},
is:"tp-yt-app-toolbar"});var jZV;var IxE;_.H6=function(){};
_.H6=_.Jj({_template:function(){if(IxE!==void 0)return IxE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;jZV===void 0&&(jZV=document.createElement("template"));var Z=jZV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return IxE=D},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.H6.instance||(_.H6.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(D){this._text===D&&(D+="\u00a0");this._text="";this.async(function(){this._text=D},this.timeout)},
_onIronAnnounce:function(D){D.detail&&D.detail.text&&this.announce(D.detail.text)}});
_.H6.instance=null;_.H6.requestAvailability=function(){_.H6.instance||(_.H6.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.H6.instance):document.addEventListener("load",function(){document.body.appendChild(_.H6.instance)})};var FuY;var Gb1;/*

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
*/
_.Jj({_template:function(){if(Gb1!==void 0)return Gb1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;FuY===void 0&&(FuY=document.createElement("template"));var Z=FuY;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Gb1=D},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.ym,_.rp],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(D){this.$.textarea.selectionStart=D},set selectionEnd(D){this.$.textarea.selectionEnd=D},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var D=this.$.textarea.validity.valid;D&&(this.required&&this.value===""?D=!1:this.hasValidator()&&(D=_.ym.validate.call(this,this.value)));this.invalid=!D;this.fire("iron-input-validate");return D},
_bindValueChanged:function(D){this.value=D},
_valueChanged:function(D){var Y=this.textarea;Y&&(Y.value!==D&&(Y.value=D||D===0?D:""),this.bindValue=D,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(D){var Y=_.oR(D).path;this.value=Y?Y[0].value:D.target.value},
_constrain:function(D){var Y;D=D||[""];for(Y=this.maxRows>0&&D.length>this.maxRows?D.slice(0,this.maxRows):D.slice(0);this.rows>0&&Y.length<this.rows;)Y.push("");return Y.join("\n")+"\u00a0"},
_valueForMirror:function(){var D=this.textarea;if(D)return this.tokens=D&&D.value?D.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var VVb;var fxb;_.Jj({_template:function(){if(fxb!==void 0)return fxb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;VVb===void 0&&(VVb=document.createElement("template"));var Z=VVb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return fxb=D},
is:"tp-yt-iron-collapse",behaviors:[_.l_],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(D,Y){D=D==="auto"?"":D;Y=Y&&!this.noAnimation&&this.isAttached&&this._desiredSize!==D;this._desiredSize=D;this._updateTransition(!1);Y&&(Y=this._calcSize(),D===""&&(this.style[this._dimensionMax]="",D=this._calcSize()),this.style[this._dimensionMax]=Y,this.scrollTop=this.scrollTop,this._updateTransition(!0),Y=D!==Y);this.style[this._dimensionMax]=D;Y||this._transitionEnd()},
enableTransition:function(D){_.w7._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!D},
_updateTransition:function(D){this.style.transitionDuration=D&&!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(D){_.oR(D).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var eIL;var ARY;var n6b=void 0,rR1={properties:{sizingTarget:{type:Object,value:function(){var D;return(D=this.hostElement)!=null?D: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}},get _defaultPositionTarget(){var D,Y=_.oR((D=this.hostElement)!=null?D:
this).parentNode;Y&&Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(Y=Y.host);return Y},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 D;this._memoizedIsRTL=window.getComputedStyle((D=this.hostElement)!=null?D:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var D;window.getComputedStyle((D=this.hostElement)!=null?D: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 D,Y=window.getComputedStyle((D=this.hostElement)!=null?D:this);D=window.getComputedStyle(this.sizingTarget);var R,Z,t;this._fitInfo={inlineStyle:{top:((R=this.hostElement)!=null?R:this).style.top||"",left:((Z=this.hostElement)!=null?Z:this).style.left||"",position:((t=this.hostElement)!=null?t:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:Y.top!=="auto"?"top":Y.bottom!=="auto"?"bottom":null,horizontally:Y.left!=="auto"?"left":Y.right!=="auto"?"right":null},sizedBy:{height:D.maxHeight!=="none",width:D.maxWidth!=="none",minWidth:parseInt(D.minWidth,10)||0,minHeight:parseInt(D.minHeight,10)||0},margin:{top:parseInt(Y.marginTop,10)||0,right:parseInt(Y.marginRight,10)||0,bottom:parseInt(Y.marginBottom,10)||0,left:parseInt(Y.marginLeft,10)||0}}}},
resetFit:function(){var D=this._fitInfo||{},Y;for(Y in D.sizerInlineStyle)this.sizingTarget.style[Y]=D.sizerInlineStyle[Y];for(Y in D.inlineStyle){var R=void 0;((R=this.hostElement)!=null?R:this).style[Y]=D.inlineStyle[Y]}this._fitInfo=null},
refit:function(){var D=this.sizingTarget.scrollLeft,Y=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=D;this.sizingTarget.scrollTop=Y},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var D;((D=this.hostElement)!=null?D:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var Y;((Y=this.hostElement)!=null?Y:this).style.left="0px";var R;((R=this.hostElement)!=null?R:this).style.top="0px";var Z,t=((Z=this.hostElement)!=null?Z:this).getBoundingClientRect();Y=this.__getNormalizedRect(this.positionTarget);Z=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(Z={left:Z.left+24,right:Z.right-24,top:Z.top+24,bottom:Z.bottom-24});if(this.expandSizingTargetForScrollbars){var X=this.sizingTarget.offsetWidth;var M=this.sizingTarget.offsetHeight;var W=this.sizingTarget.clientWidth;var z=this.sizingTarget.clientHeight}D=this._fitInfo.margin;Y=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:t.width+D.left+D.right,height:t.height+D.top+D.bottom},t,Y,Z);var I=Y.left+D.left,F=Y.top+D.top;R=Math.min(Z.right-D.right,I+t.width);var G=Math.min(Z.bottom-
D.bottom,F+t.height);I=Math.max(Z.left+D.left,Math.min(I,R-this._fitInfo.sizedBy.minWidth));F=Math.max(Z.top+D.top,Math.min(F,G-this._fitInfo.sizedBy.minHeight));R=Math.max(R-I,this._fitInfo.sizedBy.minWidth);G=Math.max(G-F,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=R+"px";this.sizingTarget.style.maxHeight=G+"px";I-=t.left;t=F-t.top;var V;((V=this.hostElement)!=null?V:this).style.left=I+"px";var e;((e=this.hostElement)!=null?e:this).style.top=t+"px";if(this.expandSizingTargetForScrollbars){V=
this.sizingTarget.offsetHeight;M=V-this.sizingTarget.clientHeight-(M-z);if(M>0){this.sizingTarget.style.maxHeight=Math.min(Z.height-D.top-D.bottom,G+M)+"px";M=this.sizingTarget.offsetHeight;z=M-V;var r;Y.verticalAlign==="top"?r=t:Y.verticalAlign==="middle"?r=t-z/2:Y.verticalAlign==="bottom"&&(r=t-z);r=Math.max(Z.top+D.top,Math.min(r,Z.bottom-D.bottom-M));var l;((l=this.hostElement)!=null?l:this).style.top=r+"px"}r=this.sizingTarget.offsetWidth;X=r-this.sizingTarget.clientWidth-(X-W);if(X>0){n6b!==
void 0?W=n6b:(W=document.createElement("div"),Object.assign(W.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",W.appendChild(l),document.body.appendChild(W),n6b=Math.abs(W.offsetWidth-100)>1?W.offsetWidth-W.clientWidth:0,document.body.removeChild(W),W=n6b);this.sizingTarget.style.maxWidth=Math.min(Z.width-D.left-D.right,R+X-W)+"px";X=this.sizingTarget.offsetWidth+W;W=X-r;var U;
Y.horizontalAlign==="left"?U=I:Y.horizontalAlign==="center"?U=I-W/2:Y.horizontalAlign==="right"&&(U=I-W);U=Math.max(Z.left+D.left,Math.min(U,Z.right-D.right-X));var K;((K=this.hostElement)!=null?K:this).style.left=U+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var D=this._fitInfo;if(!D.positionedBy.vertically){var Y;((Y=this.hostElement)!=null?Y:this).style.position="fixed";var R;((R=this.hostElement)!=null?R:this).style.top="0px"}if(!D.positionedBy.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.position="fixed";var t;((t=this.hostElement)!=null?t:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var X;Y=((X=this.hostElement)!=null?X:this).getBoundingClientRect();
D.sizedBy.height||this.__sizeDimension(Y,D.positionedBy.vertically,"top","bottom","Height");D.sizedBy.width||this.__sizeDimension(Y,D.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(D,Y,R,Z,t){this.__sizeDimension(D,Y,R,Z,t)},
__sizeDimension:function(D,Y,R,Z,t){var X=this._fitInfo,M=this.__getNormalizedRect(this.fitInto);M=t==="Width"?M.width:M.height;D=(Y=Y===Z)?M-D[Z]:D[R];R=X.margin[Y?R:Z];Z="offset"+t;var W;X=((W=this.hostElement)!=null?W:this)[Z]-this.sizingTarget[Z];this.sizingTarget.style["max"+t]=M-R-D-X+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var D=this._fitInfo.positionedBy;if(!D.vertically||!D.horizontally){var Y;((Y=this.hostElement)!=null?Y:this).style.position="fixed";if(!D.vertically){var R;((R=this.hostElement)!=null?R:this).style.top="0px"}if(!D.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.left="0px"}var t;Y=((t=this.hostElement)!=null?t:this).getBoundingClientRect();t=this.__getNormalizedRect(this.fitInto);if(!D.vertically){R=t.top-Y.top+(t.height-
Y.height)/2;var X;((X=this.hostElement)!=null?X:this).style.top=R+"px"}if(!D.horizontally){D=t.left-Y.left+(t.width-Y.width)/2;var M;((M=this.hostElement)!=null?M:this).style.left=D+"px"}}}},
__getNormalizedRect:function(D){return D===document.documentElement||D===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:D.getBoundingClientRect()},
__getOffscreenArea:function(D,Y,R){return Math.abs(Math.min(0,D.top)+Math.min(0,R.bottom-(D.top+Y.height)))*Y.width+Math.abs(Math.min(0,D.left)+Math.min(0,R.right-(D.left+Y.width)))*Y.height},
__getPosition:function(D,Y,R,Z,t,X){var M=[{verticalAlign:"top",horizontalAlign:"left",top:t.top+this.verticalOffset,left:t.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:t.top+this.verticalOffset,left:t.right-R.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:t.bottom-R.height-this.verticalOffset,left:t.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:t.bottom-R.height-this.verticalOffset,left:t.right-R.width-
this.horizontalOffset}];if(this.noOverlap){for(var W=0,z=M.length;W<z;W++){var I={},F;for(F in M[W])I[F]=M[W][F];M.push(I)}M[0].top=M[1].top+=t.height;M[2].top=M[3].top-=t.height;M[4].left=M[6].left+=t.width;M[5].left=M[7].left-=t.width}Y=Y==="auto"?null:Y;D=D==="auto"?null:D;D&&D!=="center"||(M.push({verticalAlign:"top",horizontalAlign:"center",top:t.top+this.verticalOffset+(this.noOverlap?t.height:0),left:t.left-Z.width/2+t.width/2+this.horizontalOffset}),M.push({verticalAlign:"bottom",horizontalAlign:"center",
top:t.bottom-R.height-this.verticalOffset-(this.noOverlap?t.height:0),left:t.left-Z.width/2+t.width/2+this.horizontalOffset}));Y&&Y!=="middle"||(M.push({verticalAlign:"middle",horizontalAlign:"left",top:t.top-Z.height/2+t.height/2+this.verticalOffset,left:t.left+this.horizontalOffset+(this.noOverlap?t.width:0)}),M.push({verticalAlign:"middle",horizontalAlign:"right",top:t.top-Z.height/2+t.height/2+this.verticalOffset,left:t.right-R.width-this.horizontalOffset-(this.noOverlap?t.width:0)}));Y==="middle"&&
D==="center"&&M.push({verticalAlign:"middle",horizontalAlign:"center",top:t.top-Z.height/2+t.height/2+this.verticalOffset,left:t.left-Z.width/2+t.width/2+this.horizontalOffset});for(W=0;W<M.length;W++){Z=M[W];t=Z.verticalAlign===Y;z=Z.horizontalAlign===D;if(!this.dynamicAlign&&!this.noOverlap&&t&&z){var G=Z;break}I=(!Y||t)&&(!D||z);if(this.dynamicAlign||I){Z.offscreenArea=this.__getOffscreenArea(Z,R,X);if(Z.offscreenArea===0&&I){G=Z;break}Z.alignsOk=t+z;G=G||Z;t=Z.offscreenArea-G.offscreenArea;if(t<
0||t===0&&Z.alignsOk>G.alignsOk)G=Z}}return G}};/*

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 xl,wlY,$VY;xl=Element.prototype;wlY=xl.matches||xl.matchesSelector||xl.mozMatchesSelector||xl.msMatchesSelector||xl.oMatchesSelector||xl.webkitMatchesSelector;$VY=function(){};
_.o6L=function(D){var Y=v67,R=[];return Y._collectTabbableNodes(D,R)?Y._sortByTabIndex(R):R};
_.u=$VY.prototype;_.u._normalizedTabIndex=function(D){return(wlY.call(D,"input, select, textarea, button, object")?wlY.call(D,":not([disabled])"):wlY.call(D,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(D=D.getAttribute("tabindex")||0,Number(D)):-1};
_.u._collectTabbableNodes=function(D,Y){if(D.nodeType!==Node.ELEMENT_NODE||!this._isVisible(D))return!1;var R=this._normalizedTabIndex(D),Z=R>0;R>=0&&Y.push(D);if(D.localName==="content"||D.localName==="slot")R=_.oR(D).getDistributedNodes();else{var t;R=((t=_.oR(D).shadowRoot)!=null?t:_.oR(D.root||D)).children}for(D=0;D<R.length;D++)Z=this._collectTabbableNodes(R[D],Y)||Z;return Z};
_.u._isVisible=function(D){var Y=D.style;return Y.visibility!=="hidden"&&Y.display!=="none"?(Y=window.getComputedStyle(D),Y.visibility!=="hidden"&&Y.display!=="none"):!1};
_.u._sortByTabIndex=function(D){var Y=D.length;if(Y<2)return D;var R=Math.ceil(Y/2);Y=this._sortByTabIndex(D.slice(0,R));D=this._sortByTabIndex(D.slice(R));return this._mergeSortByTabIndex(Y,D)};
_.u._mergeSortByTabIndex=function(D,Y){for(var R=[];D.length>0&&Y.length>0;)this._hasLowerTabOrder(D[0],Y[0])?R.push(Y.shift()):R.push(D.shift());return R.concat(D,Y)};
_.u._hasLowerTabOrder=function(D,Y){D=Math.max(D.tabIndex,0);Y=Math.max(Y.tabIndex,0);return D===0||Y===0?Y>D:D>Y};
var v67=new $VY;var b9E;var yR_;_.Jj({_template:function(){if(yR_!==void 0)return yR_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;b9E===void 0&&(b9E=document.createElement("template"));var Z=b9E;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return yR_=D},
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&&_.oR(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.oR(this.parentNode).removeChild(this)},
_onTransitionend:function(D){D&&D.target===this&&this.complete()},
_openedChanged:function(D){D?this.prepare():(D=window.getComputedStyle(this),D.transitionDuration!=="0s"&&D.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 P6=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Uw(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)};
P6.prototype._bringOverlayAtIndexToFront=function(D){var Y=this._overlays[D];if(Y){var R=this._overlays.length-1,Z=this._overlays[R];Z&&this._shouldBeBehindOverlay(Y,Z)&&R--;if(!(D>=R)){Z=Math.max(this._getZ(_.NKU(this)),this._minimumZ);for(this._getZ(Y)<=Z&&this._applyOverlayZ(Y,Z);D<R;)this._overlays[D]=this._overlays[D+1],D++;this._overlays[R]=Y}}};
P6.prototype.addOverlay=function(D){var Y=this._overlays.indexOf(D);if(Y>=0)this._bringOverlayAtIndexToFront(Y);else{Y=this._overlays.length;var R=this._overlays[Y-1],Z=Math.max(this._getZ(R),this._minimumZ),t=this._getZ(D);R&&this._shouldBeBehindOverlay(D,R)&&(this._applyOverlayZ(R,Z),Y--,Z=Math.max(this._getZ(this._overlays[Y-1]),this._minimumZ));t<=Z&&this._applyOverlayZ(D,Z);this._overlays.splice(Y,0,D)}this.trackBackdrop()};
P6.prototype.removeOverlay=function(D){D=this._overlays.indexOf(D);D!==-1&&(this._overlays.splice(D,1),this.trackBackdrop())};
_.NKU=function(D){return D._overlays[D._overlays.length-1]};
_.u=P6.prototype;_.u.trackBackdrop=function(){var D=this._overlayWithBackdrop();if(D||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(D)-1,this.backdropElement.opened=!!D,this.backdropElement.prepare()};
_.u._overlayWithBackdrop=function(){for(var D=this._overlays.length-1;D>=0;D--)if(this._overlays[D].withBackdrop)return this._overlays[D]};
_.u._getZ=function(D){var Y=this._minimumZ;if(D){var R,Z,t=Number(((R=D.hostElement)!=null?R:D).style.zIndex||window.getComputedStyle((Z=D.hostElement)!=null?Z:D).zIndex);t===t&&(Y=t)}return Y};
_.u._setZ=function(D,Y){var R;((R=D.hostElement)!=null?R:D).style.zIndex=Y};
_.u._applyOverlayZ=function(D,Y){this._setZ(D,Y+2)};
_.u._overlayInPath=function(D){D=D||[];for(var Y=0;Y<D.length;Y++){var R=void 0;if(((R=D[Y].polymerController)!=null?R:D[Y])._manager===this)return D[Y]}};
_.u._onCaptureClick=function(D){var Y=this._overlays.length-1;if(Y!==-1)for(var R=_.oR(D).path,Z,t;(Z=this._overlays[Y])&&this._overlayInPath(R)!==((t=Z.hostElement)!=null?t:Z);)if(Z._onCaptureClick(D),Z.allowClickThrough)Y--;else break};
_.u._onCaptureFocus=function(D){var Y=_.NKU(this);Y&&Y._onCaptureFocus(D)};
_.u._onCaptureKeyDown=function(D){var Y=_.NKU(this);Y&&(_.nJ.keyboardEventMatchesKeys(D,"esc")?Y._onCaptureEsc(D):_.nJ.keyboardEventMatchesKeys(D,"tab")&&Y._onCaptureTab(D))};
_.u._shouldBeBehindOverlay=function(D,Y){return!D.alwaysOnTop&&Y.alwaysOnTop&&!Y.contains(D)};
_.YF.Object.defineProperties(P6.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 D=document.activeElement;D&&D instanceof Element!==!1||(D=document.body);for(;D.root&&_.oR(D.root).activeElement;)D=_.oR(D.root).activeElement;return D}}});
_.Qm=new P6;var oO9=0,bf9=0,ym$=null,NQS=[],bl=["wheel","mousewheel","DOMMouseScroll"],lsM;_.f("web_no_lock_on_touchstart_killswitch")&&(bl.push("touchstart"),bl.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;_.B6={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:_.Qm},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var D;return this._focusedChild||_.oR((D=this.hostElement)!=null?D:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var D;return _.o6L((D=this.hostElement)!=null?D: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 D;this._observer=_.oR((D=this.hostElement)!=null?D:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var D;_.oR((D=this.hostElement)!=null?D:this).unobserveNodes(this._observer)}this._observer=null;for(var Y in this.__rafs)this.__rafs[Y]!==null&&cancelAnimationFrame(this.__rafs[Y]);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(D){this.fire("iron-overlay-canceled",D,{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 D;((D=this.hostElement)!=null?D:this).style.outline="none";var Y;((Y=this.hostElement)!=null?Y:this).style.display="none"}},
_openedChanged:function(D){if(D){var Y;((Y=this.hostElement)!=null?Y:this).removeAttribute("aria-hidden")}else{var R;((R=this.hostElement)!=null?R: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 D;if(this.withBackdrop&&!((D=this.hostElement)!=null?D:this).hasAttribute("tabindex")){var Y;((Y=this.hostElement)!=null?Y:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var R;((R=this.hostElement)!=null?R: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 D;((D=this.hostElement)!=null?D:this).style.display="none";var Y;((Y=this.hostElement)!=null?Y:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var D,Y;((D=this.hostElement)!=null?D:this).style.transition=((Y=this.hostElement)!=null?Y:this).style.webkitTransition="none";var R,Z;((R=this.hostElement)!=null?R:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="none";var t;((t=this.hostElement)!=null?t:this).style.display=""},
_finishPositioning:function(){var D;((D=this.hostElement)!=null?D:this).style.display="none";this.scrollTop=this.scrollTop;var Y,R;((Y=this.hostElement)!=null?Y:this).style.transition=((R=this.hostElement)!=null?R:this).style.webkitTransition="";var Z,t;((Z=this.hostElement)!=null?Z:this).style.transform=((t=this.hostElement)!=null?t:this).style.webkitTransform="";var X;((X=this.hostElement)!=null?X:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var D=this._manager.deepActiveElement,Y;if(!(Y=D===document.body))a:{for(;D;D=D.assignedSlot||D.parentNode||D.host)if(D===this){Y=!0;break a}Y=!1}Y&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(D){this.noCancelOnOutsideClick||this.cancel(D)},
_onCaptureFocus:function(D){if(this.withBackdrop){var Y=_.oR(D).path;Y.indexOf(this)===-1?(D.stopPropagation(),this._applyFocus()):this._focusedChild=Y[0]}},
_onCaptureEsc:function(D){this.noCancelOnEscKey||this.cancel(D)},
_onCaptureTab:function(D){if(this.withBackdrop){this.__ensureFirstLastFocusables();var Y=D.shiftKey,R=Y?this.__firstFocusableNode:this.__lastFocusableNode;Y=Y?this.__lastFocusableNode:this.__firstFocusableNode;if(R===Y)R=!0;else{var Z=this._manager.deepActiveElement;R=Z===R||Z===this}R&&(D.preventDefault(),this._focusedChild=Y,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 D=this._focusableNodes;this.__firstFocusableNode=D[0];this.__lastFocusableNode=D[D.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(D,Y){var R=this.__rafs;R[D]!==null&&cancelAnimationFrame(R[D]);R[D]=requestAnimationFrame(function(){R[D]=null;Y.call(this)}.bind(this))},
__updateScrollObservers:function(D,Y,R){D&&Y&&this.__isValidScrollAction(R)?(R==="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),lsM=_._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()):(D=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),D!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(D,1),lsM=_._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(Hy)for(var D=this;D;)D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&D.host&&this.__rootNodes.push(D),D=D.host||D.assignedSlot||D.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(Y){Y.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(D){D.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(D){return D==="lock"||D==="refit"||D==="cancel"},
__onCaptureScroll:function(D){if(!(this.__isAnimating||_.oR(D).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(D)}},
__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)}};
_.pJ=[rR1,_.l_,_.B6];_.Jj({_template:function(){if(ARY!==void 0)return ARY;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;eIL===void 0&&(eIL=document.createElement("template"));var Z=eIL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return ARY=D},
is:"tp-yt-iron-dropdown",behaviors:[_.rp,_.nJ,_.pJ,zF1],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 D=_.oR(this.$.content).getDistributedNodes(),Y=0,R=D.length;Y<R;Y++)if(D[Y].nodeType===Node.ELEMENT_NODE)return D[Y]},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(),_.B6._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.B6._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.B6._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var D=this.containedElement,Y=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),R=0;R<Y.length;R++)Y[R].node=D;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(D){this._readied&&(D?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var D=this.focusTarget||this.containedElement;D&&this.opened&&!this.noAutoFocus?D.focus():_.B6._applyFocus.apply(this,arguments)}});var lxV;var JR_;/*

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 kbL=new _.o1({type:"iconset"});
_.Jj({_template:function(){if(JR_!==void 0)return JR_;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;lxV===void 0&&(lxV=document.createElement("template"));
var Z=lxV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return JR_=D},
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(D){D=(D||"").split(":");this._iconName=D.pop();this._iconsetName=D.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&&_.oR(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=kbL.byKey(this._iconsetName)){var D=this._iconset.applyIcon(this,this._iconName,this.theme);D&&D.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,_.oR(this.root).appendChild(this._img)}});var UVz;var KuV;_.Jj({_template:function(){if(KuV!==void 0)return KuV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;UVz===void 0&&(UVz=document.createElement("template"));var Z=UVz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return KuV=D},
is:"tp-yt-iron-input",behaviors:[_.ym],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(){_.H6.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.oR(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.oR(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 D=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":D=/[0-9.,e-]/}return D},_bindValueChanged:function(D,Y){Y&&(D===void 0?Y.value=null:D!==Y.value&&(this.inputElement.value=D),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:D}))},
_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(D){var Y=D.keyCode==19||D.keyCode==20||D.keyCode==45||D.keyCode==46||D.keyCode==144||D.keyCode==145||D.keyCode>32&&D.keyCode<41||D.keyCode>111&&D.keyCode<124;return!(D.keyCode==8||D.keyCode==9||D.keyCode==13||D.keyCode==27)&&!(D.charCode==0&&Y)},
_onKeypress:function(D){if(this.allowedPattern||this.inputElement.type==="number"){var Y=this._patternRegExp;if(Y&&!(D.metaKey||D.ctrlKey||D.altKey)){this._patternAlreadyChecked=!0;var R=String.fromCharCode(D.charCode);this._isPrintable(D)&&!Y.test(R)&&(D.preventDefault(),this._announceInvalidCharacter("Invalid character "+R+" not entered."))}}},
_checkPatternValidity:function(){var D=this._patternRegExp;if(!D)return!0;for(var Y=0;Y<this.inputElement.value.length;Y++)if(!D.test(this.inputElement.value[Y]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var D=this.inputElement.checkValidity();D&&(this.required&&this.bindValue===""?D=!1:this.hasValidator()&&(D=_.ym.validate.call(this,this.bindValue)));this.invalid=!D;this.fire("iron-input-validate");return D},
_announceInvalidCharacter:function(D){this.fire("iron-announce",{text:D})},
_computeValue:function(D){return D}});var hIU;var Lu_;var mV7=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),q0E=mV7&&mV7[1]>=8;
_.Jj({_template:function(){if(Lu_!==void 0)return Lu_;var D=document.createElement("template");_.w(D,'\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 id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;hIU===void 0&&(hIU=document.createElement("template"));var Z=hIU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Lu_=D},
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}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[ZkU,_.l_,_.WpU,Ohz],_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 _.oR(_.oR(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var D=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,D-this._physicalCount)},set _virtualStart(D){D=this._clamp(D,0,this._maxVirtualStart);this.grid&&(D-=D%this._itemsPerRow);this._virtualStartVal=D},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(D){D%=this._physicalCount;D<0&&(D=this._physicalCount+D);this.grid&&(D-=D%this._itemsPerRow);this._physicalStartVal=D},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(D){this._physicalCountVal=D},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 D=this._firstVisibleIndexVal;if(D==null){var Y=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
D=this._iterateItems(function(R,Z){Y+=this._getPhysicalSizeIncrement(R);if(Y>this._scrollPosition)return this.grid?Z-Z%this._itemsPerRow:Z;if(this.grid&&this._virtualCount-1===Z)return Z-Z%this._itemsPerRow})||0}return D},
get lastVisibleIndex(){var D=this._lastVisibleIndexVal;if(D==null){if(this.grid)D=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var Y=this._physicalTop+this._scrollOffset;this._iterateItems(function(R,Z){Y<this._scrollBottom&&(D=Z);Y+=this._getPhysicalSizeIncrement(R)})}this._lastVisibleIndexVal=D}return D},
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,_.NI);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(D){this.style.webkitOverflowScrolling=D===this?"touch":"";this.style.overflowY=D===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.NI)},
updateViewportBoundaries:function(){var D=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(D["padding-top"],10);this._isRTL=D.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var D=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),Y=D-this._scrollPosition,R=Y>=0;this._scrollPosition=D;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(Y)>this._physicalSize&&this._physicalSize>0?(Y-=this._scrollOffset,R=Math.round(Y/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=R,this._physicalStart+=R,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(D=this._getReusables(R),R?(this._physicalTop=D.physicalTop,this._virtualStart+=D.indexes.length,this._physicalStart+=D.indexes.length):(this._virtualStart=this._virtualStart-D.indexes.length,this._physicalStart=this._physicalStart-D.indexes.length),this._update(D.indexes,R?null:D.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),LF))},
_getReusables:function(D){var Y=[],R=this._hiddenContentSize*this._ratio,Z=this._virtualStart,t=this._virtualEnd,X=this._physicalCount,M=this._physicalTop+this._scrollOffset;var W=this._physicalBottom+this._scrollOffset;var z=this._scrollPosition,I=this._scrollBottom;if(D){var F=this._physicalStart;W=z-M}else F=this._physicalEnd,W-=I;for(;;){var G=this._getPhysicalSizeIncrement(F);W-=G;if(Y.length>=X||W<=R)break;if(D){if(t+Y.length+1>=this._virtualCount)break;if(M+G>=z-this._scrollOffset)break;Y.push(F);
M+=G;F=(F+1)%X}else{if(Z-Y.length<=0)break;if(M+this._physicalSize-G<=I)break;Y.push(F);M-=G;F=F===0?X-1:F-1}}return{indexes:Y,physicalTop:M-this._scrollOffset}},
_update:function(D,Y){if(!(D&&D.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(D);this._updateMetrics(D);if(Y)for(;Y.length;)D=Y.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(D);this._positionItems();this._updateScrollerSize()}},
_createPool:function(D){this._ensureTemplatized();var Y,R=Array(D);for(Y=0;Y<D;Y++){var Z=this.stamp(null);R[Y]=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}return R},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(D){D=this._clamp(this._physicalCount+D,3,this._virtualCount-this._virtualStart);D=this._convertIndexToCompleteRow(D);if(this.grid){var Y=D%this._itemsPerRow;Y&&D-Y<=this._physicalCount&&(D+=this._itemsPerRow);D-=Y}D-=this._physicalCount;Y=Math.round(this._physicalCount*.5);if(!(D<0)){if(D>0){Y=window.performance.now();[].push.apply(this._physicalItems,this._createPool(D));for(var R=0;R<D;R++)this._physicalSizes.push(0);this._physicalCount+=D;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=D);this._update();this._templateCost=(window.performance.now()-Y)/D;Y=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||Y===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,Y)),J4z):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,Y),LF))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var D=this._getReusables(!0);this._physicalTop=D.physicalTop;this._virtualStart+=D.indexes.length;this._physicalStart+=D.indexes.length;this._update(D.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 D={__key__:!0};D[this.as]=!0;D[this.indexAs]=!0;D[this.selectedAs]=!0;D.tabIndex=!0;this._instanceProps=D;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(D,Y){typeof Y!=="undefined"&&(this.notifyResize(),_.jR(),D&&this._updateGridMetrics())},
_itemsChanged:function(D){if(D.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,
_.NI);else if(D.path==="items.splices"){this._adjustVirtualIndex(D.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(D.value.indexSplices.some(function(R){return R.addedCount>0||R.removed.length>0})){var Y=this._getActiveElement();
this.contains(Y)&&Y.blur()}D=D.value.indexSplices.some(function(R){return R.index+R.addedCount>=this._virtualStart&&R.index<=this._virtualEnd},this);
this._isClientFull()&&!D||this._debounce("_render",this._render,_.NI)}else D.path!=="items.length"&&this._forwardItemPath(D.path,D.value)},
_forwardItemPath:function(D,Y){D=D.slice(6);var R=D.indexOf(".");R===-1&&(R=D.length);var Z,t=this.modelForElement(this._offscreenFocusedItem),X=parseInt(D.substring(0,R),10);if(Z=this._isIndexRendered(X)){var M=this._getPhysicalIndex(X);var W=this.modelForElement(this._physicalItems[M])}else t&&(W=t);W&&W[this.indexAs]===X&&(D=D.substring(R+1),D=this.as+(D?"."+D:""),W._setPendingPropertyOrPath(D,Y,!1,!0),W._flushProperties&&W._flushProperties(),Z&&(this._updateMetrics([M]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(D){D.forEach(function(Y){Y.removed.forEach(this._removeItem,this);Y.index<this._virtualStart&&(Y=Math.max(Y.addedCount-Y.removed.length,Y.index-this._virtualStart),this._virtualStart+=Y,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=Y))},this)},
_removeItem:function(D){this.$.selector.deselect(D);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===D&&this._removeFocusedItem()},
_iterateItems:function(D,Y){var R,Z;if(arguments.length===2&&Y)for(Z=0;Z<Y.length;Z++){var t=Y[Z];var X=this._computeVidx(t);if((R=D.call(this,t,X))!=null)return R}else{t=this._physicalStart;for(X=this._virtualStart;t<this._physicalCount;t++,X++)if((R=D.call(this,t,X))!=null)return R;for(t=0;t<this._physicalStart;t++,X++)if((R=D.call(this,t,X))!=null)return R}},
_computeVidx:function(D){return D>=this._physicalStart?this._virtualStart+(D-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+D},
_assignModels:function(D){this._iterateItems(function(Y,R){var Z=this._physicalItems[Y],t=this.items&&this.items[R];if(t!=null){var X=this.modelForElement(Z);X.__key__=null;this._forwardProperty(X,this.as,t);this._forwardProperty(X,this.selectedAs,this.$.selector.isSelected(t));this._forwardProperty(X,this.indexAs,R);this._forwardProperty(X,"tabIndex",this._focusedVirtualIndex===R?0:-1);this._physicalIndexForKey[X.__key__]=Y;X._flushProperties&&X._flushProperties(!0);Z.removeAttribute("hidden")}else Z.setAttribute("hidden",
"")},D)},
_updateMetrics:function(D){_.jR();var Y=0,R=0,Z=this._physicalAverageCount,t=this._physicalAverage;this._iterateItems(function(X){R+=this._physicalSizes[X];this._physicalSizes[X]=this._physicalItems[X].offsetHeight;Y+=this._physicalSizes[X];this._physicalAverageCount+=this._physicalSizes[X]?1:0},D);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(R=this._itemsPerRow===1?R:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+Y-R,this._itemsPerRow=1);this._physicalAverageCount!==Z&&(this._physicalAverage=Math.round((t*Z+Y)/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 D=this._physicalTop;if(this.grid){var Y=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(R,Z){var t=Math.floor(Z%this._itemsPerRow*this._itemWidth+Y);this._isRTL&&(t*=-1);this.translate3d(t+"px",D+"px",0,this._physicalItems[R]);this._shouldRenderNextRow(Z)&&(D+=this._rowHeight)})}else this._iterateItems(function(R){this.translate3d(0,D+"px",0,this._physicalItems[R]);
D+=this._physicalSizes[R]})},
_getPhysicalSizeIncrement:function(D){return this.grid?this._computeVidx(D)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[D]},
_shouldRenderNextRow:function(D){return D%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var D=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(D!==0){this._physicalTop=this._physicalTop-D;var Y=this._scrollPosition;!q0E&&Y>0&&this._resetScrollPosition(Y-D)}},
_resetScrollPosition:function(D){this.scrollTarget&&D>=0&&(this._scrollPosition=this._scrollTop=D)},
_updateScrollerSize:function(D){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((D=(D=(D=D||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(D){return this.scrollToIndex(this.items.indexOf(D))},
scrollToIndex:function(D){if(!(typeof D!=="number"||D<0||D>this.items.length-1)&&(_.jR(),this._physicalCount!==0)){D=this._clamp(D,0,this._virtualCount-1);if(!this._isIndexRendered(D)||D>=this._maxVirtualStart)this._virtualStart=this.grid?D-this._itemsPerRow*2:D-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var Y=this._physicalStart,R=this._virtualStart,Z=0,t=this._hiddenContentSize;R<D&&
Z<=t;)Z+=this._getPhysicalSizeIncrement(Y),Y=(Y+1)%this._physicalCount,R++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Z);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)},_.NI)},
selectItem:function(D){return this.selectIndex(this.items.indexOf(D))},
selectIndex:function(D){if(!(D<0||D>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(D)){var Y=this.modelForElement(this._physicalItems[this._getPhysicalIndex(D)]);Y&&(Y[this.selectedAs]=!0);this.updateSizeForIndex(D)}this.$.selector.selectIndex(D)}},
deselectItem:function(D){return this.deselectIndex(this.items.indexOf(D))},
deselectIndex:function(D){D<0||D>=this._virtualCount||(this._isIndexRendered(D)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(D)])[this.selectedAs]=!1,this.updateSizeForIndex(D)),this.$.selector.deselectIndex(D))},
toggleSelectionForItem:function(D){return this.toggleSelectionForIndex(this.items.indexOf(D))},
toggleSelectionForIndex:function(D){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(D):this.$.selector.isSelected(this.items[D]))?this.deselectIndex(D):this.selectIndex(D)},
clearSelection:function(){this._iterateItems(function(D){this.modelForElement(this._physicalItems[D])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(D){(D?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(D){var Y=this.modelForElement(D.target);if(Y){var R=_.oR(D).path[0];D=this._getActiveElement();var Z=this._physicalItems[this._getPhysicalIndex(Y[this.indexAs])];if(R.localName!=="input"&&R.localName!=="button"&&R.localName!=="select"){R=Y.tabIndex;Y.tabIndex=-100;var t=D?D.tabIndex:-1;Y.tabIndex=R;D&&Z!==D&&Z.contains(D)&&t!==-100||this.toggleSelectionForItem(Y[this.as])}}},
_multiSelectionChanged:function(D){this.clearSelection();this.$.selector.multi=D},
updateSizeForItem:function(D){return this.updateSizeForIndex(this.items.indexOf(D))},
updateSizeForIndex:function(D){if(!this._isIndexRendered(D))return null;this._updateMetrics([this._getPhysicalIndex(D)]);this._positionItems();return null},
_manageFocus:function(){var D=this._focusedVirtualIndex;D>=0&&D<this._virtualCount?this._isIndexRendered(D)?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(D){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(D/this._itemsPerRow)*this._itemsPerRow:D},
_isIndexRendered:function(D){return D>=this._virtualStart&&D<=this._virtualEnd},
_isIndexVisible:function(D){return D>=this.firstVisibleIndex&&D<=this.lastVisibleIndex},
_getPhysicalIndex:function(D){return(this._physicalStart+(D-this._virtualStart))%this._physicalCount},
focusItem:function(D){this._focusPhysicalItem(D)},
_focusPhysicalItem:function(D){if(!(D<0||D>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(D)||this.scrollToIndex(D);var Y=this._physicalItems[this._getPhysicalIndex(D)],R=this.modelForElement(Y),Z;R.tabIndex=-100;Y.tabIndex===-100&&(Z=Y);Z||(Z=_.oR(Y).querySelector('[tabindex="-100"]'));R.tabIndex=0;this._focusedVirtualIndex=D;Z&&Z.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 D=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var Y=this.stamp(null);this._focusBackfillItem=Y.root.querySelector("*");this._itemsParent.appendChild(Y.root)}this._offscreenFocusedItem=this._physicalItems[D];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[D]=this._focusBackfillItem;this._focusedPhysicalIndex=D;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var D=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),Y=this._physicalItems[D];if(Y){var R=this.modelForElement(Y),Z=this.modelForElement(this._offscreenFocusedItem);R[this.as]===Z[this.as]?(this._focusBackfillItem=Y,R.tabIndex=-1,this._physicalItems[D]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(D){D=this.modelForElement(D.target);var Y=this.modelForElement(this._focusedItem),R=this._offscreenFocusedItem!==null,Z=this._focusedVirtualIndex;D&&(Y===D?this._isIndexVisible(Z)||this.scrollToIndex(Z):(this._restoreFocusedItem(),Y&&(Y.tabIndex=-1),D.tabIndex=0,this._focusedVirtualIndex=Z=D[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Z),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],R&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(D){switch(D.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&D.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&&D.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(D)}},
_clamp:function(D,Y,R){return Math.min(R,Math.max(Y,D))},
_debounce:function(D,Y,R){this._debouncers=this._debouncers||{};this._debouncers[D]=_.CD(this._debouncers[D],R,Y.bind(this));_.WX(this._debouncers[D])},
_forwardProperty:function(D,Y,R){D._setPendingProperty(Y,R)},
_forwardHostPropV2:function(D,Y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(R){R&&this.modelForElement(R).forwardHostProp(D,Y)},this)},
_notifyInstancePropV2:function(D,Y,R){mV5(this.as,Y)&&(D=D[this.indexAs],Y==this.as&&(this.items[D]=R),this.notifyPath(Ty(this.as,"items."+D,Y),R))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(D,Y,R){Y.indexOf(this.as+".")===0&&this.notifyPath("items."+D.__key__+"."+Y.slice(this.as.length+1),R)},
_forwardParentPath:function(D,Y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(R){R&&this.modelForElement(R).notifyPath(D,Y)},this)},
_forwardParentProp:function(D,Y){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(R){R&&(this.modelForElement(R)[D]=Y)},this)},
_getActiveElement:function(){var D=this._itemsParent.node.domHost;return _.oR(D?D.root:document).activeElement},
_scrollTargetChanged:function(D,Y){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(Y)if(D==="document")this.scrollTarget=this._doc;else if(typeof D==="string"){var R,Z;this.scrollTarget=(Y=(Z=(R=this.domHost)==null?void 0:R.polymerController)!=null?Z:this.domHost)&&Y.$?Y.$[D]:_.oR(this.ownerDocument).querySelector("#"+D)}else this._isValidScrollTarget()&&(this._oldScrollTarget=D,this._toggleScrollListener(this._shouldHaveListener,D))}});var H9z;var xV1;var PEL=function(D,Y,R,Z){D-=R;Y-=Z;return Math.sqrt(D*D+Y*Y)},QZb=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Jm9.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var kR5=function(D){D.maxRadius=0;D.mouseDownStart=0;D.mouseUpStart=0;D.xStart=0;D.yStart=0;D.xEnd=0;D.yEnd=0;D.containerMetrics=new Jm9(D.element)};
Ull.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var D=QZb()-this.mouseDownStart;this.mouseUpStart&&(D-=this.mouseUpElapsed);return D},get mouseUpElapsed(){return this.mouseUpStart?QZb()-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 D=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(D*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-D/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 D=this.radius/(this.containerMetrics.size/2);var Y=this.xNow-this.containerMetrics.width/2;var R=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+Y+"px, "+R+"px)";this.waveContainer.style.transform="translate3d("+Y+"px, "+R+"px, 0)";this.wave.style.webkitTransform="scale("+D+","+D+")";this.wave.style.transform="scale3d("+D+","+D+",1)"},
downAction:function(D){var Y=this.containerMetrics.width/2,R=this.containerMetrics.height/2;kR5(this);this.mouseDownStart=QZb();this.center?(this.xStart=Y,this.yStart=R):(this.xStart=D?D.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=D?D.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=Y,this.yEnd=R);D=this.containerMetrics;Y=this.xStart;R=this.yStart;this.maxRadius=Math.max(PEL(Y,R,0,0),PEL(Y,R,
D.width,0),PEL(Y,R,0,D.height),PEL(Y,R,D.width,D.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=QZb())},
remove:function(){_.oR(_.oR(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Jj({_template:function(){if(xV1!==void 0)return xV1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;H9z===void 0&&(H9z=document.createElement("template"));var Z=H9z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return xV1=D},
is:"tp-yt-paper-ripple",behaviors:[_.nJ],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(){_.oR(this).parentNode.nodeType==11?this.keyEventTarget=_.oR(this).getOwnerRoot().host:this.keyEventTarget=_.oR(this).parentNode;var D=this.keyEventTarget;this.listen(D,"up","uiUpAction");this.listen(D,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(D){D.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var D=0;D<this.ripples.length;++D)if(!this.ripples[D].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(D){this.noink||this.downAction(D)},
downAction:function(D){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(D),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(D){this.noink||this.upAction(D)},
upAction:function(D){this.holdDown||(this.ripples.forEach(function(Y){Y.upAction(D)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var D=0;D<this.ripples.length;++D){var Y=this.ripples[D];Y.isOpacityFullyDecayed&&!Y.isRestingAtMaxRadius&&this.removeRipple(Y)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var D=new Ull(this);_.oR(this.$.waves).appendChild(D.waveContainer);this.$.background.style.backgroundColor=D.color;this.ripples.push(D);this._setAnimating(!0);return D},
removeRipple:function(D){var Y=this.ripples.indexOf(D);Y<0||(this.ripples.splice(Y,1),D.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var D;for(D=0;D<this.ripples.length;++D){var Y=this.ripples[D];Y.draw();this.$.background.style.opacity=Y.outerOpacity;Y.isOpacityFullyDecayed&&!Y.isRestingAtMaxRadius&&this.removeRipple(Y)}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(D,Y){Y!==void 0&&(D?this.downAction():this.upAction())}});var EP={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(D){wp._downHandler.call(this,D);this.pressed&&this.ensureRipple(D)},
ensureRipple:function(D){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var Y=this._rippleContainer||this.root;Y&&_.oR(Y).appendChild(this._ripple);if(D){Y=_.oR(this._rippleContainer||this);var R=_.oR(D).rootTarget;Y.deepContains(R)&&this._ripple.uiDownAction(D)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(D){this.hasRipple()&&(this._ripple.noink=D)}};var BKz={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 D=1;this.disabled?D=0:this.active||this.pressed?D=4:this.receivedFocusFromKeyboard&&(D=3);this._setElevation(D)},
_computeKeyboardClass:function(D){this.toggleClass("keyboard-focus",D)},
_spaceKeyDownHandler:function(D){wp._spaceKeyDownHandler.call(this,D);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(D){wp._spaceKeyUpHandler.call(this,D);this.hasRipple()&&this._ripple.uiUpAction()}},plU=[DP_,
_.rp,EP,BKz];_.E61={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=D)},
_createRipple:function(){var D=EP._createRipple();D.id="ink";D.setAttribute("center","");D.classList.add("circle");return D}};
_.g6D=[DP_,_.rp,EP,_.E61];_.dV7=[_.g6D,ZHE,{_checkedChanged:function(){RFY._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){EP._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var i9U;var O9V;var cRE=function(){};
_.u=cRE.prototype;_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._buttonStateChanged=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._createRipple=function(){};
_.u._noinkChanged=function(){};
_.u._computeKeyboardClass=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
_.u._setElevation=function(){};
cRE=_.Jj({_template:function(){if(O9V!==void 0)return O9V;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;i9U===void 0&&(i9U=document.createElement("template"));var Z=i9U;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return O9V=D},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[plU],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?BKz._calculateElevation.apply(this):this._setElevation(0)}});var DiU;var YRL;var RGD={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(D){_.f("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(D)},
_onDialogClickWrapped:function(D){_.f("dialog_behavior_no_tap_killswitch")||this._onDialogClick(D)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(D,Y){Y&&(D?(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(D){if(D){var Y;((Y=this.hostElement)!=null?Y:this).setAttribute("aria-modal","true")}else{var R;((R=this.hostElement)!=null?R:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(D){this.closingReason=this.closingReason||{};this.closingReason.confirmed=D},
_onDialogClick:function(D){for(var Y=_.oR(D).path,R=0,Z,t=Y.indexOf((Z=this.hostElement)!=null?Z:this);R<t;R++)if(Z=Y[R],Z.hasAttribute&&(Z.hasAttribute("dialog-dismiss")||Z.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Z.hasAttribute("dialog-confirm"));this.close();D.stopPropagation();break}}},Zob=[_.pJ,
RGD];var t3z=document.createElement("template");_.w(t3z,'<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(t3z.content);var sa1=document.createElement("template");_.w(sa1,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(sa1.content);_.Jj({_template:function(){if(YRL!==void 0)return YRL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;DiU===void 0&&(DiU=document.createElement("template"));var Z=DiU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return YRL=D},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Zob,zF1],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 Xf7;var ucz;_.Jj({_template:function(){if(ucz!==void 0)return ucz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Xf7===void 0&&(Xf7=document.createElement("template"));var Z=Xf7;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return ucz=D},
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 D,Y,R;if(((D=window.ShadyDOM)==null?void 0:D.noPatch)!==!0&&((Y=window.ShadyDOM)==null?void 0:Y.noPatch)!=="on-demand"||((R=this.__shady_parentNode)==null?void 0:R.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(RGD)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var aFE=_.gY(['<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>']),M3U=_.ZhL(aFE);M3U.setAttribute("style","display: none;");document.head.appendChild(M3U.content);var C$L;var WLz;var zG4;var SRL;_.Jj({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[J2],configure:function(D){var Y=D.node,R=Y.getBoundingClientRect().height;return this._effect=new KeyframeEffect(Y,[{height:R/2+"px"},{height:R+"px"}],this.timingFromConfig(D))}});
_.Jj({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[J2],configure:function(D){var Y=D.node,R=Y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Y,[{width:R/2+"px"},{width:R+"px"}],this.timingFromConfig(D))}});
_.Jj({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[J2],configure:function(D){var Y=D.node,R=Y.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Y,[{width:R+"px"},{width:R-R/20+"px"}],this.timingFromConfig(D))}});
_.Jj({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[J2],configure:function(D){var Y=D.node,R=Y.getBoundingClientRect().height;this.setPrefixedProperty(Y,"transformOrigin","0 0");return this._effect=new KeyframeEffect(Y,[{height:R+"px",transform:"translateY(0)"},{height:R/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(D))}});var gp={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},TY1=function(){};
_.u=TY1.prototype;_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._focusBlurHandler=function(){};
_.u._changedControlState=function(){};
_.u._setFocused=function(){};
TY1=_.Jj({_template:function(){if(SRL!==void 0)return SRL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;zG4===void 0&&(zG4=document.createElement("template"));var Z=zG4;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return SRL=D},
is:"tp-yt-paper-menu-button",behaviors:[_.nJ,_.rp],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:gp.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:gp.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:gp.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 D=_.oR(this.$.content).getDistributedNodes(),Y=0,R=D.length;Y<R;Y++)if(D[Y].nodeType===Node.ELEMENT_NODE)return D[Y]},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(D,Y){D?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):Y!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(D){_.rp._disabledChanged.apply(this,arguments);D&&this.opened&&this.close()},
__onIronOverlayCanceled:function(D){var Y=this.$.trigger;_.oR(D.detail).path.indexOf(Y)>-1&&D.preventDefault()}});
Object.keys(gp).forEach(function(D){TY1[D]=gp[D]});var ja_=_.$l.IronButtonState,IFL=(0,_.r7)(HTMLElement);
_.Jj({_template:function(){if(WLz!==void 0)return WLz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;C$L===void 0&&(C$L=document.createElement("template"));var Z=C$L;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return WLz=D},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[ja_,_.rp,EP,_.v6,_.ym],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(D){var Y=(0,_.Vt)(this);Y.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:D});Y.shadowRoot.appendChild(D);return IFL.prototype._attachDom.call(this,D)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.oR(this.$.content).getDistributedNodes(),Y=0,R=D.length;Y<R;Y++)if(D[Y].nodeType===Node.ELEMENT_NODE)return D[Y]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var Y="";D?Y=D.label||D.getAttribute("label")||D.textContent.trim():Y="";this.value=Y;this._setSelectedItemLabel(Y)},
_computeMenuVerticalOffset:function(D,Y){return Y?Y:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",Y=this.contentElement;Y&&Y.setAttribute("aria-expanded",D)},
_computeLabelClass:function(D,Y,R){var Z="label";if(D)R&&(Z+=" label-is-hidden");else if(R||Y)Z+=" label-is-floating";return Z},
_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 FLD;var G3z;_.Jj({is:"tp-yt-paper-icon-button",_template:function(){if(G3z!==void 0)return G3z;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;FLD===void 0&&(FLD=document.createElement("template"));var Z=FLD;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return G3z=D},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.g6D],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(D,Y){var R=this.getAttribute("aria-label");R&&Y!=R||this.setAttribute("aria-label",D)}});var V3V;var fFU;_.dp=[DP_,_.rp,{hostAttributes:{role:"option",tabindex:"0"}}];_.Jj({_template:function(){if(fFU!==void 0)return fFU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;V3V===void 0&&(V3V=document.createElement("template"));var Z=V3V;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return fFU=D},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.dp]});var eGU;var AnV;var n5V={attached:function(){this.fire("addon-attached")},
update:function(){}};var rnL=1,wfE=1,$iU=1,v5U=[_.rp,_.nJ,{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();!ZB&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(D,Y){D?D=D+" "+Y:D=Y;return D},
_onAddonAttached:function(D){D=_.oR(D).rootTarget;if(D.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,D.id);else{var Y="paper-input-add-on-"+wfE++;D.id=Y;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Y)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(D){_.rp._focusBlurHandler.call(this,D);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var D=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",D);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(D){try{var Y=this.inputElement.selectionStart;this.value=D;this.inputElement.selectionStart=Y;this.inputElement.selectionEnd=Y}catch(R){this.value=D}},
_computeAlwaysFloatLabel:function(D,Y){return Y||D},
_updateAriaLabelledBy:function(){var D=_.oR(this.root).querySelector("label");if(D){if(D.id)var Y=D.id;else Y="paper-input-label-"+rnL++,D.id=Y;this._ariaLabelledBy=Y}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+$iU++)},
_onChange:function(D){this.shadowRoot&&this.fire(D.type,{sourceEvent:D},{node:this,bubbles:D.bubbles,cancelable:D.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var D=document.activeElement;D instanceof HTMLElement&&D!==document.body&&D!==document.documentElement||this._focusableElement.focus()}}}];var o5L;var bob;_.Jj({_template:function(){if(bob!==void 0)return bob;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;o5L===void 0&&(o5L=document.createElement("template"));var Z=o5L;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return bob=D},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[n5V],properties:{_charCounterStr:{type:String,value:"0"}},update:function(D){if(D.inputElement){D.value=D.value||"";var Y=D.value.toString().length.toString();D.inputElement.hasAttribute("maxlength")&&(Y+="/"+D.inputElement.getAttribute("maxlength"));this._charCounterStr=Y}}});var ynz;var NYE;_.Jj({_template:function(){if(NYE!==void 0)return NYE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;ynz===void 0&&(ynz=document.createElement("template"));var Z=ynz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return NYE=D},
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 M7(this.attrForValue)},get _inputElement(){return _.oR(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(D){this._addons||(this._addons=[]);D=D.target;this._addons.indexOf(D)===-1&&(this._addons.push(D),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(D){this._handleValueAndAutoValidate(D.target)},
_onValueChanged:function(D){var Y=D.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,Y.value===void 0||Y.value===""))return;this._handleValueAndAutoValidate(D.target)},
_handleValue:function(D){var Y=this._inputElementValue;Y||Y===0||D.type==="number"&&!D.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:D,value:Y,invalid:this.invalid})},
_handleValueAndAutoValidate:function(D){this.autoValidate&&D&&(this.invalid=!(D.validate?D.validate(this._inputElementValue):D.checkValidity()));this._handleValue(D)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(D){if(this._addons)for(var Y,R=0;Y=this._addons[R];R++)Y.update(D)},
_computeInputContentClass:function(D,Y,R,Z,t){var X="input-content";D?(t&&(X+=" label-is-hidden"),Z&&!this.noUnfloatedLabelError&&(X+=" is-invalid")):(D=this.querySelector("label"),Y||t?(X+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Z?X+=" is-invalid":R&&(X+=" label-is-highlighted")):(D&&(this.$.labelAndInputContainer.style.position="relative"),Z&&!this.noUnfloatedLabelError&&(X+=" is-invalid")));R&&(X+=" focused");return X},
_computeUnderlineClass:function(D,Y){var R="underline";Y?R+=" is-invalid":D&&(R+=" is-highlighted");return R},
_computeAddOnContentClass:function(D,Y){var R="add-on-content";Y?R+=" is-invalid":D&&(R+=" is-highlighted");return R}});var lFV;var Jn7;_.Jj({_template:function(){if(Jn7!==void 0)return Jn7;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;lFV===void 0&&(lFV=document.createElement("template"));var Z=lFV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Jn7=D},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[n5V],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(D){this._setInvalid(D.invalid)}});_.Jj({is:"tp-yt-paper-input",_template:function(){if(AnV!==void 0)return AnV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;eGU===void 0&&(eGU=document.createElement("template"));var Z=eGU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return AnV=D},
behaviors:[v5U,_.v6],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 k3z;var UiL;_.Jj({_template:function(){if(UiL!==void 0)return UiL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=
D.content,R=Y.insertBefore;k3z===void 0&&(k3z=document.createElement("template"));var Z=k3z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return UiL=D},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.dp]});var KL4;var hGL;_.Jj({_template:function(){if(hGL!==void 0)return hGL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;KL4===void 0&&(KL4=document.createElement("template"));var Z=KL4;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return hGL=D},
is:"tp-yt-paper-item-body"});var LLE;var mi_;var qRz=function(){};
_.u=qRz.prototype;_.u.indexOf=function(){};
_.u.selectPrevious=function(){};
_.u.selectNext=function(){};
_.u.selectIndex=function(){};
_.u.forceSynchronousItemUpdate=function(){};
_.u._checkFallback=function(){};
_.u._addListener=function(){};
_.u._removeListener=function(){};
_.u._activateEventChanged=function(){};
_.u._updateItems=function(){};
_.u._selectSelected=function(){};
_.u._filterItem=function(){};
_.u._valueToItem=function(){};
_.u._valueToIndex=function(){};
_.u._indexToValue=function(){};
_.u._valueForItem=function(){};
_.u._observeItems=function(){};
_.u._itemActivate=function(){};
_.u.multiChanged=function(){};
_.u._updateAttrForSelected=function(){};
_.u._updateSelected=function(){};
_.u._selectMulti=function(){};
_.u._selectionChange=function(){};
_.u._toggleSelected=function(){};
_.u._valuesToItems=function(){};
_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u.select=function(){};
_.u._resetTabindices=function(){};
_.u._updateMultiselectable=function(){};
_.u._focusWithKeyboardEvent=function(){};
_.u._clearSearchText=function(){};
_.u._focusPrevious=function(){};
_.u._focusNext=function(){};
_.u._applySelection=function(){};
_.u._focusedItemChanged=function(){};
_.u._onIronItemsChanged=function(){};
_.u._onShiftTabDown=function(){};
_.u._onFocus=function(){};
_.u._onUpKey=function(){};
_.u._onDownKey=function(){};
_.u._onEscKey=function(){};
_.u._onKeydown=function(){};
_.u._activateHandler=function(){};
_.u._disabledChanged=function(){};
_.u._setSelectedItem=function(){};
_.u._setItems=function(){};
_.u._setSelectedItems=function(){};
_.u._setFocusedItem=function(){};
qRz=_.Jj({_template:function(){if(mi_!==void 0)return mi_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;LLE===void 0&&(LLE=document.createElement("template"));var Z=LLE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return mi_=D},
is:"tp-yt-paper-listbox",behaviors:[uUU],hostAttributes:{role:"listbox"}});var Ho7;var xiY;var P$z={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(D,Y){return[D||Y?"active":"",Y?"cooldown":""].join(" ")},
__activeChanged:function(D,Y){this.__setAriaHidden(!D);this.__coolingDown=!D&&Y},
__altChanged:function(D){this.setAttribute("aria-label",D||"loading")},
__setAriaHidden:function(D){D?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Jj({_template:function(){if(xiY!==void 0)return xiY;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Ho7===void 0&&(Ho7=document.createElement("template"));var Z=Ho7;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return xiY=D},
is:"tp-yt-paper-spinner",behaviors:[P$z]});var QaU;var BYU;_.Jj({_template:function(){if(BYU!==void 0)return BYU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;QaU===void 0&&(QaU=document.createElement("template"));var Z=QaU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return BYU=D},
is:"tp-yt-paper-spinner-lite",behaviors:[P$z]});var pfz;var E5D;_.Jj({_template:function(){if(E5D!==void 0)return E5D;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;pfz===void 0&&(pfz=document.createElement("template"));var Z=pfz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return E5D=D},
is:"tp-yt-paper-tab",behaviors:[_.rp,_.$l.IronButtonState,EP],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 D=_.oR(this).parentNode;return!!D&&!!D.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(D){if(this.link){var Y=this.queryEffectiveChildren("a");Y&&D.target!==Y&&Y.click()}}});var g5b;var diD;var ioY=_.gY(['<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>']),Ooz=_.ZhL(ioY);document.head.appendChild(Ooz.content);_.Jj({_template:function(){if(diD!==void 0)return diD;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;g5b===void 0&&(g5b=document.createElement("template"));var Z=g5b;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return diD=D},
is:"tp-yt-paper-tabs",behaviors:[_.l_,_.MG7],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(D){_.oR(this).querySelectorAll("tp-yt-paper-tab").forEach(D?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(D){D.setAttribute("noink","")},
_removeNoinkAttribute:function(D){D.removeAttribute("noink")},
_computeScrollButtonClass:function(D,Y,R,Z){return!Y||R?"hidden":D?Z?"hidden":"not-visible":""},
_computeTabsContentClass:function(D,Y){var R="tabs-content";D&&(R+=" scrollable");if(!D||Y)R+=" fit-container";return R},
_computeSelectionBarClass:function(D,Y){var R="selection-bar";D?R+=" hidden":Y&&(R+=" align-bottom");return R},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(D){return""+D},
_onIronSelect:function(D){this._tabChanged(D.detail.item,this._previousTab);this._previousTab=D.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();_.NK._activateHandler.apply(this,arguments)},
_scheduleActivation:function(D,Y){this._pendingActivationItem=D;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,Y)},
_delayedActivationHandler:function(){var D=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;D.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(D){D.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(D,Y){this.scrollable&&this._affectScroll(Y&&-Y.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(D){this.$.tabsContainer.scrollLeft+=D;D=this.$.tabsContainer.scrollLeft;this._leftHidden=D===0||this.hideScrollButtons;this._rightHidden=D===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(D,Y){if(D){var R=this.$.tabsContent.getBoundingClientRect(),Z=R.width,t=D.getBoundingClientRect();R=t.left-R.left;this._pos={width:this._calcPercent(t.width,Z),left:this._calcPercent(R,Z)};if(this.noSlide||Y==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var X=Y.getBoundingClientRect();Y=this.items.indexOf(Y);D=this.items.indexOf(D);this.$.selectionBar.classList.add("expand");
D=Y<D;this._isRTL&&(D=!D);D?this._positionBar(this._calcPercent(t.left+t.width-X.left,Z)-5,this._left):this._positionBar(this._calcPercent(X.left+X.width-t.left,Z)-5,this._calcPercent(R,Z)+5);this.scrollable&&this._scrollToSelectedIfNeeded(t.width,R)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(D,Y){Y-=this.$.tabsContainer.scrollLeft;Y<0?this.$.tabsContainer.scrollLeft+=Y:(Y+=D-this.$.tabsContainer.offsetWidth,Y>0&&(this.$.tabsContainer.scrollLeft+=Y))},
_calcPercent:function(D,Y){return 100*D/Y},
_positionBar:function(D,Y){D=D||0;Y=Y||0;this._width=D;this._left=Y;this.transform("translateX("+Y+"%) scaleX("+D/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var D=this.$.selectionBar.classList;D.contains("expand")?(D.remove("expand"),D.add("contract"),this._positionBar(this._pos.width,this._pos.left)):D.contains("contract")&&D.remove("contract")}});var cnE;var DpE;_.Jj({_template:function(){if(DpE!==void 0)return DpE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;cnE===void 0&&(cnE=document.createElement("template"));var Z=cnE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return DpE=D},
is:"tp-yt-paper-textarea",behaviors:[v5U,_.v6],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(D){this.$.input.textarea.selectionStart=D},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(D){this.$.input.textarea.selectionEnd=D},_ariaLabelledByChanged:function(D){this._focusableElement.setAttribute("aria-labelledby",D)},
_ariaDescribedByChanged:function(D){this._focusableElement.setAttribute("aria-describedby",D)},
get _focusableElement(){return this.inputElement.textarea}});var YbE;var R9L;/*

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 ZwE=function(){};
_.u=ZwE.prototype;_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._noinkChanged=function(){};
_.u._focusedChanged=function(){};
_.u.registered=function(){};
_.u._invalidChanged=function(){};
_.u.hasValidator=function(){};
_.u.validate=function(){};
_.u._getValidity=function(){};
_.u._requiredChanged=function(){};
_.u._valueChanged=function(){};
_.u._checkedChanged=function(){};
_.u._buttonStateChanged=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
ZwE=_.Jj({is:"tp-yt-paper-toggle-button",_template:function(){if(R9L!==void 0)return R9L;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;YbE===void 0&&(YbE=document.createElement("template"));var Z=YbE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return R9L=D},
behaviors:[_.dV7],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");_.cy(this,function(){_.hN(this,"pan-y")})},
_ontrack:function(D){D=D.detail;D.state==="start"?this._trackStart(D):D.state==="track"?this._trackMove(D):D.state==="end"&&this._trackEnd(D)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(D){D=D.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+D:D)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+D:D));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 D=EP._createRipple();D.id="ink";D.setAttribute("recenters","");D.classList.add("circle","toggle-ink");return D}});var tsY;var scV;_.Jj({_template:function(){if(scV!==void 0)return scV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;tsY===void 0&&(tsY=document.createElement("template"));var Z=tsY;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return scV=D},
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 D=_.oR(this).parentNode,Y=_.oR(this).getOwnerRoot(),R;this.for?R=_.oR(Y).querySelector("#"+this.for):R=D.nodeType==Node.DOCUMENT_FRAGMENT_NODE?Y.host:D;return R},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(D){D==="entry"?this.show():D==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.oR(this).textContent.trim()===""){for(var D=!0,Y=_.oR(this).getEffectiveChildNodes(),R=0;R<Y.length;R++)if(Y[R].textContent.trim()!==""){D=!1;break}if(D)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 D=this.offset;this.marginTop!=14&&this.offset==14&&(D=this.marginTop);var Y=this.offsetParent.getBoundingClientRect(),R=this._target.getBoundingClientRect(),Z=this.getBoundingClientRect(),t=(R.width-Z.width)/2,X=(R.height-Z.height)/2,M=R.left-Y.left,W=R.top-Y.top;switch(this.position){case "top":var z=M+t;var I=W-Z.height-D;break;case "bottom":z=M+t;I=W+R.height+D;break;case "left":z=M-Z.width-D;I=W+X;break;case "right":z=M+R.width+
D,I=W+X}this.fitToVisibleBounds?(Y.left+z+Z.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,z)+"px",this.style.right="auto"),Y.top+I+Z.height>window.innerHeight?(this.style.bottom=Y.height+"px",this.style.top="auto"):(this.style.top=Math.max(-Y.top,I)+"px",this.style.bottom="auto")):(this.style.left=z+"px",this.style.top=I+"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(D){D!==500&&this.updateStyles({"--paper-tooltip-delay-in":D+"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(D){if(D==="entry"&&this.animationEntry!=="")return this.animationEntry;if(D==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[D]&&typeof this.animationConfig[D][0].name==="string"){if(this.animationConfig[D][0].timing&&this.animationConfig[D][0].timing.delay&&this.animationConfig[D][0].timing.delay!==0){var Y=this.animationConfig[D][0].timing.delay;D==="entry"?this.updateStyles({"--paper-tooltip-delay-in":Y+"ms"}):D==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":Y+
"ms"})}return this.animationConfig[D][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 XQU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(XQU,_.Y7);var uNE=_.C$(XQU,[0,_.ih]);var OP=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(OP,_.Y7);var aDD=[3,4],Msz=[5,6];var Ch_=[0,aDD,Msz,_.dkL,-1,_.d0,_.itU,-1,xnU,PWU];var Wob=_.C$(OP,Ch_),z9b=_.WZ(Ch_);var Sb_=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Sb_,_.Y7);var T0D=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(T0D,_.Y7);var jc1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(jc1,_.Y7);var IDb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(IDb,_.Y7);var FoU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(FoU,_.Y7);var c6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(c6,_.Y7);c6.prototype.getSource=function(){return _.lh(this,1)};
c6.prototype.getMessage=function(){return _.Np(this,4)};
c6.prototype.getData=function(){return _.tP(this,FoU,8)};var GXD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(GXD,_.Y7);var DV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(DV,_.Y7);var YG=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(YG,_.Y7);var R5=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(R5,_.Y7);R5.prototype.getUrl=function(){return _.Np(this,1)};
R5.prototype.setUrl=function(D){return _.ew(this,1,D)};
R5.prototype.hasUrl=function(){return _.TT(_.Vn(this,1))!=null};var Vsz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Vsz,_.Y7);var fDL=[3];var e9L=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(e9L,_.Y7);var ZV=function(D){var Y=new e9L;return _.s1(Y,2,D)};
e9L.prototype.getLanguage=function(){return k0(this,4,th)};
var ArE=function(D){var Y=ZV(1);return _.jf(Y,6,th,D)},th=[3,
4,5,6];var n0U=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(n0U,_.Y7);var s_=function(D){var Y=new n0U;return _.s1(Y,1,D)},XA=function(D,Y){return _.jf(D,2,rr4,Y)},rr4=[2,
3,4,5];var wQz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(wQz,_.Y7);var uS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(uS,_.Y7);var $pU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n($pU,_.Y7);var v0_=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(v0_,_.Y7);var o01=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(o01,_.Y7);var bwz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(bwz,_.Y7);var yrb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(yrb,_.Y7);var a5=function(D){return _.tP(D,YG,5)};var N07=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(N07,_.Y7);N07.prototype.getValue=function(){return bh(this,1)};var lDU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(lDU,_.Y7);var Mv=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Mv,_.Y7);Mv.prototype.getMetadata=function(){return _.Ub(this,o01,7,Cy)};
Mv.prototype.hasMetadata=function(){return _.es(this,o01,7,Cy)};
var JrL=_.hE5(Mv),Cy=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Wx=function(D){this.JSC$11931_name_=D;this.files_=[];this.directories_=[];this.directoryMap_={}};
Wx.prototype.getName=function(){return this.JSC$11931_name_};var SB=function(D,Y){this.callback_=Y;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Wx("");kX4(this,D,this.rootDirectory_);zB(this)},kX4=function(D,Y,R){for(var Z=0;Z<Y.length;Z++){var t=Y[Z];
t.isFile?(D.fileOps_++,t.file((0,_.nG)(D.handleFileSuccess_,D,R),(0,_.nG)(D.handleFileError_,D))):D.unscannedDirectories_.push(new Up4(t,R))}},zB=function(D){if(D.unscannedDirectories_.length>0&&D.directoryOps_<5&&!D.hasError_){D.directoryOps_++;
var Y=D.unscannedDirectories_.shift(),R=Y.entry,Z=new Wx(R.name);Y=Y.parent;Y.directoryMap_[Z.getName()]=Z;Y.directories_.push(Z);R=R.createReader();R.readEntries((0,_.nG)(D.handleDirectorySuccess_,D,R,Z),(0,_.nG)(D.handleDirectoryError_,D))}D.directoryOps_!=0||D.fileOps_!=0||D.unscannedDirectories_.length!=0&&!D.hasError_||D.callback_(D.rootDirectory_.files_,D.rootDirectory_.directories_,D.hasError_)};
SB.prototype.handleDirectorySuccess_=function(D,Y,R){kX4(this,R,Y);R.length==0?(this.directoryOps_--,zB(this)):D.readEntries((0,_.nG)(this.handleDirectorySuccess_,this,D,Y),(0,_.nG)(this.handleDirectoryError_,this))};
SB.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;zB(this)};
SB.prototype.handleFileSuccess_=function(D,Y){D.files_.push(Y);this.fileOps_--;zB(this)};
SB.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;zB(this)};
var Up4=function(D,Y){this.entry=D;this.parent=Y};var TB=function(D){_.eE.call(this);_.yu(D,"drop",this.onObjectsDropped_,!1,this);_.yu(D,"dragenter",this.onFilesDragged_,!1,this);_.yu(D,"dragover",this.onFilesDragged_,!1,this);_.yu(D,"dragleave",this.onDragLeave_,!1,this);_.yu(D,"dragend",this.onDragLeave_,!1,this)};
_.XN(TB,_.eE);var KoD=function(D,Y){_.IF.call(this,"f");this.files=D;this.directories=Y};
_.XN(KoD,_.IF);var h9E=function(){_.IF.call(this,"h")};
_.XN(h9E,_.IF);var Lo7=function(){_.IF.call(this,"i")};
_.XN(Lo7,_.IF);var mpV=function(){_.IF.call(this,"g")};
_.XN(mpV,_.IF);TB.prototype.onObjectsDropped_=function(D){var Y=this;D.preventDefault();var R=D.event_.dataTransfer;if((D=R&&R.items)&&D.length>0&&D[0].webkitGetAsEntry){R=[];for(var Z=[],t=0;t<D.length;t++){var X=D[t].webkitGetAsEntry();X?R.push(X):Z.push(D[t])}new SB(R,function(M,W,z){z?Y.dispatchEvent(new mpV("Error occurred while reading from the file system.")):Y.dispatchEvent(new KoD(M,W,Z))})}else(D=R&&R.files)&&this.dispatchEvent(new KoD(Array.from(D),[]))};
TB.prototype.onFilesDragged_=function(D){D.type==="dragenter"&&this.dispatchEvent(new h9E);D.preventDefault()};
TB.prototype.onDragLeave_=function(){this.dispatchEvent(new Lo7)};var qbz=function(D,Y){this.JSC$11954_name_=D;this.inputElement_=Y};
qbz.prototype.getName=function(){return this.JSC$11954_name_};
qbz.prototype.getInputElement=function(){return this.inputElement_};var jB=function(D,Y,R){Y=Y===void 0?"single_file":Y;R=R===void 0?[]:R;_.eE.call(this);this.overlayTarget_=D;this.parentOverlay_=D!=null?D.parentNode:_.I0("scotty-overlay-parent");this.selectorType_=Y;this.acceptTypes_=R;this.overlay_=HwE(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.n(jB,_.eE);
var HwE=function(D,Y,R,Z){var t=document.createElement("input");t.setAttribute("type","file");t.setAttribute("name","Filedata");_.yu(t,"change",D.onFilesSelected_,!1,D);R==="multiple_file"&&(t.multiple="true");R==="single_directory"&&(t.webkitdirectory="true");Z.length>0&&t.setAttribute("accept",Z.join(","));t.style.position="absolute";t.style.overflow="hidden";t.style.height="0px";t.style.width="0px";t.style.opacity="0";t.setAttribute("aria-hidden","true");t.setAttribute("tabIndex",-1);if(D.overlayTarget_!=
null)return t.style.height=Y.offsetHeight+"px",t.style.width=Y.offsetWidth+"px",D.parentOverlay_&&(D.parentOverlay_.style.position="relative"),_.l3(t,Y),LC(t,new _.lm(Y.offsetLeft,Y.offsetTop)),t;D.parentOverlay_.appendChild(t);return t};
jB.prototype.click=function(){this.overlay_.click()};
jB.prototype.onFilesSelected_=function(D){a:{try{var Y=(new XMLHttpRequest).upload!==void 0;break a}catch(I){}Y=!1}if(Y){var R;D=Array.from((R=D.target.files)!=null?R:[]);R=[];if(this.selectorType_==="single_directory"&&(_.zX||gP||_.WQ)){R=new Wx("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(Y=0;Y<D.length;Y++)for(var Z=D[Y],t=Z.webkitRelativePath.split("/"),X=R,M=0;M<t.length;M++){var W=t[M];if(M==t.length-1){W!="."&&X.files_.push(Z);break}var z=X.directoryMap_[W];z==void 0&&(W=
z=new Wx(W),X.directoryMap_[W.getName()]=W,X.directories_.push(W));X=z}R=R.directories_}this.dispatchEvent(new xpL(D,R,null))}else D=D.target.value,D.match(/^c:\\fakepath\\/i)&&(D=D.substring(12)),this.dispatchEvent(new xpL([],[],new qbz(D,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=HwE(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var xpL=function(D,Y){_.IF.call(this,"j");this.files=D;this.directories=Y};
_.n(xpL,_.IF);var PhV=function(D){this.uploadUrl_=D};var QcE=function(){_.eE.call(this)};
_.XN(QcE,_.eE);var I5=function(D){_.IF.call(this,D)};
_.XN(I5,_.IF);var FA=function(D){_.IF.call(this,D)};
_.XN(FA,_.IF);var B0V=function(D,Y,R,Z,t){_.eE.call(this);R=document.createElement("form");R.setAttribute("method",Y);R.setAttribute("enctype","multipart/form-data");R.setAttribute("encoding","multipart/form-data");Y=document.createElement("input");Y.setAttribute("type","hidden");Y.setAttribute("name","metadata");Y.setAttribute("value",t);R.appendChild(Y);R.appendChild(Z);this.JSC$11971_form_=R;D=new _.cO(D);_.xh(D,"upload_protocol","multipart");this.JSC$11971_url_=D.toString();this.JSC$11971_request_=new ZS;this.state_=
"Ready";this.JSC$11971_errorDescription_=null;this.JSC$11971_eventHandler_=new _.aR(this);_.WB(this,this.JSC$11971_eventHandler_);this.JSC$11971_eventHandler_.listen(this.JSC$11971_request_,"success",this.onTransferSuccess_);this.JSC$11971_eventHandler_.listen(this.JSC$11971_request_,"error",this.onTransferError_)};
_.n(B0V,QcE);_.u=B0V.prototype;_.u.run=function(){this.state_="Transferring";var D=this.JSC$11971_request_,Y=this.JSC$11971_form_;if(D.JSC$11390_active_)throw Error("me");var R=new _.cO(this.JSC$11971_url_||Y.action);D.JSC$11390_form_=Y;Y=D.JSC$11390_form_;R=_.K$(R.toString());R!==void 0&&(Y.action=R);fXE(D)};
_.u.getResponseCode=function(){return null};
_.u.getResponseText=function(){return this.JSC$11971_request_&&this.JSC$11971_request_.getResponseText()||null};
_.u.JSC$29300_getErrorDescription=function(){return this.JSC$11971_errorDescription_};
_.u.cancel=function(){this.JSC$11971_request_&&this.JSC$11971_request_.abort();this.state_="Cancelled";this.dispatchEvent(new I5("o"))};
_.u.pause=function(){};
_.u.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new I5("l"))};
_.u.onTransferError_=function(){this.JSC$11971_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new I5("n"))};var GB=function(){_.yF.call(this)};
_.n(GB,_.yF);GB.prototype.createXhr=function(){var D=_.yF.prototype.createXhr.call(this);D.upload&&(D.upload.onprogress=(0,_.nG)(this.onProgress_,this));return D};
GB.prototype.onProgress_=function(D){this.dispatchEvent(D)};var pQV=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},g0b=function(D,Y){var R=D.attempt_+1;
if(D.maxAttempts_>0&&R>D.maxAttempts_)return!1;R==0?Y():D.delayCallId_=vP(function(){D.delayCallId_=null;Y()},E0b(D),D);
D.attempt_=R;return!0};
pQV.prototype.reset=function(){this.delayCallId_&&_.ZU.clearTimeout(this.delayCallId_);this.attempt_=-1};
var E0b=function(D){var Y=250*Math.pow(2,D.attempt_);D.maxDelayMs_>=0&&(Y=Math.min(Y,D.maxDelayMs_));return Y};var hXy=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var VX=function(){_.eE.call(this);this.JSC$11981_request_=this.state_=null;this.JSC$11981_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11981_bytesTransferred_=0;this.retryIterator_=new pQV;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11981_errorDescription_=null;this.JSC$11981_eventHandler_=new _.aR(this);_.WB(this,this.JSC$11981_eventHandler_);this.JSC$11981_url_=this.blob_=null;this.JSC$11981_method_=void 0;this.chunkSize_=this.JSC$11981_metadata_=
this.JSC$11981_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11981_responseText_=this.JSC$11981_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.XN(VX,QcE);_.u=VX.prototype;_.u.run=function(){fy(this)};
_.u.getResponseCode=function(){return this.JSC$11981_responseCode_};
_.u.getResponseText=function(){return this.JSC$11981_responseText_};
_.u.JSC$29300_getErrorDescription=function(){return this.JSC$11981_errorDescription_};
_.u.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11981_eventHandler_.removeAll();this.JSC$11981_request_&&this.JSC$11981_request_.abort();this.retryIterator_.reset();var D=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(D==="Upload"||D==="Query")D=new GB,D.JSC$9765_withCredentials_=this.JSC$11981_withCredentials_,D.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11981_bytesTransferred_=
0;this.dispatchEvent(new I5("o"))}};
_.u.pause=function(){this.pauseRequested_=!0};
var fy=function(D){var Y=D.state_;D.pauseRequested_?(D.pauseRequested_=!1,D.stateAfterUnpausing_=Y,D.state_="Paused"):g0b(D.retryIterator_,function(){switch(D.state_){case "Start":D.JSC$11981_request_=new GB;var R=_.y7.clone(D.JSC$11981_headers_);D.blob_.size!=null&&(R["Content-Length"]=D.blob_.size);R=Lkl(R);R["X-Goog-Upload-Protocol"]="resumable";R["X-Goog-Upload-Command"]="start";D.JSC$11981_eventHandler_.removeAll();D.JSC$11981_eventHandler_.listen(D.JSC$11981_request_,"complete",D.onStartComplete_);
D.JSC$11981_request_.JSC$9765_withCredentials_=D.JSC$11981_withCredentials_;D.JSC$11981_request_.send(D.JSC$11981_url_,D.JSC$11981_method_,D.JSC$11981_metadata_,R);D.lastCommandResponseCode_=null;D.dispatchEvent(new FA("q"));break;case "Upload":R=D.transferHandle_.uploadUrl_;var Z=D.blob_.size;if(Y97()){var t=D.chunkSize_;var X=D.offset_+t>=Z;Z=DbV(D.blob_,D.offset_,X?Z:D.offset_+t)}else D.offset_=0,Z=D.blob_,X=!0;D.JSC$11981_request_=new GB;D.JSC$11981_request_.JSC$9765_withCredentials_=D.JSC$11981_withCredentials_;
D.JSC$11981_eventHandler_.removeAll();D.JSC$11981_eventHandler_.listen(D.JSC$11981_request_,"progress",D.onUploadProgress_);t=(0,_.nG)(D.JSC$11983_onUploadComplete_,D,D.offset_+Z.size,X);D.JSC$11981_eventHandler_.listen(D.JSC$11981_request_,"complete",t);D.lastCommandResponseCode_=null;D.dispatchEvent(new FA("q"));X=Object.assign({},D.JSC$11981_headers_||{},{"X-Goog-Upload-Command":"upload"+(X?", finalize":""),"X-Goog-Upload-Offset":D.offset_});D.JSC$11981_request_.send(R,"POST",Z,X);break;case "Query":D.JSC$11981_request_=
new GB;D.JSC$11981_eventHandler_.removeAll();D.JSC$11981_eventHandler_.listen(D.JSC$11981_request_,"complete",D.onQueryComplete_);R=Object.assign({},D.JSC$11981_headers_||{},{"X-Goog-Upload-Command":"query"});D.JSC$11981_request_.send(D.transferHandle_.uploadUrl_,"POST","",R);D.lastCommandResponseCode_=null;D.dispatchEvent(new FA("q"));break;default:throw Error("bf");}})||eB(D,"Transfer encountered too many consecutive failures.")},eB=function(D,Y){D.state_="Error";
D.JSC$11981_errorDescription_=Y;D.dispatchEvent(new I5("n"))};
VX.prototype.onStartComplete_=function(D){var Y=D.target;this.lastCommandResponseCode_=Y.getStatus();this.dispatchEvent(new FA("r"));if(dpV(Y))iw7(this,Y);else if(Owz(Y)){D=pG(D.target.getAllResponseHeaders());for(var R in D)_.Xi(R.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new I5("m"));R=yQ(D,"X-Goog-Upload-URL");D=(D=yQ(D,"X-Goog-Upload-Chunk-Granularity"))?parseInt(D,10):1;R===void 0||isNaN(D)||D<=0?eB(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
D)*D,this.transferHandle_=new PhV(R),this.dispatchEvent(new I5("p")),this.state_="Upload",this.retryIterator_.reset(),fy(this))}else fy(this)};
VX.prototype.onUploadProgress_=function(D){this.JSC$11981_bytesTransferred_=this.offset_+D.loaded;this.dispatchEvent(new I5("k"))};
VX.prototype.JSC$11983_onUploadComplete_=function(D,Y,R){var Z=this,t,X;return _.C(function(M){switch(M.nextAddress){case 1:t=R.target;Z.lastCommandResponseCode_=t.getStatus();Z.dispatchEvent(new FA("r"));if(crb(t)||t.getStatus()==404)return Z.JSC$11981_bytesTransferred_=D,iw7(Z,t),M.return();if(Owz(t)){M.jumpTo(2);break}if(!(X=Z.detectCorruptedBlobEnabled_)){M.jumpTo(3);break}return M.yield(Dqz(Z),4);case 4:X=M.yieldResult;case 3:if(X)return eB(Z,"Blob has been modified or corrupted."),M.return();
Z.requireUploadRequestModification_=t.getStatus()==400;Z.state_="Query";fy(Z);return M.return();case 2:if(Y)return eB(Z,"Got a non-final success response after issuing a finalize command."),M.return();Z.JSC$11981_bytesTransferred_=D;Z.offset_=D;Z.retryIterator_.reset();fy(Z);return M.return()}})};
VX.prototype.onQueryComplete_=function(D){var Y=D.target;this.lastCommandResponseCode_=Y.getStatus();this.dispatchEvent(new FA("r"));dpV(Y)?(Y.getStatus()===200&&(this.JSC$11981_bytesTransferred_=this.blob_.size),iw7(this,Y)):Owz(Y)?(D=pG(D.target.getAllResponseHeaders()),D=parseInt(yQ(D,"X-Goog-Upload-Size-Received"),10),isNaN(D)?eB(this,"Server did not respond with current offset."):D<this.offset_?eB(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
D+"."):this.requireUploadRequestModification_&&this.offset_===D?eB(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<D&&this.retryIterator_.reset(),this.offset_=this.JSC$11981_bytesTransferred_=D,this.state_="Upload",fy(this))):fy(this)};
var iw7=function(D,Y){D.JSC$11981_responseCode_=Y.getStatus();var R=pG(Y.getAllResponseHeaders());ml$(R);D.JSC$11981_responseText_=Y.getResponseText();D.state_="Response received";D.dispatchEvent(new I5("l"))},Owz=function(D){var Y=D.getStatus();
D=pG(D.getAllResponseHeaders());D=yQ(D,"X-Goog-Upload-Status");return Y===200&&D==="active"},crb=function(D){D=pG(D.getAllResponseHeaders());
return yQ(D,"X-Goog-Upload-Status")==="final"},dpV=function(D){if(crb(D))return!0;
D=D.getStatus();return D>=400&&D<500},Dqz=function(D){var Y;
return _.C(function(R){if(R.nextAddress==1){if(!D.blob_||D.originalBlobSize_<=0)return R.return(!1);if(D.blob_.size!==D.originalBlobSize_)return R.return(!0);_.SX(R,2);if(Y=DbV(D.blob_,0,1)){var Z=R.yield,t=new q0,X=KVV(t);t.reader_.readAsBinaryString(Y);R=Z.call(R,X,4)}else R=R.return(!0);return R}if(R.nextAddress!=2)return R.return(D.blob_.size!==D.originalBlobSize_);_.Gl(R);return R.return(!0)})};var Yrz=function(D,Y,R,Z,t,X){_.eE.call(this);this.payload_=Z;this.JSC$11984_url_=D;this.JSC$11984_method_=Y;this.JSC$11984_headers_=R;this.JSC$11984_metadata_=t;this.encoding_=X||"binary";D=new _.$L;this.boundary_="uploader-"+mm()+"-"+D.JSC$11239_toIsoString();this.JSC$11984_responseText_=this.JSC$11984_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11984_errorDescription_=null;this.JSC$11984_eventHandler_=new _.aR(this);_.WB(this,this.JSC$11984_eventHandler_)};
_.n(Yrz,QcE);_.u=Yrz.prototype;
_.u.run=function(){var D=_.y7.clone(this.JSC$11984_headers_);this.payload_.length!=null&&(D["Content-Length"]=this.payload_.length);D=Lkl(D);D["X-Goog-Upload-Protocol"]="multipart";D["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new GB;this.JSC$11984_eventHandler_.removeAll();this.JSC$11984_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11984_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11984_url_,this.JSC$11984_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11984_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",D)};
_.u.getResponseCode=function(){return this.JSC$11984_responseCode_};
_.u.getResponseText=function(){return this.JSC$11984_responseText_};
_.u.JSC$29300_getErrorDescription=function(){return this.JSC$11984_errorDescription_};
_.u.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11984_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new I5("o")))};
_.u.pause=function(){};
_.u.onTransferProgress_=function(){this.dispatchEvent(new I5("k"))};
_.u.onTransferComplete_=function(D){var Y=D.target.getStatus();Y===void 0||Y===-1?(this.JSC$11984_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new I5("n"))):(this.JSC$11984_responseCode_=Y,D=D.target,Y=pG(D.getAllResponseHeaders()),ml$(Y),this.JSC$11984_responseText_=D.getResponseText(),this.state_="Complete",this.dispatchEvent(new I5("l")))};_.RDV=function(D,Y,R,Z){Z=Z===void 0?!1:Z;if(R instanceof qbz)return new B0V(D,"POST",Y,R.getInputElement(),"");if(typeof R==="string"||R instanceof String)return new Yrz(D,"POST",Y,R,"");var t=new VX(void 0);t.JSC$11981_url_=D;t.JSC$11981_method_="POST";t.JSC$11981_headers_=Y;t.blob_=R;t.originalBlobSize_=R.size;t.JSC$11981_metadata_="";Z&&(t.JSC$11981_withCredentials_=Z);t.state_="Start";return t};var Ah=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Ah,_.Y7);_.u=Ah.prototype;_.u.getEnableSsEngine=function(){return _.oc(this,2)};
_.u.getEnableAwr=function(){return _.oc(this,3)};
_.u.getAlohaAutoGaRollout=function(){return _.oc(this,5)};
_.u.getEnableConfigurator=function(){return _.oc(this,6)};
_.u.getEnableMweb=function(){return _.oc(this,7)};
var tUb=function(){var D=ZCL();return _.ll(D,7,!0)};
Ah.prototype.getEnableCtlConsentCheckbox=function(){return _.oc(this,8)};
Ah.prototype.getEnableIframe=function(){return _.oc(this,9)};
var ZCL=function(){var D=new Ah;D=_.ll(D,5,!0);D=_.ll(D,2,!0);D=_.ll(D,4,!1);D=_.ll(D,8,!0);return _.ll(D,9,!0)};
Ah.prototype.getEnableScreenshotNudge=function(){return _.oc(this,10)};
var sgL=function(){var D=tUb();return _.ll(D,10,!0)};
Ah.prototype.getEnableWebStartupConfigEndpoint=function(){return _.oc(this,11)};
Ah.prototype.getEnableJunkNudge=function(){return _.oc(this,12)};
var s6n=function(){var D=sgL();return _.ll(D,12,!0)};
_.u=Ah.prototype;_.u.getEnableConfiguratorLocale=function(){return _.oc(this,13)};
_.u.getEnableTinyNoPointer=function(){return _.oc(this,14)};
_.u.getEnableSupportSessionLogging=function(){return _.oc(this,15)};
_.u.getEnableFileUploadForScreenshot=function(){return _.oc(this,16)};
_.u.getEnableDirectDeflectionForSingleCategory=function(){return _.oc(this,17)};
_.u.getEnableImageSanitization=function(){return _.oc(this,18)};
_.u.getEnableAlohaBinarySplit=function(){return _.oc(this,19)};
_.u.getEnableDbFeedbackIntents=function(){return _.oc(this,20)};
_.u.getEnableMarkMandatoryFieldsWithRequired=function(){return _.oc(this,21)};
_.u.getEnableFeedbackCategoryCustomUi=function(){return _.oc(this,22)};
_.u.getEnableRealtimeCtl=function(){return _.oc(this,23)};var tQS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(tQS,_.Y7);var qSy=[/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 xlj="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 PCn=_.gY(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Qs5=_.gY(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var pFS,dlo,EOi,ifl;var XjU,uIb;
XjU=function(D,Y,R){D.timeOfStartCall=(new Date).getTime();var Z=R||_.ZU,t=Z.document,X=D.nonce||_.BZ(Z.document);X&&!D.nonce&&(D.nonce=X);if(D.flow=="help"){var M=_.mf("document.location.href",Z);!D.helpCenterContext&&M&&(D.helpCenterContext=M.substring(0,1200));M=!0;if(Y&&JSON&&JSON.stringify){var W=JSON.stringify(Y);(M=W.length<=1200)&&(D.psdJson=W)}M||(Y={invalidPsd:!0})}Y=[D,Y,R];Z.GOOGLE_FEEDBACK_START_ARGUMENTS=Y;R=D.feedbackServerUri||"//www.google.com/tools/feedback";if(M=Z.GOOGLE_FEEDBACK_START)M.apply(Z,Y);
else{Z=R+"/load.js?";for(var z in D)Y=D[z],Y==null||_.Bo(Y)||(Z+=encodeURIComponent(z)+"="+encodeURIComponent(Y)+"&");D=f0(t).createElement("SCRIPT");X&&D.setAttribute("nonce",X);_.dg(D,_.Af(Z));t.body.appendChild(D)}};
uIb=function(D,Y,R,Z){var t,X;_.C(function(M){t=R||_.ZU;var W=D.serverEnvironment==="DEV",z=R||_.ZU;z=D.nonce||_.BZ(z.document);W={integrationKeys:{productId:D.productId,feedbackBucket:D.bucket,triggerId:D.triggerId},callbacks:{onClose:D.callback,onLoad:D.onLoadCallback},formContent:{locale:D.locale,disableScreenshot:D.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:D.abuseLink,additionalDataConsent:D.additionalDataConsent},initializationData:{isLocalServer:W,nonce:z,useNightlyRelease:W,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:D.feedbackServerUri,colorScheme:D.colorScheme},extraData:{productVersion:D.productVersion,authUser:D.authuser,configuratorId:D.configuratorId,customZIndex:D.customZIndex,tinyNoPointer:D.tinyNoPointer,
allowNonLoggedInFeedback:D.allowNonLoggedInFeedback,enableAnonymousFeedback:D.enableAnonymousFeedback}};Y&&(z=new Map(Object.entries(Y)),W.extraData.productSpecificData=z);X=W;return M.yield(YFb(X,Z,t),0)})};
_.aoD=function(D,Y,R){try{if(D.flow==="help"){var Z=D.helpCenterPath.replace(/^\//,"");_.QB(R||window,"https://support.google.com/"+Z)}else D.flow==="submit"?XjU(D,Y,R):XAj(D.productId,D.feedbackServerUri).then(function(t){t=_.tP(t,Ah,1);var X=!CL$||(t==null?void 0:t.getEnableMweb()),M=!D.tinyNoPointer||(t==null?void 0:t.getEnableTinyNoPointer());!t||t.getAlohaAutoGaRollout()&&X&&M?uIb(D,Y,R,t):XjU(D,Y,R)},function(t){t&&t.name!=="DuplicateFormError"&&XjU(D,Y,R)})}catch(t){uIb(D,Y,R,null)}};
_.ix("userfeedback.api.startFeedback",_.aoD);var ull=/https?:\/\/\S+\.\S+/,avo=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],MQy=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var vpU=function(D){var Y=D.split(""),R=[-263237435,15,Y,function(Z,t,X){var M=t.length;X.forEach(function(W,z,I){this.push(I[z]=t[(t.indexOf(W)-t.indexOf(this[z])+z+M--)%t.length])},Z.split(""))},
function(Z,t){Z=(Z%t.length+t.length)%t.length;t.splice(-Z).reverse().forEach(function(X){t.unshift(X)})},
"response",function(){for(var Z=64,t=[];++Z-t.length-32;){switch(Z){case 58:Z-=14;case 91:case 92:case 93:continue;case 123:Z=47;case 94:case 95:case 96:continue;case 46:Z=95}t.push(String.fromCharCode(Z))}return t},
null,12,1540023973,65941107,null,Y,function(Z,t){for(Z=(Z%t.length+t.length)%t.length;Z--;)t.unshift(t.pop())},
695603893,function(Z){for(var t=Z.length;t;)Z.push(Z.splice(--t,1)[0])},
"'[;'[(",function(Z,t){Z.push(t)},
null,function(Z,t,X,M,W){return t(X,M,W)},
"continuation",Y,function(Z,t){if(Z.length!=0){t=(t%Z.length+Z.length)%Z.length;var X=Z[0];Z[0]=Z[t];Z[t]=X}},
function(){for(var Z=64,t=[];++Z-t.length-32;){switch(Z){case 91:Z=44;continue;case 123:Z=65;break;case 65:Z-=18;continue;case 58:Z=96;continue;case 46:Z=95}t.push(String.fromCharCode(Z))}return t},
'"),/]];'];R[7]=R;R[11]=R;R[18]=R;try{(((0,R[15])(R[21]),R[22])(R[11],R[9]),R[22])(R[new Date("1970-01-01T04:30:12.000+04:30")/1E3],R[1]),((0,R[22])(R[11],R[23]),R[4])(R[10],R[18]),(0,R[20])(R[21],R[14])<<(0,R[17])(R[18],R[1]),(0,R[4])(R[8],R[21]),(0,R[19])((0,R[19])((0,R[17])(R[7],R[9]),R[3],R[20],(0,R[6])(),R[2]),R[3],R[5],(0,R[15])(),R[2])}catch(Z){return"aTlOUOubTO4AP____8P_"+D}return Y.join("")};_.MUU=new _.Dv("runAttestationCommand");var C3z=new _.Dv("verifyCommand");_.ny=new _.Dv("accessibilityContext");var Wcz=new _.Dv("accessibilityData");var zD4=new _.Dv("profileCardCommand");var o45=new _.Dv("signInEndpoint");var v49=new _.Dv("signOutEndpoint");var TyL;_.Sr7=new _.Dv("accountItemSectionRenderer");TyL=new _.Dv("accountItemRenderer");_.jgb=new _.Dv("saveCommandToSessionStorageAction");var IoE=new _.Dv("crossAccountChannelTransferEndpoint");var n_U=new _.Dv("getAccountMenuEndpoint");_.r3o=new _.Dv("getAccountSwitcherEndpoint");var A3U=new _.Dv("getAccountsListEndpoint");var FcE=new _.Dv("getAccountsListInnertubeEndpoint");_.ri=new _.Dv("addToToastAction");var GtU=new _.Dv("hideEnclosingAction");_.wi=new _.Dv("replaceEnclosingAction");var VU7=new _.Dv("buttonRefreshAction");var fo1=new _.Dv("adsControlFlowOpportunityReceivedCommand");var eDE=new _.Dv("openAdAllowlistInstructionCommand");var A0V=new _.Dv("videoMastheadAdPrimaryVideoRenderer");var nrz=new _.Dv("displayAdRenderer");var OSy=new _.Dv("instreamVideoAdRenderer");_.r0E=new _.Dv("inFeedAdLayoutRenderer");var wjY=new _.Dv("sequenceItemInPlayerAdLayoutRenderer");_.$qD=new _.Dv("adSlotRenderer");var vr7=new _.Dv("adAvatarViewModel");var orz=new _.Dv("adBadgeViewModel");var bCU=new _.Dv("adImageViewModel");var Hll=new _.Dv("reelsAdCardButtonedViewModel");var y0b=new _.Dv("reelsPlayerOverlayLayoutViewModel");var Ny_=new _.Dv("showSchedulingPanelCommand");var loV=new _.Dv("backstageCommentsRenderer");var J0z=new _.Dv("backstageImageRenderer");var ktD=new _.Dv("backstagePostRenderer");var Uq1=new _.Dv("backstageZeroStateRenderer");var Kcb=new _.Dv("postRenderer");var hD_=new _.Dv("sharedPostRenderer");var LcL=new _.Dv("createBackstagePostEndpoint");var mqE=new _.Dv("getPostVideoPreviewEndpoint");var qrL=new _.Dv("updateBackstagePostEndpoint");var HCE=new _.Dv("filterChipTransformCommand");var xq1=new _.Dv("insertRichSectionCommand");var H_b=new _.Dv("talkToRecsDeselectCommand");var P3_=new _.Dv("talkToRecsNextCommand");var q8l=new _.Dv("talkToRecsSelectCommand");var QgU=new _.Dv("talkToRecsUpdateTextCommand");_.A6=new _.Dv("browseEndpoint");_.By1=new _.Dv("confirmDialogEndpoint");var pj4=new _.Dv("expandOnHoverCardRenderer");var Er1=new _.Dv("lumiereShelfDetailsRenderer");var grz=new _.Dv("revealBusinessEmailCommand");var dqL=new _.Dv("validateChannelHandleCommand");var iCz=new _.Dv("channelCreationFormEndpoint");var OCY=new _.Dv("aboutChannelViewModel");var c0E=new _.Dv("channelThumbnailWithLinkRenderer");var DZz=new _.Dv("channelCreationServiceEndpoint");var Yk7=new _.Dv("updateChannelPageSettingsEndpoint");var $G=function(D){this.delegate=D},vx=function(){$G.apply(this,arguments)};
_.n(vx,$G);_.YF.Object.defineProperties(vx.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(D){this.delegate.entityMetadata=D}}});var Rc1=function(){vx.apply(this,arguments)};
_.n(Rc1,vx);Rc1.prototype.getAssociations=function(){return[]};
Rc1.prototype.getTypeName=function(){return"channelHandle"};var k0U=new _.Dv("webThumbnailDetailsExtensionData");var qtU=new _.Dv("commandContext");var ZgY=new _.Dv("addVideoLinkAction");var tEU=new _.Dv("banAuthorAction");var sFY=new _.Dv("createCommentAction");var XP1=new _.Dv("createCommentReplyAction");var uQb=new _.Dv("createPollAction");var aWz=new _.Dv("hideIdentityChipAction");var MEL=new _.Dv("openUpdateCommentDialogAction");var CQz=new _.Dv("pinCommentAction");var WPz=new _.Dv("removeCommentAction");var zcY=new _.Dv("unpinCommentAction");var o5=new _.Dv("updateBackstagePollAction");var SkL=new _.Dv("updateCommentVoteAction");var T3b=new _.Dv("commentThreadRenderer");var jFY=function(){vx.apply(this,arguments)};
_.n(jFY,vx);jFY.prototype.getAssociations=function(){return[]};
jFY.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var IW_=function(){vx.apply(this,arguments)};
_.n(IW_,vx);IW_.prototype.getAssociations=function(){return[]};
IW_.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.FP4=new _.Dv("commentDialogRenderer");var GgY=new _.Dv("reloadCommentsCommand");var VEE=new _.Dv("updateCommentsSettingsEndpoint");var fWY=new _.Dv("commentViewModel");var ecV=new _.Dv("triStateButtonViewModel");var Al4=new _.Dv("voiceReplyContainerViewModel");_.je=new _.Dv("commandExecutorCommand");var hi=new _.Dv("emoji");var nBz=new _.Dv("updateCreatorChannelInnertubeCommand");_.rlE=new _.Dv("appendContinuationItemsAction");_.wP_=new _.Dv("changeEngagementPanelVisibilityAction");_.PN=new _.Dv("continuationCommand");var $ZY=new _.Dv("hideReportedCommentAction");var vBE=new _.Dv("listMutationCommand");_.bS=new _.Dv("openPopupAction");var oBz=new _.Dv("persistSubscriptionsDisplayPreferencesCommand");var KPL;_.bgU=new _.Dv("playlistRemoveVideosAction");_.yl1=new _.Dv("updatePlaylistAction");_.N3z=new _.Dv("addToPlaylistCommand");_.lWL=new _.Dv("endPlaylistCommand");_.Jlz=new _.Dv("recoverPlaylistCommand");_.kgE=new _.Dv("refreshPlaylistCommand");_.UZz=new _.Dv("refreshFormCommand");KPL=new _.Dv("openOnePickAddVideoModalCommand");_.y3r=new _.Dv("reloadContinuationItemsCommand");_.hcE=new _.Dv("scrollToEngagementPanelCommand");var LP4=new _.Dv("selectCountryCommand");var mZE=new _.Dv("showReloadUiCommand");var qkz=new _.Dv("undoFeedbackAction");var Hg4=new _.Dv("updateButtonAction");var xZV=new _.Dv("updateSubscribeButtonAction");var PQz=new _.Dv("updateToggleAction");var QFL=new _.Dv("webNativeShareCommand");_.GA=new _.Dv("webCommandMetadata");_.yX=new _.Dv("webHandleServiceEndpointExtension");var ys9=new _.Dv("webNavigationEndpointData");var B3U=new _.Dv("backgroundAudioPlaybackCommand");var pPV=new _.Dv("copyLinkCommand");var EBz=new _.Dv("playlistVotingRefreshPopupCommand");var gBz=new _.Dv("selectChipCommand");var dZ_=new _.Dv("setCookieCommand");var igL=new _.Dv("setLocalStorageCommand");var OgE=new _.Dv("setPrefStorageEntryCommand");var RXz;_.clV=new _.Dv("settingsUpdateCheckboxCommand");_.DlD=new _.Dv("settingsUpdateTextCommand");_.YSE=new _.Dv("settingsUpdateOptionsCommand");RXz=new _.Dv("settingsUpdateSwitchCommand");_.ZfL=new _.Dv("settingsUpdateConnectedAppRendererCommand");var t_b=new _.Dv("updateTextInputFormFieldRendererCommand");var ssz=new _.Dv("updateToggleButtonStateCommand");var XFL=new _.Dv("updateUrlParamCommand");var u$z=new _.Dv("webSubmitFormCommand");var as4=new _.Dv("channelSwitcherPageRenderer"),M_L=new _.Dv("updateChannelSwitcherPageAction");_.Y5=new _.Dv("continuationItemRenderer");_.Nv=new _.Dv("richItemRenderer");var CCY=new _.Dv("richSectionRenderer");_.WkL=new _.Dv("richShelfRenderer");_.zXb=new _.Dv("metadataBadgeRenderer");_.SSb=new _.Dv("multiPageMenuNotificationSectionRenderer");_.TQY=new _.Dv("playlistLoopButtonStateRenderer");var js4=new _.Dv("claimLegacyYoutubeChannelEndpoint");var Isz=new _.Dv("getNotificationMenuEndpoint");var FkV=new _.Dv("getSearchInVideoCommand");_.GRz=new _.Dv("getTranscriptEndpoint");_.Fa=new _.Dv("signalServiceEndpoint");var V_E=new _.Dv("verifyAgeEndpoint");var yOo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(yOo,_.Y7);yOo.prototype.getPath=function(){return _.Np(this,1)};
yOo.prototype.getValue=function(){return _.Np(this,2)};var fsL=[0,_.Eb,-1];var eX4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(eX4,_.Y7);var b6o=_.C$(eX4,[0,_.g0,fsL]);var AmL=new _.Dv("dismissalEndpoint");var nOY=new _.Dv("elementsCommand");_.mQ=new _.Dv("innertubeCommand");var rmY=new _.Dv("multipleInlinePlaybackCommand");var TB9=new _.Dv("loggingDirectives");var wF4=new _.Dv("acknowledgeChannelTouStrikeCommand");var $lV=function(){vx.apply(this,arguments)};
_.n($lV,vx);$lV.prototype.getAssociations=function(){return[]};
$lV.prototype.getTypeName=function(){return"booleanEntity"};var vOE=function(){vx.apply(this,arguments)};
_.n(vOE,vx);vOE.prototype.getAssociations=function(){return[]};
vOE.prototype.getTypeName=function(){return"stringEntity"};var cN=new _.Dv("entityBatchUpdate");_.oOU=new _.Dv("entityUpdateCommand");var bfU=function(){vx.apply(this,arguments)};
_.n(bfU,vx);bfU.prototype.getAssociations=function(){var D=[];this.delegate.alternateChannel&&D.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&D.push.apply(D,_.oK(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&D.push(this.delegate.oneofChannelEntity);return[].concat(_.oK(new Set(D)))};
bfU.prototype.getTypeName=function(){return"fakeChannel"};var ymU=function(){vx.apply(this,arguments)};
_.n(ymU,vx);ymU.prototype.getAssociations=function(){var D=[];this.delegate.entryCollection&&D.push(this.delegate.entryCollection);return[].concat(_.oK(new Set(D)))};
ymU.prototype.getTypeName=function(){return"fakePlaylist"};
var NQ1=function(){vx.apply(this,arguments)};
_.n(NQ1,vx);NQ1.prototype.getAssociations=function(){var D=[];this.delegate.parentPlaylist&&D.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var Y=_.a(this.delegate.entries),R=Y.next();!R.done;R=Y.next())D.push.apply(D,_.oK((new lsL(R.value)).getAssociations()));return[].concat(_.oK(new Set(D)))};
NQ1.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var lsL=function(){$G.apply(this,arguments)};
_.n(lsL,$G);lsL.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);return[].concat(_.oK(new Set(D)))};var JmU=function(){vx.apply(this,arguments)};
_.n(JmU,vx);JmU.prototype.getAssociations=function(){var D=[];this.delegate.descriptionEntity&&D.push(this.delegate.descriptionEntity);this.delegate.creators&&D.push.apply(D,_.oK(this.delegate.creators));this.delegate.theBiggestFan&&D.push(this.delegate.theBiggestFan);return[].concat(_.oK(new Set(D)))};
JmU.prototype.getTypeName=function(){return"fakeVideo"};
var kR7=function(){vx.apply(this,arguments)};
_.n(kR7,vx);kR7.prototype.getAssociations=function(){return[]};
kR7.prototype.getTypeName=function(){return"fakeVideoDescription"};var Ulz=new _.Dv("fantasyRosterViewModel");var Kk1=new _.Dv("addFollowUpSurveyCommand");var hXL=new _.Dv("getSurveyCommand");var Lkz=new _.Dv("ratingSurveyOptionRenderer");_.Jn=new _.Dv("feedbackEndpoint");var mlU=new _.Dv("reportHistoryTableCellRenderer"),qSL=new _.Dv("reportHistoryTableTextCellRenderer"),HfU=new _.Dv("reportHistoryTableReasonCellRenderer");_.xlY=new _.Dv("flagEndpoint");var PCE=new _.Dv("getFlowCommand");var Qs7=new _.Dv("submitFormWithValidationFlowCommand");var BQL=function(){vx.apply(this,arguments)};
_.n(BQL,vx);BQL.prototype.getAssociations=function(){return[]};
BQL.prototype.getTypeName=function(){return"flowStateEntity"};var pF1=new _.Dv("flowFormState");var EOb=new _.Dv("gameCardRenderer");var gOz=new _.Dv("accountLinkingStateChangedCommand");var dl4=function(){vx.apply(this,arguments)};
_.n(dl4,vx);dl4.prototype.getAssociations=function(){return[]};
dl4.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var ifz=new _.Dv("changeMiniAppPlayStateCommand");var OfL=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(OfL,_.Y7);var lS=[1,2,3];var cmE=[0,lS,hZr,_.LHr,yM5];var DFU=_.C$(OfL,cmE),YFD=_.WZ(cmE);var RA7=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(RA7,_.Y7);var ZK4=[0,_.Qn,_.Eb];var tQ1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(tQ1,_.Y7);var s6E=[0,_.Eb,_.Qn,-1];var Jh=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Jh,_.Y7);var XAY=_.WZ([0,1,ZK4,_.ih,s6E]);var ulz=new _.Dv("miniAppScoreChallengeViewModel");var av4=new _.Dv("miniGameCardViewModel");var MQL=new _.Dv("teaserCardViewModel");var CR1=function(){vx.apply(this,arguments)};
_.n(CR1,vx);CR1.prototype.getAssociations=function(){return[]};
CR1.prototype.getTypeName=function(){return"logoEntity"};_.Wvz=new _.Dv("feedbackItemRenderer");var zAE=function(){vx.apply(this,arguments)};
_.n(zAE,vx);zAE.prototype.getAssociations=function(){return[]};
zAE.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.SF_=new _.Dv("playerInterstitialRenderer");var TkL=new _.Dv("getKidsBlocklistPickerCommand");_.j6U=new _.Dv("updateKidsBlacklistEndpoint");var Ivb=new _.Dv("learningJourneyCanvasCommand");_.Hl=new _.Dv("likeEndpoint");var FvU,GSL,VQ4;FvU=new _.Dv("addChatItemAction");GSL=new _.Dv("removeChatItemAction");VQ4=new _.Dv("markChatItemAsDeletedAction");_.fv1=new _.Dv("setLiveChatCollapsedStateAction");var eA4=function(){vx.apply(this,arguments)};
_.n(eA4,vx);eA4.prototype.getAssociations=function(){return[]};
eA4.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var AH7=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(AH7,_.Y7);var nSz=_.C$(AH7,[0,1,_.Qn]);var rH1=new _.Dv("liveChatEndpoint");var wAU=new _.Dv("liveChatItemContextMenuEndpoint");var $FE=new _.Dv("liveChatReplayEndpoint");_.vSL=new _.Dv("emojiPickerRenderer");var oSb=new _.Dv("liveChatAuthorBadgeViewModel");var bK4=new _.Dv("deleteLiveChatMessageCommand");var yHz=new _.Dv("liveChatActionEndpoint");var Nk7=new _.Dv("createLiveChatPollEndpoint");var lvL=new _.Dv("manageLiveChatUserEndpoint");var JHz=new _.Dv("moderateLiveChatEndpoint");_.kSV=new _.Dv("sendLiveChatMessageEndpoint");var UFb=new _.Dv("sendLiveChatVoteEndpoint");var KvU=new _.Dv("clearLocationCommand");var hAU=new _.Dv("resolveLocationCommand");var LvY=new _.Dv("interactionLoggingCommandMetadata");var mFz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(mFz,_.Y7);var qFU=function(D,Y){return _.ug(D,1,Y)};var HK1=[0,_.pw];var xFU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(xFU,_.Y7);var PRE=function(D,Y){return Io(D,1,mFz,Y)};xFU.prototype.JSC$12078_serializeBinary=KSU([0,_.g0,HK1]);var Nk5={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 Q67={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"},
BkL={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 Enn={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"};_.YeS=new _.Dv("logFlowLoggingEventCommand");_.rs=new _.Dv("loggingContext");var pAL=new _.Dv("audioTrackSelectActionCommand");var ESV=new _.Dv("captionLanguageSelectActionCommand");var gSL=new _.Dv("showAudioTrackPickerActionCommand");var dFV=new _.Dv("showCaptionLanguageSelectActionCommand");var iKD=new _.Dv("dismissDialogEndpoint");var OKL=new _.Dv("dismissPlayerOverlayCommand");var cHV=new _.Dv("hideItemSectionVideosByIdCommand");var D0z=new _.Dv("showMiniplayerCommand");var Yoz=function(){vx.apply(this,arguments)};
_.n(Yoz,vx);Yoz.prototype.getAssociations=function(){return[]};
Yoz.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var RRz=function(){vx.apply(this,arguments)};
_.n(RRz,vx);RRz.prototype.getAssociations=function(){return[]};
RRz.prototype.getTypeName=function(){return"downloadStatusEntity"};var ZDY=function(){vx.apply(this,arguments)};
_.n(ZDY,vx);ZDY.prototype.getAssociations=function(){return[]};
ZDY.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var tRE=function(){vx.apply(this,arguments)};
_.n(tRE,vx);tRE.prototype.getAssociations=function(){var D=[];this.delegate.downloadsList&&D.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&D.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&D.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.oK(new Set(D)))};
tRE.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var sh4=function(){vx.apply(this,arguments)};
_.n(sh4,vx);sh4.prototype.getAssociations=function(){var D=[];this.delegate.refresh&&D.push(this.delegate.refresh);if(this.delegate.downloads)for(var Y=_.a(this.delegate.downloads),R=Y.next();!R.done;R=Y.next())D.push.apply(D,_.oK((new XXb(R.value)).getAssociations()));return[].concat(_.oK(new Set(D)))};
sh4.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var XXb=function(){$G.apply(this,arguments)};
_.n(XXb,$G);XXb.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playlist&&D.push(this.delegate.playlist);this.delegate.videoItem&&D.push(this.delegate.videoItem);this.delegate.playlistItem&&D.push(this.delegate.playlistItem);return[].concat(_.oK(new Set(D)))};var uSL=function(){vx.apply(this,arguments)};
_.n(uSL,vx);uSL.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.oK(this.delegate.localImageEntities));return[].concat(_.oK(new Set(D)))};
uSL.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var aB7=function(){vx.apply(this,arguments)};
_.n(aB7,vx);aB7.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.oK(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oK(new Set(D)))};
aB7.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var MRL=function(){vx.apply(this,arguments)};
_.n(MRL,vx);MRL.prototype.getAssociations=function(){return[]};
MRL.prototype.getTypeName=function(){return"offlineabilityEntity"};var CjE=function(){vx.apply(this,arguments)};
_.n(CjE,vx);CjE.prototype.getAssociations=function(){var D=[];this.delegate.fakeChildren&&D.push.apply(D,_.oK(this.delegate.fakeChildren));return[].concat(_.oK(new Set(D)))};
CjE.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Ww_=function(){vx.apply(this,arguments)};
_.n(Ww_,vx);Ww_.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);return[].concat(_.oK(new Set(D)))};
Ww_.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var zRE=function(){vx.apply(this,arguments)};
_.n(zRE,vx);zRE.prototype.getAssociations=function(){return[]};
zRE.prototype.getTypeName=function(){return"continuationTokenEntity"};var So7=function(){vx.apply(this,arguments)};
_.n(So7,vx);So7.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.videos&&D.push.apply(D,_.oK(this.delegate.videos));this.delegate.collaboratorChannels&&D.push.apply(D,_.oK(this.delegate.collaboratorChannels));this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.oK(new Set(D)))};
So7.prototype.getTypeName=function(){return"mainPlaylistEntity"};var T7E=function(){vx.apply(this,arguments)};
_.n(T7E,vx);T7E.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.channelContributor&&D.push(this.delegate.channelContributor);return[].concat(_.oK(new Set(D)))};
T7E.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var jhY=function(){$G.apply(this,arguments)};
_.n(jhY,$G);jhY.prototype.getAssociations=function(){var D=[];this.delegate.recommendedVideoMetadata&&D.push.apply(D,_.oK((new IBU(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.oK(new Set(D)))};
var IBU=function(){$G.apply(this,arguments)};
_.n(IBU,$G);IBU.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.oK(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oK(new Set(D)))};var FwD=function(){$G.apply(this,arguments)};
_.n(FwD,$G);FwD.prototype.getAssociations=function(){var D=[];this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);return[].concat(_.oK(new Set(D)))};var GpE=function(){vx.apply(this,arguments)};
_.n(GpE,vx);GpE.prototype.getAssociations=function(){var D=[];this.delegate.owner&&D.push(this.delegate.owner);this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.userState&&D.push.apply(D,_.oK((new FwD(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&D.push.apply(D,_.oK((new jhY(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.oK(new Set(D)))};
GpE.prototype.getTypeName=function(){return"mainVideoEntity"};var VRV=function(){vx.apply(this,arguments)};
_.n(VRV,vx);VRV.prototype.getAssociations=function(){var D=[];this.delegate.userChannelDetails&&D.push(this.delegate.userChannelDetails);return[].concat(_.oK(new Set(D)))};
VRV.prototype.getTypeName=function(){return"ytMainChannelEntity"};var fBD=function(){vx.apply(this,arguments)};
_.n(fBD,vx);fBD.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&D.push.apply(D,_.oK(this.delegate.localImageEntities));this.delegate.downloadStatus&&D.push(this.delegate.downloadStatus);return[].concat(_.oK(new Set(D)))};
fBD.prototype.getTypeName=function(){return"ytMainVideoEntity"};var oWn=new _.Dv("downloadsPageSmartDownloadsOptInBannerParams");var lYi=new _.Dv("downloadsPageUpsellBannerParams");var eR4=function(){vx.apply(this,arguments)};
_.n(eR4,vx);eR4.prototype.getAssociations=function(){return[]};
eR4.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var AwD=function(){vx.apply(this,arguments)};
_.n(AwD,vx);AwD.prototype.getAssociations=function(){return[]};
AwD.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var nL1=function(){vx.apply(this,arguments)};
_.n(nL1,vx);nL1.prototype.getAssociations=function(){return[]};
nL1.prototype.getTypeName=function(){return"macroMarkerEntity"};var rwz=function(){vx.apply(this,arguments)};
_.n(rwz,vx);rwz.prototype.getAssociations=function(){return[]};
rwz.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var wXY=function(){vx.apply(this,arguments)};
_.n(wXY,vx);wXY.prototype.getAssociations=function(){return[]};
wXY.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var $0E=function(){vx.apply(this,arguments)};
_.n($0E,vx);$0E.prototype.getAssociations=function(){return[]};
$0E.prototype.getTypeName=function(){return"playerStateEntity"};var vL7=function(){vx.apply(this,arguments)};
_.n(vL7,vx);vL7.prototype.getAssociations=function(){return[]};
vL7.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var oLz=function(){vx.apply(this,arguments)};
_.n(oLz,vx);oLz.prototype.getAssociations=function(){return[]};
oLz.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var bDz=function(){vx.apply(this,arguments)};
_.n(bDz,vx);bDz.prototype.getAssociations=function(){return[]};
bDz.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.kG=new _.Dv("dislikeButtonViewModel");_.U_=new _.Dv("likeButtonViewModel");var yw7=new _.Dv("videoSummaryContentViewModel");var N77=new _.Dv("videoSummaryParagraphViewModel");var lBz=new _.Dv("changeTimelyActionVisibilityCommand");var JwU=new _.Dv("hideEngagementPanelEndpoint");var kpU=new _.Dv("refreshPanelEndpoint");var U04=new _.Dv("scrollToSectionEndpoint");var KwL=new _.Dv("seekToVideoTimestampCommand");_.l$=new _.Dv("showEngagementPanelEndpoint");var hRV=new _.Dv("showTransientPlayerScrimOverlayCommand");var Lw4=new _.Dv("toggleEngagementPanelCommand");_.m0Y=new _.Dv("createBroadcastCommand");var qoE=new _.Dv("metadataUpdateCommand");var HDb=function(){vx.apply(this,arguments)};
_.n(HDb,vx);HDb.prototype.getAssociations=function(){return[]};
HDb.prototype.getTypeName=function(){return"featuredProductsEntity"};var x0z=function(){vx.apply(this,arguments)};
_.n(x0z,vx);x0z.prototype.getAssociations=function(){return[]};
x0z.prototype.getTypeName=function(){return"pinnedProductEntity"};var PjD=function(){vx.apply(this,arguments)};
_.n(PjD,vx);PjD.prototype.getAssociations=function(){return[]};
PjD.prototype.getTypeName=function(){return"trendingOfferEntity"};_.QhL=new _.Dv("merchandiseShelfRenderer");var B7E=new _.Dv("gridMovieRenderer");_.pXz=new _.Dv("movieRenderer");var ELb=function(){vx.apply(this,arguments)};
_.n(ELb,vx);ELb.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.oK(this.delegate.trackDownloadMetadatas));return[].concat(_.oK(new Set(D)))};
ELb.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var gL4=function(){vx.apply(this,arguments)};
_.n(gL4,vx);
gL4.prototype.getAssociations=function(){var D=[];this.delegate.downloadedTracks&&D.push.apply(D,_.oK(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&D.push.apply(D,_.oK(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&D.push.apply(D,_.oK(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&D.push.apply(D,_.oK(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&D.push.apply(D,_.oK(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
D.push.apply(D,_.oK(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&D.push.apply(D,_.oK(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&D.push.apply(D,_.oK(this.delegate.metadataOnlyTracks));return[].concat(_.oK(new Set(D)))};
gL4.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var d0E=function(){vx.apply(this,arguments)};
_.n(d0E,vx);d0E.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.oK(this.delegate.trackDownloadMetadatas));return[].concat(_.oK(new Set(D)))};
d0E.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var iD7=function(){vx.apply(this,arguments)};
_.n(iD7,vx);iD7.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.oK(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oK(new Set(D)))};
iD7.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var ODU=function(){vx.apply(this,arguments)};
_.n(ODU,vx);
ODU.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&D.push.apply(D,_.oK(this.delegate.primaryArtists));this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.tracks&&D.push.apply(D,_.oK(this.delegate.tracks));this.delegate.share&&D.push(this.delegate.share);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.refresh&&
D.push(this.delegate.refresh);return[].concat(_.oK(new Set(D)))};
ODU.prototype.getTypeName=function(){return"musicAlbumRelease"};
var cw4=function(){vx.apply(this,arguments)};
_.n(cw4,vx);cw4.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.tracks&&D.push.apply(D,_.oK(this.delegate.tracks));return[].concat(_.oK(new Set(D)))};
cw4.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var DKV=function(){vx.apply(this,arguments)};
_.n(DKV,vx);DKV.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);return[].concat(_.oK(new Set(D)))};
DKV.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var YPY=function(){vx.apply(this,arguments)};
_.n(YPY,vx);YPY.prototype.getAssociations=function(){var D=[];this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);return[].concat(_.oK(new Set(D)))};
YPY.prototype.getTypeName=function(){return"musicArtist"};
var RmV=function(){vx.apply(this,arguments)};
_.n(RmV,vx);RmV.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.oK(new Set(D)))};
RmV.prototype.getTypeName=function(){return"musicArtistDetail"};
var ZJU=function(){vx.apply(this,arguments)};
_.n(ZJU,vx);ZJU.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.oK(new Set(D)))};
ZJU.prototype.getTypeName=function(){return"musicArtistUserDetail"};var ttL=function(){vx.apply(this,arguments)};
_.n(ttL,vx);ttL.prototype.getAssociations=function(){return[]};
ttL.prototype.getTypeName=function(){return"musicLibraryEdit"};var s1z=function(){vx.apply(this,arguments)};
_.n(s1z,vx);s1z.prototype.getAssociations=function(){return[]};
s1z.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var X6Y=function(){vx.apply(this,arguments)};
_.n(X6Y,vx);
X6Y.prototype.getAssociations=function(){var D=[];this.delegate.tracks&&D.push.apply(D,_.oK(this.delegate.tracks));this.delegate.refresh&&D.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&D.push(this.delegate.details);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&D.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.entryCollection&&
D.push(this.delegate.entryCollection);this.delegate.share&&D.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&D.push.apply(D,_.oK((new uez(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.oK(new Set(D)))};
X6Y.prototype.getTypeName=function(){return"musicPlaylist"};
var uez=function(){$G.apply(this,arguments)};
_.n(uez,$G);uez.prototype.getAssociations=function(){var D=[];this.delegate.creatorEntity&&D.push(this.delegate.creatorEntity);return[].concat(_.oK(new Set(D)))};var aSY=function(){vx.apply(this,arguments)};
_.n(aSY,vx);aSY.prototype.getAssociations=function(){return[]};
aSY.prototype.getTypeName=function(){return"musicShare"};var Mt_=function(){vx.apply(this,arguments)};
_.n(Mt_,vx);
Mt_.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&D.push.apply(D,_.oK(this.delegate.artists));this.delegate.audioModeVersion&&D.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&D.push(this.delegate.videoModeVersion);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.details&&D.push(this.delegate.details);this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.share&&
D.push(this.delegate.share);this.delegate.libraryEdit&&D.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.lyrics&&D.push(this.delegate.lyrics);return[].concat(_.oK(new Set(D)))};
Mt_.prototype.getTypeName=function(){return"musicTrack"};
var C__=function(){vx.apply(this,arguments)};
_.n(C__,vx);C__.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.oK(new Set(D)))};
C__.prototype.getTypeName=function(){return"musicTrackDetail"};
var WaL=function(){vx.apply(this,arguments)};
_.n(WaL,vx);WaL.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.oK(new Set(D)))};
WaL.prototype.getTypeName=function(){return"musicTrackUserDetail"};var O0=new _.Dv("musicResponsiveListItemRenderer");var knr=new _.Dv("addToPlaylistEndpoint");var zmz=new _.Dv("captionPickerEndpoint");var SPY=new _.Dv("suggestStats");var TpE=new _.Dv("backstageImageUploadEndpoint");var j11=new _.Dv("createBackstagePostDialogEndpoint");_.ISE=new _.Dv("createCommentReplyDialogEndpoint");_.FaY=new _.Dv("updateCommentDialogEndpoint");_.GY_=new _.Dv("updateCommentReplyDialogEndpoint");var VtU=new _.Dv("menuEndpoint");var vfM=new _.Dv("modalEndpoint");var fS_=new _.Dv("playlistEditorEndpoint");var em7=new _.Dv("copyTextEndpoint");var A2z,nl_;A2z=new _.Dv("shareEndpoint");nl_=new _.Dv("shareEntityEndpoint");_.r2U=new _.Dv("shareEntityServiceEndpoint");_.nXl=new _.Dv("userFeedbackEndpoint");_.Od=new _.Dv("watchEndpoint");var Mml=new _.Dv("watchPlaylistEndpoint");var w6L=new _.Dv("addUpcomingEventReminderEndpoint");_.Ky=new _.Dv("getCommentsFromInboxCommand");var $KE=new _.Dv("notificationOptOutEndpoint");var vlz=new _.Dv("recordNotificationInteractionsEndpoint");var olL=new _.Dv("removeUpcomingEventReminderEndpoint");var l5b=new _.Dv("getDownloadActionCommand");_.bJV=new _.Dv("offlineOrchestrationActionCommand");var y2E=function(){vx.apply(this,arguments)};
_.n(y2E,vx);y2E.prototype.getAssociations=function(){return[]};
y2E.prototype.getTypeName=function(){return"captionTrack"};var NpV=function(){vx.apply(this,arguments)};
_.n(NpV,vx);NpV.prototype.getAssociations=function(){return[]};
NpV.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var lS1=function(){vx.apply(this,arguments)};
_.n(lS1,vx);lS1.prototype.getAssociations=function(){return[]};
lS1.prototype.getTypeName=function(){return"offlineVideoPolicy"};var J2L=function(){vx.apply(this,arguments)};
_.n(J2L,vx);J2L.prototype.getAssociations=function(){return[]};
J2L.prototype.getTypeName=function(){return"offlineVideoStreams"};var kYV=function(){vx.apply(this,arguments)};
_.n(kYV,vx);kYV.prototype.getAssociations=function(){var D=[];this.delegate.transfer&&D.push(this.delegate.transfer);this.delegate.adsPlaybackData&&D.push.apply(D,_.oK(this.delegate.adsPlaybackData));this.delegate.drmLicense&&D.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.oK(new Set(D)))};
kYV.prototype.getTypeName=function(){return"playbackData"};var UKU=function(){vx.apply(this,arguments)};
_.n(UKU,vx);UKU.prototype.getAssociations=function(){return[]};
UKU.prototype.getTypeName=function(){return"refresh"};var KaE=function(){vx.apply(this,arguments)};
_.n(KaE,vx);KaE.prototype.getAssociations=function(){var D=[];this.delegate.offlineVideoStreams&&D.push.apply(D,_.oK(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&D.push.apply(D,_.oK(this.delegate.captionTrack));return[].concat(_.oK(new Set(D)))};
KaE.prototype.getTypeName=function(){return"transfer"};var hm7=function(){vx.apply(this,arguments)};
_.n(hm7,vx);hm7.prototype.getAssociations=function(){return[]};
hm7.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var LaU=new _.Dv("showMoreDrawerCommand");var mKY=new _.Dv("updateEngagementPanelContentCommand");var qPU=new _.Dv("getPdgBuyFlowCommand");var HJ4=new _.Dv("liveChatPurchaseMessageEndpoint");var xK_=new _.Dv("openSuperStickerBuyFlowCommand");var P_1=new _.Dv("updatePdgFeatureEnablementCommand");var Q1L=function(){vx.apply(this,arguments)};
_.n(Q1L,vx);Q1L.prototype.getAssociations=function(){return[]};
Q1L.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var BpL=function(){vx.apply(this,arguments)};
_.n(BpL,vx);BpL.prototype.getAssociations=function(){return[]};
BpL.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.p6Y=new _.Dv("pdgCommentChipRenderer");_.El1=new _.Dv("permissionRoleBottomBarRenderer");_.glb=new _.Dv("updatePermissionRoleCommand");var dKE=new _.Dv("prefetchWatchCommand");var iJz=new _.Dv("updatePlayerErrorMessageCommand");var wpU=new _.Dv("toggleCaptionsVisibilityCommand");_.OJE=new _.Dv("quickActionsViewModel");var c2D=new _.Dv("playerResponse");var Dv1=new _.Dv("playlistRenderer");_.Y_z=new _.Dv("playlistVideoListRenderer");_.hh=new _.Dv("playlistEditEndpoint");var RO_=new _.Dv("createImagePollCommand");var Zy7=new _.Dv("createQuizCommand");var tBz=new _.Dv("quizRenderer");var s5D=new _.Dv("uploadedVideoRenderer");var XxL=new _.Dv("decorateMessageEndpoint");var uAL=new _.Dv("lpOfferCardOptionViewModel");var aVY=new _.Dv("sfvAudioItemPlaybackCommand");var MBL=function(){vx.apply(this,arguments)};
_.n(MBL,vx);MBL.prototype.getAssociations=function(){return[]};
MBL.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Ly=new _.Dv("reelNonVideoContentEndpoint");_.$I=new _.Dv("reelWatchEndpoint");_.mM=new _.Dv("reelItemRenderer");_.CSV=new _.Dv("reelMetapanelViewModel");_.WM4=new _.Dv("reelNonVideoContentRenderer");_.zOL=new _.Dv("reelPlayerOverlayRenderer");var S_4=new _.Dv("shortsLockupViewModel");var TiE=new _.Dv("sponsorButtonViewModel");var j5U=new _.Dv("reelItemWatchResponse");var IVL=new _.Dv("textBadgeRenderer");_.qv=new _.Dv("buttonRenderer");_.Hx=new _.Dv("toggleButtonRenderer");var lyn=new _.Dv("switchButtonViewModel");_.FML=new _.Dv("confirmDialogRenderer");var GBE;GBE=new _.Dv("menuRenderer");_.VBV=new _.Dv("menuFlexibleItemRenderer");var fVY=new _.Dv("pollRenderer");_.eOz=new _.Dv("backgroundPromoRenderer");var nG7;_.AhV=new _.Dv("chipCloudRenderer");nG7=new _.Dv("chipCloudChipRenderer");var rhY=new _.Dv("dropdownRenderer");var wx4=new _.Dv("gridVideoRenderer");_.$v_=new _.Dv("itemSectionRenderer");_.vGD=new _.Dv("messageRenderer");var oGL=new _.Dv("sortFilterHeaderRenderer");_.xG=new _.Dv("videoRenderer");var by4=new _.Dv("resolveUrlCommandMetadata");var yh1=function(){vx.apply(this,arguments)};
_.n(yh1,vx);yh1.prototype.getAssociations=function(){return[]};
yh1.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.Ni7=new _.Dv("getAnswerCommand");_.nn=new _.Dv("searchEndpoint");var lVL=new _.Dv("genAiRichTextViewModel");var NvU=new _.Dv("overviewAnswerViewModel");var Jhz=new _.Dv("addToPlaylistServiceEndpoint");var kBb=new _.Dv("clearSearchHistoryEndpoint");var UvE=new _.Dv("clearWatchHistoryEndpoint");var KML=new _.Dv("webSerializedServiceEndpointExtension");_.hOL=new _.Dv("createCommentEndpoint");var LML=new _.Dv("createCommentReplyEndpoint");var mvV=new _.Dv("performCommentActionEndpoint");var q_E=new _.Dv("updateCommentEndpoint");var HyD=new _.Dv("updateCommentReplyEndpoint");_.Px=new _.Dv("createPlaylistServiceEndpoint");var xvD=new _.Dv("deletePlaylistEndpoint");var PSE=new _.Dv("deleteVideoEndpoint");var J3S=new _.Dv("getReportFormEndpoint");var Q5z=new _.Dv("modifyChannelNotificationPreferenceEndpoint");var dOU;_.eG=new _.Dv("offlinePlaylistEndpoint");dOU={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 iYo;_.Vi=new _.Dv("offlineVideoEndpoint");iYo={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 Biz=new _.Dv("pingingEndpoint");_.pxU=new _.Dv("selectActiveIdentityEndpoint");var EGz=new _.Dv("setSettingEndpoint");var xtj=new _.Dv("undoFeedbackEndpoint");var gGz=new _.Dv("unsubscribeEndpoint");_.dvU=new _.Dv("updatedMetadataEndpoint");var iyU=function(){vx.apply(this,arguments)};
_.n(iyU,vx);iyU.prototype.getAssociations=function(){return[]};
iyU.prototype.getTypeName=function(){return"settingEntity"};_.Oy4=new _.Dv("updateLocalAppSettingCommand");var ch1=new _.Dv("saveImageToDeviceEndpoint");var D8E=new _.Dv("shareImageCommand");var YHU=new _.Dv("sharingProviderDataCommand");var R4U=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(R4U,_.Y7);var ZND=[0,_.Eb,-1];R4U.prototype.JSC$12279_serializeBinary=KSU(ZND);var tFU=_.WZ(ZND);var siz=new _.Dv("userMentionSuggestionRenderer");var XkE=new _.Dv("liveChatTunnelCommand");var uqL=new _.Dv("showSponsorshipsGiftOfferDialogCommand");var aYU=new _.Dv("sponsorshipsScrollableShelfViewModel");var MFU=new _.Dv("updateUpcomingEventReminderButtonStateCommand");var Csz=new _.Dv("upcomingEventReminderButtonStateRenderer");var WOY=new _.Dv("subscribeEndpoint");var z4L=new _.Dv("registerTasksCommand");var SHU=new _.Dv("hideSnackbarCommand");var Tmz=new _.Dv("showDialogCommand");_.bI=new _.Dv("showSheetCommand");var jiD=new _.Dv("showSnackbarCommand");var IY1=function(){vx.apply(this,arguments)};
_.n(IY1,vx);IY1.prototype.getAssociations=function(){return[]};
IY1.prototype.getTypeName=function(){return"chipEntity"};var FOL=function(){vx.apply(this,arguments)};
_.n(FOL,vx);FOL.prototype.getAssociations=function(){return[]};
FOL.prototype.getTypeName=function(){return"dismissState"};_.qP=new _.Dv("avatarViewModel");var GJU=new _.Dv("badgeViewModel");_.QX=new _.Dv("buttonViewModel");_.Bx=new _.Dv("chipViewModel");var Qri=new _.Dv("collectionThumbnailViewModel");var VF7=new _.Dv("contentPreviewImageViewModel");var fYb=new _.Dv("decoratedAvatarViewModel");_.B8$=new _.Dv("engagementBarViewModel");_.e4L=new _.Dv("imageBannerViewModel");var AGb=new _.Dv("lockupContentMetadataRowExtension");_.nWE=new _.Dv("lockupMetadataViewModel");_.rGE=new _.Dv("lockupViewModel");var wkL=new _.Dv("avatarStackViewModel");_.$8U=new _.Dv("contentMetadataViewModel");var vW_=function(){vx.apply(this,arguments)};
_.n(vW_,vx);vW_.prototype.getAssociations=function(){return[]};
vW_.prototype.getTypeName=function(){return"pageHeaderEntity"};_.lkE=new _.Dv("pageHeaderViewModel");var J$D=new _.Dv("snackbarViewModel");var k54=new _.Dv("thumbnailHoverOverlayToggleActionsViewModel");_.py=new _.Dv("toggleButtonViewModel");var UxV=function(){vx.apply(this,arguments)};
_.n(UxV,vx);UxV.prototype.getAssociations=function(){return[]};
UxV.prototype.getTypeName=function(){return"votingEntity"};_.ptn=new _.Dv("votingViewModel");var K0z=new _.Dv("sectionHeaderViewModel");var hxL=new _.Dv("notifyDropdownOptionSelectedCommand");var RLM=new _.Dv("listViewModel");_.yi=new _.Dv("listItemViewModel");var PJj=new _.Dv("toggleableListItemViewModel");var L01=new _.Dv("dialogHeaderViewModel");var mxV=function(){vx.apply(this,arguments)};
_.n(mxV,vx);mxV.prototype.getAssociations=function(){return[]};
mxV.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var qn1=function(){vx.apply(this,arguments)};
_.n(qn1,vx);qn1.prototype.getAssociations=function(){return[]};
qn1.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var HcL=function(){vx.apply(this,arguments)};
_.n(HcL,vx);HcL.prototype.getAssociations=function(){return[]};
HcL.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.xxV=new _.Dv("transcriptSubmitCaptionCorrectionCommand");var PB7=function(){vx.apply(this,arguments)};
_.n(PB7,vx);PB7.prototype.getAssociations=function(){return[]};
PB7.prototype.getTypeName=function(){return"buttonEntity"};var jj9=new _.Dv("unpluggedStringRunImage");var Q8U=new _.Dv("tabViewModel");var BtU=new _.Dv("tabbedViewModel");var psz=function(){vx.apply(this,arguments)};
_.n(psz,vx);psz.prototype.getAssociations=function(){return[]};
psz.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.EZV=new _.Dv("updateDescriptionAction");var gZz=new _.Dv("updateToggleButtonTextAction");_.dxU=new _.Dv("autoplaySwitchButtonRenderer");var Ko;_.icz=new _.Dv("multiMarkersPlayerBarRenderer");Ko=new _.Dv("chapterRenderer");var OcE=new _.Dv("heatMarkerRenderer");var DRo=new _.Dv("heatmapRenderer");var c$L=new _.Dv("smartSkipPlayerScrimOverlayRenderer");var DQY=new _.Dv("timedMarkerDecorationRenderer");var yv5=new _.Dv("postWebToNativeMessageCommand");var K9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(K9,_.Y7);K9.prototype.getMethodName=function(){return _.Np(this,1)};var Yc_=[0,_.Eb,-2];K9.prototype.JSC$12299_serializeBinary=KSU(Yc_);var RuL=_.C$(K9,Yc_);var ZO_=new _.Dv("whitelistEditEndpoint");var tnz=new _.Dv("clearUrlParamCommand");var s$E=new _.Dv("commerceActionCommand");_.XM1=new _.Dv("getPaymentInstrumentsParamsCommand");var uhb=new _.Dv("getPaymentsClientTokenCommand");var ab7=new _.Dv("googlePaymentBillingCommand");var Mnb=new _.Dv("googlePaymentPurchaseManagerCommand");_.CuL=new _.Dv("logGtmCommand");var W$V=new _.Dv("updateCardItemOnClickCommand");_.zuU=new _.Dv("ypcPauseSubscriptionCommand");_.ScL=new _.Dv("ypcResumeSubscriptionCommand");var TH_=function(){vx.apply(this,arguments)};
_.n(TH_,vx);TH_.prototype.getAssociations=function(){return[]};
TH_.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var j$U=function(){vx.apply(this,arguments)};
_.n(j$U,vx);j$U.prototype.getAssociations=function(){return[]};
j$U.prototype.getTypeName=function(){return"commerceCartListEntity"};var IbL=function(){vx.apply(this,arguments)};
_.n(IbL,vx);IbL.prototype.getAssociations=function(){return[]};
IbL.prototype.getTypeName=function(){return"iconBadgeEntity"};var F$U=function(){vx.apply(this,arguments)};
_.n(F$U,vx);F$U.prototype.getAssociations=function(){return[]};
F$U.prototype.getTypeName=function(){return"pdpStateEntity"};var GVU=function(){vx.apply(this,arguments)};
_.n(GVU,vx);GVU.prototype.getAssociations=function(){return[]};
GVU.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var jOS=new _.Dv("ypcOffersEndpoint");var VnU=new _.Dv("cardItemRenderer"),fbL=new _.Dv("cardItemTextRenderer");var euE=new _.Dv("commerceCartItemQuantityPickerRenderer");var AVE=new _.Dv("linkCardRenderer");var rvi=new _.Dv("quantityIncrementerButtonViewModel");var ntE=new _.Dv("quantityIncrementerViewModel");var rVL=new _.Dv("themedImageViewModel");_.wM7=new _.Dv("ypcCancelRecurrenceEndpoint");var $QU=new _.Dv("ypcCompleteTransactionEndpoint");_.vtz=new _.Dv("ypcGetCartEndpoint");_.Dx=new _.Dv("ypcGetOffersEndpoint");_.E_=new _.Dv("ypcHandleTransactionEndpoint");var otL=new _.Dv("ypcLogWalletAnalyticDataEndpoint");_.bOz=new _.Dv("ypcRedeemCodeEndpoint");var yVL=new _.Dv("ypcUpdateFopEndpoint");XA(s_(1),ZV(4));GQU((new MessageChannel).port2);var NHz=function(){this.register=new Map},JHr=function(D,Y,R){D=D+"_"+Y;
gi.register.has(D)?R=gi.register.get(D):(R=R(),gi.register.set(D,R));return R},lb7=function(D){D=_.a(D.register.values());
for(var Y=D.next();!Y.done;Y=D.next())_.z3(Y.value,"ABORTED")};
NHz.prototype.clear=function(){lb7(this);this.register.clear()};
var gi=new NHz;var SFU=Date.now().toString();var Ivi=j69();var rHS={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 JVL,kF;JVL=1;kF=function(D){this.veData=D};
_.oT=function(D){return new kF({trackingParams:D})};
_.TP=function(D,Y,R,Z,t,X){var M=JVL++;return new kF({veType:D,veCounter:M,elementIndex:R,dataElement:Y,youtubeData:Z,jspbYoutubeData:t,loggingDirectives:X})};
_.u=kF.prototype;
_.u.getAsJson=function(){var D={};this.veData.trackingParams!==void 0?D.trackingParams=this.veData.trackingParams:(D.veType=this.veData.veType,this.veData.veCounter!==void 0&&(D.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(D.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(D.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(D.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(D.isCounterfactual=!0);
return D};
_.u.getAsJspb=function(){var D=new HI7;this.veData.trackingParams!==void 0?D.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Kw(D,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Kw(D,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Kw(D,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.ug(D,5,!0));if(this.veData.dataElement!==void 0){var Y=this.veData.dataElement.getAsJspb();_.To(D,7,Y)}this.veData.youtubeData!==void 0&&_.To(D,8,this.veData.jspbYoutubeData);
return D};
_.u.toString=function(){return JSON.stringify(this.getAsJson())};
_.u.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.u.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.ix("yt_logging_screen.getRootVeType",eAo);_.ix("yt_logging_screen.getCurrentCsn",_.K2);_.ix("yt_logging_screen.getCttAuthInfo",h5);_.ix("yt_logging_screen.setCurrentScreen",_.L2);var kVb=function(){this.events=new Map},UQU=function(D){var Y=[];
D=_.a(D.events.values());for(var R=D.next();!R.done;R=D.next())Y.push(R.value);return Y};
kVb.prototype.clear=function(){this.events.clear()};var huL=function(){this.logTransport=new K$V;this.loggedEventRegister=new kVb;this.unloggedEventRegister=new kVb;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12336_flushTimer=new _.ul(this.flushInterval);this.JSC$12336_flushTimer.listen("tick",this.flush,!1,this)};
huL.prototype.flush=function(){if(this.eventsCount){var D={loggedEvents:UQU(this.loggedEventRegister),unloggedEvents:UQU(this.unloggedEventRegister)};if(_.f("export_player_version_to_ytconfig")){var Y;(Y=_.JQ("PLAYER_CLIENT_VERSION"))?(Y=Y.split("-")[0].replace(/\./g,""),Y=isNaN(Number(Y))?"0":Y):Y="";var R=_.JQ("PLAYER_CLIENT_VERSION");if(R){R=R.split("-");var Z="";R.length>1&&(Z=R[R.length-1]);R=zAn(Z.startsWith("canary_experiment")?"canary":Z.startsWith("canary_control")?"control":"none")}else R=
"CLIENT_CANARY_STATE_UNKNOWN";D.dimensions={playerClientVersion:Y,playerCanaryState:R}}this.logTransport.flush(D);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12336_flushTimer.enabled&&this.JSC$12336_flushTimer.stop()}};
var L$E=function(D){di==null&&(di=new huL);var Y=di;var R=Y.loggedEventRegister;D.dimensions=D.dimensions||{};D.dimensions.csn=_.K2()||"";var Z=vSM(D.dimensions).join(";");if(D.records!=null)if(R.events.has(Z)){var t;(t=R.events.get(Z).records)==null||t.push.apply(t,_.oK(D.records))}else R.events.set(Z,D);Y.JSC$12336_flushTimer.enabled||Y.JSC$12336_flushTimer.start();Y.eventsCount++;Y.eventsCount>=100&&Y.flush()};var K$V=function(){};
K$V.prototype.flush=function(D,Y){_.f("enable_client_sli_logging")&&_.bo("sliEventBatch",D,{sendIsolatedPayload:!!Y})};var di;var qcD;qcD=function(D){var Y=mQ7;D=D===void 0?{}:D;Y=Y.name;var R=lvy("SUCCESS");L$E({dimensions:D,records:[{name:Y,state:"SLI_STATE_END",status:R}]})};
_.kSU=function(D,Y,R,Z){this.name=D;this.sliId=Y;this.timeoutMs=R;this.statusOnTimeout=Z;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.kSU.prototype.getId=function(){return this.sliId};
_.Wf=function(D,Y){Y=Y===void 0?{}:Y;D.ongoing||(D.ongoing=!0,D.dimensions=Y,D.logSliId=GPY(),L$E({dimensions:D.dimensions,records:[{name:D.name,state:"SLI_STATE_START",sliId:D.logSliId}]}),D.timeoutMs>0&&(D.timeoutHandle=setTimeout(function(){_.z3(D,D.statusOnTimeout)},D.timeoutMs)))};
_.z3=function(D,Y){D.ongoing&&(D.timeoutMs>0&&clearTimeout(D.timeoutHandle),D.ongoing=!1,Y={dimensions:D.dimensions,records:[{name:D.name,status:lvy(Y),state:"SLI_STATE_END",sliId:D.logSliId}]},gi.register.delete(D.name+"_"+D.sliId),L$E(Y))};var mQ7=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var HOz=function(){vx.apply(this,arguments)};
_.n(HOz,vx);HOz.prototype.getAssociations=function(){return[]};
HOz.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Op$=new _.Dv("highlightTextDecoratorColorMapExtension");var dT9=new _.Dv("styleRunColorMapExtension");var HKS=_.gY(["data-"]),Q65={};var pAM={};var iS=function(D){this.wrappedPromise_=D===void 0?null:D;this.state_=0;this.JSC$12368_value_=null};
iS.prototype.then=function(D,Y,R){return this.wrappedPromise_?this.wrappedPromise_.then(D,Y,R):this.state_===1&&D?(D=D.call(R,this.JSC$12368_value_))&&typeof D.then==="function"?D:_.O_(D):this.state_===2&&Y?(D=Y.call(R,this.JSC$12368_value_))&&typeof D.then==="function"?D:_.xQL(D):this};
iS.prototype.getValue=function(){return this.JSC$12368_value_};
iS.prototype.isRejected=function(){return this.state_==2};
Uc1(iS);_.xQL=function(D){var Y=new iS;D=D===void 0?null:D;Y.state_=2;Y.JSC$12368_value_=D===void 0?null:D;return Y};
_.O_=function(D){var Y=new iS;D=D===void 0?null:D;Y.state_=1;Y.JSC$12368_value_=D===void 0?null:D;return Y};var aB5="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Puz=["load","abort","error"],cx=function(D,Y,R){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12388_maxAspectRatio_=D;this.disableAnimation_=Y===void 0?!1:Y;this.disableExifRotation_=R===void 0?!1:R;this.JSC$12388_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12388_reject_=this.resolve_=null};
cx.prototype.transform=function(D){var Y=this;this.mime_=D.type;Ek(LVb(D),this.dataUrlRead_,this.readError_,this);Ek(hsL(D.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(R,Z){Y.resolve_=R;Y.JSC$12388_reject_=Z})};
cx.prototype.dataUrlRead_=function(D){this.dataUrl_=D;this.angle_!=null&&Q$E(this)};
cx.prototype.exifRead_=function(D){if(this.disableExifRotation_)this.angle_=0;else{a:if(D=new DataView(D),D.byteLength<2||D.getUint16(0)!==65496)D=-2;else{for(var Y=2,R=D.byteLength;Y<R;){var Z=D.getUint16(Y),t=D.getUint16(Y+2);if(Z===65505){Y+=4;Z=D.getUint32(Y);t=D.getUint16(Y+4);if(Z!==1165519206||t!==0)break;Y+=6;Z=D.getUint16(Y)===18761;Y+=D.getUint32(Y+4,Z);t=D.getUint16(Y,Z);Y+=2;for(var X=0;X<t;X++){if(D.getUint16(Y,Z)===274){Y+=8;D=D.getUint16(Y,Z);break a}Y+=12}}else if(Z>>8!==255)break;
else Y+=t+2}D=-1}switch(D){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&&Q$E(this)};
cx.prototype.readError_=function(){this.JSC$12388_reject_()};
var Q$E=function(D){$C(D.JSC$12388_image_,Puz,D.completeTransform_,!1,D);D.JSC$12388_image_.src=_.Jf(D.dataUrl_).toString();D.JSC$12388_image_.src!=lT.toString()&&D.JSC$12388_image_.src.substr(0,11)==="data:image/"||D.JSC$12388_reject_()};
cx.prototype.completeTransform_=function(){if(this.JSC$12388_image_.src!=lT.toString()){var D=_.Jf(this.dataUrl_),Y=this.JSC$12388_image_.naturalHeight?this.JSC$12388_image_.naturalWidth/this.JSC$12388_image_.naturalHeight:null;this.invalidAspectRatio=Y>this.JSC$12388_maxAspectRatio_||Y<1/this.JSC$12388_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var R=this.JSC$12388_image_.naturalWidth,Z=this.JSC$12388_image_.naturalHeight,t=Y=0,X=this.JSC$12388_image_.naturalHeight?this.JSC$12388_image_.naturalWidth/
this.JSC$12388_image_.naturalHeight:null;X>this.JSC$12388_maxAspectRatio_?(R=this.JSC$12388_maxAspectRatio_*Z,Y=(R-this.JSC$12388_image_.naturalWidth)/2,this.cropped=!0):X<1/this.JSC$12388_maxAspectRatio_?(Z=this.JSC$12388_maxAspectRatio_*R,t=(Z-this.JSC$12388_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)X=R,R=Z,Z=X,X=Y,Y=t,t=X;switch(this.angle_){case 90:t-=R;break;case 180:Y-=R;t-=Z;break;case 270:Y-=
Z}this.cropped||this.angle_%360!==0?(D=document.createElement("canvas"),D.width=R||1,D.height=Z||1,this.JSC$12388_image_.naturalWidth&&this.JSC$12388_image_.naturalHeight&&(R=D.getContext("2d"),R.rotate(Math.PI/180*this.angle_),R.drawImage(this.JSC$12388_image_,Y,t,this.JSC$12388_image_.naturalWidth,this.JSC$12388_image_.naturalHeight)),this.transformedData=_.Jf(D.toDataURL(this.mime_))):this.transformedData=D}else this.transformedData=D;this.resolve_(this)}};var DY=function(D,Y){_.IF.call(this,D);this.value=Y};
_.n(DY,_.IF);
var YW=function(D,Y,R,Z,t,X,M){M=M===void 0?!1:M;_.eE.call(this);var W=this;this.JSC$12393_url_=D;this.channelId_=Y;this.maxFileSizeMb_=R;this.JSC$12393_maxAspectRatio_=Z;this.dropZoneEl_=t;this.rejectInvalidAspectRatio_=M;this.selectButtonEl_=X;this.JSC$12393_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new TB(this.dropZoneEl_);this.selectOverlay_=new jB(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12393_image_=this.transfer_=null;this.handler_=new _.aR(this);_.WB(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(X,"click",function(){W.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.n(YW,_.eE);YW.prototype.disposeInternal=function(){for(var D=this.selectButtonEl_.nextSibling;D&&D.parentNode&&D.tagName=="INPUT";)D.parentNode.removeChild(D),D=this.selectButtonEl_.nextSibling;this.cancel();_.eE.prototype.disposeInternal.call(this)};
YW.prototype.uploadPromise=function(){if(this.JSC$12393_image_==null)return null;this.uploadPromise_||BHb(this);return this.uploadPromise_};
YW.prototype.cancel=function(){pMU(this);this.JSC$12393_image_=null};
var pMU=function(D){D.transfer_&&D.transfer_.cancel();D.transfer_=null;D.uploadPromise_=null;D.resolve_=null;D.JSC$12393_reject_=null},BHb=function(D){pMU(D);
D.transfer_=_.RDV(D.JSC$12393_url_,{"X-YouTube-ChannelId":D.channelId_},D.JSC$12393_image_);D.handler_.listenOnce(D.transfer_,"l",D.JSC$12395_onUploadComplete_);D.handler_.listenOnce(D.transfer_,"n",D.onUploadError_);D.transfer_.run();D.uploadPromise_=new Promise(function(Y,R){D.resolve_=Y;D.JSC$12393_reject_=R})};
_.u=YW.prototype;_.u.onChange_=function(D){D.files.length&&(this.JSC$12393_image_=D.files[0],this.JSC$12393_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12393_image_=null,this.dispatchEvent(new DY("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(BHb(this),(new cx(this.JSC$12393_maxAspectRatio_)).transform(this.JSC$12393_image_).then((0,_.nG)(this.onPreview_,this),(0,_.nG)(this.onPreviewError_,this))))};
_.u.onPreview_=function(D){if(D.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12393_image_=null),this.dispatchEvent(new DY("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;D.cropped&&this.dispatchEvent(new DY("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new DY("yt.comments.ImageUploadOverlay.CHANGE_EVENT",D.transformedData))};
_.u.onPreviewError_=function(){this.JSC$12393_image_=null;this.dispatchEvent(new DY("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.u.onHover_=function(D){D.stopPropagation();D.preventDefault();if(D.type==="dragover")D=!0;else if(D.type==="dragleave")D=!1;else return;this.dispatchEvent(new DY("yt.comments.ImageUploadOverlay.HOVER_EVENT",D))};
_.u.JSC$12395_onUploadComplete_=function(){var D=(0,_.X8E)(this.transfer_.getResponseText());this.resolve_(D.encryptedBlobId)};
_.u.onUploadError_=function(){this.JSC$12393_reject_();pMU(this)};var EtV=function(D){D=D||{};var Y={},R={};this.url=D.url||"";this.args=D.args||_.y7.clone(Y);this.assets=D.assets||{};this.attrs=D.attrs||_.y7.clone(R);this.fallback=D.fallback||null;this.fallbackMessage=D.fallbackMessage||null;this.html5=!!D.html5;this.disable=D.disable||{};this.loaded=!!D.loaded;this.messages=D.messages||{}};
EtV.prototype.clone=function(){var D=new EtV,Y;for(Y in this)if(this.hasOwnProperty(Y)){var R=this[Y];_.P4(R)=="object"?D[Y]=_.y7.clone(R):D[Y]=R}return D};var gtV,dQ4,iO_,iE,cVz,DD4,YYz,RNE,ZSE,t5U,svE,XHL,u8E,a6L,M5U,CHb,WbY,zNE,SYL,TMz,jvY,I64,FbE,G2_,V5b,f6b,eNL,AUE,n$Y,H6M,rUU,wHz,$D_,v$b,o$D,bS7,yUE,NMD,l6z,JUY,qIy,k2L,UDE,KbL,hNL,LbL,mDb,qY7,HSz,xD4,PHV,Qv1,BM4,pHz,E$Y,g$7,Ri,dDE,iS1,OSL,cUE,Df7,YXY,R8z,ZV1,tmY,sXL,XV_,u1z,auD,Mmz,C6D,WTb,z8E,SXL,TGb,Lql,jXz,Iuz,FTL,GxL,VmL,fuE,e8L,A7U,nbU,r7b,wV4,$f1,vb1,obU,bVU,y71,NGL,lu_,J7U,kxb,Uf4,KTU,h8Y,LTE,mf7;gtV=["account/accounts_list"];dQ4=["acknowledge_channel_tou_strike"];iO_=["notification/add_upcoming_event_reminder"];
_.OOL=["att/get"];iE=["browse","music/browse","unplugged/browse"];cVz=["channel/claim_legacy_youtube_channel"];DD4=["history/clear_search_history"];YYz=["history/clear_watch_history"];RNE=["comment/perform_comment_action"];ZSE=["comment/get_comment_replies"];t5U=["ypc/commerce_action"];svE=["backstage/create_post"];XHL=["live/create_broadcast"];u8E=["channel/create_channel"];a6L=["comment/create_comment_reply"];M5U=["comment/create_comment"];CHb=["live_chat/create_poll"];WbY=["playlist/create"];
zNE=["decorate_message"];SYL=["live_chat/delete_message"];TMz=["playlist/delete"];jvY=["video/delete"];I64=["like/dislike"];FbE=["dismissal/dismiss"];G2_=["flag/flag"];V5b=["flow"];f6b=["account/account_menu"];eNL=["playlist/get_add_to_playlist"];AUE=["get_answer"];n$Y=["channel/get_channel_creation_form"];H6M=["offline/get_download_action"];rUU=["kids/get_kids_blocklist_picker"];wHz=["live_chat/get_item_context_menu"];$D_=["live_chat/get_live_chat_message_buy_flow"];v$b=["live_chat/get_live_chat_replay"];
o$D=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];bS7=["live_chat/get_live_chat_super_sticker_buy_flow"];yUE=["notification/get_notification_menu"];NMD=["playlist/get_settings_editor"];l6z=["backstage/get_post_video_preview"];JUY=["account/get_profile_card"];qIy=["share/get_share_panel"];k2L=["share/get_sharing_provider_data"];UDE=["get_survey"];KbL=["notification/get_unseen_count"];hNL=["get_user_mention_suggestions"];LbL=["get_watch"];mDb=["guide"];
qY7=["feedback"];HSz=["kids/update_blacklist"];xD4=["like/like"];PHV=["live_chat/live_chat_action"];Qv1=["live_chat/manage_user"];BM4=["video_manager/metadata_update"];pHz=["live_chat/moderate"];E$Y=["notification/modify_channel_preference"];g$7=["notification/opt_out"];Ri=["get_panel","get_posts_by_host_panel"];dDE=["player"];iS1=["browse/edit_playlist"];OSL=["notification/record_interactions"];cUE=["reel/reel_item_watch"];Df7=["reel/reel_watch_sequence"];YXY=["like/removelike"];R8z=["notification/remove_upcoming_event_reminder"];
ZV1=["flag/get_form"];tmY=["miniapp/report_value"];sXL=["navigation/resolve_url"];XV_=["channel/reveal_business_email"];u1z=["in_video/search"];auD=["search","sfv/search","unplugged/search"];Mmz=["live_chat/send_message"];C6D=["live_chat/send_live_chat_vote"];WTb=["account/set_setting"];z8E=["submit_caption_correction"];SXL=["submit_form"];TGb=["subscription/subscribe"];Lql=["get_transcript"];jXz=["resolve_location","unplugged/resolve_location"];Iuz=["subscription/unsubscribe"];FTL=["backstage/update_post"];
GxL=["channel_edit/update_channel_page_settings"];VmL=["comment/update_comment_reply"];fuE=["comment/update_comment"];e8L=["comment/update_comments_settings"];A7U=["creator/update_creator_channel"];nbU=["pdg/update_enablement"];r7b=["updated_metadata"];wV4=["channel_edit/validate_channel_handle"];$f1=["verify_age"];vb1=["next","unplugged/watch_next"];obU=["whitelist/edit"];bVU=["ypc/cancel_recurrence"];y71=["ypc/complete_transaction"];NGL=["ypc/get_cart"];lu_=["ypc/get_fix_instrument_params"];
J7U=["ypc/get_offers"];kxb=["ypc/get_payment_instruments_params"];Uf4=["ypc/handle_transaction"];KTU=["ypc/log_payment_server_analytics"];h8Y=["ypc/pause_subscription"];LTE=["ypc/redeem_code"];mf7=["ypc/resume_subscription"];var qX7=[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,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,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,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,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,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,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,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,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,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,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,
195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,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,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,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,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,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,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,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,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,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var Vk=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.ix("yt.msgs_",Vk);var ZY=new _.R6("ACTION_ROUTER_TOKEN");_.tG=function(){this.autonavState_=_.f("kevlar_is_pupi_enabled")?2:fBb()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.tG.prototype.getState=function(){return this.autonavState_};
_.tG.prototype.pause=function(D){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=D):this.autonavState_==1&&(this.disabledAutonavPauseReason_=D)};
_.tG.prototype.setState=function(D,Y,R){Y&&(this.autoplayChangedByUser=!0);Y=this.autonavState_===3||D===3;this.autonavState_!=D&&(this.autonavState_=D,D!=3&&_.eRo(D==2),D=_.f("kevlar_is_pupi_enabled")?R||Y:!0,_.Bm.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,D,R))};
_.tG.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.tr(_.tG);var sH=function(){this.hasRun=!1};var Xq={},lBr=(Xq.auto_search="LATENCY_ACTION_AUTO_SEARCH",Xq.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Xq.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Xq.app_startup="LATENCY_ACTION_APP_STARTUP",Xq.browse="LATENCY_ACTION_BROWSE",Xq.cast_splash="LATENCY_ACTION_CAST_SPLASH",Xq.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Xq.channels="LATENCY_ACTION_CHANNELS",Xq.chips="LATENCY_ACTION_CHIPS",Xq.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Xq.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Xq.editor="LATENCY_ACTION_EDITOR",Xq.embed="LATENCY_ACTION_EMBED",Xq.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Xq.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Xq.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Xq.explore="LATENCY_ACTION_EXPLORE",Xq.favorites="LATENCY_ACTION_FAVORITES",Xq.home="LATENCY_ACTION_HOME",Xq.inboarding="LATENCY_ACTION_INBOARDING",Xq.landing="LATENCY_ACTION_LANDING",Xq.learning="LATENCY_ACTION_LEARNING",
Xq.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Xq.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Xq.library="LATENCY_ACTION_LIBRARY",Xq.live="LATENCY_ACTION_LIVE",Xq.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Xq.management="LATENCY_ACTION_MANAGEMENT",Xq.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Xq.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Xq.onboarding="LATENCY_ACTION_ONBOARDING",Xq.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Xq.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Xq.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Xq.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Xq.prebuffer="LATENCY_ACTION_PREBUFFER",Xq.prefetch="LATENCY_ACTION_PREFETCH",Xq.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Xq.profile_switcher="LATENCY_ACTION_LOGIN",Xq.projects="LATENCY_ACTION_PROJECTS",Xq.reel_watch="LATENCY_ACTION_REEL_WATCH",Xq.results="LATENCY_ACTION_RESULTS",Xq.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Xq.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Xq.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Xq.review="LATENCY_ACTION_REVIEW",Xq.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Xq.search_ui="LATENCY_ACTION_SEARCH_UI",Xq.search_suggest="LATENCY_ACTION_SUGGEST",Xq.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Xq.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Xq.seek="LATENCY_ACTION_PLAYER_SEEK",Xq.settings="LATENCY_ACTION_SETTINGS",Xq.store="LATENCY_ACTION_STORE",
Xq.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Xq.tenx="LATENCY_ACTION_TENX",Xq.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Xq.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Xq.watch="LATENCY_ACTION_WATCH",Xq.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Xq["watch,watch7"]="LATENCY_ACTION_WATCH",Xq["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Xq["watch,watch7ad"]="LATENCY_ACTION_WATCH",Xq["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Xq.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Xq.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Xq.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Xq.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Xq.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Xq.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Xq.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Xq.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Xq),ELi=0;var DKU=function(D,Y){vA.call(this,1,arguments);this.timer=Y};
_.n(DKU,vA);var cwo=new W4b("aft-recorded",DKU);var Kwy=_.ZU.ytLoggingGelSequenceIdObj_||{};_.ix("ytLoggingGelSequenceIdObj_",Kwy);var us=_.ZU.ytLoggingLatencyUsageStats_||{};_.ix("ytLoggingLatencyUsageStats_",us);var ai=function(){this.cleanupJob=0},m0j=function(){ai.instance||(ai.instance=new ai);
return ai.instance};
_.u=ai.prototype;_.u.baseline=function(D,Y,R){M8(this,"baseline_"+D)||_.bo("latencyActionBaselined",{clientActionNonce:D},{timestamp:Y,cttAuthInfo:R})};
_.u.tick=function(D,Y,R,Z){M8(this,"tick_"+D+"_"+Y)||_.bo("latencyActionTicked",{tickName:D,clientActionNonce:Y},{timestamp:R,cttAuthInfo:Z})};
_.u.info=function(D,Y,R){var Z=Object.keys(D).join("");M8(this,"info_"+Z+"_"+Y)||(D=Object.assign({},D),D.clientActionNonce=Y,_.bo("latencyActionInfo",D,{cttAuthInfo:R}))};
_.u.jspbInfo=function(D,Y,R){for(var Z="",t=0;t<yI(D).length;t++)yI(D)[t]!==void 0&&(Z=t===0?Z.concat(""+t):Z.concat("_"+t));M8(this,"info_"+Z+"_"+Y)||(_.ew(D,2,Y),Y={cttAuthInfo:R},R=_.f("jspb_sparse_encoded_pivot")?new eq([{}]):new eq,_.jf(R,7,tPD,D),hRU("latencyActionInfo",R,Y))};
_.u.span=function(D,Y,R){var Z=Object.keys(D).join("");M8(this,"span_"+Z+"_"+Y)||(D.clientActionNonce=Y,_.bo("latencyActionSpan",D,{cttAuthInfo:R}))};
var M8=function(D,Y){us[Y]=us[Y]||{count:0};var R=us[Y];R.count++;R.time=(0,_.DO)();D.cleanupJob||(D.cleanupJob=_.Ak(_.yc,function(){var Z=(0,_.DO)(),t;for(t in us)us[t]&&Z-us[t].time>6E4&&delete us[t];D&&(D.cleanupJob=0)},5E3));
return R.count>5?(R.count===6&&Math.random()*1E5<1&&(R=new _.AT("CSI data exceeded logging limit with key",Y.split("_")),Y.indexOf("plev")>=0||_.Jk(R)),!0):!1};var HVU,xf7;HVU=window;xf7=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.ob=HVU.performance||HVU.mozPerformance||HVU.msPerformance||HVU.webkitPerformance||new xf7;var OD9=!1,HDi=!1,YPj=(0,_.nG)(_.ob.clearResourceTimings||_.ob.webkitClearResourceTimings||_.ob.mozClearResourceTimings||_.ob.msClearResourceTimings||_.ob.oClearResourceTimings||_.Vy,_.ob);var P67=window;P67.ytcsi&&(P67.ytcsi.infoGel=_.k8,P67.ytcsi.tick=_.KX);var TpU=function(D){vA.call(this,1,arguments);this.csn=D};
_.n(TpU,vA);var Ih5=new W4b("screen-created",TpU),y2U=[],SPj=bJU,NpU=0,HC=new Map,j1S=new Map,ISn=new Map;var Gij=Symbol("tf"),cC=new WeakMap;var CN=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ws=function(){CN.instance||(CN.instance=new CN);
return CN.instance};
_.u=CN.prototype;_.u.setClient=function(D){this.client=D};
_.u.JSC$12474_newScreen=function(){this.clear();this.csn=_.K2()};
_.u.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.u.reportShown=function(D,Y,R){var Z=this.JSC$12474_getTrackingParams(D),t=D.visualElement?D.visualElement:Z;Y=this.shownElements.has(t);var X=this.visibleState.get(t);this.shownElements.add(t);this.visibleState.set(t,!0);D.impressionLog&&!Y&&D.impressionLog();if(Z||D.visualElement)if(R=QX7(this,D,R))if(t=BGY(this,D),Wk(this,D)||t){Z=D.visualElement?D.visualElement:_.oT(Z);var M=D.interactionLoggingClientData;t||Y?Wk(this,D)&4?X||r29(this.client,R,Z,M):Wk(this,D)&1&&!Y&&em5(this.client,R,Z,M):em5(this.client,
R,Z,M)}};
_.u.reportHidden=function(D,Y,R){var Z=this.JSC$12474_getTrackingParams(D),t=D.visualElement?D.visualElement:Z;Y=this.hiddenElements.has(t);var X=this.visibleState.get(t);this.hiddenElements.add(t);this.visibleState.set(t,!1);if(X===!1)return!0;if(!Z&&!D.visualElement)return!1;R=QX7(this,D,R);if(!R||!Wk(this,D)&&BGY(this,D))return!1;Z=D.visualElement?D.visualElement:_.oT(Z);Wk(this,D)&8?w6M(this.client,R,Z):Wk(this,D)&2&&!Y&&(D=this.client,Y=qX({cttAuthInfo:h5(R)||void 0},R),Z={csn:R,ve:Z.getAsJson(),
eventType:2},R==="UNDEFINED_CSN"?PC("visualElementHidden",Y,Z):D?$N("visualElementHidden",Z,D,Y):_.bo("visualElementHidden",Z,Y));return!0};
_.u.JSC$12474_getTrackingParams=function(D){var Y=this.getData(D),R,Z;if(_.f("il_use_view_model_logging_context")&&(Y==null?0:(R=Y.context)==null?0:(Z=R.loggingContext)==null?0:Z.loggingDirectives))return Y.context.loggingContext.loggingDirectives.trackingParams||"";var t,X;if(Y==null?0:(t=Y.rendererContext)==null?0:(X=t.loggingContext)==null?0:X.loggingDirectives)return Y.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(Y==null?0:Y.loggingDirectives)return Y.loggingDirectives.trackingParams||
"";var M;return((M=D.veContainer)==null?0:M.trackingParams)?D.veContainer.trackingParams:(Y==null?void 0:Y.trackingParams)||""};
_.u.JSC$12474_elementShouldLogGesture=function(D,Y){D=this.getData(D);return!!((Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.gestures&&D.loggingDirectives.gestures.types||""))||0)&Y)};
_.u.JSC$12474_getNearestParentVe=function(D){var Y=this.JSC$12474_getTrackingParams(D);return D.visualElement?D.visualElement:Y?_.oT(Y):D.parentElement?this.JSC$12474_getNearestParentVe(D.parentElement):null};
var QX7=function(D,Y,R){var Z=_.K2(R);return D.csn===null||Z===D.csn||R?Z:(D=new _.AT("VisibilityLogger called before newScreen",{caller:Y.tagName,previous_csn:D.csn,current_csn:Z}),_.Jk(D),null)};
CN.prototype.getData=function(D){var Y,R=D.data||((Y=D.props)==null?void 0:Y.data);if(!R||D.isWebComponentWrapper){var Z;R=(Z=cC.get(D))==null?void 0:Z[Gij]}return R};
var BGY=function(D,Y){var R;return!((R=D.getData(Y))==null||!R.loggingDirectives)},Wk=function(D,Y){D=D.getData(Y);
return Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.visibility&&D.loggingDirectives.visibility.types||""))||1};var zJ;zJ=function(){};
_.ev=function(){zJ.instance||(zJ.instance=new zJ);return zJ.instance};
zJ.prototype.setClient=function(D){_.Lb(ws().setClient).bind(ws())(D)};
_.pVY=function(){_.ev();_.Lb(ws().JSC$12474_newScreen).bind(ws())()};
zJ.prototype.clear=function(){_.Lb(ws().clear).bind(ws())()};
zJ.prototype.reportShown=function(D,Y,R){_.Lb(ws().reportShown).bind(ws())(D,Y,R)};
zJ.prototype.reportHidden=function(D,Y,R){return _.Lb(ws().reportHidden).bind(ws())(D,Y,R)};
var iW5=function(D,Y){return _.Lb(ws().JSC$12474_getTrackingParams).bind(ws())(Y)},VLj=function(D,Y){return _.Lb(ws().JSC$12474_getNearestParentVe).bind(ws())(Y)};var SF,EbE;SF=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};
_.n8=function(){SF.instance||(SF.instance=new SF);return SF.instance};
SF.prototype.setClient=function(D){this.client=D};
EbE=function(D,Y,R){R=R===void 0?{}:R;_.Lb(function(){var Z,t,X,M=((Z=_.A(Y==null?void 0:Y.commandMetadata,_.GA))==null?void 0:Z.rootVe)||((t=_.A(Y==null?void 0:Y.commandMetadata,LvY))==null?void 0:(X=t.screenVisualElement)==null?void 0:X.uiType);if(M){Z=_.A(Y==null?void 0:Y.commandMetadata,by4);if(Z==null?0:Z.parentTrackingParams){var W=_.oT(Z.parentTrackingParams);if(Z.parentCsn)var z=Z.parentCsn}else R.clickedVisualElement?W=R.clickedVisualElement:Y.clickTrackingParams&&(W=_.oT(Y.clickTrackingParams));
a:{Z=_.A(Y,_.Od);t=_.A(Y,Mml);if(Z){if(t=Awb(Z,"VIDEO")){Z={token:t,videoId:Z.videoId};break a}}else if(t&&(Z=Awb(t,"PLAYLIST"))){Z={token:Z,playlistId:t.playlistId};break a}Z=void 0}R=Object.assign({},{cttAuthInfo:Z,parentCsn:z},R);if(_.f("expectation_logging")){var I;R.loggingExpectations=((I=_.A(Y==null?void 0:Y.commandMetadata,LvY))==null?void 0:I.loggingExpectations)||void 0}_.TJ(D,M,W,R)}else _.Jk(new _.AT("Error: Trying to create a new screen without a rootVeType",Y))})()};
_.TJ=function(D,Y,R,Z){Z=Z===void 0?{}:Z;_.Lb(function(){qX7.includes(Y)||(_.Jk(new _.AT("createClientScreen() called with a non-page VE",Y)),Y=83769);Z.isHistoryNavigation||(D.forwardHistoryStack=[],D.backHistoryStack.push({rootVe:Y,key:Z.key||""}));D.graftQueue=[];D.stateChangedQueue=[];Z.dataPromises?gbD(D,Y,R,Z):dfE(D,Y,R,Z)})()};
_.iVE=function(D,Y,R){R=R===void 0?0:R;_.Lb(function(){Y.then(function(Z){D.pendingScreenCreation.has(R)&&D.pendingScreenFn&&D.pendingScreenFn();var t=_.K2(R),X=_.Ud(R);if(t&&X){var M={automatedLogEventSource:3},W;(Z==null?0:(W=Z.response)==null?0:W.trackingParams)&&x8(D.client,t,X,_.oT(Z.response.trackingParams),!1,M);var z;(Z==null?0:(z=Z.playerResponse)==null?0:z.trackingParams)&&x8(D.client,t,X,_.oT(Z.playerResponse.trackingParams),!1,M)}})})()};
SF.prototype.graftServerVe=function(D,Y,R){var Z=this;return _.Lb(function(){var t=_.oT(D);_.jF(Z,t,Y,R);return t})()};
_.f0j=function(D,Y,R,Z){return _.f("enable_client_ve_spec")&&Y.clientVeSpec?(Y=_.TP(Y.clientVeSpec.uiType,void 0,Y.clientVeSpec.elementIndex,Y.clientVeSpec.clientYoutubeData,void 0,Y),_.jF(D,Y,R,Z)?Y:null):Y.trackingParams?D.graftServerVe(Y.trackingParams,R,Z):null};
_.Ai=function(D,Y,R,Z){return _.Lb(function(){if(!Y.veType)return _.lo(new _.AT("Error: Trying to graft a client VE without a veType.")),null;if(Y.visibilityTypes){var t=Y.visibilityTypes.reduce(function(X,M){return X|M});
t={visibility:{types:String(t)}}}t=_.TP(Y.veType,Y.visualElement,Y.elementIndex,Y.clientYouTubeData,void 0,t);return _.jF(D,t,R,Z)?t:null})()};
_.jF=function(D,Y,R,Z){Z=Z===void 0?0:Z;return _.Lb(function(){if(D.pendingScreenCreation.has(Z))return D.graftQueue.push([Y,R]),!0;var t=_.K2(Z),X=R||_.Ud(Z);if(t&&X){if(_.f("combine_ve_grafts")){var M=D.cachedVisualElements.get(X.toString());M?M.push(Y):(D.cachedRootVisualElements.set(X.toString(),X),D.cachedVisualElements.set(X.toString(),[Y]));D.attachTimeout||(D.attachTimeout=_.Ak(_.yc,function(){OVU(D,t)},1200))}else x8(D.client,t,X,Y);
return!0}return!1})()};
_.Ii=function(D,Y,R){R=R===void 0?0:R;var Z=D.recurringGrafts.get(R)||new Map;if(_.f("smarter_ve_dedupping"))for(var t=Array.from(Z.keys()),X=0;X<t.length;X++){var M=void 0,W=void 0;var z=Y;var I=t[X];I.isClientVe()&&z.isClientVe()?(M=z.getAsJson(),W=I.getAsJson(),z=M.veType!==W.veType||M.elementIndex!==W.elementIndex||M.dataElement!==W.dataElement||z.getLoggingDirectives()!==I.getLoggingDirectives()?!1:!0):z=I.veData.trackingParams!==void 0&&z.veData.trackingParams!==void 0?((W=z.veData)==null?void 0:
W.trackingParams)===((M=I.veData)==null?void 0:M.trackingParams):!1;if(z)return}else if(Z.has(Y))return;Z.set(Y,void 0);D.recurringGrafts.set(R,Z);_.K2(R)==="UNDEFINED_CSN"||D.pendingScreenCreation.has(R)||_.jF(D,Y,void 0,R)};
_.Fq=function(D,Y,R,Z){Z=_.K2(Z===void 0?0:Z);if(!Z)return!1;vlr(D.client,Z,Y,R);return!0};
_.GJ=function(D,Y,R,Z){if(!Y)return!1;Z=_.K2(Z===void 0?0:Z);if(!Z)return!1;vlr(D.client,Z,_.oT(Y),R);return!0};
_.pB=function(D,Y){var R=Y.getScreenLayer&&Y.getScreenLayer();if(Y.visualElement)return _.Fq(D,Y.visualElement,void 0,R);Y=iW5(_.ev(),Y);return _.GJ(D,Y,void 0,R)};
SF.prototype.clickCommand=function(D,Y,R){return _.GJ(this,D.clickTrackingParams,Y,R===void 0?0:R)};
SF.prototype.stateChanged=function(D,Y,R){this.visualElementStateChanged(_.oT(D),Y,R===void 0?0:R)};
SF.prototype.visualElementStateChanged=function(D,Y,R){R=R===void 0?0:R;R===0&&this.pendingScreenCreation.has(R)?this.stateChangedQueue.push([D,Y]):this.logStateChanged(D,Y,R)};
SF.prototype.logStateChanged=function(D,Y,R){R=R===void 0?0:R;var Z=_.K2(R);D=D||_.Ud(R);return Z&&D?(oly(this.client,Z,D,Y),!0):!1};
var gbD=function(D,Y,R,Z){Z=Z===void 0?{}:Z;D.pendingScreenCreation.add(Z.layer||0);D.pendingScreenFn=function(){dfE(D,Y,R,Z);var M=_.Ud(Z.layer);if(M){for(var W=_.a(D.graftQueue),z=W.next();!z.done;z=W.next())z=z.value,_.jF(D,z[0],z[1]||M,Z.layer);M=_.a(D.stateChangedQueue);for(W=M.next();!W.done;W=M.next())W=W.value,D.logStateChanged(W[0],W[1])}};
R||_.K2(Z.layer)||D.pendingScreenFn();if(Z.dataPromises)for(var t=_.a(Z.dataPromises),X=t.next();!X.done;X=t.next())_.iVE(D,X.value,Z.layer);else _.Nb(Error("uf"))},dfE=function(D,Y,R,Z){Z=Z===void 0?{}:Z;
var t=void 0;Z.layer||(Z.layer=0);t=Z.parentLayer!==void 0?Z.parentLayer:Z.layer;var X=_.K2(t);t=_.Ud(t);var M=R||t,W;M&&(Z.parentCsn!==void 0?W={clientScreenNonce:Z.parentCsn,visualElement:M}:X&&X!=="UNDEFINED_CSN"&&(W={clientScreenNonce:X,visualElement:M}));var z,I=_.JQ("EVENT_ID");X==="UNDEFINED_CSN"&&I&&(z={servletData:{serializedServletEventId:I}});_.f("combine_ve_grafts")&&X&&OVU(D,X);_.f("no_client_ve_attach_unless_shown")&&M&&X&&fSU(M,X);try{var F=_.Faj(D.client,Y,W,Z.csnToClone,Z.cttAuthInfo,
z,Z.implicitGestureType,void 0,Z.loggingExpectations)}catch(e){_.kN(e,{rootVeType:Y,rootVe:t,parentVisualElement:R,currentCsn:X,parentEl:W,csnToClone:Z.csnToClone});_.Nb(e);return}_.L2(F,Y,Z.layer,Z.cttAuthInfo);X&&X!=="UNDEFINED_CSN"&&t&&!wA$(X)&&w6M(D.client,X,t,!0);D.backHistoryStack[D.backHistoryStack.length-1]&&!D.backHistoryStack[D.backHistoryStack.length-1].csn&&(D.backHistoryStack[D.backHistoryStack.length-1].csn=F||"");_.k8({clientScreenNonce:F});_.pVY();var G=_.Ud(Z.layer);X&&X!=="UNDEFINED_CSN"&&
G&&(_.f("web_mark_root_visible")||_.f("music_web_mark_root_visible"))&&_.pX(F,G);D.pendingScreenCreation.delete(Z.layer||0);D.pendingScreenFn=void 0;var V;(V=D.recurringGrafts.get(Z.layer))==null||V.forEach(function(e,r){e?_.jF(D,r,e,Z.layer):G&&_.jF(D,r,G,Z.layer)});
c7z(D)},c7z=function(D){for(var Y=0;Y<D.afterNewScreenOneOffJobs.length;Y++){var R=D.afterNewScreenOneOffJobs[Y];
try{R()}catch(Z){_.Nb(Z)}}for(Y=D.afterNewScreenOneOffJobs.length=0;Y<D.afterNewScreenRecurringJobs.length;Y++){R=D.afterNewScreenRecurringJobs[Y];try{R()}catch(Z){_.Nb(Z)}}},OVU=function(D,Y){if(Y===void 0)for(var R=nSr(),Z=0;Z<R.length;Z++)R[Z]!==void 0&&OVU(D,R[Z]);
else D.cachedVisualElements.forEach(function(t,X){(X=D.cachedRootVisualElements.get(X))&&GYU(D.client,Y,X,t)}),D.cachedVisualElements.clear(),D.cachedRootVisualElements.clear(),D.attachTimeout=void 0};var V0=function(D){D=D===void 0?{layer:0}:D;this.hasRun=!1;this.createScreenConfig=D;D={};this.fa0=(D.response=!1,D.playerResponse=!1,D)};
_.n(V0,sH);V0.prototype.validate=function(D){return!(!D.data||!D.data.response&&!D.data.playerResponse)};
V0.prototype.handle=function(D){var Y=_.n8(),R=this.createScreenConfig.layer;D.data.response&&D.data.response.trackingParams&&!this.fa0.response&&(Y.graftServerVe(D.data.response.trackingParams,void 0,R),this.fa0.response=!0);D.data.playerResponse&&D.data.playerResponse.trackingParams&&!this.fa0.playerResponse&&(Y.graftServerVe(D.data.playerResponse.trackingParams,void 0,R),this.fa0.playerResponse=!0)};var fN=function(){this.my=_.iq();this.vP=[];this.oYU=0};
fN.prototype.processChunk=function(D){if(D){for(var Y=_.a(this.vP),R=Y.next();!R.done;R=Y.next())R=R.value,R.validate(D)&&(R.handle(D),R.hasRun=!0);_.KX("np"+this.oYU);this.oYU++}};var DQ;var DLE=function(D){this.observers=[];this.value=D};
_.u=DLE.prototype;_.u.subscribe=function(D){var Y=this;if(D.idx!=null)throw Error("xf");D.idx=this.observers.length;this.observers.push(D);return function(){var R=Y.observers[Y.observers.length-1];Y.observers[D.idx]=R;R.idx=D.idx;Y.observers.pop()}};
_.u.update=function(D){this.value=D(this.value);this.notify()};
_.u.mutate=function(D){D(this.value);this.notify()};
_.u.set=function(D){this.value=D;this.notify()};
_.u.notify=function(){for(var D=_.a(this.observers),Y=D.next();!Y.done;Y=D.next()){Y=Y.value;try{Y(this.value)}catch(R){}}};(function(D,Y){var R=D7U();if(R){var Z=R.get(D);Z&&Y.update(function(){return JSON.parse(Z)});
Y.subscribe(function(t){R.set(D,JSON.stringify(t))})}})("telemetry.logging.enabledNamespaces",new DLE({enabledNamespaces:{}}));var PKn,YBU,t6z;_.GD=function(D,Y,R,Z,t,X,M){M=M===void 0?[]:M;this.buildCommandPayload=D;this.navigate=Y;this.handleServiceRequest=R;this.sendAction=Z;this.JSC$12522_screenManager=t;this.commandResolverMap=X;this.autoLogResolverAllowlist=M;this.pendingCommands=new Set;this.isTracingEnabled=!1;YBU(this)};
PKn=function(D,Y,R){var Z=b_l,t=yBU,X=_.n8(),M=RdE;R=R===void 0?[]:R;_.GD.instance=new _.GD(D,Y,Z,t,X,M,R)};
YBU=function(D){if(!D.isTracingEnabled&&kYU("command")){var Y=D.resolveCommand;D.resolveCommand=function(R,Z){a:{for(t in R)if(Object.prototype.hasOwnProperty.call(R,t)){var t={commandType:t};break a}t={}}return La9("command",t,Y.bind(this,R,Z))};
D.isTracingEnabled=!0}};
t6z=function(D,Y,R){if(!D.commandResolverMap)return!1;var Z=xKU(Y,D.commandResolverMap);return Z?((D.autoLogResolverAllowlist.some(function(t){return!!_.A(Y,t)})||(R==null?0:R.forceClickLogging))&&Zaz(D,Y,R),Z instanceof Promise?Z.then(function(t){t.resolve(Y,R)}):Z.resolve(Y,R),!0):!1};
_.GD.prototype.resolveCommand=function(D,Y){var R=this,Z=s2L(D);if(t6z(this,D,Y))return!0;if(Z)return X1U(this,D,Y);if(!this.buildCommandPayload)return mKj(D,"Unhandled command by buildCommandPayload"),!1;var t=this.buildCommandPayload(D,Y);if(Y==null?0:Y.commandController)t.commandController=Y.commandController;if(t.type===0){if(!this.navigate)return qP$(D,"navigate"),!1;if(!uC7(t.command))return mKj(D,"Page requests need to specify a url"),!1;_.f("logging_avoid_blocking_during_navigation")&&_.cpM().transition("application_navigating");
D=this.navigate(t)||[];xcE(D).then(function(){R.pendingCommands.delete(t.command)});
return!0}if(t.type===1){if(!this.handleServiceRequest)return qP$(D,"handleServiceRequest"),!1;(Y==null?0:Y.forceClickLogging)&&Zaz(this,t.command,Y);D=this.handleServiceRequest(t);xcE(D).then(function(){R.pendingCommands.delete(t.command)});
return!0}if(t.type===2){if(!this.sendAction)return qP$(D,"sendAction"),!1;Zaz(this,t.command,Y);this.sendAction(t);return!0}return!1};
var Zaz=function(D,Y,R){if((R==null||!R.disableClickTracking)&&D.JSC$12522_screenManager)if(Y.clickTrackingParams&&_.f("log_click_with_layer_from_element_in_command_handler")){var Z;R=R==null?void 0:(Z=R.form)==null?void 0:Z.element;D.JSC$12522_screenManager.clickCommand(Y,null,R&&R.getScreenLayer&&R.getScreenLayer())}else Y.clickTrackingParams?D.JSC$12522_screenManager.clickCommand(Y):!_.f("disable_clicked_visual_element_in_command_handler")&&(R==null?0:R.clickedVisualElement)&&_.Fq(D.JSC$12522_screenManager,
R.clickedVisualElement)},s2L=function(D){var Y=!!_.A(D,_.je),R;
D=((R=_.A(D,_.Fa))==null?void 0:R.signal)==="CLIENT_SIGNAL";return Y||D},X1U=function(D,Y,R){var Z=_.A(Y,_.je);
if(Z)var t=(Z==null?void 0:Z.commands)||[];else{var X;if(((X=_.A(Y,_.Fa))==null?void 0:X.signal)==="CLIENT_SIGNAL"){var M;t=((M=_.A(Y,_.Fa))==null?void 0:M.actions)||[]}}if(t){Y=_.a(t);for(t=Y.next();!t.done;t=Y.next()){t=t.value;try{D.resolveCommand(t,R)}catch(W){W instanceof Error&&_.Nb(W)}}return!0}mKj(Y,"Could not handle the meta command");return!1},uC7=function(D){var Y;
return!((Y=_.A(D==null?void 0:D.commandMetadata,_.GA))==null||!Y.url)};var eF=function(){sH.apply(this,arguments)};
_.n(eF,sH);eF.prototype.validate=function(D){var Y,R;return!this.hasRun&&!!((Y=D.data.response)==null?0:(R=Y.onResponseReceivedEndpoints)==null?0:R.length)};
eF.prototype.handle=function(D){var Y=_.GD.instance;D=_.a(D.data.response.onResponseReceivedEndpoints);for(var R=D.next();!R.done;R=D.next())Y.resolveCommand(R.value)};var aI4,M6D,CY1;
aI4=function(){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=_.TA();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.AG=function(){M6D||(M6D=new aI4);return M6D};
CY1=function(){var D=_.AG();D.miniplayerButtonActivation=!1;D.userActivation=!1;D.playlistWatchPageActivation=!1;D.productDetailsPageActivation=!1;D.miniAppPageActivation=!1;D.playablesDestPageActivation=!1;D.lockupActivation=!1;D.showMiniplayerCommandActivation=!1;D.playlistSuggestionsShelfActivation=!1;D.mediaSessionPipActivation=!1;D.watchPipActivation=!1;D.watchWhileActivation=!1;D.shortsPipActivation=!1};
_.We_=function(){var D=_.AG(),Y=D.mediaSessionPipActivation,R=D.watchPipActivation,Z=D.watchWhileActivation,t=D.playlistWatchPageActivation,X=D.lockupActivation,M=D.showMiniplayerCommandActivation,W=D.navigatingAwayFromWatchDeletedVideo,z=D.shortsPipActivation,I=D.playlistSuggestionsShelfActivation,F=D.productDetailsPageActivation,G=D.miniAppPageActivation,V=D.playablesDestPageActivation;return!D.miniplayerButtonActivation&&!t&&!I&&!F&&!G&&!V&&!X&&!M&&!Y&&!R&&!Z&&!z||W};var KRl;_.nN=_.Rk("FEwhat_to_watch","/",3854);_.hzU=_.Rk("FEdownloads","/feed/downloads",42352);KRl=_.Rk("FEmusic_offline","browse/FEmusic_offline",42352);var cU=function(D,Y){Y=Y===void 0?[]:Y;var R=R===void 0?[]:R;Y=sFj.apply(null,[XPS.apply(null,_.oK(Y))].concat(_.oK(R)));this.store=CQl(D,void 0,Y)};
cU.prototype.getState=function(){return this.store.getState()};
cU.prototype.dispatch=function(D){return this.store.dispatch(D)};
cU.prototype.subscribe=function(D){return this.store.subscribe(D)};
cU.prototype.replaceReducer=function(D){return this.store.replaceReducer(D)};
cU.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.rm=function(D,Y,R){var Z=Y(D.getState());return D.subscribe(function(){var t=Y(D.getState());if(t!==Z){var X=Z;Z=t;R(t,X)}})};var Jhr;_.oP=function(D,Y,R){return _.u0({type:"REPLACE_ENTITY",payload:{entityPayload:R,entityType:D,key:Y}})};
Jhr=function(D){return _.u0({type:"REPLACE_ENTITIES",payload:D})};
_.k6=function(D,Y,R,Z){return _.u0({type:"UPDATE_ENTITY",payload:{entityPayload:R,entityType:D,key:Y,mergeOption:Z}})};var ROU=function(D){var Y=this;D=D===void 0?[]:D;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;D.forEach(function(R){Y.append(R)})};
_.u=ROU.prototype;_.u.getLength=function(){return this.totalLength};
_.u.append=function(D){var Y=this.arrays.length===0?!1:(Y=this.arrays[this.arrays.length-1])&&Y.buffer===D.buffer&&Y.byteOffset+Y.length===D.byteOffset;Y?(Y=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(Y.buffer,Y.byteOffset,Y.length+D.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(D);this.totalLength+=D.length};
_.u.split=function(D){for(var Y=new ROU,R=new ROU,Z=_.a(this.arrays),t=Z.next();!t.done;t=Z.next())t=t.value,D>=t.length?(Y.append(t),D-=t.length):D?(Y.append(new Uint8Array(t.buffer,t.byteOffset,D)),R.append(new Uint8Array(t.buffer,t.byteOffset+D,t.length-D)),D=0):R.append(t);return{headView:Y,tailView:R}};
_.u.extract=function(D,Y){return this.split(D).tailView.split(Y).headView};
_.u.isFocused=function(D){return D>=this.arrayPos&&D<this.arrayPos+this.arrays[this.arrayIdx].length};
_.u.focus=function(D){if(!this.isFocused(D))for(D<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=D&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var zdD=function(D,Y){D.focus(Y);return D.arrays[D.arrayIdx][Y-D.arrayPos]};(function(){var D=function(Z){return new Uint8Array(Z)},Y=function(Z){for(var t=new Uint8Array(Z.length),X=0;X<Z.length;X++)t[X]=Z[X];
return t},R=new Uint8Array([1]);
return R.length===1&&R[0]===1?D:Y})();
var dKU=Array(1024),gli=window.TextDecoder?new TextDecoder:void 0,OJn=window.TextEncoder?new TextEncoder:void 0;var Y_r=function(D){this.arrayView=D;this.pos=0;this.pendingTagAndType=-1},ak=function(D){var Y=zdD(D.arrayView,D.pos);
++D.pos;if(Y<128)return Y;for(var R=Y&127,Z=1;Y>=128;)Y=zdD(D.arrayView,D.pos),++D.pos,Z*=128,R+=(Y&127)*Z;return R},Zy5=function(D,Y){var R=D.pendingTagAndType;
for(D.pendingTagAndType=-1;D.pos+1<=D.arrayView.totalLength;){R<0&&(R=ak(D));var Z=R>>3,t=R&7;if(Z===Y)return!0;if(Z>Y){D.pendingTagAndType=R;break}R=-1;switch(t){case 0:ak(D);break;case 1:D.pos+=8;break;case 2:Z=ak(D);D.pos+=Z;break;case 5:D.pos+=4}}return!1};var s5b=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=DvS(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},SC=function(D,Y){Y=D.pos+Y;
if(!(D.buf.length>=Y)){for(var R=D.buf.length*2;R<Y;)R*=2;D.buf=DvS(R,D.wasm,D.buf.subarray(0,D.pos));D.view=new DataView(D.buf.buffer,D.buf.byteOffset,D.buf.byteLength)}},zL=function(D,Y){if(Y>268435455){SC(D,4);
for(var R=Y&1073741823,Z=0;Z<4;Z++)D.view.setUint8(D.pos,R&127|128),R>>=7,D.pos+=1;Y=Math.floor(Y/268435456)}for(SC(D,4);Y>127;)D.view.setUint8(D.pos,Y&127|128),Y>>=7,D.pos+=1;D.view.setUint8(D.pos,Y);D.pos+=1};for(var XxM={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},tBr={},SBE=_.a(Object.entries(XxM)),TOL=SBE.next();!TOL.done;TOL=SBE.next()){var j24=_.a(TOL.value),IIE=j24.next().value,FeU=j24.next().value,GqY=IIE,V6z=FeU;V6z&&(tBr[V6z]=GqY)};var aVj=function(D,Y){D=D===void 0?{}:D;switch(Y.type){case "ENTITY_LOADED":return Y.payload.reduce(function(Z,t){var X,M=(X=t.options)==null?void 0:X.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!t.entityKey)return _.Nb(Error("zf")),Z;if(t.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!t.payload)return t=new _.AT("REPLACE entity mutation is missing a payload",{entityKey:t.entityKey}),_.Nb(t),Z;var W=(0,_.y7.getAnyKey)(t.payload);
return CSU(Z,W,t.entityKey,t.payload[W])}if(t.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{t=t.entityKey;try{var z=_.Mw(t).entityType;W=CSU(Z,z,t);break a}catch(G){if(G instanceof Error){t=new _.AT("Failed to deserialize entity key",{entityKey:t,originalMessage:G.message});_.Nb(t);W=Z;break a}throw G;}W=void 0}return W}if(t.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!t.payload)return t=new _.AT("UPDATE entity mutation is missing a payload",{entityKey:t.entityKey}),_.Nb(t),Z;W=(0,_.y7.getAnyKey)(t.payload);
var I,F;return WMo(Z,W,t.entityKey,t.payload[W],(I=t.fieldMask)==null?void 0:(F=I.mergeOptions)==null?void 0:F.repeatedFieldsMergeOption)}return Z},D);
case "REPLACE_ENTITY":var R=Y.payload;return CSU(D,R.entityType,R.key,R.entityPayload);case "REPLACE_ENTITIES":return Object.keys(Y.payload).reduce(function(Z,t){var X=Y.payload[t];return Object.keys(X).reduce(function(M,W){return CSU(M,t,W,X[W])},Z)},D);
case "UPDATE_ENTITY":return R=Y.payload,WMo(D,R.entityType,R.key,R.entityPayload,R.mergeOption);default:return D}};var zOy;var fIL=!1,wm,$W,vk,oi,bs,ed7=function(D){_.AE.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!fIL){var Y,R=new Uint8Array(256),Z=new Uint8Array(256);var t=1;for(Y=0;Y<256;Y++)R[t]=Y,Z[Y]=t,t^=t<<1^(t>>7&&283);wm=new Uint8Array(256);$W=Ik(256);vk=Ik(256);oi=Ik(256);bs=Ik(256);for(var X=0;X<256;X++){t=X?Z[255^R[X]]:0;t^=t<<1^t<<2^t<<3^t<<4;t=t&255^t>>>8^99;wm[X]=t;Y=t<<1^(t>>7&&283);var M=Y^t;$W[X]=Y<<24|t<<16|t<<8|M;vk[X]=M<<24|$W[X]>>>8;oi[X]=t<<24|vk[X]>>>
8;bs[X]=t<<24|oi[X]>>>8}fIL=!0}t=Ik(44);for(R=0;R<4;R++)t[R]=D[4*R]<<24|D[4*R+1]<<16|D[4*R+2]<<8|D[4*R+3];for(Z=1;R<44;R++)D=t[R-1],R%4||(D=(wm[D>>16&255]^Z)<<24|wm[D>>8&255]<<16|wm[D&255]<<8|wm[D>>>24],Z=Z<<1^(Z>>7&&283)),t[R]=t[R-4]^D;this.key=t};
_.n(ed7,_.AE);
ed7.prototype.encrypt=function(D){var Y=D.length;D=new Uint8Array(D.buffer.slice(D.byteOffset,D.byteOffset+Y));for(var R=this.cipherBlock,Z=0;Z<Y&&this.blockOffset<16;)D[Z++]^=R[this.blockOffset++];for(var t=Y-(Y-Z)%16;Z<t;)Az7(this),D[Z++]^=R[0],D[Z++]^=R[1],D[Z++]^=R[2],D[Z++]^=R[3],D[Z++]^=R[4],D[Z++]^=R[5],D[Z++]^=R[6],D[Z++]^=R[7],D[Z++]^=R[8],D[Z++]^=R[9],D[Z++]^=R[10],D[Z++]^=R[11],D[Z++]^=R[12],D[Z++]^=R[13],D[Z++]^=R[14],D[Z++]^=R[15];if(Z<Y)for(Az7(this),this.blockOffset=0;Z<Y;)D[Z++]^=
R[this.blockOffset++];return D};
var Az7=function(D){for(var Y=D.key,R=D.counter[0]^Y[0],Z=D.counter[1]^Y[1],t=D.counter[2]^Y[2],X=D.counter[3]^Y[3],M=3;M>=0&&!(D.counter[M]=-~D.counter[M]);M--);for(var W,z,I=4;I<40;)M=$W[R>>>24]^vk[Z>>16&255]^oi[t>>8&255]^bs[X&255]^Y[I++],W=$W[Z>>>24]^vk[t>>16&255]^oi[X>>8&255]^bs[R&255]^Y[I++],z=$W[t>>>24]^vk[X>>16&255]^oi[R>>8&255]^bs[Z&255]^Y[I++],X=$W[X>>>24]^vk[R>>16&255]^oi[Z>>8&255]^bs[t&255]^Y[I++],R=M,Z=W,t=z;D=D.cipherBlock;M=Y[40];D[0]=wm[R>>>24]^M>>>24;D[1]=wm[Z>>16&255]^M>>16&255;D[2]=
wm[t>>8&255]^M>>8&255;D[3]=wm[X&255]^M&255;M=Y[41];D[4]=wm[Z>>>24]^M>>>24;D[5]=wm[t>>16&255]^M>>16&255;D[6]=wm[X>>8&255]^M>>8&255;D[7]=wm[R&255]^M&255;M=Y[42];D[8]=wm[t>>>24]^M>>>24;D[9]=wm[X>>16&255]^M>>16&255;D[10]=wm[R>>8&255]^M>>8&255;D[11]=wm[Z&255]^M&255;M=Y[43];D[12]=wm[X>>>24]^M>>>24;D[13]=wm[R>>16&255]^M>>16&255;D[14]=wm[Z>>8&255]^M>>8&255;D[15]=wm[t&255]^M&255};var nkz=!1;(function(){var D=function(Z){return new Uint8Array(Z)},Y=function(Z){for(var t=new Uint8Array(Z.length),X=0;X<Z.length;X++)t[X]=Z[X];
return t},R=new Uint8Array([1]);
return R.length===1&&R[0]===1?D:Y})();
var y0;var $Lz=function(D){a:{if(!nkz&&!gP){if(y0){var Y=y0;break a}y0=(Y=window.crypto)==null?void 0:Y.subtle;var R,Z,t;if(((R=y0)==null?0:R.importKey)&&((Z=y0)==null?0:Z.sign)&&((t=y0)==null?0:t.encrypt)){Y=y0;break a}y0=void 0}Y=void 0}Y&&(this.nativeEncryptor=new rzL(D,Y));this.encryptorPolyfill=new w17(D)};
$Lz.prototype.encrypt=function(D,Y){var R=this,Z;return _.C(function(t){switch(t.nextAddress){case 1:if(!R.nativeEncryptor){t.jumpTo(2);break}_.SX(t,3);return t.yield(R.nativeEncryptor.encrypt(D,Y),5);case 5:return t.return(t.yieldResult);case 3:Z=_.Gl(t),_.Jk(Z),nkz=!0,R.nativeEncryptor=void 0;case 2:return t.return(R.encryptorPolyfill.encrypt(D,Y))}})};
$Lz.prototype.decrypt=function(D,Y){return this.encrypt(D,Y)};
var rzL=function(D,Y){this.JSC$12595_aesKey=D;this.subtleCrypto=Y};
rzL.prototype.encrypt=function(D,Y){var R=this,Z;return _.C(function(t){if(t.nextAddress==1)return _.SX(t,2),t.yield(vkL(R,D,Y),4);if(t.nextAddress!=2)return t.return(t.yieldResult);Z=_.Gl(t);_.Jk(Z);nkz=!0;throw Z;})};
var vkL=function(D,Y,R){var Z,t;return _.C(function(X){switch(X.nextAddress){case 1:if(D.cryptoKey){X.jumpTo(2);break}return X.yield(D.subtleCrypto.importKey("raw",D.JSC$12595_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.cryptoKey=X.yieldResult;case 2:return Z={name:"AES-CTR",counter:R,length:128},X.yield(D.subtleCrypto.encrypt(Z,D.cryptoKey,Y),4);case 4:return t=X.yieldResult,X.return(new Uint8Array(t))}})},w17=function(D){this.JSC$12598_aesKey=D};
w17.prototype.encrypt=function(D,Y){this.encryptor||(this.encryptor=new ed7(this.JSC$12598_aesKey));for(var R=this.encryptor,Z=0;Z<4;Z++)R.counter[Z]=Y[Z*4]<<24|Y[Z*4+1]<<16|Y[Z*4+2]<<8|Y[Z*4+3];R.blockOffset=16;return this.encryptor.encrypt(D)};
w17.prototype.decrypt=function(D,Y){return this.encrypt(D,Y)};var okE={},j5$=cr("yt-idb-pref-storage",{objectStores:(okE.prefs={addedAtVersion:1},okE),shared:!1,upgrade:function(D,Y){Y(1)&&Lq(hP(D,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.N8=function(D){this.token=D};
_.N8.getInstance=function(){return _.C(function(D){return D.return(new Promise(function(Y){_.OK().then(function(R){R?(_.N8.instance||(_.N8.instance=new _.N8(R)),Y(_.N8.instance)):Y(void 0)})}))})};
_.N8.prototype.get=function(D){var Y=this,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return X.yield(IVy(Y.token),2);if(X.nextAddress!=3)return R=X.yieldResult,X.yield(R.get("prefs",D),3);Z=X.yieldResult;if(!Z)return X.return();t=(0,_.DO)();return Z.expirationTimestampMs<=t?X.return():X.return(Z.value)})};
_.N8.prototype.set=function(D,Y,R){R=R===void 0?31536E3:R;var Z=this,t,X,M;return _.C(function(W){if(W.nextAddress==1)return t=(0,_.DO)(),X={key:D,value:Y,expirationTimestampMs:t+R*1E3},W.yield(IVy(Z.token),2);M=W.yieldResult;return W.yield(M.put("prefs",X),0)})};
_.N8.prototype.remove=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(IVy(Y.token),2);R=Z.yieldResult;return Z.yield(R.delete("prefs",D),0)})};var ls={},ba7=(ls.INVALID_ENCODER_VERSION="Invalid encoder version",ls.KEY_CREATION_FAILED="Failed to create encoder key",ls.UNKNOWN_DECODE_ERROR="Failed to decode PES data",ls.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",ls.WRONG_DATA_TYPE="Encoder cannot process the data type",ls),Fs=function(D,Y){Y=Y===void 0?{}:Y;_.AT.call(this,ba7[D],Object.assign({},{name:"PESEncoderError",type:D},Y));this.type=D;this.level="WARNING";Object.setPrototypeOf(this,Fs.prototype)};
_.n(Fs,_.AT);var JG=function(){};
JG.prototype.encode=function(D,Y){try{return this.encodeImpl(D,Y)}catch(R){fVj(R,GBU)}};
JG.prototype.decode=function(D,Y){try{return this.decodeImpl(D,Y)}catch(R){fVj(R,VBU)}};
var yzE=function(D,Y,R){var Z;return _.C(function(t){if(t.nextAddress==1)return _.SX(t,2),t.yield(D.decodeAsyncImpl(Y,R),4);if(t.nextAddress!=2)return t.return(t.yieldResult);Z=_.Gl(t);fVj(Z,VBU);_.V9(t)})};
JG.prototype.decodeAsyncImpl=function(D,Y){return Promise.resolve(this.decodeImpl(D,Y))};var kW=function(D,Y){this.aesEncryptor=D;this.aesEncryptorAsync=Y};
_.n(kW,JG);kW.prototype.encodeImpl=function(D,Y){Y=eOr(Y);D=(new TextEncoder).encode(JSON.stringify(D));return this.aesEncryptor.encrypt(D,Y)};
kW.prototype.decodeImpl=function(D,Y){if(!(D instanceof Uint8Array))throw FMy(1);var R=new TextDecoder;Y=eOr(Y);D=this.aesEncryptor.decrypt(D,Y);return JSON.parse(R.decode(D))};
kW.prototype.decodeAsyncImpl=function(D,Y){var R=this,Z,t,X;return _.C(function(M){if(M.nextAddress==1){if(!(D instanceof Uint8Array))throw FMy(1);Z=new TextDecoder;t=eOr(Y);return M.yield(R.aesEncryptorAsync.decrypt(D,t),2)}X=M.yieldResult;return M.return(JSON.parse(Z.decode(X)))})};var AhU={accountLinkStatusEntity:dl4,booleanEntity:$lV,buttonEntity:PB7,captionTrack:y2E,channelHandle:Rc1,chipEntity:IY1,commerceAcquisitionClientPayloadEntity:TH_,commerceCartListEntity:j$U,contextNoteFeedEntityPayload:jFY,contextNoteUserRatingEntityPayload:IW_,continuationTokenEntity:zRE,downloadQualityPickerEntity:Yoz,downloadsPageRefreshTokenEntity:ZDY,downloadsPageViewConfigurationEntity:eR4,downloadStatusEntity:RRz,dismissState:FOL,sfvAudioItemCurrentlyPlayingEntity:MBL,emojiFountainDataEntity:qn1,
emojiCustomizationSetEntity:mxV,fakeChannel:bfU,fakePlaylist:ymU,fakePlaylistEntryCollection:NQ1,fakeVideo:JmU,fakeVideoDescription:kR7,featuredProductsEntity:HDb,flowStateEntity:BQL,iconBadgeEntity:IbL,interstitialInteractionStateEntity:zAE,likeButtonAnimationEntity:AwD,liveChatPollStateEntity:eA4,liveViewerLeaderboardChatEntryPointStateEntity:Q1L,liveViewerLeaderboardPointsEntity:BpL,liveReactionsDataEntity:HcL,logoEntity:CR1,macroMarkerEntity:nL1,mainDownloadsLibraryEntity:tRE,mainDownloadsListEntity:sh4,
mainPlaylistDownloadStateEntity:uSL,mainPlaylistEntity:So7,mainPlaylistVideoEntity:T7E,mainVideoDownloadStateEntity:aB7,mainVideoEntity:GpE,markersEngagementPanelSyncEntity:rwz,markersVisibilityOverrideEntity:wXY,musicAlbumReleaseDetail:cw4,musicAlbumReleaseDownloadMetadataEntity:ELb,musicAlbumRelease:ODU,musicAlbumReleaseUserDetail:DKV,musicArtistDetail:RmV,musicArtist:YPY,musicArtistUserDetail:ZJU,musicDownloadsLibraryEntity:gL4,musicLibraryEdit:ttL,musicLibraryStatusEntity:s1z,musicPlaylist:X6Y,
musicPlaylistDownloadMetadataEntity:d0E,musicShare:aSY,musicTrackDetail:C__,musicTrackDownloadMetadataEntity:iD7,musicTrack:Mt_,musicTrackUserDetail:WaL,offlineOrchestrationActionWrapperEntity:NpV,offlineVideoPolicy:lS1,offlineVideoStreams:J2L,offlineabilityEntity:MRL,orchestrationWebSamplingEntity:CjE,pageHeaderEntity:vW_,pdpStateEntity:F$U,pinnedProductEntity:x0z,playbackData:kYV,playerStateEntity:$0E,quantityIncrementerEntity:GVU,refresh:UKU,saveToPlaylistListEntity:yh1,selectedChipIndexEntityPayload:vL7,
settingEntity:iyU,stringEntity:vOE,suggestedFeedbackChipStateEntity:oLz,transfer:KaE,trendingOfferEntity:PjD,videoDownloadContextEntity:hm7,videoOverviewAsyncDataEntity:HOz,videoPlaybackPositionEntity:psz,votingEntity:UxV,ytMainChannelEntity:VRV,youchatPendingResponseEntity:bDz,ytMainDownloadedVideoEntity:Ww_,ytMainVideoEntity:fBD};var NOE,Jzz,Au,yhS,Ni5,Kez,LeD,hd_,ULE;NOE=function(D,Y){this.JSC$12617_wrapped=D;this.JSC$12617_encoderRegistry=Y;this.changedKeys={}};
Jzz=function(D,Y){return lIE(D.JSC$12617_encoderRegistry,Y.version).decode(Y.data,Y.key)};
_.kqY=function(D,Y,R){return D.JSC$12617_wrapped.objectStore("EntityStore").get(Y).then(function(Z){if(Z){if(R&&Z.entityType!==R)throw Error("Af");return Jzz(D,Z)}})};
Au=function(D,Y,R){return R?(R=R.map(function(Z){return _.kqY(D,Z,Y)}),hT.all(R)):D.JSC$12617_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(Y)).then(function(Z){return Z.map(function(t){return Jzz(D,t)})})};
_.byo=function(D,Y,R){var Z=uAM(Y),t=lIE(D.JSC$12617_encoderRegistry,1),X=Object.assign({},Y);return D.JSC$12617_wrapped.objectStore("EntityStore").get(Z).then(function(M){if(M){if(M.entityType!==R)throw Error("Af");X.entityMetadata||(M=Jzz(D,M),X.entityMetadata=M.entityMetadata)}}).then(function(){var M={key:Z,
entityType:R,data:t.encode(X,Z),version:1};return hT.all([D.JSC$12617_wrapped.objectStore("EntityStore").put(M),ULE(D,X,R)])}).then(function(){Kez(D,Z,R);
return Z})};
yhS=function(D,Y){var R=_.Mw(Y).entityType;return hT.all([D.JSC$12617_wrapped.objectStore("EntityStore").delete(Y),hd_(D,Y)]).then(function(){Kez(D,Y,R)})};
Ni5=function(D,Y,R,Z){var t=lIE(D.JSC$12617_encoderRegistry,1);return _.kqY(D,Y,Z).then(function(X){if(X){X=ElS(X,R);var M={key:Y,entityType:Z,data:t.encode(X,Y),version:1};return hT.all([D.JSC$12617_wrapped.objectStore("EntityStore").put(M),ULE(D,X,Z)])}}).then(function(){Kez(D,Y,Z);
return Y})};
Kez=function(D,Y,R){var Z=D.changedKeys[R];Z||(Z=new Set,D.changedKeys[R]=Z);Z.add(Y)};
LeD=function(D,Y,R){var Z=uAM(Y);R=nG5(R);if(!R)return hT.resolve([]);R=new R(Y);D=D.JSC$12617_wrapped.objectStore("EntityAssociationStore");Y=[];R=_.a(R.getAssociations());for(var t=R.next();!t.done;t=R.next())Y.push(D.put({parentEntityKey:Z,childEntityKey:t.value}));return hT.all(Y).then(function(X){return X.map(function(M){return M[1]})})};
hd_=function(D,Y){return D.JSC$12617_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(Y))};
ULE=function(D,Y,R){var Z=uAM(Y);return hd_(D,Z).then(function(){return LeD(D,Y,R)})};var mLE=function(){};
_.n(mLE,JG);mLE.prototype.encodeImpl=function(D){return D};
mLE.prototype.decodeImpl=function(D){if(D instanceof Uint8Array)throw FMy(0);return D};var $vU=function(){this.cacheMap={};this.cacheMap[0]=new mLE;if(!_.f("aes_pes_encoder_killswitch")){var D=this.cacheMap;try{var Y=_.fv();var R=eOr(Y);var Z=new kW(new w17(R),new $Lz(R))}catch(t){throw D=t instanceof Error?new Fs("KEY_CREATION_FAILED",{originalMessage:t.message}):new Fs("KEY_CREATION_FAILED"),_.Nb(D),D;}D[1]=Z}},lIE=function(D,Y){Y=Y===void 0?0:Y;
D=D.cacheMap[Y];if(!D)throw Y=new Fs("INVALID_ENCODER_VERSION",{encoderVersion:Y}),_.Nb(Y),Y;return D};var V5=function(D,Y){_.AE.call(this);this.token=D;this.JSC$12631_encoderRegistry=Y;this.observers=[];D=new _.ZU.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.fv());D.onmessage=this.handleMessage.bind(this);this.channel=D};
_.n(V5,_.AE);_.eC=function(D,Y,R){var Z,t,X,M;return _.C(function(W){if(W.nextAddress==1)return W.yield(Tin(D.token),2);if(W.nextAddress!=3)return Z=W.yieldResult,W.yield(_.Br(Z,["EntityStore","EntityAssociationStore"],Y,function(z){t=new NOE(z,D.JSC$12631_encoderRegistry);return R(t)}),3);
X=W.yieldResult;t&&(M=t.changedKeys,Object.keys(M).length>0&&(D.channel.postMessage(M),qB1(D,M)));return W.return(X)})};
V5.prototype.observe=function(D){var Y=this;this.observers.push(D);return function(){var R=Y.observers.indexOf(D);R>=0&&Y.observers.splice(R,1)}};
var ZUr=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(_.eC(D,{mode:"readonly",enableRetries:!0},function(Z){return Z.JSC$12617_wrapped.objectStore("EntityStore").getAll()}),2);
Y=R.yieldResult;return R.return(Promise.all(Y.filter(function(Z){return!!Z}).map(function(Z){var t,X;
return _.C(function(M){if(M.nextAddress==1){t=Z.key;X=Z.entityType;var W=M.yield;var z=yzE(lIE(D.JSC$12631_encoderRegistry,Z.version),Z.data,Z.key);return W.call(M,z,2)}return M.return({key:t,entityType:X,data:M.yieldResult})})})))})};
V5.prototype.handleMessage=function(D){qB1(this,D.data)};
var qB1=function(D,Y){D=_.a(D.observers);for(var R=D.next();!R.done;R=D.next())R=R.value,R(Y)};
V5.prototype.disposeInternal=function(){this.channel.close()};
var rhj;var UH,xLL,iy$;UH={};_.HaU=(UH.mainVideoEntity="mainVideoEntityActionMetadata",UH.mainPlaylistEntity="mainPlaylistEntityActionMetadata",UH.musicTrack="musicTrackEntityActionMetadata",UH.musicPlaylist="musicPlaylistEntityActionMetadata",UH);xLL=new _.R6("DOWNLOADS_ENTITY_TYPE_MAP");_.y5=_.TL("","downloadsPageViewConfigurationEntity");iy$=_.TL("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.yGl=_.TL("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.TL("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.TL("SMART_DOWNLOADS_ENABLED","settingEntity");_.TL("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var KMy=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var PSn=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var GJ$={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var KN,G5i,zUb,OTU;KN=window;_.PU=KN.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.bc5=KN.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.dL;G5i=KN.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||V_;zUb=KN.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||WQ_;_.PYD=KN.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.oyb;OTU=KN.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Nd7;EM({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 lkn=V85(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(D){return D}}}),f$r=V85(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(D){return D}}}),nZi=new Map;var k5o=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],oZi;var Q21=function(D){return _.u0({type:"SET_EPHEMERAL_ACTION",payload:D})};var BOz={ephemeralAction:null};var p1U={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var JVy={sharedUi:function(D,Y){D=D===void 0?p1U:D;switch(Y.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},D,{animatedThumbnailEnabled:Y.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},D,{inlinePreviewEnabled:Y.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:Y.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},D,{currentPageSubType:Y.payload});default:return D}},
a11y:GK({ephemeralAction:function(D,Y){D=D===void 0?BOz.ephemeralAction:D;switch(Y.type){case "SET_EPHEMERAL_ACTION":return Y.payload;default:return D}}}),
entities:MBy};var qnS={playlistId:"",inviteLinkURL:""};var EkL={};var gZr=GK({continuationCommand:function(D,Y){D=D===void 0?EkL:D;switch(Y.type){case "SET_CONTINUATION_COMMAND":return Y.payload.continuationCommand;default:return D}}});var xxU={currentFormId:"",commandsMap:{}};var $Q9=GK({isLeaderTab:function(D,Y){D=D===void 0?!0:D;switch(Y.type){case "SET_IS_LEADER_TAB":var R,Z;return(Z=Y==null?void 0:(R=Y.payload)==null?void 0:R.isLeaderTab)!=null?Z:D;default:return D}}});var dL1;_.gkY=function(D){return _.u0({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:D}})};
dL1=function(D){return _.u0({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:D}})};var lb5=GK({isDesktopSmallWidth:function(D,Y){switch(Y.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return Y.payload.isDesktopSmallWidth;default:return D===void 0?!1:D}},
isShortsActive:function(D,Y){switch(Y.type){case "SET_IS_SHORTS_ACTIVE":return Y.payload.isShortsActive;default:return D===void 0?!1:D}},
isWatchWhileMode:function(D,Y){switch(Y.type){case "SET_IS_WATCH_WHILE_MODE":return Y.payload.isWatchWhileMode;default:return D===void 0?!1:D}},
playerState:function(D,Y){switch(Y.type){case "SET_PLAYER_STATE":return Y.payload.playerState;default:return D===void 0?-1:D}},
isFullscreen:function(D,Y){switch(Y.type){case "SET_IS_FULLSCREEN":return Y.payload.isFullscreen;default:return D===void 0?!1:D}},
isSmallScreenSqueezeback:function(D,Y){switch(Y.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return Y.payload.isSmallScreenSqueezeback;default:return D===void 0?!1:D}},
isShortsPipActive:function(D,Y){switch(Y.type){case "SET_IS_SHORTS_PIP_ACTIVE":return Y.payload.isShortsPipActive;default:return D===void 0?!1:D}},
isPlaybackStarted:function(D,Y){switch(Y.type){case "SET_IS_PLAYBACK_STARTED":return Y.payload.isPlaybackStarted;default:return D===void 0?!1:D}}});var UQ$=function(){return function(D){return function(Y){var R=D(Y);_.CX(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[Y],!0);return R}}};var iaz,HY9;iaz=new _.Ta;_.CH=new _.R6("WATCH_PLAYER_PROMISE_TOKEN");_.OaL=new _.Ta;_.czU=new _.R6("SHORTS_PLAYER_PROMISE_TOKEN");HY9=new _.R6("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var K$U=function(){return function(D){return function(Y){Y.type==="ENTITY_LOADED"&&_.DH().resolve(_.CH).then(function(R){var Z;(Z=R.dispatchReduxAction)==null||Z.call(R,Y)});
return D(Y)}}};var D6U={};var vtl=GK({additionalContext:function(D,Y){switch(Y.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var R;return(R=Y.payload)!=null?R:"";default:return D===void 0?"":D}},
impersonatedChannelUrl:function(D,Y){switch(Y.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var R;return(R=Y.payload)!=null?R:"";default:return D===void 0?"":D}},
selectedVideoIds:function(D,Y){D=D===void 0?D6U:D;switch(Y.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var R={};return Object.assign({},D,(R[Y.payload]=!0,R));case "VIDEO_UNSELECTED":return Y=Y.payload,D=Object.assign({},D),delete D[Y],D;default:return D}}});var otM=GK({parentClickTrackingParams:function(D,Y){switch(Y.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return Y.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return D===void 0?"":D}}});var YqV=function(D){return _.u0({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:D})};var RwU={};var bOl=GK({stepStates:function(D,Y){D=D===void 0?RwU:D;switch(Y.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var R=D,Z=Y.payload,t,X,M;D={};Y={selectionStates:Object.assign({},(M=(t=R[Z.stepId])==null?void 0:t.selectionStates)!=null?M:{},(D[Z.token]={isSelected:Z.isSelected},D)),userQuery:(X=R[Z.stepId])==null?void 0:X.userQuery};t={};return Object.assign({},R,(t[Z.stepId]=Y,t));case "TALK_TO_RECS_UPDATE_USER_QUERY":return t=D,X=Y.payload,M={selectionStates:Object.assign({},
(Z=(R=t[X.stepId])==null?void 0:R.selectionStates)!=null?Z:{}),userQuery:{userQuery:X.userQuery,token:X.userQueryToken}},R={},Object.assign({},t,(R[X.stepId]=M,R));default:return D}}});var ZAb,t9b,Xzb;ZAb=function(D){return _.u0({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:D})};
t9b=function(D){return _.u0({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:D})};
_.y4=function(D){return _.u0({type:"SET_CURRENT_PAGE_TYPE",payload:D})};
_.s4L=function(D){return _.u0({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:D})};
Xzb=function(D){return _.u0({type:"SET_CHIP_BAR_IS_STICKY",payload:D})};var Q89={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"};_.u24=function(D){return _.u0({type:"SET_PLAYER_STATE",payload:{playerState:D}})};var aAL=[],M9E={width:0,height:0};var yVM=GK({isTheaterMode:function(D,Y){D=D===void 0?_.f("kevlar_disable_theater_mode_persistence")?!1:_.ks("START_IN_THEATER_MODE"):D;switch(Y.type){case "SET_IS_THEATER_MODE":return Y.payload.isTheaterMode;default:return D}},
isWatchActive:function(D,Y){switch(Y.type){case "SET_IS_WATCH_ACTIVE":return Y.payload.isWatchActive;default:return D===void 0?!1:D}},
isLearningJourneyActive:function(D,Y){switch(Y.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return Y.payload.isLearningJourneyActive;default:return D===void 0?!1:D}},
isWatchFullscreen:function(D,Y){switch(Y.type){case "SET_IS_WATCH_FULLSCREEN":return Y.payload.isWatchFullscreen;default:return D===void 0?!1:D}},
isWatchNarrowWidth:function(D,Y){switch(Y.type){case "SET_IS_WATCH_NARROW_WIDTH":return Y.payload.isWatchNarrowWidth;default:return D===void 0?!1:D}},
isWatchRetroMode:function(D,Y){switch(Y.type){case "SET_IS_WATCH_RETRO_MODE":return Y.payload.isWatchRetroMode;default:return D===void 0?!1:D}},
isLiveChatCollapsed:function(D,Y){switch(Y.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return Y.payload.isLiveChatCollapsed;default:return D===void 0?!1:D}},
openEngagementPanels:function(D,Y){D=D===void 0?aAL:D;var R=[].concat(_.oK(D));switch(Y.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return R.push(Y.payload.panelToAdd),R;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return R.splice(R.indexOf(Y.payload.panelToRemove),1),R;default:return D}},
playerState:function(D,Y){switch(Y.type){case "SET_PLAYER_STATE":return Y.payload.playerState;default:return D===void 0?-1:D}},
watchScrollTop:function(D,Y){switch(Y.type){case "SET_WATCH_SCROLL_TOP":return Y.payload.watchScrollTop;default:return D===void 0?0:D}},
watchWindowSize:function(D,Y){D=D===void 0?M9E:D;switch(Y.type){case "SET_WATCH_WINDOW_SIZE":return Y.payload.watchWindowSize;default:return D}}});var CnU={feedbackTokens:[]};var NHl=GK({surveyFeedbackData:function(D,Y){D=D===void 0?CnU:D;switch(Y.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return Y.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},D,Y.payload);default:return D}}});var psr={};var L$n=void 0;_.f("web_enable_redux_store_on_demand")||(L$n=huy());var WC_=function(D,Y,R){var Z=this;this.listId=D;this.JSC$12765_updateCallback=Y;this.isOfflineVideoCallback=R;_.Dl().subscribe(function(){Z.handleUpdate()})};
WC_.prototype.getPlaylistData=function(){var D=_.Dl().getState().entities;if(this.listId&&this.listId!=="PPSV"){var Y=uqM(D,this.listId,!0),R=_.TL(this.listId,"mainPlaylistEntity"),Z,t;D=D==null?void 0:(Z=D.mainPlaylistEntity)==null?void 0:(t=Z[R])==null?void 0:t.title;return mQ5(Y,D,this.listId)}Y=_.Q5r(KOo(D));D=_.Q5r(_.Nw(D));D=Y.concat(D);return mQ5(D)};
WC_.prototype.getPlaylistId=function(){return this.listId};
WC_.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12765_updateCallback(this.listId,this.getPlaylistData(),{})};var hG=function(D,Y,R,Z){Z=Z===void 0?[]:Z;this.JSC$12768_playlistNetworkManager=D;this.listId=Y;this.JSC$12768_updateCallback=R;this.videoIds=Z;this.pendingUpdates=[];this.currentIndex=0};
hG.prototype.JSC$12768_setCurrentIndex=function(D){this.currentIndex=D};
hG.prototype.setListId=function(D){this.listId=D};
var zwY=function(D,Y){D.currentCreateRequest&&D.currentCreateRequest.cancel(Y);D.currentUpdateRequest&&D.currentUpdateRequest.cancel(Y);D.currentRefreshRequest&&D.currentRefreshRequest.cancel(Y)};
hG.prototype.delete=function(){zwY(this,"PROXY DELETED")};
hG.prototype.addVideos=function(D,Y,R){var Z=this;R!==void 0?this.videoIds.splice.apply(this.videoIds,[R,0].concat(_.oK(D))):this.videoIds.push.apply(this.videoIds,_.oK(D));this.listId||this.currentCreateRequest?(D.forEach(function(t,X){t={addedVideoId:t,action:"ACTION_ADD_VIDEO"};R&&(t.addedVideoPosition=R+X);Z.pendingUpdates.push(t)}),LN(this)):SqY(this,Y.onCreateListCommand)};
var TSL=function(D,Y,R,Z,t){ySi(D.videoIds,Y,R);Y>D.currentIndex&&R<=D.currentIndex?D.JSC$12768_setCurrentIndex(D.currentIndex+1):Y===D.currentIndex?D.JSC$12768_setCurrentIndex(R):Y<D.currentIndex&&R>=D.currentIndex&&D.JSC$12768_setCurrentIndex(D.currentIndex-1);D.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Z,movedSetVideoIdPredecessor:t});LN(D)},SqY=function(D,Y){zwY(D,"OBSOLETE");
D.currentCreateRequest=j44(D.JSC$12768_playlistNetworkManager,Y,D.videoIds);_.$B(D.currentCreateRequest,function(){D.currentCreateRequest=void 0}).then(function(R){D.setListId(R.playlistId);
D.pendingUpdates.length>0?LN(D):IAb(D)})},LN=function(D){if(D.pendingUpdates.length!==0&&(D.currentRefreshRequest&&D.currentRefreshRequest.cancel("OBSOLETE"),!D.currentUpdateRequest&&!D.currentCreateRequest)){var Y=D.pendingUpdates.splice(0,D.pendingUpdates.length);
D.currentUpdateRequest=D.JSC$12768_playlistNetworkManager.updatePlaylist(D.listId,Y);_.$B(D.currentUpdateRequest,function(){D.currentUpdateRequest=void 0}).then(function(){D.pendingUpdates.length>0?LN(D):IAb(D)}).thenCatch(function(){D.pendingUpdates.unshift.apply(D.pendingUpdates,_.oK(Y))})}},IAb=function(D){D.currentRefreshRequest=_.FCU(D.JSC$12768_playlistNetworkManager,D.listId,D.currentIndex,D.videoIds[D.currentIndex]);
_.$B(D.currentRefreshRequest,function(){D.currentRefreshRequest=void 0}).then(function(Y){D.JSC$12768_updateCallback(Y.playlistId,Y.playlistPanelRenderer,Y.autoplayRenderer)})};
hG.prototype.size=function(){return this.videoIds.length};var GwD=function(D,Y,R,Z){Z=Z===void 0?[]:Z;hG.call(this,D,Y,R,Z);this.JSC$12768_playlistNetworkManager=D;this.listId=Y;this.JSC$12768_updateCallback=R;this.videoIds=Z};
_.n(GwD,hG);_.mO=function(D,Y,R,Z,t,X,M){t=t===void 0?[]:t;M=M===void 0?sk:M;hG.call(this,D,Y,R,t);this.JSC$12768_playlistNetworkManager=D;this.listId=Y;this.JSC$12768_updateCallback=R;this.onAuthChange=Z;this.videoIds=t;this.storage=X;this.cookieReader=M;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.S7(_.yc,this.checkLoggedInStatusChange.bind(this),1E3)};
_.n(_.mO,hG);_.u=_.mO.prototype;_.u.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.S7(_.yc,this.checkLoggedInStatusChange.bind(this),1E3)};
_.u.JSC$12768_setCurrentIndex=function(D){hG.prototype.JSC$12768_setCurrentIndex.call(this,D);this.store()};
_.u.delete=function(){_.yc.cancelJob(this.queueSapisIdJob);hG.prototype.delete.call(this)};
_.u.setListId=function(D){hG.prototype.setListId.call(this,D);this.store()};
_.u.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var V91=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],fAL=["playerResponse","videoDetails"],ewL=["response","currentVideoEndpoint","watchEndpoint","videoId"],A8D=["response","currentVideoEndpoint","watchEndpoint","playlistId"],noz=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],r8L=["response","contents","twoColumnWatchNextResults","playlist","playlist"],wzz=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
$6b=["response","contents","twoColumnWatchNextResults"];var q8={},Q$n=(q8.WEB_UNPLUGGED="^unplugged/",q8.WEB_UNPLUGGED_ONBOARDING="^unplugged/",q8.WEB_UNPLUGGED_OPS="^unplugged/",q8.WEB_UNPLUGGED_PUBLIC="^unplugged/",q8.WEB_CREATOR="^creator/",q8.WEB_KIDS="^kids/",q8.WEB_EXPERIMENTS="^experiments/",q8.WEB_MUSIC="^music/",q8.WEB_REMIX="^music/",q8.WEB_MUSIC_EMBEDDED_PLAYER="^music/",q8.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",q8);var vbS,j44;vbS=function(D,Y){this.networkManager=D;this.innertubeTransportService=Y};
j44=function(D,Y,R){if(!_.A(Y,_.Px))return _.lf(Error("Ef"));_.A(Y,_.Px).videoIds=R;R={create_playlist_title:_.fX("QUEUE",void 0,"Queue")};return xQy(_.d1(D.innertubeTransportService,Y,R),qcb)};
_.FCU=function(D,Y,R,Z){Y={videoId:Z,playlistId:Y,playlistIndex:R};R=_.YI(vb1);return xQy(_.Hk(D.innertubeTransportService,Y,R),Pul)};
vbS.prototype.updatePlaylist=function(D,Y){return xQy(_.d1(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:D,actions:Y}}),HOr)};var voV=function(D){this.storage=D},ooU;
voV.prototype.store=function(D,Y){Y=Y===void 0?0:Y;if(this.storage&&D.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",D),this.storage.set("TLPQindex",String(Y)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(R){}};
voV.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
voV.prototype.getPlaylistId=function(){if(!this.storage)return null;var D=null;try{D=this.storage.get("TLPQplaylist")}catch(Y){}return D};var gtU=["navigationEndpoint","watchEndpoint","videoId"],EtU=["nextButtonVideo","watchEndpoint","videoId"];_.Kn=new _.R6("NETWORK_TOKEN");_.Z4=new _.R6("PAGE_TOKEN");_.xW=new _.R6("PLAYLIST_TOKEN");var bAz;bAz=new _.R6("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.h6=new _.R6("INNERTUBE_TRANSPORT_TOKEN");var y8L,Pk,lAL,J8V,U6z,KC_;y8L=new Set(["ci","cr","carml"]);Pk=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12815_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Q0=function(){Pk.instance||(Pk.instance=new Pk);return Pk.instance};
Pk.prototype.onAny=function(D){return _.NSY(this,D,2)};
Pk.prototype.parkOrScheduleJob=function(D,Y,R,Z,t){_.Bk(this,R)?_.b$().addJob(D,Y,Z):(t&&(D=lAL(D),J8V(this,D,Y,R,t)),t=this.JSC$12815_parkedJobs.get(R),t||(this.JSC$12815_parkedJobs.set(R,[]),t=this.JSC$12815_parkedJobs.get(R)),t.push({job:D,priority:Y,delay:Z}))};
Pk.prototype.addListener=function(D,Y,R){R&&(Y=lAL(Y),J8V(this,Y,0,D,R));R=this.parkedProcessors.get(D);R||(this.parkedProcessors.set(D,[]),R=this.parkedProcessors.get(D));R.push(Y)};
Pk.prototype.processSignal=function(D){if(!_.Bk(this,D)){this.inProgressSignals.add(D);var Y=this.JSC$12815_parkedJobs.get(D);if(Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,_.b$().addJob(R.job,R.priority,R.delay);this.JSC$12815_parkedJobs.delete(D)}if(Y=this.parkedProcessors.get(D)){Y=_.a(Y);for(R=Y.next();!R.done;R=Y.next())R=R.value,R();this.parkedProcessors.delete(D)}this.signals.push(D);this.inProgressSignals.delete(D)}};
_.Bk=function(D,Y){return y8L.has(Y)||_.ks("IS_HOMEPAGE_COLD")||_.ks("IS_RESULTS_PAGE_COLD")||_.ks("IS_WATCH_PAGE_COLD")?D.signals.indexOf(Y)>=0:!0};
lAL=function(D){var Y=!1;return function(){Y||(Y=!0,D())}};
J8V=function(D,Y,R,Z,t){if(kwL.has(Z))_.b$().addJob(Y,R,t);else{var X=D.compoundSignals.get(Z);X&&_.b$().addJob(function(){_.Bk(D,Z)||(X.isTimeoutConditionSatisfied?_.b$().addJob(Y,R):X.timeoutConditionObservers.push(function(){_.b$().addJob(Y,R)}))},R,t)}};
_.NSY=function(D,Y,R){if(Y.length>1){var Z=[],t=Object.create(null);Y=_.a(Y);for(var X=Y.next();!X.done;X=Y.next())X=X.value,t[X]||(Z.push(X),t[X]=!0);Y=Z}if(Y.length===1)return Y[0];X=Y;Z="";t=R===2?"|":"&";X.sort();X=_.a(X);for(var M=X.next();!M.done;M=X.next())Z+=M.value+t;if(!D.compoundSignals.get(Z)){t=0;X=[];M=_.a(Y);for(var W=M.next();!W.done;W=M.next())W=W.value,t++,_.Bk(D,W)||X.push(W);(R=R===2)&&t>X.length||!R&&!X.length?D.signals.push(Z):U6z(D,Z,R,Y,X)}return Z};
U6z=function(D,Y,R,Z,t){var X=t.length,M=function(){R||--X===0?D.processSignal(Y):KC_(D,Y)};
t=_.a(t);for(var W=t.next();!W.done;W=t.next())D.addListener(W.value,M);D.compoundSignals.set(Y,{signals:Z,isOnAny:R,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});KC_(D,Y)};
KC_=function(D,Y){if(!_.Bk(D,Y)){var R=D.compoundSignals.get(Y);if(R&&!R.isTimeoutConditionSatisfied){for(var Z=!1,t=0,X=0,M=_.a(R.signals),W=M.next();!W.done;W=M.next()){var z=W.value;W=!_.Bk(D,z);kwL.has(z)?Z=!0:(z=D.compoundSignals.get(z))?W&&!z.isTimeoutConditionSatisfied&&(X++,R.isInitialized||z.timeoutConditionObservers.push(function(){KC_(D,Y)})):W&&t++}R.isInitialized=!0;
R.isOnAny?Z&&(R.isTimeoutConditionSatisfied=!0):t===0&&X===0&&(R.isTimeoutConditionSatisfied=!0);if(R.isTimeoutConditionSatisfied)for(R=_.a(R.timeoutConditionObservers),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z()}}};
Pk.prototype.processSignal=Pk.prototype.processSignal;Pk.prototype.parkOrScheduleJob=Pk.prototype.parkOrScheduleJob;Pk.prototype.onAny=Pk.prototype.onAny;_.ix("ytsignals.getInstance",_.Q0);Pk.prototype.onAny=Pk.prototype.onAny;Pk.prototype.parkOrScheduleJob=Pk.prototype.parkOrScheduleJob;Pk.prototype.processSignal=Pk.prototype.processSignal;var kwL=new Set(["eop","eocs","dl","pcl"]);_.mL=new _.R6("MINIPLAYER_SERVICE");var pN,hwL,LCL;pN=function(D,Y,R){var Z=_.Bm.getInstance();if(!ooU){var t=new IQU;var X=void 0,M=_.JQ("ID_TOKEN");M&&t.isAvailable()&&(X=new $w(t,"yt-queue"+M));ooU=new voV(X)}t=ooU;X=_.Q0();this.JSC$12822_actionRouter=Z;this.pageManager=D;this.playlistManager=Y;this.JSC$12822_playlistNetworkManager=R;this.storage=t;this.signals=X;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.EH=function(){if(!hwL){var D=_.DH(),Y=D.resolve(_.cD(_.Z4)),R=D.resolve(_.cD(_.Kn)),Z=D.resolve(_.cD(_.xW));D=D.resolve(_.h6);hwL=new pN(Y,Z,new vbS(R,D))}return hwL};
LCL=function(D,Y,R){if(R){var Z;if(((Z=D.responsePlaylistData)==null?void 0:Z.playlistId)!==R)return}D.responsePlaylistData&&(R=YYr(Y,D.responsePlaylistData),D.responsePlaylistData=(0,_.y7.unsafeClone)(D.responsePlaylistData),ZSU(D.responsePlaylistData,R));R=D.temporaryItems.findIndex(function(t){return t.videoId===Y});
R>-1&&D.temporaryItems.splice(R,1);_.gm(D,_.dm(D,D.response?D.response.autoplayRenderer:void 0))};
_.m6L=function(D,Y){if(D.responsePlaylistData){var R=RNU(Y,D.responsePlaylistData);ZSU(D.responsePlaylistData,R);if(D.queueProxy){var Z=D.queueProxy;R<0||(Z.videoIds.splice(R,1),R<Z.currentIndex&&Z.JSC$12768_setCurrentIndex(Z.currentIndex-1),Z.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:Y}),LN(Z))}}_.gm(D,_.dm(D,D.response?D.response.autoplayRenderer:void 0))};
pN.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.gm(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
pN.prototype.setPlaylistData=function(D,Y,R){this.temporaryItems=[];this.listId=D;this.responsePlaylistData=Y;_.gm(this,_.dm(this,R))};
var qq4=function(D){return(D==null?0:D.playlistId)?D.playlistId:"PPSV"},HAL=function(D){return D&&D.playlistId?D.playlistId==="PPSV"?!0:sir(_.Dl().getState().entities,D.playlistId):!1};
pN.prototype.isPlayingOfflineVideo=function(){return this.response?HAL(this.response):!1};
pN.prototype.closeMiniplayer=function(D){var Y=this.queueProxy&&this.queueProxy.size()<=1,R=_.DH().resolve(_.mL);if(!this.queueProxy||Y)this.queueProxy&&this.clearQueue(),R.close(!0);else{R.pipController.getWindow()&&window.focus();Y=this.responsePlaylistData;var Z=this.temporaryItems.length+(Y&&Y.contents?Y.contents.length:0);Y=_.fX("QUEUE_CLEARED_UNPLURALIZED")||_.ee("QUEUE_CLEARED",Z);Y=_.Zl(Y);R=_.fX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Z=_.fX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.ee("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Z);var t=_.fX("MINIPLAYER_CLOSE",void 0,"Close"),X=_.fX("CANCEL",void 0,"Cancel");_.hH(this.JSC$12822_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.i0(R),dialogMessages:[_.i0(Z)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.i0(t),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
Y]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.i0(X)}}}}}}],D)}};
_.dm=function(D,Y){var R={},Z=D.response;R.autoplayRenderer=Y;if(!D.responsePlaylistData&&!D.temporaryItems.length)return!Z||!Z.hasRelatedVideoData&&_.f("kevlar_prefetch_data_augments_network_data")||(R.playerData={rvs:Z.relatedVideoArgs,endScreenRenderer:Z.endScreenRenderer}),R;R.playerData={};if(D.index===void 0)return _.Nb(Error("Gf")),R;R.panel=D.responsePlaylistData?(0,_.y7.unsafeClone)(D.responsePlaylistData):{titleText:_.i0(_.fX("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
Y=R.panel;if(Y.contents)for(var t=_.a(D.temporaryItems),X=t.next();!X.done;X=t.next())Y.contents.push({playlistPanelVideoRenderer:X.value});D.queueProxy&&Z&&Z.playingVideo&&Z.playingVideoId&&!DDo(Z.playingVideoId,R.panel)&&(Y=Z.playingVideo,t=R.panel,X=D.index,t.contents&&t.contents.splice(X===void 0?0:X,0,{playlistPanelVideoRenderer:Y}));Z&&Z.playingVideoId&&(Y=D.index,t=R.panel,Y=!t.contents||Y>=t.contents.length?void 0:t.contents[Y].playlistPanelVideoRenderer,Y&&Y.videoId===Z.playingVideoId||(Y=
YYr(Z.playingVideoId,R.panel),D.index=Y!==-1?Y:D.index?D.index-1:0));Y=cVr(D.index+1,R.panel);t=void 0;D.index>0&&(t=cVr(D.index-1,R.panel));if(t||Y)R.autoplayRenderer=dQo(Y,t,R.autoplayRenderer);!Y&&(Z==null?0:Z.relatedVideoArgs)&&(R.playerData.rvs=Z.relatedVideoArgs);Z=Z?Z.playlistIndexOffset:0;D.queueProxy?XHy(R.panel,D.index,Z,OOM,!0,!0,!0):XHy(R.panel,D.index,Z);R.playerData.playlistPanelRenderer=R.panel;return R};
pN.prototype.openToast=function(D){_.DH().resolve(_.mL).openToast(D,_.fX("ADDED_TO_QUEUE",void 0,"Added to queue"))};
pN.prototype.isMiniplayerActive=function(){return _.DH().resolve(_.mL).isMiniplayerActive()};
_.gm=function(D,Y){D.playlistManager.setAutoplayRenderer(Y.autoplayRenderer||null);D.playlistManager.setPlaylistData(Y.panel||null);Y.playerData&&D.playlistManager.setPlayerPlaybackControlData(Y.playerData)};var a6y="#";var x6L={},Pn_={},Q4z={},BS_={},pzb={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:(x6L.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",x6L),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:(Pn_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Pn_),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:(Q4z.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Q4z),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:(BS_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",BS_),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 PHU=[{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:pzb},{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:pzb}}];var JUj;_.SI=[[["bHFjMWJ5aThta2luZCMzdTk=","N3pmNmc3Mnd5dmFsdWUjdDE="],"ZXBucGNyeEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI3U1amY0"]];
JUj=[[["aGc2cHJpbWFyeSM1NDg5anpuOHY=",null,null],[null,["Y29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2JrcWlqd3lzdmM5dnl0ZC10d28t","LXNjb3BlI3FiNmUyMHI3MjNxb3N0eWxl"],null],["ZWFkLWFkIzFka3Y2NGttZzhmcW1hc3Ro",["bXc3MTJubGd5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3BvczY="],null],[null,["YW00YnRwbGx5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzNqYXo=","LXNjb3BlI3BwNGYwajVneDc1YXN0eWxl"],null],[null,["azRoaHN5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzQ5N2ZwOGM=","LXNjb3BlI2kxNmIyMWlibWZnNHN0eWxl"],null],[null,["NmliNnhyeHE4aHl0ZC1hZC1zbG90LXJlbmRlcmVyI2pk"],
null]],[["eWVyLWFkcyNnaXhrNGEzanFpemlwbGE=",null,null]]];_.za=["a3MjazNlbXRmNXRwNzZyZ2xvYmFsQ2FsbGJhYw==","Z3ZoNWJhdW81b25BYm5vcm1hbGl0eURldGVjdGVkI2Vobw==","YW9uQWRTa2lwI2g1dmQ2eGNrNWRi","ODZuaDJnN2ZqdXdyYXdfcGxheWVyX3Jlc3BvbnNlI3M=","bTRjYWRTbG90cyN0ZmIzeHV5ZG8="];_.is="a3MjazNlbXRmNXRwNzZyZ2xvYmFsQ2FsbGJhYw== Z3ZoNWJhdW81b25BYm5vcm1hbGl0eURldGVjdGVkI2Vobw== YW9uQWRTa2lwI2g1dmQ2eGNrNWRi ODZuaDJnN2ZqdXdyYXdfcGxheWVyX3Jlc3BvbnNlI3M= YXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2Zqd3o4ejhwNTNmZHdlYl9wbA== ZmFiX3NhX2VmI203aXg1ZWd6eTNp bTRjYWRTbG90cyN0ZmIzeHV5ZG8=".split(" ");var OH;OH=function(D,Y,R){this.d7y=D;this.isAsync=Y;this.ezz=R};
_.R8l=[new OH("b.f_",!1,0),new OH("j.s_",!1,2),new OH("r.s_",!1,4),new OH("e.h_",!1,6),new OH("i.s_",!0,8),new OH("s.t_",!1,10),new OH("p.h_",!1,12),new OH("s.i_",!1,14),new OH("f.i_",!1,16),new OH("a.b_",!1,18),new OH("a.o_",!1),new OH("g.o_",!1,22),new OH("p.i_",!1,24),new OH("p.m_",!1),new OH("n.k_",!0,20),new OH("i.f_",!1),new OH("a.s_",!0),new OH("m.c_",!1),new OH("n.h_",!1,26),new OH("o.p_",!1),new OH("m.p_",!0,28),new OH("o.a_",!1),new OH("d.p_",!1),new OH("e.i_",!1)].reduce(function(D,Y){D[Y.d7y]=
Y;return D},{});var EoU=function(){};
EoU.prototype.flush=function(D,Y){D=D===void 0?[]:D;Y=Y===void 0?!1:Y;if(_.f("enable_client_streamz_web")){D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=lGL(R.value),this.rootSpec&&_.To(R,2,this.rootSpec),R={serializedIncrementBatch:_.rb(R.JSC$9576_serializeBinary())},_.bo("streamzIncremented",R,{sendIsolatedPayload:Y})}};
var zNU=function(){};
_.n(zNU,EoU);var gob=function(D){var Y=new wZz;var R=new Af7;R=_.ew(R,1,"botguard");D=_.ew(R,2,D);this.rootSpec=_.jf(Y,1,$y7,D)};
_.n(gob,EoU);var M3,d6z=new Map;var hNM,TMl,n$j,FbU,f6i,NMb,mDi,bS5;hNM=2;TMl=2;n$j=2;FbU=2;f6i=2;NMb=2;mDi=2;bS5=new $C1;var OAV,c87,DSU;OAV=function(){this.ongoingFlowNonces=new Map};
_.Ga=function(){c87||(c87=new OAV);return c87};
_.jI=function(D,Y,R){return{eventType:{flowEventNamespace:D,flowEventType:Y},metadata:R,statusCode:void 0,csn:void 0,can:void 0}};
_.tmj=function(D,Y){var R=_.Ga(),Z=DSU(R,Y,!0);_.F9(R,D,Y,Z)};
_.F9=function(D,Y,R,Z){D={flowNonce:Z||DSU(D,R),flowType:R,flowEventType:Y.eventType};Y.metadata&&(D.flowMetadata=Y.metadata);Y.statusCode!==void 0&&(D.flowEventStatus=Y.statusCode);Y.csn&&(D.csn=Y.csn);Y.can&&(D.can=Y.can);_.bo("flowEvent",D,void 0)};
DSU=function(D,Y,R){R=R===void 0?!1:R;var Z=D.ongoingFlowNonces.get(Y);if(!Z||R)Z=J5(16),D.ongoingFlowNonces.set(Y,Z);return Z};_.YJE=new wBU;var aub={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"};var ck=function(D,Y,R,Z,t,X,M){R=R===void 0?!1:R;Z=Z===void 0?!1:Z;X=X===void 0?_.EH():X;this.hasRun=!1;this.c9U=D;this.dEK=Y;this.cWx=R;this.fromHistory=Z;this.previousVideoId=t;this.uIy=X;this.tempData=M;this.ww2=new _.vhE};
_.n(ck,sH);ck.prototype.validate=function(D){return!(!D.data.playerResponse||D.data.page!=="watch"&&D.data.page!=="learning_journey_watch"&&D.data.page!=="shorts"||this.hasRun)};
ck.prototype.handle=function(D){var Y=this,R=_.A(D.endpoint,_.Od),Z=_.A(D.endpoint,_.$I);if(_.f("kevlar_continue_playback_without_player_response")&&(R==null?0:R.videoId)&&this.previousVideoId&&(R==null?void 0:R.videoId)===this.previousVideoId&&(R==null?0:R.continuePlayback)&&!this.fromHistory)this.c9U.resolve();else{var t={};R?t.watch_endpoint=R:Z&&(t.watch_endpoint=Z,Z.endTimeSeconds&&(t.end=Z.endTimeSeconds));D.data.page==="watch"?(D.data.filler||this.cWx||(_.h4("cfg"),_.Bm.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(t,Rn1(this,D.endpoint)),_.f("enable_masthead_quartile_ping_fix")&&Object.assign(t,ZkE(this)),Object.assign(t,void 0),D.data.forceExternalPlaylist&&(t.external_list=!0)):D.data.page==="shorts"?_.Bm.getInstance().triggerAction("yt-start-loading-shorts"):D.data.page==="learning_journey_watch"&&_.Bm.getInstance().triggerAction("yt-start-loading-learning-journey");if(R=this.dEK()){try{R.loadVideoWithPlayerResponse(D.data.playerResponse,t),R.getPlayerPromise().then(this.c9U.resolve)}catch(X){_.Nb(X),
this.c9U.resolve()}this.hasRun=!0;R.getPlayerPromise().then(function(X){X.addEventListener("onAbnormalityDetected",function(){var M=D.data.playerResponse,W=X.getVideoData().cpn;mDi=0;_.iAL=W;if(W=YXj(M))Y.ww2.increment("IN_PLAYER"),_.Vb(5),_.f("ab_st_vid_ks")?X.pauseVideo(!0):X.stopVideo(),M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:W}}),M.videoDetails=void 0,_.Bm.getInstance().triggerOptionalAction("yt-updated-playability-status",
M.playabilityStatus)})})}else _.Jk(Error("Jf"))}};
var Rn1=function(D,Y){var R=_.A(Y,_.Od);if(Y&&R&&R.playlistId&&R.videoId&&(D=D.uIy,D.queueProxy?(D=D.queueProxy,R=D.listId===R.playlistId?D.attributionData.get(R.videoId):void 0):R=void 0,R))return{queue_info:R}},ZkE=function(D){var Y;
if((Y=D.tempData)==null?0:Y.adpings)return{adpings:D.tempData.adpings}};var Dk=function(D,Y,R){this.hasRun=!1;this.bp9=D;this.gZF=Y;this.qux=R};
_.n(Dk,sH);Dk.prototype.validate=function(D){return!!_.y7.getValueByKeys.apply(null,[D.data].concat(_.oK($6b)))};
Dk.prototype.handle=function(D){var Y=this;this.bp9.promise.then(function(){var R=D.data;var Z=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(V91))),t=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(r8L))),X=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(ewL)));var M=(M=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(fAL))))?{videoId:M.videoId,thumbnail:M.thumbnail,title:M.title?_.i0(M.title):void 0,shortBylineText:M.author?_.i0(M.author):void 0}:void 0;var W=void 0;_.f("web_get_playlist_id_from_current_endpoint_ks")||
(W=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(A8D))));var z=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(wzz))),I=_.y7.getValueByKeys.apply(null,[R].concat(_.oK(noz))),F=!!z||!!I&&!!I.results&&I.results.length>0,G=0;t&&t.currentIndex&&t.localCurrentIndex&&(G=t.currentIndex-t.localCurrentIndex);t&&t.playlistId&&(W=t.playlistId);R={rawResponse:R,autoplayRenderer:Z,hasRelatedVideoData:F,playingVideo:M,playingVideoId:X,playlistPanelRenderer:t,playlistId:W,playlistIndex:t&&t.currentIndex,relatedVideoArgs:z,
endScreenRenderer:I,playlistIndexOffset:G};a:{Z=Y.qux;t=Y.gZF;Z.response=R;if(HAL(R))Z.downloadPlaylistProxy&&Z.downloadPlaylistProxy.getPlaylistId()===qq4(R)||(Z.downloadPlaylistProxy=new WC_(qq4(R),Z.setPlaylistData.bind(Z),Z.isPlayingOfflineVideo.bind(Z))),Z.responsePlaylistData=Z.downloadPlaylistProxy.getPlaylistData(),Z.listId=qq4(R),Z.index=0;else if(R.playlistPanelRenderer&&R.playlistId&&R.autoplayRenderer)R.playlistId.startsWith("TLPQ")?Z.queueProxy?Z.listId===R.playlistId?(Z.index=R.playlistIndex,
Z.responsePlaylistData=R.playlistPanelRenderer,Z.queueProxy.JSC$12768_setCurrentIndex(Z.index)):R.playingVideoId&&Z.index!==void 0&&t.clientParams.autoSaveToQueue&&(Z.index+=1,Z.queueProxy.JSC$12768_setCurrentIndex(Z.index),Z.queueProxy.addVideos([R.playingVideoId],{},Z.index)):(Z.queueProxy=new _.mO(Z.JSC$12822_playlistNetworkManager,R.playlistId,Z.setPlaylistData.bind(Z),Z.clearQueue.bind(Z),_.t5$(R.playlistPanelRenderer),Z.storage),Z.responsePlaylistData=R.playlistPanelRenderer,Z.listId=R.playlistId,
Z.index=R.playlistIndex):(Z.index=R.playlistIndex,Z.listId!==R.playlistId&&Z.clearQueue(),Z.responsePlaylistData=R.playlistPanelRenderer,Z.listId=R.playlistId,Z.playlistProxy=new GwD(Z.JSC$12822_playlistNetworkManager,R.playlistId,Z.setPlaylistData.bind(Z),_.t5$(R.playlistPanelRenderer)));else if(!Z.queueProxy)Z.responsePlaylistData=void 0;else if(R.playingVideoId&&t.clientParams.autoSaveToQueue){if(Z.index===void 0){_.Nb(Error("Ff"));Z.clearQueue();break a}Z.queueProxy.videoIds.includes(R.playingVideoId)||
(Z.index+=1,Z.queueProxy.JSC$12768_setCurrentIndex(Z.index),Z.queueProxy.addVideos([R.playingVideoId],{},Z.index))}_.gm(Z,_.dm(Z,Z.response.autoplayRenderer))}})};var tk_=function(D,Y){Y=Y===void 0?_.EH():Y;fN.call(this);this.vP.push(new Dk(this.my,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Y));this.vP.push(new ck(this.my,D,!1,!1));_.f("web_response_commands_chunk_processor")&&this.vP.push(new eF)};
_.n(tk_,fN);tk_.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.my.resolve();fN.prototype.processChunk.call(this,D)};var YZ=function(D,Y){D=D===void 0?{layer:0}:D;this.hasRun=!1;this.createScreenConfig=D;this.dpx=Y};
_.n(YZ,sH);YZ.prototype.validate=function(D){return!(this.hasRun||!D.endpoint)};
YZ.prototype.handle=function(D){var Y=_.n8(),R,Z,t=(Z=_.A((R=D.endpoint)==null?void 0:R.commandMetadata,_.GA))==null?void 0:Z.rootVe;this.dpx&&t?_.TJ(Y,t,this.dpx,this.createScreenConfig):EbE(Y,D.endpoint,this.createScreenConfig);this.hasRun=!0};var R8=function(D,Y){this.hasRun=!1;this.ipJ=D;this.previousVideoId=Y};
_.n(R8,sH);R8.prototype.validate=function(D){return _.f("kevlar_continue_playback_without_player_response")&&(D=_.A(D.endpoint,_.Od),(D==null?0:D.videoId)&&this.previousVideoId&&(D==null?void 0:D.videoId)===this.previousVideoId&&(D==null?0:D.continuePlayback))?!1:this.ipJ.oYU===0};
R8.prototype.handle=function(D){_.Bm.getInstance().triggerAction("yt-stop-old-player",D.data,!0)};var smU=function(D){D=D===void 0?{layer:0}:D;fN.call(this);this.vP.push(new R8(this));this.vP.push(new YZ(D));this.vP.push(new V0(D))};
_.n(smU,fN);var X5b=function(){this.hasRun=this.hasRun=!1};
_.n(X5b,sH);X5b.prototype.validate=function(D){return!this.hasRun&&!(!D.data.csn||!D.data.rootVe)};
X5b.prototype.handle=function(D){this.hasRun=!0;_.L2(D.data.csn,D.data.rootVe,3)};var ugY=function(){sH.apply(this,arguments)};
_.n(ugY,sH);ugY.prototype.validate=function(D){return!!D.data.preconnect};
ugY.prototype.handle=function(D){_.KX("bc");D=_.a(D.data.preconnect);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,(new Image).src=Y};var acz=function(D,Y,R){R=R===void 0?{layer:0}:R;fN.call(this);this.vP.push(new ck(this.my,D));this.vP.push(new YZ(R));this.vP.push(new V0(R))};
_.n(acz,fN);var MkY=function(D,Y,R,Z,t){R=R===void 0?{layer:0}:R;Z=Z===void 0?_.EH():Z;fN.call(this);var X=!!Y&&!!Y.clientParams&&!!Y.clientParams.miniplayer;X&&this.vP.push(new X5b);this.vP.push(new Dk(this.my,Y,Z));this.vP.push(new ugY);var M,W;this.vP.push(new ck(this.my,D,X,!((M=Y.clientParams)==null||!M.fromHistory),(W=Y.clientParams)==null?void 0:W.previousVideoId,Z,Y.tempData));var z;this.vP.push(new R8(this,(z=Y.clientParams)==null?void 0:z.previousVideoId));var I;(I=Y.clientParams)!=null&&I.fromHistory||
(R.layer||(R=Object.assign({},R,{layer:X?3:0})),this.vP.push(new YZ(R,t)),this.vP.push(new V0(R)));_.f("web_response_commands_chunk_processor")&&this.vP.push(new eF)};
_.n(MkY,fN);var Zk,znL;Zk={};
_.C8E=(Zk["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Zk["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Zk["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Zk["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Zk["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Zk["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Zk["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Zk);_.t$=new _.U1("yt-edu");_.Ws7=function(){this.JSC$12923_eduDisplayedThisLoad_={}};
znL=function(D){var Y=_.Ws7.getInstance();var R=_.ZH("kevlar_tooltip_impression_cap");Y=R&&parseInt(_.t$.get(D+"-impression")||0,10)>=R||_.t$.get(D+"-dismissed")?!1:(R=_.C8E[D])&&!Y.JSC$12923_eduDisplayedThisLoad_[R.setKey||D]&&(R.titleText&&_.fX(R.titleText)||R.bodyText&&_.fX(R.bodyText))?!0:!1;if(!Y)return null;Y=_.C8E[D];if(!Y)return null;R=Y.bodyText?_.fX(Y.bodyText):void 0;var Z=Y.titleText?_.fX(Y.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:Y.position,popup:{bubbleHintRenderer:{text:Z?
_.i0(Z):void 0,detailsText:R?_.i0(R):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.i0(_.fX("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:D}}]}}}}}}}},{eduImpressionAction:{key:D}}]};
_.tr(_.Ws7);var sXy=!1;for(var SJ4="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Th1=[],sn=6;sn>=1;sn--)Th1.push({columnCount:sn,query:sn==1?0:sn*2*107-4+32,className:"grid-"+sn+"-columns",width:sn*2*107+"px"});_.Ic1=function(D){this.actionRouter_=D=D===void 0?_.Bm.getInstance():D;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.jmb(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.jmb=function(D){var Y=D.miniGuideVisible_?72:0,R=D.documentWidth_-(D.guidePersistentAndVisible_?240:Y);return Th1.find(function(Z){return R>Z.query})};
_.tr(_.Ic1);var Fsb=function(){var D=this;this.JSC$12935_keyboardInUse=!1;document.addEventListener("keydown",function(){D.onKeydown()});
document.addEventListener("mousedown",function(){D.JSC$12935_keyboardInUse=!1})},G7D;
Fsb.prototype.isKeyBoardInUse=function(){return this.JSC$12935_keyboardInUse};
Fsb.prototype.onKeydown=function(){this.JSC$12935_keyboardInUse=!0};var VkL,a8;_.XJ=new _.U1("yt-mentions");_.uB=function(){};
VkL=function(D,Y){return a8(Y,"drag-to-reorder-edu-displayed")};
a8=function(D,Y,R,Z,t,X){R=R===void 0?"OPEN_POPUP_POSITION_TOP":R;if(Y){if(_.XJ.get(Y))return;_.XJ.set(Y,!0,Z)}if(t&&X!==void 0){Y=Number(_.XJ.get(t)||0);if(Y>=X)return;_.XJ.set(t,Y+1)}return[{openPopupAction:{popupType:"HINT",position:R,popup:{bubbleHintRenderer:{detailsText:D,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.tr(_.uB);var fcL,en1,Ac4;fcL=function(D,Y,R,Z){this.JSC$12945_taskManager_=D;this.onFulfilled_=typeof Y==="function"?Y:null;this.onRejected_=typeof R==="function"?R:null;this.JSC$12945_context_=Z};
en1=function(D,Y){D.onFulfilled_&&_.NP(D.JSC$12945_taskManager_,function(){D.onFulfilled_.call(D.JSC$12945_context_,Y)})};
Ac4=function(D,Y){D.onRejected_&&_.NP(D.JSC$12945_taskManager_,function(){D.onRejected_.call(D.JSC$12945_context_,Y)})};
_.Mx=function(D){this.JSC$12948_taskManager_=D;this.callbacks_=[]};
_.Mx.prototype.then=function(D,Y,R){this.callbacks_.push(new fcL(this.JSC$12948_taskManager_,D,Y,R));return this};
_.Mx.prototype.onSuccess=function(D){this.callbacks_.forEach(function(Y){en1(Y,D)})};
_.Mx.prototype.onFailure=function(D){this.callbacks_.forEach(function(Y){Ac4(Y,D)})};
_.Mx.prototype.cancel=function(){this.callbacks_.length=0};
Uc1(_.Mx);_.C6b=null;_.bq=new _.R6("ACTIVITY_TOKEN");var Cc=function(D,Y){this.serviceId=new k6L(D,Y)};
Cc.prototype.toString=function(){return this.serviceId.toString()};var nvE=function(){this.internalMap={}};
_.u=nvE.prototype;_.u.contains=function(D){return Object.prototype.hasOwnProperty.call(this.internalMap,D)};
_.u.get=function(D){if(this.contains(D))return this.internalMap[D]};
_.u.set=function(D,Y){this.internalMap[D]=Y};
_.u.getKeys=function(){return Object.keys(this.internalMap)};
_.u.remove=function(D){delete this.internalMap[D]};var Ws=function(){this.mappings=new nvE;this.errorCallbacks=new Set};
Ws.prototype.getModuleId=function(D){return D.serviceId.getModuleId()};
Ws.prototype.get=function(D){var Y=this.mappings.get(D.toString());return rcE(this,Y,D)};
Ws.prototype.getMultipleAsync=function(){var D=_.UN.apply(0,arguments),Y=this,R=D.map(function(z){return Y.getModuleId(z)}),Z=D.map(function(z){return Y.mappings.get(z.toString())}).filter(function(z){return z});
if(Z.length===D.length)return _.TA(Z.map(function(z,I){return rcE(Y,z,D[I])}));
var t=o0().loadMultiple(R);Z=_.w3(R.map(function(z){return t[z]}));
var X=document.hidden,M=-1,W=_.ZH("get_async_timeout_ms",-1);W>-1&&(M=setTimeout(function(){_.Jk(new _.AT("Module timeout.",R,X,document.hidden))},W));
return _.$B(Z.then(function(){return D.map(function(z){return rcE(Y,Y.mappings.get(z.toString()),z)})}).thenCatch(function(z){for(var I=_.a(Y.errorCallbacks),F=I.next();!F.done;F=I.next())F=F.value,F(z);
throw z;}),function(){clearTimeout(M)})};
Ws.prototype.registerService=function(D,Y){this.mappings.set(D.toString(),{type:"mapping",value:Y});return D};
var rcE=function(D,Y,R){switch(Y.type){case "mapping":return Y.value;case "factory":return Y=Y.value(),D.mappings.set(R.toString(),{type:"mapping",value:Y}),Y;default:return _.qU(Y)}};
Ws.prototype.onLoadError=function(D){var Y=this;this.errorCallbacks.add(D);return function(){Y.errorCallbacks.delete(D)}};
_.z5=new Ws;var jXl=/^[a-zA-Z0-9_\-]{11}$/;var Iul=_.fC(function(){var D,Y;return(Y=(D=window).matchMedia)==null?void 0:Y.call(D,"(prefers-reduced-motion: reduce)").matches});var w57=_.fC(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 D=_.mf("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");D||(D=_.I0("VIDEO"),_.ix("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
D));return!!(D&&D.canPlayType&&D.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var A79=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var S8;S8=function(){this.tokenJars={};if(this.cookiesEnabled=_.Vf()){var D=_.FW.get("CONSISTENCY",void 0);D&&$Sz(this,{encryptedTokenJarContents:D})}};
_.r7i=function(){S8.instance||(S8.instance=new S8);return S8.instance};
S8.prototype.handleResponse=function(D,Y){if(!Y)throw Error("Pf");var R,Z;Y=((R=Y.innerTubeRequest.context)==null?void 0:(Z=R.request)==null?void 0:Z.consistencyTokenJars)||[];var t;(D=(t=D.responseContext)==null?void 0:t.consistencyTokenJar)&&this.replace(Y,D)};
S8.prototype.replace=function(D,Y){D=_.a(D);for(var R=D.next();!R.done;R=D.next())delete this.tokenJars[R.value.encryptedTokenJarContents];$Sz(this,Y)};
var $Sz=function(D,Y){if(Y.encryptedTokenJarContents&&(D.tokenJars[Y.encryptedTokenJarContents]=Y,typeof Y.expirationSeconds==="string")){var R=Number(Y.expirationSeconds);setTimeout(function(){delete D.tokenJars[Y.encryptedTokenJarContents]},R*1E3);
D.cookiesEnabled&&_.GZ("CONSISTENCY",Y.encryptedTokenJarContents,R,void 0,!0)}};var vv1,T5;vv1=window.location.hostname.split(".").slice(-2).join(".");_.kI=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var D=_.JQ("LOCATION_PLAYABILITY_TOKEN");_.JQ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=ovL(this))&&(D=this.localStorage.get("yt-location-playability-token"));D&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0)};
_.kI.getInstance=function(){T5=_.mf("yt.clientLocationService.instance");T5||(T5=new _.kI,_.ix("yt.clientLocationService.instance",T5));return T5};
_.kI.prototype.setLocationOnInnerTubeContext=function(D){D.client||(D.client={});if(this.mostRecentPosition)D.client.locationInfo||(D.client.locationInfo={}),D.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),D.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),D.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),D.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)D.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.kI.prototype.handleResponse=function(D){var Y;D=(Y=D.responseContext)==null?void 0:Y.locationPlayabilityToken;D!==void 0&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0,_.JQ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=ovL(this))&&this.localStorage.set("yt-location-playability-token",D,15552E3):_.GZ("YT_CL",JSON.stringify({loctok:D}),15552E3,vv1,!0))};
var ovL=function(D){return D.localStorage===void 0?new _.U1("yt-client-location"):D.localStorage};
_.kI.prototype.clearLocationPlayabilityToken=function(D){D==="TVHTML5"?(this.localStorage=ovL(this))&&this.localStorage.remove("yt-location-playability-token"):_.aQ5("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.kI.prototype.getCurrentPositionFromGeolocation=function(){var D=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var Y=!1,R=1E4;_.JQ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Y=!0,R=15E3);return new Promise(function(Z,t){navigator.geolocation.getCurrentPosition(function(X){D.mostRecentPosition=X;Z(X)},function(X){t(X)},{enableHighAccuracy:Y,
maximumAge:0,timeout:R})})};
_.kI.prototype.createUnpluggedLocationInfo=function(D){var Y={};D=D.coords;if(D==null?0:D.latitude)Y.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)Y.longitudeE7=Math.floor(D.longitude*1E7);if(D==null?0:D.accuracy)Y.locationRadiusMeters=Math.round(D.accuracy);return Y};
_.kI.prototype.createLocationInfo=function(D){var Y={};D=D.coords;if(D==null?0:D.latitude)Y.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)Y.longitudeE7=Math.floor(D.longitude*1E7);return Y};var bk1=function(){};
_.u=bk1.prototype;
_.u.JSC$13015_getRequest=function(D,Y,R){Y=Y===void 0?{}:Y;R=R===void 0?xbV:R;var Z=Y;if(this.isNavigationCommand()){var t,X=(t=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:t.url;Z=_.wVo(D.clickTrackingParams,!0,!1,X,this.JSC$13015_getClientScreen(Z))}else Z=_.wVo(D.clickTrackingParams,!1,this.includeCsn);Z={context:Z};if(t=this.getExtension(D))return this.JSC$13015_buildRequest(Z,t,Y),t=this.getApiUrl(D),X=Object.assign({},{command:D},this.getRequestConfig(D,Y)),Z={input:t,requestShell:gZ(t),
innerTubeRequest:Z,config:X},Z.config.authStrategy?Z.config.authStrategy.identity=R:Z.config.authStrategy={identity:R},(D=this.JSC$13015_getRequestKey(D,Y))&&!Z.config.requestKey&&(Z.config.requestKey=D),Z;D=new _.AT("Error: Failed to create Request from Command.",D);_.Nb(D)};
_.u.getApiUrl=function(D){var Y=_.YI(this.getApiPaths(D)),R;(D=(R=_.A(D.commandMetadata,_.GA))==null?void 0:R.apiUrl)&&(Y=D);return OKM(iKb(Y))};
_.u.isNavigationCommand=function(){return!1};
_.u.JSC$13015_getClientScreen=function(){};
_.u.JSC$13015_getRequestKey=function(){};
_.u.getRequestConfig=function(){};
_.YF.Object.defineProperties(bk1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var j8=function(){};
_.n(j8,bk1);j8.prototype.JSC$13022_getStoreKey=function(){};
j8.prototype.JSC$13015_getRequestKey=function(D,Y){Y=Y===void 0?{}:Y;return this.JSC$13022_getStoreKey(D,Y)};var Nh_;_.I8=function(D,Y,R){var Z=R&&R>0?R:0;R=Z?Date.now()+Z*1E3:0;if((Z=Z?(0,_.ycE)():Nh_())&&window.JSON){typeof Y!=="string"&&(Y=JSON.stringify(Y,void 0));try{Z.set(D,Y,R)}catch(t){Z.remove(D)}}};
_.FJ=function(D){var Y=Nh_(),R=(0,_.ycE)();if(!Y&&!R||!window.JSON)return null;try{var Z=Y.get(D)}catch(t){}if(typeof Z!=="string")try{Z=R.get(D)}catch(t){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(t){}return Z};
_.G5=function(D){try{var Y=Nh_(),R=(0,_.ycE)();Y&&Y.remove(D);R&&R.remove(D)}catch(Z){}};
_.ycE=_.fC(function(){try{var D=D7U()}catch(Y){return null}return D?new _.C2(D):null});
Nh_=_.fC(function(){var D=new IQU;return D.isAvailable()?new _.C2(D):null});var Xc=new _.R6("ENTITY_STATE_TOKEN"),VA=new _.R6("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var lcz=XMLHttpRequest.prototype.fetch,JcE=lcz&&lcz.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!gP?!0:!1;var fc=function(D){this.JSC$13027_storeWithEntities=D};
_.n(fc,j8);_.u=fc.prototype;_.u.getApiPaths=function(){return dDE};
_.u.getExtension=function(D){return _.A(D,_.Od)||_.A(D,_.$I)||_.A(D,dKE)};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$13022_getStoreKey=function(D){if((_.f("kevlar_cache_on_ttl_player")||_.f("mweb_enable_shorts_innertube_player_prefetch")||_.f("mweb_use_new_history_manager")||_.f("web_shorts_prefetch_service_enabled"))&&(D=this.getExtension(D))&&D.videoId){var Y={videoId:D.videoId};D.playlistId&&(Y.playlistId=D.playlistId);D.playerParams&&(Y.params=D.playerParams);return _.dZ("player",Y)}};
_.u.JSC$13015_getClientScreen=function(D){var Y;return((Y=D.contentPlaybackContext)==null?void 0:Y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.u.JSC$13015_buildRequest=function(D,Y,R){if(_.f("enable_interstitial_entity_check")){var Z=this.JSC$13027_storeWithEntities;if(Y.videoId)for(var t=_.a(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),X=t.next();!X.done;X=t.next()){X=X.value;var M;var W=void 0,z=void 0,I=Y.videoId,F=X;(M=Z)?(I=_.TL(I+F,"interstitialInteractionStateEntity"),M=(W=(z=_.jC(M.getState().entities,"interstitialInteractionStateEntity",I))==null?void 0:z.primaryButtonClicked)!=null?W:!1):M=!1;if(M)switch(X){case "CONTENT_CHECK_REQUIRED":Y.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":Y.racyCheckOk=!0}}}Y.videoId&&(D.videoId=Y.videoId);Y.playlistId&&(D.playlistId=Y.playlistId);Y.index!==void 0&&(D.playlistIndex=Y.index+1);Y.playerParams&&(D.params=Y.playerParams);"startTimeSeconds"in Y&&Y.startTimeSeconds&&(_.f("enable_player_request_builder_start_time_floor")?D.startTimeSecs=Math.floor(Y.startTimeSeconds):D.startTimeSecs=Y.startTimeSeconds);R.contentPlaybackContext&&(D.playbackContext={contentPlaybackContext:R.contentPlaybackContext});R.prefetchPlaybackContext&&
(D.playbackContext=Object.assign({},D.playbackContext,{prefetchPlaybackContext:R.prefetchPlaybackContext}),D.context.request||(D.context.request={}),D.context.request.isPrefetch=!0);D.playbackContext||(D.playbackContext={});Z=w57();D.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Z,supportXhr:JcE};R.overrideMutedAtStart&&(D.overrideMutedAtStart=R.overrideMutedAtStart);D.racyCheckOk=!!Y.racyCheckOk;D.contentCheckOk=!!Y.contentCheckOk;!_.f("captions_prefs_killswitch")&&(R=(R=_.FJ("yt-player-caption-language-preferences"))?
R:[],R==null?0:R.length)&&(D.captionParams={viewerSelectedCaptionLangs:R})};
_.u.getRequestConfig=function(D){D=this.JSC$13022_getStoreKey(D);var Y;D&&(Y={storeStrategy:{storeKey:D}});_.f("web_log_player_watch_next_ticks")&&(Y=Y||{},Y.requestTick="ps_s",Y.responseTick="ps_r");return Y};
fc[YS]=[Xc];var e8=function(){};
_.n(e8,j8);_.u=e8.prototype;_.u.getApiPaths=function(){return vb1};
_.u.getExtension=function(D){return _.A(D,_.Od)};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$13022_getStoreKey=function(D){if((D=this.getExtension(D))&&D.videoId){var Y={videoId:D.videoId};D.playlistId&&(Y.playlistId=D.playlistId);D.index&&(Y.index=D.index);D.params&&(Y.params=D.params);return _.dZ("next",Y)}};
_.u.JSC$13015_getClientScreen=function(D){var Y;return((Y=D.contentPlaybackContext)==null?void 0:Y.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.u.JSC$13015_buildRequest=function(D,Y,R){Y.videoId&&(D.videoId=Y.videoId);Y.playlistId&&(D.playlistId=Y.playlistId);Y.params&&(D.params=Y.params);Y.index!==void 0&&(D.playlistIndex=Y.index);D.racyCheckOk=!(!R.racyCheckOk&&!Y.racyCheckOk);D.contentCheckOk=!!Y.contentCheckOk;R.contentPlaybackContext&&(D.autonavState=R.contentPlaybackContext.autonavState,D.playbackContext={vis:R.contentPlaybackContext.vis,lactMilliseconds:R.contentPlaybackContext.lactMilliseconds});R.prefetchPlaybackContext&&(D.context.request||
(D.context.request={}),D.context.request.isPrefetch=!0);_.f("captions_hats_killswitch")||(Y=_.nX().getFlag(65),Y=Y!=null?!Y:!1,R=!!_.FJ("yt-player-sticky-caption"),D.captionsRequested=Y&&R)};
_.u.getRequestConfig=function(D){D=this.JSC$13022_getStoreKey(D);var Y;D&&(Y={storeStrategy:{storeKey:D}});_.f("web_log_player_watch_next_ticks")&&(Y=Y||{},Y.requestTick="wn_s",Y.responseTick="wn_r");return Y};
var A$=function(){};
_.n(A$,j8);A$.prototype.getApiPaths=function(){return vb1};
A$.prototype.getExtension=function(D){return _.A(D,_.PN)};
A$.prototype.JSC$13015_buildRequest=function(D,Y){Y.token&&(D.continuation=Y.token)};var nc=function(D,Y){this.playerRequestBuilder=D;this.watchNextRequestBuilder=Y};
_.n(nc,j8);nc.prototype.getApiPaths=function(){return LbL};
nc.prototype.getExtension=function(D){return _.A(D,_.Od)};
nc.prototype.isNavigationCommand=function(){return!0};
nc.prototype.JSC$13015_buildRequest=function(D,Y,R){D.playerRequest={};this.playerRequestBuilder.JSC$13015_buildRequest(D.playerRequest,Y,R);_.f("web_streaming_watch")&&(D.watchNextRequest={},this.watchNextRequestBuilder.JSC$13015_buildRequest(D.watchNextRequest,Y,R))};
nc[YS]=[fc,e8];var k7z;_.rt=new _.R6("SHORTS_CONTROLLER_TOKEN");k7z=new _.R6("SHORTS_STATE_STORE_TOKEN");var wt=function(D,Y){var R=_.UN.apply(2,arguments);D=D===void 0?0:D;_.AT.call(this,Y,R);this.errorType=D;Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(wt,_.AT);var USb,KsE,Lsb,JBM,x5,OzS,xSD,Hkz,gvL,Bhb,QmY;USb=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(D){return D+"="}).join("|"));
KsE=RegExp(".*\\?.*playnext=1.*");_.$Z=function(D,Y,R,Z){this.watchEndpointMap=D;this.reelWatchEndpointMap=Y;this.innerTubeTransportService=R;this.fetchPbj=Z};
Lsb=function(D,Y,R){var Z=_.DH().resolve(_.cD(hnD));_.$Z.instance=new _.$Z(D,Y,R,Z)};
_.mSU=function(D,Y){var R=_.ZH("web_pbj_log_warning_rate",0);R=R>0&&Math.random()<R;var Z;if((Z=_.A(Y.commandMetadata,_.GA))==null||!Z.rootVe)return R&&_.Jk(Error("Sf")),!1;var t;Z=(t=_.A(Y.commandMetadata,_.GA))==null?void 0:t.url;if(!Z)return R&&_.Jk(Error("Tf")),!1;if(KsE.test(Z))return!0;if(USb.test(Z))return R&&_.Jk(Error("Uf`"+Z)),!1;if(_.A(Y,_.Od)){if(!(D.watchEndpointMap.watchNext&&D.watchEndpointMap.player||_.f("kevlar_fetch_initial_data_op_watch_client")))return R&&_.Jk(Error("Lf")),!1;
D=_.ZH("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;_.A(Y,_.Od)?SXy(Y)?Y=!0:(D&&_.Jk(Error("Mf")),Y=!1):(D&&_.Jk(Error("Lf")),Y=!1);return Y}if(_.A(Y,_.$I))return TGi(Y);if(_.A(Y,_.Ly))return!0;D=_.g1(D.innerTubeTransportService,Y);!D&&R&&_.Nb(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(Y)});return D};
JBM=function(D,Y,R,Z,t,X){Y={url:Y};if(R==null?0:R.itct)Y.parentTrackingParams=R.itct;var M=_.YI(sXL);return _.Hk(D.innerTubeTransportService,Y,M).then(function(W){(W=W.endpoint)||(W=_.nN);(R==null?0:R.itct)&&W&&!W.trackingParams&&(W.trackingParams=R.itct);var z=r$(W);return x5(D,W,R,Z,z,t,X)})};
x5=function(D,Y,R,Z,t,X,M,W){W=W===void 0?{}:W;if(D.fetchPbj&&!_.mSU(D,Y)&&!_.f("force_one_platform")){W=D.fetchPbj(Y);var z=_.TA(W.then(function(Q){if(!Q)throw Error("Wf");M(z)||X(Y,Q);return Q}));
return z}var I,F,G={rootVe:(I=_.A(Y.commandMetadata,_.GA))==null?void 0:I.rootVe,url:(F=_.A(Y.commandMetadata,_.GA))==null?void 0:F.url,endpoint:Y,page:t};if(_.A(Y,_.Od)){var V,e={contentPlaybackContext:_.bX(R,(V=_.A(Y.commandMetadata,_.GA))==null?void 0:V.url,Z)},r=_.iq();_.f("web_streaming_watch")&&window.TextDecoderStream?(W=qJE(D.innerTubeTransportService,Y,e,function(Q){!G.response&&Q.content&&(G.response=Q.content);!G.playerResponse&&Q.player&&(G.playerResponse=Q.player);X(Y,G)}),I=cHU(Y),I.length&&
(G.preconnect=I,X(Y,G)),Hkz(W,r,G).catch(function(Q){Q instanceof wt&&Q.errorType===2&&xSD(D,Y,e,G,X,M,r)})):xSD(D,Y,e,G,X,M,r);
return r.promise}if(_.A(Y,_.$I)){var l;if(((l=_.A(Y,_.$I))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var U=_.iq();_.P8L(_.DH().resolve(_.rt),Y).then(function(Q){QmY(D,R,Z,t,X,U,Q)});
return U.promise}W=_.TA();var K;I={contentPlaybackContext:_.bX(R,(K=_.A(Y.commandMetadata,_.GA))==null?void 0:K.url,Z)};(K=D.reelWatchEndpointMap.player)&&(K=K().JSC$13015_getRequest(Y,I))&&(W=_.Hk(D.innerTubeTransportService,K.innerTubeRequest,K.input,Y.clickTrackingParams,K.config));K=_.TA();(F=D.reelWatchEndpointMap.reelItemWatch)&&(F=F().JSC$13015_getRequest(Y))&&(K=_.Hk(D.innerTubeTransportService,F.innerTubeRequest,F.input,Y.clickTrackingParams,F.config));F=_.TA();_.f("web_enable_delay_shorts_sequence_call_new")||
(V=D.reelWatchEndpointMap.reelWatchSequence)&&_.A(Y,_.$I).sequenceParams&&(I=V().JSC$13015_getRequest(Y,I))&&(F=_.Hk(D.innerTubeTransportService,I.innerTubeRequest,I.input,Y.clickTrackingParams,I.config));I=_.TA(G);V=_.iq();Bhb(Y,I,W,K,F,X,M,V);return V.promise}var H;if(_.A(Y,Mml)&&((H=_.A(Y.commandMetadata,_.GA))==null?0:H.url))return W=nb9(_.qC(JZ().location.href),_.qC(_.A(Y.commandMetadata,_.GA).url)).toString(),JBM(D,W,R,Z,X,function(){return!1});
if(_.A(Y,_.Ly))return X(Y,G),_.TA(G);if(_.g1(D.innerTubeTransportService,Y)){W=Object.assign({},{tempData:R,disableCache:R.disableCache},W);var c=_.d1(D.innerTubeTransportService,Y,W).then(function(Q){G.response=Q;M(c)||X(Y,G);return G});
return c}return _.TA(G)};
_.Evz=function(D,Y,R,Z){if(_.A(Y,_.Od)||_.A(Y,_.$I)&&(_.f("mweb_enable_shorts_innertube_player_prefetch")||_.f("kevlar_enable_shorts_prefetch_in_sequence"))||_.A(Y,dKE)&&_.f("web_enable_prefetching_videos_on_home")){var t,X={contentPlaybackContext:_.bX(R,(t=_.A(Y.commandMetadata,_.GA))==null?void 0:t.url,Z),prefetchPlaybackContext:GxM(R)},M,W,z;if(((M=_.A(Y,_.Od))==null?void 0:(W=M.watchEndpointSupportedPrefetchConfig)==null?void 0:(z=W.prefetchHintConfig)==null?void 0:z.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(R=
D.watchEndpointMap.watchNext)if(X=R().JSC$13015_getRequest(Y,X))return Promise.resolve(_.Hk(D.innerTubeTransportService,X.innerTubeRequest,X.input,void 0,X.config).then(function(G){return G}))}else if(R=D.watchEndpointMap.player)if(X=R().JSC$13015_getRequest(Y,X))return Promise.resolve(_.Hk(D.innerTubeTransportService,X.innerTubeRequest,X.input,void 0,X.config).then(function(G){return G}))}else if(_.g1(D.innerTubeTransportService,Y)){var I={tempData:R},F=p5L(D.innerTubeTransportService,Y);
return F?new Promise(function(G,V){var e,r;return _.C(function(l){if(l.nextAddress==1)return l.yield(F,2);if(l.nextAddress!=4)return e=l.yieldResult,e.JSC$13022_getStoreKey(Y,I)?l.yield(_.d1(D.innerTubeTransportService,Y,I),4):(V(new _.AT("Prefetching request builder with no store key.",Y)),l.jumpTo(0));r=l.yieldResult;G(r);_.V9(l)})}):Promise.reject(new _.AT("Prefetching unregistered request builder.",Y))}return Promise.reject(new _.AT("No request builder available to prefetch endpoint.",Y))};
OzS=function(D,Y){var R,Z,t;if(_.A(Y,_.Od)){var X=D.watchEndpointMap.watchNext;X&&(R=X());(D=D.watchEndpointMap.player)&&(Z=D())}else if(_.A(Y,_.$I))(X=D.reelWatchEndpointMap.reelItemWatch)&&(R=X()),(X=D.reelWatchEndpointMap.player)&&(Z=X()),(D=D.reelWatchEndpointMap.reelWatchSequence)&&(t=D());else{a:{D=W2y(Y,D.innerTubeTransportService.endpointMap);if(D!==void 0)if(typeof D.then==="function")_.Nb(new _.AT("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",Y));else break a;
D=void 0}D&&(R=D)}var M,W,z;return{content:(M=R)==null?void 0:M.JSC$13022_getStoreKey(Y),player:(W=Z)==null?void 0:W.JSC$13022_getStoreKey(Y),reelSequence:(z=t)==null?void 0:z.JSC$13022_getStoreKey(Y)}};
xSD=function(D,Y,R,Z,t,X,M){var W=_.TA(),z=D.watchEndpointMap.player;_.f("web_streaming_player")&&(z=oQ(nc));z&&(z=z().JSC$13015_getRequest(Y,R))&&(W=_.Hk(D.innerTubeTransportService,z.innerTubeRequest,z.input,Y.clickTrackingParams,z.config));z=_.TA();var I=D.watchEndpointMap.watchNext;I&&(R=I().JSC$13015_getRequest(Y,R))&&(z=_.Hk(D.innerTubeTransportService,R.innerTubeRequest,R.input,Y.clickTrackingParams,R.config));D=_.TA(Z);gvL(Y,D,W,z,t,X,M)};
Hkz=function(D,Y,R){return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D,2);Y.resolve(R);_.V9(Z)})};
gvL=function(D,Y,R,Z,t,X,M){var W,z,I,F,G;_.C(function(V){switch(V.nextAddress){case 1:return V.yield(Y,2);case 2:W=V.yieldResult;if(X(M.promise))return M.resolve(W),V.return();t(D,W);z=cHU(D);if(!z.length){V.jumpTo(3);break}return V.yield(Y,4);case 4:W.preconnect=z,t(D,W);case 3:return _.SX(V,5),V.yield(R,7);case 7:I=V.yieldResult;_.xw(V,6);break;case 5:return F=_.Gl(V),M.reject(F),V.return();case 6:if(I===void 0)return W.reload=!0,t(D,W),M.resolve(W),V.return();if(X(M.promise))return M.resolve(W),
V.return();W.playerResponse=I;t(D,W);_.SX(V,8);return V.yield(Z,10);case 10:G=V.yieldResult;_.xw(V,9);break;case 8:_.Gl(V);case 9:if(G===void 0)return W.response={responseContext:{}},M.resolve(W),V.return();if(X(M.promise))return M.resolve(W),V.return();W.response=G;t(D,W);M.resolve(W);_.V9(V)}})};
Bhb=function(D,Y,R,Z,t,X,M,W){var z,I,F,G,V,e;_.C(function(r){switch(r.nextAddress){case 1:return r.yield(Y,2);case 2:z=r.yieldResult;if(M(W.promise))return W.resolve(z),r.return();X(D,z);I=cHU(D);if(!I.length){r.jumpTo(3);break}return r.yield(Y,4);case 4:z.preconnect=I,X(D,z);case 3:return _.SX(r,5),r.yield(R,7);case 7:F=r.yieldResult;_.xw(r,6);break;case 5:return G=_.Gl(r),W.reject(G),r.return();case 6:if(F===void 0)return z.reload=!0,X(D,z),W.resolve(z),r.return();if(M(W.promise))return W.resolve(z),
r.return();z.playerResponse=F;X(D,z);_.SX(r,8);return r.yield(Z,10);case 10:V=r.yieldResult;_.xw(r,9);break;case 8:_.Gl(r);case 9:if(V===void 0)return z.response={responseContext:{}},W.resolve(z),r.return();if(M(W.promise))return W.resolve(z),r.return();z.response=V;X(D,z);_.SX(r,11);return r.yield(t,13);case 13:e=r.yieldResult;_.xw(r,12);break;case 11:_.Gl(r);case 12:if(M(W.promise))return W.resolve(z),r.return();e&&(z.reelWatchSequenceResponse=e);X(D,z);W.resolve(z);_.V9(r)}})};
QmY=function(D,Y,R,Z,t,X,M){var W,z,I,F,G,V;_.C(function(e){if((W=M)==null||!W.replacementEndpoint)return X.reject(),e.return();z=M.replacementEndpoint;(I=_.A(z,_.$I))?(M.sequenceContinuation&&(I.sequenceParams=M.sequenceContinuation),F=_.DH().resolve(_.rt),G=I.sequenceParams,dSL(F,z)&&delete I.sequenceParams,V=x5(D,z,Y,R,Z,t,function(){return!1}),V.then(function(r){return _.C(function(l){if(l.nextAddress==1)return ik4(F,{reelWatchEndpoint:{sequenceParams:G}},r),l.yield(0,2);
X.resolve(r);_.V9(l)})})):X.reject();
_.V9(e)})};_.OkD=function(D){if(D.validatedFragments_.length==0)return null;if(!D.mergedPrefetchedData_){for(var Y=[],R=_.a(D.validatedFragments_),Z=R.next();!Z.done;Z=R.next()){Z=_.a(D.fragmentConfiguration_[Z.value].graftedKeys);for(var t=Z.next();!t.done;t=Z.next())(t=D.prefetchedData_[t.value].trackingParams)&&Y.push(t)}D.mergedPrefetchedData_={};Object.assign(D.mergedPrefetchedData_,D.prefetchedData_,{clientSideGrafts:Y})}return D.mergedPrefetchedData_};var cc4;_.vs=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
cc4=function(D,Y,R){if(_.WTi(Y))return D.prefetchCache_.get(_.z8n(Y,R))};_.o8=new _.R6("NAVIGATION_TOKEN");var DN_=function(D){var Y=this;var R=R===void 0?ob9():R;var Z=Z===void 0?_.DH().resolve(_.o8):Z;this.onePickCommand=D;this.JSC$13125_playlistNetworkManager=R;this.navigationManager=Z;this.videoPickerBuilder=_.$fS("yt-addtoplaylist");_.YKV(EQY(gQL(pgz(this.videoPickerBuilder.setTitle(D.modalTitle).setSize(1E3).addView(ibD()).addView(dJD())).addView("youtube"),D.selectButtonLabel)),function(t){Y.handleAction(t)})};
DN_.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
DN_.prototype.handleAction=function(D){var Y=this;if(D&&this.onePickCommand.listId&&D.action==="picked"&&D.docs){var R=[];D.docs.forEach(function(Z){R.push({addedVideoId:Z.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13125_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,R).then(function(){_.f("playlist_add_video_hard_reload_killswitch")?Y.navigationManager.reload():YQV(Y.navigationManager)})}};var Ra7=function(){if(this.constructor===Ra7)throw new TypeError("Xf");};
_.u=Ra7.prototype;_.u.dispose=function(){};
_.u.disconnect=function(){};
_.u.reconnect=function(){};
_.u.observe=function(D,Y,R){return{element:D,option:R}};
_.u.unobserveByKey=function(){};var bV$=function(D,Y){Y=Y===void 0?0:Y;Ra7.call(this);this.viewroot=D;this.defaultPrescanHeight=Y;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),D?{root:D,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.n(bV$,Ra7);_.u=bV$.prototype;_.u.dispose=function(){this.disconnect();this.handlers.clear()};
_.u.disconnect=function(D){this.isConnected=!1;this.pauseObservingUntilReconnect=D===void 0?!1:D;this.observer.disconnect();D=_.a(this.prescanObservers.values());for(var Y=D.next();!Y.done;Y=D.next())Y.value.disconnect()};
_.u.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var D=_.a(this.handlers),Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;var Z=R.next().value;R=!1;Z=_.a(Z.keys());for(var t=Z.next();!t.done;t=Z.next())if((t=t.value)&&t.state==="prescan"){R=!0;break}R&&ZuL(this,Y).observe(Y);this.observer.observe(Y)}}};
_.u.handleObserveEvent=function(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=this.handlers.get(Y.target);if(R){var Z=Y.isIntersecting;R=_.a(R);for(var t=R.next();!t.done;t=R.next()){var X=_.a(t.value);t=X.next().value;X=X.next().value;t&&(t.state==="visible"&&Z||t.state==="hidden"&&!Z)&&(X(Y.target,t.state),t.calledOnce&&this.unobserveByKey({element:Y.target,option:t}))}}}};
_.u.handlePrescanEvent=function(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=this.handlers.get(Y.target);if(R&&Y.isIntersecting){R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;Z&&Z.state==="prescan"&&(t(Y.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:Y.target,option:Z}))}}}};
_.u.observe=function(D,Y,R){var Z=(Z=this.handlers.get(D))&&Z.has(R)?{element:D,option:R}:void 0;if(Z)return Z;Z={element:D,option:R};this.handlers.has(D)||this.handlers.set(D,new Map);var t=this.handlers.get(D);t&&!t.has(R)&&t.set(R,Y);this.pauseObservingUntilReconnect||(R.state==="prescan"&&ZuL(this,D).observe(D),this.observer.observe(D));return Z};
_.u.unobserveByKey=function(D){var Y=this.handlers.get(D.element);if(Y&&Y.has(D.option)){Y.delete(D.option);if(D&&D.option.state==="prescan")for(var R=_.a(this.prescanObservers.values()),Z=R.next();!Z.done;Z=R.next())Z.value.unobserve(D.element);Y.size===0&&(this.handlers.delete(D.element),this.observer.unobserve(D.element))}};
var ZuL=function(D,Y){var R=D.defaultPrescanHeight;Y.hasAttribute("prescan-height")&&(Y=Number(Y.getAttribute("prescan-height")),isNaN(Y)||(R=Y));if(D.prescanObservers.has(R))return D.prescanObservers.get(R);Y="-0.1px -0.1px "+R+"px -0.1px";Y=new IntersectionObserver(D.handlePrescanEvent.bind(D),D.viewroot?{root:D.viewroot,rootMargin:Y}:{rootMargin:Y});D.prescanObservers.set(R,Y);return Y};var t4Y=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],syz=function(){var D,Y=this;this.JSC$13142_actionRouter=D=D===void 0?_.Bm.getInstance():D;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return Y.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return Y.visibilityObservedElementHandlerKeys}}},XdE,anU,Wrb;
syz.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.f("kevlar_use_vimio_behavior")&&_.JQ("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=y7S())};
syz.prototype.dispose=function(){this.visibilityMonitor&&_.fg(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
syz.prototype.handleVisibilityRefreshed=function(){for(var D=_.a(this.targetMap.entries()),Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;_.u67(this,Y,R)}};
_.CvU=function(D,Y,R){anU(D,R);var Z=_.M47(D,Y);Z.element=R;D.targetedElements.set(R,Y);_.u67(D,Y,Z)};
anU=function(D,Y){var R=D.targetedElements.get(Y);if(R){var Z=D.targetMap.get(R);Z&&(delete Z.element,D.targetMap.set(R,Z));D.targetedElements.delete(Y);D.visibilityObserver&&D.visibilityObservedElementHandlerKeys&&(R=D.visibilityObservedElementHandlerKeys.get(Y))&&(D.visibilityObserver.unobserveByKey(R),D.visibilityObservedElementHandlerKeys.delete(Y))}};
_.u67=function(D,Y,R){var Z=R.action,t=R.element;t&&Z&&(t4Y.includes(Y)||_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||D.visibilityMonitor&&D.visibilityMonitor.isNodeVisible(t)?Wrb(D,Y,R):D.visibilityObserver&&(D.visibilityObservedElementHandlerKeys||(D.visibilityObservedElementHandlerKeys=new WeakMap),Z=D.visibilityObserver.observe(t,function(){Wrb(D,Y,R);D.visibilityObservedElementHandlerKeys.delete(t)},{calledOnce:!0,
state:"visible"}),D.visibilityObservedElementHandlerKeys.set(t,Z)))};
Wrb=function(D,Y,R){var Z=R.action;(R=R.element)&&Z&&(_.hH(D.JSC$13142_actionRouter,[Z],R),D.targetMap.delete(Y),D.targetedElements.delete(R),D.triggeredTargets.add(Y))};
_.M47=function(D,Y){var R=D.targetMap.get(Y);R||(R={},D.targetMap.set(Y,R));return R};
_.bB=function(){XdE||(XdE=new syz);return XdE};var za1=document.createElement("div");za1.style.touchAction="pan-down";var NGy=za1.style.touchAction==="pan-down";var SQY,Tl1;SQY=function(){this.hammerFn=EPz();this.JSC$13150_screenManager=_.n8();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.TP(83615);_.Ii(this.JSC$13150_screenManager,this.ve);luU()};
_.yA=function(){Tl1||(Tl1=new SQY);return Tl1};
SQY.prototype.registerTouchEvents=function(D,Y,R){var Z=_.UN.apply(3,arguments),t=this.hammerFn(D,{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}]]});R&&t.set({touchAction:R});this.nodeManagerMapping.set(D,t);var X=
J7$(Y);Z=_.a(Z);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;if(M.includes("swipe")||M.includes("pinch")||M.includes("pan"))M.includes("swipe")?t.get("swipe").set({enable:!0,direction:X,velocity:.2}):M.includes("pinch")?t.get("pinch").set({enable:!0}):M.includes("pan")&&(t.get("pan").set({enable:!0,direction:X}),t.get("swipe").set({enable:!0,direction:X,velocity:.2}),t.get("swipe").recognizeWith("pan"));jyE(this,D,t,M)}};
var jyE=function(D,Y,R,Z){R.on(Z,function(t){if(Z.includes("pinch"))D.lastPinchTime=Date.now();else if(Z.includes("swipe")&&Date.now()-D.lastPinchTime<400)return;t.pointerType!=="mouse"&&(t=Z==="doubletap"?{coordinates:t.center}:Z.includes("pan")?t:Z.includes("swipe")?{target:t.target}:{},Y.dispatchEvent(new CustomEvent(Z,{bubbles:!0,composed:!0,detail:t})))})};
SQY.prototype.unregisterTouchEvents=function(D){var Y=_.UN.apply(1,arguments),R=this.nodeManagerMapping.get(D);if(R){Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next())R.off(Z.value);this.nodeManagerMapping.delete(D);D.style.touchAction="unset"}};var Inz=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var kxi=null;var FrY=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},c7r=function(){FrY.instance||(FrY.instance=new FrY);
return FrY.instance},DLU=function(D){var Y=D.networkEvents;
D.networkEvents=[];return _.f("enable_network_monitoring")?Y:[]};var G9L;G9L={};_.V4U=cr("yt-serviceworker-metadata",{objectStores:(G9L.auth={addedAtVersion:1},G9L["resource-manifest-assets"]={addedAtVersion:2},G9L),shared:!0,upgrade:function(D,Y){Y(1)&&hP(D,"resource-manifest-assets");Y(2)&&hP(D,"auth")},
version:2});var qX5=self.location.origin+"/";HV9([/\.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\//]);HV9([/purge_shell=1/]);var fnV=void 0;fnV=fnV===void 0?[]:fnV;for(var eaD=[],AaE=_.a(Ub7),nmb=AaE.next();!nmb.done;nmb=AaE.next())eaD.push({key:nmb.value});for(var raD=_.a(fnV),wd_=raD.next();!wd_.done;wd_=raD.next())eaD.push(wd_.value);var $NV,Ln=_.ZU==null?void 0:($NV=_.ZU.performance)==null?void 0:$NV.memory,QX5=!1,YB$={},Ebn={},mV={},q3=navigator;var Nx=function(D){this.JSC$13194_expiringStorage=new rP(D)};
Nx.prototype.set=function(D,Y,R){R=R!==void 0?Date.now()+R:void 0;this.JSC$13194_expiringStorage.set(D,Y,R)};
Nx.prototype.get=function(D){return this.JSC$13194_expiringStorage.get(D)};
Nx.prototype.remove=function(D){this.JSC$13194_expiringStorage.remove(D)};var M6b=_.gY(["https://www.youtube.com/",""]),CYS=_.gY(["https://studio.youtube.com/",""]),j2o="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",zdb=null,fIM;var vm1=_.gY(["https://www.youtube.com/iframe_api"]),lB=function(){this.playerResolver_=_.iq();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Vy;this.playbackDurationSeconds_=0},omY=function(D){var Y=function(){return window.YT&&typeof window.YT.ready==="function"};
if(Y())return _.TA(window.YT);var R=_.iq(),Z=_.I0("SCRIPT");Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(Z.onload=_.Vy,Z.onreadystatechange=_.Vy,Z.onerror=_.Vy,Y()?R.resolve(window.YT):R.reject(new _.AT("Failed to load the iframe player library","script.onload",Z.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Z.onerror=function(t){Z.onload=_.Vy;Z.onreadystatechange=_.Vy;Z.onerror=_.Vy;R.reject(new _.AT("Failed to load the iframe player library","script.onerror",t&&t.target&&t.target.src))};
_.dg(Z,_.tZ(vm1));D.insertBefore(Z,D.firstChild);return R.promise},buV=function(D,Y,R){var Z,t;
_.C(function(X){switch(X.nextAddress){case 1:return D.playbackEndedCallback_=R,_.SX(X,2),X.yield(omY(Y.parentElement||null),4);case 4:Z=X.yieldResult;_.xw(X,3);break;case 2:return t=_.Gl(X),t instanceof _.AT&&t.args&&t.args[0]=="script.onerror"?_.Jk(t):_.Nb(t),X.return();case 3:Z.ready(function(){return new Z.Player(Y,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:D.onPlayerReady_.bind(D),onStateChange:D.onPlayerStateChange_.bind(D),
onCueRangeExit:D.onCueRangeExit_.bind(D)}})}),_.V9(X)}})};
_.u=lB.prototype;_.u.getPlayerPromise=function(){return this.playerPromise_};
_.u.onPlayerReady_=function(D){this.playerResolver_.resolve(D.target)};
_.u.onPlayerStateChange_=function(D){if(D.data==YT.PlayerState.PLAYING){D=D.target;var Y=D.getCurrentTime();D.addCueRange("playback",Y,Y+this.playbackDurationSeconds_)}};
_.u.onCueRangeExit_=function(D){D.data=="playback"&&(D.target.stopVideo(),this.playbackEndedCallback_())};
_.u.stopVideo=function(){this.playerPromise_.then(function(D){D.stopVideo()})};
var yaV=function(D){D.playerVars_&&D.playerPromise_.then(function(Y){typeof Y.cueVideoByPlayerVars!="function"?_.Jk(new _.AT("vmh: player API not ready","cueVideoByPlayerVars",typeof Y.cueVideoByPlayerVars)):Y.cueVideoByPlayerVars(D.playerVars_)})};
lB.prototype.playVideo=function(){var D=this;this.playerVars_&&this.playerPromise_.then(function(Y){typeof Y.loadVideoByPlayerVars!="function"?(Y=new _.AT("vmh: player API not ready","loadVideoByPlayerVars",typeof Y.loadVideoByPlayerVars),_.Nb(Y)):Y.loadVideoByPlayerVars(D.playerVars_)})};
var Nlb=function(D,Y,R,Z,t){Y&&(R===void 0&&(R=0),Z===void 0&&(Z=0),D.playbackDurationSeconds_=Z/1E3,D.playerVars_={adformat:"17_8",videoId:Y,suggestedQuality:"hd720",startSeconds:R/1E3,player_params:t})};
lB.prototype.mute=function(){this.playerPromise_.then(function(D){D.mute()})};
lB.prototype.unMute=function(){this.playerPromise_.then(function(D){D.unMute()})};var lnL=function(D,Y){var R=xF();D||(D="unknown");Y||(Y="unknown");D="MAIN_APP_WEB_PAGE_TYPE_"+D.toUpperCase();D in Q67||(D="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");Y="MAIN_APP_WEB_REQUEST_TYPE_"+Y.toUpperCase();Y in BkL||(Y="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Wf(R,{mainAppWeb:{pageType:D,requestType:Y,isShellLoad:_.ks("IS_SHELL_LOAD",!1)}})},Ja1={start:function(){_.Wf(Kv9(),{mainAppWeb:_.E$()})},
success:function(){_.z3(Kv9(),"SUCCESS")},
failure:function(){_.z3(Kv9(),"FAILURE")},
cancelled:function(){_.z3(Kv9(),"CANCELLED")}};var k91,UNb,okn;k91=_.gY(["/sw.js"]);UNb=_.gY(["/sw.js?0"]);_.KrE=_.tZ(k91);okn=_.tZ(UNb);var haL=function(){var D=Error.apply(this,arguments);this.message=D.message;"stack"in D&&(this.stack=D.stack)};
_.n(haL,Error);_.iX.prototype.load=function(D){this.megabloxUrl_=_.JQ("YPC_MB_URL");_.PO(this.megabloxUrl_,(0,_.nG)(function(){D&&D()},this))};
_.yDM=function(D,Y,R,Z,t,X,M,W,z,I,F){_.yzU(z);D.load((0,_.nG)(function(){try{var G=X?X:_.JQ("HL"),V=_.JQ("SESSION_INDEX");_.jhj("client",function(){mCU("59",{helpCenterPath:"/youtube",locale:G,window:window}).JSC$9944_loadChatSupport({authuser:String(V)})})}catch(e){throw g$(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),t&&t(e),_.Nb(e),e;
}Lr_(this,Y,R,Z,t,X,M,W,z,I,F)},D))};
_.iX.prototype.openFixFlowDialog=function(D,Y,R,Z){this.load((0,_.nG)(function(){try{mNz(this,_.mf("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(D).withIntegratorCallback(Y).load(R,Z)}catch(t){throw _.Nb(t),t;}},this))};
var mNz=function(D,Y,R,Z){var t=Y.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.f("enable_window_constrained_buy_flow_dialog")&&(t=t.usingPopupStyle(_.mf("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Z&&(t=t.usingCloseCallback(Z));Y.bootstrap.fromPaymentsUrl(D.megabloxUrl_);D=Y.bootstrap.asMashupMode(t);R=R?R:_.JQ("HL");D.usingGaiaIndex(_.JQ("SESSION_INDEX")).usingLocale(R).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.f("enable_google_payments_buyflow_material2_style_web")?
D.usingStyle(":m2;pc=#444;ac=#065fd4"):D.usingStyle(":md;pc=#444;ac=#065fd4");return D},Lr_=function(D,Y,R,Z,t,X,M,W,z,I,F){try{var G=_.mf("payments.business.integration");
if(!G)throw new haL("payments.business.integration is undefined");var V=G.standaloneContextAuthId.forUserId(),e=mNz(D,G,X,function(){lIU(!1);W&&W()});
M&&e.usingServerAnalyticsEventHandler(M);var r=e.inStandaloneContext(V).buyFlow(function(l){if(l&&(!l.integratorData||l.integratorData===""||l.error))if(l.error!=null)if(String(l.error)==="-1")_.NOn(z);else{var U=String(l.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";g$(10,F,U,l.debugCode);_.d$(U,z,l.debugCode);U=new _.AT("PAYMENT_ERROR_MESSAGE::"+l.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+l.internalErrorDetails);
_.Nb(U)}else g$(10,F,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.d$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",z,"EMPTY_INTEGRATOR_DATA"),_.Nb(Error("bg"));R&&(lIU(!1),R(l))}).withEncryptedParameters(Y);
I&&r.withClientParameters(HPU(_.opb(I)));r.load(function(){g$(24,F);_.LX("ttc",void 0,"commerce_transaction");s1r("commerce_transaction");Z&&(Z(),lIU(!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",_.Nb(Error(U));else{U="EMPTY_LOAD_FAILURE_DEBUG_CODE";var K=new _.AT("LOAD_FAILURE:"+l.message," DEBUG_CODE:"+U);_.Nb(K)}g$(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",U);_.d$("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",z,U);_.Nb(l);t&&t(l)})}catch(l){throw l instanceof haL&&(g$(10,F,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),t&&t(l)),_.Nb(l),l;
}};var qQV;qQV=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.v15=function(D,Y){Y=Y===void 0?!1:Y;D=qQV.test(D)?_.Af(D):null;!Y&&window.payments||!D?(D=_.iq(),Y=D.promise,D.resolve()):Y=_.wr7(D,{attributes:{"data-payments-main":"",id:"payment-lib"}});return Y};var HuE;HuE=_.gY(["//www.googletagmanager.com/gtm.js?id=",""]);_.J$=function(D,Y){_.uI(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:Y}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.JQ("GL")}),Y=_.I0("SCRIPT"),Y.async=!0,_.dg(Y,_.tZ(HuE,D)),Y.id="gtm",D=document.getElementsByTagName("script"),D.length==0?document.head.appendChild(Y):(D=D[0],D.parentNode.insertBefore(Y,D)))};
_.kZ=function(D){if(D=JSON.parse(D))window.dataLayer=window.dataLayer||[],window.dataLayer.push(D)};var xNL,PvY;xNL=_.gY(["https://clients2.google.com/gr/gr_sync.js"]);_.w2n=function(){};
_.w2n.prototype.init=function(){if(PvY()){var D=_.iq();D.resolve();return D.promise}return _.wr7(_.tZ(xNL)).then(function(){if(!PvY())throw Error("cg");},function(){throw Error("dg");
})};
_.$5r=function(){if(!PvY())return"";var D=window.google.gr;D.init({async:{schedule:"sync"},merchantId:"youtube"});D.start();D=D.finish();return D==null?"":D};
PvY=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.N=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.n(_.N,PolymerFakeBaseClassWithoutHtml);_.Aj=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.n(_.Aj,PolymerFakeBaseClassWithoutHtml);var Jzl=window.ShadyDOM;var TSy,zwj,IAi,FC$,V9S,fAM,Un,uP;TSy=_.f("enable_shadydom_free_scoped_query_methods");zwj=_.f("enable_shadydom_free_scoped_node_methods");IAi=_.f("enable_shadydom_free_scoped_readonly_properties_batch_one");FC$=_.f("enable_shadydom_free_parent_node");V9S=_.f("enable_shadydom_free_children");fAM=_.f("enable_shadydom_free_last_child");Un=window.ShadyDOM;_.zm=Un&&Un.noPatch&&Un.wrap?Un.wrap:Un?function(D){return Un.patch(D)}:function(D){return D};
uP=function(D){if(D instanceof ShadowRoot)this.host=(0,_.zm)(D.host),this.root=D;else if(D.$$){this.host=(0,_.zm)(D);var Y;this.root=(Y=D.root)!=null?Y:this.host}else if(D.polymerController){this.host=(0,_.zm)(D);var R;this.root=(R=this.host.shadowRoot)!=null?R:this.host}else this.root=this.host=(0,_.zm)(D)};
Sqj();j4o();ewM();A8b();Gwb();var QyD={querySelector:function(D,Y){Y=ULn(Y,Yy(D));D=_.RU(D);return Zh(D).prototype.querySelector.call(D,Y)},
querySelectorAll:function(D,Y){Y=ULn(Y,Yy(D));D=_.RU(D);return Zh(D).prototype.querySelectorAll.call(D,Y)}},Bl_={appendChild:function(D,Y){var R=Yy(D),Z=_.Dh(Y);
return _.Cn$(_.RU(D),R?_.sg(Y,R,Z):Y)},
cloneNode:function(D,Y){var R=_.Dh(D);D=_.RU(D);Y=Zh(D).prototype.cloneNode.call(D,Y);return R?Xv(Y,R):Y},
contains:function(D,Y){var R=Yy(D),Z=_.Dh(Y);return R!==Z?!1:WCU(D,Y)},
insertBefore:function(D,Y,R){var Z=Yy(D),t=_.Dh(Y);D=_.RU(D);Y=Z?_.sg(Y,Z,t):Y;return Zh(D).prototype.insertBefore.call(D,Y,R)},
removeChild:function(D,Y){var R=Yy(D);D=_.RU(D);Y=R?Xv(Y,R):Y;return Zh(D).prototype.removeChild.call(D,Y)},
replaceChild:function(D,Y,R){var Z=Yy(D),t=_.Dh(Y);Y=Z?_.sg(Y,Z,t):t?Xv(Y,t):Y;R=Z?Xv(R,Z):R;D=_.RU(D);return Zh(D).prototype.replaceChild.call(D,Y,R)},
getRootNode:function(D,Y){Y=Y===void 0?{composed:!0}:Y;var R;if(((R=Y)!=null?R:{}).composed)D=p1$(D);else{Y=D;for(D=hdU(D);D;)Y=D,D=mLn(D);D=Y}return D}},r8M=IAi?{firstChild:t9i,
nextSibling:YqU,previousSibling:ZAi,firstElementChild:s4M,lastElementChild:u2o,nextElementSibling:D69,previousElementSibling:Rw$,childNodes:aAy}:{};FC$&&(r8M.parentNode=cz9);V9S&&(r8M.children=M9U);fAM&&(r8M.lastChild=Xzi);TSy&&nor(QyD);zwj&&nor(Bl_);wzr();var $6i=function(D){this.node=D instanceof ShadowRoot?D.host:D};
voU();oo9();var NSj=new WeakMap;var J8U=Symbol("ud");var LCy=new Set(["tap","track","down","up"]),m6y=_.f("pbcm_fi_query_decorators");var Kc=function(){return _.Aj.apply(this,arguments)||this};
_.n(Kc,_.Aj);_.u=Kc.prototype;_.u.getState=function(){return this.store.getState()};
_.u.dispatch=function(D){this.store.dispatch(D)};
_.u.beforeRegister=function(){if(this&&typeof this==="object"){var D;var Y=!!this.useSignals||!((D=this.polymerController)==null||!D.useSignals)}else Y=!1;if(!Y&&this.properties)for(Y=_.a(Object.keys(this.properties)),D=Y.next();!D.done;D=Y.next()){var R=D.value;D=this.properties[R];if(D.selector){if(D.computed)throw Error("jg");R=["reduxPropertiesRecomputeTrigger",'"'+R+'"'].concat(_.oK(D.selectorArgs||[])).join(",");D.computed="recomputeReduxSelector("+R+")"}}};
_.u.attached=function(){var D=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){D.reduxPropertiesRecomputeTrigger++}));
_.f("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.u.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.u.recomputeReduxSelector=function(D,Y){var R=_.UN.apply(2,arguments),Z=this.properties[Y].selector;if(!Z)throw Error("hg`"+Y);return Z.apply(null,[this.store.getState()].concat(_.oK(R)))};
_.u.select=function(D){var Y=_.UN.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return D.apply(null,[this.store.getState()].concat(_.oK(Y)))};
_.YF.Object.defineProperties(Kc.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
Kc.prototype.recomputeReduxSelector=Kc.prototype.recomputeReduxSelector;_.q([_.y(),_.x("design:type",Number)],Kc.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.q([_.nr()],Kc);var h$=[],PnU={},hj=function(){return Za.apply(this,arguments)||this};
_.n(hj,Za);hj.prototype._addPropertyEffect=function(D,Y,R){if(Y==="__observeEffects"&&R){var Z,t=(Z=R.info.method)!=null?Z:R.info.methodName;if(t){var X=this[t];this[t]=function(){h$.push(t);try{X==null||X.apply(this,arguments)}finally{h$.pop()}}}}_.w7._addPropertyEffect.apply(this,[D,
Y,R])};
hj.prototype._setPendingProperty=function(D,Y,R){if(h$.length){var Z=h$[h$.length-1],t;(t=PnU[this.is])!=null&&t.has(Z)||(Q4r(this.is,Z),_.bo("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Z}))}return _.w7._setPendingProperty.apply(this,[D,Y,R])};
_.q([FcU()],hj);var BSU=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Eo$,$y={};_.f("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=$y);var bP=function(){return _.Aj.apply(this,arguments)||this};
_.n(bP,_.Aj);bP.prototype._setUnmanagedPropertyToNode=function(D,Y,R){D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!0);if(R!==D[Y]||typeof R==="object")D[Y]=R;D.is&&D.polymerController&&D.polymerController!==D&&vE(D.is,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!1)};
_.q([_.nr()],bP);pzi()&&(xM.prototype._setUnmanagedPropertyToNode=(new bP)._setUnmanagedPropertyToNode);_.acl={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(D){},set polymerController(D){}}]};var Kr=function(){var D=Za.apply(this,arguments)||this;D.json=function(){};
return D};
_.n(Kr,Za);Kr.prototype.equals=function(D,Y){return D===Y};
Kr.prototype.isEmpty=function(D){var Y;(Y=!D)||(Y=_.xn(D)&&D.length===0);return Y};
_.q([FcU()],Kr);var pdL=function(D){D=TQj(D);ma.call(this,D)};
_.n(pdL,ma);pdL.prototype.addProvider=function(D){D=D.key?D:TQj([D])[0];var Y=this.keyIdToIndex.get(D.key.id);if(Y){if(c85(D,this.providers[Y]))throw Error("kg`"+D.key.displayName);}else ma.prototype.addProvider.call(this,D)};
var EmU=new pdL([]);var gmE=!1;var sm9={};gmE||(tkU(),gmE=!0);
sm9.InjectBehavior={initializeInjection:function(){var D=this.provide;try{if((D=D!=null?D:[])&&D.length>0)for(var Y=TQj(D),R=_.a(Y),Z=R.next();!Z.done;Z=R.next())EmU.addProvider(Z.value);var t=new Set;DS$(this.behaviors||[],t);Y={};for(var X=_.a(t),M=X.next();!M.done;M=X.next()){var W=M.value;W.inject&&Object.assign(Y,W.inject)}this.inject&&Object.assign(Y,this.inject);for(var z=_.a(Object.keys(Y)),I=z.next();!I.done;I=z.next()){var F=I.value,G=Y[F];try{this[F]=EmU.resolve(G)}catch(V){throw V;}}}catch(V){throw Error(V.message);
}}};var ugj;var Mkj=/\bclass\b/.test(function(){}.toString()),znM=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var dNb=function(D){this.wasDefined=!0;Array.isArray(D)||D instanceof Array?(this.JSC$13323_getImpl=D[0],this.JSC$13323_setImpl=D[1]):this.JSC$13323_getImpl=D};
_.u=dNb.prototype;_.u.getWithPath=function(D){return jmi(this.JSC$13323_getImpl(),D)};
_.u.setWithPath=function(D,Y){var R=this;if(D.length)throw Error("lg");if(!this.JSC$13323_setImpl)throw Error("mg");Tk(function(){R.JSC$13323_setImpl(Y)})};
_.u.notifyPath=function(){throw Error("ng");};
_.u.notifySplices=function(){throw Error("og");};
_.u.getChangeRecordSignal=function(D,Y){var R=this;if(D.length)throw Error("pg");return function(){var Z=R.getWithPath(D);return{path:Y!=null?Y:"",base:Z,value:Z}}};
_.u.getSplicesSignal=function(){throw Error("qg");};
_.u.getPathMutationSignal=function(){throw Error("rg");};
_.u.pop=function(){throw Error("sg");};
_.u.push=function(){throw Error("tg");};
_.u.splice=function(){throw Error("ug");};
_.u.unshift=function(){throw Error("vg");};var Lc=function(D){var Y=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(D)||D instanceof Array?(this.JSC$13328_getImpl=D[0],this.JSC$13328_setImpl=D[1]):this.JSC$13328_getImpl=D;this.wasDefined=!1;uM(function(){Y.wasDefined=Y.JSC$13328_getImpl()!==void 0})};
Lc.prototype.getWithPath=function(D){return jmi(this.JSC$13328_getImpl(),D)};
Lc.prototype.setWithPath=function(D,Y){var R=this;if(D[D.length-1]!=="*"&&D[D.length-1]!=="splices"){var Z=uM(function(){return R.getWithPath([])});
if(D.length===0){if(!this.JSC$13328_setImpl)throw Error("wg");if(Z===Y)return;this.wasDefined||(this.wasDefined=Y!==void 0);Tk(function(){R.JSC$13328_setImpl(Y)})}else{for(var t=0;t<D.length-1;t++){if(!Z)return;
Z=Z[D[t]]}t=D[D.length-1];Z&&(Z[t]=Y);this.wasDefined||(this.wasDefined=D.length>1||Y!==void 0)}iuE(this,D,{pathComponents:D,value:Y})}};
Lc.prototype.notifyPath=function(D,Y){D.length===0?Y&&this.setWithPath(D,Y.value):iuE(this,D,{pathComponents:D,value:Y==null?void 0:Y.value,fallbackWhenUndefined:Y==null?void 0:Y.value})};
var iuE=function(D,Y,R,Z){if(D.setMutationSignal){var t=++D.mutationIndex,X=[D.observedPath],M=D.observedPath,W;Y.length===0&&(W=M);for(var z=0;z<Y.length;z++){var I=M.subPaths[Y[z]];if(!I)break;X.push(I);M=I;z===Y.length-1&&(W=I)}for(Y=!1;X.length;)M=X.shift(),M.data={index:t,mutation:R,spliceMutationIndex:Z},Y||(Y=M===W),Y&&X.push.apply(X,_.oK(Object.values(M.subPaths)));Tk(function(){D.setMutationSignal(t)})}};
Lc.prototype.notifySplices=function(D,Y){var R=this,Z=uM(function(){return R.getWithPath(D)}),t=[].concat(_.oK(D),["splices"]);
iuE(this,t,{pathComponents:t,value:{indexSplices:Y}});if(Z==null?0:Z.length)Y=this.mutationIndex,t=[].concat(_.oK(D),["length"]),iuE(this,t,{pathComponents:t,value:Z.length},Y)};
var Ouz=function(D,Y,R,Z,t,X){D.notifySplices(R,[{index:Z,addedCount:t,removed:X,object:Y,type:"splice"}])},caL=function(D,Y){D=D.observedPath;
for(var R=0;R<Y.length;R++){var Z=Y[R],t=D.subPaths[Z];t||(t={pathComponents:Y.slice(0,R+1),subPaths:{}},D.subPaths[Z]=t);D=t}},YA_=function(D,Y,R){caL(D,Y);
if(!D.getMutationSignal){var Z=_.a(_.ae(D.mutationIndex,void 0,"sNBMCd"));D.getMutationSignal=Z.next().value;D.setMutationSignal=Z.next().value}var t=D.getMutationSignal;return _.Si(function(){t();return R(Dub(D,Y))},void 0,"zvsXEd")};
Lc.prototype.getChangeRecordSignal=function(D,Y){var R=this,Z=this.mutationIndex,t;return YA_(this,D,function(X){if(X&&X.index>Z){var M=X.mutation;Z=X.index;t=void 0}X=uM(function(){return R.getWithPath(D)});
if(M){var W=M.pathComponents[M.pathComponents.length-1],z=[].concat(_.oK(M.pathComponents));if(W==="splices"||W==="length")return{base:X,path:(Y?[Y].concat(_.oK(z)):z).join("."),value:M.value};var I=D.length>z.length?D:z,F;return{base:X!=null?X:M.fallbackWhenUndefined,path:(Y?[Y].concat(_.oK(I)):I).join("."),value:(F=uM(function(){return R.getWithPath(I)}))!=null?F:M.fallbackWhenUndefined}}t||(t={base:X,
path:(Y?[Y].concat(_.oK(D)):D).join("."),value:X});return t})};
Lc.prototype.getSplicesSignal=function(D){var Y=this.mutationIndex,R;return YA_(this,D,function(Z){if(Z&&Z.index>Y&&Z.spliceMutationIndex!==Y){var t=Z.mutation;Y=Z.index;R=void 0}return t&&t.pathComponents[t.pathComponents.length-1]==="splices"?R=Z=t.value:R})};
Lc.prototype.getPathMutationSignal=function(D){var Y=this;caL(this,D);if(!this.getMutationSignal){var R=_.a(_.ae(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=R.next().value;this.setMutationSignal=R.next().value}var Z=this.getMutationSignal,t=this.mutationIndex,X;return _.Si(function(){Z();var M=Dub(Y,D);if(M&&M.index>t&&M.mutation&&IcS(M.mutation.pathComponents,D)){var W=M.mutation;t=M.index}if(!X||t!==X.index){var z,I;M=(I=uM(function(){return Y.getWithPath(D)}))!=null?I:(z=W)==null?
void 0:z.fallbackWhenUndefined;
X={index:t,value:M}}return X},void 0,"RXYC9b")};
var Dub=function(D,Y){D=D.observedPath;Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())D=D.subPaths[R.value];return D.data};
Lc.prototype.pop=function(D){var Y=this,R=uM(function(){return Y.getWithPath(D)});
if(!(R instanceof Array))throw Error("xg");var Z=R.length>0,t=R.pop();Z&&Ouz(this,R,D,R.length,0,[t]);return t};
Lc.prototype.push=function(D){var Y=_.UN.apply(1,arguments),R=this,Z=uM(function(){return R.getWithPath(D)});
if(!(Z instanceof Array))throw Error("yg");var t=Z.length,X=Z.push.apply(Z,_.oK(Y));Y.length&&Ouz(this,Z,D,t,Y.length,[]);return X};
Lc.prototype.splice=function(D,Y,R){var Z=_.UN.apply(3,arguments),t=this,X=uM(function(){return t.getWithPath(D)});
if(!(X instanceof Array))throw Error("zg");Y<0?Y=X.length-Math.floor(-Y):Y&&(Y=Math.floor(Y));var M=X.splice.apply(X,[Y,R].concat(_.oK(Z)));(Z.length||M.length)&&Ouz(this,X,D,Y,Z.length,M);return M};
Lc.prototype.unshift=function(D){var Y=_.UN.apply(1,arguments),R=this,Z=uM(function(){return R.getWithPath(D)});
if(!(Z instanceof Array))throw Error("Ag");var t=Z.unshift.apply(Z,_.oK(Y));Y.length&&Ouz(this,Z,D,0,Y.length,[]);return t};var m0=function(D,Y,R){this.model=D;this.unknownSignalResolver=Y;this.options=R;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];Y=_.a(w55());D=Y.next().value;Y=Y.next().value;this.owner=D;this.disposeImpl=Y};
m0.prototype.dispose=function(){if(!this.isDisposed){for(var D=_.a(this.childSignalProxies),Y=D.next();!Y.done;Y=D.next())Y.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Ry1=function(D,Y){D=_.ge(D.owner);try{Y()}finally{_.ge(D)}};
m0.prototype.effect=function(D){Ry1(this,function(){_.oe(D)})};
var Z1V=function(D,Y){D.options!=null||(D.options={});var R;(R=D.options).immutableProps!=null||(R.immutableProps=new Set);D.options.immutableProps.add(Y)},iko=function(D,Y){Y=""+Y;
tyE(D,Y);var R,Z;if((R=D.options)==null?0:(Z=R.immutableProps)==null?0:Z.has(Y))return!0;var t;if((t=D.model.__signalCache)==null?0:t.has(Y))R=D.model.__signalCache.get(Y),Array.isArray(R)&&Z1V(D,Y);var X,M,W;return(W=(X=D.options)==null?void 0:(M=X.immutableProps)==null?void 0:M.has(Y))!=null?W:!1},suz=function(D,Y){var R;
D.unknownSignalResolver&&(R=D.unknownSignalResolver(Y));var Z,t;((Z=D.options)==null?0:(t=Z.immutableProps)==null?0:t.has(Y))?R!=null||(R=new dNb(_.ae(D.model[Y],void 0,"By5iP"))):R!=null||(R=new Lc(_.ae(D.model[Y],void 0,"CXghNc")));var X=D.model.hostElement;Object.defineProperty(D.model,Y,{get:function(){d6r(X,Y);return R.getWithPath([])},
set:function(M){oU(X,Y);D.setWithPath([Y],M)},
configurable:!0});return R},tyE=function(D,Y){var R,Z,t;
((R=D.model.__signalCache)==null||!R.has(Y))&&((Z=D.options)==null?0:(t=Z.externalSignalProps)==null?0:t.has(Y))&&D.model[Y]},HE=function(D,Y){Y=""+Y;
var R=D.signalCache[Y];if(R!==void 0)return R;R=!1;tyE(D,Y);var Z;if((Z=D.model.__signalCache)==null?0:Z.has(Y))if(R=D.model.__signalCache.get(Y),Array.isArray(R))R=!0,Z1V(D,Y);else return D.signalCache[Y]=D.model.__signalCache.get(Y).signal,D.signalCache[Y];var t,X;Z=(X=(t=D.options)==null?void 0:t.reactivityMode)!=null?X:0;var M,W;if(!((M=D.options)==null?0:(W=M.reactiveProps)==null?0:W.has(Y))&&!R&&Z===1)throw Error("Bg`"+Y);t=R?X77(D,Y):suz(D,Y);return D.signalCache[Y]=t},X77=function(D,Y){var R=
Object.getOwnPropertyDescriptor(D.model.constructor.prototype,Y),Z=function(){return D.model[Y]};
return new dNb(R&&R.get&&!R.set?Z:[Z,function(t){D.model[Y]=t}])};
m0.prototype.getWithPath=function(D){var Y=_.a(D);D=Y.next().value;Y=BB(Y);d6r(this.model.hostElement,""+D);return HE(this,D).getWithPath(Y)};
m0.prototype.setWithPath=function(D,Y){if(D.length){oU(this.model.hostElement,D.join("."));var R=_.a(D);D=R.next().value;R=BB(R);HE(this,D).setWithPath(R,Y)}};
m0.prototype.getPathMutationSignal=function(D){var Y=_.a(D);D=Y.next().value;Y=BB(Y);return HE(this,D).getPathMutationSignal(Y)};
m0.prototype.notifyPath=function(D,Y){var R=_.a(D);D=R.next().value;R=BB(R);HE(this,D).notifyPath(R,Y)};
var ud4=function(D,Y){if(Y.type==="literal")return function(){return{rootWasDefined:!0,value:Y.value}};
var R=m4(Y.path),Z=_.a(R),t=Z.next().value;Z=BB(Z);var X,M;if(Y.type==="path"&&(R.length===1||((X=D.options)==null?0:(M=X.immutableProps)==null?0:M.has(t))))return function(){var G=D.getWithPath(R.slice(0,1));G=jmi(G,R.slice(1));return{rootWasDefined:HE(D,R[0]).wasDefined,value:G}};
var W=HE(D,t);if(Y.type==="path"){var z=W.getPathMutationSignal(Z);return function(){var G,V=(G=z())==null?void 0:G.value;return{rootWasDefined:W.wasDefined,value:V}}}if(Y.type==="splices"){var I=W.getSplicesSignal(Z);
return function(){var G=I();return{rootWasDefined:W.wasDefined,value:G}}}var F=W.getChangeRecordSignal(Z,""+t);
return function(){var G=F();return{rootWasDefined:W.wasDefined,value:G}}},Aco=function(D,Y,R){var Z=R.map(function(W){return ud4(D,W)}),t=R.length===0,X=[],M=R.length!==1||R[0].type!=="path"?!1:!0;
D.effect(function(){for(var W=Z.length,z=[],I=!!X.length,F=0;F<W;F++){var G=Z[F](),V=G.rootWasDefined;G=G.value;t||(t=V);z[F]=G;M&&(z[F+W]=I?X[F]:z[F],X[F]=G)}t&&bM(D.owner,function(){return void Y.apply(null,_.oK(z))})})},Fsi=function(D,Y,R,Z,t){var X=HE(D,Y);
t!==void 0&&X.setWithPath([],t);Aco(D,function(){var M=_.UN.apply(0,arguments);oU(D.model.hostElement,Y,!0);X.setWithPath([],R.apply(null,_.oK(M)))},Z)};
m0.prototype.arrayPush=function(D){var Y=_.UN.apply(1,arguments),R=_.a(D),Z=R.next().value;R=BB(R);Z=HE(this,Z);return Z.push.apply(Z,[R].concat(_.oK(Y)))};
m0.prototype.arraySplice=function(D,Y,R){var Z=_.UN.apply(3,arguments),t=_.a(D),X=t.next().value;t=BB(t);X=HE(this,X);return X.splice.apply(X,[t,Y,R].concat(_.oK(Z)))};
m0.prototype.arrayUnshift=function(D){var Y=_.UN.apply(1,arguments),R=_.a(D),Z=R.next().value;R=BB(R);Z=HE(this,Z);return Z.unshift.apply(Z,[R].concat(_.oK(Y)))};
m0.prototype.notifySplices=function(D,Y){var R=_.a(D);D=R.next().value;R=BB(R);HE(this,D).notifySplices(R,Y)};var aMD=!0,MyU=!1,Our=!1,C5z=!1,W94=0;C5z=!1;W94=0;aMD=!0;MyU=Our=!1;var NhU=/([^\s]+?)\(([\s\S]*)\)/,ovM=/\.([^.]+)$/,JcU=/\\,/g,$Sl=/&comma;/g,vvS=/\\(.)/g,lcr=[],bkS={"*":"wildcard",splices:"splices"};var P8y=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"),mS$=/[A-Z]/,zy_=["class","hidden","id","on-dom-change"],Bhi=new Set([].concat(_.oK(zy_),
["if","notify-dom-change","restamp"])),p5y=new Set([].concat(_.oK(zy_),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Evl=new Set(["restamp"]);var Eqi=new Set(["className","id"]);var cco=Symbol(),Xdn=window;var TlS=window;var eab=0,Frj=0,xy=[],fnU=0,Inl=!1,V4$=document.createTextNode("");(new window.MutationObserver(G9y)).observe(V4$,{characterData:!0});var QT=new Map,PE=0,SA_=function(D){this.mappedHandleId=D},nmi=function(D,Y,R,Z){this.mappedHandleId=D;
var t=this;this.mappedHandleId=D;this.callback=Y;this.waitTime=R;this.schedulerPriority=Z;this.handleId=_.yc.addJob(function(){t.callback();QT.delete(t.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.n(nmi,SA_);nmi.prototype.cancel=function(){_.yc.cancelJob(this.handleId);QT.delete(this.mappedHandleId)};
var rab=function(D,Y){this.mappedHandleId=D;var R=this;this.mappedHandleId=D;this.callback=Y;this.handleId=Aan(function(){R.callback();QT.delete(R.mappedHandleId)})};
_.n(rab,SA_);rab.prototype.cancel=function(){var D=this.handleId-Frj;D<0||xy.length<=D||(xy[D]=null);QT.delete(this.mappedHandleId)};var omj=function(){};
omj.prototype.cancel=function(){this.jobHandle!==void 0&&(wdU(this.jobHandle),this.jobHandle=void 0)};
omj.prototype.run=function(D,Y,R){var Z=this;this.cancel();this.callback=D;this.jobHandle=_.BE(function(){D();Z.callback=void 0},Y,R)};
omj.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var $NU=new WeakMap;var TnU=cA(function(D){for(var Y=D,R=0;R<3;R++)Y=Object.getPrototypeOf(Y);delete Y.prototype.connectedCallback;var Z=function(){return D.apply(this,arguments)||this};
_.n(Z,D);Z.prototype._attachDom=function(t){if(!t)return null;var X=(0,_.zm)(this.hostElement);X.attachShadow({mode:"open",shadyUpgradeFragment:t});X.shadowRoot.appendChild(t);return X.shadowRoot};
Z.prototype._takeAttributes=function(){for(var t=this.hostElement.attributes,X=0;X<t.length;X++){var M=t[X],W=void 0,z=void 0;(z=(W=this).__attributeReaction)==null||z.call(W,M.name,null,M.value)}};
Z.prototype._readyClients=function(){D.prototype._readyClients.call(this);this.root=this};
Z.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);D.prototype.connectedCallback.call(this)};
_.YF.Object.defineProperties(Z,{template:{configurable:!0,enumerable:!0,get:function(){return Z.prototype._template}}});
return Z}),ju7=cA(function(D){var Y=function(){return D.apply(this,arguments)||this};
_.n(Y,D);Y.prototype.created=function(){if(this.__notifyEffects)for(var R=_.a(Object.values(this.__notifyEffects)),Z=R.next();!Z.done;Z=R.next()){Z=_.a(Z.value);for(var t=Z.next();!t.done;t=Z.next())t.value.fn=lnM}if(this.__reflectEffects)for(R=_.a(Object.values(this.__reflectEffects)),Z=R.next();!Z.done;Z=R.next())for(Z=_.a(Z.value),t=Z.next();!t.done;t=Z.next())t.value.fn=JaS};
Y.prototype._addEventListenerToNode=function(R,Z,t){R=Eg(R);Uw(R,Z,t)||D.prototype._addEventListenerToNode.call(this,R,Z,t)};
Y.prototype._removeEventListenerFromNode=function(R,Z,t){R=Eg(R);KF(R,Z,t)||D.prototype._removeEventListenerFromNode.call(this,R,Z,t)};
Y.prototype._propertiesChanged=function(R,Z,t){if(this.__dataToNotify&&this.__notifyEffects)for(var X=_.a(Object.keys(this.__dataToNotify)),M=X.next();!M.done;M=X.next()){M=M.value;var W=Nli(M);this.__notifyEffects[W]||delete this.__dataToNotify[M]}else this.__dataToNotify=null;D.prototype._propertiesChanged.call(this,R,Z,t)};
Y.prototype.fire=function(R,Z,t){Z=Z===void 0?{}:Z;var X;return _.MX(Eg((X=t==null?void 0:t.node)!=null?X:this),R,Z,t)};
Y.prototype._ensureAttribute=function(R,Z){var t=Eg(this);t.hasAttribute(R)||qB(t,Z,R)};
Y.prototype.isLightDescendant=function(R){var Z=Eg(this);return Eg(Z)!==R&&_.aU(Z).contains(R)&&_.aU(Z).getRootNode()===_.aU(R).getRootNode()};
return Y});
_.rp.ready=function(){var D;((D=this.hostElement)!=null?D:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var Y;((Y=this.hostElement)!=null?Y:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.l_._subscribeIronResize=function(D){var Y;((Y=D.hostElement)!=null?Y:D).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.l_._unsubscribeIronResize=function(D){var Y;((Y=D.hostElement)!=null?Y:D).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var KrU=[Array,Boolean,Date,Number,Object,String],dd=function(D,Y,R,Z){this.polySiInfo=D;this.polySiParams=Y;this.polySiContext=R;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Z||this instanceof HTMLElement&&(Z=this);if(!Z)throw Error("Ig");this.allowedProps=Y.allowedProps;this.hostElement=Z;this.is=D.is;this.upgradeDisabled=!!Y.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");D=new Set(Y.reactiveSchemas.filter(function(t){return t.type!==
"observe"}).map(function(t){return t.propertyKey}));
this.signalProxy=new m0(this,void 0,{reactiveProps:D,reactivityMode:Y.reactivityMode});this.__dataHasAccessor={};Y=_.a(Y.reactiveSchemas);for(D=Y.next();!D.done;D=Y.next())D=D.value,D.type==="signal"&&(this.__dataHasAccessor[D.propertyKey]=!0);this.upgradeDisabled||IME(this)};
dd.prototype.getExtraMethodsToForward=function(){return[]};
var IME=function(D){D.polySiContext.didRegister||(D.registered(),D.polySiContext.didRegister=!0);D.polySiContext.finalizedTemplate||(D.polySiContext.finalizedTemplate={},D.polySiParams.templateGetter&&(D.polySiContext.finalizedTemplate.processedTemplate=jyU(D.polySiParams.templateGetter,D.polySiParams.is)));F9D(D);var Y=D.hostElement;Y.loggingStatus!=null||(Y.loggingStatus={});Y.loggingStatus.isInitializing=!0;uM(function(){return void D.created()});
Y.loggingStatus.isInitializing=!1;D.isPolySiElementConnected&&Gr_(D)},Gr_=function(D){D.didCallReady||(uM(function(){return void D.ready()}),D.didCallReady=!0);
D.isAttached=!0;D.attached()};
_.u=dd.prototype;_.u.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Gr_(this)};
_.u.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.u.attributeChangedCallback=function(D,Y,R){if(this.upgradeDisabled)D==="disable-upgrade"&&R===null&&(this.upgradeDisabled=!1,IME(this));else if(Y!==R){var Z=_.eP(D),t=this.polySiContext.typesForSignals[Z];if(t&&(!this.reflecting||_.f("polysi_attribute_changed_serializing_killswitch"))){switch(t){case Object:try{var X=JSON.parse(R)}catch(W){X=R}break;case Array:try{X=JSON.parse(R)}catch(W){X=null}break;case Date:X=isNaN(R)?String(R):Number(R);X=new Date(X);break;case Boolean:X=R!==null;break;case Number:X=
Number(R);break;default:X=R}this[Z]=X}Z=_.a(this.polySiParams.behaviors);for(t=Z.next();!t.done;t=Z.next())X=void 0,(X=t.value.attributeChanged)==null||X.call(this,D,Y,R);var M;(M=this.attributeChanged)==null||M.call(this,D,Y,R)}};
_.u.attributeChangedCallbackWrapper=function(D,Y,R){this.attributeChangedCallback(D,Y,R)};
_.u.setPropertiesFromInitialAttributeValues=function(){for(var D=0;D<this.hostElement.attributes.length;D++){var Y=this.hostElement.attributes[D];(Y.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(Y.name))&&this.attributeChangedCallback(Y.name,null,Y.value)}};
_.u.created=function(){this.provide=this.polySiParams.provide;var D;(D=this.initializeInjection)==null||D.call(this);D=_.a(this.polySiParams.reactiveSchemas);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.type==="signal"&&(this.mutablePropNames.add(Y.propertyKey),HE(this.signalProxy,Y.propertyKey));UNi(this,this.polySiInfo,this.polySiParams.behaviors);D=_.a(this.polySiParams.reactiveSchemas);for(Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.type==="signal"&&Y.value!==void 0&&(this.signalProxy.model[Y.propertyKey]=
typeof Y.value==="function"?Y.value.call(this):Y.value);if(this.polySiParams.signalProperties)for(D=_.a(this.polySiParams.signalProperties),Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=void 0;((R=this.__signalCache)==null?0:R.has(Y))||(this.signalProxy.model[Y]=void 0)}C5z||VyD(this);k9S(this);D=_.a(this.polySiParams.behaviors);for(Y=D.next();!Y.done;Y=D.next())R=void 0,(R=Y.value.created)==null||R.call(this);var Z;(Z=this.polySiInfo.created)==null||Z.call(this)};
_.u.registered=function(){var D=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var Y=Object.getPrototypeOf(this);Y.addReactiveSchema=function(W){D.polySiParams.reactiveSchemas.push(W)};
for(var R=_.a(this.polySiParams.behaviors),Z=R.next();!Z.done;Z=R.next()){var t=void 0;(t=Z.value.beforeRegister)==null||t.call(Y)}var X;(X=this.polySiInfo.beforeRegister)==null||X.call(Y);Y.addReactiveSchema=LrU;R=_.a(this.polySiParams.behaviors);for(Z=R.next();!Z.done;Z=R.next())t=void 0,(t=Z.value.registered)==null||t.call(Y);var M;(M=this.polySiInfo.registered)==null||M.call(Y)};
_.u.ready=function(){var D;(D=this.beforeReady)==null||D.call(this);C5z&&VyD(this);var Y;if(D=(Y=this.polySiContext.finalizedTemplate)==null?void 0:Y.processedTemplate){D=SQj(D.template,D.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:D.hasInsertionPoint,thisCtx:this});Y=D.nodesById;D=D.root;var R=this.hostElement;var Z=Z===void 0?!1:Z;R=(0,_.zm)(R);if(!R.attachShadow)throw Error("Ad");if(!R.shadowRoot||Z)R.attachShadow({mode:"open",shadyUpgradeFragment:D}),R.shadowRoot.appendChild(D);
this.root=R.shadowRoot;this.$=Y}fM_(this);Z=_.a(this.polySiParams.behaviors);for(Y=Z.next();!Y.done;Y=Z.next())D=void 0,(D=Y.value.ready)==null||D.call(this);var t;(t=this.polySiInfo.ready)==null||t.call(this)};
_.u.attached=function(){for(var D=_.a(this.polySiParams.behaviors),Y=D.next();!Y.done;Y=D.next()){var R=void 0;(R=Y.value.attached)==null||R.call(this)}var Z;(Z=this.polySiInfo.attached)==null||Z.call(this)};
_.u.detached=function(){for(var D=_.a(this.polySiParams.behaviors),Y=D.next();!Y.done;Y=D.next()){var R=void 0;(R=Y.value.detached)==null||R.call(this)}var Z;(Z=this.polySiInfo.detached)==null||Z.call(this)};
var F9D=function(D){for(var Y=_.a(D.polySiParams.behaviors),R=Y.next();!R.done;R=Y.next())if(R=R.value,R.listeners)for(var Z in R.listeners)zaS(D,D.hostElement,Z,R.listeners[Z]);if(D.polySiInfo.listeners)for(var t in D.polySiInfo.listeners)zaS(D,D.hostElement,t,D.polySiInfo.listeners[t])},zaS=function(D,Y,R,Z,t){D=ThS(D,Z,t);
Uw(Y,R,D)||Y.addEventListener(R,D);return D},VyD=function(D){for(var Y=_.a(D.polySiParams.reactiveSchemas),R=Y.next();!R.done;R=Y.next())R=R.value,R.type==="compute"||R.type==="computeWithMethod"?G7b(D.signalProxy,R,D):R.type==="redux"?enS(D.signalProxy,R,D.store):R.type==="signal"&&R.readOnly&&fcM(D.signalProxy,R)},fM_=function(D){for(var Y=_.a(D.polySiParams.reactiveSchemas),R=Y.next(),Z={};!R.done;Z={schema$jscomp$12:void 0},R=Y.next())Z.schema$jscomp$12=R.value,Z.schema$jscomp$12.type==="notify"?
nvn(D.signalProxy,Z.schema$jscomp$12,D.hostElement):Z.schema$jscomp$12.type==="observe"?rcn(D.signalProxy,Z.schema$jscomp$12,D):Z.schema$jscomp$12.type==="reflect"&&D.signalProxy.effect(function(X){return function(){var M=D.signalProxy.getWithPath([X.schema$jscomp$12.propertyKey]);
D.reflecting=!0;USi(D.hostElement,X.schema$jscomp$12.propertyKey,M,!0);D.reflecting=!1}}(Z));
if(D.reflectedAttributes)for(Y=_.a(Object.entries(D.reflectedAttributes)),Z=Y.next(),R={};!Z.done;R={key$jscomp$911:void 0,value$jscomp$9159:void 0},Z=Y.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;R.key$jscomp$911=Z;R.value$jscomp$9159=t;D.signalProxy.effect(function(X){return function(){D.reflecting=!0;USi(D.hostElement,X.key$jscomp$911,(0,X.value$jscomp$9159)(),!0);D.reflecting=!1}}(R))}};
_.u=dd.prototype;_.u._setPendingProperty=function(D,Y){this.set(D,Y);return!1};
_.u._enableProperties=function(){};
_.u._setPendingPropertyOrPath=function(D,Y){this.notifyPath(D,Y);return!1};
_.u._addPropertyEffect=function(){};
_.u._stampTemplate=function(){throw Error("Jg");};
_.u.fire=function(D,Y,R){Y=Y===void 0?{}:Y;R=R===void 0?{}:R;var Z,t,X={bubbles:(Z=R.bubbles)!=null?Z:!0,cancelable:!!R.cancelable,composed:(t=R.composed)!=null?t:!0},M;return _.MX(mNr((M=R.node)!=null?M:this.hostElement),D,Y,X)};
_.u.get=function(D,Y){var R=m4(D);return Y?jmi(Y,R):D==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(R)};
_.u.linkPaths=function(){};
_.u.listen=function(D,Y,R){D=mNr(D);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Z=this.boundListeners.get(D);Z||(Z={},this.boundListeners.set(D,Z));var t=Y+R;Z[t]||(Z[t]=zaS(this,D,Y,R))};
_.u.notifyPath=function(D,Y){this.signalProxy.notifyPath(m4(D),arguments.length===2?{value:Y}:void 0)};
_.u.canNotifyPath=function(D){return this.mutablePropNames.has(D)&&!iko(this.signalProxy,D)};
_.u.notifySplices=function(D,Y){this.signalProxy.notifySplices(m4(D),Y)};
_.u.pop=function(D){var Y=this.signalProxy;D=m4(D);var R=_.a(D);D=R.next().value;R=BB(R);return HE(Y,D).pop(R)};
_.u.push=function(D){var Y=_.UN.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[m4(D)].concat(_.oK(Y)))};
_.u.set=function(D,Y,R){if(R)throw Error("Kg");D==="hidden"?this.hostElement.hidden=!!Y:this.signalProxy.setWithPath(m4(D),Y)};
_.u.setProperties=function(D){D=_.a(Object.entries(D));for(var Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;this[Y]=R}};
_.u.splice=function(D,Y,R){var Z=_.UN.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[m4(D),Y,R].concat(_.oK(Z)))};
_.u.unlinkPaths=function(){};
_.u.unlisten=function(D,Y,R){D=mNr(D);if(this.boundListeners){var Z=this.boundListeners.get(D);if(Z){R=Y+R;var t=Z[R];t&&(KF(D,Y,t)||D.removeEventListener(Y,t),delete Z[R])}}};
_.u.unshift=function(D){var Y=_.UN.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[m4(D)].concat(_.oK(Y)))};
_.YF.Object.defineProperties(dd.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 iuU=[Array,Boolean,Date,Number,Object,String];var Dui=!1;var qx=function(){var D=HTMLElement.apply(this,arguments)||this;D.restamp=!1;D.notifyDomChange=!1;D.JSC$13436_didCallConnected=!1;D.JSC$13436_renderDebouncer=null;D.disableTemplateUpdateSignalImpl=iP()?void 0:_.ae(!1,void 0,"Ofhkwb");var Y;D.getDisableTemplateUpdate=(Y=D.disableTemplateUpdateSignalImpl)==null?void 0:Y[0];var R;D.setDisableTemplateUpdate=(R=D.disableTemplateUpdateSignalImpl)==null?void 0:R[1];return D};
_.n(qx,HTMLElement);var eyV=function(D){D.conditionSignalImpl!=null||(D.conditionSignalImpl=new Lc(_.ae(!1,void 0,"gE52Fb")));return D.conditionSignalImpl};
_.u=qx.prototype;_.u.showHideChildren=function(D){AXU(this,D,this.if)};
_.u.attributeChangedCallback=function(D,Y,R){if(this.JSC$13436_didCallConnected)throw Error("Og`"+D);D==="notify-dom-change"?this.notifyDomChange=R!==null:D==="restamp"&&(this.restamp=R!==null)};
_.u.debounceRender=function(){this.JSC$13436_renderDebouncer=_.CD(this.JSC$13436_renderDebouncer,LF,this.JSC$13436_renderImpl.bind(this));_.WX(this.JSC$13436_renderDebouncer)};
_.u.disconnectedCallback=function(){var D=(0,_.zm)(this).parentNode;(!D||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in D&&!D.host)&&nqY(this)};
_.u.connectedCallback=function(){var D=this;this.JSC$13436_didCallConnected=!0;aMD?YAU():this.style.display="none";this.parentSignalProxy.effect(function(){eyV(D).getWithPath([]);D.debounceRender()})};
_.u.render=function(){_.jR()};
_.u.JSC$13436_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var D=this.if,Y=!1;if(D){this.hasInstance()||(rXz(this),Y=!0);a:{var R=(0,_.zm)(this).parentNode;if(this.hasInstance()){var Z=this.instance.children;if((Z==null?0:Z.length)&&(0,_.zm)(this).previousSibling!==Z[Z.length-1])for(var t=0;t<Z.length;t++)(0,_.zm)(R).insertBefore(Z[t],this)}else{if(!R){R=!1;break a}w7z(this,R)}R=!0}if(!R)return}else this.restamp&&nqY(this);AXU(this,!1,D);D&&!Y&&rXz(this);MyU&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.u.hasInstance=function(){return!!this.instance};
var w7z=function(D,Y){var R=D.parentSignalProxy;if(iP()){var Z=_.a(_.ae(!0,void 0,"yf4Yhf"));var t=Z.next().value;Z=Z.next().value;R=D.parentSignalProxy}else{var X;var M=new m0((X=$ub(D))!=null?X:{},function(z){var I=HE(D.parentSignalProxy,z).getChangeRecordSignal([]);z=_.ae(void 0,void 0,"oT9mkc");var F=new Lc(z);M.effect(function(){if(D.getDisableTemplateUpdate&&!D.getDisableTemplateUpdate()){var G=I();F.notifyPath(m4(G.path),{value:G.value})}});
return F});
D.parentSignalProxy.childSignalProxies.push(M);var W=R=M}R=SQj(D.templateInfo,D.templateInfo.nodeInfoList,R,{eventListenerHost:D.eventListenerHost,hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,enabledSignal:iP()?t:void 0,getModel:function(){return $ub(D)}}).root;
D.instance={root:R,children:[],hidden:!1,signalProxy:W,getTemplateUpdatesEnabled:t,setTemplateUpdatesEnabled:Z};W=_.a(R.childNodes);for(t=W.next();!t.done;t=W.next())D.instance.children.push(t.value);(0,_.zm)(Y).insertBefore(D.instance.root,D)},$ub=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var Y={},R;
for(R in D)D.hasOwnProperty(R)&&(Y[R]=D[R]);return Y}},nqY=function(D){if(D.instance){var Y=D.instance.children;
if(Y.length){var R=(0,_.zm)(Y[0]).parentNode;if(R){R=(0,_.zm)(R);for(var Z=0;Z<Y.length;Z++)R.removeChild(Y[Z])}}iP()?D.instance.setTemplateUpdatesEnabled(!1):D.instance.signalProxy.dispose();D.instance=void 0}},AXU=function(D,Y,R){Y=Y||!R;
D.instance&&D.instance.hidden!==Y&&(D.instance.hidden=Y,caM(Y,D.instance.children))},rXz=function(D){if(iP()){var Y=D.instance;
Y&&bM(D.parentSignalProxy.owner,function(){return!Y.getTemplateUpdatesEnabled()})&&Y.setTemplateUpdatesEnabled(!0)}else D.setDisableTemplateUpdate(!1)};
_.YF.Object.defineProperties(qx.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var D=this;return bM(this.parentSignalProxy.owner,function(){return eyV(D).getWithPath([])})},
set:function(D){D||(iP()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));eyV(this).setWithPath([],!!D)}}});
_.YF.Object.defineProperties(qx,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",qx);var vqL=[],Hs=function(){var D=HTMLElement.apply(this,arguments)||this;D.as="item";D.indexAs="index";D.itemsIndexAs="itemsIndex";D.targetFramerate=20;D.notifyDomChange=!1;D.isDetached=!1;D.JSC$13443_renderDebouncer=null;D.instances=[];D.chunkingId=null;D.chunkCount=null;D.shouldMeasureChunk=!1;D.shouldContinueChunking=!1;D.renderStartTime=null;D.JSC$13443_didCallConnected=!1;return D};
_.n(Hs,HTMLElement);var oq_=function(D){D.itemSignalImpl!=null||(D.itemSignalImpl=new Lc(_.ae(vqL,void 0,"YBrqgf")));return D.itemSignalImpl},b1E=function(D,Y){Array.isArray(Y)||(Y=vqL);
oq_(D).setWithPath([],Y)};
_.u=Hs.prototype;_.u.showHideChildren=function(D){for(var Y=_.a(this.instances),R=Y.next();!R.done;R=Y.next())caM(D,R.value.children)};
_.u.notifyPath=function(D,Y){D=m4(D);D[0]==="items"&&(D.length===1?b1E(this,Y):oq_(this).setWithPath(D.slice(1),Y))};
_.u.canNotifyPath=function(D){return D==="items"};
_.u.attributeChangedCallback=function(D,Y,R){if(this.JSC$13443_didCallConnected)throw Error("Pg`"+D);D==="as"?this.as=R:D==="index-as"?this.indexAs=R:D==="items-index-as"?this.itemsIndexAs=R:D==="initial-count"?this.initialCount=Number(R):D==="notify-dom-change"?this.notifyDomChange=R!==null:D==="target-framerate"&&(this.targetFramerate=Number(R))};
_.u.disconnectedCallback=function(){this.isDetached=!0;for(var D=0;D<this.instances.length;D++)yXY(this,D);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.u.connectedCallback=function(){var D=this,Y=oq_(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var t=Y(),X=m4(t.path);if(X[0]===void 0||X[0]==="splices"||X[0]==="length")D.debounceRender();else{var M=X[0];if(M=D.instances[typeof M==="string"?Math.floor(Number(M)):M])X=[D.as].concat(_.oK(X.slice(1))),M.signalProxy.notifyPath(X,t)}});
this.JSC$13443_didCallConnected=!0;aMD?YAU():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var R=(0,_.zm)((0,_.zm)(this).parentNode),Z=0;Z<this.instances.length;Z++)R.insertBefore(this.instances[Z].root,this);this.chunkingId&&this.render()}};
_.u.debounceRender=function(){this.JSC$13443_renderDebouncer=_.CD(this.JSC$13443_renderDebouncer,LF,this.JSC$13443_renderImpl.bind(this));_.WX(this.JSC$13443_renderDebouncer)};
_.u.render=function(){this.debounceRender();_.jR()};
_.u.JSC$13443_renderImpl=function(){var D=this;if(!this.parentSignalProxy.isDisposed){var Y=this.items,R=Nn1(this,Y.length);lMD(this,Y,R);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){D.chunkingId=null;if(D.shouldMeasureChunk){var Z=performance.now()-D.renderStartTime;D.chunkCount=Math.round(Math.ceil(1E3/D.targetFramerate)/Z*D.chunkCount)||1}D.shouldContinueChunking&&D.debounceRender()}));
MyU&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var Nn1=function(D,Y){var R=Y,Z=D.instances.length;if(D.initialCount){if(D.chunkCount){var t=Math.min(Math.max(Y-Z,0),D.chunkCount);R=Math.min(Z+t,Y)}else R=Math.min(Y,D.initialCount),t=Math.max(R-Z,0),D.chunkCount=t||1;D.shouldMeasureChunk=t===D.chunkCount;D.shouldContinueChunking=R<Y;D.renderStartTime=performance.now()}return R},lMD=function(D,Y,R){for(var Z=0;Z<R;Z++){var t=D.instances[Z],X=Y[Z];
t?(t.signalProxy.setWithPath([D.as],X),t.signalProxy.setWithPath([D.indexAs],Z)):JX7(D,X,Z)}for(Y=D.instances.length-1;Y>=Z;Y--)R=D,t=Y,yXY(R,t),_.a(R.instances.splice(t,1)).next().value.signalProxy.dispose()},yXY=function(D,Y){D=D.instances[Y];
Y=(0,_.zm)(D.root);for(var R=0;R<D.children.length;R++)Y.appendChild(D.children[R])},JX7=function(D,Y,R){var Z={};
Y=Object.assign({},kr4(D),(Z[D.as]=Y,Z[D.indexAs]=R,Z[D.itemsIndexAs]=R,Z));var t=new m0(Y,function(M){if(M!==D.as&&M!==D.indexAs){if(M===D.itemsIndexAs)return HE(t,D.indexAs);var W=HE(D.parentSignalProxy,M).getChangeRecordSignal([]);M=_.ae(void 0,void 0,"T21Pqc");var z=new Lc(M);t.effect(function(){var I=W();z.notifyPath(m4(I.path),{value:I.value})});
return z}});
D.parentSignalProxy.childSignalProxies.push(t);Z=SQj(D.templateInfo,D.templateInfo.nodeInfoList,t,{eventListenerHost:D.eventListenerHost,getModel:function(){var M={};return Object.assign({},kr4(D),(M[D.as]=t.model[D.as],M[D.indexAs]=t.model[D.indexAs],M[D.itemsIndexAs]=t.model[D.indexAs],M))},
hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,methodInvocationRequirement:W94,enabledSignal:D.stampingEnabled}).root;Y={root:Z,children:[],signalProxy:t};Z=_.a(Z.childNodes);for(var X=Z.next();!X.done;X=Z.next())Y.children.push(X.value);Z=(Z=D.instances[R+1])?Z.children[0]:D;(0,_.zm)((0,_.zm)(D).parentNode).insertBefore(Y.root,Z);D.instances[R]=Y},kr4=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var Y={},R;
for(R in D)D.hasOwnProperty(R)&&(Y[R]=D[R]);return Y}};
Hs.prototype.itemForElement=function(D){var Y=this,R=this.instances.find(function(Z){return Z.children.includes(D)});
if(R)return bM(this.parentSignalProxy.owner,function(){return R.signalProxy.getWithPath([Y.as])})};
Hs.prototype.indexForElement=function(D){var Y=this.instances.findIndex(function(R){return R.children.includes(D)});
return Y>=0?Y:void 0};
_.YF.Object.defineProperties(Hs.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var D=this;return bM(this.parentSignalProxy.owner,function(){return oq_(D).getWithPath([])})},
set:function(D){b1E(this,D)}},
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}}});
_.YF.Object.defineProperties(Hs,{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",Hs);var Uub,K9z;_.xZ=new _.R6("STATE_STORE_TOKEN");Uub=new _.R6("SELECT_TOKEN");K9z=new _.R6("DISPATCH_TOKEN");var udo={getSelectFn:function(){var D;return(D=_.DH().resolve(_.cD(Uub)))!=null?D:RyS},
getDispatchFn:function(){var D;return(D=_.DH().resolve(_.cD(K9z)))!=null?D:_.Og().dispatch.bind(_.Og())},
getAppStore:function(){return _.DH().resolve(_.xZ)}},Z1U,X75=!1;var W9o=new DLE({traceAllComponents:_.f("web_tracing_all_components"),exportToCsi:_.f("web_tracing_export_to_csi"),exportBreadcrumbs:_.f("web_enable_tracing"),bufferSize:_.ZH("web_max_tracing_events"),enabledSpansArray:_.ux("web_tracing_enabled_spans"),exportToDevTools:_.f("web_tracing_export_to_devtools")});var IMn=function(){};var SAU=void 0;var hy1=function(){};
hy1.prototype.hasAttribute=function(D){if(D==="dir")return!1;if(D==="disable-upgrade"){var Y,R;return(R=(Y=this.hostElement)==null?void 0:Y.hasAttribute("disable-upgrade"))!=null?R:!1}throw Error("Qg`"+D);};
hy1.prototype.attributeChangedCallbackWrapper=function(D,Y,R){if(D==="disable-upgrade"&&this.__isUpgradeDisabled&&R===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Z;((Z=this.hostElement)!=null?Z:this).isConnected&&this.connectedCallback()}else Y===R||this.__isReflecting||this.attributeChangedCallback(D,Y,R)};
hy1.prototype.getExtraMethodsToForward=function(){for(var D=this,Y=[],R=_.a(L9U),Z=R.next(),t={};!Z.done;t={tagName$jscomp$54:void 0,name$jscomp$573:void 0},Z=R.next())t.name$jscomp$573=Z.value,Z=void 0,t.name$jscomp$573==="_setPendingProperty"?(t.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),Z=function(X){return function(M,W,z){vE(X.tagName$jscomp$54,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return D._setPendingProperty(M,W,z)}}(t)):Z=function(X){return function(){return D[X.name$jscomp$573].apply(D,
_.oK(_.UN.apply(0,arguments)))}}(t),Y.push([t.name$jscomp$573,
Z]);return Y};
for(var Vyb=ju7(TnU((0,_.r7)(hy1))),nqj=["disabled","disable-upgrade"],muz=(0,_.r7)(function(){}),qAL=new Set(Object.getOwnPropertyNames(muz.prototype)),oqU=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.oK(qAL))),w7r=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),L9U=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),H1z=new Set([].concat(_.oK(w7r),_.oK(L9U),_.oK(qAL))),xuU=_.a(H1z),P5U=xuU.next();!P5U.done;P5U=xuU.next())BSU.add(P5U.value);var vqM={created:function(){k9S(this);this.initializeInjection()}};var hyS=!1,XK=window.ShadyDOM,Bnn=["appendChild","insertBefore","removeChild","replaceChild"],QuU=[Node];XK&&QuU.push(XK.Wrapper);var O1S,cXl,Rvo={};var MI=new Set,uf="",ZW5="";var aT,C8=new Set;var zvn=new Set("context didCallReady is info params signalProxy".split(" ")),T4n="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),jHS="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var QuV=GK({entities:MBy}),BnE=new cU(QuV);var p7E=function(){return _.Aj.apply(this,arguments)||this};
_.n(p7E,_.Aj);_.YF.Object.defineProperties(p7E.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return BnE}}});
_.q([_.nr()],p7E);_.Ps=[Kc.prototype,p7E.prototype];_.QA={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var D=this,Y={};setTimeout(function(){var R;return _.MX((R=D.hostElement)!=null?R:D,"yt-live-chat-add-tooltip-target",Y)},0);
this.handler_=Y.handler},
detached:function(){if(this.handler_){var D;this.handler_.removeElementFromSupportingTooltips((D=this.hostElement)!=null?D:this)}this.handler_=null}}};_.FK=new _.R6("ICON_MANAGER_TOKEN");var Eqb=[48,20,18,16,15,13,12],hvr=new Map,N4i=new Set,ojy=new Set,yoM=new Set,vjy=new Set,bWo=new Set,JoU=new Promise(function(D){var Y=!1,R=!1,Z=!1,t=[],X=function(M){if("detail"in M)if(M=M.detail,M.name==="yt-icons")lfn(M),Y=!0;else if(M.name==="yt-sys-icons")lfn(M),R=!0;else{var W;((W=M.name)==null?0:W.includes("yt-sys-icons"))&&M.size!==24&&(lfn(M,!0),t.push(M.size),t.length===Eqb.length&&(Z=!0))}Y&&R&&Z&&(window.removeEventListener("iron-iconset-added",X),D())};
window.addEventListener("iron-iconset-added",X)}),U95=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"]]);_.Bs={};_.Bs.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.OM,computeHref_:function(D,Y){Y=Y===void 0?!1:Y;if(!D||D.commandExecutorCommand)return null;var R=mPn(D,Y);return Y||R!==null?R?_.f("enable_polymer_resin")?_.Jf(R).toString():R:null:(_.Jk(new _.AT("computeHref was null",this.is,D)),null)},
computeOptionalHref_:function(D){return this.computeHref_(D,!0)},
computeNofollow_:function(D){return D?yxi(D)?"nofollow":null:null},
computeIcon_:function(D){return D&&D.iconType?_.IT(D.iconType):""},
resolveCommand:function(D,Y,R){Y=Y===void 0?{}:Y;return _.Vu(D,this.hostElement,Y,R===void 0?!1:R)}};var duU,pc;_.gq4={};duU=null;
pc={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_=y7S(this.viewroot));_.BE(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var D=this;this.unobserve_();if(_.f("kevlar_vimio_use_shared_monitor"))x9U(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 Y=[];this.visibilityOptionVisible_&&Y.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&Y.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&Y.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=Y}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Ld9(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 D=_.K0(this.parentNode,function(R){var Z,t=(Z=R.polymerController)!=null?Z:R;return!!t.getVisibilityObserverForChild&&t.getVisibilityObserverForChild()},!0);
if(D){var Y;this.localVisibilityObserver_=((Y=D.polymerController)!=null?Y:D).getVisibilityObserverForChild()}else duU||(duU=y7S()),this.localVisibilityObserver_=duU;return this.localVisibilityObserver_},visibilityCallback:function(D){D?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.f("kevlar_use_vimio_behavior")||(pc={});pc&&!_.f("kevlar_use_vimio_behavior")&&(delete pc.attached,delete pc.detached);_.gq4.YtVisibilityObserverBehavior=[pc];var i11={};i11.YtVisualElementBehavior=[_.gq4.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.f("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.f("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var D=this.getScreenLayer&&this.getScreenLayer(),Y=this.getVisibilityLogger();Y&&Y.reportShown(this,void 0,D)}},
onHidden:function(){if(_.f("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.f("kevlar_vimio_use_shared_monitor")){var D=this.getScreenLayer&&this.getScreenLayer(),Y=this.getVisibilityLogger();Y&&Y.reportHidden(this,void 0,D)}},
getVisibilityLogger:function(){return _.f("kevlar_use_vimio_behavior")?_.ev():null},
shouldSkipLogging:function(){if(_.JQ("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var D=this.getParentRenderer&&this.getParentRenderer();if(!D)return!1;var Y,R=(Y=D.polymerController)!=null?Y:D;if(!R.data)return!1;D=this.data.trackingParams;D=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:D;var Z;Y=(Z=R.data)==null?void 0:Z.trackingParams;var t,X;Y=((t=R.data)==null?0:t.loggingDirectives)?(X=R.data)==null?void 0:X.loggingDirectives.trackingParams:Y;return D&&Y&&D===
Y}}];var B4b=new Map,bf;var FDU=function(D){this.layer=D},S3=function(D){return D.layer!==void 0?D.layer:D.parent?S3(D.parent):D.layer=0};var OWM;_.p={};OWM=0;_.p.YtRendererBehavior=[_.Bs.YtComponentBehavior,i11.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_:_.f("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var D,Y;(Y=(D=this.monitorScrollElement)!=null?D:this.hostElement)==null||Y.removeEventListener("scroll",_.jN(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Pbb(this.hostElement);anU(_.bB(),this.hostElement);cC.delete(this.hostElement)},
registerRenderer:function(D){var Y;((Y=D.polymerController)!=null?Y:D).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(D),this.markDirty())},
unregisterRenderer_:function(D){this.useVimio_||(this.childCache_.delete(D),this.markDirty())},
attached:function(){var D=this,Y=this.getParentRenderer();if(Y){var R,Z,t;(Z=(R=(t=Y.polymerController)!=null?t:Y).registerRenderer)==null||Z.call(R,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var X,M;(M=(X=this.monitorScrollElement)!=null?X:this.hostElement)==null||M.addEventListener("scroll",_.jN(this,this.onScroll))}_.yc.addJob(function(){pS5(D.hostElement)},8);
R=new FDU(this.screenLayer||void 0);(Y=cC.get(Y))&&Y.layerNode&&(R.parent=Y.layerNode);Y={};lSS(this.hostElement,(Y.isRenderer=!0,Y.layerNode=R,Y[Gij]=this.data,Y))},
getParentRenderer:function(){for(var D=this.hostElement.parentNode,Y,R;D&&((Y=cC.get(D))==null||!Y.isRenderer)&&!((R=D.polymerController)!=null?R:D).isRenderer_;)D=D.parentNode||D.host;return D},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.f("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.ks("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.f("debug_web_ve_data")&&this.data.trackingParams){var D="";try{D=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(R){_.Nb(R)}if(D){var Y=tCi(D,1);Y!==void 0&&(this.hostElement.dataset.veIndex=String(Y));D=tCi(D,2);
D!==void 0&&(this.hostElement.dataset.ve=String(D))}}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,_.f("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.oT(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Ai(_.n8(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var D=this.data.targetId;_.CvU(_.bB(),D,this.hostElement)}else anU(_.bB(),this.hostElement)},
onScroll:function(){var D=Date.now();D-this.lastHandledScroll_<50||(this.lastHandledScroll_=D,this.markDirty())},
markDirty:function(){_.f("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():coo(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var D=this.getParentRenderer();if(D&&(D=cC.get(D))&&D.layerNode)return S3(D.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.oK(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++)this.sendImpression(this.data.impressionEndpoints[D]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(D){D.clickTrackingParams&&delete D.clickTrackingParams;var Y,R;(D==null?0:(Y=D.commandMetadata)==null?0:(R=Y.webCommandMetadata)==null?0:R.sendPost)?_.zA(this.hostElement,[D,{impression:!0}]):_.Se(this.hostElement,[D],this.hostElement)},
logExplicitClick:function(D){var Y=_.K2(this.getScreenLayer());if(Y){var R,Z=(R=D.polymerController)!=null?R:D;D=Z.visualElement;Z=Z.trackingParams||Z.clickTrackingParams;!D&&Z&&(D=_.oT(Z));D&&_.dC(Y,D)}}}];var O11={},En=function(){return _.Aj.apply(this,arguments)||this};
_.n(En,_.Aj);En.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
En.prototype.onPdgItemBehaviorClick=En.prototype.onPdgItemBehaviorClick;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],En.prototype,"data",void 0);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],En.prototype,"onPdgItemBehaviorClick",null);_.q([_.nr()],En);O11.YtPdgLiveChatItemBehavior=[En.prototype,_.p.YtRendererBehavior];var cXz;var D9L;_.gt={};_.gt.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var dt=function(){var D=Za.apply(this,arguments)||this;D.switchTemplateAtRegistration=!1;return D};
_.n(dt,Za);dt.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||ZpM(this),_.buU(this,"doRender"),this.doRender())};
dt.prototype.debounceRender=function(){this.templatingFn&&_.pr(this,"doRender",this.doRender)};
dt.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Nb(Error("$g"))};
dt.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.q([FcU()],dt);var Yf1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,iB={},uY9=(iB[1]={filterString:null,isUnwrappable:null,unwrap:null},iB[2]={filterString:function(D,Y,R){return SG(R)},
isUnwrappable:function(D){return D instanceof mS},
unwrap:function(D){return HZ(D)}},iB[3]={filterString:function(D,Y,R){return Yf1.test(R)?R:lT.toString()},
isUnwrappable:function(D){return vZ(D)},
unwrap:function(D){return _.oJ(D)}},iB[4]={filterString:function(){return lT.toString()},
isUnwrappable:function(D){return D instanceof ef},
unwrap:function(D){return _.n$(D).toString()}},iB[5]={filterString:function(D,Y,R){return R},
isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D.toString()}},iB[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(D){return D instanceof _.p$},
unwrap:function(D){return sKS(D)}},iB[8]={filterString:function(D,Y,R){R=String(R).toLowerCase();
return Xyb(D,Y,R)?R:"zClosurez"},
isUnwrappable:null,unwrap:null},iB[10]={filterString:null,isUnwrappable:null,unwrap:null},iB);Dq[kd["default"]]=M25;var CtU=[];(function(){var D=p4;p4=function(Y){D==null||D(Y);Ji(function(){for(var R=0;R<Y.length;R++)WF5(Y[R])})}})();var Rv4=function(){var D=_.Aj.apply(this,arguments)||this;D.hasUnmounted=!1;return D};
_.n(Rv4,_.Aj);_.u=Rv4.prototype;_.u.beforeRegister=function(){var D=this.doIdomRender;this.templatingFn?_.Nb(Error("Zg")):(this.templatingFn=D,this.switchTemplateAtRegistration=!0,XiS(this))};
_.u.attached=function(){};
_.u.detached=function(){WF5(this.hostElement)};
_.u.renderIdom=function(){throw Error("bh");};
_.u.doIdomRender=function(){var D=this;OHy(this.hostElement,function(){D.renderIdom()})};
_.q([_.nr()],Rv4);var ZW7=[dt.prototype,Rv4.prototype];var txV,sHb=function(){return txV!==void 0?txV:txV=document.createElement("template")};
document.head.appendChild(sHb().content);var XSb;var upE,afL=function(){return upE!==void 0?upE:upE=document.createElement("template")};
document.head.appendChild(afL().content);var Mx7;var CbL=document.head,Wd1=CbL.appendChild,zvE;if(Mx7===void 0){var SfV=document.createElement("template");_.w(SfV,"\x3c!--css-build:shady--\x3e");SfV.content.insertBefore(afL().content.cloneNode(!0),SfV.content.firstChild);Mx7=SfV}zvE=Mx7;Wd1.call(CbL,zvE.content);var T4E,jH1=function(){return T4E!==void 0?T4E:T4E=document.createElement("template")};
document.head.appendChild(jH1().content);var IfD;var Fd4=document.head,Gj_=Fd4.appendChild,VxE;if(IfD===void 0){var ffD=document.createElement("template");_.w(ffD,"\x3c!--css-build:shady--\x3e");ffD.content.insertBefore(jH1().content.cloneNode(!0),ffD.content.firstChild);IfD=ffD}VxE=IfD;Gj_.call(Fd4,VxE.content);var evL=document.head,AoL=evL.appendChild,nj_;if(XSb===void 0){var roz=document.createElement("template");_.w(roz,"\x3c!--css-build:shady--\x3e");roz.content.insertBefore(sHb().content.cloneNode(!0),roz.content.firstChild);XSb=roz}nj_=XSb;AoL.call(evL,nj_.content);var wSD,$9V=function(){return wSD!==void 0?wSD:wSD=document.createElement("template")};
document.head.appendChild($9V().content);var vjL;_.O4=new _.R6("DARK_THEME_TOKEN");var D4S=new _.Dv("accessibilityProperties");var csr=new _.Dv("layoutProperties");var YEU=new _.Dv("imageType");var ojL={};if("ytAttributedStringLinkHoverColor"in ojL)throw Error("eh`ytAttributedStringLinkHoverColor");(function(D,Y){ojL[D]="value"in Y&&"unit"in Y?FF$(D,Y):function(R){try{return Y(R)}catch(Z){throw Error("ch`"+D+"`"+Z.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var bW4=function(D){var Y=this;this.holdTime=D===void 0?500:D;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(R){var Z=new CustomEvent("LONG_PRESS"),t;(t=R.changedTouches[0].target)==null||t.dispatchEvent(Z)};
this.ontouchstart=function(R){Y.longPressTimeout=_.$c(_.yc,function(){Y.onlongpress(R);Y.longPressOccurred=!0},Y.holdTime)};
this.ontouchmove=function(){_.yc.cancelJob(Y.longPressTimeout);Y.longPressTimeout=NaN;Y.longPressOccurred=!1;Y.moveOccurred=!0};
this.ontouchend=function(R){if(Y.longPressTimeout&&!Y.longPressOccurred&&!Y.moveOccurred){var Z;(Z=R.changedTouches[0].target)==null||Z.dispatchEvent(new Event("click"))}_.yc.cancelJob(Y.longPressTimeout);Y.longPressTimeout=NaN;Y.longPressOccurred=!1;Y.moveOccurred=!1}};var UTy=function(D,Y){bW4.call(this,Y);var R=this;this.callback=D;this.onlongpress=function(Z){var t;(t=R.callback)==null||t.call(R,Z)}};
_.n(UTy,bW4);var KFr=function(D,Y){var R=Object.assign({},Y);D=_.a(new Map([["ontouchstart",D.ontouchstart],["ontouchend",D.ontouchend],["ontouchmove",D.ontouchmove]]));for(var Z=D.next(),t={};!Z.done;t={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},Z=D.next()){var X=_.a(Z.value);Z=X.next().value;X=X.next().value;t.eventName$jscomp$101=Z;t.eventHandler$jscomp$1=X;Y[t.eventName$jscomp$101]=function(M){return function(W){var z;(z=R[M.eventName$jscomp$101])==null||z.call(R,W);(0,M.eventHandler$jscomp$1)(W)}}(t)}};_.Yw=new _.R6("COMMAND_HANDLER_TOKEN");var V29=new _.Dv("parallelCommand");var Asb=new _.Dv("performOnceCommand");var e0l=new _.Dv("serialCommand");var nf9=void 0;var yoL=function(){this.data=[];this.consumer=null};
yoL.prototype.push=function(D){this.consumer?this.consumer(D):this.data.push(D)};var cK={};_.ae(cK,void 0,"sgPmTd");_.ae(null,void 0,"jypsq");_.ae(null,void 0,"mWiOof");var vYU=new yoL;var NBi=[uiV,aUY,MbD,W5_,C9U,XoE,zj_,Syz];var ipr=new _.Dv("bracketTextDecorator");var gs=new _.Dv("highlightTextDecorator");_.DT=new _.R6("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var BBM=function(){},N4b;
(N4b=window.requestIdleCallback)==null||N4b.bind(window);var Efy={calledOnce:!1,state:"visible"},pio={calledOnce:!1,state:"hidden"};var lfE=new _.R6("ICON_WIZ_COMPONENT_TOKEN");_.nB=_.RT(function(D){var Y=D.icon;var R=D.active;var Z=D.className;var t=D.style;var X=D.dataSelected;var M=D.dataDisabled;var W=D.role;var z=D.animateIcon;var I=D.themeOverride;var F=D.ariaHidden;var G=D.ariaExpanded;var V=D.ariaLabel;var e=D.tabindex;var r=D.id;var l=D.size;var U=D.iconFilter;var K=D.onKeydown;return _.S(_.T,{cond:Y,then:function(){var H=_.DH().resolve(lfE);return _.S(H,{icon:Y,dataSelected:X,dataDisabled:M,animateIcon:z,themeOverride:I,ariaExpanded:G,tabindex:e,id:r,active:R,
size:l,role:W,className:Z,ariaHidden:F,ariaLabel:V,style:function(){return t!=null&&t()||l==null||!l()?t==null?void 0:t():"width: "+(l==null?void 0:l())+"px;height: "+((l==null?void 0:l())+"px;")},
iconFilter:U,onKeydown:K})}})},"b");
_.nB.idomCompat={callbacks:{onKeydown:!0}};var FKl=window.devicePixelRatio||1;var e5l=new Map([["yt_outline_bag_black_24","bag"]]);var On=function(D){var Y=this;this.margin=.1;this.whenInViewportWithMargin=D;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){Y.requestScan()});
window.addEventListener("touchend",function(){Y.requestScan()});
window.addEventListener("updateui",function(){Y.requestScan()});
var R=new _.gq((0,_.nG)(this.requestScan,this),100);window.addEventListener("scroll",function(){R.fire()},!0);
window.addEventListener("resize",(0,_.nG)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){Y.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.nG)(this.requestScan,this))};
On.prototype.observe=function(D){this.observationTargets.includes(D)||this.observationTargets.push(D)};
On.prototype.unobserve=function(D){this.observationTargets=this.observationTargets.filter(function(Y){return Y!==D})};
On.prototype.requestScan=function(){var D=this;this.scanRequested||(Ji(function(){Jo_(D)}),this.scanRequested=!0)};
var Jo_=function(D){var Y=(1+D.margin)*(document.documentElement.clientHeight||window.innerHeight);D.observationTargets=D.observationTargets.filter(function(R){var Z=R.getBoundingClientRect();(Z=Y>Z.top&&!!Z.height)&&D.whenInViewportWithMargin(R);return!Z&&R.parentNode});
D.scanRequested=!1};
On.prototype.disconnect=function(){this.observationTargets=[]};var kjY,KdE;kjY=_.a(_.ae($4$(),void 0,"O3X2wd"));_.U97=kjY.next().value;KdE=kjY.next().value;window.addEventListener("resize",function(){KdE($4$())});var hvz={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},LdU=void 0,m9U=window.innerWidth,qf7=window.innerHeight;window.addEventListener("resize",function(){LdU=void 0});var HWL;if("IntersectionObserver"in window)HWL=bmi();else{if(LdU===void 0){var x9V;x9V="matchMedia"in window?window.matchMedia(hvz.landscape+","+hvz.portrait).matches:void 0;LdU=x9V!==void 0?x9V:m9U>=930&&qf7>=550||m9U>=550&&qf7>=930}HWL=LdU?{observe:function(D){Ji(function(){var Y;(Y=D.onViewportEntered)==null||Y.call(D)})},
unobserve:function(){}}:new On(function(D){Ji(function(){var Y;
(Y=D.onViewportEntered)==null||Y.call(D)})})}var vRy=HWL;var PbD=_.RT(function(D){var Y=!1,R=_.dI("img",function(Z){_.w2(function(){Y=!0;Z.onload=null})});
_.r2(function(){var Z,t=(Z=D.data)==null?void 0:Z.call(D),X,M=(X=D.getSrc)==null?void 0:X.call(D).cb,W;Z=(W=D.config)==null?void 0:W.call(D);if(W=R.value)if(X=function(I,F){if(!Y)return M?M(I,F):I},ltU(W,Z),_.f("web_image_dont_reload_same_src")&&NwU(W,t,X))_.f("web_image_dont_reload_same_src_simulate_load")&&W.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var z;yy9(W,t||null,X,Z,(z=D.lazy)==null?void 0:z.call(D))}},"v0I2p");
return _.S("img",{el:R})},"c");
PbD.idomCompat=!0;_.Rt=_.RT(function(D){var Y=function(){var R,Z=D.data(),t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O,Wo,Sb,VU,AS,nM,Ho,KM,Xb,kE;var SD={contentMode:(t=D.contentMode)==null?void 0:t.call(D),loadedClass:(X=D.loadedClass)==null?void 0:X.call(D),isPreloaded:(M=D.isPreloaded)==null?void 0:M.call(D),notifyOnLoaded:(W=D.notifyOnLoaded)==null?void 0:W.call(D),notifyOnUnloaded:(z=D.notifyOnUnloaded)==null?void 0:z.call(D),preferredThumbnail:(I=D.preferredThumbnail)==null?void 0:I.call(D),preserveHeight:(F=D.preserveHeight)==
null?void 0:F.call(D),preserveWidth:(G=D.preserveWidth)==null?void 0:G.call(D),objectPosition:(V=D.objectPosition)==null?void 0:V.call(D),targetWidth:(e=D.targetWidth)==null?void 0:e.call(D),targetHeight:(r=D.targetHeight)==null?void 0:r.call(D),shouldShowPlaceholder:(l=D.shouldShowPlaceholder)==null?void 0:l.call(D),useWidth:(U=D.useWidth)==null?void 0:U.call(D),isToggled:(K=D.isToggled)==null?void 0:K.call(D),alt:(H=D.alt)==null?void 0:H.call(D),className:(c=D.className)==null?void 0:c.call(D),
onerror:D.onerror,onload:D.onload,style$:((Q=D.style$)==null?void 0:Q.call(D))||((E=D.style)==null?void 0:E.call(D)),color:(B=D.color)==null?void 0:B.call(D),width:(O=D.width)==null?void 0:O.call(D),height:(Wo=D.height)==null?void 0:Wo.call(D),"aria-hidden$":(Xb=(Sb=D["aria-hidden$"])==null?void 0:Sb.call(D))!=null?Xb:(VU=D.ariaHidden)==null?void 0:VU.call(D),draggable:(AS=D.draggable)==null?void 0:AS.call(D),"data-disabled$":(kE=(nM=D["data-disabled$"])==null?void 0:nM.call(D))!=null?kE:(Ho=D.dataDisabled)==
null?void 0:Ho.call(D),size:(KM=D.size)==null?void 0:KM.call(D)};return U49(Z,SD,(R=D.hideOn404)==null?void 0:R.call(D))};
return _.S(_.ej,null,_.S(_.VL,{when:function(){var R;return((R=Y())==null?void 0:R.type)==="image"}},function(){return _.S(PbD,{data:function(){return Y().image},
getSrc:{cb:function(R,Z){var t=Y().image.sources,X=Y().config.isPreloaded,M=Y().config.useWidth,W=Y().config.targetWidth,z=Y().config.targetHeight,I=Y().config.preferredThumbnail;return _.G0U(Z,t,X,M,W,z,I)||""}},
config:function(){var R=Y().config,Z;for(Z in R)R[Z]===void 0&&delete R[Z];return R},
lazy:D.renderLazy})}),_.S(_.VL,{when:function(){var R;
return((R=Y())==null?void 0:R.type)==="icon"}},function(){return _.S(_.nB,{icon:function(){return Y().iconName},
role:function(){return Y().config.role},
className:function(){return Y().config.className},
style:function(){return Y().config.style$+";width: "+(Y().config.width+"px;height: ")+(Y().config.height+"px;color: ")+(Y().config.color+";")},
ariaLabel:function(){return Y().config["aria-label$"]},
ariaHidden:function(){return Y().config["aria-hidden$"]},
dataDisabled:function(){return Y().config["data-disabled$"]},
active:function(){return Y().config.isToggled},
size:function(){return Y().config.size}})}))},"d");
_.Rt.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var QHb=function(D){return function(Y){return _.S(jZU,null,function(){var R=Y.data(),Z=_.v_(Y.config);return _.S(O9,null,function(){return void D(R,Z)})})}}(qE9),LKb=_.RT(function(D){var Y=function(Z){var t,X=_.tp(function(V){t=$d(function(){for(var e=_.a(F()),r=e.next();!r.done;r=e.next()){r=Hm5(r.value);
r=typeof r==="string"?document.createTextNode(r):r;if(!(r instanceof Node)){e=new _.AT("Part is not a node",r,typeof r);_.Nb(e);break}V.appendChild(r)}})}),M=sD(function(){return Zmi(Z())},{isEqual:h5U}),W=_.DX(D.config),z=function(){var V,e=M();
return!((V=W())==null||!V.ariaLabel)||!(e.commandRuns&&e.commandRuns.length!==0||e.paragraphStyleRuns&&e.paragraphStyleRuns.length!==0)},I=sD(W,{isEqual:PVy}),F=function(){var V=R5U(M(),I());
sVo(V,I());return M().content?WKy(M().content,V).parts:[]},G=!0;
_.r2(function(){M();I();if(G)G=!1;else{var V=F();Promise.resolve().then(function(){var e=X.value;if(e){e.innerText="";var r;(r=t)==null||r();t=_.nb(e,function(){return _.S(x4U,{parts:V})})}})}},"YJG4lf");
return _.S("span",{el:X,class:function(){return M()&&HpS(M(),W())},
dir:function(){var V;return((V=W())==null?0:V.userInput)?"auto":void 0},
"aria-label":function(){var V;return z()?(V=W())==null?void 0:V.ariaLabel:void 0},
role:function(){return z()?"text":void 0}})},R;
return((R=D.config)==null?0:R.renderedFromFormattedString)?Y(D.text):_.S(_.T,{cond:D.text,then:Y})},"e");
LKb.idomCompat=!0;_.y_=_.RT(function(D){var Y=_.DX(D.text),R=QVi(D);D.renderedFromFormattedString!==void 0&&(R.renderedFromFormattedString=!0);return _.f("attr_string_reactive")?_.S(LKb,{text:Y,config:R}):_.S(_.T,{cond:function(){var Z;return Y()&&((Z=Zmi(Y()))==null?void 0:Z.content)},
then:function(){return _.S(QHb,{data:D.text,config:R})},
debugInstance:"Apcuac"})},"f");
_.y_.idomCompat=!0;var pcr=function(D,Y,R){Y=Y===void 0?"unknown":Y;R=R===void 0?{}:R;_.AT.call(this,D+" ("+Y+")",Object.assign({},{name:"YtWcwError",tagName:Y},R));Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(pcr,_.AT);_.cyo=new WeakMap;_.Omn=!1;var imr,Don,d4i;_.cs=Symbol("gh");_.uq=Symbol("hh");imr=Symbol("ih");Don=new Set(Object.getOwnPropertyNames(Element.prototype));d4i=Symbol("jh");var B4D=_.RT(function(D){return _.S("yt-attributed-string",{"aria-label":D.ariaLabel,hidden:D.hidden,id:D.id,class:D.className,"force-default-style":D.forceDefaultStyle},_.S(_.y_,{text:D.data,ariaLabel:D.ariaLabel,ellipsisTruncate:D.ellipsisTruncate,isOverlay:D.isOverlay,linkInheritColor:D.linkInheritColor,noPreWrap:D.noPreWrap,noWrap:D.noWrap,userInput:D.userInput,noEndpoints:D.noEndpoints,headerRuns:D.headerRuns,isHeadline:D.isHeadline}))},"g");
_.f("web_wiz_attributed_string")&&_.at(B4D,"yt-attributed-string",{props:{ariaHidden:_.cs,ariaLabel:_.cs,className:_.cs,ellipsisTruncate:_.cs,isOverlay:_.cs,linkInheritColor:_.cs,noEndpoints:_.cs,noStyleRuns:_.cs,noLinkColor:_.cs,noPreWrap:_.cs,noWrap:_.cs,skipOnClick:_.cs,userInput:_.cs,headerRuns:_.cs,isHeadline:_.cs,id:_.cs,data:_.cs,hidden:_.cs,forceDefaultStyle:_.cs,text:_.uq,stopPropagation:_.uq,disableUpgrade:_.uq,disable:_.uq,slot:_.uq}});var Db=function(){return _.N.apply(this,arguments)||this};
_.n(Db,_.N);Db.prototype.renderIdom=function(){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},qE9(this.data,this.config))};
_.q([_.v(ZW7),_.x("design:type",Object)],Db.prototype,"ytIdomTemplatingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Db.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Db.prototype,"ariaLabel",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"disable",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"ellipsisTruncate",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"isOverlay",void 0);
_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"linkInheritColor",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"noPreWrap",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"noWrap",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"userInput",void 0);_.q([_.y(),_.x("design:type",Boolean)],Db.prototype,"noEndpoints",void 0);_.q([_.y(),_.x("design:type",Array)],Db.prototype,"headerRuns",void 0);
_.q([_.Lr({is:"yt-attributed-string",disableElementRegistration:!0})],Db);
_.f("web_wiz_attributed_string")||_.L(Db,"yt-attributed-string",function(){if(vjL===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
D.content.insertBefore($9V().content.cloneNode(!0),D.content.firstChild);vjL=D}D=vjL;return D},{mode:2});var pS7,Ej4,uHj;pS7=function(){this.firstThumbnailLoaded=!1};
_.gj_=function(){Ej4||(Ej4=new pS7);return Ej4};
uHj=function(D){var Y=_.gj_();Y.firstThumbnailLoaded||(Y.firstThumbnailLoaded=!0,_.KX("ftl",D))};
pS7.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Rgb=0,Xa5=new WeakMap,tTy=0,WN=new Set;var d9L,iW7=function(){return d9L!==void 0?d9L:d9L=document.createElement("template")};
document.head.appendChild(iW7().content);var OWL;var WZj,Sii,Yt;_.Tf=_.ZU.caches;Yt=function(){};
Yt.prototype.open=function(D){return _.Tf.open(co4(D))};
Yt.prototype.has=function(D){return _.Tf.has(co4(D))};
Yt.prototype.delete=function(D){return _.Tf.delete(co4(D))};
Yt.prototype.match=function(D,Y){var R=this,Z,t,X,M,W,z;return _.C(function(I){switch(I.nextAddress){case 1:return I.yield(R.keys(),2);case 2:Z=I.yieldResult,t=_.a(Z),X=t.next();case 3:if(X.done){I.jumpTo(5);break}M=X.value;return I.yield(R.open(M),6);case 6:return W=I.yieldResult,I.yield(W.match(D,Y),7);case 7:if(z=I.yieldResult)return I.return(z);X=t.next();I.jumpTo(3);break;case 5:return I.return()}})};
var Ta9=function(){};
_.n(Ta9,Yt);var co4=function(D){if(D.includes(":"))throw Error("mh`"+D);return D+":"+_.fv("CacheStorage get")};
Ta9.prototype.keys=function(){var D,Y,R,Z,t,X,M,W,z;return _.C(function(I){if(I.nextAddress==1)return D=[],Y=_.fv("CacheStorage keys"),I.yield(_.Tf.keys(),2);R=I.yieldResult;Z=_.a(R);for(t=Z.next();!t.done;t=Z.next())X=t.value,M=_.Ceb(X),W=M.originalName,z=M.datasyncId,z===Y&&D.push(W);return I.return(D)})};var R$=function(){var D=_.N.apply(this,arguments)||this;D.objectURL=null;D.loadTime=Infinity;return D};
_.n(R$,_.N);_.u=R$.prototype;_.u.renderIdom=function(){MT9(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&Jy$(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.u.objectFitToContentMode=function(D){switch(D){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.u.logThumbnailFailureVe=function(){var D=_.TP(197497);_.jF(_.n8(),D);var Y=_.K2();Y&&D&&Y&&_.E7(Y,[D])};
_.u.loadImageFromCacheIfExists=function(D){var Y=this,R=D.target;(R==null?0:R.src)&&IEj(R.src).then(function(Z){Y.objectURL=_.k7(Z).toString();Y.setSrc(R,Y.objectURL)}).catch(function(){})};
_.u.onError=function(D){var Y=this;if(_.f("web_use_cache_for_image_fallback")){var R=D.target;R&&IEj(R.src).then(function(Z){Y.objectURL=_.k7(Z).toString();Y.setSrc(R,Y.objectURL)}).catch(function(){_.f("kevlar_woffle_log_thumbnail_failure_ve")&&Y.logThumbnailFailureVe();
_.f("kevlar_woffle_fallback_image")&&Y.setSrc(R,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.u.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.u.setConfig=function(){var D=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(Y){D.loadImageFromCacheIfExists(Y);D.revokeObjectURL();aEy(D.hostElement)},
onerror:function(Y){D.onError(Y)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.f("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.u.setSrc=function(D,Y){Y&&(D.src=Y)};
_.q([_.v(ZW7),_.x("design:type",Object)],R$.prototype,"ytIdomTemplatingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],R$.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],R$.prototype,"alt",void 0);_.q([_.y(),_.x("design:type",Boolean)],R$.prototype,"ftlEligible",void 0);_.q([_.y(),_.x("design:type",Number)],R$.prototype,"height",void 0);_.q([_.y(),_.x("design:type",Boolean)],R$.prototype,"notifyOnLoaded",void 0);
_.q([_.y(),_.x("design:type",Boolean)],R$.prototype,"notifyOnUnloaded",void 0);_.q([_.y(),_.x("design:type",String)],R$.prototype,"objectFit",void 0);_.q([_.y(),_.x("design:type",String)],R$.prototype,"objectPosition",void 0);_.q([_.y(),_.x("design:type",String)],R$.prototype,"preferredThumbnail",void 0);_.q([_.y(),_.x("design:type",Boolean)],R$.prototype,"preserveHeight",void 0);_.q([_.y(),_.x("design:type",Boolean)],R$.prototype,"preserveWidth",void 0);
_.q([_.y({value:!0}),_.x("design:type",Boolean)],R$.prototype,"useWidth",void 0);_.q([_.y({value:function(){return!_.ks("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.x("design:type",Boolean)],R$.prototype,"shouldRenderLazy",void 0);_.q([_.y(),_.x("design:type",Number)],R$.prototype,"width",void 0);_.q([_.Lr({is:"yt-image",disableElementRegistration:!0})],R$);
_.L(R$,"yt-image",function(){if(OWL===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);D.content.insertBefore(iW7().content.cloneNode(!0),D.content.firstChild);
OWL=D}D=OWL;return D},{mode:2});var Zb=function(){return _.N.apply(this,arguments)||this};
_.n(Zb,_.N);Zb.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var D=_.HL(this.data.onVisibleCommand);D&&this.ytComponentBehavior.resolveCommand(D)}};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Zb.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gt.YtVisibilityBehavior),_.x("design:type",Object)],Zb.prototype,"ytVisibilityBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zb.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Zb);
_.L(Zb,"yt-bumper-user-edu-content-view-model",function(){if(D9L===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;cXz===void 0&&(cXz=document.createElement("template"));var Z=cXz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);D9L=D}D=D9L;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var DTE;var Ye1,R0U=function(){if(Ye1!==void 0)return Ye1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;DTE===void 0&&(DTE=document.createElement("template"));var Z=DTE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Ye1=D};var ZpL;_.tV={};ZpL=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"]);_.tV.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var D=this.getContext_();return D?D.getTaskManager():_.yc},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var D=_.MX(this.hostElement,"yt-get-context-provider",{});D.detail&&D.detail.contextProvider?this.cachedProviderNode_=D.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return ZpL.has(this.hostElement.localName)},
getNetworkManager:function(){var D=this.getContext_();if(D)return D.getNetworkManager()}};var Agl,t2b,Xi1,sj7;_.sc=function(D){var Y=t2b.get(D);if(Y&&(Y=Y.pop()))return sj7++,Y;Xi1++;try{var R=document.createElement(D)}catch(Z){throw new _.AT("ElementPool failed to create element",D,Z.message);}return R};
Agl=function(D){var Y=D.is;if(Y){var R=t2b.get(Y);R||(R=[],t2b.set(Y,R));var Z=_.JQ("ELEMENT_POOL_CONFIG")||{};R.length>=(Z[Y]!==void 0?Z[Y]:_.JQ("ELEMENT_POOL_DEFAULT_CAP",0))||R.push(D)}else _.Jk(new _.AT("Element pool should only handle custom elements:",D.nodeName))};
t2b=new Map;Xi1=0;sj7=0;var j7=new WeakMap,egU=new WeakMap;var a8E;_.Xh=function(D,Y,R){R=R===void 0?_.b$():R;this.JSC$13709_defaultPriority=D;this.signal=Y;this.scheduler=R;this.nextJobDescriptor=0;this.JSC$13709_parkedJobs=[];this.scheduledJobs=new Map};
_.uu=function(D,Y){if(Y){var R=_.Q0();D.signal&&!_.Bk(R,D.signal)?(R.addListener(D.signal,function(){D.processSignal()}),D.JSC$13709_parkedJobs.push({job:Y,
priority:void 0})):uYU(D,Y)}};
a8E=function(D,Y){if(Y!==D.JSC$13709_defaultPriority){D.JSC$13709_defaultPriority=Y;for(var R=_.a(D.scheduledJobs.values()),Z=R.next();!Z.done;Z=R.next())Z=Z.value,D.scheduler.cancelJob(Z.jobId),Z.jobId=D.scheduler.addJob(Z.jobWrapper,Y)}};
_.Xh.prototype.flushJobs=function(){a8E(this,10);this.processSignal()};
_.Xh.prototype.cancel=function(){for(var D=_.a(this.scheduledJobs),Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;this.scheduler.cancelJob(R.jobId);this.scheduledJobs.delete(Y)}this.JSC$13709_parkedJobs=[]};
_.Xh.prototype.processSignal=function(){for(var D=_.a(this.JSC$13709_parkedJobs),Y=D.next();!Y.done;Y=D.next())Y=Y.value,uYU(this,Y.job,Y.priority);this.JSC$13709_parkedJobs=[]};
var uYU=function(D,Y,R){R=R||D.JSC$13709_defaultPriority;if(R===10)zf(Y);else{var Z=D.nextJobDescriptor++,t=function(){Y();D.scheduledJobs.delete(Z)},X=D.scheduler.addJob(t,R);
D.scheduledJobs.set(Z,{jobWrapper:t,jobId:X,priority:R})}};_.tN($oM);var vz9={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};FUU({beforeVisit:function(D){if(MI.has(D.type)){var Y;(Y=D.props).idomKey!=null||(Y.idomKey=D.type)}else D.type.TAG_NAME&&(uf=D.type.TAG_NAME)},
afterRender:function(D,Y){var R;uf=(R=Y==null?void 0:Y.type)!=null?R:""},
didPatch:function(){uf=""}});var M27;_.a$={};M27={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.a$.YtRendererstamperBehavior=[_.tV.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 D in this.stampDom){var Y=this.stampDom[D];Y&&Y.id&&this.addReactiveSchema({type:"observe",method:{methodName:GHM(Y.id),args:[{type:"wildcard",path:D}]}})}else{(D=(this.constructor.generatedFrom||this).observers)||(D=[]);for(Y in this.stampDom){var R=this.stampDom[Y];R&&R.id&&D.push(GHM(R.id)+"("+Y+".*)")}this.constructor.generatedFrom.observers=D}},
addStampDomObserverFns_:function(){for(var D in this.stampDom){var Y=this.stampDom[D];Y.id?(this[GHM(Y.id)]=this.rendererStamperObserver_.bind(this,D,Y.id),this.hasDataPath_[D]=!1):(Y=new _.AT("Bad rendererstamper config",this.is+":"+D),_.Nb(Y))}},
rendererStamperObserver_:function(D,Y,R){if(R.path==D){if(R.value===void 0&&!this.hasDataPath_[D])return;this.hasDataPath_[D]=R.value!==void 0}this.rendererStamperApplyChangeRecord_(D,Y,R)},
rendererStamperApplyChangeRecord_:function(D,Y,R){var Z=this.renderJobsMap_[Y],t=null;D==R.path?(R=R.value,_.xn(R)||(R=R===void 0||R===null?[]:[R]),D=this.stampDom[D],D.mapping&&(t=this.stampDomArray_.bind(this,R,Y,D.mapping,D.reuseComponents,D.events,D.stamperStableList)),Z&&Z.cancel(),R=D.usePageScheduler?this.getTaskManager():void 0,Z||D.initialRenderPriority==void 0)?D.renderPriority==void 0||Z||(Z=new _.Xh(D.renderPriority,D.waitForSignal,R),this.renderJobsMap_[Y]=Z):(Z=new _.Xh(D.initialRenderPriority,
D.waitForSignal,R),this.renderJobsMap_[Y]=Z,t=function(X,M){X();a8E(M,10)}.bind(this,t,Z)):t=D+".splices"==R.path?this.stampDomArraySplices_.bind(this,D,Y,R.value):this.forwardRendererStamperChanges_.bind(this,D,Y,R);
Z?_.uu(Z,t):t()},
forwardRendererStamperChanges_:function(D,Y,R){var Z=R.path.slice(D.length+1),t=this.getStampContainer_(Y),X=Z.indexOf("."),M=Z.substring(0,X),W=!1,z=0,I=parseInt(M,0);if(M[0]=="#"){W=parseInt(M.substring(1),0);I=this.get(D);var F=this.get([D,M]);I[W]==F?z=W:z=I.indexOf(F);W=!0}else isNaN(I)||(z=I,W=!0);W&&(Z=Z.substring(M.length+1),X=Z.indexOf("."));M=_.oR(t).children[z];var G;if(t=(G=M==null?void 0:M.polymerController)!=null?G:M)Z="data"+Z.slice(X),typeof t.notifyPath!=="function"?_.Jk(new _.AT("notifyPath missing",
this.is+": "+D+", "+Y)):R.value?t.notifyPath(Z,R.value):t.notifyPath(Z)},
stampDomArraySplices_:function(D,Y,R){if(R&&R.indexSplices){var Z=this.getStampContainer_(Y);if(Z){for(var t=_.oR(Z),X=fE5(this.stampDom[D].reuseComponents),M=R.indexSplices.length,W=0;W<M;W++){for(var z=R.indexSplices[W],I=t.children[z.index],F=z.removed.length;F>0;F--)I&&I.parentElement&&(_.oR(I.parentElement).removeChild(I),X&&Agl(I),I=t.children[z.index]);F=this.stampDom[D].mapping;for(var G=z.index+z.addedCount,V=document.createDocumentFragment(),e=X,r=z.index;r<G;r++){var l=z.object[r],U=FZU(F,
l);if(U){var K=F[U];l=l[U];U=this.getComponentName_(K,l);var H=I?j7.has(I):!1;e&&I&&I.is==U&&H?(U=I,this.telemetry_.reuse++,I=I.nextElementSibling):e&&I&&H?(U=this.createComponent_(K,l,X),H=_.oR(I).nextElementSibling,t.insertBefore(U,H),rgb(this.is,t,I,X),I=H):(e=!1,U=this.createComponent_(K,l,X),V.appendChild(U));this.deferRenderStamperBinding_(U,K,l)}else K=new _.AT("Unimplemented type",D,Y,Z.tagName,Object.keys(l)[0]),_.Nb(K)}t.insertBefore(V,I)}this.flushRenderStamperComponentBindings_();this.stampDom[D].events&&
_.MX(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else D=new _.AT("Container object not found",Y,this.hostElement?this.hostElement.is:""),_.Nb(D)}},
stampDomArray_:function(D,Y,R,Z,t,X){var M=this.getStampContainer_(Y);if(M)if(Y=_.oR(M),Z=fE5(Z),D){var W=0,z=0,I;if(X=X===void 0?_.ks("STAMPER_STABLE_LIST",!1):X||!1)for(I=Y.firstElementChild;I&&!j7.has(I)&&D.length>z;){X=D[z];var F=FZU(R,X);if(F){if(this.getComponentName_(R[F],X[F])!=I.is){var G=this.createComponent_(R[F],X[F],Z),V=_.oR(I).nextElementSibling;V?Y.insertBefore(G,V):Y.appendChild(G);rgb(this.is,Y,I,Z);I=G}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(I,R[F],X[F]);W++;
z++;I=_.oR(I).nextElementSibling}else z++}wa5(this.is,Y,W,Z);W=I;if(D.length>z){X=document.createDocumentFragment();for(F=D.length;z<F;z++)if(G=D[z],V=FZU(R,G))I=this.createComponent_(R[V],G[V],Z),this.deferRenderStamperBinding_(I,R[V],G[V]),X.appendChild(I);W&&_.oR(W).parentNode&&I&&!j7.has(I)?Y.insertBefore(X,W):Y.appendChild(X)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();t&&_.MX(this.hostElement,"yt-rendererstamper-finished",{container:M})}else wa5(this.is,Y,0,
Z);else D=new _.AT("Container object not found",Y,this.hostElement?this.hostElement.is:""),_.Nb(D)},
getStampContainer_:function(D){return this.$&&this.$[D]||_.aU(this.hostElement).querySelector("#"+D)},
getComponentName_:function(D,Y){return typeof D==="string"?D:D.matcher?D.matcher.call(this,Y):D.component},
createComponent_:function(D,Y,R){D=this.getComponentName_(D,Y);try{var Z=C8.has(D)||MI.has(D);if(R&&!Z){var t=_.sc(D);try{_.SN(t)}catch(X){R="Failed to clear styles for "+D+".",X.message&&(R+=" Original error: "+X.message),_.Jk(new _.AT(R))}}else t=document.createElement(D)}catch(X){return t="YtRendererStamperBehavior failed to create "+D+".",X.message&&(t+=" Original description: "+X.message),X.message="YtRendererStamperBehavior failed to create element",_.kN(X,t),M27.hasOwnProperty(D)?_.Jk(X):_.Nb(X),
document.createElement("SPAN")}this.telemetry_.create++;return t},
deferRenderStamperBinding_:function(D,Y,R){this.deferredBindingTasks_.push({component:D,typeOrConfig:Y,data:R})},
flushRenderStamperComponentBindings_:function(){for(var D=0,Y=this.deferredBindingTasks_.length;D<Y;D++){var R=this.deferredBindingTasks_[D];if(!R)break;var Z=void 0,t=void 0,X=void 0,M=void 0,W=R.component,z=R.typeOrConfig;R=R.data;var I=(M=W.polymerController)!=null?M:W;M=W.loggingStatus;try{M&&(M.isRendererStamper=!0);if(typeof z!=="string"){for(X in z.attributes)z.attributes[X]===!0?W.setAttribute(X,""):z.attributes[X]===!1?W.removeAttribute(X):W.setAttribute(X,z.attributes[X]);for(t in z.params)I[t]=
z.params[t],W!==I&&vE(W.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Z in z.properties){var F=z.properties[Z];if(F){var G=VTl(F);I[Z]=this.get(G);W!==I&&vE(W.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Z==="on-tap"||Z==="on-click"){var V=this.get(G);W.addEventListener("click",V);egU.set(W,{property:Z,listener:{type:"element",eventName:"click",handler:V}})}}else{var e=new _.AT("Undefined property binding",Z);_.Nb(e)}}}if(z.classListBinding){var r=VTl(z.classListBinding),
l=r?this[r]:null;if(l)for(Z=0;Z<l.length;Z++)_.Cr(W,l[Z],!0)}I.data=R}finally{M&&(M.isRendererStamper=!1)}if(Z=j7.get(W))W.hidden=!1,j7.delete(W),_.yc.cancelJob(Z)}this.deferredBindingTasks_.length=0}}];_.MQ=new _.R6("KEY_MANAGER_TOKEN");var ozj={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"};_.PK=_.RT(function(D){var Y=_.dI("a",D.ref),R=D.aTagConfig?D.aTagConfig:_.Si(function(){var Z,t,X,M,W;var z=(W=_.HL((X=D.command)==null?void 0:X.call(D)))!=null?W:(M=D.command)==null?void 0:M.call(D);return _.PL({innertubeCommand:z,skipOnClick:(Z=D.skipOnClick)==null?void 0:Z.call(D),defaultTarget:(t=D.target)==null?void 0:t.call(D)})||{}},void 0,"I5WLmc");
_.r2(function(){Y.value._data=R()._data;Y.value.params=R().params},"STb8Se");
return _.S("a",{el:Y,href:function(){return R().href$},
rel:function(){return R().rel$},
class:function(){var Z,t;return(t=R().className)!=null?t:(Z=D.className)==null?void 0:Z.call(D)},
style:function(){var Z;if((Z=D.style)==null?0:Z.call(D))return D.style();var t;return((t=D.disabled)==null?0:t.call(D))?"pointer-events:none":""},
"aria-haspopup":function(){return!!R()["aria-haspopup$"]},
"force-new-state":Gf(function(){return R()["force-new-state$"]}),
title:Gf(function(){var Z,t;return(t=R().title$)!=null?t:(Z=D.title)==null?void 0:Z.call(D)}),
role:Gf(function(){var Z;return((Z=D.role)==null?void 0:Z.call(D))||R().role$}),
target:Gf(function(){return R().target$}),
dir:Gf(function(){var Z;return((Z=D.dir)==null?void 0:Z.call(D))||R().dir}),
tabindex:function(){var Z;return R().tabindex$?Number(R().tabindex$):(Z=D.tabIndex)==null?void 0:Z.call(D)},
"aria-hidden":function(){var Z,t;return(t=R()["aria-hidden$"])!=null?t:(Z=D.ariaHidden)==null?void 0:Z.call(D)},
"aria-label":function(){var Z,t;return(t=R()["aria-label$"])!=null?t:(Z=D.ariaLabel)==null?void 0:Z.call(D)},
"aria-current":D.ariaCurrent,"aria-disabled":D.disabled,"aria-labelledby":D.ariaLabelledby,"aria-describedby":D.ariaDescribedby,"aria-selected":D.ariaSelected,"tab-identifier":D.tabIdentifier,"on:pointerdown":_.F4(function(Z){var t,X;return void((X=(t=R()).onpointerdown)==null?void 0:X.call(t,Z))}),
"on:click":_.F4(function(Z){var t,X;(X=(t=R()).onclick)==null||X.call(t,Z);var M;(M=D.onClick)==null||M.call(D,Z)}),
"on:focusin":_.F4(function(Z){var t;(t=D.onFocusin)==null||t.call(D,Z)}),
"on:focusout":_.F4(function(Z){var t;(t=D.onFocusout)==null||t.call(D,Z)})},D.children)},"h");var KZy={duration:1E3,easing:"ease",fill:"forwards"};_.tN(Uo$);var LZU={duration:1E3,easing:"ease",fill:"forwards"},z0U=_.RT(function(D){var Y=_.dI("animated-rolling-character"),R=void 0,Z=function(){var t,X;return Di((t=D.character)==null?void 0:t.call(D))||Di((X=D.previousCharacter)==null?void 0:X.call(D))};
_.r2(function(){if(D.marginMultiplier()){var t;(t=R)==null||t.cancel();if(Z()){var X;t=((X=D.previousCharacter)==null?0:X.call(D))?Number(D.previousCharacter())+10:D.rollUp()?0:30;var M;if((M=D.shouldAnimate)==null||!M.call(D)){var W,z;t-=hg5((W=D.character)==null?void 0:W.call(D),(z=D.previousCharacter)==null?void 0:z.call(D),D.rollUp(),t)}}else{t=D.rollUp()?0:2;var I;(I=D.shouldAnimate)!=null&&I.call(D)||(X=t,M=D.rollUp()?-1:1,t=X-M)}Y.value.style.marginTop="-"+t*D.marginMultiplier()+"px";var F;
if((F=D.shouldAnimate)==null?0:F.call(D)){var G,V;R=mol(Y.value,(G=D.character)==null?void 0:G.call(D),(V=D.previousCharacter)==null?void 0:V.call(D),D.rollUp(),t,Z(),D.marginMultiplier())}else{var e;Y.value.style.display=((e=D.character)==null?0:e.call(D))?"":"none"}}},"vt9b9b");
return _.S("animated-rolling-character",{el:Y,class:"animated-rolling-character-wiz"},_.S(_.T,{cond:Z,then:function(){return _.S(CtV,null)},
else:function(){return _.S(WF7,{character:D.character})}}))},"i");
z0U.idomCompat=!0;var qi9=_.f("web_enable_sink_animated_rolling_character_and_number")?z0U:Uo$,Se_=_.f("web_enable_sink_animated_rolling_character_and_number")?z0U:_.Vv(Uo$),CtV=_.RT(function(){for(var D=[],Y=1;Y<30;Y++)D.push(_.S("div",null,Y%10));return _.S(_.c_,null,_.S("div",null,"\u00a0"),D,_.S("div",null,"\u00a0"))},"j"),WF7=_.RT(function(D){var Y=D.character;
return _.S(_.c_,null,_.S("div",null,"\u00a0"),_.S(_.T,{cond:function(){return!(Y==null?0:Y())||_.M$(Y==null?void 0:Y())},
then:function(){return _.S("div",null,"\u00a0")},
else:function(){return _.S("div",null,Y)}}),_.S("div",null,"\u00a0"))},"k");_.tN(Hd9);var TBU=_.RT(function(D){var Y=void 0,R=void 0,Z=function(){var X;return((X=D.fontSizeMultiplier)==null?0:X.call(D))?D.heightPx()*D.fontSizeMultiplier():D.heightPx()},t=_.Si(function(){if(!D.numberText())return[];
var X,M,W=((X=D.forceRollUp)==null?void 0:X.call(D))||!R||!((M=D.numberValue)==null?0:M.call(D))||R<D.numberValue(),z,I=D.numberText();X=Z();M=!((z=D.shouldAnimate)==null||!z.call(D));z=[];var F=0,G=0,V=(Y?Y.replace(/\D/g,"").length:0)-(I?I.replace(/\D/g,"").length:0),e=Y?Y.split(/(\d)/).filter(Boolean):[];for(I=I.split(/(\d)/).filter(Boolean);V<0;){var r=I[G];z.push({character:r,rollUp:W,marginMultiplier:X,shouldAnimate:M});G++;Di(r)&&V++}for(;F<V;)r=e[F],z.push({previousCharacter:r,rollUp:W,marginMultiplier:X,
shouldAnimate:M}),F++,Di(r)||V++;for(;G<I.length;)V=I[G],r=e[F],Di(V)===Di(r)?(G++,F++):Di(V)?(F++,V=void 0):Di(r)&&(G++,r=void 0),z.push({character:V,previousCharacter:r,rollUp:W,marginMultiplier:X,shouldAnimate:M});Y=D.numberText();var l;R=(l=D.numberValue)==null?void 0:l.call(D);return z},void 0,"B9AmNd");
return _.S("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return D.numberText()?["height: "+Z()+"px;","line-height: "+D.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.S(_.G6,{each:t,keyBy:"INDEX"},function(X){return _.S(Se_,{character:function(){return X().character},
previousCharacter:function(){return X().previousCharacter},
marginMultiplier:function(){return X().marginMultiplier},
rollUp:function(){return X().rollUp},
shouldAnimate:function(){return X().shouldAnimate}})}))},"l");
TBU.idomCompat=!0;_.jjU=_.f("web_enable_sink_animated_rolling_character_and_number")?TBU:Hd9;_.I8V=_.f("web_enable_sink_animated_rolling_character_and_number")?TBU:_.Vv(Hd9);var FFU=function(D,Y){this.fillAnimation=new Animation(xo5(D),document.timeline);this.strokeAnimation=new Animation(Pej(Y),document.timeline)};
FFU.prototype.play=function(){var D,Y;(Y=(D=this.fillAnimation).play)==null||Y.call(D);var R,Z;(Z=(R=this.strokeAnimation).play)==null||Z.call(R)};
FFU.prototype.cancel=function(){var D,Y;(Y=(D=this.fillAnimation).cancel)==null||Y.call(D);var R,Z;(Z=(R=this.strokeAnimation).cancel)==null||Z.call(R)};_.CO=_.RT(function(D){var Y=D.model;var R=D.pointerDownEvent;var Z=D.pointerUpEvent;var t=D.pointerLeaveEvent;D=_.dI("div");var X=_.Ap({"border-radius":function(){return Y().borderRadius}}),M=_.dI("div"),W=_.dI("div"),z=_.a(_.fB(function(){return(Z==null?0:Z())||(t==null?0:t())?!1:!(R==null||!R())||!1})),I=z.next().value,F=z.next().value,G=void 0,V=function(){!G&&W.value&&M.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(G=new FFU(W.value,M.value));
var H;(H=G)==null||H.play()},e=function(){var H;
(H=G)==null||H.cancel()},r=function(){var H;
(H=G)==null||H.cancel()};
_.r2(function(){(Z==null?0:Z())&&V()},"YjVIpd");
_.r2(function(){(R==null?0:R())&&e()},"UrXvqb");
_.r2(function(){(t==null?0:t())&&r()},"QK6L8b");
z=_.F4(function(){V();F(!1)});
var l=_.F4(function(){e();F(!0)}),U=_.F4(function(){r();
F(!1)});
_.w2(function(){if(G){var H;(H=G)==null||H.cancel();G=void 0}});
var K={};I=_.e7("yt-spec-touch-feedback-shape",function(){return QS9(Y().color)},(K["yt-spec-touch-feedback-shape--focused"]=function(){return!!Y().focused&&!Y().disabled},K["yt-spec-touch-feedback-shape--circular"]=function(){return!!Y().circular},K["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!Y().isExtended},K["yt-spec-touch-feedback-shape--down"]=I,K["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!Y().triggerEvents},K));
return _.S("yt-touch-feedback-shape",{style:_.Ap({"border-radius":"inherit"})},_.S("div",{el:D,class:I,style:_.Ap({"margin-top":function(){return Y().customTopExtend?"-"+Y().customTopExtend+"px":void 0}}),
"on:mousedown":l,"on:mouseup":z,"on:pointerleave":U,"on:touchstart":l,"on:touchend":z,"aria-hidden":!0},_.S("div",{class:"yt-spec-touch-feedback-shape__stroke",style:X,el:M}),_.S("div",{class:"yt-spec-touch-feedback-shape__fill",style:X,el:W})))},"m");
_.CO.idomCompat=!0;var G$V={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 WM=_.Il();WM=WM.toLowerCase();if(_.CM(WM,"android")){var V2U=WM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);V2U&&parseFloat(V2U[1])<100||WM.match("("+Object.keys(G$V).join("|")+")")};var f8z=_.RT(function(D){return _.S(_.T,{cond:D.aTagConfig,then:function(Y){return _.S(_.PK,{aTagConfig:Y,disabled:D.disabled,className:D.className,style:D.style,title:D.title,ariaLabel:D.ariaLabel,ariaCurrent:function(){var R,Z;return((R=D.toggleable)==null?void 0:R.call(D))&&((Z=D.toggled)==null?void 0:Z.call(D))},
ref:D.ref},D.children)},
else:function(){return _.S("button",{el:_.tp(D.ref),"on:click":_.F4(function(Y){var R;return(R=D.onClick)==null?void 0:R.call(D,Y)}),
class:D.className,title:D.title,style:D.style,disabled:D.disabled,"aria-pressed":function(){var Y,R;return((Y=D.toggleable)==null?0:Y.call(D))?!((R=D.toggled)==null||!R.call(D)):void 0},
"aria-label":D.ariaLabel,"aria-disabled":D.visiblyDisabled,"aria-hidden":D.ariaHidden,tabindex:D.tabIndex},D.children)}})},"n"),AsD=_.RT(function(D){var Y=D.data;
var R=D.hasIconLeading;var Z=D.hasIconLeadingTrailing;var t=D.hasIconTrailing;var X=D.iconButton;var M=D.iconClassName;var W=D.secondaryIconClassName;var z=D.icon;var I=D.secondaryIcon;var F=D.textContentClassName;return _.S(zV,{className:"",style:"display: inherit; justify-content: center"},_.S(_.T,{debugInstance:"V4z1Uc",cond:function(){return z&&(R()||Z()||(X==null?void 0:X()))},
then:function(){return _.S(zV,null,_.S("div",{class:M,"aria-hidden":"true"},z==null?void 0:z()))}}),_.S(_.T,{debugInstance:"ok3btb",
cond:function(){return(Y().buttonText||Y().animatedTextProps||Y().formattedButtonText)&&!(X==null?0:X())},
then:function(){return _.S(zV,null,_.S(e0z,{className:F,iconPosition:function(){return Y().iconPosition},
text:function(){return Y().buttonText},
oneOffCustomTextWrap:function(){return Y().oneOffCustomTextWrap},
formattedButtonText:function(){return Y().formattedButtonText},
animatedTextProps:function(){return Y().animatedTextProps}}))}}),_.S(_.T,{debugInstance:"DO5Rz",
cond:t,then:function(){return _.S(zV,null,_.S("div",{class:M},z==null?void 0:z()))}}),_.S(_.T,{debugInstance:"bnojSc",
cond:Z,then:function(){return _.S(zV,null,_.S("div",{class:W},I==null?void 0:I()))}}),_.S(_.T,{debugInstance:"HN3kad",
cond:function(){return!Y().disabled&&!0},
then:function(){return _.S(_.CO,{model:function(){var G=Y();return{color:G.style==="overlay-dark"?4:G.style==="overlay"?G.type==="filled"?4:3:G.type==="filled"||G.style==="call-to-action-inverse"||G.style==="mono-inverse"?2:1}}})}}))},"o"),e0z=_.RT(function(D){var Y=function(){var R,Z;
return((R=D.iconPosition)==null?void 0:R.call(D))==="icon-with-label"||((Z=D.oneOffCustomTextWrap)==null?void 0:Z.call(D))};
return _.S("div",{class:D.className,"aria-hidden":function(){var R,Z,t;return((R=D.ariaHidden)==null?void 0:R.call(D))&&(!((Z=D.animatedTextProps)==null||!Z.call(D))||!((t=D.formattedButtonText)==null||!t.call(D)))}},_.S(_.ej,null,_.S(_.VL,{when:function(){var R;
return(R=D.animatedTextProps)==null?void 0:R.call(D)}},function(){return _.S(_.I8V,{numberText:function(){return D.animatedTextProps().numberText},
numberValue:function(){return D.animatedTextProps().numberValue},
heightPx:function(){return D.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return D.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return D.animatedTextProps().shouldAnimate},
forceRollUp:function(){return D.animatedTextProps().forceRollUp}})}),_.S(_.VL,{when:function(){var R;
return(R=D.formattedButtonText)==null?void 0:R.call(D)}},function(){return _.S(_.y_,{text:function(){return Object.assign({},D.formattedButtonText(),{lineBreakMode:Y()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":D.formattedButtonText().lineBreakMode,
alignment:Y()?"TEXT_ALIGNMENT_CENTER":D.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!Y()}})}),_.S(_.VL,{when:function(){var R,Z;
return((R=D.iconPosition)==null?void 0:R.call(D))==="icon-with-label"&&((Z=D.text)==null?void 0:Z.call(D))}},function(){return _.S(_.y_,{text:function(){return{content:D.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.S(_.fb,null,function(){return D.text})))},"p"),nfU=_.RT(function(D){return _.S(_.T,{debugInstance:"kM7Sgc",
cond:D.hasLabel,then:function(){var Y;return _.S("label",{class:D.className},D.children,(Y=D.textContent)==null?void 0:Y.call(D))},
else:function(){return D.children}})},"q"),zV=_.RT(function(D){return D.children},"r");var rsL=_.RT(function(D){var Y=_.tp(),R=_.a(_.ae(void 0,void 0,"Z7xOte")),Z=R.next().value,t=R.next().value;R=_.a(_.ae(void 0,void 0,"ppqp2e"));var X=R.next().value,M=R.next().value;R=_.a(_.ae(0,void 0,"bD1Mhe"));var W=R.next().value,z=R.next().value;R=_.F4(function(){switch(W()){case 1:z(2);break;case 3:var F,G;(G=(F=Y.value).hidePopover)==null||G.call(F);z(0);t(void 0);M(void 0)}});
_.r2(function(){if(D.show()){var F;t((F=D.children)==null?void 0:F.call(D));var G;M((G=D.location)==null?void 0:G.call(D));switch(W()){case 0:var V,e;(e=(V=Y.value).showPopover)==null||e.call(V);z(1);break;case 3:z(1);var r,l;(l=(r=Y.value).hidePopover)==null||l.call(r);var U,K;(K=(U=Y.value).showPopover)==null||K.call(U)}}else switch(W()){case 2:z(3);break;case 1:var H,c;(c=(H=Y.value).hidePopover)==null||c.call(H);t(void 0);M(void 0);z(0)}},"vFJRcd");
_.$s(function(){});
var I={};return _.S("yt-popover",{popover:"manual",el:Y,style:_.Ap({left:function(){var F;return(F=X())==null?void 0:F.left},
top:function(){var F;return(F=X())==null?void 0:F.top},
bottom:function(){var F;return(F=X())==null?void 0:F.bottom},
right:function(){var F;return(F=X())==null?void 0:F.right}}),
class:_.e7("ytPopoverComponentHost",D.classNames,(I.ytPopoverComponentHostClosing=function(){return W()===3},I.ytPopoverComponentHostSeeThrough=function(){var F;
return((F=D.seeThrough)==null?void 0:F.call(D))===!0},I)),
"on:animationend":R},Z)},"s");var wiE={left:"0px",right:"auto",top:"0px",bottom:"auto"},$TE=function(){var D=this;this.registerTooltipElement=function(R){var Z;D.tooltipElement=(Z=R.querySelector("yt-popover"))!=null?Z:void 0};
var Y=_.a(_.ae(void 0,void 0,"z4iHWd"));this.state=Y.next().value;this.setState=Y.next().value;Y=_.a(_.ae(void 0,void 0,"uKDcaf"));this.schedulerJobID=Y.next().value;this.setSchedulerJobID=Y.next().value},Djn=function(D,Y){var R=w1,Z=_.yc.addJob(function(){var t=vfL(R,D,Y);
R.setState({text:Y.text,location:t,anchor:D,offset:Y.offset})},4,Y.delay);
R.setSchedulerJobID(Z)},Yh$=function(){var D=w1,Y=D.schedulerJobID();
Y&&(_.yc.cancelJob(Y),D.setSchedulerJobID(void 0));D.setState(void 0)};
$TE.prototype.notify=function(D,Y){var R;((R=this.state())==null?void 0:R.anchor)===D&&(R=vfL(this,D,Y),this.setState({text:Y.text,location:R,anchor:D,offset:Y.offset}))};
var vfL=function(D,Y,R){var Z=Y.getBoundingClientRect();Y=window.innerWidth;var t=window.innerHeight,X=R.location,M=R.offset;R=R.text;if(D=D.tooltipElement){var W=getComputedStyle(D);D=W.font;var z=r1(W.lineHeight),I=r1(W.paddingLeft),F=r1(W.paddingRight),G=r1(W.paddingTop);W=r1(W.paddingBottom);var V=document.createElement("canvas").getContext("2d");V.font=D;R={width:V.measureText(R).width+I+F,height:z+G+W}}else R=void 0;D=R;if(!D)return wiE;R=D.width;D=D.height;I=M+D;G=M+R;z=Z.top>=I;I=t-Z.bottom>=
I;F=Z.left>=G;G=Y-Z.right>=G;W=X;switch(X){case "top":!z&&I&&(W="bottom");break;case "bottom":!I&&z&&(W="top");break;case "left":!F&&G&&(W="right");break;case "right":!G&&F&&(W="left")}switch(W){case "top":X=Z.left+Z.width/2-R/2;Z=Z.top-D-M;break;case "bottom":X=Z.left+Z.width/2-R/2;Z=Z.bottom+M;break;case "left":X=Z.left-R-M;Z=Z.top+Z.height/2-D/2;break;case "right":X=Z.right+M;Z=Z.top+Z.height/2-D/2;break;default:X=Z.left+Z.width/2-R/2,Z=Z.bottom+M}M=Object.assign({},wiE);X+R>Y?(M.right="0px",M.left=
"auto"):(M.left=Math.round(Math.max(0,X)+window.scrollX)+"px",M.right="auto");Z+D>t?(M.bottom="0px",M.top="auto"):(M.top=Math.round(Math.max(0,Z)+window.scrollY)+"px",M.bottom="auto");return M};var w1;w1=new $TE;_.of7=_.RT(function(){var D=_.Si(function(){var R;return(R=w1.state())==null?void 0:R.text},void 0,"KoaMVc"),Y=_.Si(function(){var R;
return(R=w1.state())==null?void 0:R.location},void 0,"R6s5tc");
return _.S("yt-tooltip",{class:"ytTooltipContainerHost",el:_.tp(w1.registerTooltipElement),"aria-hidden":"true"},_.S(rsL,{classNames:"ytTooltipContainerContent",location:Y,show:function(){return!!D()},
seeThrough:!0},D))},"t");var CEj=ig("stamper-context");_.Sn=_.RT(function(D){var Y=D.data;var R=D.icon;var Z=D.iconName;var t=D.animateIcon;var X=D.secondaryIcon;var M=D.secondaryIconName;var W=D.focusedOverride;var z=D.clientOnlyWizTooltipsEnabled;_.$P();var I=Ba$(Y),F=I.size,G=I.style;D=I.disabled;var V=I.onTap,e=I.alignByText,r=I.aTagConfig,l=I.customColors,U=I.segmentedPosition,K=I.toggled,H=I.toggleable,c=I.accessibilityLabel,Q=I.onToggle,E=I.iconPosition,B=I.oneOffCustomTextWrap,O=I.disableTextEllipsis,Wo=I.disableBackdropFilter,Sb=I.tooltipText,
VU=I.ariaHidden,AS=I.tabIndex,nM=I.buttonText,Ho=I.formattedButtonText,KM=I.animatedTextProps,Xb=doU(Y,R,X,Z,M,W,t),kE=Xb.type;R=Xb.shouldFocus;Z=Xb.hasIconLeading;t=Xb.hasIconTrailing;var SD=Xb.hasIconLeadingTrailing,co=Xb.hasIconOnly;X=Xb.hasIconOnly40;var GE=Xb.hasIconWithLabel;M=Xb.iconButton;var TE=Xb.visiblyDisabled;W=Xb.overrideSmallSizeIcon;I=Xb.iconToRender;Xb=Xb.secondaryIconToRender;var yV=_.a(RQb(Sb)).next().value,vu={},dz={};return _.S(nfU,{className:_.e7("yt-spec-button-shape-with-label",
(vu["yt-spec-button-shape-with-label--is-overlay"]=function(){return G()==="overlay"||G()==="overlay-dark"},vu)),
hasLabel:GE,textContent:function(){return _.S(e0z,{text:nM,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:B,iconPosition:E,formattedButtonText:Ho,animatedTextProps:KM})}},_.S(f8z,{aTagConfig:r,
className:_.e7("yt-spec-button-shape-next",function(){return idM(kE())},function(){return TE()?void 0:OdU(G())},function(){return cgi(F())},(dz["yt-spec-button-shape-next--disabled"]=TE,dz["yt-spec-button-shape-next--focused"]=R,dz["yt-spec-button-shape-next--icon-trailing"]=t,dz["yt-spec-button-shape-next--icon-leading"]=Z,dz["yt-spec-button-shape-next--icon-leading-trailing"]=SD,dz["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return SD()&&!(nM()||Ho())},dz["yt-spec-button-shape-next--icon-button"]=
function(){return co()||GE()},dz["yt-spec-button-shape-next--icon-only-default"]=X,dz["yt-spec-button-shape-next--align-by-text"]=e,dz["yt-spec-button-shape-next--segmented-start"]=function(){return U()==="start"},dz["yt-spec-button-shape-next--segmented-end"]=function(){return U()==="end"},dz["yt-spec-button-shape-next--override-small-size-icon"]=W,dz["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=B,dz["yt-spec-button-shape-next--disable-text-ellipsis"]=O,dz["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Wo()&&!_.f("web_disable_backdrop_filter")},dz)),
style:function(){var sy=l();if(sy){var D_=sy.color;var fL=sy.backgroundColor;sy=sy.borderColor;var zT="";D_&&(zT+="color: "+D_+";");fL&&(zT+="background-color: "+fL+";");sy&&(zT+="border-color: "+sy+";");D_={style:zT}}else D_={};return D_.style},
onClick:function(sy){V==null||V(sy);H()&&(Q==null||Q(sy))},
disabled:D,ariaLabel:c,toggleable:H,toggled:K,title:function(){return(z==null?0:z())||!Sb()?"":Sb()},
visiblyDisabled:TE,ariaHidden:VU,tabIndex:AS,ref:function(sy){(z==null?0:z())&&yV(sy)}},_.S(AsD,{data:Y,
hasIconLeading:Z,hasIconLeadingTrailing:SD,hasIconTrailing:t,iconButton:M,icon:I,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:Xb})))},"u");
_.Sn.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.at(_.RT(function(D){var Y=D.data;var R=D.id;var Z=D.className;var t=D.iconName;var X=D.animateIcon;var M=D.secondaryIconName;D=_.a(_.ae(!1,void 0,"x6aL5"));var W=D.next().value,z=D.next().value,I=function(){var G=_.DH().resolve(_.cD(_.MQ));G&&z(G.isKeyBoardInUse())},F=function(){z(!1)};
D=_.dI("yt-button-shape",function(G){if(_.DH().resolve(_.cD(_.MQ)))return G.addEventListener("focusin",I),G.addEventListener("focusout",F),function(){G.removeEventListener("focusin",I);G.removeEventListener("focusout",F)}});
return _.S("yt-button-shape",{el:D,id:R,class:Z},_.S(_.T,{cond:Y,then:function(){return _.S(_.Sn,{data:Y,iconName:t,secondaryIconName:M,focusedOverride:W,animateIcon:X})}}))},"v"),"yt-button-shape",{props:{data:_.cs,
id:_.cs,className:_.cs,iconName:_.cs,animateIcon:_.cs,secondaryIconName:_.cs,clientOnlyWizTooltipsEnabled:_.cs,disableUpgrade:_.cs},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});_.at(_.RT(function(D){function Y(){R().seconds&&X(SnU({seconds:Number(R().seconds)-Date.now()/1E3}))}
var R=D.targetTimestamp;D=D.className;var Z=_.a(_.ae("",void 0,"U1Q8Ae")),t=Z.next().value,X=Z.next().value;_.rf(function(){Y();var M=setInterval(function(){Y()},1E3);
_.w2(function(){clearInterval(M)})});
return _.S("yt-countdown",{class:_.e7("ytCountDownHost",D)},_.S("div",null,t))},"w"),"yt-countdown",{props:{targetTimestamp:_.cs,
className:_.uq}});_.TV=_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.style;var t=D.useOutlinedIcon;var X=D.buttonOverrides;var M=D.animatedTextProps;var W=D.onClick;var z=D.target;var I=_.dI("button-view-model",function(H){H.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var c=Y().targetId;c&&_.CvU(_.bB(),c,H);return function(){anU(_.bB(),H)}}),F=function(){return Y().iconName},G,V=(G=_.DH().resolve(_.cD(_.O4)))==null?void 0:G(),e=function(){var H=Y();
var c=X==null?void 0:X(),Q=M==null?void 0:M(),E=z==null?void 0:z();if(H){var B=Mgj(H.type);var O=!!H.title||!!H.titleFormatted;var Wo=!(!H.iconName&&!H.iconImage);O=Wo&&!O?"icon-only":Wo?H.iconTrailing||H.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;O==="icon-only-40"&&(B="text");var Sb,VU=(Sb=c==null?void 0:c.disabled)!=null?Sb:H.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||H.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";Q=Q&&Q.numberText&&!isNaN(Number(Q.numberValue))?
Q:void 0;Sb=Object;Wo=Sb.assign;var AS=H.title,nM=H.titleFormatted,Ho=H.accessibilityText,KM=agn(H.style),Xb=CZi(H.state),kE=WE$(H.buttonSize);E=uRr(H,I,VU,W,E);VU=VU&&!H.onDisabledTap;var SD=sAU(H,I),co=H.customFontColor,GE=H.customBackgroundColor;var TE=H.customBorderColor;var yV=H.customDarkThemeFontColor,vu=H.customDarkThemeBackgroundColor,dz=H.customDarkThemeBorderColor;co=V&&yV?yV:co;GE=V&&vu?vu:GE;TE=V&&dz?dz:TE;TE={color:co?_.xI(co):void 0,backgroundColor:GE?_.xI(GE):void 0,borderColor:TE?
_.xI(TE):void 0};H=Wo.call(Sb,{},{buttonText:AS,formattedButtonText:nM,animatedTextProps:Q,accessibilityLabel:Ho,style:KM,type:B,state:Xb,size:kE,iconPosition:O,onTap:E,disabled:VU,aTagConfig:SD,customColors:TE,tooltipText:H.tooltip},c)}else H={style:"mono",type:"text",state:"active",size:"M"};H.focused=U();return H},r=function(){return EzS(e(),!!Y().iconName)};
D=_.a(_.ae(!1,void 0,"bl7g4"));G=D.next().value;var l=D.next().value,U=G;D=_.F4(function(){var H=_.DH().resolve(_.cD(_.MQ));H&&l(H.isKeyBoardInUse());return!1});
G=_.F4(function(){l(!1);return!1});
_.r2(function(){var H,c=_.A(Y==null?void 0:(H=Y())==null?void 0:H.onVisible,_.mQ);c&&_.xC(c,{disableClickTracking:!0})},"MLqBF");
var K=_.f("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.S("button-view-model",{el:I,class:_.e7("yt-spec-button-view-model",R),"on:focusin":D,"on:focusout":G},_.S(_.T,{cond:function(){var H;return(Y==null?0:(H=Y())==null?0:H.iconImage)?{sources:[Y().iconImage]}:void 0},
then:function(H){return _.S(_.Sn,{data:e,icon:function(){return _.S(_.Rt,{data:H,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:K})},
else:function(){return _.S(_.Sn,{data:e,icon:function(){return _.S(_.nB,{icon:F,active:function(){return(t==null?0:t())?!1:e().toggled},
animateIcon:function(){var H;return!!(Z==null?0:(H=Z())==null?0:H.animateIcon)},
size:r})},
clientOnlyWizTooltipsEnabled:K})}}))},"x");
_.TV.idomCompat={callbacks:{onClick:!0}};_.at(_.RT(function(D){return _.S("yt-button-view-model",{id:D.id,class:_.e7(D.scopingClassName,D.classes),icon:function(){var Y;return(Y=D.icon)==null?void 0:Y.call(D)},
"dialog-dismiss":function(){var Y;return((Y=D.dialogDismiss)==null?0:Y.call(D))?"":void 0}},_.S(_.TV,{data:function(){var Y;
return(Y=D.data)==null?void 0:Y.call(D)},
className:function(){var Y;return(Y=D.className)==null?void 0:Y.call(D)},
style:function(){var Y;return(Y=D.style)==null?void 0:Y.call(D)},
useOutlinedIcon:function(){var Y;return(Y=D.useOutlinedIcon)==null?void 0:Y.call(D)},
buttonOverrides:function(){var Y;return(Y=D.buttonOverrides)==null?void 0:Y.call(D)},
animatedTextProps:function(){var Y;return(Y=D.animatedTextProps)==null?void 0:Y.call(D)},
onClick:function(Y){var R;return(R=D.onClick)==null?void 0:R.call(D,Y)}}))},"y"),"yt-button-view-model",{props:{data:_.cs,
className:_.cs,style:_.cs,useOutlinedIcon:_.cs,buttonOverrides:_.cs,animatedTextProps:_.cs,onClick:_.uq,scopingClassName:_.cs,id:_.cs,icon:_.cs,dialogDismiss:_.cs,classes:_.cs,target:_.uq}});var jn=function(){var D=_.N.apply(this,arguments)||this;D.isGoalActive=!0;return D};
_.n(jn,_.N);jn.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
jn.prototype.progressBarChanged=function(){var D=_.aU(this.hostElement).querySelector("#progress-bar-progress"),Y,R,Z,t=(Z=Number((Y=this.creatorGoalState)==null?void 0:Y.currentGoalCount)/Number((R=this.creatorGoalState)==null?void 0:R.totalGoalCount)*100)!=null?Z:0,X;D.style.width=((X=Math.min(t,100))!=null?X:0)+"%"};
jn.prototype.goalStateChanged=function(){var D;this.isGoalActive=((D=this.creatorGoalState)==null?void 0:D.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var Y;D={"--yt-progress-bar-color":DTn((Y=this.creatorGoalState)==null?void 0:Y.progressBarColor)};_.SN(this.hostElement,D)};
jn.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.YF.Object.defineProperties(jn.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var D;return this.isGoalActive&&!((D=this.creatorGoalState)==null||!D.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.endTimestampMs){var Y;D=Number((Y=this.creatorGoalState)==null?void 0:Y.endTimestampMs)/1E3;return{seconds:String(D)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.themedTargetImage){var Y;D=_.A((Y=this.creatorGoalState)==null?void 0:Y.themedTargetImage,rVL);return this.isAppDarkTheme()?D==null?void 0:D.imageDark:D==null?void 0:D.imageLight}}}});
_.YF.Object.defineProperties(jn,{template:{configurable:!0,enumerable:!0,get:function(){return R0U()}}});
jn.prototype.goalStateChanged=jn.prototype.goalStateChanged;jn.prototype.progressBarChanged=jn.prototype.progressBarChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],jn.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);
_.q([_.y({selectorArgs:["data.creatorGoalEntityKey"],selector:function(D,Y){return _.jC(D.entities,"creatorGoalEntity",Y)}}),
_.x("design:type",Object)],jn.prototype,"creatorGoalState",void 0);_.q([_.y(),_.x("design:type",Object)],jn.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],jn.prototype,"isGoalActive",void 0);_.q([_.b("creatorGoalState","isGoalActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jn.prototype,"shouldShowCountdown",null);_.q([_.b("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],jn.prototype,"endTimestamp",null);
_.q([_.b("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],jn.prototype,"targetIconThemedImage",null);_.q([_.Gm("creatorGoalState.currentGoalCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jn.prototype,"progressBarChanged",null);_.q([_.Gm("creatorGoalState.creatorGoalState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jn.prototype,"goalStateChanged",null);
_.q([_.Lr({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],jn);_.L(jn,"yt-creator-goal-progress-flow-view-model",function(){return R0U()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var bpY;var ysU;var I$=function(){return _.N.apply(this,arguments)||this};
_.n(I$,_.N);I$.prototype.attached=function(){var D,Y,R;if(this==null?0:(D=this.data)==null?0:(Y=D.pdgPurchasedBumperLoggingDirectives)==null?0:(R=Y.loggingDirectives)==null?0:R.trackingParams){var Z,t,X;TJU(this==null?void 0:(Z=this.data)==null?void 0:(t=Z.pdgPurchasedBumperLoggingDirectives)==null?void 0:(X=t.loggingDirectives)==null?void 0:X.trackingParams)}};
I$.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],I$.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],I$.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],I$);
_.L(I$,"yt-live-chat-item-bumper-view-model",function(){if(ysU===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;bpY===void 0&&(bpY=document.createElement("template"));var Z=bpY;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ysU=D}D=ysU;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var NBb;var l8L;_.D4=function(D,Y){this.data=D;this.actions=Y;this.data=D;this.actions=Y};
_.BN=function(){};_.Fh={};_.Fh.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(D,Y){jA5(this.hostElement,D,Y)},
getNavigationEndpointPopupAction:function(D){return IgU(D,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(D,Y){FEo(this.hostElement,D,Y,this.openPopupConfig)}};var vXU=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.GV={};
_.GV.YtEndpointBehavior=[_.Fh.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.JQ("openPopupConfig");(this.useClickHandler=_.ks("useClickHandler",!1))?this.hostElement.addEventListener("click",Tm(this,this.onEndpointClick_)):(Uw(this.hostElement,"tap",Tm(this,this.onEndpointTap_)),Uw(this.hostElement,"touchend",Tm(this,this.onEndpointTouchEnd_)));Uw(this.hostElement,"touchstart",Tm(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Tm(this,this.onEndpointTapStart_))},
onEndpointClick_:function(D){fgo(this.hostElement,D,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(D){var Y=this.hostElement,R=this.openPopupConfig,Z=this.disableCommandHandlerOverride;Z=Z===void 0?!1:Z;var t=GWU(D);if(t){t.href&&BG(t.href);var X=D.detail;var M=X.sourceEvent;X=X.preventer;M=M.button!==void 0?M.button===0&&!ot(M):X?!ot(X):!0;t.data&&M&&Vg$(Y,t,D,R,Z)}},
onEndpointTouchEnd_:function(D){ot(D)||GWU(D)&&D.preventDefault()},
onEndpointTapStart_:function(D){wIU(D)}}];_.Va={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(D){for(var Y=_.Bm.getInstance(),R=_.a(Object.keys(D)),Z=R.next();!Z.done;Z=R.next()){var t=Z.value;Z=D[t];if(this&&this[Z]){var X=Y.actionRoutingMap.get(t);X||(X=new Map,Y.actionRoutingMap.set(t,X));Y.registerActionHandler(this,t,this[Z].bind(this),X)}else t=Error("gd"),t.params=Z,_.hQ(t)}},
unregisterActionMap:function(D){_.E9(_.Bm.getInstance(),D,this)}}]};var NW=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_"+(_.f("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.f("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.f("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:_.f("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:_.f("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:_.f("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var yv;var lq=new Map;var qh5=window.matchMedia("(forced-colors: active)").matches;var JsV;var k$E;var UTL=new _.R6("LOTTIE_LOADER_TOKEN");_.fO=_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.animationName;var t=D.animationRef;var X=D.elRefForInterop;var M=_.io("lottie-component"),W;_.w2(function(){var I;return void((I=W)==null?void 0:I.destroy())});
var z;_.r2(function(){var I=_.v_(Z);if(I!==z){z=I;var F=Object.assign({},{animationName:I,animationRef:_.v_(t)},_.v_(Y));try{_.DH().resolve(UTL)().then(function(e){var r;(r=W)==null||r.destroy();var l,U;r=(U=X==null?void 0:(l=X())==null?void 0:l.value)!=null?U:M.value;l=F.animationRef;U=F.listeners;e=e.loadAnimation(Object.assign({},{container:r},F.animationConfig));l&&(l.lottieEl=e);if(U)for(r=_.a(Object.entries(U)),l=r.next();!l.done;l=r.next())U=_.a(l.value),l=U.next().value,(U=U.next().value)&&
e.addEventListener(l,U);W=e})}catch(e){I=e;
var G="LottieComponent error.";I.message&&(G+=" Original description: "+I.message);_.kN(I,G);_.Jk(I);var V;((V=F.listeners)==null?0:V.error)&&F.listeners.error(I)}}},"lbhvPc");
return _.S(LUr,{cond:function(){return!(X==null?0:X())},
then:function(){return _.S("lottie-component",{class:_.e7("ytLottieComponentHost",R),el:M})}})},"z");_.at(_.RT(function(D){return _.S("ytd-lottie-player",{id:D.id,hidden:D.hidden,class:D.className,"aria-label":D.ariaLabel,style:"display: block;"},_.S(_.fO,{data:D.data,animationName:function(){var Y;return((Y=D.data().animationConfig)==null?void 0:Y.name)||""},
animationRef:function(){return D.data().animationRef}}))},"A"),"ytd-lottie-player",{props:{data:_.cs,
id:_.cs,hidden:_.cs,className:_.cs,ariaLabel:_.cs}});var en=function(){var D=_.N.apply(this,arguments)||this;D.animationRef={};D.delhiIconsEnabled=_.f("enable_web_delhi_icons");return D};
_.n(en,_.N);_.u=en.prototype;
_.u.handlePropertyChange=function(){var D=this.animatedIcon,Y=this.active,R=this.isDarkTheme;if(D){var Z=this.previousActive!==Y;this.previousActive=Y;this.animationRef.lottieEl?Z&&this.toggleAnimation(Y,D.totalFrames):Y?this.initializeAnimationAsToggled(D.lottiePlayerProps,D.totalFrames):this.initializeAnimationAsUntoggled(D.lottiePlayerProps);D.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=D.type;this.lottiePlayerProps=this.computeLottiePlayerProps(D,R)}};
_.u.computeLottiePlayerProps=function(D,Y){var R=this.deepCloneLottiePlayerProps(D);Y?(Y=D.nameDarkTheme,D=D.pathDarkTheme):(Y=D.name,D=D.path);R.animationConfig.name=Y;(Y=lq.get(D))?R.animationConfig.animationData=Y:R.animationConfig.path=D;return R};
_.u.initializeAnimationAsToggled=function(D,Y){D.animationConfig.initialSegment=[Y-1,Y]};
_.u.initializeAnimationAsUntoggled=function(D){D.animationConfig.initialSegment=void 0};
_.u.toggleAnimation=function(D,Y){if(D){var R;(R=this.animationRef.lottieEl)==null||R.playSegments([0,Y],!0)}else{var Z;(Z=this.animationRef.lottieEl)==null||Z.playSegments([0,1],!0)}};
_.u.deepCloneLottiePlayerProps=function(D){var Y=Object.assign({},D.lottiePlayerProps.animationConfig);D=Object.assign({},D.lottiePlayerProps);D.animationConfig=Y;return D};
en.prototype.handlePropertyChange=en.prototype.handlePropertyChange;_.q([_.y(),_.x("design:type",Object)],en.prototype,"animatedIcon",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],en.prototype,"active",void 0);_.q([_.y(),_.x("design:type",Boolean)],en.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],en.prototype,"animatedIconType",void 0);_.q([_.y(),_.x("design:type",Boolean)],en.prototype,"previousActive",void 0);
_.q([_.y(),_.x("design:type",Object)],en.prototype,"lottiePlayerProps",void 0);_.q([_.y(),_.x("design:type",Object)],en.prototype,"animationRef",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],en.prototype,"delhiIconsEnabled",void 0);_.q([_.Gm("animatedIcon","active","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],en.prototype,"handlePropertyChange",null);_.q([_.Lr({is:"yt-animated-icon",disableElementRegistration:!0})],en);
_.L(en,"yt-animated-icon",function(){if(k$E===void 0){var D=document.createElement("template");_.w(D,'\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-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;JsV===void 0&&(JsV=document.createElement("template"));var Z=JsV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);k$E=D}D=k$E;return D},{mode:2});var KFz;var h04;var pIn=_.RT(function(D){var Y=_.io("span"),R=op(function(){return{value:null}});
_.w2(function(){var t;(t=R.value)==null||t.cancel()});
var Z=_.Si(D.data,{equals:function(t,X){return t.iconName===X.iconName&&t.iconStyle===X.iconStyle&&t.iconSize===X.iconSize&&t.iconSetName===X.iconSetName&&t.iconSelected===X.iconSelected}},"VprOQb");
_.r2(function(){var t,X=(t=D.options)==null?void 0:t.call(D);BJM(Y,R,Z(),X)},"Ybsape");
return _.S("span",{class:"yt-icon-shape",el:Y})},"B");
pIn.idomCompat=!0;var dd5=["youtube_fill","youtube_outline"];var LFU=new _.o1({type:"iconset",value:void 0}),AV=function(){var D=_.N.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.iconName="";D.iconsetName="yt-icons";D.iconset=null;D.missingIconSet=!1;D.iconType=null;D.iconShapeDataSignal=_.ae(void 0,void 0,"b0v7Ac");D.renderingOptionsSignal=_.ae({iconWidth:"100%",iconHeight:"100%",iconFilter:D.iconFilter},void 0,"Ls6l3e");D.wizHasRendered=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(AV,_.N);AV.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
AV.prototype.handlePropertyChange=function(){var D=this,Y,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K;return _.C(function(H){switch(H.nextAddress){case 1:if(Y=!D.icon&&!D.iconName||!D.isAttached)return H.return();R=D;Z=R.icon;t=R.size;X=R.defaultToFilled;M=R.active;W=R.targetContainer;D.toggleContainerClass(W);_.f("kevlar_use_wil_icons")&&Z&&(z=$9U(Z),D.iconType=z.length?z[1]:null);if(Z){H.jumpTo(2);break}D.iconsetName="";D.iconName="";return H.yield(D.renderIcon(W,Z),3);case 3:return H.return();case 2:I=mTz(Z);
F=$9U(I);F.length&&(D.iconsetName=F[0],D.iconName=F[1]);if(!_.f("kevlar_use_wil_icons")){H.jumpTo(4);break}G=AV;V=qeU;e=D.iconType;r=D.active;l=D.defaultToFilled;U=D.size;K=D.iconsetName;return H.yield(Hp1(),6);case 6:return H.yield(V.call(G,e,r,l,U,K,H.yieldResult),5);case 5:D.iconShapeData=H.yieldResult;case 4:if(D.shouldRenderIconShape(W)){H.jumpTo(7);break}return H.yield(D.determineIconSet(I,M,X,t,W),7);case 7:return H.yield(D.renderIcon(W,Z),0)}})};
AV.prototype.toggleContainerClass=function(D){D?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var mTz=function(D){return!_.f("default_to_innertube_icon")||D.indexOf(":")>0?D:_.IT(D)};
_.u=AV.prototype;_.u.determineIconSet=function(D,Y,R,Z){var t=this;return _.C(function(X){return X.nextAddress==1?_.f("kevlar_system_icons")||_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?X.yield(t.switchToYtSysIconset(D,Y,R,Z),3):X.jumpTo(2):X.nextAddress!=2?X.return():X.yield(t.useYtSysIconsetForMissingIcons(D,Y,R,Z),0)})};
_.u.switchToYtSysIconset=function(D,Y,R,Z){var t=this,X,M,W,z,I,F,G;return _.C(function(V){switch(V.nextAddress){case 1:if(!D||t.iconsetName!=="yt-icons"&&t.iconsetName!=="yt-sys-icons"){V.jumpTo(0);break}X=$9U(D);M=X[1];M=_.Kdn(M);_.f("enable_polymer_icons_replace_underscores_dash")&&M.includes("_filled")&&(M=M.replace(/_filled/g,"-filled"));return V.yield(jv(M,!0),3);case 3:return W=V.yieldResult,V.yield(jv(M,!1),4);case 4:if((z=V.yieldResult)||Y&&W)t.iconsetName="yt-sys-icons";t.iconName=t.getIconName(M,
Y,R,z,W);if(Z===24){V.jumpTo(0);break}I="yt-sys-icons"+Z+":"+t.iconName;return V.yield(jv(I,!1,!0),6);case 6:return F=V.yieldResult,V.yield(jv(I,!0,!0),7);case 7:G=V.yieldResult;t.iconName=t.getIconName(M,Y,R,F,G);if(!Y&&F||Y&&G)t.iconsetName="yt-sys-icons"+Z;_.V9(V)}})};
_.u.getIconName=function(D,Y,R,Z,t){D.includes("-filled")&&(D=D.replace("-filled",""));return t&&(Y||R)?D+"-filled":D};
_.u.useYtSysIconsetForMissingIcons=function(D,Y,R,Z){var t=this,X,M;return _.C(function(W){if(W.nextAddress==1)return t.iconsetName!=="yt-icons"?W.jumpTo(0):W.yield(jv(t.iconName,!1,!1,!0),3);if(W.nextAddress!=4)return X=W.yieldResult,W.yield(jv(t.iconName,!1),4);M=W.yieldResult;if(X||!M)return W.jumpTo(0);t.iconsetName="yt-sys-icons";return W.yield(t.switchToYtSysIconset(D,Y,R,Z),0)})};
_.u.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Hp1=function(){return _.C(function(D){try{return D.return(_.DH().resolve(_.FK))}catch(Y){return D.return(new Promise(function(R){_.Q0().parkOrScheduleJob(function(){R(_.DH().resolve(_.FK))},2,"ci")}))}})},qeU=function(D,Y,R,Z,t,X){Z=Z===void 0?24:Z;
if(D){D=D.toLowerCase();var M=D.endsWith("_filled")||D.endsWith("-filled");Y={iconName:D,iconStyle:(Y===void 0?0:Y)||(R===void 0?0:R)||M?"youtube_fill":"youtube_outline",iconSize:Z,iconSetName:t===void 0?"yt-icons":t};R=!!X.resolveIcon(Y);R||(Y.iconSize=void 0,R=!!X.resolveIcon(Y));!R&&M&&(Y.iconName=D.substring(0,D.length-7),Y.iconSize=Z,R=!!X.resolveIcon(Y),R||(Y.iconSize=void 0,R=!!X.resolveIcon(Y)));R||(Y.iconStyle=void 0,R=!!X.resolveIcon(Y));R||_.Jk(new _.AT("Icon not supported",{iconName:Y.iconName,
iconStyle:Y.iconStyle,iconSize:Y.iconSize,iconType:D}));return R?Y:void 0}};
_.u=AV.prototype;_.u.shouldRenderIconShape=function(D){if(!_.f("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;D=this.getContainer(D);return!HZi(D,this.icon)};
_.u.renderIcon=function(D,Y){var R=this,Z,t,X,M,W,z,I,F;return _.C(function(G){switch(G.nextAddress){case 1:if(Y&&R.icon!==Y)return G.return();Z=R.getContainer(D);t=HZi(Z,R.icon);if(R.shouldRenderIconShape(D)&&R.iconType)return R.applyIconShape(t,Z),G.return();R.removeIconShape();if(!Z)return G.return();R.iconName===""&&R.iconset&&Z&&(R.removeStaticIcon(R.iconset,Z),t&&R.removeAnimatedIcon(Z));if(R.iconName===""&&R.iconset||!R.iconsetName||!LFU)return G.return();R.iconset=LFU.byKey(R.iconsetName);
if(!R.iconset)return R.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.jN(R,R.onIconsetAdded)),G.return();R.missingIconSet&&(R.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.jN(R,R.onIconsetAdded)));M=(X=t||R.isAnimatedIcon?LEr(R.icon):void 0)&&!X.lazyLoad;z=X&&((W=X)==null?void 0:W.lazyLoad)&&(X.lottiePlayerProps.animationConfig.animationData?!0:lq.get(R.isDarkTheme?X.pathDarkTheme:X.path)?!0:!1);if(M||z)return R.applyAnimatedIcon(Z,X,R.iconset),G.return();if(z||
(I=X)==null||!I.lazyLoad){G.jumpTo(2);break}F=PZi(X,R.isDarkTheme);R.applyStaticIcon(R.iconset,Z,R.iconName,D,t);return G.yield(F,3);case 3:return G.yield(R.renderIcon(R.targetContainer,R.icon),4);case 4:return G.return();case 2:R.applyStaticIcon(R.iconset,Z,R.iconName,D,t),_.V9(G)}})};
_.u.getContainer=function(D){var Y,R=(Y=p1$(this.hostElement))==null?void 0:Y.host;Y=!!R&&!!R.polymerController;if(!D||Y)return D?this.getTargetContainer(D,R):this.hostElement};
_.u.getTargetContainer=function(D,Y){var R=_.aU(Y).querySelector("#"+D);R||(D=new _.AT("yt-icon container missing",Y.is,D),_.Nb(D));return R};
_.u.applyStaticIcon=function(D,Y,R,Z,t){t&&this.removeAnimatedIcon(Y);this.removeIconShape();t=t&&!!this.iconType&&!!this.iconShapeData&&_.f("kevlar_use_wil_icons");try{t?this.applyIconShape(!1,Y):D.applyIcon(Y,R)}catch(X){this.handleError(X,Z,Y)}};
_.u.applyIconShape=function(D,Y){this.iconset&&Y&&(this.removeStaticIcon(this.iconset,Y),D&&this.removeAnimatedIcon(Y));D={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var R=_.a(this.iconShapeDataSignal);Y=R.next().value;R=R.next().value;var Z=_.a(this.renderingOptionsSignal),t=Z.next().value;Z=Z.next().value;R(this.iconShapeData);Z(D);if(!this.wizHasRendered)for(this.wizHasRendered=!0,D=_.a(EXi(Y,t)).next().value;D.firstChild;)_.aU(this.hostElement).appendChild(D.firstChild)};
_.u.removeIconShape=function(){if(_.f("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.u.removeStaticIcon=function(D,Y){D.removeIcon(Y)};
_.u.applyAnimatedIcon=function(D,Y,R){this.removeStaticIcon(R,D);this.removeIconShape();var Z;R=this.animatedIconElement&&((Z=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Z.type)===Y.type;if(this.animatedIconElement&&R){this.animatedIconElement.polymerController.animatedIcon=Y;var t;((t=this.animatedIconElement)==null?void 0:t.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(D),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=Y,this.animatedIconElement.polymerController.active=this.active,_.f("delhi_modern_web_player_icons")?(Y=mjM(D,this.icon)&&D.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=Y?Y.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.f("kevlar_use_wil_icons")?
D.insertBefore(this.animatedIconElement,D.childNodes[0]):(D=_.aU(D),D.insertBefore(this.animatedIconElement,D.childNodes[0]))};
_.u.removeAnimatedIcon=function(D){_.f("kevlar_use_wil_icons")?this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement):(D=_.aU(D),this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.u.handleError=function(D,Y,R){_.kN(D,this.iconName,Y,R);Y=HZi(R,this.icon);var Z=!1;window.location.href.includes("JpymaW6Lh2w")?Z=!0:R._svgIcon&&(R=(R=R._svgIcon.parentNode)?R.tagName:"unknown",_.kN(D,R),R==="YT-ICON"&&D.name==="NotFoundError"?Z=!0:D.name==="NotFoundError"&&Y&&(Z=!0));Z?_.Jk(D):_.Nb(D)};
_.YF.Object.defineProperties(AV,{template:{configurable:!0,enumerable:!0,get:function(){if(h04===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;
KFz===void 0&&(KFz=document.createElement("template"));var Z=KFz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);h04=D}D=h04;return D}}});
AV.prototype.handlePropertyChange=AV.prototype.handlePropertyChange;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],AV.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",String)],AV.prototype,"icon",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],AV.prototype,"active",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],AV.prototype,"defaultToFilled",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],AV.prototype,"isAnimatedIcon",void 0);
_.q([_.y({value:24}),_.x("design:type",Number)],AV.prototype,"size",void 0);_.q([_.y({value:""}),_.x("design:type",String)],AV.prototype,"targetContainer",void 0);_.q([_.y(),_.x("design:type",Object)],AV.prototype,"animatedIconElement",void 0);_.q([_.y(),_.x("design:type",Object)],AV.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],AV.prototype,"ariaHidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],AV.prototype,"ariaLabel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],AV.prototype,"role",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],AV.prototype,"tabindex",void 0);_.q([_.y(),_.x("design:type",String)],AV.prototype,"style",void 0);_.q([_.y(),_.x("design:type",String)],AV.prototype,"iconFilter",void 0);
_.q([_.Gm("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],AV.prototype,"handlePropertyChange",null);_.q([_.Lr({is:"yt-icon",noInjection:!0})],AV);var gXb="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),iZ9=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var xTz={};xTz.YtPlaintextBehavior=[_.nJ,{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(D){D.preventDefault();D=D.clipboardData.getData("text/plain");document.execCommand("insertText",!1,D)},
preventRichTextFormatting_:function(D){_.js&&(D=D.detail.keyboardEvent,D.stopImmediatePropagation(),D.preventDefault())}}];var Pt7;var Qj4;var nO=function(){var D=_.N.apply(this,arguments)||this;D.ignoreShadyDom=!1;D.hasChange_=!1;D.hasSetTitle_=!1;D.useIOObserverForVisibilityLogging_=_.f("kevlar_use_vimio_behavior")&&_.JQ("INNERTUBE_CLIENT_NAME")==="WEB";D.ytFormattedStringObserverHandlerKeys_=void 0;return D};
_.n(nO,_.N);_.u=nO.prototype;_.u.created=function(){this.useIOObserverForVisibilityLogging_=_.f("kevlar_use_vimio_behavior")&&_.JQ("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.u.ready=function(){_.JQ("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_()};
_.u.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.u.detached=function(){this.unobserveIOObservers_()};
_.u.clearContents_=function(){for(var D=this.getRoot(),Y=D.lastChild;Y&&Y.tagName!=="STYLE";){try{D.removeChild(Y)}catch(R){break}Y=D.lastChild}};
_.u.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var D=_.a(this.ytFormattedStringObserverHandlerKeys_),Y=D.next();!Y.done;Y=D.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(Y.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.u.resetForAttributedString=function(){var D=this.getRoot();!D.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),D.appendChild(this.ytAttributedStringElementRef))};
_.u.resetForFormattedString=function(){var D=this.getRoot(),Y=D.querySelector("yt-attributed-string");Y&&(this.ytAttributedStringElementRef=D.removeChild(Y))};
_.u.textChanged=function(){this.textChanged_(this.text)};
_.u.textChanged_=function(D){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!D||!D.runs&&!D.simpleText;if(_.f("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var Y=this.hostElement.firstChild;Y&&Y.nodeName==="FONT";){var R=Y;Y=Y.nextSibling;this.hostElement.removeChild(R)}Y=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
R=D.simpleText;var Z;!R&&((Z=D.runs)==null?void 0:Z.length)===1&&this.isSimpleString_(D.runs[0])&&(R=D.runs[0].text);R!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.JQ("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(R!==void 0){try{Y.textContent=R}catch(t){}Y.textContent||(this.isEmpty=!0)}else D=D.runs,R!==void 0&&(D=[{text:R}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),D&&this.updateText_(D),
Y.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.u.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)};
_.u.computeAriaLabel_=function(D){return D};
_.u.computeEllipsisTruncateStyling=function(D,Y){return D&&!Y};
_.u.computeUseAttributedString=function(D){return _.f("web_replace_formatted_with_attributed_string")&&I8U(D)&&!this.disableAttributedString&&!this.enableContentEditable};
_.u.setNodeStyle_=function(D,Y){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.f("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?Y.removeAttribute("dir"):Y.setAttribute("dir","auto");Y.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");Y.style.color="";var R=null;this.noStyles||(D.bold&&(Y.classList.add("bold"),R="bold"),D.deemphasize&&(Y.classList.add("deemphasize"),R="deemphasize"),D.italics&&Y.classList.add("italic"),
D.strikethrough&&Y.classList.add("strikethrough"),D.errorUnderline&&(Y.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),D.bracket&&Y.classList.add("bracket"),D.textColor&&(Y.style.color=_.HG(D.textColor)));R!==Y.getAttribute("style-target")&&(R?Y.setAttribute("style-target",R):Y.removeAttribute("style-target"))};
_.u.setUpVisibilityLogging_=function(D,Y){var R=this;this.setNodeTrackingParams_(D,Y);var Z;((Z=Y.data)==null?0:Z.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(D=this.ytRendererBehavior.visibilityObserver.observe(Y,function(t){var X=R.ytRendererBehavior.getVisibilityLogger();X&&X.reportShown(t)},this.ytRendererBehavior.visibilityOptionVisible_),Y=this.ytRendererBehavior.visibilityObserver.observe(Y,function(t){var X=R.ytRendererBehavior.getVisibilityLogger();
X&&X.reportHidden(t)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(D),this.ytFormattedStringObserverHandlerKeys_.push(Y))};
_.u.setNodeTrackingParams_=function(D,Y){Y.data||(Y.data={});if((D=D.loggingDirectives?D.loggingDirectives.trackingParams:null)||Y.data.trackingParams)Y.data.trackingParams=D};
_.u.computeHasLinkOnly_=function(D){return!(!D||D.length!==1||this.noEndpoints||!D[0].navigationEndpoint)};
_.u.getRoot=function(){var D=this.buildScopeDomOptions();return this.enableContentEditable?_.aU(_.aU(this.hostElement,D).querySelector("[contenteditable]")):_.aU(this.hostElement,D)};
_.u.fixContenteditableScope=function(){var D=function(Y){Y&&(Y.nodeType===1&&Y.classList&&(Y.classList.add("style-scope"),Y.classList.add("yt-formatted-string")),Y.childNodes&&Y.childNodes.forEach(function(R){D(R)}))};
D(this.getRoot())};
_.u.updateText_=function(D){for(var Y=D.length,R=this.getRoot(),Z=R.firstChild;Z&&Z.nodeName==="STYLE";)Z=Z.nextSibling;for(var t=0;t<Y&&Z;){var X=D[t],M=_.f("remove_cr_char")&&X.text?X.text.replace("\r",""):X.text;if(this.isSimpleString_(X)&&!this.useMixedDirectionFormattedStrings)if(Z.nodeName==="#text"){Z.textContent!=M&&(Z.textContent=M);t++;Z=Z.nextSibling;continue}else break;if(_.A(X,hi))break;else if(!this.noEndpoints&&X.navigationEndpoint){if(Z.nodeName!=="A")break;this.setDataOnAnchor_(Z,
X.navigationEndpoint)}else if(Z.nodeName!=="SPAN")break;this.setNodeStyle_(X,Z);this.setUpVisibilityLogging_(X,Z);Z.textContent!=M&&(Z.textContent=M);t++;Z=Z.nextSibling}if(Z)for(X=R.lastChild,Z=t?Z.previousSibling:null;X&&X!=Z;){try{R.removeChild(X)}catch(W){break}X=R.lastChild}t!==Y&&this.addTextNodes_(D,t)};
_.u.addTextNodes_=function(D,Y){for(var R=document.createDocumentFragment(),Z=D.length;Y<Z;Y++){var t=D[Y],X=_.f("remove_cr_char")&&t.text?t.text.replace("\r",""):t.text;if(this.isSimpleString_(t)&&!this.useMixedDirectionFormattedStrings)R.appendChild(document.createTextNode(X));else{var M=_.A(t,hi);if(M){if(M.image){var W=document.createElement("img");M.isCustomEmoji||W.classList.add("small-emoji");W.classList.add("emoji");M.isCustomEmoji&&(W.dataset.emojiId=M.emojiId);W.src=_.MW(M.image.thumbnails,
this.emojiSize);(t=this.get("image.accessibility.accessibilityData.label",M))?W.alt=t:M.shortcuts&&M.shortcuts.length>0?W.alt=M.shortcuts[0]:M.emojiId&&(W.alt=M.emojiId);R.appendChild(W);this.hasEmoji=!0}}else!this.noEndpoints&&t.navigationEndpoint?(W=document.createElement("a"),W.classList.add("yt-simple-endpoint"),W.setAttribute("spellcheck","false"),this.setDataOnAnchor_(W,t.navigationEndpoint)):W=document.createElement("span"),this.setNodeStyle_(t,W),this.setUpVisibilityLogging_(t,W),W.appendChild(document.createTextNode(X)),
R.appendChild(W)}}this.getRoot().appendChild(R)};
_.u.isSimpleString_=function(D){return(this.noEndpoints||!D.navigationEndpoint)&&!_.A(D,hi)&&(this.noStyles||!(D.bold||D.deemphasize||D.italics||D.strikethrough||D.errorUnderline||D.bracket||D.textColor))&&!D.loggingDirectives};
_.u.getRawText=function(){return _.OM(this.text)};
_.u.getFirstRunText=function(){var D;if(((D=this.text)==null?0:D.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.u.setFirstRunText=function(D){var Y;((Y=this.text)==null?0:Y.runs)&&this.text.runs[0]&&(this.text.runs[0].text=D,this.textChanged_(this.text))};
_.u.setDataOnAnchor_=function(D,Y){var R=this;!_.f("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(Y)||this.isSignalServiceEndpoint_(Y)?(D.onclick=this.serviceEndpointHandler_(Y),_.L$(D,"#")):ocb({text:this.text,command:Y},function(){qmU(D,Y,R.target)})};
_.u.isServiceEndpoint_=function(D){var Y;return!((Y=_.A(D==null?void 0:D.commandMetadata,_.GA))==null||!Y.sendPost)};
_.u.isSignalServiceEndpoint_=function(D){return!!_.A(D,_.Fa)};
_.u.serviceEndpointHandler_=function(D){var Y=this;return function(R){_.zA(Y.hostElement,[D]);R.preventDefault()}};
_.u.overrideAriaLabelChanged_=function(){var D=this.getRoot();this.enableContentEditable&&D&&D.setAttribute("aria-label",this.overrideAriaLabel)};
_.u.enableContentEditableChanged_=function(){var D=this,Y=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),Y=_.aU(this.hostElement,Y),!Y.lastChild||Y.lastChild instanceof HTMLElement&&Y.lastChild.id!=="contenteditable-root"){var R=document.createElement("div");R.id="contenteditable-root";R.setAttribute("contenteditable","true");R.setAttribute("dir","auto");R.onfocus=function(){D.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
Y.appendChild(R);this.overrideAriaLabel&&R.setAttribute("aria-label",this.overrideAriaLabel)}}else R=_.MB(this.hostElement).firstChild,R instanceof HTMLElement&&R.id==="contenteditable-root"&&_.aU(this.hostElement,Y).removeChild(R)};
_.u.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.u.getNodesForVisibilityLogging_=function(){return _.ac(this.getRoot().childNodes,function(D){var Y;return!((Y=D.data)==null||!Y.trackingParams)})};
_.u.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.u.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(Y){D.reportShown(Y)})}};
_.u.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(Y){D.reportHidden(Y)})}};
_.YF.Object.defineProperties(nO.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.f("enable_mixed_direction_formatted_strings")}}});
nO.prototype.enableContentEditableChanged_=nO.prototype.enableContentEditableChanged_;nO.prototype.overrideAriaLabelChanged_=nO.prototype.overrideAriaLabelChanged_;nO.prototype.ellipsisTruncateChanged_=nO.prototype.ellipsisTruncateChanged_;nO.prototype.textChanged=nO.prototype.textChanged;_.q([_.v(xTz.YtPlaintextBehavior),_.x("design:type",Object)],nO.prototype,"ytPlaintextBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],nO.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nO.prototype,"text",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"noEndpoints",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"noStyles",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],nO.prototype,"isDarkTheme",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],nO.prototype,"splitLines",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],nO.prototype,"forceDefaultStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],nO.prototype,"ellipsisTruncate",void 0);_.q([_.y(),_.x("design:type",Object)],nO.prototype,"ignoreShadyDom",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.x("design:type",Boolean)],nO.prototype,"ellipsisTruncateStyling",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.x("design:type",String)],nO.prototype,"ariaLabel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],nO.prototype,"isEmpty",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.x("design:type",Boolean)],nO.prototype,"hasLinkOnly_",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"hasEmoji",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"disableAttributedString",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"isOverlay",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"linkInheritColor",void 0);
_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"noPreWrap",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"userInput",void 0);_.q([_.y({value:16}),_.x("design:type",Number)],nO.prototype,"emojiSize",void 0);_.q([_.y(),_.x("design:type",String)],nO.prototype,"target",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"enableContentEditable",void 0);_.q([_.y(),_.x("design:type",String)],nO.prototype,"overrideAriaLabel",void 0);
_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"respectHtmlDir",void 0);_.q([_.y(),_.x("design:type",Boolean)],nO.prototype,"respectLangDir",void 0);_.q([_.b("plaintextOnly"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nO.prototype,"useMixedDirectionFormattedStrings",null);_.q([_.y({computed:"computeUseAttributedString(text)"}),_.x("design:type",Boolean)],nO.prototype,"useYtAttributedString",void 0);
_.q([_.Gm("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nO.prototype,"textChanged",null);_.q([_.Gm("ellipsisTruncate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nO.prototype,"ellipsisTruncateChanged_",null);_.q([_.Gm("overrideAriaLabel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nO.prototype,"overrideAriaLabelChanged_",null);
_.q([_.Gm("enableContentEditable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nO.prototype,"enableContentEditableChanged_",null);_.q([_.Lr({is:"yt-formatted-string",disableElementRegistration:!0})],nO);
_.L(nO,"yt-formatted-string",function(){if(Qj4===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Pt7===void 0&&(Pt7=document.createElement("template"));var Z=Pt7;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Qj4=D}D=Qj4;return D});var BBL;var pi4;var EfL;var gf4;var rH=function(){var D=_.N.apply(this,arguments)||this;D.focused=!1;D.disabled=!1;D.isOverlay=!1;return D};
_.n(rH,_.N);rH.prototype.triggerDown=function(){if(!this.disabled){_.Cr(this.hostElement,"down",!0);var D;(D=this.currentAnimation)==null||D.cancel()}};
rH.prototype.triggerUp=function(){if(!this.disabled){_.Cr(this.hostElement,"down",!1);var D=this.fillElement;var Y=this.strokeElement;typeof GroupEffect==="function"?(D=new GroupEffect([xo5(D),Pej(Y)]),D=new Animation(D,document.timeline)):D=new FFU(D,Y);this.currentAnimation=D;var R;(R=this.currentAnimation)==null||R.play()}};
_.q([_.fr(".stroke"),_.x("design:type",HTMLElement)],rH.prototype,"strokeElement",void 0);_.q([_.fr(".fill"),_.x("design:type",HTMLElement)],rH.prototype,"fillElement",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rH.prototype,"focused",void 0);_.q([_.y(),_.x("design:type",Object)],rH.prototype,"disabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rH.prototype,"isOverlay",void 0);_.q([_.Lr({is:"yt-interaction",disableElementRegistration:!0})],rH);
_.L(rH,"yt-interaction",function(){if(gf4===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;EfL===void 0&&(EfL=document.createElement("template"));var Z=EfL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);gf4=D}D=gf4;return D},{mode:2});var wH=function(){return _.N.apply(this,arguments)||this};
_.n(wH,_.N);_.u=wH.prototype;_.u.ready=function(){var D=this,Y=_.aU(this.hostElement).querySelector("#button");Y.addEventListener("focus",function(){G7D||(G7D=new Fsb);D.keyboardFocused=G7D.isKeyBoardInUse()});
Y.addEventListener("blur",function(){D.keyboardFocused=!1;D.rippleUp_()})};
_.u.computeTabIndex_=function(D){return D?-1:0};
_.u.computeButtonAriaPressed_=function(D){if(this.toggleable)return D?"true":"false"};
_.u.rippleDown_=function(){_.aU(this.hostElement).querySelector("#interaction").triggerDown()};
_.u.rippleUp_=function(){_.aU(this.hostElement).querySelector("#interaction").triggerUp()};
_.u.onPressedChanged_=function(){var D=_.MB(_.aU(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.MB(_.aU(this.hostElement).querySelector("#button")).children[0];D&&(D.active=this.pressed)};
wH.prototype.onPressedChanged_=wH.prototype.onPressedChanged_;wH.prototype.rippleUp_=wH.prototype.rippleUp_;wH.prototype.rippleDown_=wH.prototype.rippleDown_;_.q([_.y(),_.x("design:type",String)],wH.prototype,"label",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],wH.prototype,"disabled",void 0);_.q([_.y(),_.x("design:type",Boolean)],wH.prototype,"pressed",void 0);_.q([_.y(),_.x("design:type",Object)],wH.prototype,"toggleable",void 0);
_.q([_.y(),_.x("design:type",Boolean)],wH.prototype,"untabbable",void 0);_.q([_.y(),_.x("design:type",Boolean)],wH.prototype,"keyboardFocused",void 0);_.q([_.Fv("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wH.prototype,"rippleDown_",null);_.q([_.Fv("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wH.prototype,"rippleUp_",null);
_.q([_.Gm("pressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wH.prototype,"onPressedChanged_",null);_.q([_.Lr({is:"yt-icon-button",disableElementRegistration:!0})],wH);
_.L(wH,"yt-icon-button",function(){if(pi4===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;BBL===void 0&&(BBL=document.createElement("template"));var Z=BBL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);pi4=D}D=pi4;return D},{mode:2});var dTU;var ipz=function(){var D=document.body,Y=D.appendChild;if(dTU===void 0){var R=document.createElement("template");_.w(R,'\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>');
dTU=R}R=dTU;Y.call(D,R.content)};
document.body?ipz():window.addEventListener("DOMContentLoaded",ipz);var OpU=_.gY(["aria-"]),$t={};$t.YtRenderButtonBehavior=[_.p.YtRendererBehavior,_.GV.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!!_.DH().resolve(_.cD(_.MQ))&&_.f("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 D=this.computeHref_(this.endpoint,!0);D?_.L$(this.elements_.endpoint,D):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){D=this.buttonClass.split(" ");D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,_.Cr(this.hostElement,Y,!0),this.elements_.button&&_.Cr(this.elements_.button,Y,!0),this.elements_.text&&_.Cr(this.elements_.text,Y,!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&&(D=null,this.buttonAccessibility&&(D=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=D:D?_.ON([_.RI(OpU)],this.elements_.button,"aria-label",D):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var D=_.DH().resolve(_.cD(_.MQ));D&&(this.keyboardFocused=D.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.sc("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,_.oR(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.oR(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(D,Y){if(Y)for(D=Y.split(" "),D=_.a(D),Y=D.next();!Y.done;Y=D.next())Y=Y.value,_.Cr(this.hostElement,Y,!1),this.elements_.button&&_.Cr(this.elements_.button,Y,!1),this.elements_.text&&_.Cr(this.elements_.text,Y,!1)},
buttonIconChanged_:function(D){this.elements_.icon?D?(this.elements_.icon.icon=D,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.oR(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.WE(this.hostElement,"is-paper-button-with-icon",!1)):D&&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"&&_.oR(this.elements_.button).appendChild(this.elements_.icon):_.oR(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.WE(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(D){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,D){var Y=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(D){case "yt_icon_button_with_label":Y=!0;_.Cr(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();D=_.oR(this.elements_.button).firstElementChild;
this.elements_.icon=D;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.oR(this.elements_.endpoint).appendChild(this.elements_.button);_.oR(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.sc("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;_.oR(this.elements_.button).appendChild(this.elements_.text);_.oR(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":Y=!0,this.elements_.button=this.getYtIconButton_(),D=_.oR(this.elements_.button).firstElementChild,this.elements_.icon=D,this.setIconActive_(this.elements_.icon),
_.oR(this.elements_.endpoint).appendChild(this.elements_.button)}_.WE(this.hostElement,"is-icon-button",Y);_.WE(this.hostElement,"is-paper-button",!Y);_.WE(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 R;_.aU((R=this.container.hostElement)!=null?R:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.oR(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(D){if(D!=void 0||this.disabled)this.disabled=D,this.elements_.button&&(this.elements_.button.disabled=D)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(D){_.f("kevlar_system_icons")&&D&&this.data&&(this.data.isSelected!==void 0?D.active=this.data.isSelected:this.data.isToggled!==void 0&&(D.active=this.data.isToggled))},
observeBasicPalette_:function(D){_.Jp(this.hostElement,D)},
disabledChanged_:function(D){this.data&&this.set("data.isDisabled",D)},
onYtButtonTap_:function(D){if(this.disabled)D.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.zA(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(D=this.disableCommandHandlerOverride,!this.data||!this.data.command||D||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.f("handle_service_request_actions")||_.zA(this.hostElement,[this.serviceEndpoint]),
_.MX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.f("handle_service_request_actions")?(D=[],this.serviceEndpoint&&D.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&D.push(this.data.command),D.length&&_.Se(this.hostElement,D,this.hostElement)):this.data&&this.data.command&&(D=this.data.command,D.accountUnlinkCommand||D.accountLinkCommand||D.insertAdCommand||D.insertHighlightMarkerCommand||
D.createLivestreamHighlightClipCommand||D.getVideoUploadFeedbackCommand||D.musicDeletePrivatelyOwnedEntityCommand||D.ypcCancelRecurrenceEndpoint||D.getMultiSelectCommandEndpoint?_.zA(this.hostElement,[D]):_.Se(this.hostElement,[D],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 D,Y=_.aU((D=this.container.hostElement)!=null?D:this.container);Y.lastChild&&Y.lastChild.tagName!="STYLE";)try{Y.removeChild(Y.lastChild)}catch(R){break}},
getYtIconButton_:function(){var D=this.reuseEnabled_()?_.sc("yt-icon-button"):document.createElement("yt-icon-button"),Y=_.oR(D).firstElementChild;if(Y&&Y.is!="yt-icon"){for(Y=_.oR(D);Y.lastChild;)Y.removeChild(Y.lastChild);Y=null}Y||(Y=this.getIcon_(),this.setIconActive_(Y),_.oR(D).appendChild(Y));return D},
reuseEnabled_:function(){return _.f("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.sc("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.sc("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.csz={};
_.csz.YtButtonBehavior=[$t.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var D=this.data;D&&(this._setEndpoint(this.computeEndpoint_(D)),this._setServiceEndpoint(this.computeServiceEndpoint_(D)),this._setCommand(this.computeCommand_(D)),this._setButtonIcon(this.computeButtonIcon_(D)),this._setButtonText(this.computeButtonText_(D,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(D)),this._setButtonTooltip(this.computeTooltip_(D)),this._setButtonClass(this.computeButtonClass_(D)),this._setIconPositionType(this.computeIconPositionType_(D)),this.updateRenderedElements())},
setPressedState:function(D){var Y;if((Y=this.elements_)==null?0:Y.button)this.elements_.button.pressed=!!D},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeEndpoint_:function(D){var Y=D&&D.navigationEndpoint,R=this.get("data.command.commandMetadata.webCommandMetadata.url"),Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Y?Y:D&&D.command&&D.command.modalEndpoint?D.command:R&&!Z&&D.command?D.command:null},
computeServiceEndpoint_:function(D){var Y=D&&D.serviceEndpoint,R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Y?Y:R&&D.command?D.command:null},
computeCommand_:function(D){return D&&D.command||null},
computeButtonIcon_:function(D){return D&&D.icon&&D.icon.iconType?_.IT(D.icon.iconType):null},
computeButtonText_:function(D,Y){return!Y&&D&&D.text||null},
computeAccessibility_:function(D){return this.get("accessibilityData.accessibilityData",D)||D&&D.accessibility||(D&&D.text?{label:this.getSimpleString(D.text)}:null)},
computeTooltip_:function(D){return D?D.isDisabled&&D.disabledTooltip||D.tooltip||null:null},
computeButtonClass_:function(D){var Y=D&&D.style?D.style.toLowerCase().replace(/_/g,"-")+" ":"";Y+=D&&D.size?D.size.toLowerCase().replace(/_/g,"-")+" ":"";D.colorData&&D.colorData.basicColorPaletteData&&D.colorData.basicColorPaletteData.borderColor&&(Y+="palette-with-border");return Y.trim()}}];var kP={};var D41;var YEV;var R5V,Zmb=function(){return R5V!==void 0?R5V:R5V=document.createElement("template")};
document.head.appendChild(Zmb().content);var tc1;var sV4,XcY=function(){return sV4!==void 0?sV4:sV4=document.createElement("template")};
document.head.appendChild(XcY().content);var uXE;var atL,Mcz=function(){return atL!==void 0?atL:atL=document.createElement("template")};
document.head.appendChild(Mcz().content);var CV4;var WKL=document.head,z5E=WKL.appendChild,SEL;if(CV4===void 0){var TwU=document.createElement("template");_.w(TwU,"\x3c!--css-build:shady--\x3e");TwU.content.insertBefore(Mcz().content.cloneNode(!0),TwU.content.firstChild);CV4=TwU}SEL=CV4;z5E.call(WKL,SEL.content);var jV_=document.head,ItU=jV_.appendChild,FKz;if(uXE===void 0){var G0V=document.createElement("template");_.w(G0V,"\x3c!--css-build:shady--\x3e");G0V.content.insertBefore(XcY().content.cloneNode(!0),G0V.content.firstChild);uXE=G0V}FKz=uXE;ItU.call(jV_,FKz.content);var Vc_=document.head,ft4=Vc_.appendChild,e5z;if(tc1===void 0){var Ay4=document.createElement("template");_.w(Ay4,"\x3c!--css-build:shady--\x3e");Ay4.content.insertBefore(Zmb().content.cloneNode(!0),Ay4.content.firstChild);tc1=Ay4}e5z=tc1;ft4.call(Vc_,e5z.content);var nRL;_.UD("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");nRL=_.f("web_button_rework")&&_.ks("BUTTON_REWORK")||_.f("web_button_rework_with_live");_.vM=function(){return _.N.apply(this,arguments)||this};
_.n(_.vM,_.N);_.vM.prototype.created=function(){this.openPopupConfig=_.JQ("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.vM.prototype.onYtNavigate_=function(D){var Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);Y&&(this.ytOpenPopupBehavior.openPopup(Y),D.stopPropagation(),D.preventDefault())};
_.YF.Object.defineProperties(_.vM,{template:{configurable:!0,enumerable:!0,get:function(){if(YEV===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;D41===void 0&&(D41=document.createElement("template"));var Z=D41;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);YEV=D}D=YEV;return D}}});
_.vM.prototype.onYtNavigate_=_.vM.prototype.onYtNavigate_;_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],_.vM.prototype,"ytOpenPopupBehavior",void 0);_.q([_.v(_.csz.YtButtonBehavior),_.x("design:type",Object)],_.vM.prototype,"ytButtonBehavior",void 0);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.vM.prototype,"onYtNavigate_",null);
_.q([_.Lr({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:nRL})],_.vM);var ryz;var wcz=_.f("web_button_rework")&&_.ks("BUTTON_REWORK")||_.f("web_button_rework_with_live"),o$=function(){var D=_.N.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.skipCommandHandling=!1;D.alignByText=!1;D.fitToVisibleBounds=!0;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};D.onTap=function(Y){_.MX(D.hostElement,"yt-service-request-sent-button-renderer",Y)};
return D};
_.n(o$,_.N);_.u=o$.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.u.onClick=function(D){var Y,R=this.disabled||((Y=this.data)==null?void 0:Y.isDisabled);Y=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");R&&Y&&D.stopPropagation()};
_.u.computeIcon=function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.icon)==null?void 0:Y.iconType;if(R)return _.IT(R)};
_.u.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.u.handleUpdateButtonAction=function(D){D=_.A(D,Hg4);var Y=_.A(D==null?void 0:D.updatedButton,_.qv);if(this.data&&D&&Y){var R=this.data;R.targetId&&D.targetId&&R.targetId===D.targetId&&(this.data=Y)}};
_.YF.Object.defineProperties(o$.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var D=this;if(this.data){var Y=Zi9({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.MX(D.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.MX(D.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});Y.alignByText=this.alignByText;return Y}}}});
_.YF.Object.defineProperties(o$,{template:{configurable:!0,enumerable:!0,get:function(){if(ryz===void 0){var D=document.createElement("template");_.w(D,'\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>');ryz=D}D=ryz;return D}}});
o$.prototype.onClick=o$.prototype.onClick;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],o$.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],o$.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"isPressed",void 0);
_.q([_.y(),_.x("design:type",Object)],o$.prototype,"forceIconButton",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"forceIconOnly",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"forceModernIconButton",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"skipCommandHandling",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"alignByText",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"buttonTooltipPosition",void 0);
_.q([_.y(),_.x("design:type",Object)],o$.prototype,"fitToVisibleBounds",void 0);_.q([_.y({computed:"computeTooltip(data)"}),_.x("design:type",Object)],o$.prototype,"tooltip",void 0);_.q([_.y(),_.x("design:type",Object)],o$.prototype,"overrides",void 0);_.q([_.y(),_.x("design:type",Boolean)],o$.prototype,"disabled",void 0);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],o$.prototype,"onClick",null);
_.q([_.b("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.x("design:type",Object),_.x("design:paramtypes",[])],o$.prototype,"computedButtonShape",null);_.q([_.Lr({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!wcz,cssBuildOptOut:!0}),_.Lr({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!wcz,cssBuildOptOut:!0})],o$);var $4U;var vRL;var bu=function(){var D=_.N.apply(this,arguments)||this;D.empty_=!0;D.loadTime=Infinity;D.pendingPaint=!1;D.hasChange_=!1;D.oldThumbnail_=null;D.oldDelayedSrc_="";D.objectURL_=null;return D};
_.n(bu,_.N);_.u=bu.prototype;_.u.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.u.ready=function(){var D=this.shouldShowPlaceholder_();_.Cr(this.hostElement,"no-transition",!0);D&&this.hostElement.classList.add("with-placeholder")};
_.u.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.u.isThumbPreloaded_=function(D){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",D)};
_.u.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||oRL};
_.u.computeThumbnailSrc_=function(D){return D&&D.thumbnails?_.MW(D.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.u.computeAlt_=function(){var D=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&D||""};
_.u.thumbnailChanged_=function(){var D=_.a([this.thumbnail,this.oldThumbnail_]),Y=D.next().value;D=D.next().value;this.oldThumbnail_=Y;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(D=this.computeThumbnailSrc_(D),this.computeThumbnailSrc_(Y)===D))return;_.f("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(Y)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):Y&&_.ks("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.cy(this,this.onReload_):_.cy(this,this.onShow_):this.resetImage_();Y&&(this.hostElement.style.opacity=""+Y.opacity)}};
_.u.delayedSrcChanged_=function(){var D=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===D||this.resetImage_()};
_.u.setSrc_=function(D){D?(_.aU(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.aU(this.hostElement).querySelector("#img").src=D):(_.aU(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.u.resetImage_=function(){MT9(this.hostElement);this.empty_=!0;this.setSrc_(oRL);this.ytRendererBehavior.invalidate(!1)};
_.u.observePlaceholderColor_=function(){var D=this.thumbnail&&this.thumbnail.placeholderColor;D?this.hostElement.style.backgroundColor=_.HG(D):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.u.onLoad_=function(){_.aU(this.hostElement).querySelector("#img").src&&_.aU(this.hostElement).querySelector("#img").src!==oRL&&(aEy(this.hostElement),this.notifyOnLoaded&&_.MX(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.u.onError_=function(){var D=this;if(_.f("web_use_cache_for_image_fallback"))IEj(_.aU(this.hostElement).querySelector("#img").src).then(function(Y){D.objectURL_=_.k7(Y).toString();D.setSrc_(D.objectURL_)}).catch(function(){_.f("kevlar_woffle_fallback_image")&&D.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.u.onPrescanVisible=function(){this.onShow_()};
_.u.onVisible=function(){if(_.f("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.u.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var D=this.computeSrc_();D!==_.aU(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))}};
_.u.onReload_=function(){this.empty_=!1;var D=this.computeSrc_();D!==_.aU(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))};
_.u.shouldShowPlaceholder_=function(){return _.f("kevlar_thumbnail_bg")};
bu.prototype.observePlaceholderColor_=bu.prototype.observePlaceholderColor_;bu.prototype.delayedSrcChanged_=bu.prototype.delayedSrcChanged_;bu.prototype.thumbnailChanged_=bu.prototype.thumbnailChanged_;_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bu.prototype,"alt",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],bu.prototype,"ariaHidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bu.prototype,"ariaLabel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bu.prototype,"hidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bu.prototype,"id",void 0);_.q([_.v(_.gt.YtVisibilityBehavior),_.x("design:type",Object)],bu.prototype,"ytVisibilityBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",String)],bu.prototype,"delayedSrc",void 0);
_.q([_.y(),_.x("design:type",Object)],bu.prototype,"thumbnail",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],bu.prototype,"loaded",void 0);_.q([_.y(),_.x("design:type",Boolean)],bu.prototype,"notifyOnLoaded",void 0);_.q([_.y(),_.x("design:type",Number)],bu.prototype,"height",void 0);_.q([_.y(),_.x("design:type",Number)],bu.prototype,"width",void 0);_.q([_.y({value:function(){return"width"}}),
_.x("design:type",String)],bu.prototype,"dimension",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bu.prototype,"fit",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bu.prototype,"fitHeight",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bu.prototype,"fitWidth",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bu.prototype,"objectFit",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bu.prototype,"objectPosition",void 0);_.q([_.y(),_.x("design:type",String)],bu.prototype,"preferredThumbnail",void 0);_.q([_.y({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.x("design:type",String)],bu.prototype,"alt_",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bu.prototype,"sharedTooltipText",void 0);
_.q([_.y(),_.x("design:type",Boolean)],bu.prototype,"ftlEligible",void 0);_.q([_.y({value:void 0}),_.x("design:type",String)],bu.prototype,"observeHiddenOption",void 0);_.q([_.y({value:"observe_once"}),_.x("design:type",String)],bu.prototype,"observePrescanOption",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bu.prototype,"roundedContainer",void 0);
_.q([_.rd("thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bu.prototype,"thumbnailChanged_",null);_.q([_.rd("delayedSrc"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bu.prototype,"delayedSrcChanged_",null);_.q([_.Gm("thumbnail.placeholderColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bu.prototype,"observePlaceholderColor_",null);
_.q([_.Lr({is:"yt-img-shadow",disableElementRegistration:!0})],bu);var oRL=_.ks("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.WL()(bu,"yt-img-shadow",function(){if(vRL===void 0){var D=document.createElement("template");_.w(D,'\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">');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;$4U===void 0&&($4U=document.createElement("template"));var Z=$4U;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);vRL=D}D=vRL;return D},{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 Utj;_.ya=new _.R6("SCREEN_MANAGER_TOKEN");Utj=new _.R6("LOG_INITIAL_SCREEN_TOKEN");var bmb=function(D){return Object.fromEntries(Object.keys(D).map(function(Y){return[Y,Y]}))}({entities:{}});var yyU=function(D){return function(Y,R){return s3M(D,Y,R)}}(bmb)(bmb.entities,{selectSfvAudioItemPlaybackState:function(D,Y){var R,Z;
D=(Z=_.jC(D,"sfvAudioItemCurrentlyPlayingEntity",Y))!=null?Z:void 0;return(R=D==null?void 0:D.sfvAudioItemPlaybackState)!=null?R:void 0},
playlistLoopStateEntitySelector:function(D,Y){var R;return(R=_.jC(D,"playlistLoopStateEntity",Y))!=null?R:void 0}});_.JV=_.RT(function(D){function Y(O){return _.A(O,_.QX)}
function R(){var O=Z().isTogglingDisabled||l()&&Z().toggledIsTogglingDisabled,Wo=O||V()?l():!l();U(Wo);H(!1);if(!O){var Sb;(Sb=M)==null||Sb(!!Wo)}var VU;((VU=X)==null?0:VU())||_.GJ(_.DH().resolve(_.ya),Z().trackingParams);var AS;if(!Wo||!Y(Z().defaultButtonViewModel)||(AS=X)!=null&&AS()){var nM;!Y(Z().toggledButtonViewModel)||((nM=X)==null?0:nM())||_.GJ(_.DH().resolve(_.ya),Y(Z().toggledButtonViewModel).trackingParams)}else _.GJ(_.DH().resolve(_.ya),Y(Z().defaultButtonViewModel).trackingParams)}
var Z=D.data,t=D.buttonShapeOverrides,X=D.disableExplicitClickLogging,M=D.onToggle,W=D.style,z=D.useOutlinedIcon,I=D.className,F=function(){var O,Wo;return l()?(O=D.animatedTextPropsToggled)==null?void 0:O.call(D):(Wo=D.animatedTextPropsDefault)==null?void 0:Wo.call(D)},G=_.Si(function(){return F()?Object.assign({},F(),{shouldAnimate:K()}):void 0},void 0,"ZKEa0b"),V=function(){var O;
return((O=E())==null?void 0:O.isToggled)!==void 0},e=_.a(_.fB(function(){var O,Wo,Sb;
return V()?(O=E())==null?void 0:O.isToggled:(Sb=t==null?void 0:(Wo=t())==null?void 0:Wo.toggled)!=null?Sb:Z().isToggled})),r=e.next().value;
e=e.next().value;var l=r,U=e;e=_.a(_.fB(function(){var O,Wo;return(O=D.animatedTextPropsToggled)==null?void 0:(Wo=O.call(D))==null?void 0:Wo.shouldAnimate}));
r=e.next().value;e=e.next().value;var K=r,H=e;r=_.a(_.ae(!1,void 0,"S11hid"));var c=r.next().value,Q=r.next().value,E=_.qW(function(O){a:{var Wo=Z().entityKey,Sb=Z().toggledStateEntitySelectorType;if(Sb)switch(Sb){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Wo)break;O=yyU.selectSfvAudioItemPlaybackState(O,Wo);if(O==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){O={isToggled:!0};break a}if(O){O={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":O={isToggled:_.u5M(O).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":O={isToggled:_.u5M(O).includes("engagement-panel-live-chat-item-section")};break a;default:_.Jk(new _.AT("Error: entitySelectorType defined but not matched in selector.",O,Sb))}O=void 0}return O}),B=function(){return Object.assign({},t==null?void 0:t(),{onToggle:R,
toggleable:!0,toggled:l(),focused:c()})};
return _.S("toggle-button-view-model",{"on:focusin":_.F4(function(){var O=_.DH().resolve(_.cD(_.MQ));O&&Q(O.isKeyBoardInUse());return!1}),
"on:focusout":_.F4(function(){Q(!1);return!1})},_.S(_.T,{cond:function(){return l()?Y(Z().toggledButtonViewModel):Y(Z().defaultButtonViewModel)},
then:function(O){return _.S(_.TV,{data:O,className:I,style:W,useOutlinedIcon:z,buttonOverrides:B,animatedTextProps:G})}}))},"C");
_.JV.idomCompat={callbacks:{onToggle:!0}};_.at(_.RT(function(D){return _.S("yt-toggle-button-view-model",{class:function(){var Y;return(Y=D.scopingClassName)==null?void 0:Y.call(D)}},_.S(_.JV,{data:function(){var Y;
return(Y=D.data)==null?void 0:Y.call(D)},
buttonShapeOverrides:function(){var Y;return(Y=D.overrides)==null?void 0:Y.call(D)},
animatedTextPropsDefault:function(){var Y;return(Y=D.animatedTextPropsDefault)==null?void 0:Y.call(D)},
animatedTextPropsToggled:function(){var Y;return(Y=D.animatedTextPropsToggled)==null?void 0:Y.call(D)},
disableExplicitClickLogging:function(){var Y;return(Y=D.disableExplicitClickLogging)==null?void 0:Y.call(D)},
onToggle:function(Y){var R;return(R=D.onToggle)==null?void 0:R.call(D,Y)},
style:function(){var Y;return(Y=D.style)==null?void 0:Y.call(D)},
useOutlinedIcon:function(){var Y;return(Y=D.useOutlinedIcon)==null?void 0:Y.call(D)},
className:function(){var Y;return(Y=D.className)==null?void 0:Y.call(D)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.cs,
buttonShapeOverrides:_.cs,overrides:_.cs,animatedTextPropsDefault:_.cs,animatedTextPropsToggled:_.cs,disableExplicitClickLogging:_.cs,onToggle:_.uq,style:_.cs,useOutlinedIcon:_.cs,className:_.cs,scopingClassName:_.cs}});var kt=function(){return _.N.apply(this,arguments)||this};
_.n(kt,_.N);kt.prototype.onTap=function(D){D.stopPropagation();D=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.k6("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D})):this.ytLiveChatReduxBehavior.dispatch(_.oP("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D}))};
_.YF.Object.defineProperties(kt.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.A(this.data.toggleButton,_.py),Y;if(Number(((Y=this.likeCountState)==null?void 0:Y.likeCountIfIndifferentNumber)||"0")===0){var R;Y=((R=this.data.likeCountPlaceholder)==null?void 0:R.content)||""}else{var Z,t,X;Y=((Z=this.likeCountState)==null?void 0:(t=Z.likeCountIfIndifferent)==null?void 0:t.content)||((X=this.data.likeCountPlaceholder)==null?void 0:X.content)||""}var M,W;R=((M=this.likeCountState)==null?void 0:(W=
M.likeCountIfLiked)==null?void 0:W.content)||"1";M=_.A(D.toggledButtonViewModel,_.QX);return Object.assign({},D,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.A(D.defaultButtonViewModel,_.QX),{title:Y})},toggledButtonViewModel:{buttonViewModel:Object.assign({},M,{title:R})}})}}}});
kt.prototype.onTap=kt.prototype.onTap;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],kt.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],kt.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kt.prototype,"data",void 0);
_.q([_.y({selectorArgs:["data.likeCountEntityKey"],selector:a5r}),_.x("design:type",Object)],kt.prototype,"likeCountState",void 0);_.q([_.y({selectorArgs:["data.engagementStateKey"],selector:zQ5}),_.x("design:type",Object)],kt.prototype,"engagementState",void 0);_.q([_.b("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kt.prototype,"isLiked",null);
_.q([_.b("data","likeCountState","isLiked"),_.x("design:type",Object),_.x("design:paramtypes",[])],kt.prototype,"toggleButton",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],kt.prototype,"onTap",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],kt);
_.L(kt,"yt-live-chat-like-button-view-model",function(){if(l8L===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;NBb===void 0&&(NBb=document.createElement("template"));var Z=NBb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);l8L=D}D=l8L;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var NwV;var ltE;var Uc=function(){return _.N.apply(this,arguments)||this};
_.n(Uc,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Uc.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Uc);
_.L(Uc,"yt-live-chat-paid-message-footer-renderer",function(){if(ltE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;NwV===void 0&&(NwV=document.createElement("template"));var Z=NwV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ltE=D}D=ltE;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var JyU;var k0V;var U4U;var KKL,h5V=function(){if(KKL!==void 0)return KKL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;U4U===void 0&&(U4U=document.createElement("template"));var Z=U4U;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return KKL=D};var KO=function(){return _.N.apply(this,arguments)||this};
_.n(KO,_.N);KO.prototype.onTap=function(D){D.stopPropagation()};
_.YF.Object.defineProperties(KO.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.A(this.data.replyButton,_.QX),Y,R,Z,t,X,M,W,z=Number(((Y=this.replyCountState)==null?void 0:Y.replyCountNumber)||"0")===0?(R=this.data)==null?void 0:(Z=R.replyCountPlaceholder)==null?void 0:Z.content:((t=this.replyCountState)==null?void 0:(X=t.replyCount)==null?void 0:X.content)||((M=this.data)==null?void 0:(W=M.replyCountPlaceholder)==null?void 0:W.content)||"",I;return Object.assign({},
D,{title:z,accessibilityText:(I=this.replyCountState)==null?void 0:I.replyButtonAccessibilityText})}}}});
_.YF.Object.defineProperties(KO,{template:{configurable:!0,enumerable:!0,get:function(){return h5V()}}});
KO.prototype.onTap=KO.prototype.onTap;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],KO.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],KO.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],KO.prototype,"data",void 0);
_.q([_.y({selectorArgs:["data.replyCountEntityKey"],selector:function(D,Y){return _.jC(D.entities,"replyCountEntity",Y)}}),
_.x("design:type",Object)],KO.prototype,"replyCountState",void 0);_.q([_.b("data","replyCountState"),_.x("design:type",Object),_.x("design:paramtypes",[])],KO.prototype,"buttonViewModel",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],KO.prototype,"onTap",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],KO);
_.L(KO,"yt-live-chat-reply-button-view-model",function(){return h5V()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var LKD;var m44;var hV=function(){var D=_.N.apply(this,arguments)||this;D.ariaLabel="";return D};
_.n(hV,_.N);
hV.prototype.dataChanged=function(){for(var D=(0,_.zm)(_.aU(this.hostElement).querySelector("#image"));D.firstChild;)D.removeChild(D.firstChild);if(this.data)if(this.data.icon){var Y=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(Y.polymerController.icon="yt-sys-icons:shield-filled",Y.polymerController.defaultToFilled=!0):Y.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();D.appendChild(Y)}else if(this.data.customThumbnail){Y=document.createElement("img");
var R=_.YiU(this.data.customThumbnail.thumbnails,16);R?(Y.src=R,D.appendChild(Y),Y.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Jk(new _.AT("Could not compute URL for thumbnail",this.data.customThumbnail))}};
hV.prototype.identity=function(D){return D};
hV.prototype.computeType=function(D){return Sv(D||void 0)};
hV.prototype.dataChanged=hV.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],hV.prototype,"data",void 0);_.q([_.y({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.x("design:type",Object)],hV.prototype,"ariaLabel",void 0);_.q([_.y({computed:"computeType(data)",reflectToAttribute:!0}),_.x("design:type",String)],hV.prototype,"type",void 0);
_.q([_.y({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.x("design:type",String)],hV.prototype,"sharedTooltipText",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("live_chat_enable_new_moderator_badge")}}),
_.x("design:type",Boolean)],hV.prototype,"enableNewModeratorBadge",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hV.prototype,"dataChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],hV);
_.L(hV,"yt-live-chat-author-badge-renderer",function(){if(m44===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;LKD===void 0&&(LKD=document.createElement("template"));var Z=LKD;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);m44=D}D=m44;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var qEU;var Hm7;var LO=function(){return _.N.apply(this,arguments)||this};
_.n(LO,_.N);_.u=LO.prototype;_.u.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"}}}}};
_.u.computeBadgesInsideChip=function(D){return D?D.filter(function(Y){return Sv(Y.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.u.computeBadgesOutsideChip=function(D){return this.prependChatBadges||!D?[]:D.filter(function(Y){Y=Sv(Y.liveChatAuthorBadgeRenderer);return Y!=="verified"&&Y!=="owner"})};
_.u.computeBadgesBeforeChip=function(D){return this.prependChatBadges&&D?D.filter(function(Y){Y=Sv(Y.liveChatAuthorBadgeRenderer);return Y!=="verified"&&Y!=="owner"}):[]};
_.u.computeIsHighlighted=function(D,Y){var R=!!GjU(D,"owner"),Z=!!GjU(D,"verified");D=!!GjU(D,"moderator");return(R||Z&&!D)&&!Y};
_.u.computeAuthorType=function(D){return Fdo(D)};
_.u.computeAuthorClass=function(D,Y){return Y?(D?D+" ":"")+"single-line":D};
_.u.onSeedColorChanged=function(){_.f("live_chat_author_name_color_usernames")||_.f("live_chat_seed_color_usernames")||_.f("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):_.f("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
LO.prototype.onSeedColorChanged=LO.prototype.onSeedColorChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],LO.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],LO.prototype,"authorName",void 0);_.q([_.y(),_.x("design:type",Array)],LO.prototype,"authorBadges",void 0);
_.q([_.y({computed:"computeAuthorType(authorBadges)"}),_.x("design:type",String)],LO.prototype,"authorType",void 0);_.q([_.y({computed:"computeAuthorClass(authorType, singleLine)"}),_.x("design:type",String)],LO.prototype,"authorClass",void 0);_.q([_.y({computed:"computeBadgesInsideChip(authorBadges)"}),_.x("design:type",Array)],LO.prototype,"badgesInsideChip",void 0);_.q([_.y({computed:"computeBadgesOutsideChip(authorBadges)"}),_.x("design:type",Array)],LO.prototype,"badgesOutsideChip",void 0);
_.q([_.y({computed:"computeBadgesBeforeChip(authorBadges)"}),_.x("design:type",Array)],LO.prototype,"badgesBeforeChip",void 0);_.q([_.y({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.x("design:type",Boolean)],LO.prototype,"isHighlighted",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],LO.prototype,"singleLine",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],LO.prototype,"disableHighlighting",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],LO.prototype,"dashboardMoneyFeed",void 0);_.q([_.y({value:_.f("live_chat_prepend_badges"),reflectToAttribute:!0}),_.x("design:type",Boolean)],LO.prototype,"prependChatBadges",void 0);_.q([_.y(),_.x("design:type",String)],LO.prototype,"authorNameColor",void 0);_.q([_.fr("#author-name"),_.x("design:type",HTMLDivElement)],LO.prototype,"username",void 0);
_.q([_.Gm("authorNameColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LO.prototype,"onSeedColorChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],LO);
_.L(LO,"yt-live-chat-author-chip",function(){if(Hm7===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;qEU===void 0&&(qEU=document.createElement("template"));var Z=qEU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Hm7=D}D=Hm7;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var x4V;var PVL;var m$=function(){var D=_.N.apply(this,arguments)||this;D.debounceCommand=_.eU(function(Y){D.ytComponentBehavior.resolveCommand(Y)},1500);
return D};
_.n(m$,_.N);m$.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var D=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",Y,R,Z=this.isHearted?(Y=this.data)==null?void 0:Y.unheartCommand:(R=this.data)==null?void 0:R.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.k6("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:D}));(D=_.HL(Z))&&this.debounceCommand(D)}};
_.YF.Object.defineProperties(m$.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(!((D=this.data)==null?0:(Y=D.creatorThumbnail)==null?0:Y.sources))return{};D={thumbnails:[]};Y={};Y.url=this.data.creatorThumbnail.sources[0].url;D.thumbnails.push(Y);return D}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((R=this.engagementState)==null?void 0:R.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}}});
m$.prototype.onTap=m$.prototype.onTap;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],m$.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],m$.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],m$.prototype,"data",void 0);
_.q([_.y({selectorArgs:["data.engagementStateKey"],selector:zQ5}),_.x("design:type",Object)],m$.prototype,"engagementState",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],m$.prototype,"thumbnailDetails",null);_.q([_.b("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m$.prototype,"isHearted",null);_.q([_.b("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m$.prototype,"isEditable",null);
_.q([_.b("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m$.prototype,"showCreatorView",null);_.q([_.b("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],m$.prototype,"showButton",null);_.q([_.b("data","isHearted"),_.x("design:type",String),_.x("design:paramtypes",[])],m$.prototype,"label",null);_.q([_.b("data","isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],m$.prototype,"heartHoverText",null);
_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m$.prototype,"onTap",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],m$);
_.L(m$,"yt-live-chat-creator-heart-view-model",function(){if(PVL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;x4V===void 0&&(x4V=document.createElement("template"));var Z=x4V;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);PVL=D}D=PVL;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var qQ=function(){};
_.n(qQ,j8);qQ.prototype.JSC$13015_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:gZ("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
qQ.prototype.getApiPaths=function(){return[]};
qQ.prototype.getExtension=function(){};
qQ.prototype.JSC$13015_buildRequest=function(){};var QVb={},Bwz=(QVb.GET_DATASYNC_IDS=vG(qQ),QVb);var pcz,ER7,gRE,qJE,HM,OmE,p5L,imz,d4b;pcz="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");ER7=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.ED=function(D,Y,R,Z,t,X,M,W,z){this.endpointMap=D;this.networkManager=Y;this.authService=R;this.responseProcessorMap=Z;this.innertubeResponseStore=t;this.contextProcessors=X;this.asyncContextProcessors=M;this.localInnertubeRouter=W;this.requestSequencer=z;this.inflightRequests=new Map;D.signalEndpointMap||(D.signalEndpointMap={});D.signalEndpointMap=Object.assign({},Bwz,D.signalEndpointMap)};
gRE=function(D,Y,R,Z,t,X,M,W,z){if(_.ED.instance!==void 0){if(Z=_.ED.instance,D=[D!==Z.endpointMap,Y!==Z.networkManager,R!==Z.authService,t!==Z.innertubeResponseStore,X!==Z.contextProcessors,M!==Z.asyncContextProcessors,W!==Z.localInnertubeRouter],D.some(function(I){return I}))throw new _.AT("InnerTubeTransportService is already initialized",D);
}else _.ED.instance=new _.ED(D,Y,R,Z,t,X,M,W,z)};
_.d1=function(D,Y,R){var Z=Z===void 0?xbV:Z;var t=p5L(D,Y);return t?new _.zz(function(X,M){var W,z,I,F,G;return _.C(function(V){switch(V.nextAddress){case 1:return V.yield(t,2);case 2:W=V.yieldResult;z=W.JSC$13015_getRequest(Y,R,Z);if(!z){M(new _.AT("Error: Failed to build request for command.",Y));V.jumpTo(0);break}BG(z.input);F=((I=z.requestShell)==null?void 0:I.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){G=d4b(z.config,F);V.jumpTo(4);break}return V.yield(imz(z.config,F),5);case 5:G=
V.yieldResult;case 4:X(OmE(D,z,G)),_.V9(V)}})}):_.lf(new _.AT("Error: No request builder found for command.",Y))};
qJE=function(D,Y,R,Z){var t=t===void 0?xbV:t;var X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B;return _.C(function(O){switch(O.nextAddress){case 1:X=CAU(Y,D.endpointMap);if(!X)throw new _.AT("Error: No streaming request builder found for command",Y);M=X.JSC$13015_getRequest(Y,R,t);if(!M)throw new _.AT("Failed to build YtRequest for streaming Command",Y);if((W=D.localInnertubeRouter)==null||!W.shouldPreferLocalResponse(M.input,M.innerTubeRequest)){O.jumpTo(2);break}return O.yield(D.localInnertubeRouter.localInnertubeResponse(M.input,
M.innerTubeRequest),3);case 3:return z=O.yieldResult,I={},z.playerResponse&&(HM(D,z.playerResponse,M),I.player=z.playerResponse,(F=Z)==null||F(I,z)),z.watchNextResponse&&(HM(D,z.watchNextResponse,M),I.content=z.watchNextResponse,(G=Z)==null||G(I,z)),O.return(I);case 2:e=((V=M.requestShell)==null?void 0:V.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){r=d4b(M.config,e);O.jumpTo(4);break}return O.yield(imz(M.config,e),5);case 5:r=O.yieldResult;case 4:return K=(U=(l=M.requestShell)==null?
void 0:l.headers)!=null?U:{},M.requestShell=Object.assign({},M.requestShell,{headers:Object.assign({},K,r)}),H=Object.assign({},M.requestShell),c=JSON.stringify(M.innerTubeRequest),M.requestShell.method==="POST"&&(H=Object.assign({},H,{body:c})),Q=function(Wo,Sb){HM(D,Sb.playerResponse||Sb.watchNextResponse||Sb.reelItemWatchResponse||Sb.reelWatchSequenceResponse,M);Z==null||Z(Wo,Sb)},E={},O.yield(cy4(D.networkManager,M.input,H,Q),6);
case 6:return E=O.yieldResult,((B=M.config)==null?0:B.responseTick)&&_.KX(M.config.responseTick),O.return(E)}})};
_.Hk=function(D,Y,R,Z,t){t=t===void 0?{authStrategy:{identity:xbV}}:t;var X=X===void 0?!0:X;var M=function(){};
M=zmr(C_U(R));Y.context||(Y.context=_.wVo(Z,X));return new _.zz(function(W){var z,I,F,G,V;return _.C(function(e){if(e.nextAddress==1)return z=iKb(R),I=_.Ed(z),D.authService.syncHeaders?(F=d4b(t,I),e.jumpTo(2)):e.yield(imz(t,I),3);e.nextAddress!=2&&(F=e.yieldResult);G=OKM(iKb(R));V={input:G,requestShell:gZ(G),innerTubeRequest:Y,config:t};W(OmE(D,V,F,M));_.V9(e)})})};
HM=function(D,Y,R){var Z;if(Y&&!(Y==null?0:(Z=Y.sequenceMetaData)==null?0:Z.skipProcessing)&&D.responseProcessorMap){Z=_.a(pcz);for(var t=Z.next();!t.done;t=Z.next())t=t.value,D.responseProcessorMap[t]&&D.responseProcessorMap[t].handleResponse(Y,R)}};
OmE=function(D,Y,R,Z){Z=Z===void 0?function(){}:Z;
var t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O,Wo,Sb,VU,AS,nM,Ho,KM,Xb,kE,SD,co,GE,TE,yV,vu,dz,sy,D_,fL,zT;return _.C(function(eD){switch(eD.nextAddress){case 1:M=(t=Y.config)==null?void 0:(X=t.storeStrategy)==null?void 0:X.storeKey;if(!(M&&D.innertubeResponseStore&&D.innertubeResponseStore.has(M))||((W=Y.config)==null?0:(z=W.storeStrategy)==null?0:z.disableCache)){eD.jumpTo(2);break}return eD.yield(D.innertubeResponseStore.get(M),3);case 3:if((I=eD.yieldResult)&&!I.isExpired())return eD.return(Promise.resolve(_.tn(I)));
case 2:if(!((F=Y)==null?0:(G=F.innerTubeRequest)==null?0:G.context)){eD.jumpTo(4);break}V=Y.innerTubeRequest.context;if(!(D.asyncContextProcessors&&D.asyncContextProcessors.length>0)){eD.jumpTo(5);break}e=[];r=_.a(D.asyncContextProcessors);for(l=r.next();!l.done;l=r.next())U=l.value,K=U.processContext(Y),K.wrappedPromise_&&e.push(K.wrappedPromise_);if(!(e.length>0)){eD.jumpTo(5);break}return eD.yield(Promise.all(e),5);case 5:H=_.a(D.contextProcessors||[]),c=H.next();case 8:if(c.done){eD.jumpTo(4);
break}Q=c.value;return eD.yield(Q.processContext(V),9);case 9:c=H.next();eD.jumpTo(8);break;case 4:if((E=D.localInnertubeRouter)==null||!E.shouldPreferLocalResponse(Y.input,Y.innerTubeRequest)){eD.jumpTo(12);break}return eD.yield(D.localInnertubeRouter.localInnertubeResponse(Y.input,Y.innerTubeRequest),13);case 13:return B=eD.yieldResult,HM(D,B,Y),eD.return(B);case 12:return(Sb=(Wo=Y.config)==null?void 0:Wo.requestKey)&&D.inflightRequests.has(Sb)?O=D.inflightRequests.get(Sb):(VU=JSON.stringify(Y.innerTubeRequest),
Ho=(nM=(AS=Y.requestShell)==null?void 0:AS.headers)!=null?nM:{},Y.requestShell=Object.assign({},Y.requestShell,{headers:Object.assign({},Ho,R)}),KM=Object.assign({},Y.requestShell),Y.requestShell.method==="POST"&&(KM=Object.assign({},KM,{body:VU})),((Xb=Y.config)==null?0:Xb.requestTick)&&_.KX(Y.config.requestTick),kE=function(){return D.networkManager.fetch(Y.input,KM,Y.config)},O=D.requestSequencer?DoE(D.requestSequencer,Y,kE):kE(),Sb&&D.inflightRequests.set(Sb,O)),eD.yield(O,14);
case 14:(SD=eD.yieldResult)&&_.f("web_streaming_player")&&Array.isArray(SD)&&(SD=SD[0].playerResponse);if(SD&&"error"in SD&&((co=SD)==null?0:(GE=co.error)==null?0:GE.details))for(TE=SD.error.details,yV=_.a(TE),vu=yV.next();!vu.done;vu=yV.next())dz=vu.value,(sy=dz["@type"])&&ER7.indexOf(sy)>-1&&(delete dz["@type"],SD=dz);Sb&&D.inflightRequests.has(Sb)&&D.inflightRequests.delete(Sb);((D_=Y.config)==null?0:D_.responseTick)&&_.KX(Y.config.responseTick);if(SD||(fL=D.localInnertubeRouter)==null||!fL.canProvideFallbackResponse(Y.input,
Y.innerTubeRequest)){eD.jumpTo(15);break}return eD.yield(D.localInnertubeRouter.localFallbackInnertubeResponse(Y.input,Y.innerTubeRequest),16);case 16:SD=eD.yieldResult;case 15:return HM(D,SD,Y),((zT=Y.config)==null?0:zT.processorTick)&&_.KX(Y.config.processorTick),Z(),eD.return(SD||void 0)}})};
_.g1=function(D,Y){return MdU(Y,D.endpointMap)};
p5L=function(D,Y){D=W2y(Y,D.endpointMap);if(D!==void 0)return Promise.resolve(D)};
imz=function(D,Y){var R,Z,t,X;return _.C(function(M){if(M.nextAddress==1){t=(R=D)==null?void 0:(Z=R.authStrategy)==null?void 0:Z.sessionIndex;var W=M.yield;var z=_.TA(A6U({sessionIndex:t}));return W.call(M,z,2)}X=M.yieldResult;return M.return(Promise.resolve(Object.assign({},zqy(Y),X)))})};
d4b=function(D,Y){var R;D=D==null?void 0:(R=D.authStrategy)==null?void 0:R.sessionIndex;R=A6U({sessionIndex:D});return Object.assign({},zqy(Y),R)};var YiV,RgD,Zdz,tTL,sSL,Xa7,MTU,CeD,Qa,WZY,zgE,aEL,Sib;YiV=0;RgD=/tone[1-5]/;Zdz=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");tTL="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
sSL=Number.MAX_SAFE_INTEGER;Xa7=RegExp("\ufe0f","g");_.xt=function(D){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;D&&_.uHY(this,D)};
_.uHY=function(D,Y){try{_.S$(Y,{context:D,onSuccess:function(Z,t){Array.isArray(t)?D.load(t):(Z=new _.AT("Emoji manager JSON response was not an array!",{response:t}),_.Nb(Z))},
onError:function(Z){Z=new _.AT("Failed to retrieve emoji manager initial JSON data!",{url:Y,statusCode:_.an(Z).toString()});_.Jk(Z)}})}catch(Z){var R=new _.AT("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:Y});
_.Jk(R)}};
_.xt.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.xt.prototype.load=function(D,Y){if(Y)if(D.length)D=D.concat(Y.emojis);else{this.emojis=Y.emojis;this.emojiMap=Y.emojiMap;this.emojiShortcutMap=Y.emojiShortcutMap;this.emojiShortcutCharMap=aEL(Y);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=Y.emojiRegex;return}this.emojis=[].concat(_.oK(new Set(this.emojis.concat(D))));this.hasInitializedShortcutCharMap=!1;D=Array(this.emojis.length);for(Y=0;Y<this.emojis.length;Y++){var R=this.emojis[Y];if(R.emojiId){this.emojiMap[R.emojiId]=R;this.emojiMap[R.emojiId].index=
Y;for(var Z=0;R.shortcuts&&Z<R.shortcuts.length;Z++)this.emojiShortcutMap[R.shortcuts[Z].toLocaleLowerCase()]=R;D[Y]=R.isCustomEmoji&&R.shortcuts?R.shortcuts[0]:R.emojiId}}D.sort(function(t,X){return X.length-t.length});
if(D.length)try{this.emojiRegex=new RegExp(D.join("|").replace("*","\\*"),"gi")}catch(t){this.emojiRegex=/$./}else this.emojiRegex=/$./};
MTU=function(D,Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){var Z=R.value;if(Z.emojiId&&D.emojiMap[Z.emojiId]){R=Object.assign({},D.emojiMap[Z.emojiId],Z);D.emojiMap[Z.emojiId]=R;var t=void 0;R.index&&((t=D.emojis[R.index])==null?void 0:t.emojiId)===Z.emojiId&&(D.emojis[R.index]=R);Z=void 0;if((Z=R.shortcuts)==null?0:Z.length)for(D.hasInitializedShortcutCharMap=!1,Z=_.a(R.shortcuts),t=Z.next();!t.done;t=Z.next())D.emojiShortcutMap[t.value.toLocaleLowerCase()]=R}}};
CeD=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.N8.getInstance(),2);if(Z.nextAddress!=3)return(Y=Z.yieldResult)?Z.yield(Y.get("ytlc-emoji-pref"),3):Z.return();(R=Z.yieldResult)&&MTU(D,Object.keys(R).map(function(t){return{emojiId:t,stickyPrefId:R[t]}}).filter(function(t){return!!t.emojiId&&!!t.stickyPrefId}));
_.V9(Z)})};
_.PM=function(D,Y,R){return(D=D.emojiMap[Y])&&(!D.isLocked||R!==void 0&&R)?D:void 0};
Qa=function(D,Y,R){R=_.PM(D,Y,R===void 0?!1:R);var Z=Y.match("\u200d");R&&D.skinTone!==0&&(D=(Z==null?void 0:Z.length)===1?_.PM(D,Y.replace("\u200d",Zdz[D.skinTone]+"\u200d")):_.PM(D,Y+Zdz[D.skinTone]))&&(R=D);return R};
WZY=function(D,Y){var R=D.emojiMap[Y];return(R==null?0:R.stickyPrefId)?D.emojiMap[R.stickyPrefId]:Qa(D,Y)};
_.zb=function(D,Y){D=D.emojiShortcutMap[Y.toLocaleLowerCase()];return!D||D.isLocked?null:D};
zgE=function(D,Y,R){return aEL(D,R===void 0?!1:R)[Y]||{}};
aEL=function(D,Y){Y=Y===void 0?!1:Y;if(!D.hasInitializedShortcutCharMap){D.hasInitializedShortcutCharMap=!0;for(var R=0;R<D.emojis.length;R++){var Z=D.emojis[R];if(!(Z.isLocked||Y&&Z.isCustomEmoji&&Z.emojiId&&!D.pickerCustomEmojiIds.includes(Z.emojiId)))for(var t=0;Z.shortcuts&&t<Z.shortcuts.length;t++){var X=Z.shortcuts[t];X.startsWith(":_")&&Z.isCustomEmoji&&(D.emojiShortcutCharMap[":_"]==null&&(D.emojiShortcutCharMap[":_"]=Object.create(null)),D.emojiShortcutCharMap[":_"][X]=Z);if(!(X.length<3||
!Z.isCustomEmoji&&RgD.test(X))){var M=X.substr(0,3).toLocaleLowerCase();D.emojiShortcutCharMap[M]==null&&(D.emojiShortcutCharMap[M]=Object.create(null));D.emojiShortcutCharMap[M][X]=Z}}}}return D.emojiShortcutCharMap};
_.xt.prototype.createEmoji=function(D,Y){Y=Y===void 0?!0:Y;var R=document.createElement("img");D.isCustomEmoji||R.classList.add("small-emoji");R.classList.add("emoji");R.classList.add("yt-formatted-string");R.src=D.image?_.MW(D.image.thumbnails,this.emojiSize)||"":"";var Z=void 0;D.image&&D.image.accessibility&&D.image.accessibility.accessibilityData&&(Z=D.image.accessibility.accessibilityData.label);R.alt=Z?Z:(D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId)||"";D.isCustomEmoji&&(R.dataset.emojiId=
D.emojiId);_.Cw&&(R.setAttribute("contenteditable","false"),R.setAttribute("unselectable","on"));Y&&(D.shortcuts&&D.shortcuts.length&&R.setAttribute("shared-tooltip-text",D.shortcuts[0]),R.id="emoji-"+YiV++);return R};
_.xt.prototype.createDocumentFragment=function(D,Y,R,Z){Y=Y===void 0?!1:Y;R=R===void 0?!0:R;Z=Z===void 0?!1:Z;D=D.replace(Xa7,"");for(var t=document.createDocumentFragment(),X=0,M,W=0;(M=this.emojiRegex.exec(D))!=null;){var z=_.PM(this,M[0])||_.zb(this,M[0]);!z||z.isCustomEmoji&&!Y||(z=this.createEmoji(z,R),X!==M.index&&t.appendChild(document.createTextNode(D.substring(X,M.index))),t.appendChild(z),X=M.index+M[0].length,W++)}if(!Z||W)return t.appendChild(document.createTextNode(D.substr(X))),t};
Sib=function(D,Y,R){var Z,t,X,M,W,z,I,F,G;return _.C(function(V){if(V.nextAddress==1){if(!Y.emojiId||!D.emojiMap[Y.emojiId])return V.return();Z=Object.assign({},D.emojiMap[Y.emojiId],{stickyPrefId:R});D.emojiMap[Y.emojiId]=Z;Y.index&&((t=D.emojis[Y.index])==null?void 0:t.emojiId)===Y.emojiId&&(D.emojis[Y.index]=Z);if((X=Y.shortcuts)==null?0:X.length)for(D.hasInitializedShortcutCharMap=!1,M=_.a(Y.shortcuts),W=M.next();!W.done;W=M.next())z=W.value,D.emojiShortcutMap[z.toLocaleLowerCase()]=Z;return V.yield(_.N8.getInstance(),
2)}if(V.nextAddress!=4)return(I=V.yieldResult)?V.yield(I.get("ytlc-emoji-pref"),4):V.jumpTo(0);G=(F=V.yieldResult)!=null?F:{};G[Y.emojiId]=R;return V.yield(I.set("ytlc-emoji-pref",G,sSL),0)})};
_.BM=new _.xt;var IEY;_.pO={};
IEY={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.f("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:_.f("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 gL(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 D=_.aU(this.hostElement||this).querySelector("#inline-action-button-container");D&&D.setAttribute("aria-hidden","true");this.menuButton=_.aU(this.hostElement).querySelector("#menu-button")},
attached:function(){var D=this.menuButton;D&&(D.addEventListener("focusin",_.jN(this,this.onMenuButtonFocus_)),D.addEventListener("focusout",_.jN(this,this.onMenuButtonBlur_)))},
detached:function(){var D=this.menuButton;D&&(D.removeEventListener("focusin",_.jN(this,this.onMenuButtonFocus_)),D.removeEventListener("focusout",_.jN(this,this.onMenuButtonBlur_)))},
identity:_.kn,truthy:function(D){return!!D},
computeTimestampString:function(D){return D?D.timestampText?this.getSimpleString(D.timestampText):this.TIME_FORMATTER.format(new Date(D.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(D){return D},
computeMenuVisible_:function(D,Y){return D||Y},
computeHasInlineActionButtons:function(D){if(!D)return!1;var Y,R;return!((Y=D.inlineActionButtons)==null||!Y.length)||!((R=D.additionalInlineActionButtons)==null||!R.length)},
createDocumentFragmentFromString:function(D){var Y=_.BM.createDocumentFragment.bind(_.BM),R;if((R=this.participantsManager)==null||!R.viewerRegex)return Y(D);R=document.createDocumentFragment();for(var Z=0,t;(t=this.participantsManager.viewerRegex.exec(D))!=null;){if(t.index>0){var X=":"+t[0]+":";if((_.PM(_.BM,X)||_.zb(_.BM,X))&&D.indexOf(X)===t.index-1)continue}R.appendChild(Y(D.substring(Z,t.index)));Z=document.createElement("span");Z.appendChild(Y(t[0]));Z.classList.add("mention");R.appendChild(Z);
Z=t.index+t[0].length}R.appendChild(Y(D.substring(Z)));return R},
createDocumentFragment:function(D){var Y=document.createDocumentFragment();if(D.simpleText)return Y.appendChild(this.createDocumentFragmentFromString(D.simpleText)),Y;if(!D.runs)return Y;for(var R=0;R<D.runs.length;R++){var Z=D.runs[R];if(Z.emoji)Y.appendChild(_.BM.createEmoji(Z.emoji));else if(Z.text)if(Z.navigationEndpoint){var t=document.createElement("a");t.classList.add("yt-simple-endpoint");qmU(t,Z.navigationEndpoint);_.aU(t).appendChild(this.createDocumentFragmentFromString(Z.text));Y.appendChild(t)}else Y.appendChild(this.createDocumentFragmentFromString(Z.text))}return Y},
hasModerationOverlayVisible:function(){var D;return((D=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:D.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(D){D.composedPath().some(function(Y){return(Y=Y instanceof Element?Y:null)?Y.tagName&&(Y.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||Y.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.f("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(D)},
colorFromDecimal:function(D){return DTn(D)},
markAsDeleted:function(D,Y){this.set("data.deletedStateMessage",D);this.set("data.showOriginalContentMessage",Y)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(D){if(this.data.contextMenuEndpoint){var Y=_.DH().resolve(_.Kn),R=this.data.contextMenuEndpoint,Z;(Z=_.ED.instance)&&_.g1(Z,R)?(Y=TaU(Y,R),Z=_.Hk(Z,{},Y)):Z=_.jS4(Y,R);Z.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);D&&D.stopPropagation()}},
handleGetContextMenuResponse_:function(D){var Y=_.ED.instance;Y&&_.g1(Y,{liveChatEndpoint:{}})||(D=D.response);D.liveChatItemContextMenuSupportedRenderers&&D.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(D.liveChatItemContextMenuSupportedRenderers.menuRenderer);D.actions&&_.CX(this.hostElement,"yt-live-chat-actions",[D.actions])},
handleGetContextMenuError:function(D){if(D instanceof Error||D instanceof Object||D instanceof String)var Y=D;_.Nb(new _.AT("Error encountered calling GetLiveChatItemContextMenu",Y))},
showContextMenu_:function(D){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:D}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.MX(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.MX(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.pO.YtLiveChatItemBehavior=[IEY,_.Bs.YtComponentBehavior,_.Fh.YtOpenPopupBehavior];_.Ec=function(){};var FZ_;var GHL;var VTz;var fE7;var gH=function(){var D=_.N.apply(this,arguments)||this;D.active=!1;D.identity=_.kn;return D};
_.n(gH,_.N);gH.prototype.dataChanged=function(){this.active=!1};
gH.prototype.onClick=function(){_.MX(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
gH.prototype.dataChanged=gH.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],gH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],gH.prototype,"active",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gH.prototype,"dataChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],gH);
_.L(gH,"yt-live-chat-text-input-field-suggestion",function(){if(fE7===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;VTz===void 0&&(VTz=document.createElement("template"));var Z=VTz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);fE7=D}D=fE7;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});_.dH=function(D,Y,R){return CustomEvent.call(this,D,{detail:{value:Y,path:R}})||this};
_.n(_.dH,CustomEvent);_.iu=function(){var D=_.N.apply(this,arguments)||this;D.viewerName=null;D.actionMap={"yt-live-chat-actions":"onChatMessage_"};D.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];D.PARTICIPANT_TIME_USEC_=3E8;return D};
_.n(_.iu,_.N);_.u=_.iu.prototype;_.u.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.u.addParticipant=function(D){var Y=_.onr(this.participants,D,function(Z,t){Z=Z[Object.keys(Z)[0]];t=t[Object.keys(t)[0]];Z=String(_.OM(Z.authorName)).toLowerCase();t=String(_.OM(t.authorName)).toLowerCase();return Z<t?-1:Z==t?0:1}.bind(this));
if(Y>=0){var R=this.participants[Y];R[Object.keys(R)[0]].timestampUsec&&this.splice("participants",Y,1,D)}else this.splice("participants",-Y-1,0,D);D=D[Object.keys(D)[0]];Y=_.OM(D.authorName).toLocaleLowerCase();R=Y.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(R)||(this.allParticipantsCharMap_[R]={});this.allParticipantsCharMap_[R][Y]=D};
_.u.getAuthorsFromPrefix=function(D){return this.allParticipantsCharMap_.hasOwnProperty(D)?this.allParticipantsCharMap_[D]:null};
_.u.computeViewerRegex_=function(D){if(!D)return null;D=D.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var Y=D.indexOf("@")===0&&_.f("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(Y+D.replace(/ /g,"\\s*")+"|^"+D.replace(/ /g,"\\s*")+"$|^"+D.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+D.replace(/ /g,"\\s*")+"$|(?<=\\s)"+D.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.u.checkForStaleParticipants_=function(){var D=this;this.trimOldParticipants_();this.asyncHandle_&&wdU(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.BE(function(){D.checkForStaleParticipants_()},3E4))};
_.u.onChatMessage_=function(D){var Y=this,R=Date.now()*1E3;D.forEach(function(Z){if(Z=_.A(Z,FvU)){Z=Z.item;var t=Object.keys(Z)[0];Y.SUPPORTED_ITEM_TYPES_.indexOf(t)!=-1&&Z[t].timestampUsec>=R-Y.PARTICIPANT_TIME_USEC_&&Y.addParticipant(Z)}},this);
this.checkForStaleParticipants_()};
_.u.trimOldParticipants_=function(){for(var D=Date.now()*1E3,Y=this.participants.length-1;Y>=0;Y--){var R=this.participants[Y];R=R[Object.keys(R)[0]];R.timestampUsec&&R.timestampUsec<D-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",Y,1)}};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],_.iu.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],_.iu.prototype,"viewerName",void 0);_.q([_.y({computed:"computeViewerRegex_(viewerName)"}),_.x("design:type",Object)],_.iu.prototype,"viewerRegex",void 0);_.q([_.y({value:function(){return[]},
notify:!0}),_.x("design:type",Array)],_.iu.prototype,"participants",void 0);_.q([_.Lr({is:"yt-live-chat-participants-manager",noInjection:!0})],_.iu);var eg_=/.*([:@#].*?)$/,Oc=/\u00a0/g,Agz=String.fromCharCode(160),nzE={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"},cM=function(){var D=_.N.apply(this,arguments)||this;D.disabled=!1;D.liveChatRichMessageInput=null;D.messageInput=null;D.isValidWithNoInputText=!1;D.suggestions=[];D.emojiManager=_.BM;D.inputMethodEditorActive=
!1;D.suggestionIndex=-1;D.JSC$14020_lastSuggestionRange=null;return D};
_.n(cM,_.N);_.u=cM.prototype;_.u.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.u.attached=function(){_.WQ&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.u.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.u.dataChanged=function(){if(!this.ignoreColorMapping){var D=!1,Y={},R;for(R in nzE)this.data&&this.data.hasOwnProperty(R)&&(Y[nzE[R]]=this.colorFromDecimal(this.data[R]),D=!0);D&&_.SN(this.hostElement,Y)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.u.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.u.colorFromDecimal=function(D){D=Math.floor(Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
_.u.preventDrag=function(D){D.dataTransfer&&(D.dataTransfer.dropEffect="none");D.preventDefault()};
_.u.preventResize=function(D){D.returnValue=!1};
_.u.onInputChange=function(){var D=this.characterCount,Y=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&Y&&Y.remove();if(!Y&&this.characterCount>this.maxCharacterLimit){var R=window.getSelection();if(R){var Z=R.getRangeAt(0);R.removeAllRanges();R.addRange(Z)}}if(R=this.getCurrentRange())Z=this.calculateTextBeforeRange(R),this.completeEmojisInRange(R,Z,!0)||this.updateSuggestions(R,Z);Z=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Z);
_.MX(this.hostElement,"yt-live-chat-message-input-change",Z);Y&&this.characterCount===0&&Y.remove();R&&R.commonAncestorContainer.parentElement.id==="input"&&R.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>D):R&&!R.collapsed&&R.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(D=this.input.childNodes.length-1;D>=0;D--)this.input.childNodes[D].nodeName==="BR"&&this.input.childNodes[D].remove()};
_.u.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.u.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var D=this.getCurrentRange();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.u.mergeOverflowText=function(D){if(D){var Y=document.createRange();Y.selectNodeContents(D);Y=Y.extractContents();this.input.insertBefore(Y,D)}};
_.u.checkRangeAtEndOfInput=function(){var D=this.getCurrentRange();if(D){var Y=_.aU(this.hostElement).querySelector("#overflow-text"),R=document.createRange();Y&&Y.previousSibling?Y.previousSibling instanceof HTMLImageElement?R.selectNode(Y.previousSibling):R.selectNodeContents(Y.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?R.selectNode(this.input.lastChild):R.selectNodeContents(this.input.lastChild));R.collapse(!1);return R.isPointInRange(D.startContainer,
D.startOffset)}return!1};
_.u.handleOverflowText=function(D){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var Y=_.aU(this.hostElement).querySelector("#overflow-text"),R=this.getCurrentRange();this.input.normalize();D=this.checkRangeAtEndOfInput()&&D;this.mergeOverflowText(Y);for(var Z,t=0,X=0,M,W=this.input.childNodes,z=0;z<W.length;z++){var I=W[z];I instanceof Text?(X+=I.textContent.length,X>this.maxCharacterLimit&&(Z=I,t=this.maxCharacterLimit+I.textContent.length-X)):I instanceof HTMLImageElement&&
(Z=void 0,X=I.dataset.emojiId&&((Z=this.data)==null?0:Z.emojiCharacterCount)?X+this.data.emojiCharacterCount:X+I.alt.length,Z=this.input,t=z);if(X>this.maxCharacterLimit&&Z){M=document.createRange();M.collapse(!1);Y?(X=this.input.lastChild.previousSibling,X instanceof Text?M.setEnd(this.input.lastChild.previousSibling,X.textContent.length):X instanceof HTMLImageElement&&M.setEnd(this.input,this.input.childNodes.length-1)):M.selectNodeContents(this.input);M.setStart(Z,t);break}}M&&(Z=!1,R&&(D=M.isPointInRange(R.startContainer,
R.startOffset-1)),Y||(Y=document.createElement("span"),Y.id="overflow-text",Y.textContent="",Y.setAttribute("contenteditable","true"),_.aU(_.aU(this.hostElement).querySelector("#input")).appendChild(Y),Z=!0),Y&&(R=M.extractContents(),Y.insertBefore(R,Y.firstChild),D&&Y.firstChild&&(R=document.createRange(),Z?R.setStartAfter(Y.lastChild):R.setStartAfter(Y.firstChild),R.collapse(!0),Y=window.getSelection(),Y.removeAllRanges(),Y.addRange(R))))}};
_.u.checkForDuplicateSpans=function(){for(var D=0;D<this.input.childNodes.length;D++){var Y=this.input.childNodes[D];if(Y.nodeName==="SPAN"){var R=document.createRange();R.selectNodeContents(Y);R=R.extractContents();this.input.insertBefore(R,Y);Y.remove()}}this.handleOverflowText(!0)};
_.u.getCurrentRange=function(){var D=window.getSelection();return D&&D.rangeCount?D.getRangeAt(0).cloneRange():null};
_.u.getInputRange=function(){var D=this.getCurrentRange();if(D){for(var Y=D.commonAncestorContainer,R=!1,Z=_.aU(this.hostElement).querySelector("#input");Y;){if(Y===Z){R=!0;break}Y=Y.parentNode}R||(D=null)}D||(D=this.getRangeAtEnd());return D};
_.u.getRangeAtEnd=function(){var D=document.createRange(),Y=_.aU(this.hostElement).querySelector("#input").lastChild;!Y||Y.nodeName!=="#text"&&Y.nodeName!=="SPAN"?(D.selectNodeContents(_.aU(this.hostElement).querySelector("#input")),D.collapse(!1)):Y.nodeName==="#text"?D.setStart(Y,Y.textContent.length):D.setStart(Y,Y.childNodes.length);return D};
_.u.getChatParticipantSuggestions=function(D,Y,R,Z){var t=_.f("live_chat_enable_handles_web_text_input_update");if(Y)for(var X in Y)if(X.indexOf(D)===0||t&&X.indexOf(R+D)===0){var M=Y[X],W=_.OM(M.authorName);Z.push({suggestion:{author:!0,authorType:R,image:M.authorPhoto,alt:W,text:W}});if(Z.length>=64)break}};
_.u.getSuggestions=function(D){var Y=[],R=D.substring(0,3),Z=zgE(_.BM,R,!0);if(Z)for(var t in Z)if(t.toLocaleLowerCase().indexOf(D)===0){var X=Z[t];if(X&&X.emojiId){if(X=WZY(_.BM,X.emojiId)){var M=void 0,W=void 0,z=void 0,I=void 0,F=((M=X.image)==null?0:(W=M.accessibility)==null?0:(z=W.accessibilityData)==null?0:z.label)||X.isCustomEmoji?(I=X.shortcuts)==null?void 0:I[0]:X.emojiId;Y.push({suggestion:{emoji:!0,image:X.image,alt:F,text:t,textToInsertWhenSelected:X.isCustomEmoji?t:F}})}if(Y.length>=
64)break}}if(!this.participantsManager)return null;if(R.indexOf("@")===0||R.indexOf("#")===0)Z=R.charAt(0),D=D.substring(1),t=_.f("live_chat_enable_handles_web_text_input_update"),R.indexOf("@")===0&&t&&(t=this.participantsManager.getAuthorsFromPrefix(R.substring(0,2)),this.getChatParticipantSuggestions(D,t,Z,Y)),R=R.substring(1),R=this.participantsManager.getAuthorsFromPrefix(R),this.getChatParticipantSuggestions(D,R,Z,Y);return Y?Y.sort(function(G,V){return V.suggestion.text<G.suggestion.text?-1:
V.suggestion.text===G.suggestion.text?0:1}):null};
_.u.insertSuggestion=function(D){var Y=_.f("live_chat_enable_handles_web_text_input_update"),R=D.authorType;Y=D.text.indexOf(R)===0&&Y?D.text+Agz:R+D.text+Agz;D.emoji?this.insertTextAtRange(this.JSC$14020_lastSuggestionRange,D.textToInsertWhenSelected||""):D.author&&this.insertTextAtRange(this.JSC$14020_lastSuggestionRange,Y)};
_.u.updateSuggestionsAtCaret=function(){var D=this.getCurrentRange();D&&this.updateSuggestions(D,this.calculateTextBeforeRange(D))};
_.u.offsetStartOfRangeBy=function(D,Y){for(;Y>0;)if(D.startOffset-Y>=0){D.setStart(D.startContainer,D.startOffset-Y);break}else{Y=D.startContainer instanceof HTMLImageElement?Y-D.startContainer.alt.length:Y-D.startOffset;var R=D.startContainer.previousSibling;if(!R){D.setStart(D.startContainer,0);break}if(_.f("live_chat_require_space_for_autocomplete_emoji")){var Z=void 0,t=void 0;D.setStart(R,((Z=R)==null?void 0:(t=Z.textContent)==null?void 0:t.length)||0)}else D.setStart(R,R.childNodes.length||
0)}};
_.u.updateSuggestions=function(D,Y){var R=this;this.JSC$14020_lastSuggestionRange&&(this.JSC$14020_lastSuggestionRange.detach(),this.JSC$14020_lastSuggestionRange=null);if((Y=eg_.exec(Y))&&Y.length&&(Y=Y[Y.length-1].toLocaleLowerCase(),Y.length>2&&(this.offsetStartOfRangeBy(D,Y.length),this.JSC$14020_lastSuggestionRange=D,(D=this.getSuggestions(Y))&&D.length))){this.suggestions=D;_.cy(this,function(){_.aU(R.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.u.completeEmojisInRange=function(D,Y,R){var Z=Y.replace(/[\s\xa0]+$/,"");Y=Y.length-Z.length;Z=Z.split(" ");Z=Z[Z.length-1].trim().toLocaleLowerCase();var t=Z.lastIndexOf(":");if(R&&!Y&&t!==Z.length-1)return!1;t!==-1&&(R=Z.lastIndexOf(":",t-1),R!==-1&&(Z=Z.substring(R)));if((R=_.zb(_.BM,Z))&&R.emojiId){R=WZY(_.BM,R.emojiId)||null;this.offsetStartOfRangeBy(D,Z.length+Y);var X,M,W,z;Z=(((X=R)==null?0:X.isCustomEmoji)?(M=R)==null?void 0:(W=M.shortcuts)==null?void 0:W[0]:(z=R)==null?void 0:z.emojiId)||
"";Y&&(Z+=Agz);this.insertTextAtRange(D,Z);this.dropdown.opened=!1;return!0}return!1};
_.u.onSuggestion=function(D){this.insertSuggestion(D.detail);this.dropdown.opened=!1};
_.u.onKeyPress=function(D){D.keyCode===13&&(D.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.MX(this.hostElement,"yt-live-chat-send-message"))};
_.u.completeEmojis=function(){var D=document.createRange(),Y=_.aU(this.hostElement).querySelector("#input").lastChild;Y?D.setStart(Y,Y.childNodes.length):(D.selectNodeContents(_.aU(this.hostElement).querySelector("#input")),D.collapse(!1));this.completeEmojisInRange(D,this.calculateTextBeforeRange(D),_.f("live_chat_require_space_for_autocomplete_emoji"))};
_.u.maybePreventTextFormatting=function(D){!_.js||!D.ctrlKey&&!D.metaKey||D.keyCode!==66&&D.keyCode!==73||(D.stopImmediatePropagation(),D.preventDefault())};
_.u.onKeyDown=function(D){this.maybePreventTextFormatting(D);if(this.dropdown.opened)switch(D.keyCode){case 27:this.dropdown.opened=!1;D.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;D.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.u.onKeyUp=function(D){switch(D.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Cw)this.onInputChange()};
_.u.changeSuggestionIndex=function(D){if(this.dropdown.opened){var Y=_.aU(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<Y.children.length&&(Y.children[this.suggestionIndex].active=!1);var R=this.suggestions.length;this.suggestionIndex=(D+R)%R;D=Y.children[this.suggestionIndex];D.active=!0;Y.scrollTop=D.offsetTop}};
_.u.onInputPaste=function(D){D.preventDefault();(D=D.clipboardData)&&D.types&&(D=D.getData("text/plain")||"",D=D.replace(/\n/g,""),this.insertText(D));(D=this.getCurrentRange())&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.u.onFocus=function(){this._setFocused(!0)};
_.u.onBlur=function(){this._setFocused(!1)};
_.u.insertText=function(D){this.insertTextAtRange(this.getInputRange(),D)};
_.u.insertTextAtRange=function(D,Y){if(D&&(D.collapsed||D.deleteContents(),Y=_.BM.createDocumentFragment(Y,!0,!1))){for(var R=_.a((Y==null?void 0:Y.childNodes)||[]),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=void 0,X=void 0,M=void 0,W=void 0,z=void 0;(M=(t=window)==null?void 0:(X=t.ShadyCSS)==null?void 0:X.ScopingShim)==null||(z=(W=M).scopeNode)==null||z.call(W,Z,this.hostElement.localName)}R=Y.lastChild;D.insertNode(Y);this.focused||this.input.focus();if(this.focused){D=D.cloneRange();D.selectNodeContents(R);
D.collapse(!1);if(Y=window.getSelection())Y.removeAllRanges(),Y.addRange(D);D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}D=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(D);_.MX(this.hostElement,"yt-live-chat-message-input-change",D)}};
_.u.setLiveChatRichMessageInput=function(D){_.aU(_.aU(this.hostElement).querySelector("#input")).textContent="";if(D&&D.textSegments){for(var Y=0;Y<D.textSegments.length;Y++){var R=D.textSegments[Y];R.text?_.aU(_.aU(this.hostElement).querySelector("#input")).appendChild(_.BM.createDocumentFragment(R.text,!0,!1)):R.emojiId&&(R=_.PM(_.BM,R.emojiId))&&_.aU(_.aU(this.hostElement).querySelector("#input")).appendChild(_.BM.createEmoji(R,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.u.setText=function(D){this.setLiveChatRichMessageInput(D?{textSegments:[{text:D}]}:null)};
_.u.calculateTextBeforeRange=function(D){var Y="",R=D.startContainer;if(R&&R instanceof Text){var Z;Y=((Z=R.textContent)==null?void 0:Z.substring(0,D.startOffset))||"";R=R.previousSibling}for(;R&&R instanceof Text;)Y=R.textContent+Y,R=R.previousSibling;return Y.replace(Oc," ")};
_.u.calculateLiveChatRichMessageInput=function(){for(var D=[],Y="",R=_.aU(_.aU(this.hostElement).querySelector("#input")).childNodes,Z=0;Z<R.length;Z++){var t=R[Z];t instanceof Text?Y+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(Y&&(D.push({text:Y.replace(Oc," ")}),Y=""),D.push({emojiId:t.dataset.emojiId})):Y+=t.alt)}Y&&D.push({text:Y.replace(Oc," ")});if(R=_.aU(this.hostElement).querySelector("#overflow-text")){Y="";R=R.childNodes;for(Z=0;Z<R.length;Z++)t=R[Z],t instanceof Text?
Y+=t.textContent:t instanceof HTMLImageElement&&(t.dataset.emojiId?(Y&&(D.push({text:Y.replace(Oc," ")}),Y=""),D.push({emojiId:t.dataset.emojiId})):Y+=t.alt);Y&&D.push({text:Y.replace(Oc," ")})}return{textSegments:D}};
_.u.computeCharacterCount=function(D){if(!D||!D.textSegments)return 0;for(var Y=0,R=0;R<D.textSegments.length;R++){var Z=D.textSegments[R];if(Z.text)Y+=Z.text.length;else if(Z.emojiId){var t=void 0;if((t=this.data)==null?0:t.emojiCharacterCount)Y+=this.data.emojiCharacterCount;else{var X=t=void 0,M=void 0;Y+=((X=_.PM(_.BM,(t=Z)==null?void 0:t.emojiId))==null?void 0:(M=X.shortcuts)==null?void 0:M[0].length)||0}}}return Y};
_.u.characterCountChanged=function(){_.MX(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.u.focusedChanged=function(){this.hostElement.dispatchEvent(new _.dH("focused-changed",this.focused))};
_.u.focus=function(){this.setFocus(!1)};
_.u.focusAtEnd=function(){this.setFocus(!0)};
_.u.setFocus=function(D){D=D?this.getRangeAtEnd():this.getInputRange();_.aU(this.hostElement).querySelector("#input").focus();var Y=window.getSelection();Y&&(Y.removeAllRanges(),Y.addRange(D))};
_.u.insertEmoji=function(D){var Y,R=((D==null?0:D.isCustomEmoji)?(Y=D.shortcuts)==null?void 0:Y[0]:D==null?void 0:D.emojiId)||"";this.insertText(R)};
_.u.computeText=function(D){if(!D||!D.textSegments)return"";for(var Y="",R=0;R<D.textSegments.length;R++){var Z=D.textSegments[R];if(Z.text)Y+=Z.text;else if(Z.emojiId){var t=void 0,X=void 0,M=void 0;Y+=((X=_.PM(_.BM,(t=Z)==null?void 0:t.emojiId))==null?void 0:(M=X.shortcuts)==null?void 0:M[0])||""}}return Y};
_.u.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.YF.Object.defineProperties(cM.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
cM.prototype.focusedChanged=cM.prototype.focusedChanged;cM.prototype.characterCountChanged=cM.prototype.characterCountChanged;cM.prototype.onSuggestion=cM.prototype.onSuggestion;cM.prototype.onMessageSet=cM.prototype.onMessageSet;cM.prototype.dataChanged=cM.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],cM.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cM.prototype,"disabled",void 0);_.q([_.b("disabled"),_.x("design:type",Number),_.x("design:paramtypes",[])],cM.prototype,"inputTabIndex",null);_.q([_.b("data.maxCharacterLimit"),_.y({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],cM.prototype,"maxCharacterLimit",null);
_.q([_.b("liveChatRichMessageInput"),_.y({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],cM.prototype,"characterCount",null);_.q([_.b("maxCharacterLimit, characterCount"),_.y({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],cM.prototype,"remainingCharacterCount",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],cM.prototype,"isChatMessageInput",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],cM.prototype,"inputExpanded",void 0);_.q([_.y({readOnly:!0,notify:!0}),_.x("design:type",Object)],cM.prototype,"liveChatRichMessageInput",void 0);_.q([_.y(),_.x("design:type",Object)],cM.prototype,"messageInput",void 0);_.q([_.y(),_.x("design:type",Boolean)],cM.prototype,"ignoreColorMapping",void 0);_.q([_.b("characterCount"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cM.prototype,"hasText",null);
_.q([_.y(),_.x("design:type",Object)],cM.prototype,"isValidWithNoInputText",void 0);_.q([_.b("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.y(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cM.prototype,"isInputValid",null);_.q([_.y({readOnly:!0,value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],cM.prototype,"focused",void 0);_.q([_.y(),_.x("design:type",Array)],cM.prototype,"suggestions",void 0);
_.q([_.y(),_.x("design:type",_.xt)],cM.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",_.iu)],cM.prototype,"participantsManager",void 0);_.q([_.y(),_.x("design:type",Boolean)],cM.prototype,"noUnderline",void 0);_.q([_.y(),_.x("design:type",Object)],cM.prototype,"inputMethodEditorActive",void 0);_.q([_.fr("#dropdown"),_.x("design:type",Object)],cM.prototype,"dropdown",void 0);_.q([_.fr("#input"),_.x("design:type",HTMLElement)],cM.prototype,"input",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cM.prototype,"dataChanged",null);_.q([_.Gm("messageInput"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cM.prototype,"onMessageSet",null);_.q([_.Fv("yt-live-chat-select-suggestion"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cM.prototype,"onSuggestion",null);
_.q([_.Gm("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cM.prototype,"characterCountChanged",null);_.q([_.Gm("focused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cM.prototype,"focusedChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],cM);
_.rgD=_.L(cM,"yt-live-chat-text-input-field-renderer",function(){if(GHL===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;FZ_===void 0&&(FZ_=document.createElement("template"));var Z=FZ_;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);GHL=D}D=GHL;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var D6=function(){var D=_.N.apply(this,arguments)||this;D.buttonOverrides={style:"overlay",type:"filled"};D.allowAnimations=!1;D.modern=_.f("web_button_rework_with_live");D.noPadding=!1;return D};
_.n(D6,_.N);_.u=D6.prototype;_.u.shouldSupportInlineActionButtons=function(){return!0};
_.u.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"}}}}};
_.u.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.u.attached=function(){this.allowAnimations=!1};
_.u.dataChanged=function(){if(this.data){var D={"--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)};_.SN(this.hostElement,D);this.allowAnimations=!0}};
_.u.messageChanged=function(){var D,Y=(D=this.data)==null?void 0:D.message;D=_.aU(_.aU(this.hostElement).querySelector("#message"));D.textContent="";Y&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.u.computeShowOnlyHeader=function(D,Y){return!D||D.pdgLikeButton||D.replyButton||D.buyFlowButton?!1:this.isEmpty(D,Y)&&!D.footer};
_.u.computeShowFooterDivider=function(D,Y,R){return D?!!D.footer&&!this.isEmpty(D,Y)&&!R:!1};
_.u.computeIsUserEditable=function(D){return!!D.inputField};
_.u.computeHasHeartButton=function(D){return(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.u.computeNoveltyImage=function(D){if(D.headerOverlayImage&&D.headerOverlayImage.thumbnails.length){var Y=D.headerOverlayImage.thumbnails[0],R,Z;if((R=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=R.loggingDirectives)==null?0:Z.trackingParams){var t,X;TJU((t=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(X=t.loggingDirectives)==null?void 0:X.trackingParams)}return Y.width||0}return 0};
_.u.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.u.inputFocus=function(){var D=_.aU(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");D&&D.focus()};
_.u.inputInsertEmoji=function(D){var Y=_.aU(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Y&&Y.insertEmoji(D)};
_.u.inputMessage=function(){var D=_.aU(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),Y;return D&&((Y=this.data)==null?0:Y.inputField)?(D.completeEmojis(),_.Qv(D.liveChatRichMessageInput)):null};
_.u.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.u.isEmpty=function(D,Y){return D?D.empty||!(D.message||D.inputField||Y):!0};
_.u.onLowerBuyButtonClick=function(){var D,Y=_.A((D=this.data)==null?void 0:D.buyButton,_.qv);Y&&Y.trackingParams&&!R0$(Y.command)&&(D=_.oT(Y.trackingParams))&&(Y=_.K2())&&_.dC(Y,D)};
_.u.shouldSupportWholeItemClick=function(){return!0};
_.YF.Object.defineProperties(D6.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
D6.prototype.isDeletedChanged=D6.prototype.isDeletedChanged;D6.prototype.messageChanged=D6.prototype.messageChanged;D6.prototype.dataChanged=D6.prototype.dataChanged;_.q([_.v(O11.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],D6.prototype,"ytPdgLiveChatItemBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],D6.prototype,"ytLiveChatReduxBehavior",void 0);
_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],D6.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],D6.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:zQ5}),_.x("design:type",Object)],D6.prototype,"engagementState",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.x("design:type",Boolean)],D6.prototype,"isUserEditable",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.x("design:type",Boolean)],D6.prototype,"hasHeartButton",void 0);_.q([_.y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Boolean)],D6.prototype,"showOnlyHeader",void 0);
_.q([_.y({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.x("design:type",Boolean)],D6.prototype,"showFooterDivider",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],D6.prototype,"allowAnimations",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],D6.prototype,"dashboardMoneyFeed",void 0);_.q([_.y({computed:"computeNoveltyImage(data)"}),_.x("design:type",Number)],D6.prototype,"noveltyWidth",void 0);
_.q([_.y({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],D6.prototype,"authorPhotoSize",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],D6.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],D6.prototype,"noPadding",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D6.prototype,"dataChanged",null);
_.q([_.Gm("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D6.prototype,"messageChanged",null);_.q([_.b("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],D6.prototype,"hideLowerBumper",null);_.q([_.Gm("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D6.prototype,"isDeletedChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],D6);
_.L(D6,"yt-live-chat-paid-message-renderer",function(){if(k0V===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;JyU===void 0&&(JyU=document.createElement("template"));var Z=JyU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);k0V=D}D=k0V;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var wa7;var $oL;var Y$=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.n(Y$,_.Aj);Y$.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.JQ("openPopupConfig")};
_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],Y$.prototype,"ytOpenPopupBehavior",void 0);_.q([_.nr()],Y$);_.Rv=[_.Fh.YtOpenPopupBehavior,Y$.prototype];var vzU;var OD=[_.A6,iCz,_.hh,_.nn,_.Od,_.GRz,_.$I,_.Ni7,_.Jn,l5b];_.f("web_watch_get_updated_metadata_response_processing")&&OD.push(_.dvU);_.f("web_continuation_response_processing")&&OD.push(_.PN);var tMi=new _.R6("RESPONSE_RECEIVED_COMMANDS"),o_i=new _.R6("RESPONSE_RECEIVED_COMMANDS");var eqU="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),f59=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],VdM=["GET_UNSEEN_NOTIFICATION_COUNT"];var Z6=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;D.serviceEndpointHandlers=[];return D};
_.n(Z6,_.Aj);Z6.prototype.created=function(){var D=this;this.endpointHandlerActionMap={"yt-service-request":function(Y,R,Z,t){var X;return Gny(D.hostElement,Y,R,Z,t,D.serviceEndpointHandlers,(X=D.onEntitiesUpdated)==null?void 0:X.bind(D))}}};
Z6.prototype.attached=function(){_.pI(_.Bm.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Z6.prototype.detached=function(){_.E9(_.Bm.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.q([_.nr()],Z6);_.ozY=[Z6.prototype];var bdV,ygL=function(){return bdV!==void 0?bdV:bdV=document.createElement("template")};
document.head.appendChild(ygL().content);var NaE;var lEE=document.head,JgL=lEE.appendChild,kHz;if(NaE===void 0){var UoU=document.createElement("template");_.w(UoU,"\x3c!--css-build:shady--\x3e");UoU.content.insertBefore(ygL().content.cloneNode(!0),UoU.content.firstChild);NaE=UoU}kHz=NaE;JgL.call(lEE,kHz.content);var KZL,hg7=function(){return KZL!==void 0?KZL:KZL=document.createElement("template")};
document.head.appendChild(hg7().content);var LZE;var moz=document.head,qiU=moz.appendChild,HdU;if(LZE===void 0){var xo7=document.createElement("template");_.w(xo7,"\x3c!--css-build:shady--\x3e");xo7.content.insertBefore(hg7().content.cloneNode(!0),xo7.content.firstChild);LZE=xo7}HdU=LZE;qiU.call(moz,HdU.content);var PeY;_.UD("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.UD("sharingRendererButtons","buttonRenderer","ytd-button-renderer");PeY=_.f("web_button_rework")&&_.ks("BUTTON_REWORK")||_.f("web_button_rework_with_live");_.tU=function(){var D=_.N.apply(this,arguments)||this;D.isPressed=!1;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return D};
_.n(_.tU,_.N);_.u=_.tU.prototype;_.u.created=function(){this.showTooltips=!0};
_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.onHintIdChanged=function(){var D=this,Y,R,Z=(Y=this.ytButtonBehavior.data)==null?void 0:(R=Y.hint)==null?void 0:R.hintRenderer;if(Z&&Z.hintId){Y=_.WC(this.hostElement,"yt-get-opened-popups-action");Y=(Y&&Y.length===1?Y[0]:[]).length>0;var t=null;Z.hintId!=="sponsor-pre-purchase"||Y?Z.hintId.startsWith("sponsor-post-purchase")&&!Y?t=znL("membership-manage"):Z.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!Y&&(t=znL("membership-freebie-join")):t=znL("membership-join");t&&_.yc.addLowPriorityJob(function(){for(var X=
_.a(t),M=X.next();!M.done;M=X.next())D.ytComponentBehavior.resolveCommand(M.value)})}};
_.u.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.u.onYtNavigate=function(D){var Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);Y&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Y))};
_.u.onYtServiceRequestSent=function(D,Y){this.handleServiceRequestActions(Y);_.MX(this.hostElement,"yt-service-request-sent-button-renderer")};
_.u.onServiceRequestCompleted=function(D,Y){this.handleServiceRequestActions(Y);_.MX(this.hostElement,"yt-service-request-completed-button-renderer")};
_.u.updateButton=function(D){var Y;if(D=(Y=_.A(D,Hg4))==null?void 0:Y.updatedButton)this.ytButtonBehavior.data=_.A(D,_.qv)};
_.u.handleUpdateButtonAction=function(D){var Y=this.ytButtonBehavior.data;Y.targetId&&D.updateButtonAction.targetId&&Y.targetId===D.updateButtonAction.targetId&&this.updateButton(D)};
_.u.handleServiceRequestActions=function(D){if(D=D.actions)for(var Y=0;Y<D.length;Y++)this.updateButton(D[Y])};
_.YF.Object.defineProperties(_.tU,{template:{configurable:!0,enumerable:!0,get:function(){if(vzU===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);vzU=D}D=vzU;return D}}});
_.tU.prototype.onServiceRequestCompleted=_.tU.prototype.onServiceRequestCompleted;_.tU.prototype.onYtServiceRequestSent=_.tU.prototype.onYtServiceRequestSent;_.tU.prototype.onYtNavigate=_.tU.prototype.onYtNavigate;_.tU.prototype.onPressedStateChanged=_.tU.prototype.onPressedStateChanged;_.tU.prototype.onHintIdChanged=_.tU.prototype.onHintIdChanged;_.q([_.y(),_.x("design:type",Object)],_.tU.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],_.tU.prototype,"isPressed",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],_.tU.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.csz.YtButtonBehavior),_.x("design:type",Object)],_.tU.prototype,"ytButtonBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],_.tU.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],_.tU.prototype,"ytComponentBehavior",void 0);
_.q([_.v($t.YtRenderButtonBehavior),_.x("design:type",Object)],_.tU.prototype,"ytRenderButtonBehavior",void 0);_.q([_.Gm("data.hint.hintRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.tU.prototype,"onHintIdChanged",null);_.q([_.Gm("isPressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.tU.prototype,"onPressedStateChanged",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.tU.prototype,"onYtNavigate",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],_.tU.prototype,"onYtServiceRequestSent",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],_.tU.prototype,"onServiceRequestCompleted",null);_.q([_.h({is:"ytd-button-renderer",disableElementRegistration:PeY})],_.tU);var sY=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.n(sY,_.N);_.u=sY.prototype;_.u.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"}}}}};
_.u.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.u.dataChanged=function(){if(this.data&&this.data.sticker){var D=_.MW(this.data.sticker.thumbnails,this.stickerWidth);D||_.Ugn(D).thenCatch(function(){_.Jk(new _.AT("Failed to load Super Sticker with url",D))})}};
_.u.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)?32:40};
_.u.computeIsV2Style=function(D){return(D==null?0:D.isV2Style)?!0:!1};
_.u.onStickerLoaded=function(D){var Y,R,Z;(Y=_.cG(D))==null||(R=Y.parentNode)==null||(Z=R.classList)==null||Z.add("sticker-loaded")};
_.u.computeNoveltyImageWidth=function(D){var Y,R;if(D==null?0:(Y=D.headerOverlayImage)==null?0:(R=Y.thumbnails)==null?0:R.length){Y=D.headerOverlayImage.thumbnails[0];var Z,t;if((Z=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(t=Z.loggingDirectives)==null?0:t.trackingParams){var X,M;TJU((X=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=X.loggingDirectives)==null?void 0:M.trackingParams)}return Y.width||0}return 0};
_.u.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.u.updateStickerStyles=function(){var D=this.data;D&&(D={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.authorNameTextColor)},
_.SN(this.hostElement,D))};
_.u.onBuyButtonClick=function(){var D,Y=_.A((D=this.data)==null?void 0:D.buyButton,_.qv);Y&&!R0$(Y.command)&&this.ytRendererBehavior.logExplicitClick(Y)};
_.u.shouldSupportWholeItemClick=function(){return!0};
_.YF.Object.defineProperties(sY.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 D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
sY.prototype.updateStickerStyles=sY.prototype.updateStickerStyles;sY.prototype.isDeletedChanged=sY.prototype.isDeletedChanged;sY.prototype.onStickerLoaded=sY.prototype.onStickerLoaded;sY.prototype.dataChanged=sY.prototype.dataChanged;_.q([_.v(O11.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],sY.prototype,"ytPdgLiveChatItemBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],sY.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],sY.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sY.prototype,"data",void 0);
_.q([_.y({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],sY.prototype,"authorPhotoSize",void 0);_.q([_.y(),_.x("design:type",Boolean)],sY.prototype,"isDeleted",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],sY.prototype,"dashboardMoneyFeed",void 0);_.q([_.y({computed:"computeNoveltyImageWidth(data)"}),_.x("design:type",Number)],sY.prototype,"noveltyWidth",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],sY.prototype,"modern",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.x("design:type",Boolean)],sY.prototype,"isV2Style",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sY.prototype,"dataChanged",null);_.q([_.Fv("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sY.prototype,"onStickerLoaded",null);
_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],sY.prototype,"stickerWidth",null);_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],sY.prototype,"stickerHeight",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sY.prototype,"hasHeartButton",null);_.q([_.b("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sY.prototype,"hideLowerBumper",null);
_.q([_.Gm("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sY.prototype,"isDeletedChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sY.prototype,"updateStickerStyles",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],sY);
_.L(sY,"yt-live-chat-paid-sticker-renderer",function(){if($oL===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;wa7===void 0&&(wa7=document.createElement("template"));var Z=wa7;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);$oL=D}D=$oL;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var QSU;var BaU;var paY,Ez1=function(){return paY!==void 0?paY:paY=document.createElement("template")};
document.head.appendChild(Ez1().content);var gzY,doE=function(){return gzY!==void 0?gzY:gzY=document.createElement("template")};
document.head.appendChild(doE().content);var idL;var Od_,cgb=function(){return Od_!==void 0?Od_:Od_=document.createElement("template")};
document.head.appendChild(cgb().content);var DjE;var YhU=document.head,RQD=YhU.appendChild,ZZz;if(DjE===void 0){var tgb=document.createElement("template");_.w(tgb,"\x3c!--css-build:shady--\x3e");tgb.content.insertBefore(cgb().content.cloneNode(!0),tgb.content.firstChild);DjE=tgb}ZZz=DjE;RQD.call(YhU,ZZz.content);var sA_=document.head,XI4=sA_.appendChild,uRz;if(idL===void 0){var X8=document.createElement("template");_.w(X8,"\x3c!--css-build:shady--\x3e");X8.content.insertBefore(doE().content.cloneNode(!0),X8.content.firstChild);X8.content.insertBefore(Ez1().content.cloneNode(!0),X8.content.firstChild);idL=X8}uRz=idL;XI4.call(sA_,uRz.content);var uH=function(){var D=_.Aj.apply(this,arguments)||this;D.focusedIndex=0;D.verticalOffset=0;D.verticalAlign="top";D.dynamicAlign=!0;return D};
_.n(uH,_.Aj);uH.prototype.emojiUrl=function(D){D=_.PM(this.emojiManager,D);if(!D)return"";var Y;D=(Y=D.image)==null?void 0:Y.thumbnails;return _.MW(D,24)||""};
var agE=function(D){var Y;D.emojiVariants&&(Y=D.data)!=null&&Y.target&&_.cy(D,function(){D.set("verticalOffset",-1*D.hostElement.clientHeight);var R=_.aU(D.hostElement).querySelector("img");R&&R.focus()})};
_.u=uH.prototype;_.u.onKeyboardEnter=function(){};
_.u.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.u.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.u.onKeyDown=function(D){switch(D.keyCode){case 13:this.onKeyboardEnter();D.preventDefault();break;case 40:this.changeFocus(1);D.preventDefault();break;case 38:this.changeFocus(-1);D.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.u.onYtEmojiSelect=function(D){var Y=this,R,Z,t,X,M,W,z,I;return _.C(function(F){if(F.nextAddress==1)return Z=(R=Y.data)==null?void 0:R.emoji,M=((t=Z)==null?void 0:t.stickyPrefId)||((X=Z)==null?void 0:X.emojiId),z=(W=D.detail)==null?void 0:W.emojiId,M&&z&&M!==z?F.yield((I=Y.emojiManager)==null?void 0:Sib(I,Z,z),2):F.return();_.CX(Y.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Z,z]);_.V9(F)})};
_.u.changeFocus=function(D){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+D+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(D=_.aU(this.hostElement).querySelector("#variants"))&&D.children[this.focusedIndex].focus())};
_.YF.Object.defineProperties(uH.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
uH.prototype.onYtEmojiSelect=uH.prototype.onYtEmojiSelect;uH.prototype.onKeyDown=uH.prototype.onKeyDown;uH.prototype.onEmojiVariantsChanged=uH.prototype.onEmojiVariantsChanged;uH.prototype.onVerticalOffsetOrPositionTargetChanged=uH.prototype.onVerticalOffsetOrPositionTargetChanged;_.q([_.v(_.pJ),_.x("design:type",Object)],uH.prototype,"ironOverlayBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uH.prototype,"data",void 0);_.q([_.y(),_.x("design:type",_.xt)],uH.prototype,"emojiManager",void 0);
_.q([_.y(),_.x("design:type",Object)],uH.prototype,"emojiVariants",void 0);_.q([_.y(),_.x("design:type",Object)],uH.prototype,"focusedIndex",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uH.prototype,"positionTarget",null);_.q([_.y({reflectToAttribute:!0}),_.b("verticalOffset","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uH.prototype,"isPositioned",null);_.q([_.y(),_.x("design:type",Object)],uH.prototype,"verticalOffset",void 0);
_.q([_.y(),_.x("design:type",Object)],uH.prototype,"verticalAlign",void 0);_.q([_.y(),_.x("design:type",Object)],uH.prototype,"dynamicAlign",void 0);_.q([_.Gm("verticalOffset","positionTarget"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uH.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.q([_.Gm("emojiVariants"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uH.prototype,"onEmojiVariantsChanged",null);
_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],uH.prototype,"onKeyDown",null);_.q([_.Fv("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],uH.prototype,"onYtEmojiSelect",null);_.q([_.nr()],uH);var MgY=[uH.prototype];var CZb;var WEU;var zQ7=/medium-light|medium-dark|light|medium|dark/,ShD=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,TJE=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),av=function(){var D=_.N.apply(this,arguments)||this;D.userSelection={left:null,right:null};D.scrollAction="lock";D.isEmojiDraftInProgress=!1;return D};
_.n(av,_.N);_.u=av.prototype;_.u.onClick=function(D){D=_.cG(D);D instanceof HTMLImageElement&&this.selectOrUpdateEmoji(D)};
_.u.selectOrUpdateEmoji=function(D){var Y=D.getAttribute("selection");Y&&(Y==="default"?_.MX(this.hostElement,"yt-emoji-select",_.PM(this.emojiManager,D.id)):Y==="left"?this.userSelection=Object.assign({},this.userSelection,{left:D.src}):Y==="right"?this.userSelection=Object.assign({},this.userSelection,{right:D.src}):Y==="user"&&this.userSelection.left&&this.userSelection.right&&_.MX(this.hostElement,"yt-emoji-select",_.PM(this.emojiManager,D.id)))};
_.u.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.u.onMultiSelectorThumbnailRowChanged=function(){var D,Y,R;((D=this.data)==null?0:(Y=D.emoji)==null?0:(R=Y.multiSelectorThumbnailRow)==null?0:R.length)&&this.openSelector()};
_.u.getThumbnailFromEmojiRow=function(D){var Y,R;return(D==null?void 0:(Y=D.thumbnails)==null?void 0:(R=Y[0])==null?void 0:R.url)||""};
_.u.getEmojiAltTextForPartialSelector=function(D){var Y;return((Y=this.getThumbnailFromEmojiRow(D).match(ShD))==null?void 0:Y[0])||""};
_.u.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.u.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.u.getRowSelection=function(D){return["left","right"][D]};
_.u.getIdFromComposedEmoji=function(D){return(D==null?void 0:D.emojiId)||""};
_.u.getEmojiFromPartialSelections=function(D,Y){if(!D&&!Y)return null;var R,Z,t=(R=this.data)==null?void 0:(Z=R.emoji)==null?void 0:Z.variantIds;if(!t||!t.length)return null;var X;D=(X=D.match(zQ7))==null?void 0:X[0];var M;Y=(M=Y.match(zQ7))==null?void 0:M[0];if(!D||!Y)return null;var W=TJE.get(D);M=TJE.get(Y);if(W===M){M=Array.from(TJE.values()).filter(function(I){return I!==W}).join("|");
var z=new RegExp("^((?!("+M+")).)*"+W+"$")}else z=new RegExp(W+".*"+M);return(t=t.find(function(I){return z.test(I)}))&&_.PM(this.emojiManager,t)||null};
_.u.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var D,Y=this.ytEmojiSelectorBehavior.emojiUrl(((D=this.data.emoji)==null?void 0:D.emojiId)||"");_.aU(this.hostElement).querySelector('[selection="user"]').src.includes(Y)||(this.isEmojiDraftInProgress=!0)}};
_.u.onDomChange=function(){agE(this.ytEmojiSelectorBehavior)};
_.u.getFocusableElements=function(){return _.aU(this.hostElement).querySelectorAll("img").filter(function(D){return D.getAttribute("role")==="option"})};
_.u.changeFocus=function(D){var Y=this.getFocusableElements();Y!=null&&Y.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+D+Y.length)%Y.length,this.ytEmojiSelectorBehavior.focusedIndex<Y.length&&(D=Y[this.ytEmojiSelectorBehavior.focusedIndex])&&D.focus())};
_.u.onKeyboardEnter=function(){var D=this.getFocusableElements();D!=null&&D.length&&(D=D[this.ytEmojiSelectorBehavior.focusedIndex])&&D instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(D),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.YF.Object.defineProperties(av.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,Y,R,Z;return this.emojiManager&&((Y=this.data)==null?0:(R=Y.emoji)==null?0:(Z=R.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.PM(D.emojiManager,t)}).filter(function(t){return!!t}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D,Y=(D=this.userSelection)==null?void 0:D.left,R;D=(R=this.userSelection)==null?void 0:R.right;return Y&&D?this.getEmojiFromPartialSelections(Y,D):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.composedEmojiSelection)==null?0:D.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var Y;D=(Y=this.userSelection)==null?void 0:Y.left;var R;Y=(R=this.userSelection)==null?void 0:R.right;if(!D&&!Y){var Z;return this.ytEmojiSelectorBehavior.emojiUrl(((Z=this.data.emoji)==null?void 0:Z.emojiId)||"")}return D&&!Y?D:!D&&Y?Y:""}}});
av.prototype.onMultiSelectorThumbnailRowChanged=av.prototype.onMultiSelectorThumbnailRowChanged;av.prototype.onClick=av.prototype.onClick;_.q([_.v(_.pJ),_.x("design:type",Object)],av.prototype,"ironOverlayBehavior",void 0);_.q([_.v(MgY),_.x("design:type",Object)],av.prototype,"ytEmojiSelectorBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],av.prototype,"data",void 0);_.q([_.y(),_.x("design:type",_.xt)],av.prototype,"emojiManager",void 0);
_.q([_.y(),_.x("design:type",Object)],av.prototype,"userSelection",void 0);_.q([_.y(),_.x("design:type",Object)],av.prototype,"scrollAction",void 0);_.q([_.y(),_.x("design:type",Object)],av.prototype,"isEmojiDraftInProgress",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],av.prototype,"emojiVariants",null);_.q([_.b("data","userSelection"),_.x("design:type",Object),_.x("design:paramtypes",[])],av.prototype,"composedEmojiSelection",null);
_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],av.prototype,"onClick",null);_.q([_.Gm("data.emoji.multiSelectorThumbnailRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],av.prototype,"onMultiSelectorThumbnailRowChanged",null);_.q([_.b("data","userSelection","composedEmojiSelection"),_.x("design:type",String),_.x("design:paramtypes",[])],av.prototype,"draftEmojiUrl",null);
_.q([_.Lr({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],av);
_.L(av,"yt-emoji-multi-person-selector",function(){if(WEU===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;CZb===void 0&&(CZb=document.createElement("template"));var Z=CZb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);WEU=D}D=WEU;return D},{mode:2});var jA7;var Ig_;var MD=function(){var D=_.N.apply(this,arguments)||this;D.tooltip_=null;return D};
_.n(MD,_.N);_.u=MD.prototype;_.u.dataChanged_=function(){var D;if((D=this.data)==null?0:D.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.aU(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.zm)(this.tooltip_).textContent=this.data.tooltip};
_.u.computeTargetId=function(){var D;return((D=this.data)==null?void 0:D.targetId)||""};
_.u.computeId_=function(D){return D};
_.u.computeIcon_=function(D){return _.IT(D)};
_.u.onTap_=function(){this.active=!this.active;_.MX(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.u.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("active-changed",this.active))};
_.YF.Object.defineProperties(MD.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var D,Y;if((D=this.data)==null?0:(Y=D.icon)==null?0:Y.iconType)return this.data.icon.iconType==="SUPER_STICKER";var R,Z;return((R=this.data)==null?void 0:(Z=R.icon)==null?void 0:Z.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
MD.prototype.activeChangedForBinding=MD.prototype.activeChangedForBinding;MD.prototype.dataChanged_=MD.prototype.dataChanged_;_.q([_.v(_.QA.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],MD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],MD.prototype,"data",void 0);_.q([_.y({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.x("design:type",String)],MD.prototype,"id",void 0);
_.q([_.y({computed:"computeTargetId(data.targetId)"}),_.x("design:type",String)],MD.prototype,"targetId",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],MD.prototype,"active",void 0);_.q([_.y({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.x("design:type",String)],MD.prototype,"icon",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MD.prototype,"dataChanged_",null);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],MD.prototype,"iconFilled",null);_.q([_.Gm("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MD.prototype,"activeChangedForBinding",null);_.q([_.Lr({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],MD);
_.L(MD,"yt-emoji-picker-category-button-renderer",function(){if(Ig_===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;jA7===void 0&&(jA7=document.createElement("template"));var Z=jA7;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Ig_=D}D=Ig_;return D},{mode:2});var FE4;var GWE;var CS=function(){var D=_.N.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};D.JSC$14085_ignoreNextFocus_=!1;D.longPressTimeoutId=-1;return D};
_.n(CS,_.N);_.u=CS.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.u.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.n8(),Y=0;Y<this.emoji.length;Y++){var R={veType:88013,elementIndex:Y},Z=this.emoji[Y];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(R=_.Ai(D,R))&&(Z.visualElement=R)}};
_.u.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.u.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.u.emojiSkinToneChanged_=function(D){this.skinTone=D};
_.u.dataChanged=function(){this.data&&this.data.emojiData&&MTU(this.emojiManager,this.data.emojiData)};
_.u.emojiUrl=function(D){D=this.getEmoji(D);if(!D)return"";var Y;D=(Y=D.image)==null?void 0:Y.thumbnails;return _.MW(D,24)||""};
_.u.emojiAlt=function(D){var Y=this.get("image.accessibility.accessibilityData.label",D);return Y?Y:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.u.emojiAriaLabel=function(D){return D.shortcuts?D.shortcuts[0]:""};
_.u.emojiAriaSelected=function(D,Y,R){return D&&R==Y?"true":"false"};
_.u.getEmoji=function(D){if(this.emojiManager)return this.shouldUseStickyPreferences?WZY(this.emojiManager,D):Qa(this.emojiManager,D)};
_.u.computeId_=function(D){return D.categoryId||""};
_.u.computeEmoji=function(D){var Y=this;return this.emojiManager?D.emojiIds?D.emojiIds.map(function(R){return R?_.PM(Y.emojiManager,R):null}).filter(K2b):D.emojiData?D.emojiData.map(function(R){var Z=!!R.emojiId&&_.PM(Y.emojiManager,R.emojiId);
return Z?Object.assign({},Z,R):null}).filter(K2b):[]:[]};
_.u.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.u.computeAriaLabel_=function(D){return _.OM(D)};
_.u.computeAriaActivedescendant_=function(D,Y){return D&&D[Y]?D[Y].emojiId||"":""};
_.u.handleLongPressEmojiWithVariants=function(D,Y){this.changeFocusToEmoji(D.emojiId,!1);this.openVariantSelector(D,Y)};
_.u.onMouseDown=function(D){var Y=this;this.hostElement!==document.activeElement&&(this.JSC$14085_ignoreNextFocus_=!0);if(D.button===0){var R=_.cG(D);if(R instanceof HTMLImageElement){var Z=_.aU(this.hostElement).querySelector("#repeat").itemForElement(R);this.emojiContainsVariants(Z)&&(this.longPressTimeoutId=setTimeout(function(){Y.handleLongPressEmojiWithVariants(Z,R)},500))}}};
_.u.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.u.onFocus=function(){this.JSC$14085_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14085_ignoreNextFocus_=!1};
_.u.onBlur_=function(){this.showFocus=!1};
_.u.emojiContainsVariants=function(D){return!!(D&&D.variantIds&&D.variantIds.length)};
_.u.onClick=function(D){clearTimeout(this.longPressTimeoutId);D=_.cG(D);if(D instanceof HTMLImageElement){var Y=D.id;this.changeFocusToEmoji(Y,!1);var R=this.getEmoji(Y),Z;if(Z=this.shouldUseStickyPreferences&&this.emojiContainsVariants(R)){var t;Z=!((t=this.emojiManager.emojiMap[Y])!=null&&t.stickyPrefId)}Z?(t=_.aU(this.hostElement).querySelector("#repeat").itemForElement(D),this.openVariantSelector(t,D)):_.MX(this.hostElement,"yt-emoji-select",R)}};
_.u.isActiveEmojiWithVariants=function(D,Y){return D&&Y?Y.stickyPrefId?D===Y.stickyPrefId:D===Y.emojiId:!1};
_.u.onCloseEmojiVariantSelector=function(D){this.activeEmojiWithVariantsId===D&&(this.activeEmojiWithVariantsId="")};
_.u.onMouseOver_=function(D){D=_.cG(D);D instanceof HTMLImageElement&&_.MX(this.hostElement,"yt-emoji-hover",_.PM(this.emojiManager,D.id))};
_.u.changeFocus_=function(D,Y){this.focusedIndex=(this.focusedIndex+D+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(D=this.emoji[this.focusedIndex],Y&&(this.showFocus=!0,_.aU(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.MX(this.hostElement,"yt-emoji-hover",D)))};
_.u.changeFocusToEmoji=function(D,Y){if(D){var R=this.emoji.findIndex(function(Z){return Z.emojiId===D});
R!==-1&&this.changeFocus_(R-this.focusedIndex,Y)}};
_.u.onKeyDown_=function(D){switch(D.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var Y=this.emoji[this.focusedIndex];if(Y&&Y.emojiId){if(this.emojiContainsVariants(Y)){var R=_.aU(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(Y,R)}else _.MX(this.hostElement,"yt-emoji-select",Qa(this.emojiManager,Y.emojiId)),this.hostElement.focus();D.preventDefault()}}break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),
D.preventDefault()}};
_.u.onEmojiStickyPreferenceChanged=function(D,Y){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&D.emojiId&&D.variantIds&&D.variantIds.includes(Y)&&this.activeEmojiWithVariantsId!==Y&&this.setStickyEmojiPreference(D.emojiId,Y)};
_.u.openVariantSelector=function(D,Y){this.activeEmojiWithVariantsId=D.stickyPrefId||D.emojiId||"";_.MX(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:D,target:Y})};
_.u.setStickyEmojiPreference=function(D,Y){if(this.data){var R=this.emoji.findIndex(function(t){return t.emojiId===D});
if(R!==-1){var Z=this.emoji[R];Z.stickyPrefId=Y;this.set("emoji."+R,Object.assign({},Z));this.activeEmojiWithVariantsId=Y}}};
CS.prototype.onKeyDown_=CS.prototype.onKeyDown_;CS.prototype.onMouseOver_=CS.prototype.onMouseOver_;CS.prototype.onClick=CS.prototype.onClick;CS.prototype.onBlur_=CS.prototype.onBlur_;CS.prototype.onFocus=CS.prototype.onFocus;CS.prototype.onMouseUp=CS.prototype.onMouseUp;CS.prototype.onMouseDown=CS.prototype.onMouseDown;CS.prototype.dataChanged=CS.prototype.dataChanged;CS.prototype.disableIncrementalLoadingChanged_=CS.prototype.disableIncrementalLoadingChanged_;CS.prototype.emojiManagerChanged_=CS.prototype.emojiManagerChanged_;
CS.prototype.emojiChanged_=CS.prototype.emojiChanged_;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],CS.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],CS.prototype,"data",void 0);_.q([_.y({computed:"computeId_(data)"}),_.x("design:type",String)],CS.prototype,"id",void 0);_.q([_.y({computed:"computeEmoji(data)"}),_.x("design:type",Array)],CS.prototype,"emoji",void 0);_.q([_.y(),_.x("design:type",Number)],CS.prototype,"skinTone",void 0);
_.q([_.y(),_.x("design:type",_.xt)],CS.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",Boolean)],CS.prototype,"disableIncrementalLoading",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],CS.prototype,"focusedIndex",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],CS.prototype,"showFocus",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.x("design:type",Object)],CS.prototype,"ariaLabel",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.x("design:type",Object)],CS.prototype,"ariaActivedescendant",void 0);_.q([_.y({value:60}),_.x("design:type",Number)],CS.prototype,"domRepeatTargetFramerate",void 0);_.q([_.y({value:1}),_.x("design:type",Number)],CS.prototype,"domRepeatInitialCount",void 0);_.q([_.y({value:""}),_.x("design:type",String)],CS.prototype,"activeEmojiWithVariantsId",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],CS.prototype,"shouldUseStickyPreferences",void 0);_.q([_.Gm("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"emojiChanged_",null);_.q([_.Gm("emojiManager"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"emojiManagerChanged_",null);
_.q([_.Gm("disableIncrementalLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"disableIncrementalLoadingChanged_",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"dataChanged",null);_.q([_.Fv("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],CS.prototype,"onMouseDown",null);
_.q([_.Fv("mouseup"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"onMouseUp",null);_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"onFocus",null);_.q([_.Fv("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CS.prototype,"onBlur_",null);
_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],CS.prototype,"onClick",null);_.q([_.Fv("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],CS.prototype,"onMouseOver_",null);_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],CS.prototype,"onKeyDown_",null);
_.q([_.Lr({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],CS);
_.L(CS,"yt-emoji-picker-category-renderer",function(){if(GWE===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;FE4===void 0&&(FE4=document.createElement("template"));var Z=FE4;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);GWE=D}D=GWE;return D},{mode:2});var VgU;var fg4;var eQV;var AKz;var WH=function(){var D=_.N.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.getFormattedStringRawText=_.OM;D.JSC$14091_ignoreNextFocus_=!1;return D};
_.n(WH,_.N);_.u=WH.prototype;_.u.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")};
_.u.emojiUrl=function(D){var Y,R;D=(Y=Qa(this.emojiManager,D,!0))==null?void 0:(R=Y.image)==null?void 0:R.thumbnails;return _.MW(D,24)||""};
_.u.emojiAlt=function(D){var Y=this.get("image.accessibility.accessibilityData.label",D);return Y?Y:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.u.emojiId=function(D){return"emoji"+D};
_.u.computeId_=function(D){return D.categoryId||""};
_.u.computeAriaActivedescendant_=function(D){return this.emoji&&D<this.emoji.length?this.emojiId(D):""};
_.u.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.n8(),Y=0;Y<this.emoji.length;Y++){var R={veType:88013,elementIndex:Y},Z=this.emoji[Y];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(R=_.Ai(D,R))&&(Z.visualElement=R)}};
_.u.computeEmoji_=function(D){var Y=this;return this.emojiManager?D.emojiIds.map(function(R){return _.PM(Y.emojiManager,R,!0)}).filter(hqi):[]};
_.u.titleOffsetChanged_=function(){var D=this.hostElement.getBoundingClientRect(),Y=_.aU(this.hostElement).querySelector("#title").getBoundingClientRect();D=Math.max(0,Math.min(this.titleOffset,D.height-Y.height));_.aU(this.hostElement).querySelector("#title").style.top=D+"px"};
_.u.onEmojiMouseOver_=function(D){_.MX(this.hostElement,"yt-emoji-hover",D.model.item)};
_.u.onEmojiTap_=function(D){this.data.command&&(D=AKr(_.DH().resolve(_.cD(Pm)),this.data.command,D),_.MX(this.hostElement,"yt-navigate",D))};
_.u.emojiAriaLabel=function(D){return D.shortcuts[0]};
_.u.emojiAriaSelected=function(D,Y,R){return D&&R==Y?"true":"false"};
_.u.changeFocus_=function(D,Y){var R=this.emoji.length;this.focusedIndex=(this.focusedIndex+D+R)%R;D=this.emoji[this.focusedIndex];if(Y){var Z;(Z=_.aU(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Z.scrollIntoView(!1);_.MX(this.hostElement,"yt-emoji-hover",D)}};
_.u.onMouseDown_=function(){this.JSC$14091_ignoreNextFocus_=!0};
_.u.onFocus_=function(){this.JSC$14091_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14091_ignoreNextFocus_=!1};
_.u.onBlur_=function(){this.showFocus=!1};
_.u.onKeyDown_=function(D){switch(D.keyCode){case 13:this.onEmojiTap_(D);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),D.preventDefault()}};
WH.prototype.onKeyDown_=WH.prototype.onKeyDown_;WH.prototype.onBlur_=WH.prototype.onBlur_;WH.prototype.onFocus_=WH.prototype.onFocus_;WH.prototype.onMouseDown_=WH.prototype.onMouseDown_;WH.prototype.onEmojiTap_=WH.prototype.onEmojiTap_;WH.prototype.titleOffsetChanged_=WH.prototype.titleOffsetChanged_;WH.prototype.emojiChanged_=WH.prototype.emojiChanged_;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],WH.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],WH.prototype,"data",void 0);_.q([_.y({computed:"computeId_(data)"}),_.x("design:type",String)],WH.prototype,"id",void 0);_.q([_.y({computed:"computeEmoji_(data)"}),_.x("design:type",Array)],WH.prototype,"emoji",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],WH.prototype,"titleOffset",void 0);_.q([_.y({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.x("design:type",Object)],WH.prototype,"ariaLabel",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.x("design:type",Object)],WH.prototype,"ariaActivedescendant",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],WH.prototype,"showFocus",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],WH.prototype,"focusedIndex",void 0);_.q([_.y(),_.x("design:type",_.xt)],WH.prototype,"emojiManager",void 0);
_.q([_.Gm("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WH.prototype,"emojiChanged_",null);_.q([_.Gm("titleOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WH.prototype,"titleOffsetChanged_",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],WH.prototype,"onEmojiTap_",null);
_.q([_.Fv("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WH.prototype,"onMouseDown_",null);_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WH.prototype,"onFocus_",null);_.q([_.Fv("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WH.prototype,"onBlur_",null);
_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],WH.prototype,"onKeyDown_",null);_.q([_.Lr({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],WH);
_.L(WH,"yt-emoji-picker-upsell-category-renderer",function(){if(AKz===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;eQV===void 0&&(eQV=document.createElement("template"));var Z=eQV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);AKz=D}D=AKz;return D},{mode:2});var nXz;var rKz;var z2=function(){var D=_.N.apply(this,arguments)||this;D.scrollAction="lock";D.verticalAlign="top";return D};
_.n(z2,_.N);_.u=z2.prototype;_.u.onClick=function(D){D=_.cG(D);D instanceof HTMLImageElement&&_.MX(this.hostElement,"yt-emoji-select",_.PM(this.emojiManager,D.id))};
_.u.openSelector=function(){this.ironOverlayBehavior.open()};
_.u.onDomChange=function(){agE(this.ytEmojiSelectorBehavior)};
_.u.computeIsFamilySelector=function(D){var Y;return(D==null?void 0:(Y=D.emoji)==null?void 0:Y.emojiId)==="\ud83d\udc6a"};
_.u.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var D=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];D&&D.emojiId&&(_.MX(this.hostElement,"yt-emoji-select",_.PM(this.emojiManager,D.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.YF.Object.defineProperties(z2.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,Y,R,Z;return this.emojiManager&&((Y=this.data)==null?0:(R=Y.emoji)==null?0:(Z=R.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(t){return!!t&&_.PM(D.emojiManager,t)}).filter(function(t){return!!t}):[]}}});
z2.prototype.onClick=z2.prototype.onClick;_.q([_.v(_.pJ),_.x("design:type",Object)],z2.prototype,"ironOverlayBehavior",void 0);_.q([_.v(MgY),_.x("design:type",Object)],z2.prototype,"ytEmojiSelectorBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],z2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",_.xt)],z2.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",Object)],z2.prototype,"scrollAction",void 0);_.q([_.y(),_.x("design:type",Object)],z2.prototype,"verticalAlign",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.x("design:type",Boolean)],z2.prototype,"isFamilySelector",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],z2.prototype,"emojiVariants",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],z2.prototype,"onClick",null);_.q([_.Lr({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],z2);
_.L(z2,"yt-emoji-variant-selector",function(){if(rKz===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;nXz===void 0&&(nXz=document.createElement("template"));var Z=nXz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);rKz=D}D=rKz;return D},{mode:2});var wI_=/:/g,$j4=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],S5=function(){var D=_.N.apply(this,arguments)||this;D.emojiVariantSelector=null;D.emojiMultiPersonSelector=null;D.identity=_.kn;D.lastAnimationTime_=0;D.animationStart_=null;D.animationEnd_=null;return D};
_.n(S5,_.N);_.u=S5.prototype;
_.u.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}}};
_.u.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.BM)};
_.u.attached=function(){_.Cw&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&CeD(this.emojiManager)};
_.u.dataChanged=function(){var D;if((D=this.data)==null?0:D.categories){D=this.emojiManager;var Y=this.getCustomEmojiIds();D.pickerCustomEmojiIds=[].concat(_.oK(tTL),_.oK(Y))}};
_.u.getCustomEmojiIds=function(){var D,Y=(D=this.data.categories)==null?void 0:D.find(function(X){var M;return((M=X.emojiPickerCategoryRenderer)==null?void 0:M.categoryId)&&$j4.includes(X.emojiPickerCategoryRenderer.categoryId)}),R;
D=(R=this.data.categories)==null?void 0:R.find(function(X){return X.emojiPickerUpsellCategoryRenderer});
var Z,t;return[Y==null?void 0:(Z=Y.emojiPickerCategoryRenderer)==null?void 0:Z.emojiIds,D==null?void 0:(t=D.emojiPickerUpsellCategoryRenderer)==null?void 0:t.emojiIds].flat().filter(function(X){return!!X})};
_.u.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.u.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.u.updateCategoriesAndPlaceholderInternal=function(D,Y){var R=this;D&&Y&&(this.categories=D.categories||[],this.categoryButtons=D.categoryButtons||[],this.resetPlaceholder(),this.search="",_.BE(function(){R.updateButtons_()}))};
_.u.computeId_=function(D){return D.id||""};
_.u.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(D){return D.emojiPickerCategoryRenderer&&D.emojiPickerCategoryRenderer.emojiData}):!1};
_.u.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.u.onShowEmojiVariantSelector=function(D){var Y=D.detail.emojiData;Y.variantIds&&Y.variantIds.length&&(Y.multiSelectorThumbnailRow&&Y.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:Y,target:D.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:Y,target:D.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.u.onIronOverlayClosed=function(D){var Y=WZY(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");Y&&D.composedPath&&(D.composedPath().includes(_.aU(this.hostElement).querySelector("#emoji-variant-selector"))||D.composedPath().includes(_.aU(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.CX(this.hostElement,"yt-close-emoji-variant-selector",[Y.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.u.onEmojiVariantSelectorMouseup=function(D){var Y=D.target.firstChild;this.variantSelectorOpened&&Y&&_.BE(function(){Y.noCancelOnOutsideClick=!1},100)};
_.u.onEmojiVariantSelectorMousedown=function(D){D=D.target.firstChild;this.variantSelectorOpened&&D&&(D.noCancelOnOutsideClick=!1)};
_.u.onSelectCategory_=function(D){var Y=this.search!="";this.search="";for(var R=_.aU(this.hostElement).querySelector("#categories").children,Z=0;Z<R.length;Z++){var t=R[Z];if(t.id==D.detail.categoryId){Y?(_.aU(this.hostElement).querySelector("#categories").scrollTop=t.offsetTop,this.updateButtons_()):(this.animationStart_=_.aU(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=t.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.u.onEmojiHover_=function(D){this.placeholder=D.detail.shortcuts?D.detail.shortcuts[0]:""};
_.u.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.u.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.u.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.u.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.u.computeSearchCategory_=function(D){D=D.replace(wI_,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();D=D.split(" ");for(var Y=[],R=this.emojiManager.emojis,Z=0;Z<R.length;Z++){var t=R[Z];if(t.searchTerms)for(var X=0;X<t.searchTerms.length;X++){for(var M=t.searchTerms[X].toLocaleLowerCase(),W=!1,z=0;z<D.length;z++)if(M.indexOf(D[z])!=-1){W=!0;break}if(W&&(!t.isCustomEmoji||!t.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(t.emojiId))){Y.push(t.emojiId);
break}}}return{categoryId:-1,emojiIds:Y}};
_.u.computeSearchEmptyMessage_=function(D,Y){return D&&Y&&Y.emojiIds&&Y.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.u.computeSearching_=function(D){return this.emojiManager&&D.replace(wI_,"").length>1};
_.u.computeSkinToneHidden=function(){var D;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((D=this.data)==null||!D.hideSkinTonePicker)};
_.u.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.u.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.u.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.u.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.u.selectSkinTone_=function(D){D=Number(D.target.getAttribute("tone"));this.set("emojiManager.skinTone",D);_.CX(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[D]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.u.skinToneChanged_=function(){_.aU(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var D=_.aU(this.hostElement).querySelector("#dropdown-content").children,Y=0;Y<D.length;Y++)Y===this.skinTone?D[Y].setAttribute("selected",""):D[Y].removeAttribute("selected")};
_.u.animateScroll_=function(D){this.lastAnimationTime_||(this.lastAnimationTime_=D);D-=this.lastAnimationTime_;D<200?(_.aU(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*D/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.aU(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.u.searchChanged_=function(){this.updateButtons_()};
_.u.updateButtons_=function(){var D=null;if(!this.search)for(var Y=_.aU(this.hostElement).querySelector("#categories").scrollTop,R=_.aU(this.hostElement).querySelector("#categories").children,Z=0;Z<R.length;Z++){var t=R[Z];t.offsetTop<=Y&&(D=t.id)}Y=_.aU(this.hostElement).querySelector("#category-buttons").children;for(R=0;R<Y.length;R++)Z=Y[R],Z.active=Z.id===D};
S5.prototype.searchChanged_=S5.prototype.searchChanged_;S5.prototype.skinToneChanged_=S5.prototype.skinToneChanged_;S5.prototype.onEmojiHover_=S5.prototype.onEmojiHover_;S5.prototype.onSelectCategory_=S5.prototype.onSelectCategory_;S5.prototype.onShowEmojiVariantSelector=S5.prototype.onShowEmojiVariantSelector;S5.prototype.updateCategoriesAndPlaceholder_=S5.prototype.updateCategoriesAndPlaceholder_;S5.prototype.dataChanged=S5.prototype.dataChanged;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],S5.prototype,"data",void 0);_.q([_.y({value:function(){return[]}}),
_.x("design:type",Array)],S5.prototype,"categories",void 0);_.q([_.y({value:function(){return[]}}),
_.x("design:type",Array)],S5.prototype,"categoryButtons",void 0);_.q([_.y({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.x("design:type",Boolean)],S5.prototype,"disableScroll",void 0);_.q([_.y({computed:"computeId_(data)",reflectToAttribute:!0}),_.x("design:type",String)],S5.prototype,"id",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],S5.prototype,"selected",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],S5.prototype,"disableIncrementalLoading",void 0);_.q([_.y(),_.x("design:type",String)],S5.prototype,"placeholder",void 0);_.q([_.y({value:""}),_.x("design:type",String)],S5.prototype,"search",void 0);_.q([_.y({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.x("design:type",Boolean)],S5.prototype,"searching",void 0);_.q([_.y({computed:"computeSearchCategory_(search)"}),_.x("design:type",Object)],S5.prototype,"searchCategory",void 0);
_.q([_.y({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.x("design:type",Object)],S5.prototype,"searchEmptyMessage",void 0);_.q([_.y({computed:"identity(emojiManager.skinTone)"}),_.x("design:type",Number)],S5.prototype,"skinTone",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],S5.prototype,"skinToneOpened",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],S5.prototype,"variantSelectorOpened",void 0);
_.q([_.y({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.x("design:type",Boolean)],S5.prototype,"skinToneHidden",void 0);_.q([_.y(),_.x("design:type",_.xt)],S5.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",Object)],S5.prototype,"emojiVariantSelector",void 0);_.q([_.y(),_.x("design:type",Object)],S5.prototype,"emojiMultiPersonSelector",void 0);
_.q([_.y({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.x("design:type",Boolean)],S5.prototype,"shouldUseStickyPreferences",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"dataChanged",null);_.q([_.Gm("data","selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"updateCategoriesAndPlaceholder_",null);
_.q([_.Fv("yt-show-emoji-variant-selector"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],S5.prototype,"onShowEmojiVariantSelector",null);_.q([_.Fv("yt-emoji-picker-select-category"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],S5.prototype,"onSelectCategory_",null);_.q([_.Fv("yt-emoji-hover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],S5.prototype,"onEmojiHover_",null);
_.q([_.Gm("skinTone"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"skinToneChanged_",null);_.q([_.Gm("search"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"searchChanged_",null);_.q([_.Lr({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],S5);
_.L(S5,"yt-emoji-picker-renderer",function(){if(fg4===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;VgU===void 0&&(VgU=document.createElement("template"));var Z=VgU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);fg4=D}D=fg4;return D},{mode:2});var T2=function(){var D=_.N.apply(this,arguments)||this;D.emojiManager=_.BM;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.selectedIndex=1;D.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return D};
_.n(T2,_.N);_.u=T2.prototype;_.u.handleEmojiCustomizationVisible=function(D){this.emojiPickerRenderer.selected=D;this.selectedIndex=1;D?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.u.emojiCustomizationSetChanged=function(){var D;(D=this.data)!=null&&D.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.gr(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.u.updateSaveButtonState=function(D){var Y;(Y=this.data)!=null&&Y.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.oP("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:D}))};
_.u.emojiUrl=function(D){D=_.PM(this.emojiManager,D);if(!D)return"";var Y;D=(Y=D.image)==null?void 0:Y.thumbnails;return _.MW(D,24)||""};
_.u.emojiAlt=function(D){var Y=_.PM(this.emojiManager,D);if(!Y)return D;var R,Z,t,X=(Y==null?void 0:(R=Y.image)==null?void 0:(Z=R.accessibility)==null?void 0:(t=Z.accessibilityData)==null?void 0:t.label)||"";return X?X:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId||D};
_.u.emojiAriaLabel=function(D){var Y,R;return((Y=_.PM(this.emojiManager,D))==null?void 0:(R=Y.shortcuts)==null?void 0:R[0])||D};
_.u.onEmojiClick=function(D){D.model.index!==0&&(this.selectedIndex=D.model.index)};
_.u.onEmojiSelect=function(D){D=D.detail;var Y,R;((Y=this.data)==null?0:Y.emojiCustomizationSetEntityKey)&&((R=this.emojiCustomizationSet)==null?0:R.emojiId)&&D.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.oP("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)}))};
_.u.canEditEmoji=function(D,Y,R){D=D.indexOf(Y);return D===R||D===0||R===0?!1:!0};
_.u.getUpdatedEmojiIdList=function(D,Y,R){var Z=D.indexOf(Y);D=[].concat(_.oK(D));Z>=0&&(D[Z]=D[R]);D[R]=Y;return D};
_.YF.Object.defineProperties(T2,{template:{configurable:!0,enumerable:!0,get:function(){if(BaU===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;QSU===void 0&&(QSU=document.createElement("template"));var Z=QSU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);BaU=D}D=BaU;return D}}});
T2.prototype.onEmojiSelect=T2.prototype.onEmojiSelect;_.q([_.v(_.Ps),_.x("design:type",Object)],T2.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],T2.prototype,"ytActionHandlerBehavior",void 0);_.q([_.fr("yt-emoji-picker-renderer"),_.x("design:type",Object)],T2.prototype,"emojiPickerRenderer",void 0);
_.q([_.y({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(D,Y){return _.jC(D.entities,"emojiCustomizationSetEntity",Y)},
observer:"emojiCustomizationSetChanged"}),_.x("design:type",Object)],T2.prototype,"emojiCustomizationSet",void 0);_.q([_.y(),_.x("design:type",Object)],T2.prototype,"originalEmojiSet",void 0);_.q([_.y(),_.x("design:type",_.xt)],T2.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",Object)],T2.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],T2.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],T2.prototype,"selectedIndex",void 0);
_.q([_.Fv("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],T2.prototype,"onEmojiSelect",null);_.q([_.Lr({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],T2);var vXV;var oXb;var bZL;var yKz;var j5=function(){var D=_.N.apply(this,arguments)||this;D.authorBadges=[];return D};
_.n(j5,_.N);_.u=j5.prototype;_.u.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.u.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]]"}}}}}};
_.u.dataChanged=function(){var D=Fdo(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",D)};
_.u.updateMessage=function(){var D=this.data.message,Y=_.aU(_.aU(this.hostElement).querySelector("#message"));Y.textContent="";D&&Y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.u.shouldSupportWholeItemClick=function(){return!0};
_.u.onShowOriginalClick=function(D){D.preventDefault();this.showOriginal=!0};
_.u.computeShowBar=function(D,Y,R){return D&&Y||R};
_.u.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.u.computeAuthorIsOwner=function(D){return!!GjU(D.authorBadges,"owner")};
_.u.computeAuthorNameColor=function(D){var Y;if(_.f("live_chat_author_name_color_usernames")&&(D==null?0:(Y=D.authorName)==null?0:Y.simpleText))return _.ror(_.wSb(D.authorName.simpleText));if(_.f("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.ror(_.TD(D.authorSeedColorArgb));if(_.f("live_chat_colored_usernames"))return"#cc0000";var R;return _.f("live_chat_simple_color_usernames")&&(D==null?0:(R=D.authorName)==null?0:R.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.TD(D.authorUsernameColorDark):_.TD(D.authorUsernameColorLight):""};
j5.prototype.updateMessage=j5.prototype.updateMessage;j5.prototype.dataChanged=j5.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],j5.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],j5.prototype,"data",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"showOriginal",void 0);_.q([_.y({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"isDimmed",void 0);_.q([_.y({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"showBar",void 0);
_.q([_.y({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],j5.prototype,"authorBadges",void 0);_.q([_.y({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"authorIsOwner",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"inCollapsedBanner",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"inBanner",void 0);
_.q([_.y({value:_.f("live_chat_hide_avatars"),reflectToAttribute:!0}),_.x("design:type",Boolean)],j5.prototype,"avatarHidden",void 0);_.q([_.y({computed:"computeAuthorNameColor(data)"}),_.x("design:type",String)],j5.prototype,"authorNameColor",void 0);_.q([_.y(),_.x("design:type",_.iu)],j5.prototype,"participantsManager",void 0);_.q([_.y({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.x("design:type",Object)],j5.prototype,"filledButtonOverrides",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j5.prototype,"dataChanged",null);_.q([_.Gm("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j5.prototype,"updateMessage",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],j5);
_.L(j5,"yt-live-chat-text-message-renderer",function(){if(yKz===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;bZL===void 0&&(bZL=document.createElement("template"));var Z=bZL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);yKz=D}D=yKz;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Iv=function(){var D=_.N.apply(this,arguments)||this;D.tonalButtonOverrides={type:"tonal",style:"overlay"};return D};
_.n(Iv,_.N);
Iv.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]]"}}}}}};
Iv.prototype.shouldSupportInlineActionButtons=function(){return!0};
Iv.prototype.shouldSupportWholeItemClick=function(){return!0};
_.YF.Object.defineProperties(Iv.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],Iv.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Iv.prototype,"data",void 0);_.q([_.y(),_.x("design:type",_.iu)],Iv.prototype,"participantsManager",void 0);
_.q([_.y(),_.x("design:type",Object)],Iv.prototype,"tonalButtonOverrides",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.infoDialogButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],Iv.prototype,"hasInfoDialogButton",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Iv);
_.L(Iv,"yt-live-chat-auto-mod-message-renderer",function(){if(oXb===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;vXV===void 0&&(vXV=document.createElement("template"));var Z=vXV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);oXb=D}D=oXb;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var NJ1;var lgE;var JKV;var kW_=function(){return _.N.apply(this,arguments)||this};
_.n(kW_,_.N);_.q([_.y(),_.x("design:type",Object)],kW_.prototype,"data",void 0);_.q([_.h({is:"ytd-factoid-renderer",disableElementRegistration:!0})],kW_);
_.L(kW_,"ytd-factoid-renderer",function(){if(JKV!==void 0)return JKV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return JKV=D},{mode:1});var F8=function(){return _.N.apply(this,arguments)||this};
_.n(F8,_.N);F8.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.q([_.y(),_.x("design:type",Object)],F8.prototype,"data",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],F8);
_.L(F8,"yt-live-chat-channel-activity-reputation-renderer",function(){if(lgE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;NJ1===void 0&&(NJ1=document.createElement("template"));var Z=NJ1;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);lgE=D}D=lgE;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var UjL;var KEb;var G2=function(){return _.N.apply(this,arguments)||this};
_.n(G2,_.N);G2.prototype.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Boolean)],G2.prototype,"menuFocused",void 0);_.q([_.y(),_.x("design:type",Object)],G2.prototype,"data",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],G2.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],G2);
_.L(G2,"yt-live-chat-donation-announcement-renderer",function(){if(KEb===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;UjL===void 0&&(UjL=document.createElement("template"));var Z=UjL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);KEb=D}D=KEb;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var hQU;var LEz,mjL=function(){if(LEz!==void 0)return LEz;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;hQU===void 0&&(hQU=document.createElement("template"));var Z=hQU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return LEz=D};var V3=function(){return _.N.apply(this,arguments)||this};
_.n(V3,_.N);_.YF.Object.defineProperties(V3,{template:{configurable:!0,enumerable:!0,get:function(){return mjL()}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],V3.prototype,"data",void 0);_.q([_.Lr({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],V3);_.L(V3,"yt-live-chat-empty-feed-view-model",function(){return mjL()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var qh7;var HZb;var fS=function(){return _.N.apply(this,arguments)||this};
_.n(fS,_.N);fS.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"}}}}}};
_.YF.Object.defineProperties(fS.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var D,Y;return{runs:[{text:(D=this.data)==null?void 0:(Y=D.channelName)==null?void 0:Y.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var D=[],Y;if((Y=this.data)==null||!Y.channelBadges)return D;var R;Y=_.a((R=this.data)==null?void 0:R.channelBadges);for(R=Y.next();!R.done;R=Y.next()){R=_.A(R.value,oSb);var Z=void 0,t=void 0;if((Z=R)==null?0:(t=Z.badgeImage)==null?0:t.sources)Z=void 0,t={liveChatAuthorBadgeRenderer:{tooltip:R.tooltip,accessibility:{accessibilityData:{label:(Z=_.A(R.rendererContext,_.ny))==null?void 0:Z.label}}}},R.badgeImage.sources[0].clientResource?t.liveChatAuthorBadgeRenderer.icon=
{iconType:R.badgeImage.sources[0].clientResource.imageName}:t.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:R.badgeImage.sources},D.push(t)}return D}}});
_.q([_.y(),_.x("design:type",Object)],fS.prototype,"data",void 0);_.q([_.b("data.channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],fS.prototype,"channelName",null);_.q([_.b("data.channelBadges"),_.x("design:type",Array),_.x("design:paramtypes",[])],fS.prototype,"channelBadges",null);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],fS);
_.L(fS,"yt-live-chat-identity-view-model",function(){if(HZb===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;qh7===void 0&&(qh7=document.createElement("template"));var Z=qh7;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);HZb=D}D=HZb;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var xjV;var PZb;var QAD;var BJL;var e5=function(){var D=_.N.apply(this,arguments)||this;D.hidden=!1;D.supportsInlineActionButtons=!0;return D};
_.n(e5,_.N);e5.prototype.ready=function(){var D;((D=document.querySelector("yt-live-chat-app"))==null?0:D.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
e5.prototype.dataChanged=function(D){var Y=(0,_.zm)(_.aU(this.hostElement).querySelector("#detail-text"));Y.textContent="";(D==null?0:D.detailText)&&Y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D.detailText))};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],e5.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({observer:"dataChanged"}),_.x("design:type",Object)],e5.prototype,"data",void 0);
_.q([_.y({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],e5.prototype,"hidden",void 0);_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],e5);
_.L(e5,"yt-live-chat-legacy-paid-message-renderer",function(){if(BJL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;QAD===void 0&&(QAD=document.createElement("template"));var Z=QAD;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);BJL=D}D=BJL;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var pIE;var EXb;var gXD={},AU=function(){return _.Aj.apply(this,arguments)||this};
_.n(AU,_.Aj);AU.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AU.prototype.onLiveChatMembershipItemBehaviorClick=AU.prototype.onLiveChatMembershipItemBehaviorClick;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],AU.prototype,"data",void 0);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],AU.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.q([_.nr()],AU);
gXD.YtLiveChatMembershipItemBehavior=[AU.prototype,_.p.YtRendererBehavior];var nS=function(){var D=_.N.apply(this,arguments)||this;D.supportsInlineActionButtons=!0;D.hasPrimaryHeaderText=!1;D.showOnlyHeader=!1;D.authorBadges=[];D.modern=_.f("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.n(nS,_.N);_.u=nS.prototype;_.u.shouldSupportInlineActionButtons=function(){return!0};
_.u.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.u.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.u.messageChanged=function(){var D=this.data.message,Y=(0,_.zm)(_.aU(this.hostElement).querySelector("#message"));Y.textContent="";D&&Y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.u.computeHasPrimaryHeaderText=function(D){return!(!D||!D.headerPrimaryText)};
_.u.computeShowOnlyHeader=function(D,Y){return this.isMessageEmpty(D,Y)};
_.u.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.u.isMessageEmpty=function(D,Y){return!D||D.empty?!0:!D.message&&!D.inputField&&!Y};
_.u.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.u.getInputElement=function(){return _.aU(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.u.inputFocus=function(){var D=this.getInputElement();D&&D.focus()};
_.u.inputInsertEmoji=function(D){var Y=this.getInputElement();Y&&Y.insertEmoji(D)};
_.u.inputMessage=function(){var D=this.getInputElement();return D&&this.data.inputField?(D.completeEmojis(),_.Qv(D.liveChatRichMessageInput)):null};
_.u.onFooterButtonClick=function(){this.data.footerButton&&_.MX(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.u.shouldSupportWholeItemClick=function(){return!0};
nS.prototype.isDeletedChanged=nS.prototype.isDeletedChanged;nS.prototype.messageChanged=nS.prototype.messageChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],nS.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(gXD.YtLiveChatMembershipItemBehavior),_.x("design:type",Object)],nS.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nS.prototype,"data",void 0);_.q([_.y({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.x("design:type",Object)],nS.prototype,"hasPrimaryHeaderText",void 0);_.q([_.y({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],nS.prototype,"showOnlyHeader",void 0);
_.q([_.y({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],nS.prototype,"authorBadges",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],nS.prototype,"modern",void 0);_.q([_.Gm("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nS.prototype,"messageChanged",null);_.q([_.Gm("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nS.prototype,"isDeletedChanged",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],nS);
_.L(nS,"yt-live-chat-membership-item-renderer",function(){if(EXb===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;pIE===void 0&&(pIE=document.createElement("template"));var Z=pIE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);EXb=D}D=EXb;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var djz;var iZU;var rM=function(){return _.N.apply(this,arguments)||this};
_.n(rM,_.N);rM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rM.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],rM);
_.L(rM,"yt-live-chat-mode-change-message-renderer",function(){if(iZU===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;djz===void 0&&(djz=document.createElement("template"));var Z=djz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);iZU=D}D=iZU;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OZV;var cKY;var wM=function(){return _.N.apply(this,arguments)||this};
_.n(wM,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],wM.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wM.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],wM);
_.L(wM,"yt-live-chat-moderation-message-renderer",function(){if(cKY===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;OZV===void 0&&(OZV=document.createElement("template"));var Z=OZV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);cKY=D}D=cKY;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Dgz;var YTD;var $$=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_button_rework");return D};
_.n($$,_.N);$$.prototype.onClick=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var Y;_.GD.instance.resolveCommand((Y=this.data)==null?void 0:Y.onClickCommand)}};
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$$.prototype,"modern",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],$$.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],$$.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],$$.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],$$);
_.L($$,"yt-live-chat-offer-click-count-message-renderer",function(){if(YTD===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Dgz===void 0&&(Dgz=document.createElement("template"));var Z=Dgz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);YTD=D}D=YTD;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var RqE;var ZiU=function(){return _.N.apply(this,arguments)||this};
_.n(ZiU,_.N);_.q([_.y(),_.x("design:type",Object)],ZiU.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],ZiU);
_.L(ZiU,"yt-live-chat-placeholder-item-renderer",function(){if(RqE===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);RqE=D}D=RqE;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var tdV;var s3L;var Xpb=new gL(7),vH=function(){var D=_.N.apply(this,arguments)||this;D.data={};return D};
_.n(vH,_.N);vH.prototype.dataChanged=function(){var D;((D=this.data)==null?0:D.class)&&_.Cr(this.hostElement,this.data.class,!0);var Y;((Y=this.oldData)==null?0:Y.class)&&_.Cr(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
vH.prototype.computeTimestampString=function(D){return Xpb.format(new Date(D/1E3))};
vH.prototype.dataChanged=vH.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],vH.prototype,"data",void 0);_.q([_.y({computed:"computeTimestampString(data.timestampUsec)"}),_.x("design:type",String)],vH.prototype,"timestampString",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vH.prototype,"dataChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],vH);
_.L(vH,"yt-live-chat-server-error-message",function(){if(s3L===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;tdV===void 0&&(tdV=document.createElement("template"));var Z=tdV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);s3L=D}D=s3L;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var u5L;var a5z;var ov=function(){var D=_.N.apply(this,arguments)||this;D.defaultToFilledIcon=!1;return D};
_.n(ov,_.N);ov.prototype.computeHasPrimaryColorIcon=function(D){return D==="SPARK"||D==="SPONSORSHIP_STAR"};
ov.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],ov.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ov.prototype,"defaultToFilledIcon",void 0);_.q([_.y(),_.x("design:type",Object)],ov.prototype,"data",void 0);
_.q([_.y({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ov.prototype,"hasPrimaryColorIcon",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],ov);
_.L(ov,"yt-live-chat-viewer-engagement-message-renderer",function(){if(a5z===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;u5L===void 0&&(u5L=document.createElement("template"));var Z=u5L;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);a5z=D}D=a5z;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var MdV;var bH=function(){var D=_.N.apply(this,arguments)||this;D.modernUpdate=!1;D.buttonStyle="overlay";D.buttonType="filled";return D};
_.n(bH,_.N);bH.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
bH.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],bH.prototype,"modernUpdate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bH.prototype,"buttonStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],bH.prototype,"buttonType",void 0);
_.q([_.h({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],bH);
_.L(bH,"ytd-ad-hover-text-button-renderer",function(){if(MdV!==void 0)return MdV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return MdV=D},{mode:1});var CAE;var y3=function(){var D=_.N.apply(this,arguments)||this;D.buttonOverrides={size:"XS"};D.modern=_.f("web_button_rework");return D};
_.n(y3,_.N);y3.prototype.onHelpTap=function(D){this.data&&this.data.informationDialog&&(_.MX(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),D.preventDefault(),D.stopPropagation())};
_.q([_.y(),_.x("design:type",Object)],y3.prototype,"buttonOverrides",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],y3.prototype,"modern",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],y3.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],y3);
_.L(y3,"ytd-live-chat-purchased-product-message-renderer",function(){if(CAE!==void 0)return CAE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return CAE=D},{mode:1});var W2L;var zqL;var ND=function(){var D=_.N.apply(this,arguments)||this;D.isContainerDeleted=!1;return D};
_.n(ND,_.N);ND.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
ND.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))};
ND.prototype.isContainerDeletedChanged=ND.prototype.isContainerDeletedChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],ND.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ND.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],ND.prototype,"isContainerDeleted",void 0);
_.q([_.y(),_.x("design:type",String)],ND.prototype,"deletedStateMessage",void 0);_.q([_.Gm("isContainerDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ND.prototype,"isContainerDeletedChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],ND);
_.L(ND,"ytd-sponsorships-live-chat-header-renderer",function(){if(zqL!==void 0)return zqL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return zqL=D},{mode:1});var lH=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.n(lH,_.N);lH.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]]"}}}}}};
lH.prototype.onCtaButtonClick=function(){var D,Y=_.A((D=this.data)==null?void 0:D.optInPrompt,_.qv);if(D=this.maybeGetButtonCommand(Y)){var R;(R=_.n8())==null||R.clickCommand(D)}};
lH.prototype.maybeGetButtonCommand=function(D){return!D||!D.command||_.A(D.command,uqL)===void 0&&_.A(D.command,XkE)===void 0?null:D.command};
lH.prototype.shouldHideOptinPrompt=function(D,Y){return!D||Y};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],lH.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lH.prototype,"modern",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],lH);
_.L(lH,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(W2L!==void 0)return W2L;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return W2L=D},{mode:1});var STz;var JU=function(){return _.N.apply(this,arguments)||this};
_.n(JU,_.N);JU.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
JU.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))};
JU.prototype.isDeletedChanged=JU.prototype.isDeletedChanged;_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],JU.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],JU.prototype,"data",void 0);_.q([_.Gm("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JU.prototype,"isDeletedChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],JU);
_.L(JU,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(STz!==void 0)return STz;var D=document.createElement("template");_.w(D,'\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="gift" 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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return STz=D},{mode:1});var k$=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return D};
_.n(k$,_.N);_.u=k$.prototype;
_.u.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"}}}};
_.u.handleLiveChatAction=function(D){_.A(D,VQ4)?this.handleMarkChatItemAsDeletedAction(_.A(D,VQ4)):_.A(D,GSL)&&this.handleRemoveChatItemAction(_.A(D,GSL))};
_.u.handleLiveChatActions=function(D){D.forEach(this.handleLiveChatAction,this)};
_.u.handleMarkChatItemAsDeletedAction=function(D){var Y=this,R;((R=this.data)==null?0:R.items)&&this.data.items.forEach(function(Z,t){var X=Object.keys(Z)[0];Object.values(Z)[0].id===D.targetItemId&&Y.markAsDeleted("data.items",t,X,D.deletedStateMessage,D.showOriginalContentMessage)})};
_.u.handleRemoveChatItemAction=function(D){var Y=this,R;((R=this.data)==null?0:R.items)&&this.data.items.forEach(function(Z,t){Object.values(Z)[0].id===D.targetItemId&&Y.splice("data.items",t,1)})};
_.u.markAsDeleted=function(D,Y,R,Z,t){D=[D,Y,R].join(".");this.set(D+".deletedStateMessage",Z);this.set(D+".showOriginalContentMessage",t)};
_.q([_.y(),_.x("design:type",Object)],k$.prototype,"data",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],k$.prototype,"ytActionHandlerBehavior",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],k$);
_.L(k$,"yt-live-chat-item-display-list-renderer",function(){if(PZb===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;xjV===void 0&&(xjV=document.createElement("template"));var Z=xjV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);PZb=D}D=PZb;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var TvU;var j3z,I5E=function(){if(j3z!==void 0)return j3z;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;TvU===void 0&&(TvU=document.createElement("template"));var Z=TvU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return j3z=D};var UY=function(){var D=_.N.apply(this,arguments)||this;D.isHeader=!1;return D};
_.n(UY,_.N);UY.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.YF.Object.defineProperties(UY,{template:{configurable:!0,enumerable:!0,get:function(){return I5E()}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],UY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UY.prototype,"isHeader",void 0);_.q([_.Lr({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],UY);_.L(UY,"yt-live-chat-item-display-renderer",function(){return I5E()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var F24,GnL,n_V,A3V;
F24={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}};GnL={home:"eohps",search:"eosps",watch:"eowps"};_.VdL=["watch","search","home"];
_.KS=function(){this.JSC$14202_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14202_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.JQ("PRECONSTRUCTION_DELAY",0);this.signals_=_.Q0();this.targetPage_=""};
_.KS.prototype.init=function(D,Y){D=D===void 0?"":D;Y=Y===void 0?null:Y;if(this.JSC$14202_isInitialized_)this.abort();else if(this.JSC$14202_isInitialized_=!0,D&&_.f5U(this,D),Y){var R=_.Bk(this.signals_,"pcl")?0:10,Z=function(){for(var t=0,X;X=_.VdL[t++];)X!=D&&X!=Y&&this.pendingPages_.push(X);_.eq_(this)}.bind(this);
this.signals_.parkOrScheduleJob(Z,R,"pcl")}};
_.KS.prototype.abort=function(){this.fragmentJobId_&&(_.yc.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);A3V(this)};
_.f5U=function(D,Y){D.JSC$14202_isInitialized_&&!D.targetPage_&&(D.targetPage_=Y,n_V(D,Y),D.isInitialPass_=!1,n_V(D,Y),D.signals_.processSignal(GnL[D.targetPage_]),A3V(D),_.eq_(D))};
_.eq_=function(D){D.pendingPages_.length&&!D.pagePreparerJobId_&&(D.pagePreparerJobId_=_.Ak(_.yc,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.f5U(this,this.pendingPages_.shift())}.bind(D),D.DEFAULT_DELAY_))};
n_V=function(D,Y){if(Y=F24[Y])for(var R in Y){var Z=!1,t=R;R.charAt(0)=="~"&&(Z=!0,t=R.substring(1));var X=Y[R];X=typeof X=="object"?X:{count:X};Y[R]=X;X.componentName=t;X.count>0&&(D.isInitialPass_?Z||D.isSeenDuringInitialPass_[t]||(D.JSC$14202_queue_.push({componentName:t,count:1,signals:X.signals}),D.isSeenDuringInitialPass_[t]=!0,X.count--):D.JSC$14202_queue_.push(X))}};
A3V=function(D){D.JSC$14202_queue_.length=0;D.targetPage_="";D.isInitialPass_=!0;D.signals_.processSignal("eop")};
_.KS.getInstance=function(){return _.Ra(_.KS)};var r34=function(){this.signals=_.Q0();this.init()};
r34.prototype.startPreconstruction=function(){_.KS.getInstance().init(_.ks("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
r34.prototype.init=function(){wp_(this);window.Polymer&&vNL&&XVU();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var D=_.ZU.ytcsi;if(D&&D.gt&&(D=D.gt())&&D.tick&&(D.tick.aft>0||D.tick.pbs>0)&&(_.ks("IS_HOMEPAGE_COLD")||_.ks("IS_RESULTS_PAGE_COLD")||_.ks("IS_WATCH_PAGE_COLD"))){$gz(this);break a}TdU(cwo,this.onNotifications,this)}};
var wp_=function(D){var Y=function(){D.signals.processSignal("dl")};
document.readyState==="complete"?(_.qJ(Error("sh"),"WARNING"),Y()):_.Pfn(window,"load",Y)};
r34.prototype.onNotifications=function(D){D.timer||(_.ks("IS_HOMEPAGE_COLD")||_.ks("IS_RESULTS_PAGE_COLD")||_.ks("IS_WATCH_PAGE_COLD"))&&$gz(this)};
var $gz=function(D){D.signals.parkOrScheduleJob(function(){D.signals.processSignal("eocs")},10,"eor")};
new r34;var hU,v__=function(){return _.Aj.apply(this,arguments)||this};
_.n(v__,_.Aj);_.u=v__.prototype;_.u.enableActiveViewMeasurement=function(D){if(this.isActiveViewEnabled(D)){var Y=this.getUrlPrefixesFromCommand(D.viewableCommands);D=this.getUrlPrefixesFromCommand(D.endOfSessionCommands);if(!hU){var R=_.ZH("custom_active_view_tos_timeout_ms");hU=R>0&&R!==36E5?new Nx9(this.getVersion(),R):new Nx9(this.getVersion())}Jqo(hU,this.hostElement);kGi(hU,this.hostElement,Y,D)}};
_.u.stopActiveViewMeasurement=function(){hU&&Jqo(hU,this.hostElement)};
_.u.isActiveViewEnabled=function(D){return!!D&&(this.hasAtLeastOneUrl(D.viewableCommands)||this.hasAtLeastOneUrl(D.endOfSessionCommands))};
_.u.hasAtLeastOneUrl=function(D){return!!D&&D.length>0&&D[0].loggingUrls!=null&&D[0].loggingUrls.length>0};
_.u.getVersion=function(){var D=_.JQ("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
_.u.getUrlPrefixesFromCommand=function(D){if(!D)return[];var Y=[];D=_.a(D);for(var R=D.next();!R.done;R=D.next())if(R=R.value,R.loggingUrls){R=_.a(R.loggingUrls);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.baseUrl&&Y.push(Z.baseUrl)}return Y};
_.q([_.nr()],v__);var LS=[v__.prototype];var o_b=function(){return _.Aj.apply(this,arguments)||this};
_.n(o_b,_.Aj);_.YF.Object.defineProperties(o_b.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_entity_store_from_dependency_injection")?_.Og():_.Dl()}}});
_.q([_.nr()],o_b);_.mb=[Kc.prototype,o_b.prototype];var biD=["ytd-rich-shelf-renderer"],qD=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;D.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";D.followUpDialogPromise=null;D.followUpDialogPromiseResolve=null;D.followUpDialogPromiseReject=null;return D};
_.n(qD,_.Aj);_.u=qD.prototype;_.u.dismissibleItemIsDismissedChanged_=function(D){_.f("kevlar_fluid_dismiss")&&(D?_.MX(this.hostElement,"yt-dismissible-item-dismissed"):_.MX(this.hostElement,"yt-dismissible-item-undismissed"))};
_.u.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.u.dismissibleItemReset_=function(){var D=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 _.zz(function(Y,R){D.followUpDialogPromiseResolve=Y;D.followUpDialogPromiseReject=R});
_.MX(this.hostElement,"yt-enable-lockup-interaction")};
_.u.dismissibleItemOnYtServiceRequestSent_=function(D,Y){Y.actions&&this.dismissibleItemProcessActions(Y.actions,D)};
_.u.dismissibleItemOnRequestSent=function(D){if(_.f("web_button_rework"))for(var Y=_.a(D.detail),R=Y.next();!R.done;R=Y.next()){var Z=void 0;(R=(Z=_.A(R.value,_.Fa))==null?void 0:Z.actions)&&this.dismissibleItemProcessActions(R,D)}};
_.u.dismissibleItemOnCommandSent=function(D,Y){Y&&this.dismissibleItemProcessActions(Y,D)};
_.u.setAndGetDismissedContentId=function(D){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+D};
_.u.replayDismissAction=function(D){this.dismissibleItemProcessActions([D])};
_.u.dismissibleItemProcessActions=function(D,Y){for(var R=0;R<D.length;R++){var Z=D[R],t=void 0;((t=_.A(Z,_.je))==null?0:t.commands)&&this.dismissibleItemProcessActions(_.A(Z,_.je).commands,Y);if(_.A(Z,_.wi)){if(t=_.A(Z,_.wi),!t.replaceParentSection||biD.includes(this.hostElement.nodeName.toLowerCase()))t.groupDismissal&&L2j(this,t.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(t),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.oP("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:Z})),Z=void 0,(Z=Y)==null||Z.stopPropagation()}else if(_.A(Z,GtU))this.dismissibleItemHandleHideEnclosingAction_(),Z=void 0,(Z=Y)==null||Z.stopPropagation();else if(_.A(Z,qkz))Z=_.A(Z,qkz),t=void 0,((t=Z)==null?0:t.targetGroupId)&&L2j(this,{targetGroupId:Z.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.oP("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
Z=void 0,(Z=Y)==null||Z.stopPropagation();else if(_.A(Z,_.Fa))(Z=_.A(Z,_.Fa).actions)&&_.Se(this.hostElement,Z,this.hostElement),Z=void 0,(Z=Y)==null||Z.stopPropagation();else{var X=t=void 0;((t=_.A(Z,_.qb))==null?void 0:t.signal)!=="TELL_US_WHY"||((X=_.A(Z,_.qb))==null?0:X.targetId)&&_.f("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Z=void 0,(Z=Y)==null||Z.stopPropagation())}}};
_.u.dismissibleItemOnYtServiceRequestCompleted_=function(D,Y){var R=this.get("feedbackResponses.0.followUpDialog",Y.data);R?this.followUpDialogPromiseResolve(R):Y.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(Y.actions,D)};
_.u.dismissibleItemHandleReplaceEnclosingAction_=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0;var Y=null;(Y=_.aU(this.hostElement).querySelector("#dismissed"))&&_.cy(this,function(){_.pq(Y)});
_.MX(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.u.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.u.dismissibleItemHandleUndoFeedbackAction_=function(){_.MX(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.u.dismissibleItemHandleTellUsWhySignalAction_=function(){var D=this;this.followUpDialogPromise.then(function(Y){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:Y}})})};
qD.prototype.dismissibleItemOnYtServiceRequestCompleted_=qD.prototype.dismissibleItemOnYtServiceRequestCompleted_;qD.prototype.dismissibleItemOnCommandSent=qD.prototype.dismissibleItemOnCommandSent;qD.prototype.dismissibleItemOnRequestSent=qD.prototype.dismissibleItemOnRequestSent;qD.prototype.dismissibleItemOnYtServiceRequestSent_=qD.prototype.dismissibleItemOnYtServiceRequestSent_;qD.prototype.dismissibleItemDataChanged_=qD.prototype.dismissibleItemDataChanged_;
qD.prototype.dismissibleItemIsDismissedChanged_=qD.prototype.dismissibleItemIsDismissedChanged_;_.q([_.v(_.Rv),_.x("design:type",Object)],qD.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],qD.prototype,"ytdReduxBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qD.prototype,"isDismissed",void 0);_.q([_.y(),_.x("design:type",Object)],qD.prototype,"dismissedRenderer",void 0);
_.q([_.Gm("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],qD.prototype,"dismissibleItemIsDismissedChanged_",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qD.prototype,"dismissibleItemDataChanged_",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],qD.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.q([_.Fv("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],qD.prototype,"dismissibleItemOnRequestSent",null);
_.q([_.Fv("yt-dismissible-item-action"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Array]),_.x("design:returntype")],qD.prototype,"dismissibleItemOnCommandSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],qD.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.q([_.nr()],qD);_.HH=[_.Rv,_.mb,qD.prototype];var x$=function(){var D=_.Aj.apply(this,arguments)||this;D.disableGridStateAware=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};D.currentGridClass="";return D};
_.n(x$,_.Aj);x$.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.cy(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var D=this.gridStateAwareGetElement();_.Cr(D,"grid",!0)}};
x$.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
x$.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.aU(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
x$.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var D="grid-disabled";else{D=_.Ic1.getInstance();var Y=this.get("pageSubtype");D=Y&&SJ4.includes(Y)?"grid-disabled":D.currentSnapState_?D.currentSnapState_.className:null}(Y=this.gridStateAwareGetElement())&&D!==this.currentGridClass&&(D&&_.Cr(Y,D,!0),this.currentGridClass&&_.Cr(Y,this.currentGridClass,!1),this.currentGridClass=D)};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],x$.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",String)],x$.prototype,"gridStateAwareSizingElementSelector",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],x$.prototype,"disableGridStateAware",void 0);_.q([_.nr()],x$);_.PH=[x$.prototype,_.Va.YtActionHandlerBehavior];_.Q3=new _.R6("GUIDE_TOKEN");var pS;_.BH={};pS=function(){var D=_.Aj.apply(this,arguments)||this;D.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 D};
_.n(pS,_.Aj);_.u=pS.prototype;_.u.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.u.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var D=_.DH().resolve(_.cD(_.Q3));D&&(this.guidePersistentAndVisible=D.getGuidePersistentAndVisible(),this.activeEndpoint=D.getActiveEndpoint(),this.guideOpened=D.getGuideOpened(),this.miniGuideVisible=D.getMiniGuideVisible())};
_.u.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.u.handleGuideStateAction=function(D){this.guidePersistentAndVisible=D};
_.u.handleMiniGuideStateAction=function(D){this.miniGuideVisible=D};
_.u.handleGuideOpenedAction=function(D){this.guideOpened=D};
_.u.handleActiveEndpointAction=function(D){this.activeEndpoint=D};
pS.prototype.onActiveEndpointChange=pS.prototype.onActiveEndpointChange;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],pS.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],pS.prototype,"guidePersistentAndVisible",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],pS.prototype,"miniGuideVisible",void 0);_.q([_.y(),_.x("design:type",Object)],pS.prototype,"activeEndpoint",void 0);
_.q([_.Gm("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pS.prototype,"onActiveEndpointChange",null);_.q([_.y(),_.x("design:type",Boolean)],pS.prototype,"guideOpened",void 0);_.q([_.nr()],pS);_.BH.YtdGuideStateAwareBehavior=[];_.BH.YtdGuideStateAwareBehavior.push(pS.prototype,_.Va.YtActionHandlerBehavior);var y3z=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],EY=function(){var D=_.Aj.apply(this,arguments)||this;D.hoverJobId=0;D.JSC$14233_touched=!1;return D};
_.n(EY,_.Aj);_.u=EY.prototype;_.u.created=function(){this.useExpandableTooltip=!y3z.includes(this.is)};
_.u.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.u.detached=function(){this.useExpandableTooltip=!1};
_.u.lockupOnDown=function(D){this.interactionElement&&!_.Yc(_.O$(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.u.lockupOnUp=function(D){this.interactionElement&&!_.Yc(_.O$(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.u.onTouchStart=function(){this.JSC$14233_touched=!0};
_.u.lockupOnMouseEnter=function(){var D=this,Y=_.ZH("kevlar_lockup_hover_delay",-1);this.JSC$14233_touched&&Y>=0?(_.yc.cancelJob(this.hoverJobId),this.hoverJobId=_.yc.addJob(function(){D.lockupIsHovered=!0},8,Y),this.JSC$14233_touched=!1):this.lockupIsHovered=!0};
_.u.lockupOnMouseLeave=function(){this.hoverJobId&&(_.yc.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.u.lockupOnPopupClosed=function(D,Y){var R;((R=Y.popupRenderer)==null?void 0:R.is)==="ytd-menu-popup-renderer"&&(D=Y.popupRenderer.veData,Y=_.K2(),D&&Y&&_.gC(Y,[D]))};
_.u.lockupOnLockupRequested=function(D){var Y=D.detail.videoIds[0],R;D.detail&&Y===((R=this.data)==null?void 0:R.videoId)&&(D.detail.returnValue=[this.data])};
_.u.lockupOnYtServiceRequestSent=function(D,Y){if(D=Y.actions)for(var R=0;R<D.length;R++){var Z=D[R];if(Z.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&Y.ajaxPromise){var t=void 0,X=(t=_.A(Y.endpoint,_.hh))==null?void 0:t.playlistId;t=void 0;Z=(t=Z.removedVideoId)!=null?t:"";LCL(_.EH(),Z,X)}else Z.action==="ACTION_REMOVE_VIDEO"&&Y.ajaxPromise&&(X=void 0,Z=(X=Z.setVideoId)!=null?X:"",_.m6L(_.EH(),Z))}};
_.u.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.u.lockupOnLockupEnabled=function(){if(!this.$){var D=_.DH().resolve(_.Z4).getCurrentPage(),Y=this.getParentRenderer?this.getParentRenderer():void 0;_.Jk(new _.AT("component not ready",this.is,this.isAttached,D==null?void 0:D.is,Y==null?void 0:Y.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
EY.prototype.lockupOnLockupEnabled=EY.prototype.lockupOnLockupEnabled;EY.prototype.lockupOnLockupDisabled=EY.prototype.lockupOnLockupDisabled;EY.prototype.lockupOnYtServiceRequestSent=EY.prototype.lockupOnYtServiceRequestSent;EY.prototype.lockupOnLockupRequested=EY.prototype.lockupOnLockupRequested;EY.prototype.lockupOnPopupClosed=EY.prototype.lockupOnPopupClosed;EY.prototype.lockupOnMouseLeave=EY.prototype.lockupOnMouseLeave;EY.prototype.lockupOnMouseEnter=EY.prototype.lockupOnMouseEnter;
EY.prototype.onTouchStart=EY.prototype.onTouchStart;EY.prototype.lockupOnUp=EY.prototype.lockupOnUp;EY.prototype.lockupOnDown=EY.prototype.lockupOnDown;_.q([_.y(),_.x("design:type",Object)],EY.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],EY.prototype,"lockupIsHovered",void 0);_.q([_.y(),_.x("design:type",Boolean)],EY.prototype,"lockupTouchTriggered",void 0);_.q([_.y(),_.x("design:type",Boolean)],EY.prototype,"useExpandableTooltip",void 0);
_.q([_.fr("#interaction"),_.x("design:type",Object)],EY.prototype,"interactionElement",void 0);_.q([_.Fv("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],EY.prototype,"lockupOnDown",null);_.q([_.Fv("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],EY.prototype,"lockupOnUp",null);
_.q([_.Fv("touchstart"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EY.prototype,"onTouchStart",null);_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EY.prototype,"lockupOnMouseEnter",null);_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EY.prototype,"lockupOnMouseLeave",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],EY.prototype,"lockupOnPopupClosed",null);_.q([_.Fv("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],EY.prototype,"lockupOnLockupRequested",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],EY.prototype,"lockupOnYtServiceRequestSent",null);_.q([_.Fv("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EY.prototype,"lockupOnLockupDisabled",null);
_.q([_.Fv("yt-enable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EY.prototype,"lockupOnLockupEnabled",null);_.q([_.nr()],EY);_.gM=[EY.prototype];_.Nv_={YtdReduxBehavior:[]};_.Nv_.YtdReduxBehavior.push.apply(_.Nv_.YtdReduxBehavior,_.mb);var dM=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;D.disableNowPlaying=!1;D.disableTooltips=!1;D.useHoveredProperty=!1;D.hovered=!1;D.isThumbnailHovered_=!1;D.addBackground=_.f("kevlar_thumbnail_bg");D.nowPlaying=!1;D.disableRounding=!1;D.size="small";return D};
_.n(dM,_.Aj);_.u=dM.prototype;_.u.computeThumbnailOverlaySidePanelWidth_=function(D,Y){return D-Y};
_.u.computeSize=function(D,Y){if(!this.disableRounding){if(!D&&!Y)return"small";D=Math.max(D||0,Y||0);return D>=256?"large":D>=96?"medium":"small"}};
_.u.computeFinalHoveredState_=function(D,Y,R){return this.nowPlaying?!1:_.f("kevlar_thumbnail_fluid")&&D?Y:R};
_.u.computeHoverOverlays_=function(D,Y){return D&&Y?Y:void 0};
_.u.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.u.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.u.checkMiniplayer_=function(){var D;if(((D=this.data)==null?0:D.playlistSetVideoId)&&_.f("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{D=_.AG();var Y=D.currentEndpoint;!this.disableNowPlaying&&Y&&_.A(Y,_.Od)&&this.data?(Y=_.A(Y,_.Od),this.nowPlaying=this.data.playlistId?Y.playlistId===this.data.playlistId:Y.videoId===this.data.videoId,this.isVideoPlaying=D==null?void 0:D.isVideoPlaying):this.nowPlaying=!1}};
dM.prototype.checkMiniplayer_=dM.prototype.checkMiniplayer_;dM.prototype.onMouseLeave_=dM.prototype.onMouseLeave_;dM.prototype.onMouseEnter_=dM.prototype.onMouseEnter_;dM.prototype.computeHoverOverlays_=dM.prototype.computeHoverOverlays_;dM.prototype.computeFinalHoveredState_=dM.prototype.computeFinalHoveredState_;dM.prototype.computeSize=dM.prototype.computeSize;dM.prototype.computeThumbnailOverlaySidePanelWidth_=dM.prototype.computeThumbnailOverlaySidePanelWidth_;
_.q([_.v(_.mb),_.x("design:type",Object)],dM.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],dM.prototype,"height",void 0);_.q([_.y(),_.x("design:type",Boolean)],dM.prototype,"bottomSidePanel",void 0);_.q([_.y(),_.x("design:type",Number)],dM.prototype,"width",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"disableNowPlaying",void 0);
_.q([_.y({selector:_.Kh}),_.x("design:type",Boolean)],dM.prototype,"miniplayerIsActive",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"disableTooltips",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"useHoveredProperty",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"hovered",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"isThumbnailHovered_",void 0);
_.q([_.y({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.x("design:type",Boolean)],dM.prototype,"finalHoveredState_",void 0);_.q([_.y({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.x("design:type",Number)],dM.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],dM.prototype,"addBackground",void 0);
_.q([_.y({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.x("design:type",Object)],dM.prototype,"hoverOverlays_",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],dM.prototype,"nowPlaying",void 0);_.q([_.y(),_.x("design:type",Boolean)],dM.prototype,"isVideoPlaying",void 0);_.q([_.y(),_.x("design:type",Object)],dM.prototype,"disableRounding",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.x("design:type",Object)],dM.prototype,"size",void 0);_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dM.prototype,"onMouseEnter_",null);_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dM.prototype,"onMouseLeave_",null);
_.q([_.Gm("data","disableNowPlaying","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dM.prototype,"checkMiniplayer_",null);_.q([_.nr()],dM);var l5D=[dM.prototype];_.iH={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(D,Y){return D+":"+_.Ey(Y)},
getPlayerListener_:function(D,Y,R){D=this.getPlayerListenerKey_(D,Y);Y=this.playerListeners_.get(D);R&&this.playerListeners_.delete(D);return Y},
savePlayerListener_:function(D,Y){var R=Y.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(D,Y),R);return R},
listenToPlayerEvent:function(D,Y,R){R=this.savePlayerListener_(Y,R);D.addEventListener(Y,R)},
listenToPlayerEvents:function(D,Y){Y.forEach(function(R,Z){this.listenToPlayerEvent(D,Z,R)}.bind(this))},
unlistenFromPlayerEvent:function(D,Y,R){R=this.getPlayerListener_(Y,R,!0);D.removeEventListener(Y,R)},
unlistenFromPlayerEvents:function(D,Y){Y.forEach(function(R,Z){this.unlistenFromPlayerEvent(D,Z,R)}.bind(this))}}};
_.OY=function(){};_.J31=new _.R6("PLAYER_API_TOKEN");var BvM=!1,dgy,E_b=!1,Oi9;var aP=function(D,Y,R,Z,t){_.AE.call(this);var X=this;this.playerId=Y;this.webPlayerContextConfig=Z;this.sW7=t;this.lC5=!1;this.api={};this.xd6=this.wmg=null;this.gEz=new _.j$;this.aO={};this.bz7=this.cr6=this.elementId=this.kcf=this.config=null;this.n8l=!1;this.ru=this.vPp=null;this.rcl={};this.ulq=["onReady"];this.lastError=null;this.lnN=NaN;this.gL5={};this.gH7=0;this.ie=this.targetElement=D;_.WB(this,this.gEz);knz(this);R?this.gH7=setTimeout(function(){X.loadNewVideoConfig(R)},0):Z&&(UgE(this),
K2D(this))};
_.n(aP,_.AE);aP.prototype.getId=function(){return this.playerId};
aP.prototype.loadNewVideoConfig=function(D){if(!this.isDisposed()){this.gH7&&(clearTimeout(this.gH7),this.gH7=0);var Y=D||{};Y instanceof EtV||(Y=new EtV(Y));this.config=Y;this.setConfig(D);K2D(this);this.isReady()&&hqb(this)}};
var UgE=function(D){var Y;D.webPlayerContextConfig?Y=D.webPlayerContextConfig.rootElementId:Y=D.config.attrs.id;D.elementId=Y||D.elementId;D.elementId==="video-player"&&(D.elementId=D.playerId,D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.playerId:D.config.attrs.id=D.playerId);var R;((R=D.ie)==null?void 0:R.id)===D.elementId&&(D.elementId+="-player",D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.elementId:D.config.attrs.id=D.elementId)};
aP.prototype.setConfig=function(D){this.kcf=D;this.config=L2Y(D);UgE(this);if(!this.cr6){var Y;this.cr6=mgb(this,((Y=this.config.args)==null?void 0:Y.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var R;if((R=this.config)==null?0:R.attrs)D=this.config.attrs,(Y=D.width)&&this.ie&&(this.ie.style.width=h0(Number(Y)||Y,!0)),(D=D.height)&&this.ie&&(this.ie.style.height=h0(Number(D)||D,!0))};
var hqb=function(D){if(D.config&&D.config.loaded!==!0)if(D.config.loaded=!0,!D.config.args||D.config.args.autoplay!=="0"&&D.config.args.autoplay!==0&&D.config.args.autoplay!==!1){var Y;D.api.loadVideoByPlayerVars((Y=D.config.args)!=null?Y:null)}else D.api.cueVideoByPlayerVars(D.config.args)},HiL=function(D){var Y=!0,R=D.getPlayerElement();
R&&D.config&&(Y=R.dataset.version===qT7(D));return Y&&!!_.mf("yt.player.Application.create")},K2D=function(D){if(!D.isDisposed()&&!D.n8l){var Y=HiL(D);
if(Y&&(D.getPlayerElement()?"html5":null)==="html5")D.bz7="html5",D.isReady()||xg4(D);else if(PAY(D),D.bz7="html5",Y&&D.ru&&D.targetElement)D.targetElement.appendChild(D.ru),xg4(D);else{D.config&&(D.config.loaded=!0);var R=!1;D.vPp=function(){R=!0;var Z=Q3_(D,"player_bootstrap_method")?_.mf("yt.player.Application.createAlternate")||_.mf("yt.player.Application.create"):_.mf("yt.player.Application.create");var t=D.config?L2Y(D.config):void 0;Z&&Z(D.targetElement,t,D.webPlayerContextConfig,D.sW7);xg4(D)};
D.n8l=!0;Y?D.vPp():(_.PO(qT7(D),D.vPp),(Y=BvL(D))&&VRU(Y||""),pp7(D)&&!R&&_.ix("yt.player.Application.create",null))}}};
aP.prototype.getPlayerElement=function(){var D=_.uI(document,this.elementId);!D&&this.ie&&this.ie.querySelector&&(D=this.ie.querySelector("#"+this.elementId));return D};
var xg4=function(D){if(!D.isDisposed()){var Y=D.getPlayerElement(),R=!1;Y&&Y.getApiInterface&&Y.getApiInterface()&&(R=!0);if(R){D.n8l=!1;if(!Q3_(D,"html5_remove_not_servable_check_killswitch")){var Z;if((Y==null?0:Y.isNotServable)&&D.config&&(Y==null?0:Y.isNotServable((Z=D.config.args)==null?void 0:Z.video_id)))return}E_D(D)}else D.lnN=setTimeout(function(){xg4(D)},50)}},E_D=function(D){knz(D);
D.lC5=!0;var Y=D.getPlayerElement();if(Y){D.wmg=g_b(D,Y,"addEventListener");D.xd6=g_b(D,Y,"removeEventListener");var R=Y.getApiInterface();R=R.concat(Y.getInternalApiInterface());for(var Z=D.api,t=0;t<R.length;t++){var X=R[t];Z[X]||(Z[X]=g_b(D,Y,X))}}for(var M in D.aO)D.aO.hasOwnProperty(M)&&D.wmg&&D.wmg(M,D.aO[M]);hqb(D);D.cr6&&D.cr6(D.api);D.gEz.publish("onReady",D.api)},g_b=function(D,Y,R){var Z=Y[R];
return function(){var t=_.UN.apply(0,arguments);try{return D.lastError=null,Z.apply(Y,t)}catch(X){if(R!=="sendAbandonmentPing")throw X.params=R,D.lastError=X,t=new _.AT("PlayerProxy error in method call",{error:X,method:R,playerId:D.playerId}),t.level="WARNING",t;}}},knz=function(D){D.lC5=!1;
if(D.xd6)for(var Y in D.aO)D.aO.hasOwnProperty(Y)&&D.xd6(Y,D.aO[Y]);for(var R in D.gL5)D.gL5.hasOwnProperty(R)&&clearTimeout(Number(R));D.gL5={};D.wmg=null;D.xd6=null;Y=D.api;for(var Z in Y)Y.hasOwnProperty(Z)&&(Y[Z]=null);Y.addEventListener=function(t,X){D.addEventListener(t,X)};
Y.removeEventListener=function(t,X){D.removeEventListener(t,X)};
Y.destroy=function(){D.dispose()};
Y.getLastError=function(){return D.getLastError()};
Y.getPlayerType=function(){return D.getPlayerType()};
Y.getCurrentVideoConfig=function(){return D.kcf};
Y.loadNewVideoConfig=function(t){D.loadNewVideoConfig(t)};
Y.isReady=function(){return D.isReady()}};
aP.prototype.isReady=function(){return this.lC5};
aP.prototype.addEventListener=function(D,Y){var R=this;this.isDisposed();var Z=mgb(this,Y);Z&&(_.LM(this.ulq,D)||this.aO[D]||(Y=dgL(this,D),this.wmg&&this.wmg(D,Y)),this.gEz.subscribe(D,Z),D==="onReady"&&this.isReady()&&setTimeout(function(){Z(R.api)},0))};
aP.prototype.removeEventListener=function(D,Y){this.isDisposed()||(Y=mgb(this,Y))&&this.gEz.unsubscribe(D,Y)};
var mgb=function(D,Y){var R=Y;if(typeof Y==="string"){if(D.rcl[Y])return D.rcl[Y];R=function(){var Z=_.UN.apply(0,arguments),t=_.mf(Y);if(t)try{t.apply(_.ZU,Z)}catch(X){throw Z=new _.AT("PlayerProxy error when executing callback",{error:X}),Z.level="ERROR",Z;}};
D.rcl[Y]=R}return R?R:null},dgL=function(D,Y){var R=function(Z){var t=function(){D.isDisposed();
if(!D.isDisposed())try{D.gEz.publish(Y,Z!=null?Z:void 0)}catch(W){var M=new _.AT("PlayerProxy error when creating global callback",{error:W.message,event:Y,playerId:D.playerId,data:Z,originalStack:W.stack,componentStack:W.componentStack});M.level="WARNING";throw M;}};
if(Q3_(D,"web_player_publish_events_immediately"))t();else{var X=setTimeout(function(){t();_.y7.remove(D.gL5,String(X))},0);
_.y7.add(D.gL5,String(X),!0)}};
return D.aO[Y]=R};
aP.prototype.getPlayerType=function(){return this.bz7||(this.getPlayerElement()?"html5":null)};
aP.prototype.getLastError=function(){return this.lastError};
var PAY=function(D){D.cancel();knz(D);D.bz7=null;D.config&&(D.config.loaded=!1);var Y=D.getPlayerElement();Y&&(HiL(D)||!pp7(D)?D.ru=Y:(Y&&Y.destroy&&Y.destroy(),D.ru=null));D.targetElement&&_.yy(D.targetElement)};
aP.prototype.cancel=function(){this.vPp&&_.ESU(qT7(this),this.vPp);clearTimeout(this.lnN);this.n8l=!1};
aP.prototype.disposeInternal=function(){PAY(this);if(this.ru&&this.config&&this.ru.destroy)try{this.ru.destroy()}catch(Y){var D=new _.AT("PlayerProxy error during disposal",{error:Y});D.level="ERROR";throw D;}this.rcl=null;for(D in this.aO)this.aO.hasOwnProperty(D)&&delete this.aO[D];this.kcf=this.config=this.api=null;delete this.targetElement;delete this.ie;_.AE.prototype.disposeInternal.call(this)};
var pp7=function(D){var Y,R;D=(Y=D.config)==null?void 0:(R=Y.args)==null?void 0:R.fflags;return!!D&&D.indexOf("player_destroy_old_version=true")!==-1},qT7=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.jsUrl:(D=D.config.assets)?D.js:""},BvL=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.cssUrl:(D=D.config.assets)?D.css:""},Q3_=function(D,Y){if(D.webPlayerContextConfig)var R=D.webPlayerContextConfig.serializedExperimentFlags;
else{var Z;if((Z=D.config)==null?0:Z.args)R=D.config.args.fflags}return(R||"").split("&").includes(Y+"=true")},L2Y=function(D){for(var Y={},R=_.a(Object.keys(D)),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;
var t=D[Z];Y[Z]=typeof t==="object"?_.y7.clone(t):t}return Y};var ZYl={},RHS="player_uid_"+(Math.random()*1E9>>>0);var cH=function(D,Y,R,Z,t,X){Y=Y===void 0?document.createElement("div"):Y;this.webPlayerContextConfig=D;this.container=Y;this.commandResolver=R;this.apiResolver=XWU();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Ta;Z||X?iiU(this):OiU(this);this.pendingPlayerResponse=Z;this.pendingWatchNextResponse=t;this.pendingPlayerVars=X;c3b(this)};
cH.prototype.loadVideoWithPlayerResponse=function(D,Y,R){this.loadVideo(D,Y,R)};
cH.prototype.loadVideoWithPlayerVars=function(D){return this.loadVideo(void 0,void 0,D)};
cH.prototype.destroy=function(D){if(D=_.uI(document,D))D=RHS+"_"+_.Ey(D),(D=ZYl[D])&&D.dispose()};
var YZ_=function(D,Y){var R;_.C(function(Z){if(Z.nextAddress==1)return D.pendingWatchNextResponse=Y,D.synchronousApi?(R=D.synchronousApi,Z.jumpTo(2)):Z.yield(D.api,3);Z.nextAddress!=2&&(R=Z.yieldResult);if(!DOU(D,R))return Z.return();D.pendingWatchNextResponse&&(R.updateVideoData({raw_watch_next_response:D.pendingWatchNextResponse}),D.pendingWatchNextResponse=void 0);_.V9(Z)})},DOU=function(D,Y){var R;
if(!(Y==null?0:(R=Y.isReady)==null?0:R.call(Y))){var Z;_.Jk(new _.AT("playerApi is falsey",{synchronousApi:D.synchronousApi,apiResolved:D.apiResolver.resolved,playerApiUndefined:Y===void 0,playerApiNull:Y===null,playerApiReady:(Y==null?void 0:(Z=Y.isReady)==null?void 0:Z.call(Y))===!0,playerApiMethods:Y?Object.keys(Y):[]}));return!1}return!0},RH1=function(D,Y){if(typeof D[Y]==="function")return D[Y]()},ZYz=function(D){var Y=window,R,Z=(R=Y.ytplayer)==null?void 0:R.bootstrapPlayerContainer;
if((R=Z==null?void 0:Z.firstElementChild)&&_.xB(R,"html5-video-player")){var t,X,M=(t=Y.ytplayer)==null?void 0:(X=t.bootstrapWebPlayerContextConfig)==null?void 0:X.contextId;t=D.webPlayerContextConfig.contextId;if(M&&M===t){Z!==D.container&&(Z=!1,RH1(R,"getPlayerState")===2&&(Z=!0),D.container.appendChild(R),Z||RH1(R,"playVideo"));var W;if((W=Y.ytplayer)==null?0:W.bootstrapPlayerResponse)D.bootstrapPlayerResponse=Y.ytplayer.bootstrapPlayerResponse}}},c3b=function(D){var Y,R,Z,t,X;
_.C(function(M){if(M.nextAddress==1)return D.pageReadyOrDataAvailable?M.jumpTo(2):M.yield(D.pageReadyOrDataAvailableResolver.promise,2);if(M.nextAddress!=4)return!_.f("kevlar_player_unified_player_loading")||pp5()&&g_i()?M.jumpTo(4):M.yield(DO$(),4);ZYz(D);if(D.pendingPlayerResponse||D.pendingPlayerVars)Y=YZU(D.pendingPlayerResponse,D.pendingWatchNextResponse,D.pendingPlayerVars),D.pendingPlayerResponse&&D.pendingPlayerResponse===D.bootstrapPlayerResponse&&(Y.loaded=!0),D.bootstrapPlayerResponse=
void 0;R=sqb(D.container,Y,D.webPlayerContextConfig);((Z=Y)==null?0:Z.loaded)&&D.pendingWatchNextResponse?(YZ_(D,D.pendingWatchNextResponse),D.pendingPlayerResponse=void 0,D.pendingPlayerVars=void 0):taz(D);t=function(W){R.removeEventListener("onReady",t);D.synchronousApi=W;D.apiResolver.resolve(W)};
R.addEventListener("onReady",t);D.commandResolver!==void 0&&(X=D.commandResolver,R.addEventListener("innertubeCommand",function(W){X(W)}));
_.V9(M)})};
cH.prototype.loadVideo=function(D,Y,R){var Z=this,t,X,M,W,z,I,F,G,V;return _.C(function(e){if(e.nextAddress==1)return Z.pendingPlayerResponse=D,Z.pendingWatchNextResponse=Y,Z.pendingPlayerVars=R,iiU(Z),Z.synchronousApi?(t=Z.synchronousApi,e.jumpTo(2)):e.yield(Z.api,3);e.nextAddress!=2&&(t=e.yieldResult);if(!DOU(Z,t))return e.return(new Promise(function(){}));
M=new Promise(function(r){X=r});
W=function(){var r=t.getPlayerResponse();r&&(t.removeEventListener("onVideoDataChange",W),X(r))};
t.addEventListener("onVideoDataChange",W);if(Z.pendingPlayerResponse||Z.pendingPlayerVars)Z.pendingPlayerResponse&&Z.pendingPlayerResponse===Z.bootstrapPlayerResponse?(X(Z.pendingPlayerResponse),Z.pendingWatchNextResponse&&YZ_(Z,Z.pendingWatchNextResponse)):(z=YZU(Z.pendingPlayerResponse,Z.pendingWatchNextResponse,Z.pendingPlayerVars),(V=(I=Z.pendingPlayerResponse)==null?void 0:(F=I.playerConfig)==null?void 0:(G=F.playbackStartConfig)==null?void 0:G.startPaused)?t.cueVideoByPlayerVars(z.args):t.loadVideoByPlayerVars(z.args)),
taz(Z),Z.bootstrapPlayerResponse=void 0;return e.return(M)})};
var OiU=function(D){if(document.readyState==="complete"||document.readyState==="interactive")iiU(D);else{var Y=function(){document.removeEventListener("DOMContentLoaded",Y);iiU(D)};
document.addEventListener("DOMContentLoaded",Y)}},iiU=function(D){D.pageReadyOrDataAvailable=!0;
D.pageReadyOrDataAvailableResolver.resolve()},taz=function(D){D.pendingPlayerResponse=void 0;
D.pendingWatchNextResponse=void 0;D.pendingPlayerVars=void 0};
_.YF.Object.defineProperties(cH.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Du=function(D){UF.call(this,D===void 0?"document_active":D);var Y=this;this.overridePriority=10;this.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(R){Y.transition("document_disposed",{event:R})});
window.addEventListener("beforeunload",function(R){Y.transition("document_disposed_preventable",{event:R})});
window.addEventListener("unload",function(R){Y.transition("document_disposed",{event:R});Y.hasRun=new Map})};
_.n(Du,UF);
Du.prototype.runPreventableDispose=function(D,Y){if(!this.hasRun.get("document_disposed_preventable")){D(Y==null?void 0:Y.event);var R,Z;if((Y==null?0:(R=Y.event)==null?0:R.defaultPrevented)||(Y==null?0:(Z=Y.event)==null?0:Z.returnValue)){Y.event.returnValue||(Y.event.returnValue=!0);Y.event.defaultPrevented||Y.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Du.prototype.runDispose=function(D,Y){this.hasRun.get("document_disposed")?this.transition("document_active"):(D(Y==null?void 0:Y.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Du.prototype.runFlush=function(D,Y){D(Y==null?void 0:Y.event);this.transition("document_active")};
Du.prototype.runActive=function(){};var Yb=function(D){UF.call(this,D===void 0?"document_visibility_unknown":D);var Y=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(R){document.visibilityState==="visible"?Y.transition("document_visible",{event:R}):Y.transition("document_hidden",
{event:R})});
_.f("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(R){Y.transition("document_backgrounded",{event:R})}),window.addEventListener("focus",function(R){Y.transition("document_foregrounded",{event:R})}))};
_.n(Yb,UF);Yb.prototype.runVisible=function(D,Y){D(Y==null?void 0:Y.event);_.f("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Yb.prototype.runHidden=function(D,Y){D(Y==null?void 0:Y.event);_.f("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Yb.prototype.runBackgrounded=function(D,Y){D(Y==null?void 0:Y.event)};
Yb.prototype.runForegrounded=function(D,Y){D(Y==null?void 0:Y.event)};var RX=function(){this.teardownLifecycle=new Du;this.visibilityLifecycle=new Yb};
RX.prototype.install=function(){var D=_.UN.apply(0,arguments),Y=this;D.forEach(function(R){Y.teardownLifecycle.install(R)});
D.forEach(function(R){Y.visibilityLifecycle.install(R)})};var Zu=function(){RX.call(this);var D={};this.install((D.document_disposed={callback:this.abortSlisAndFlush},D));_.f("combine_ve_grafts")&&(D={},this.install((D.document_disposed={callback:this.flushInteractionLoggingAttachVes},D)));D={};this.install((D.flush_logs={callback:this.logFinalPayload},D));_.f("web_log_cfg_cee_ks")||_.Ak(_.yc,sqD)};
_.n(Zu,RX);var ufj=function(){Zu.loggingInstance||(Zu.loggingInstance=new Zu);return Zu.loggingInstance};
Zu.prototype.logFinalPayload=function(){if(_.f("web_fp_via_jspb")){var D=new Z2L,Y=_.K2();Y&&_.ew(D,1,Y);Y=_.f("jspb_sparse_encoded_pivot")?new eq([{}]):new eq;_.jf(Y,380,tPD,D);hRU("finalPayload",Y);_.f("web_fp_via_jspb_and_json")&&_.bo("finalPayload",{csn:_.K2()})}else _.bo("finalPayload",{csn:_.K2()})};
Zu.prototype.abortSlisAndFlush=function(){lb7(gi);di!=null&&di.flush()};
Zu.prototype.flushInteractionLoggingAttachVes=function(){OVU(_.n8())};
var sqD=function(){var D=_.JQ("CLIENT_EXPERIMENT_EVENTS");if(D){var Y=gno();D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,Y(R)&&_.bo("genericClientExperimentEvent",{eventType:R});delete _.NJ.CLIENT_EXPERIMENT_EVENTS}};var XWV={};
XWV.YtPlayerBehavior=[_.iH.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 D=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Ta;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;aNo(function(){D.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.hN(this,"pan-down"),_.f("kevlar_pinch_fullscreen")&&_.yA().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.f("kevlar_pinch_fullscreen")&&_.yA().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(D,Y,R){var Z=this;MP(this.useUnifiedPlayer_());if(this.mainAppPlayer_)MP(!1,"MainAppPlayer already created.");else{var t=_.f("kevlar_player_container_query_killswitch")?this.$.container:_.aU(this.hostElement).querySelector("#container");this.mainAppPlayer_=new cH(this.getWebPlayerContextConfig_(),t,function(X){return _.Vu(X,Z.hostElement)},D,Y,R);
this.mainAppPlayer_.api.then(function(X){Z.player_=X;Z.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&iaz.resolve(X)})}},
loadVideoWithPlayerResponse:function(D,Y){var R=this;if(this.useUnifiedPlayer_()){var Z=this.watchNextData,t,X=(t=D.videoDetails)==null?void 0:t.videoId,M,W,z;(t=(M=this.watchNextData)==null?void 0:(W=M.currentVideoEndpoint)==null?void 0:(z=W.watchEndpoint)==null?void 0:z.videoId)&&X!=t&&(Z=void 0,_.f("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(D,Z,Y):this.createMainAppPlayer_(D,Z,Y);this.mainAppPlayer_.api.then(function(){_.MX(R.hostElement,
"yt-player-updated")})}else this.update(xgo(D,Y))},
loadVideoWithPlayerVars:function(D){var Y=this;this.useUnifiedPlayer_()?(_.f("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(D):this.createMainAppPlayer_(void 0,void 0,D),this.mainAppPlayer_.api.then(function(){_.MX(Y.hostElement,"yt-player-updated")})):this.update({args:D})},
update:function(D){var Y=this;if(this.useUnifiedPlayer_())MP(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(D);var R=ZDj(D.args);R&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==R&&Object.assign(D.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(D).then(function(Z){_.MX(Y.hostElement,"yt-player-updated",_.f("kevlar_player_updated_obsolete_player_killswitch")?
Z:void 0)})}_.lo(new _.AT("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.getPlayerPromise(),2);R=Z.yieldResult;if(!R)throw Error("uh");D&&Y.updatePlayerPlaylist_(D);_.V9(Z)})},
acquireApi_:function(D){var Y=this;if(this.useUnifiedPlayer_())MP(!1,"Invalid method call in kevlar_unified_player.");else return _.yc.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(MP(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(R){Y.shouldAutoplay_(D)?R.loadVideoByPlayerVars(D.args):R.cueVideoByPlayerVars(D.args)})):this.initPlayerPromise_=this.initPlayerContainer_(D),this.initPlayerPromise_},
initPlayerContainer_:function(D){var Y=this;if(this.useUnifiedPlayer_())MP(!1,"Invalid method call in kevlar_unified_player.");else return MP(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Jk(Error("vh")),MP(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.f("kevlar_player_container_query_killswitch")?this.$.container:_.aU(this.hostElement).querySelector("#container"),DO$().then(function(){var R=Y.initPlayer_(D);Y.playerResolver_.resolve(R);
return R})},
onPlayerReady_:function(D,Y){this.useUnifiedPlayer_()?MP(!1,"Invalid method call in kevlar_unified_player."):(D.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&iaz.resolve(D),Y(D))},
maybeCallApiMethodOnElement_:function(D,Y){if(typeof D[Y]==="function")return D[Y]()},
maybeAdoptBootstrapPlayer_:function(){var D=window,Y,R=(Y=D.ytplayer)==null?void 0:Y.bootstrapPlayerContainer;if((Y=R==null?void 0:R.firstElementChild)&&Y.classList.contains("html5-video-player")){var Z,t,X=(Z=D.ytplayer)==null?void 0:(t=Z.bootstrapWebPlayerContextConfig)==null?void 0:t.contextId;Z=this.getWebPlayerContextConfig_().contextId;if(X&&X===Z){R!==this.playerContainer_&&(R=!1,this.maybeCallApiMethodOnElement_(Y,"getPlayerState")===2&&(R=!0),this.playerContainer_.appendChild(Y),R||this.maybeCallApiMethodOnElement_(Y,
"playVideo"));var M;if((M=D.ytplayer)==null?0:M.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=D.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(D){var Y=this;if(this.useUnifiedPlayer_())MP(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(R){Y.maybeAdoptBootstrapPlayer_();var Z=D?PAj(D):void 0;Z&&Z==Y.bootstrapPlayerResponse_&&(D.loaded=!0);Z=Y.playerContainer_;var t=Y.getWebPlayerContextConfig_();Z=sqb(Z,D,t);Y.player_=Z;Y.onPlayerReadyEvent_=Y.onPlayerReady_.bind(Y,Y.player_,R);Y.player_.addEventListener("onReady",Y.onPlayerReadyEvent_);Y.player_.addEventListener("innertubeCommand",
Y.onPlayerInnerTubeCommand_.bind(Y));_.f("enable_web_shorts_captions_language_command")&&Y.player_.addEventListener("captionschanged",Y.storePlayerCaptionLanguage_.bind(Y))})},
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(D){D.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(D){D.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var D=_.DH().resolve(_.Z4).getCurrentPage();D&&D.getScrollTop()<=0?_.hN(this,"pan-down"):_.hN(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()||D.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()&&D.toggleFullscreen()})},
updatePlayerPlaylist_:function(D){var Y=this,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return R=_.DH().resolve(_.cD(_.xW)),Z=!!(R&&R.playlistComponent&&R.playlistComponent.loopOn),X.yield(Y.getPlayerPromise(),2);var M=t=X.yieldResult,W=M.updatePlaylist,z=[];if(_.f("kevlar_player_playlist_use_local_index")){var I,F;var G=(F=(I=D.localCurrentIndex)!=null?I:D.currentIndex)!=null?F:0}else{var V;G=(V=D.currentIndex)!=null?V:0}if(D.contents)for(I=0;I<D.contents.length;I++)if((F=D.contents[I])&&F.playlistPanelVideoRenderer)if(iOU(F)){F=
F.playlistPanelVideoRenderer;V="";F.shortBylineText&&(V=_.OM(F.shortBylineText));var e="";F.title?e=_.OM(F.title):F.unplayableText&&(e=_.OM(F.unplayableText));z.push({author:V,title:e,encrypted_id:F.videoId})}else I<G&&--G;W.call(M,{index:G,list:D.playlistId?D.playlistId:"",loop:Z,playlist_title:D.title,playlist_length:z.length,video:z,fetch:0,external_list:"1",title:D.title?D.title:"",playlist_author:D.ownerName?_.OM(D.ownerName):void 0});_.V9(X)})},
focusOnPlayer:function(){_.cy(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var D=this.playerContainer_.querySelector(".html5-video-player");D&&(_.t7(_.DH().resolve(_.bq)),D.focus())}})},
preparePlayer:function(){var D=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(Y){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")Y();else{var R=function(){document.removeEventListener("DOMContentLoaded",R);Y()};
document.addEventListener("DOMContentLoaded",R)}})).then(function(){return DO$()}).then(function(){D.initPlayerPromise_||D.preparePlayerJobId_||(D.preparePlayerJobId_=_.Ak(_.yc,function(){D.initPlayerPromise_||(D.initPlayerPromise_=D.initPlayerContainer_())}))}):_.lo(new _.AT("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(D){this.useUnifiedPlayer_()?MP(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(D)||(D.args.autoplay="0")},
shouldAutoplay_:function(D){if(this.useUnifiedPlayer_())MP(!1,"Invalid method call in kevlar_unified_player.");else{var Y=this.get("args.el",D);return Y&&Y!="detailpage"&&this.isMiniplayerActive_()||Y&&(Y=="sponsorshipsoffer"||Y=="handlesclaiming")&&this.get("args.autoplay",D)=="0"?!1:(D=PAj(D))&&this.get("playerConfig.playbackStartConfig.startPaused",D)?!1:!0}},
isMiniplayerActive_:function(){return _.DH().resolve(_.mL).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var D=this.getPlayer();if(D){var Y=D.getPlayerState();_.f("kevlar_player_check_ad_state_on_stop")&&(Y=D.getPlayerState(D.getPresentingPlayerType()));Y!=5&&D.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(D,Y,R){R=R===void 0?!1:R;var Z=this,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return Y||(Y=Z.hostElement),t=Z.useUnifiedPlayer_()?!!Z.mainAppPlayer_:!!Z.initPlayerPromise_,t?z.yield(Z.getPlayerPromise(),2):(R?D.insertBefore(Y,D.firstChild):D.appendChild(Y),z.return());X=z.yieldResult;M=X.getPlayerState(X.getPresentingPlayerType());W=!1;if(M==-1||M==1||M==3)W=!0;R?D.insertBefore(Y,D.firstChild):D.appendChild(Y);W&&X.playVideo();X.setSize(NaN,NaN);_.V9(z)})},
watchNextDataChanged_:function(D){var Y=this;D&&(this.useUnifiedPlayer_()&&_.f("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&YZ_(this.mainAppPlayer_,D):this.getPlayerPromise().then(function(R){R.updateVideoData(Y.computeWatchNextPlayerVars_(D))}))},
computeWatchNextPlayerVars_:function(D){if(this.useUnifiedPlayer_()&&_.f("kevlar_unified_player_update_watch_next_killswitch"))MP(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:D}},
maybeSendAbandonmentPing_:function(){var D=this.getPlayer();D&&D.getPlayerState()!=5&&D.getPlayerState()!=0&&D.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var D=_.JQ("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(D=Object.assign({},D),D.rootElementId=this.playerId);D.serializedExperimentIds&&D.serializedExperimentFlags||_.Jk(Error("wh"));return D},
hasWebPlayerContextConfig_:function(){return!!_.JQ("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(D){this.useUnifiedPlayer_()?MP(!1,"Invalid method call in kevlar_unified_player."):_.Vu(D,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(D){var Y=_.DH().resolve(_.rt);D=D==null?void 0:D.getOption("captions","track");var R=_.TL("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(D){var Z,t=(Z=_.Ax(_.xP,R)())==null?void 0:Z.value,X;Z=typeof(D==null?void 0:D.translationLanguage)==="object"&&((X=D.translationLanguage)==null?void 0:X.languageName)||D.displayName||"";t!==Z&&Y.store.dispatch(_.oP("stringEntity",R,{key:R,value:Z.toString()}))}else Y.store.dispatch(_.oP("stringEntity",
R,{key:R,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var D=_.f("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.f("kevlar_unified_player")||D}}];var ufY={};ufY.YtPlaylistPanelBehavior=[_.p.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(D){D=D.detail;if(D.actions.loop!=void 0||D.actions["yt-icons:loop"]!=void 0)this.loopOn=D.actions.loop||D.actions["yt-icons:loop"];if(D.actions.shuffle!=void 0||D.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=D.actions.shuffle||D.actions["yt-icons:shuffle"]},
setMenuData_:function(D){if(!D||!D.playlistButtons||D.isInfinite)return null;for(var Y=D.playlistButtons.menuRenderer.topLevelButtons,R=Y.length,Z=0;Z<R;Z++)if(Y[Z].toggleButtonRenderer){var t=Y[Z].toggleButtonRenderer;t.defaultIcon.iconType=="LOOP"&&this.loopOn?t.isToggled=this.loopOn:t.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(t.isToggled=this.shuffleOn)}return D.playlistButtons}}];var aN4=function(D){MA.call(this,D,132);this.isDocument=D===document.documentElement};
_.n(aN4,MA);aN4.prototype.calculateScrollDelta=function(D,Y,R){var Z=0;D<Y?Z=D<Y-100?-48:-8:D>Y+R&&(Z=D>Y+R+100?48:8);return Z};
aN4.prototype.JSC$11304_onMouseMove=function(D){this.isDocument||(D.clientX=D.event_.pageX,D.clientY=D.event_.pageY);MA.prototype.JSC$11304_onMouseMove.call(this,D)};var sX=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;D.scrollElement=document.documentElement;D.JSC$14292_dragListGroup=null;D.dragScrollSupport=null;D.onDraggerCreated=function(Y){var R=Y.JSC$11300_dragger;R.scrollTarget_=D.scrollElement;Y=Y.draggerEl;R&&Y.menuOpened&&R.setEnabled(!1)};
D.onDragStart=function(Y){var R=Y.draggerEl;Y=Y.currDragItem;var Z=Object.assign({},Y==null?void 0:Y.data);Z.trackingParams=void 0;R.data=Z;R.style.position="absolute";R.style.width=(Y==null?void 0:Y.clientWidth)+"px";R.style.zIndex="2030";R.onDrag&&R.onDrag();_.f("web_owner_document_fallback_killswitch")?(Y=document.querySelector("ytd-app"))&&_.aU(Y).appendChild(R):(Y=_.k2(R),(Z=Y.querySelector("ytd-app"))?_.aU(Z).appendChild(R):Y.body.appendChild(R));D.dragScrollSupport=new aN4(D.scrollElement);
D.dragScrollSupport.horizontalScrolling_=!1;R=D.dragScrollSupport;R.constrainScroll_=!!R.margin_&&!1};
D.onDrop=function(Y){D.handleDrop(Y);D.dragScrollSupport&&(_.OG(D.dragScrollSupport),D.dragScrollSupport=null)};
D.onReorderableScroll=function(){if(D.JSC$14292_dragListGroup){var Y=D.JSC$14292_dragListGroup;inL(Y,Y.currDragItem_)}};
return D};
_.n(sX,_.Aj);sX.prototype.detached=function(){_.MaL(this)};
_.MaL=function(D){D.JSC$14292_dragListGroup&&(_.fg(D.JSC$14292_dragListGroup,Hnz,D.onDragStart),_.fg(D.JSC$14292_dragListGroup,B$U,D.onDragStart),D.JSC$14292_dragListGroup.dispose(),D.JSC$14292_dragListGroup=null);D.dragScrollSupport&&(_.OG(D.dragScrollSupport),D.dragScrollSupport=null);D.scrollElement.removeEventListener("scroll",D.onReorderableScroll)};
_.COV=function(D,Y,R,Z){Z=Z===void 0?"":Z;_.MaL(D);R&&(D.scrollElement=R);D.JSC$14292_dragListGroup=new HX;D.JSC$14292_dragListGroup.hysteresisDistance_=2;EIL(D.JSC$14292_dragListGroup,Y);D.JSC$14292_dragListGroup.draggerElClasses_=TU("dragging").split(" ");Z&&gIE(D.JSC$14292_dragListGroup,function(t){var X=t||document,M=null;X.getElementsByClassName?M=X.getElementsByClassName(Z)[0]:M=vEb("*",Z,t);return M||t});
_.yu(D.JSC$14292_dragListGroup,m3L,D.onDraggerCreated);_.yu(D.JSC$14292_dragListGroup,Hnz,D.onDragStart);_.yu(D.JSC$14292_dragListGroup,B$U,D.onDrop);D.JSC$14292_dragListGroup.init();D.scrollElement.addEventListener("scroll",D.onReorderableScroll,{passive:!0})};
sX.prototype.handleDrop=function(){};
_.YF.Object.defineProperties(sX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.q([_.y({value:100}),_.x("design:type",Number)],sX.prototype,"scrollMargin",void 0);_.q([_.nr()],sX);_.WG1=[sX.prototype];_.X1={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(D,Y,R){var Z=this.getClickTarget_(Y);if(Z&&this.isClickAllowed_(Z)){Y.preventDefault();D=(0,_.y7.unsafeClone)(D);var t=this.getContainerBoundingRect();Y=this.getRelativeClickXy_(Y,t);this.expandEndpointUrlMacros_(D,{NX:Y[0],NY:Y[1],NB:Z.code});R&&this.truncateWebCommendMetadataUrl_(D);_.MX(this.hostElement,"yt-navigate",{endpoint:D})}},
getClickTarget_:function(D){if(!this.clickTargetMap)return null;D=_.O$(D)||[];D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;if(Y===_.aU(this.hostElement).querySelector("#menu"))break;if(Y=this.clickTargetMap.get(Y.id))return Y}return null},
getRelativeClickXy_:function(D,Y){var R=D.detail.x,Z=D.detail.y;_.f("use_on_click_for_desktop_display_ad")&&D.clientX!=null&&D.clientY!=null&&(R=D.clientX,Z=D.clientY);D=Math.round(R-Y.left);Y=Math.round(Z-Y.top);return D<0||Y<0?[null,null]:[D,Y]},
getContainerBoundingRect:function(){return _.aU(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(D,Y){for(var R=_.a(D.loggingUrls||[]),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.baseUrl&&(Z.baseUrl=iGU(Z.baseUrl,Y));D.urlEndpoint&&D.urlEndpoint.url&&(D.urlEndpoint.url=iGU(D.urlEndpoint.url,Y));D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url&&(D.commandMetadata.webCommandMetadata.url=iGU(D.commandMetadata.webCommandMetadata.url,Y))},
truncateWebCommendMetadataUrl_:function(D){if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url){var Y=D.commandMetadata.webCommandMetadata.url,R=Y.indexOf("&pp=");if(R>0){var Z=Y.indexOf("&",R+1);D.commandMetadata.webCommandMetadata.url=Z>R&&Z<Y.length?Y.slice(0,R)+Y.slice(Z):Y.slice(0,R)}}},
configureClickTargets:function(D,Y,R){this.containerId=D;this.clickTargetMap=new Map;D=_.a(Y);for(Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.location){var Z=R.get(Y.location);Z&&(_.Cr(_.aU(this.hostElement).querySelector("#"+Z),"yt-simple-endpoint",this.isClickAllowed_(Y)),this.clickTargetMap.set(Z,Y))}},
isClickAllowed_:function(D){return D.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.u6={};
_.u6.YtLazyListBehavior=[_.tV.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 D=(this.constructor.generatedFrom||this).observers;D||(D=[]);D.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
D}},
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 D=this.renderElementsOutsideVisibleArea_;D&&(a8E(D,4),D.processSignal())},
deepLazyListObserver_:function(D){var Y=this;if(D){var R=D.value||[];if(this.itemsPath==D.path){var Z=this.nonDeferredItemCount;D=0;Z>-1&&R.length>Z&&(D=_.JQ("REMAINING_DOVA_DEFERRED_CHUNKS",-1));D>0?(Z>0&&(Z=R.slice(0,Z),this.setInitialItemsOnDataChanged(Z)),(Z=this.renderElementsOutsideVisibleArea_)?Z.cancel():(Z=this.renderElementsOutsideVisibleArea_=new _.Xh(2,"eocs"),_.Pfn(window,"scroll",function(){return Y.renderDeferredElements()})),_.uu(Z,function(){Y.setInitialItemsOnDataChanged(R)}),_.l1("REMAINING_DOVA_DEFERRED_CHUNKS",
D-1)):this.setInitialItemsOnDataChanged(R)}else if(this.itemsPath+".splices"==D.path)this.onItemsUpdated_(R);
else Z="shownItems"+D.path.substr(this.itemsPath.length),this.useSignals&&Z==="shownItems.length"||this.notifyPath(Z,D.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(D){D&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(D),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(D){D=D.indexSplices;for(var Y=0,R=D.length;Y<R;Y++){var Z=D[Y];if(Z.index<this.shownCount&&(Z.removed&&this.splice("shownItems",Z.index,Z.removed.length),Z.addedCount)){var t=Z.object.slice(Z.index,Z.index+Z.addedCount);Z=["shownItems",Z.index,0];Z.push.apply(Z,t);this.splice.apply(this,Z)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(D){this.cancelPendingTasks_();D||(D=[]);this.items_=D;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&&(_.ks("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.cy(this,this.tryRenderChunk_)))},
fillRange_:function(D,Y){this.canShowMore&&this.items_&&(D=this.items_.slice(D,Y),D.unshift("shownItems"),this.push.apply(this,D),this.shownCount=Y,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var D=this;this.canShowMore&&_.pr(this,"renderChunk",function(){D.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.ks("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.NP(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var D=this.renderElementsOutsideVisibleArea_;D&&(D.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var D=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(D-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=D;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(D){return Math.ceil(1E3/D)},
onCanShowMoreUpdated_:function(D){this.data&&this.items_!==null&&(D?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(D){!this.shouldUseTaskManager()&&this.data&&(!D&&this.canShowMore?(_.buU(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):D&&this.partiallyRenderedItems_.has(this.items_)&&(_.f("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var CV;_.aX={};
CV=function(){var D=_.Aj.apply(this,arguments)||this;D.atStart=!0;D.atEnd=!0;D.startIndex=0;D.endIndex=0;D.scrollCount=0;D.initialStartIndex=0;D.disableScrollEventListener=!1;D.useFloorScrolling=!1;D.isSearch=!1;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.disableWheelScroll=!1;D.centerListItems=!1;D.offset=0;D.minComponentWidth=0;D.marginWidthRight=0;D.marginWidthLeft=0;D.setButtonsStateRequested=!1;D.itemsVisibilityObserver=null;D.fullyVisibleItemsIndices=[];D.JSC$14303_onWheelScroll=function(Y){if(D.isSearch&&
!D.disableWheelScroll&&_.f("desktop_enable_dmpanel_wheel_scroll")){var R=Y.shiftKey?Math.abs(Y.deltaY)>Math.abs(Y.deltaX)?Y.deltaY:Y.deltaX:Y.deltaX;R!==0&&(Y.preventDefault(),D.ytLazyListBehavior.fillRemainingListItems(),D.offset+=R,Mf(D),D.reposition_())}};
D.onPointerDown=function(Y){zH1(D)&&(D.dragMouseStart=Y.clientX,D.dragOffsetStart=D.offset,D.dragging=!0)};
D.onPointerMove=function(Y){zH1(D)&&D.dragging&&(D.ytLazyListBehavior.fillRemainingListItems(),D.offset=D.dragOffsetStart-(Y.clientX-D.dragMouseStart),Mf(D),D.reposition_())};
D.onPointerUp=function(){zH1(D)&&(D.dragging=!1)};
return D};
_.n(CV,_.Aj);var SZL=function(D){var Y=_.aU(D.hostElement).querySelector("#items").children;if(!Y)return 0;var R=0;D=_.a(D.fullyVisibleItemsIndices);for(var Z=D.next();!Z.done;Z=D.next())R+=Y[Z.value].clientWidth;return R},zH1=function(D){return D.isSearch&&_.f("desktop_enable_dmpanel_click_drag_scroll")};
CV.prototype.created=function(){this.cachedViewportWidth=_.JQ("initialInnerWidth")||window.innerWidth;this.JSC$14303_cachedViewportHeight=_.JQ("initialInnerHeight")||window.innerHeight;_.JQ("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.l1("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
CV.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.f("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();T6_(this)};
CV.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.f("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var D;(D=this.itemsVisibilityObserver)==null||D.disconnect();this.itemsVisibilityObserver=null;var Y;(Y=this.itemsObserver)==null||Y.disconnect()};
var T6_=function(D){var Y=_.aU(D.hostElement).querySelector("#scroll-container");if(Y){if(!D.itemsVisibilityObserver){var R=window.getComputedStyle(Y).marginRight;D.itemsVisibilityObserver=new IntersectionObserver(function(Z){jq4(D,Z)},{root:Y,
rootMargin:R,threshold:.98})}if(Y=_.aU(D.hostElement).querySelector("#items"))D.itemsObserver=new $wV(Y,function(Z){IN7(D,Z)})}},IN7=function(D,Y){FGU(D)&&(Array.from(Y.addedNodes).filter(function(R){return R.nodeType===Node.ELEMENT_NODE}).forEach(function(R){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.observe(R)}),Array.from(Y.removedNodes).filter(function(R){return R.nodeType===Node.ELEMENT_NODE}).forEach(function(R){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.unobserve(R)}))},
jq4=function(D,Y){var R=new Set(D.fullyVisibleItemsIndices);
Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;var t=Z.target.parentElement;t?(t=Array.from(t.children).indexOf(Z.target),Z.isIntersecting?R.add(t):R.has(t)&&R.delete(t)):_.Jk(new _.AT("Parent element not found",Z.target.nodeName))}D.fullyVisibleItemsIndices=Array.from(R).sort(function(X,M){return X-M});
R.size===0?_.Jk(new _.AT("No visible entries in horizontal list")):(D.startIndex=D.fullyVisibleItemsIndices[0],D.endIndex=D.fullyVisibleItemsIndices[D.fullyVisibleItemsIndices.length-1])},FGU=function(D){D.data?D=(D=D.data)&&D.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===D.itemSizeConstraint:!1:D=!1;
return D};
_.u=CV.prototype;_.u.addScrollEventListeners=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container");D.style.touchAction="pan-y";D.addEventListener("wheel",this.JSC$14303_onWheelScroll);D.addEventListener("pointerdown",this.onPointerDown);D.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.u.removeScrollEventListeners=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.JSC$14303_onWheelScroll);D.removeEventListener("pointerdown",this.onPointerDown);D.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.u.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.cy(this,this.setStartIndex,[this.initialStartIndex])};
_.u.reposition_=function(){var D=_.JQ("HTML_DIR")=="rtl"?"":"-",Y=_.aU(this.hostElement).querySelector("#items");Y&&(Y.style.transform="translateX("+D+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.u.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.cy(this,this.setButtonsState_))};
_.u.setButtonsState_=function(){this.setButtonsStateRequested=!1;var D=_.aU(this.hostElement).querySelector("#items").firstElementChild;if(D){this.minComponentWidth||(this.minComponentWidth=GCE(this,D));D=_.aU(this.hostElement).querySelector("#scroll-container").clientWidth;var Y=_.aU(this.hostElement).querySelector("#items");Y=_.f("kevlar_horizontal_list_scroll_width_killswitch")?Y.clientWidth:Y.scrollWidth;var R=this.get(this.ytLazyListBehavior.itemsPath,this);if(R){var Z=Math.round(D/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Z,R.length)-1)}this.ytLazyListBehavior.canShowMore?Y+this.minComponentWidth>=this.offset+D&&(this.atEnd=!1):this.atEnd=this.offset+D>=Y-20?!0:!1;this.atStart=this.offset<=20}};
_.u.setStartIndex=function(D){if(!this.minComponentWidth){var Y=_.aU(this.hostElement).querySelector("#items").firstElementChild;if(!Y)return;this.minComponentWidth=GCE(this,Y)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*D;Mf(this);this.reposition_()};
_.u.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.jR();var D=_.aU(this.hostElement).querySelector("#scroll-container").clientWidth;_.f("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=GCE(this,_.aU(this.hostElement).querySelector("#items").firstElementChild));D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&VaU(this);this.offset+=FGU(this)?
SZL(this):D*this.minComponentWidth;Mf(this);this.reposition_();this.scrollCount++};
_.u.prevClick_=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container").clientWidth;D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=FGU(this)?SZL(this):this.minComponentWidth*this.scrollCount-1):this.offset-=FGU(this)?SZL(this):D*this.minComponentWidth;this.centerListItems&&VaU(this);Mf(this);this.reposition_()};
_.u.onIronResize_=function(){this.resizeSupportEnabled&&_.cy(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.u.onItemsTransitionEnd_=function(D){_.cG(D)===_.aU(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.u.onChildElementFocus_=function(D){D=D.target.closest("#items > *");var Y=_.aU(this.hostElement).querySelector("#scroll-container");if(Y.contains(D)){if(_.f("web_horizontal_list_behavior_focus_killswitch"))if(D.offsetLeft<this.offset)this.offset=Math.abs(D.offsetLeft)<D.clientWidth?0:D.offsetLeft;else if(D.offsetLeft+D.clientWidth>this.offset+Y.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.jR(),this.offset=D.offsetLeft+D.clientWidth-Y.clientWidth;else return;else{var R=_.aU(this.hostElement).querySelector("#items"),
Z=_.JQ("HTML_DIR")==="rtl",t=Z?R.clientWidth-D.offsetLeft:D.offsetLeft;R=Z?R.clientWidth-(D.offsetLeft+D.clientWidth):D.offsetLeft+D.clientWidth;var X=Z?t>this.offset+Y.clientWidth:t<this.offset,M=Z?R<this.offset:R>this.offset+Y.clientWidth,W=Z?X:M;if(Z?M:X)Y=Z?R:t,this.offset=Math.abs(Y)<D.clientWidth?0:Y;else if(W)this.ytLazyListBehavior.fillRemainingListItems(),_.jR(),this.offset=(Z?t:R)-Y.clientWidth;else return}Mf(this);this.reposition_()}};
_.u.observeShownItems_=function(){this.reset()};
_.u.checkComponentWidthResize=function(){var D=_.aU(this.hostElement).querySelector("#items").firstElementChild;D&&(D=GCE(this,D),this.centerListItems||D!==this.minComponentWidth)&&(this.minComponentWidth=D,this.offset=D*this.scrollCount,this.centerListItems&&VaU(this),Mf(this),this.reposition_())};
var GCE=function(D,Y){var R=window.getComputedStyle(Y).marginRight;R=Math.floor(Number(R.replace("px","")));var Z=window.getComputedStyle(Y).marginLeft;Z=Math.floor(Number(Z.replace("px","")));D.centerListItems&&!D.marginWidthRight&&(D.marginWidthRight=R,D.marginWidthLeft=Z);return D.resizeSupportEnabled?Y.getBoundingClientRect().width+R:Y.offsetWidth+R},Mf=function(D){var Y=_.aU(D.hostElement).querySelector("#scroll-container").clientWidth,R=_.aU(D.hostElement).querySelector("#items").clientWidth;
D.offset<0?D.offset=0:D.offset+Y>=R&&(D.offset=R-Y)},VaU=function(D){D.offset-=(_.aU(D.hostElement).querySelector("#scroll-container").clientWidth+D.marginWidthRight-D.minComponentWidth)/2-D.marginWidthLeft};
_.YF.Object.defineProperties(CV.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var D=_.JQ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(D==-1)D=this.JSC$14303_cachedViewportHeight,D=D>1320?5:D>1020?4:D>730?3:D>430?2:1;else if(D==0)return 0;_.l1("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",D-1);D=_.JQ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(D>-1)return D;D=this.cachedViewportWidth;D=D>1600?6:D>1400?5:D>1300?4:D>1090?5:D>870?4:D>660?3:2;_.l1("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
D);return D},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.f("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
CV.prototype.observeShownItems_=CV.prototype.observeShownItems_;CV.prototype.onChildElementFocus_=CV.prototype.onChildElementFocus_;CV.prototype.onItemsTransitionEnd_=CV.prototype.onItemsTransitionEnd_;CV.prototype.onIronResize_=CV.prototype.onIronResize_;CV.prototype.prevClick_=CV.prototype.prevClick_;CV.prototype.nextClick_=CV.prototype.nextClick_;CV.prototype.setButtonsState_=CV.prototype.setButtonsState_;CV.prototype.requestButtonsStateUpdate_=CV.prototype.requestButtonsStateUpdate_;
CV.prototype.reposition_=CV.prototype.reposition_;CV.prototype.reset=CV.prototype.reset;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],CV.prototype,"ytLazyListBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"atStart",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],CV.prototype,"atEnd",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"startIndex",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"endIndex",void 0);_.q([_.y({value:6}),_.x("design:type",Number)],CV.prototype,"initialCount",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"scrollCount",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"initialStartIndex",void 0);
_.q([_.y(),_.x("design:type",Object)],CV.prototype,"disableScrollEventListener",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"supportComponentResize",void 0);_.q([_.y({value:function(){var D=this;return function(){return D.prevClick_()}}}),
_.x("design:type",Function)],CV.prototype,"boundPrevClick",void 0);_.q([_.y({value:function(){var D=this;return function(){return D.nextClick_()}}}),
_.x("design:type",Function)],CV.prototype,"boundNextClick",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"useFloorScrolling",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"isSearch",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"dragging",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"dragMouseStart",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"dragOffsetStart",void 0);
_.q([_.y(),_.x("design:type",Object)],CV.prototype,"disableWheelScroll",void 0);_.q([_.y(),_.x("design:type",Object)],CV.prototype,"centerListItems",void 0);_.q([_.Fv("iron-resize"),_.Gm("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CV.prototype,"onIronResize_",null);_.q([_.Fv("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],CV.prototype,"onItemsTransitionEnd_",null);
_.q([_.Fv("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],CV.prototype,"onChildElementFocus_",null);_.q([_.Gm("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CV.prototype,"observeShownItems_",null);_.q([_.nr()],CV);_.aX.YtdHorizontalListBehavior=[];_.aX.YtdHorizontalListBehavior.push(_.l_,_.p.YtRendererBehavior,_.u6.YtLazyListBehavior,_.BH.YtdGuideStateAwareBehavior,CV.prototype);var COU=["APP_STATE","PI"];var fNE=_.gY(["about:blank"]),eHb={pushState:window.history.pushState,replaceState:window.history.replaceState};var WV=function(D){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=D;this.internalPushState=D.pushState.bind(D);this.internalReplaceState=D.replaceState.bind(D)};
WV.prototype.init=function(){this.initialized=!0};
WV.prototype.pushState=function(D,Y){this.initialized||this.init();this.internalPushState&&this.internalPushState(D,"",Y)};
WV.prototype.replaceState=function(D,Y){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(D,"",Y)};
WV.prototype.getState=function(){return this.history&&this.history.state};var AA7=function(D){var Y=function(){var R=D.apply(this,arguments)||this;R.boundHistoryPushState=!1;R.boundHistoryReplaceState=!1;R.debugInfo={};return R};
_.n(Y,D);Y.prototype.init=function(){var R=_.I0("IFRAME");_.x7(R,_.tZ(fNE));R.sandbox="allow-same-origin";R.style.display="none";this.iframe=R;document.body.appendChild(R);this.bindHistoryStateFunctions();D.prototype.init.call(this)};
Y.prototype.bindHistoryStateFunctions=function(){var R=this,Z=[],t;this.iframe&&((t=this.iframe.contentWindow)==null?0:t.history)&&(t=this.iframe.contentWindow.history)&&(Z.push(t),Object.getPrototypeOf(t)&&Z.push(Object.getPrototypeOf(t)));window.history&&Z.push(window.history);t=window.history;Object.getPrototypeOf(t)&&Z.push(Object.getPrototypeOf(t));Z.push(eHb);t=function(M){for(var W=null,z=0;z<Z.length;z++){var I=Z[z][M];if(typeof I==="function"){W=I.bind(window.history);R.debugInfo[M]=z;break}}return W};
if(!this.boundHistoryReplaceState){var X=t("replaceState");X&&(this.internalReplaceState=X,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(t=t("pushState"))&&(this.internalPushState=t,this.boundHistoryPushState=!0)};
return Y}(WV),n4L=function(){return AA7.call(this,window.history)||this};
_.n(n4L,AA7);n4L.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var zx=function(D){this.browserHistory=D;this.initialized=!1};
zx.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
zx.prototype.pushState=function(D,Y){this.initialized||this.init();this.browserHistory.pushState(D,Y)};
zx.prototype.replaceState=function(D,Y){this.initialized||this.init();this.browserHistory.replaceState(D,Y)};
zx.prototype.handlePopstate=function(D){return D.state};_.rAE=function(D,Y,R,Z,t){this.endpoint=D;this.forward=Y;this.historyEntry=R;this.JSC$30005_savedComponentState=Z;this.legacyBorder=t===void 0?!1:t};var wWV=function(D,Y){this.rootData=D;this.scrollTop=Y};var no=new _.R6("PAGE_REQUEST_TOKEN"),hnD=new _.R6("FETCH_PBJ_TOKEN");_.Sm=new _.R6("EPHEMERAL_STORE_TOKEN");_.Tx=function(D){this.data=Object.assign({},D);var Y;(Y=this.data.innertubeResponse)==null||delete Y.frameworkUpdates};
_.Tx.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.DO)()};
_.tn=function(D){return Object.assign({},D.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var $O4=function(){this.maxSize=100;this.timeToDataCache=new Map};
$O4.prototype.get=function(D){var Y=this.timeToDataCache.get(D);Y&&(this.timeToDataCache.delete(D),this.timeToDataCache.set(D,Y));if(Y&&Y.rootData&&(_.f("web_use_response_store_for_history_cache")||_.f("mweb_use_new_history_manager"))){var R=_.DH().resolve(_.Sm),Z=v4U(Y),t=!!Z;if(Z){if(Z.content){var X=jm(R,Z.content);t&&X?Y.rootData.response=_.tn(X):t=!1}Z.player&&(X=jm(R,Z.player),t&&X?Y.rootData.playerResponse=_.tn(X):t=!1);Z.reelSequence&&(R=jm(R,Z.reelSequence),t&&R?Y.rootData.reelWatchSequenceResponse=
_.tn(R):t=!1)}t||(this.timeToDataCache.delete(D),Y=void 0)}return Y};
$O4.prototype.set=function(D,Y){if(Y.rootData&&(_.f("web_use_response_store_for_history_cache")||_.f("mweb_use_new_history_manager"))){var R=v4U(Y),Z=Object.assign({},Y.rootData);R&&(R.content&&Y.rootData.response&&(o47(this,R.content,Y.rootData.response),Z.response=null),R.player&&Y.rootData.playerResponse&&(o47(this,R.player,Y.rootData.playerResponse),Z.playerResponse=null),R.reelSequence&&Y.rootData.reelWatchSequenceResponse&&(o47(this,R.reelSequence,Y.rootData.reelWatchSequenceResponse),Z.reelWatchSequenceResponse=
null));Y=new wWV(Z,Y.scrollTop)}this.timeToDataCache.has(D)?this.timeToDataCache.delete(D):this.timeToDataCache.size>=this.maxSize&&(R=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(R.value));this.maxSize!==0&&this.timeToDataCache.set(D,Y)};
$O4.prototype.clear=function(){this.timeToDataCache.clear()};
var v4U=function(D){var Y=_.DH().resolve(_.cD(no)),R;if((R=D.rootData)==null?0:R.endpoint)return Y==null?void 0:OzS(Y,D.rootData.endpoint);var Z;_.Jk(new _.AT("History snapshot response data does not contain endpoint",(Z=D.rootData)==null?void 0:Z.url));return null},o47=function(D,Y,R){if(D.maxSize>0){var Z;
(D=(Z=R.responseContext)==null?void 0:Z.maxAgeSeconds)&&Number(D)>0&&(Z=_.DH().resolve(_.Sm),R=zP(R,D),Z.put(Y,new _.Tx(R)))}};var bYz=function(D,Y,R){this.endpoint=Y;this.JSC$30010_savedComponentState=R===void 0?null:R;this.entryTime=D};var IN5=1;var IX=function(D){var Y=function(){var R=D.apply(this,[].concat(_.oK(_.UN.apply(0,arguments))))||this;R.historyEntryTime=0;R.historySnapshotCache=R.createHistoryCache();return R};
_.n(Y,D);Y.prototype.createHistoryCache=function(){return new $O4};
Y.prototype.saveAndReplace=function(R,Z,t){var X=window.location.href;var M=M===void 0?{}:M;var W=(W=this.browserHistory.getState())&&W.entryTime?W.entryTime:FG9();R=this.createNewHistoryEntry(R,M,W);this.saveSnapshot(W,Z,t);this.replaceState(R,X||window.location.href)};
Y.prototype.saveAndPush=function(R,Z,t,X,M){M=M===void 0?{}:M;this.saveSnapshot(this.historyEntryTime,t,X);t=this.historySnapshotCache;X=this.historyEntryTime;var W=t.timeToDataCache.keys();W=_.a(W);for(var z=W.next();!z.done;z=W.next())z=z.value,z>X&&t.timeToDataCache.delete(z);Z=this.createNewHistoryEntry(Z,M);this.pushState(Z,R)};
Y.prototype.saveSnapshot=function(R,Z,t){this.historySnapshotCache.set(R,new wWV(Z,t))};
Y.prototype.createNewHistoryEntry=function(R,Z,t){t=t===void 0?FG9():t;return new bYz(t,R,Z)};
Y.prototype.handlePopstate=function(R){var Z=D.prototype.handlePopstate.call(this,R),t=null,X=null,M=!1,W=null;Z&&Z.entryTime&&(W=this.historySnapshotCache.get(Z.entryTime)||null,M=Z.entryTime>this.historyEntryTime,this.historyEntryTime=Z.entryTime,t=Z.endpoint,X=Z.JSC$30010_savedComponentState);this.handleHistoryCacheLoad(new _.rAE(t,M,W,X),R);return Z};
Y.prototype.pushState=function(R,Z){Number(R==null?void 0:R.entryTime)>=0&&(this.historyEntryTime=R.entryTime);D.prototype.pushState.call(this,R,Z)};
Y.prototype.replaceState=function(R,Z){Number(R==null?void 0:R.entryTime)>=0&&(this.historyEntryTime=R.entryTime);D.prototype.replaceState.call(this,R,Z)};
Y.prototype.handleHistoryCacheLoad=function(){};
return Y}(zx),yA_=function(){var D=IX.call(this,new n4L)||this;
D.dispatchElement=null;D.entryIndex=0;return D};
_.n(yA_,IX);_.u=yA_.prototype;_.u.init=function(D){D=D===void 0?!0:D;IX.prototype.init.call(this);this.initialized||(D||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.u.handlePopstate=function(D){var Y=null;D.state||(Y="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return IX.prototype.handlePopstate.call(this,D);var R=new CustomEvent("yt-history-pop",{cancelable:!0});_.CX(this.dispatchElement,"yt-history-pop",[R,{errorMsg:Y}]);_.WC(this.dispatchElement,"yt-close-all-popups-action");if(!R.defaultPrevented){R=_.DH().resolve(_.Z4);Y=R.getCurrentData();var Z=R.getCurrentPage();R=0;Z?(Z=_.CX(this.dispatchElement,"yt-get-page-offset",
[Z]),Z.length>0&&(R=Z[0])):_.Jk(new _.AT("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:Y?Y.page:"undefined"}));Y&&(Y.csn=_.K2());this.saveSnapshot(this.historyEntryTime,Y,R)}return IX.prototype.handlePopstate.call(this,D)};
_.u.handleHistoryCacheLoad=function(D,Y){D.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.a(_.WC(this.dispatchElement,"yt-history-will-navigate",[Y])).next().value||_.CX(this.dispatchElement,"yt-history-load",[Y,D]))};
_.u.pushState=function(D,Y){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var R=new _.AT("history.pushState is not a function",this.getDebugString());_.Nb(R)}IX.prototype.pushState.call(this,D,Y)};
_.u.replaceState=function(D,Y){if(!this.browserHistory.boundHistoryReplaceState){var R=new _.AT("history.replaceState is not a function",this.getDebugString());_.Nb(R)}IX.prototype.replaceState.call(this,D,Y)};
_.u.saveAndPush=function(D,Y,R,Z,t){t=t===void 0?{}:t;R&&(R.csn=_.K2());IX.prototype.saveAndPush.call(this,D,Y,R,Z,t)};
_.u.getDebugString=function(){var D=[];this.initialized&&D.push("i");this.browserHistory.boundHistoryReplaceState&&D.push("bhr");this.browserHistory.boundHistoryPushState&&D.push("bhs");"replaceState"in this.browserHistory.debugInfo&&D.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&D.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&D.push("ei:"+String(this.entryIndex));return D.join(",")};
_.F1=function(D,Y){D.init(!0);var R=D.browserHistory.getState();D.replaceState(R,WK(Y))};
yA_.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Gx=new _.R6("DESKTOP_HISTORY_MANAGER_TOKEN");var N6L=[10,20,30,40,50,60],V$=function(){this.currentPartitionIndex=0},lNU=function(D){qcD({mainAppWeb:_.E$(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},JAL=function(D){qcD({mainAppWeb:_.E$(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},kCU=function(D){return D.currentPartitionIndex>=0&&D.currentPartitionIndex<N6L.length?N6L[D.currentPartitionIndex]:-1},UO1=function(D){return D.currentPartitionIndex>0&&D.currentPartitionIndex-1<N6L.length?N6L[D.currentPartitionIndex-1]:-1};
V$.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var D=UO1(this);D>0&&JAL(D);D=kCU(this);D>0&&lNU(D);KGL(this)}};
var KGL=function(D){var Y=kCU(D);if(Y>0){var R=UO1(D);R<0&&(R=0);D.intervalId=_.yc.addJob(function(){var Z=UO1(D);Z>0&&JAL(Z);Z=kCU(D);Z>0&&lNU(Z);KGL(D)},3,(Y-R)*6E4);
D.currentPartitionIndex+=1}else D.currentPartitionIndex=-1};var hH7=function(){this.skipNextNavigation=!1},LG_=function(D,Y,R){if(!Y)return!1;
if(D.skipNextNavigation)return D.skipNextNavigation=!1;if(_.A(R,_.Qj))return!1;var Z,t,X;if((Z=_.A(R,_.A6))==null?0:(t=Z.browseEndpointContextSupportedConfigs)==null?0:(X=t.browseEndpointContextMainConfig)==null?0:X.skipConfirmation)return!1;var M;return((M=_.A(Y.commandMetadata,_.GA))==null?void 0:M.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
hH7.prototype.showConfirmationDialog=function(D,Y){this.navigateParams=Y;this.customConfirmationCommand?_.DH().resolve(_.Yw).resolveCommand(this.customConfirmationCommand):(Y={openPopupAction:{popup:{confirmDialogRenderer:{title:_.i0(_.fX("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.i0(_.fX("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.i0(_.fX("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.i0(_.fX("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Bm.getInstance().triggerAction("yt-open-popup-action",Y,D))};
hH7.prototype.cancelPendingNavigation=function(){var D;((D=this.navigateParams)==null?void 0:D.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var mOL=function(){},HYU=function(D,Y,R,Z,t,X,M){R=R===void 0?{}:R;
M=M===void 0?{}:M;var W=_.$Z.instance,z,I=(z=_.A(Y,_.Qj))==null?void 0:z.url;return I?JBM(W,I,R,window.location.href,function(F,G){qZL(D,F,G,!1,!0,R,X,Z)},function(){return!1}):x5(W,Y,R,window.location.href,r$(Y),function(F,G){qZL(D,F,G,!1,!0,R,X,Z)},t,M)},qZL=function(D,Y,R,Z,t,X,M,W){if(!D.JSC$14361_chunkHandler)if(R.page==="watch"||R.page==="learning_journey_watch")if(t||Z){if(_.f("kevlar_continue_playback_without_player_response")){var z;
var I=(z=_.A(W,_.Od))==null?void 0:z.videoId}D.JSC$14361_chunkHandler=new MkY(_.sm,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:I},tempData:X},M)}else D.JSC$14361_chunkHandler=new tk_(_.sm);else R.page==="shorts"&&t&&!Z?D.JSC$14361_chunkHandler=new acz(_.sm,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:X},M):D.JSC$14361_chunkHandler=new smU(M);D.JSC$14361_chunkHandler.processChunk({endpoint:Y,data:R});return D.JSC$14361_chunkHandler.my.promise},
xO1=function(D,Y,R,Z,t){(R=_.OkD(R))&&qZL(D,Y,R,!1,!0,Z,void 0,t)};var POL=function(){this.pendingNavigationPromise=null};
_.u=POL.prototype;_.u.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.u.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.u.addEventListener=function(){throw Error("xh");};
_.u.dispatchEvent=function(){throw Error("xh");};
_.u.removeEventListener=function(){throw Error("xh");};var QqY=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],fV=function(){_.eE.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];B6b(this)};
_.n(fV,_.eE);fV.prototype.verifyUser=function(){var D=B6b(this),Y=D.logout;if(!D.sessionChange)return!0;this.dispatchEvent("ytsessionchange");Y&&this.dispatchEvent("ytuserinvalid");return!1};
var B6b=function(D){var Y=QqY.map(function(t){var X;return(X=_.FW.get(t))!=null?X:""}),R=Y.some(function(t,X){return D.sessionCookies&&D.sessionCookies[X]!==""&&t===""}),Z=Y.some(function(t,X){return D.sessionCookies&&D.sessionCookies[X]!==t});
D.sessionCookies=Y;return{logout:R,sessionChange:Z}};
fV.prototype.clearTimeout=function(){this.scheduledJobId&&(_.yc.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var AA5=new _.R6("POSTMESSAGE_TUNNEL_TOKEN");var Va9=["/parent_tools","/file_download","/artist_roster"],wWU=[uiV,aUY,MbD,W5_,C9U,XoE,zj_,Syz];var pWY=new _.R6("APP_ROOT");var em=new _.R6("NAVIGATION_CONFIRMATION_SERVICE");var E4E="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /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(" "),g4V=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
A7=function(D,Y){this.pendingNavigationPromise=null;this.JSC$14379_clientRoot=D;this.historyManager=Y;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 mOL;this.debugString=D.is;D={"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};_.pI(_.Bm.getInstance(),D,this.JSC$14379_clientRoot)},Dmz,YvL,R$z,ZeL,cAD;
_.n(A7,POL);A7.prototype.reload=function(){_.pn(window.location.href)};
var YQV=function(D){D.currentEndpoint&&_.A(D.currentEndpoint,_.$I)?D.reload():D.currentEndpoint&&D.navigate(D.currentEndpoint,!0,void 0,{disableCache:!0})};
A7.prototype.navigate=function(D,Y,R,Z,t,X,M,W){Y=Y===void 0?!1:Y;R=R===void 0?{}:R;Z=Z===void 0?{}:Z;var z=_.DH().resolve(em),I;if(!M&&LG_(z,(I=this.currentEndpoint)!=null?I:void 0,D))return z.showConfirmationDialog(this.JSC$14379_clientRoot.parentElement,{endpoint:D,reload:Y,params:R,tempData:Z,requestType:t,createScreenConfig:X}),!1;var F=_.Q0();_.Bk(F,"eocs")||F.parkOrScheduleJob(function(){F.processSignal("eocs")},10,"eor");
M=r$(D);z=Z.autonav==="1";I=_.K2();fV.instance||(fV.instance=new fV);var G=fV.instance.verifyUser(),V;if(_.f("enable_dark_theme_only_on_shorts")){var e=document.documentElement.hasAttribute("dark"),r=_.N3(!0)==="USER_INTERFACE_THEME_DARK";if(M==="shorts"){if(!e)if(_.f("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var l;_.pn((l=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:l.url,void 0,void 0,window.top)}}else{var U;_.pn(_.BD((U=_.A(D==null?
void 0:D.commandMetadata,_.GA))==null?void 0:U.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.f("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!e){var K;_.pn(_.BD((K=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:K.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(r!==e){var H;_.pn(_.BD((H=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:H.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(M==="watch"){if(dOV(_.DH().resolve(_.mL),
D)&&(G||_.f("fix_miniplayer_navigation_killswitch")))return!1;_.f("block_all_player_prefetch_requests")||(V=cc4(_.Ra(_.vs),D,z))}else{var c,Q=(c=_.A(this.currentEndpoint,_.Od))==null?void 0:c.videoId;Q&&_.N8.getInstance().then(function(AS){AS&&AS.set("yt-miniplayer-shown-video-id",Q)})}V&&(R.frags=V.missingFragments_.join(","));
l=null;var E;U=(E=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:E.ignoreNavigation;if(!U)if(_.f("kevlar_command_url")){var B;l=(B=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?void 0:B.url}else l=_.bHS(D,R);if(l&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&l==this.lastNavigationUrl)return _.k8({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.z3(xF(),"CANCELLED")}l&&(this.lastNavigationUrl=l);ZVS();_.l1("IS_HOMEPAGE_COLD",
!1);_.l1("IS_RESULTS_PAGE_COLD",!1);_.l1("IS_WATCH_PAGE_COLD",!1);D.loggingUrls&&D.loggingUrls.forEach(function(AS){AS.baseUrl&&_.qs(AS.baseUrl)});
_.bYr(D,X?X.layer:0)&&_.f("kevlar_flush_logs_on_away_navigation")&&_.yj();if($Oo(D))return!1;lnL(M,t);if(!l)return U||_.Jk(new _.AT("Can't construct url for endpoint",D)),_.z3(xF(),"FAILURE"),!1;_.GCn();E=D&&_.A(D,_.A6)&&_.A(D,_.A6).browseId.startsWith("UC");R=(B=_.f("enable_dark_theme_only_on_shorts")&&M==="shorts"?!1:_.lX()&&document.documentElement.hasAttribute("dark")!==_.yb())?{themeRefresh:1}:{};B&&!_.Vf()&&_.N3()==="USER_INTERFACE_THEME_DARK"&&(R.theme="dark");E=B||iY4(l)&&!E&&!_.f("kevlar_disable_url_allowlist");
G||(E=!0);if(E||_.JQ("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var O;var Wo=(O=window.top)==null?void 0:O.location.href}catch(AS){var Sb;Wo=(Sb=AS)==null?void 0:Sb.message}_.Jk(new _.AT("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Wo}))}D=_.f("kevlar_redirect_on_window_killswitch")?window.top:window;BG(l);_.pn(_.BD(l,R),void 0,void 0,D);_.z3(xF(),"ABORTED");return!1}_.f("kevlar_early_popup_close")&&_.CX(this.JSC$14379_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14361_chunkHandler=void 0;var VU;Wo=r$((VU=this.currentEndpoint)!=null?VU:void 0);(VU=M==="shorts"&&Wo==="shorts")||_.ZJ$();_.Lb(x0l)("nr",void 0);z&&_.k8({webInfo:{navigationReason:"an"}});D.clickTrackingParams&&(Z.itct=D.clickTrackingParams,Z.csn=I);TOy(Z);Z.endpoint=JSON.stringify(D);_.f("enable_unknown_lact_fix_on_html5")&&(_.DH().resolve(_.bq),Z.lact=_.Ro());_.y7.isEmpty(Z)||_.Rb(l,Z);!_.f("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(X=Object.assign({},{layer:0},X,{parentLayer:3}));this.pendingNavigationPromise=X=HYU(this.pageFetcher,D,Z,this.currentEndpoint,this.JSC$14379_isNetworkPromiseStale.bind(this),X,W);X=X.then(this.handleNavigateSuccess.bind(this,X,D,V,Z),this.handleNavigateFail.bind(this,X,D));_.AG().navigationFinishPromise=X;Y={endpoint:D,pageType:M,url:WK(l),reload:!!Y,noProgressBar:VU};t&&(Y.type=t);this.fireEvent("yt-navigate-start",Y);V&&xO1(this.pageFetcher,D,V,Z,this.currentEndpoint);return!0};
A7.prototype.JSC$14379_isNetworkPromiseStale=function(D){return D!=this.pendingNavigationPromise};
var OYV=function(D,Y,R,Z,t){var X=r$(Y);Y={endpoint:Y,pageType:X};t&&(Y.errorMessage=t);_.Jk(R);Y.navigationDoneMs=_.KX("nd");Y.navigationErrorReason=Z;D.fireEvent("yt-navigate-error",Y)};
A7.prototype.handleNavigateFail=function(D,Y,R){var Z=void 0;R instanceof _.x6&&(Z=R,vc5(R));if(this.JSC$14379_isNetworkPromiseStale(D))return _.lf(Z);_.z3(xF(),"FAILURE");OYV(this,Y,R,"101");return _.lf(R)};
A7.prototype.handleNavigateSuccess=function(D,Y,R,Z,t){if(this.JSC$14379_isNetworkPromiseStale(D))return _.TA();this.pendingNavigationPromise=null;if(!t)return Y=new _.AT("Missing data in response for navigation endpoint",Y),_.lf(Y);if(t.reload)return window.location.reload(!0),_.TA();R&&(D={},_.y7.extend(D,_.OkD(R),t),t=D);var X,M;R=(X=t)==null?void 0:(M=X.timing)==null?void 0:M.responseStart;R!=null&&_.KX("srt",R);_.KX("pdc");var W,z;X=(W=t)==null?void 0:(z=W.timing)==null?void 0:z.info;X!=null&&
(W=_.Lb(_.pXr)(X),_.k8(W));_.z3(xF(),"SUCCESS");cAD(this,Y,t,1,Z);return _.TA()};
var iY4=function(D){var Y=D;_.f("kevlar_no_redirect_to_classic_2_ks")||(Y=(new _.cO(D)).getPath());if(Y==="/"||Y==="/red")return!1;var R=!0;E4E.forEach(function(Z){D.indexOf(Z)===0&&(R=!1)});
g4V.forEach(function(Z){var t=Z.url;_.f(Z.expFlag)&&D.indexOf(t)===0&&(R=!1)});
return R};
A7.prototype.publishPageData=function(D){this.fireEvent("yt-page-data-fetched",{pageData:D})};
Dmz=function(D,Y,R,Z,t,X){var M=null;Y.page!=="watch"&&Y.page!=="learning_journey_watch"||Z?Y.filler||_.CX(D.JSC$14379_clientRoot,"yt-stop-old-player",[Y]):M=qZL(D.pageFetcher,t,Y,R,!1,X,void 0,D.currentEndpoint);if(M)return M.then(D.publishPageData.bind(D,Y));D.publishPageData(Y);return _.TA()};
YvL=function(D,Y,R){var Z=null;if(!R)return Z=new _.AT("Empty data",D.debugString,Y);var t=R.response;if(!t)return Z;var X={endpointType:r$(Y)||"unknown"};t.responseContext?(t=t.responseContext.errors)&&(Z=new _.AT("Errors in response context",D.debugString,Y,t,X)):Z=t.error||t.errorMetadata?new _.AT("Errors in response",D.debugString,Y,t.error,t.errorMetadata,X):new _.AT("responseContext missing",D.debugString,Y,Object.keys(t).sort().join(","),X);var M,W,z,I;if(D=R==null?void 0:(M=R.response)==null?
void 0:(W=M.responseContext)==null?void 0:(z=W.webResponseContextExtensionData)==null?void 0:(I=z.webResponseContextDebugData)==null?void 0:I.debugErrorMessages)for(M=0;M<D.length;M++);return Z};
R$z=function(D){var Y,R,Z,t;return D==null?void 0:(Y=D.response)==null?void 0:(R=Y.responseContext)==null?void 0:(Z=R.errors)==null?void 0:(t=Z.error)==null?void 0:t["0"]};
ZeL=function(D,Y){var R;if(R=Y.url&&!Y.url.startsWith("/clip"))R=Y.url,R=!_.f("webfe_parse_debug_param_in_resolveurl_service")&&D.searchDebugUrlMatcher.test(R)||K3b(R)?!0:!1;if(R)K3b(Y.url)&&_.QL(window.location.href).themeRefresh?(Y=_.Zi(Y.url,"themeRefresh"),_.F1(D.historyManager,Y)):Y.url&&!T6U(Y.url)&&_.F1(D.historyManager,Y.url);else if(Y.endpoint){var Z,t,X;(R=(Z=Y.endpoint)==null?void 0:(t=Z.commandMetadata)==null?void 0:(X=t.webCommandMetadata)==null?void 0:X.url)&&!T6U(R)&&_.F1(D.historyManager,
R);R&&Y.url&&R!=Y.url&&!Y.url.match("playnext=1")&&new _.AT("Response url mismatch in response data",D.debugString,R,Y.url)}};
_.tpE=function(D,Y,R,Z,t,X,M,W){X=X===void 0?!1:X;var z=_.DH().resolve(em),I;if(!W&&LG_(z,(I=D.currentEndpoint)!=null?I:void 0,Y))return z.showConfirmationDialog(D.JSC$14379_clientRoot.parentElement,{endpoint:Y,data:R,navigationType:Z,tempData:t,isMiniplayer:X,isForwardHistoryNavigation:M==null?void 0:M.forward}),_.TA();D.pageFetcher.JSC$14361_chunkHandler=void 0;return cAD(D,Y,R,Z,t,X)};
cAD=function(D,Y,R,Z,t,X){X=X===void 0?!1:X;D.isMiniplayerExpansion=X;var M=Z===2;D.currentEndpoint=Y;D.numNavigations++;D.numNavigations&&(YB$.navigationCount=D.numNavigations);_.l1("NUM_NAV",D.numNavigations);var W=YvL(D,Y,R);if(W)return OYV(D,Y,W,"102",R$z(R)),_.lf(W);var z,I,F,G;W=R.rootVe||(R==null?void 0:(z=R.response)==null?void 0:(I=z.responseContext)==null?void 0:(F=I.webResponseContextExtensionData)==null?void 0:(G=F.ytConfigData)==null?void 0:G.rootVisualElementType);!M&&R&&ZeL(D,R);var V,
e;z=R==null?void 0:(V=R.response)==null?void 0:(e=V.responseContext)==null?void 0:e.maxAgeSeconds;if(!M&&!isNaN(z)){var r;_.f("kevlar_use_response_ttl_to_invalidate_cache")?r=(0,_.DO)()+1E3*z:_.f("kevlar_always_invalidate_cache")&&(r=0);isNaN(r)||(R.expirationTime=r)}_.Ra(_.vs).prefetchCache_.clear();M||R.page!=="watch"||R.type!=="reduced"&&Z!==1?Z=Dmz(D,R,M,!!X,Y,t):(D.publishPageData(R),Z=_.TA());t=Z.then(function(){var l=r$(Y);l={endpoint:Y,pageType:l,fromHistory:M,response:R};l.navigationDoneMs=
_.KX("nd");D.fireEvent("yt-navigate-finish",l)});
R.csn&&W&&R.clientSideGrafts&&Z.then(D.attachClientSideGrafts.bind(D,R,_.Ud()));return t};
_.u=A7.prototype;_.u.attachClientSideGrafts=function(D,Y){D.clientSideGrafts&&Y&&D.clientSideGrafts.forEach(function(R){if(Y&&R){var Z=_.oT(R);_.f("combine_ve_grafts")?_.n8().graftServerVe(R,Y):_.Qk(D.csn,Y,Z)}})};
_.u.handleSignalActionHistoryBack=function(){window.history.back()};
_.u.handleSignalActionCloseWindow=function(){window.close()};
_.u.handleSignalActionReloadPage=function(){this.reload()};
_.u.handleSignalActionSoftReloadPage=function(){YQV(this)};
_.u.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.u.fireEvent=function(D,Y){D=new CustomEvent(D,{bubbles:!0,cancelable:!1,composed:!0,detail:Y});this.dispatchEvent(D)};
_.u.addEventListener=function(D,Y){this.JSC$14379_clientRoot.addEventListener(D,Y)};
_.u.dispatchEvent=function(D){return this.JSC$14379_clientRoot.dispatchEvent(D)};
_.u.removeEventListener=function(D,Y){this.JSC$14379_clientRoot.removeEventListener(D,Y)};
A7[YS]=[pWY,_.Gx];_.K6i=new Cc("browse","h8y2qb");_.hhU=new Cc("search","JzFVk");_.L6j=new Cc("shorts","xwEKAe");_.mRr=new Cc("watchFixie","nmfa2d");_.quU=new Cc("watchFlexy","CF909");_.HzS=new Cc("watchGrid","Tm0L3c");_.xR5=new Cc("watchLearningJourney","L3n37");var s7z;var Xbb=function(){return _.N.apply(this,arguments)||this};
_.n(Xbb,_.N);_.YF.Object.defineProperties(Xbb,{template:{configurable:!0,enumerable:!0,get:function(){if(s7z===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);s7z=D}D=s7z;return D}}});
_.q([_.v(XWV.YtPlayerBehavior),_.x("design:type",Object)],Xbb.prototype,"ytPlayerBehavior",void 0);_.q([_.h({is:"ytd-player"})],Xbb);var uM4;var amz;var Mpz;var nV=function(){var D=_.N.apply(this,arguments)||this;D.forceModernIconButton=!1;D.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return D};
_.n(nV,_.N);nV.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]]"}}}}}};
nV.prototype.handleAccountLinkingStateChangedCommand=function(D){if(D=_.A(D,gOz)){var Y,R=(Y=this.data)==null?void 0:Y.providerKey;Y=D.providerKey;R&&Y&&R.id===Y.id&&R.subject===Y.subject&&(D=D.linked,D!==void 0&&(this.set("data.linked",D),this.notifyPath("data.linked"),_.f("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(D)))}};
nV.prototype.setPlayerAccountLinkState=function(D){var Y=new xFU;PRE(Y,qFU(new mFz,D));var R=_.sm();R&&R.getPlayerPromise().then(function(Z){Z.setAccountLinkState(_.rb(Y.JSC$12078_serializeBinary(),4));Z.updateAccountLinkingConfig(D)})};
nV.prototype.handleShowAccountLinkDialog=function(){var D=this.get("button.buttonRenderer.command");D&&_.Ib([D],this.hostElement)};
_.YF.Object.defineProperties(nV.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}}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.q([_.v([_.Va.YtActionHandlerBehavior]),_.x("design:type",Object)],nV.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],nV.prototype,"overrides",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],nV.prototype,"forceModernIconButton",void 0);_.q([_.y({value:"bottom"}),_.x("design:type",String)],nV.prototype,"buttonTooltipPosition",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],nV.prototype,"forceIconButton",void 0);_.q([_.y(),_.x("design:type",Boolean)],nV.prototype,"disableTextTransform",void 0);
_.q([_.b("data","data.linked","data.isWarning"),_.x("design:type",Object),_.x("design:paramtypes",[])],nV.prototype,"button",null);_.q([_.h({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],nV);
_.L(nV,"ytd-account-link-button-renderer",function(){if(Mpz!==void 0)return Mpz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Mpz=D},{mode:1});var CpY;var WYb=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],rG=function(){return _.N.apply(this,arguments)||this};
_.n(rG,_.N);rG.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
rG.prototype.updateButtonActiveState=function(){var D=this,Y=!!WYb.find(function(R){return D.currentState===R});
this.button&&(this.button.isPressed=Y)};
_.YF.Object.defineProperties(rG.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.playlistLoopStateEntity)==null?void 0:D.state)||((Y=this.data)==null?void 0:Y.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=void 0,Y;if(this.currentState&&((Y=this.data)==null?0:Y.states)){Y=_.a(this.data.states);for(var R=Y.next();!R.done;R=Y.next()){R=_.A(R.value,_.TQY);var Z=void 0;if(((Z=R)==null?void 0:Z.state)===this.currentState){D=R;break}}}return D}}});
rG.prototype.updateButtonActiveState=rG.prototype.updateButtonActiveState;_.q([_.v(_.mb),_.x("design:type",Object)],rG.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.KGM}),_.x("design:type",Object)],rG.prototype,"playlistLoopStateEntity",void 0);_.q([_.y(),_.x("design:type",Object)],rG.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],rG.prototype,"forceIconOnly",void 0);_.q([_.fr("ytd-button-renderer"),_.x("design:type",_.tU)],rG.prototype,"button",void 0);
_.q([_.b("data","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],rG.prototype,"currentState",null);_.q([_.Gm("currentButtonStateRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rG.prototype,"updateButtonActiveState",null);_.q([_.b("currentState"),_.x("design:type",Object),_.x("design:paramtypes",[])],rG.prototype,"currentButtonStateRenderer",null);
_.q([_.h({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],rG);
_.L(rG,"ytd-playlist-loop-button-renderer",function(){if(CpY!==void 0)return CpY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return CpY=D},
{mode:1});var z$7;var Sv4=_.fX("DOWNLOAD",{},"Download"),Tc1=_.fX("DOWNLOADING",{},"Downloading"),j7V=_.fX("DOWNLOADED",{},"Downloaded"),ImU=_.fX("RETRY",{},"Retry"),wG=function(){var D=_.N.apply(this,arguments)||this;D.forceIconButton=!1;D.forceIconOnly=!1;D.overrides=!1;D.buttonTooltipPosition=!1;D.styleActionButton=!1;D.disableTextTransform=!1;D.downloadProgress=0;D.isDownloadComplete=!1;D.isHidden=!0;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return D};
_.n(wG,_.N);_.u=wG.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.dataChanged=function(){var D;(D=this.data)!=null&&D.text||(D=_.mW(_.Dl().getState(),this.videoId),this.updateButtonState(D))};
_.u.computeVideoId=function(D){return D};
_.u.showHideButton=function(){this.updateButtonVisibility()};
_.u.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;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};
_.u.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.u.updateButtonState=function(D){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Tc1||!_.rL(D))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=Sv4;var Y="OFFLINE_DOWNLOAD";var R="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":D=ImU;Y="OFFLINE_DOWNLOAD";R="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":D=j7V;Y="OFFLINE_PIN";R="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":D=
Tc1;Y="OFFLINE_DOWNLOADING_ZERO";R="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":D=ImU;Y="OFFLINE_DOWNLOAD";R="ACTION_RETRY";break;default:D=Sv4,Y="OFFLINE_DOWNLOAD",R="ACTION_ADD"}this.isVideoDeletedByUser&&(D=Sv4,Y="OFFLINE_DOWNLOAD",R="ACTION_ADD");var Z=Object.assign({},this.data);Z.text=_.i0(D);Z.tooltip=D;Z.icon={iconType:Y};Z.size="SIZE_DEFAULT";Z.style="STYLE_DEFAULT";_.A(Z.command,_.Vi)&&(_.A(Z.command,_.Vi).action=R);this.set("data",Z)}};
_.u.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?D="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var Y;D!==((Y=this.data.icon)==null?void 0:Y.iconType)&&(Y=Object.assign({},this.data),Y.text=_.i0(Tc1),Y.tooltip=Tc1,Y.icon={iconType:D},_.A(Y.command,_.Vi)&&(_.A(Y.command,_.Vi).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Y))}};
wG.prototype.updateProgress=wG.prototype.updateProgress;wG.prototype.onTransferStateChanged=wG.prototype.onTransferStateChanged;wG.prototype.showHideButton=wG.prototype.showHideButton;wG.prototype.dataChanged=wG.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],wG.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wG.prototype,"forceIconButton",void 0);
_.q([_.y(),_.x("design:type",Object)],wG.prototype,"forceIconOnly",void 0);_.q([_.y(),_.x("design:type",Object)],wG.prototype,"overrides",void 0);_.q([_.y(),_.x("design:type",Object)],wG.prototype,"buttonTooltipPosition",void 0);_.q([_.y(),_.x("design:type",Object)],wG.prototype,"styleActionButton",void 0);_.q([_.y(),_.x("design:type",Object)],wG.prototype,"disableTextTransform",void 0);
_.q([_.y({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.x("design:type",String)],wG.prototype,"videoId",void 0);_.q([_.y(),_.x("design:type",Object)],wG.prototype,"data",void 0);_.q([_.y({selector:HU,selectorArgs:["videoId"]}),_.x("design:type",Object)],wG.prototype,"downloadProgress",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],wG.prototype,"isDownloadComplete",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],wG.prototype,"isHidden",void 0);_.q([_.y({selector:_.mW,selectorArgs:["videoId"]}),_.x("design:type",String)],wG.prototype,"transferState",void 0);_.q([_.y({selector:_.akr,selectorArgs:["videoId"]}),_.x("design:type",Object)],wG.prototype,"isVideoDeletedByUser",void 0);_.q([_.y({selector:RxU,selectorArgs:["videoId"]}),_.x("design:type",Object)],wG.prototype,"offlineabilityState",void 0);
_.q([_.y({value:!0}),_.x("design:type",Boolean)],wG.prototype,"showTooltips",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],wG.prototype,"sendCommandWhenDisabled",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],wG.prototype,"disabled",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wG.prototype,"dataChanged",null);
_.q([_.rd("offlineabilityState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wG.prototype,"showHideButton",null);_.q([_.rd("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wG.prototype,"onTransferStateChanged",null);_.q([_.rd("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wG.prototype,"updateProgress",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],wG);
_.L(wG,"ytd-download-button-renderer",function(){if(z$7!==void 0)return z$7;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return z$7=D},{mode:2});var FYz;var GML,Vpz=function(){if(GML!==void 0)return GML;var D=document.createElement("template");_.w(D,'\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 GML=D};var fmU=_.f("web_button_rework")&&_.ks("BUTTON_REWORK")||_.f("web_button_rework_with_live"),e$U=_.ZH("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,$b=function(){var D=_.N.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.alignByText=!1;D.isShorts=!1;D.animatedText=!1;D.shouldAnimate=!1;D.JSC$14416_browserSupportsAnimation=_.f("web_supports_animations_api");D.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};D.onTap=function(){var Y;if((Y=D.data)==null||!Y.defaultNavigationEndpoint){var R;Y=!((R=D.data)==null?0:R.isToggled);var Z;if((Z=D.data)==null||!Z.preventAutoToggle){D.shouldAnimate=!1;D.disableTextUpdateJobId&&_.yc.cancelJob(D.disableTextUpdateJobId);D.disableTextUpdateJobId=_.yc.addLowPriorityJob(function(){D.disableTextUpdateJobId=void 0},e$U);
var t;D.set("data.isToggled",!((t=D.data)==null?0:t.isToggled));R=D.getInnertubeIcon();Z={toggled:Y,actions:{}};R&&(Z.actions[R.toLowerCase()]=Y);_.MX(D.hostElement,"yt-toggle-button",Z)}}};
return D};
_.n($b,_.N);_.u=$b.prototype;_.u.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.yc.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.toggle=function(D){var Y;this.set("data.isToggled",D!==void 0?D:!((Y=this.data)==null?0:Y.isToggled))};
_.u.handleUpdateToggleButtonStateCommand=function(D){if(this.data){D=_.A(D,ssz);var Y,R,Z,t=(Y=this.data)==null?void 0:(R=Y.toggleButtonSupportedData)==null?void 0:(Z=R.toggleButtonIdData)==null?void 0:Z.id;t&&D&&t===(D==null?void 0:D.buttonId)&&this.set("data.isToggled",D.toggled)}};
_.u.handleUpdateToggleButtonTextAction=function(D){if(this.data){D=_.A(D,gZz);var Y,R,Z,t=(Y=this.data)==null?void 0:(R=Y.toggleButtonSupportedData)==null?void 0:(Z=R.toggleButtonIdData)==null?void 0:Z.id;t&&D&&t===(D==null?void 0:D.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=D.defaultNumericalValue,this.set("data.defaultText",D.defaultText),this.set("data.toggledText",D.toggledText),this.shouldAnimate=!1)}};
_.u.getInnertubeIcon=function(){var D=this.data;if(D){var Y,R,Z=((Y=D.defaultIcon)==null?0:Y.iconType)?(R=D.defaultIcon)==null?void 0:R.iconType:null,t,X;Y=((t=D.toggledIcon)==null?0:t.iconType)?(X=D.toggledIcon)==null?void 0:X.iconType:Z;return D.isToggled?Y:Z}};
_.u.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.YF.Object.defineProperties($b.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D={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$14416_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var Y=D.renderer;var R=D.element;var Z=D.toggled;var t=D.onTapCallback;var X=D.commandClientArgs;var M=D.overrides;var W=D.forceIcon;var z=D.forceModernIconButton;var I=D.forceDisabled;var F=D.useAnimatedText;var G=D.animatedTextProps;D=qZM(Y,Z);W=!Y.defaultIcon||!W&&Y.defaultText?Y.defaultIcon?"leading":void 0:z?"icon-only":"icon-only-40";W==="icon-only-40"&&(D.type="text");var V;z=Object;var e=z.assign,r;a:switch((r=
Y.style)==null?void 0:r.styleType){case "STYLE_COMPACT_GRAY":r={size:"S"};break a;default:r={size:"M"}}var l=!!Z;var U=(U=Z&&Y.toggledText||Y.defaultText)?_.K8(U):void 0;F?(F=_.OM(Z&&Y.toggledText||Y.defaultText))&&G&&!isNaN(Number(G.numberValue))?(G.numberText=F,Z&&(G.numberValue+=1),F=G):F=void 0:F=void 0;var K,H,c,Q;var E=(G=((H=Z?Y.toggledAccessibilityData||((E=Y.toggledText)==null?void 0:E.accessibility):Y.accessibilityData||((K=Y.defaultText)==null?void 0:K.accessibility))==null?void 0:(c=H.accessibilityData)==
null?void 0:c.label)||((Q=Y.accessibility)==null?void 0:Q.label))?G:_.OM(Z&&Y.toggledText||Y.defaultText);I=I===void 0?Y.isDisabled:I;R=mOM(Y,Z,t,R,X);Z=LGU(Y,Z);Z!=null&&Z.length?(Z=_.PL({innertubeCommand:bpj(Z),forceNewState:!0}),Z=Qu(Z)?Z:void 0):Z=void 0;Y=e.call(z,{},D,r,{iconPosition:W},M,{focused:!1,toggled:l,toggleable:!0,formattedButtonText:U,animatedTextProps:F,accessibilityLabel:E,disabled:I,onTap:R,aTagConfig:Z},OZU((V=Y.colorData)==null?void 0:V.basicColorPaletteData));Y.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(Y.type="filled");return Y}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.getInnertubeIcon();if(D)return _.IT(D)}}});
$b.prototype.resetAnimation=$b.prototype.resetAnimation;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],$b.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],$b.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],$b.prototype,"isPressed",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"forceIconButton",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"forceIconOnly",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"forceModernIconButton",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"alignByText",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"overrides",void 0);
_.q([_.y(),_.x("design:type",Boolean)],$b.prototype,"disabled",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"isShorts",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"buttonTooltipPosition",void 0);_.q([_.y(),_.x("design:type",Object)],$b.prototype,"animatedText",void 0);_.q([_.y(),_.x("design:type",String)],$b.prototype,"textNumberValue",void 0);_.q([_.y({computed:"computeTooltip(data, data.isToggled)"}),_.x("design:type",Object)],$b.prototype,"tooltip",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$b.prototype,"resetAnimation",null);_.q([_.b("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.x("design:type",Object),_.x("design:paramtypes",[])],$b.prototype,"computedButtonShape",null);_.q([_.b("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],$b.prototype,"computedIcon",null);
_.q([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],$b);fmU&&_.L($b,"ytd-toggle-button-renderer",Vpz,{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var qV=_.RT(function(D){function Y(I){var F;return _.C(function(G){if(G.nextAddress==1)return(F=!xOS(I,W())||!W().enabled)?G.jumpTo(2):G.yield(E4U(),3);G.nextAddress!=2&&(F=G.yieldResult);if(F)return G.return();R();setTimeout(function(){M(!1)},1500);
_.V9(G)})}
function R(){setTimeout(function(){M(!0);var I;(I=Z.lottieEl)==null||I.goToAndPlay(0)},150)}
var Z=_.FU(),t=_.a(_.ae(!1,void 0,"JJXzp")),X=t.next().value,M=t.next().value,W=_.DX(D.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.$s(function(){var I,F;((I=D.settings)==null?void 0:(F=I.call(D))==null?void 0:F.uniqueId)==="this is not intended behavior"&&_.Jk(new _.AT("Smartimation Settings is undefined"))});
_.r2(function(){W().experimentEnabled&&(W().enabled?POM(Y):(M(!1),Qqj(Y)),_.w2(function(){Qqj(Y)}))},"FRiAUe");
_.r2(function(){W().timings.join("");W().experimentEnabled&&(B6i(W()),_.w2(function(){pWj(W())}))},"VKiJOe");
var z=_.Si(function(){var I=Z,F=W().uniqueId+"-border",G,V;var e="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((V=(G=_.DH().resolve(_.cD(_.O4)))==null?void 0:G())!=null&&V?"dark":"light")+"_v2.json";return{animationRef:I,animationConfig:{name:F,autoplay:!1,loop:!1,path:e}}},void 0,"tgykab");
t={};return _.S("yt-smartimation",{class:_.e7(D.className,"smartimation",(t["smartimation--experiment-enabled"]=function(){return W().experimentEnabled},t["smartimation--active-border"]=X,t["smartimation--enable-masking"]=g4U(),t))},_.S(_.T,{cond:function(){return W().experimentEnabled},
then:function(){return _.S("div",{class:"smartimation__border"},_.S(_.fO,{className:"smartimation__border-gradient",data:z,animationName:function(){return z().animationConfig.name}}))}}),_.S("div",{class:"smartimation__content"},D.children))},"E");
qV.idomCompat=!0;_.at(qV,"yt-smartimation",{props:{className:_.cs,settings:_.cs}});var vV=function(){var D=_.N.apply(this,arguments)||this;D.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};D.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};D.shouldEnableSmartimation=!1;return D};
_.n(vV,_.N);vV.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
vV.prototype.onDataChanged=function(){var D,Y;this.shouldEnableSmartimation=(((D=this.data)==null?void 0:(Y=D.timedAnimationData)==null?void 0:Y.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
vV.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var D=_.A(this.data.likeButton,_.Hx),Y=_.A(this.data.dislikeButton,_.Hx);return!!((D==null?0:D.isToggled)||(Y==null?0:Y.isToggled))};
vV.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]]"}}}}}};
_.YF.Object.defineProperties(vV.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=((D=this.data)==null?void 0:(Y=D.timedAnimationData)==null?void 0:Y.animationTiming)||[];return{uniqueId:"like-dislike",timings:R,enabled:this.shouldEnableSmartimation,experimentEnabled:R.length>0}}}});
vV.prototype.onDataChanged=vV.prototype.onDataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],vV.prototype,"likeButtonOverride",void 0);_.q([_.y(),_.x("design:type",Object)],vV.prototype,"dislikeButtonOverride",void 0);
_.q([_.b("shouldEnableSmartimation"),_.x("design:type",Object),_.x("design:paramtypes",[])],vV.prototype,"smartimationSettings",null);_.q([_.Gm("data"),_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vV.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],vV);
_.L(vV,"ytd-segmented-like-dislike-button-renderer",function(){if(FYz!==void 0)return FYz;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return FYz=D},{mode:1});var AWb;var nVz;(nVz=document.body)==null||nVz.setAttribute("rounded-container","");var rW7={};rW7.YtToggleButtonBehavior=[_.Va.YtActionHandlerBehavior,$t.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 D=this.data.isToggled;if(!this.isModal_(D)){if(!this.data.preventAutoToggle){this.toggle();var Y={toggled:this.data.isToggled,actions:{}};Y.actions[this.buttonIcon]=this.data.isToggled;_.MX(this.hostElement,"yt-toggle-button",Y)}Y=this.data.defaultServiceEndpoint||null;var R=this.data.toggledServiceEndpoint||null;if(Y&&R||Y&&this.data.preventAutoToggle)D=D?R:Y,Y=this.disableCommandHandlerOverride,_.f("killswitch_toggle_button_behavior_resolve_command")||Y?_.zA(this.hostElement,
[D]):_.Vu(D,this.hostElement),_.MX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:D})}},
stateChanged_:function(){var D=this.data;if(D){var Y=D.isToggled;this._setEndpoint(this.computeEndpoint_(D));this._setServiceEndpoint(this.computeServiceEndpoint_(D));this._setButtonIcon(this.computeButtonIcon_(D,Y));this._setButtonText(this.computeButtonText_(D,Y));this._setButtonAccessibility(this.computeAccessibility_(D,Y));this._setButtonTooltip(this.computeTooltip_(D,Y));this._setButtonClass(this.computeButtonClass_(D,Y));this._setIconPositionType(this.computeIconPositionType_(D));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=Y):this.elements_.button.setAttribute("aria-pressed",Y));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=Y)}},
shouldSetIconActiveState_:function(){return _.f("kevlar_system_icons")},
toggle:function(D){this.set("data.isToggled",D!==void 0?D:!this.data.isToggled);_.f("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(D){if(D){var Y,R;return!!((Y=this.data)==null?0:(R=Y.toggledServiceEndpoint)==null?0:R.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(D){return D&&D.defaultNavigationEndpoint||null},
computeButtonIcon_:function(D,Y){var R=D&&D.defaultIcon?_.IT(D.defaultIcon.iconType):null;D=D&&D.toggledIcon?_.IT(D.toggledIcon.iconType):R;return Y?D:R},
handleUpdateToggleButtonStateCommand_:function(D){D=D.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&this.toggle(D.toggled)},
computeButtonText_:function(D,Y){return D?Y&&D.toggledText||D.defaultText||null:null},
computeAccessibility_:function(D,Y){return D?(Y?this.get("toggledAccessibilityData.accessibilityData",D):this.get("accessibilityData.accessibilityData",D))||D.accessibility||null:null},
computeTooltip_:function(D,Y){return D?Y&&D.toggledTooltip||D.defaultTooltip||null:null},
computeButtonClass_:function(D,Y){if(!D)return"";var R="",Z=D.toggledStyle||D.style;if(Y=Y?Z:D.style){Y.styleType&&(Y=Y.styleType);try{R+=Y.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.kN(t,Y,typeof Y),_.Jk(t)}}if(D=D.size){D.sizeType&&(D=D.sizeType);try{R+=D.toLowerCase().replace(/_/g,"-")+" "}catch(t){_.kN(t,D,typeof D),_.Jk(t)}}return R.trim()},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeServiceEndpoint_:function(D){var Y=D&&D.serviceEndpoint,R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Y?Y:R&&D.command?D.command:null},
handleUpdateToggleButtonTextAction_:function(D){D=D.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&(this.set("data.defaultText",D.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",D.toggledText),this.notifyPath("data.toggledText"))}}];_.UD("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var wb7=_.f("web_button_rework")&&_.ks("BUTTON_REWORK")||_.f("web_button_rework_with_live"),oX=function(){var D=_.N.apply(this,arguments)||this;D.systemIcons=_.f("kevlar_system_icons");D.roundedContainer=!0;return D};
_.n(oX,_.N);oX.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
oX.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var D=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var Y={toggled:!!this.data.isToggled,actions:{}};Y.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var R,Z;Y.actions.playlistId=(R=this.data.defaultServiceEndpoint)==null?void 0:(Z=R.playlistEditEndpoint)==null?void 0:Z.playlistId;_.MX(this.hostElement,"yt-toggle-button",Y)}(D=D?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(D)}};
oX.prototype.onYtNavigate=function(D){var Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);Y&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Y))};
_.YF.Object.defineProperties(oX,{template:{configurable:!0,enumerable:!0,get:function(){if(AWb===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);AWb=D}D=AWb;return D}}});
oX.prototype.onYtNavigate=oX.prototype.onYtNavigate;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],oX.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],oX.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(rW7.YtToggleButtonBehavior),_.x("design:type",Object)],oX.prototype,"ytToggleButtonBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],oX.prototype,"data",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],oX.prototype,"showTooltips",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oX.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oX.prototype,"roundedContainer",void 0);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],oX.prototype,"onYtNavigate",null);
_.q([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:wb7})],oX);var $m_;_.b6=new _.R6("PANEL_CONTROLLER_TOKEN");_.y$=new _.R6("SHEET_CONTROLLER_TOKEN");_.Nf=new _.R6("DIALOG_CONTROLLER_TOKEN");$m_=new _.R6("DIALOG_CONTAINER_TOKEN");var tpU=_.fX("DOWNLOAD",{},"Download"),s7r=_.fX("DOWNLOADING",{},"Downloading"),Xbi=_.fX("DOWNLOADED",{},"Downloaded"),uMo=_.fX("RETRY",{},"Retry");var Mpl=[],Cpj=!1;var vVE=_.RT(function(D){var Y=FYl,R=function(){return""},Z=Svo(D.data),t=TcS(D.data),X=j7U(D.data),M=Im$(D.data);
Y=function(){var W=D.data(),z=R$l(W,Z(),t(),X(),M()),I=!!W.videoId,F=z.text;return{title:I?F:void 0,tooltip:I?void 0:F,accessibilityText:F,onTap:z.onTap,iconName:z.iconType,style:W.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:z.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:W.buttonSize}};
R={};R=_.e7("ytDownloadButtonViewModelHost",(R.ytDownloadButtonViewModelIsHidden=function(){var W=D.data(),z=M();return W.playlistId||z()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||z()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},R));
return _.S("download-button-view-model",{class:R},_.S(_.TV,{data:Y}))},"F");
vVE.idomCompat=!0;var lmb=new _.R6("RENDERER_LOGGER_TOKEN");var GMM=new _.R6("RENDERER_STAMPER_OPTIONS_TOKEN");var wq;_.rq=new vC7;wq=new Map;var ber="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Ncj=["notificationTextRenderer","notificationMultiActionRenderer"],
yWj="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),oVn=Vpl(function(D){return _.v_(D==null?void 0:D.targetId)}).useUpdatableData;var vVn=0;_.vK.debugName="EjJbCe";var oVE=_.RT(function(D){var Y=D.data;D=D.className;_.rf(function(){Y().formId||_.Nb(Error("zh"))});
var R=function(){return{state:Y().isDisabled?"disabled":"active"}};
return _.S("yt-submit-button-view-model",{class:_.e7("ytSubmitButtonViewModelHost",D)},_.S(_.vK,{data:function(){return Y().button}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
buttonOverrides:R})}}))},"G");var yWY=_.RT(function(D){var Y=D.backgroundLottieRef;var R=D.foregroundLottieRef;var Z=D.children;var t=D.wrapperClass;var X=D.disableAnimation;D=function(){return(_.f("web_animated_actions")||_.f("web_animated_actions_v2"))&&!(X==null?0:X())};
return _.S("yt-animated-action",{class:_.e7("animated-action__container",t)},_.S("div",{class:"animated-action__content-with-background"},_.S(_.T,{cond:D,then:function(){return _.S(bez,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:Y==null?void 0:Y(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(JW$()?"dark":"light")+"_v5.json"}}}})}}),Z),_.S(_.T,{cond:D,
then:function(){return _.S(bez,{lottiePlayerProps:function(){return{animationRef:R==null?void 0:R(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(JW$()?"dark":"light")+"_v4.json"}}}})}}))},"H");
yWY.idomCompat=!0;var bez=_.RT(function(D){var Y=D.wrapperClass;var R=D.lottieClass;var Z=D.lottiePlayerProps;return _.S("div",{class:_.e7("animated-action__lottie",Y),"aria-hidden":"true"},_.S(_.fO,{className:R,data:Z,animationName:function(){return Z().animationConfig.name}}))},"I");var kMj={isOpen:!1};var KY9={isAllowed:!1};var LYn={errorMessage:"",title:"",privacy:"",isDisabled:!0};var qvl={isOpen:!1};var xmn={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var NcY={response:void 0};var Q7n=function(D,Y){D=D===void 0?NcY:D;switch(Y.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},D,{response:Y.payload});default:return D}};var lmD={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var BcU=function(D,Y){D=D===void 0?lmD:D;switch(Y.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},D,{nextDisabled:Y.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},D,{nextCommand:Y.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},D,{footerSubmissionData:Y.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},D,{isImpersonationValid:Y.payload});default:return D}};var JWU={reportFormData:void 0,reportDetailsFormData:void 0};var pbj=function(D,Y){D=D===void 0?JWU:D;switch(Y.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportFormData:Y.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportDetailsFormData:Y.payload});default:return D}};var kMY=void 0;_.f("mweb_enable_redux_store_on_demand")||(kMY=new cU(EVU()));var l6=_.f("enable_web_delhi_icons");var UmU=_.RT(function(D){D=_.YC(D,{themeOverride:void 0,animationRef:{}});var Y=D.animatedIconType,R=D.active,Z=D.themeOverride,t=D.animationRef;D=D.staticIconFn;var X=_.a(_.ae(void 0,void 0,"P5a72b")),M=X.next().value,W=X.next().value,z=function(){a:{var U=Y();var K=Z==null?void 0:Z();var H;K=(K==null?void 0:K.useDarkTheme)||((H=_.DH().resolve(_.cD(_.O4)))==null?void 0:H());switch(U){case "LIKE":kMY||(kMY=new cU(EVU()));U=(U=kWU(kMY.getState()))&&U.animationLightUrl&&U.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:K?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:K?U.animationDarkUrl:U.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(U){K=U;break a}K="animated_like_icon_"+(K?"dark":"light")+"_"+(l6?"v5":"v4");K={lottiePlayerProps:{animationConfig:{name:K,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+K+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(l6?" animated-like-icon-delhi":"")}}},totalFrames:l6?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":K={lottiePlayerProps:{animationConfig:{name:K?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(K?"dark":"light")+(l6?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(l6?" animated-subscribe-icon-delhi":"")}}},totalFrames:l6?120:79,lazyLoad:!1};break a}K=
void 0}return K},I=function(){var U,K;
return(K=(U=z())==null?void 0:U.lottiePlayerProps.animationConfig.name)!=null?K:""},F=function(){if(z()){var U=z().lottiePlayerProps.animationConfig.path;
return lq.get(U)||M()}};
X=_.a(_.ae(!1,void 0,"h6xR3c"));var G=X.next().value;X=X.next().value;var V=dmi(X),e=function(){var U=z(),K,H,c;return(c=U==null?void 0:(K=U.lottiePlayerProps.animationConfig)==null?void 0:(H=K.rendererSettings)==null?void 0:H.className)!=null?c:""},r=void 0,l=void 0;
_.r2(function(){var U=z(),K=I(),H=F(),c=G(),Q=R();if(U&&(l!==K&&(l=K,r=Q,K=t(),V.animationConfig=U.lottiePlayerProps.animationConfig,V.animationRef=K,H&&(V.animationConfig.animationData=H,V.animationConfig.path=void 0),K=U.lottiePlayerProps.animationConfig.path,!lq.get(K)&&U.lazyLoad&&K&&gVi(K,W)),!(c||U.lazyLoad&&!H))){if(H=!t().lottieEl)Q?(c=U.totalFrames,V.animationConfig.initialSegment=[c-1,c]):V.animationConfig.initialSegment=void 0;if(r!==Q&&!H)if(H=t(),Q){var E;(E=H.lottieEl)==null||E.playSegments([0,
U.totalFrames],!0)}else{var B;(B=H.lottieEl)==null||B.playSegments([0,1],!0)}r=Q}},"YCYOCe");
return _.S("animated-icon",{class:"ytAnimatedIconHost"},_.S(_.T,{cond:function(){var U,K;return!((U=z())==null||!U.lottiePlayerProps.animationConfig.path||((K=z())==null?0:K.lazyLoad)&&!F()||G())},
then:function(){return _.S(_.fO,{data:V,animationName:I,className:e,animationRef:t})},
else:D}))},"J");_.J7=_.RT(function(D){var Y=_.dI("yt-subscribe-button-view-model"),R=_.dI("div"),Z=_.dI("div"),t=_.FU(),X=_.FU(),M=_.FU(),W=_.Ax(yAU,function(){return D.data().stateEntityStoreKey}),z=_.Ax(N6y,function(){var co,GE;
return(GE=(co=D.data().notificationStateEntityStoreKeys)==null?void 0:co.subsNotificationStateKey)!=null?GE:""}),I=function(){return!D.data().enableSubscribeButtonPostClickAnimation},F=_.a(_.ae(0,void 0,"eTsWvc")),G=F.next().value,V=F.next().value;
F=_.a(_.ae(0,void 0,"dniDQ"));var e=F.next().value,r=F.next().value;F=_.a(_.ae(!1,void 0,"EluPic"));var l=F.next().value,U=F.next().value;F=_.a(_.ae(!1,void 0,"r0jnre"));var K=F.next().value,H=F.next().value;F=_.a(_.ae(!1,void 0,"KMvoQe"));var c=F.next().value,Q=F.next().value,E;F=_.a(_.ae(!1,void 0,"aSENce"));var B=F.next().value,O=F.next().value,Wo=function(){H(!0);_.NP(_.yc,function(){H(!1)},1500)};
_.r2(function(){var co=K();uM(function(){co&&!I()&&W()&&X9b(t,X,M)})},"LgmX6c");
_.r2(function(){var co=W();uM(function(){if(!I()&&co){var GE;((GE=D.animateWidth)==null?0:GE.call(D))&&sfn(Y.value,!!co.subscribed,G(),e());var TE,yV;((TE=E)==null?0:TE.subscribed)||!co.subscribed||co.key!==((yV=E)==null?void 0:yV.key)||Wo();E=co}})},"iZzoUb");
F=_.Si(function(){var co,GE,TE,yV=D.data(),vu=!((co=W())==null||!co.subscribed);co=!((GE=D.isOverlay)==null||!GE.call(D));GE=l()?Y:void 0;var dz=(TE=z())==null?void 0:TE.state;TE=B();tlU(yV,dz);return cWU({model:yV,subscribed:vu,isOverlay:co,element:GE,notificationState:dz,disableTextEllipsis:!0,focused:TE})},void 0,"yGQGue");
var Sb=function(){var co;if(!I()&&((co=D.animateWidth)==null?0:co.call(D))&&(R==null?0:R.value)&&(Z==null?0:Z.value)&&!c()){co=W();var GE=_.a((co==null?0:co.subscribed)?[R,Z]:[Z,R]),TE=GE.next().value;GE=GE.next().value;TE=Math.ceil(TE.value.getBoundingClientRect().width);GE=Math.ceil(GE.value.getBoundingClientRect().width);V(TE);r(GE);sfn(Y.value,!(co==null||!co.subscribed),TE,GE);Q(!0)}},VU=_.F4(function(co){Sb();
var GE=W();GE&&(co.detail.endpoint.subscribeEndpoint||co.detail.endpoint.unsubscribeEndpoint)&&Ytr(Y.value,!GE.subscribed,GE)}),AS=function(){var co=_.DH().resolve(_.cD(_.MQ));
co&&O(co.isKeyBoardInUse())},nM=function(){O(!1)};
_.gI("yt-player-subscribe",function(co){var GE=W();GE&&co===D.data().channelId&&Ytr(Y.value,!0,GE)});
_.gI("yt-player-unsubscribe",function(co){var GE=W();GE&&co===D.data().channelId&&Ytr(Y.value,!1,GE)});
_.gI("yt-update-subscribe-button-action",function(co){co=_.A(co,xZV);var GE=W();GE&&co&&co.channelId===D.data().channelId&&Ytr(Y.value,!!co.subscribed,GE)});
_.$s(function(){Y.value&&(Y.value.addEventListener("focusin",AS),Y.value.addEventListener("focusout",nM));var co=_.Ak(_.yc,function(){Sb()});
U(!0);_.w2(function(){_.yc.cancelJob(co);Y.value&&(Y.value.removeEventListener("focusin",AS),Y.value.removeEventListener("focusout",nM))})});
var Ho=function(){var co,GE,TE;if(TE=!((co=W())==null||!co.subscribed))co=!!D.data().disableNotificationBell,TE=(GE=z())==null?void 0:GE.state,TE=!co&&!!TE;return TE},KM=function(){var co;
return!((co=W())==null?0:co.subscribed)},Xb=function(){var co,GE;
if(GE=KM()){GE=!!D.data().disableNotificationBell;var TE=(co=z())==null?void 0:co.state;GE=!GE&&!!TE}return GE},kE={},SD={};
return _.S("yt-subscribe-button-view-model",{class:_.e7(D.className,"yt-subscribe-button-view-model-wiz",(kE["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var co,GE;return!((co=W())==null||!co.subscribed)&&((GE=D.animateWidth)==null?void 0:GE.call(D))&&K()},kE["yt-subscribe-button-view-model-wiz--hidden"]=function(){var co;
return!((co=W())==null?0:co.subscribed)&&D.data().hideWhenUnsubscribed},kE)),
el:Y,"on:yt-service-request-sent":VU},_.S(yWY,{backgroundLottieRef:t,foregroundLottieRef:X,wrapperClass:_.e7("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(SD["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var co;return((co=D.animateWidth)==null?void 0:co.call(D))&&K()},SD["yt-subscribe-button-view-model-wiz__static-width"]=function(){var co;
return!((co=D.animateWidth)==null?0:co.call(D))},SD)),
disableAnimation:I},_.S("div",{el:R,class:"yt-subscribe-button-view-model-wiz__container"},_.S(_.Sn,{data:F,icon:function(){return _.S(_.T,{cond:Ho,then:function(){var co=function(){var GE;return DG5((GE=z())==null?void 0:GE.state)};
return _.S(_.T,{cond:function(){return I()||co()!=="NOTIFICATIONS_NONE"},
then:function(){return _.S(_.nB,{icon:co})},
else:function(){return _.S(UmU,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:M})}})}})},
secondaryIconName:function(){return Ho()?"EXPAND":void 0}}))),_.S("div",{el:Z,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.S(_.T,{cond:function(){var co;return((co=D.animateWidth)==null?void 0:co.call(D))&&!I()&&!c()},
then:function(){return _.S(_.Sn,{data:_.Si(function(){var co;return cWU({model:D.data(),subscribed:KM(),isOverlay:!((co=D.isOverlay)==null||!co.call(D)),element:Y,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var co;return Xb()?DG5((co=z())==null?void 0:co.state):void 0},
secondaryIconName:function(){return Xb()?"EXPAND":void 0}})}})))},"K");
_.J7.idomCompat=!0;var KYU=_.RT(function(D){var Y=D.data;var R=_.Ax(yAU,function(){return Y().subscriptionStateEntityKey});
return _.S(_.T,{cond:function(){var Z=Y(),t=R();return!Z.hideWhenUnsubscribed||(t==null?0:t.subscribed)?_.A(Y().button,_.QX):void 0},
then:function(Z){return _.S("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.S(_.TV,{data:Z,buttonOverrides:function(){return{toggled:!0}}}))}})},"L");
KYU.idomCompat=!0;var h$7,kb;h$7=_.RT(function(D){return _.S(_.vK,{data:function(){return D.actionRow().actions}},{buttonViewModel:function(Y){var R=Y.data;
return _.S(kb,{isRow:D.isRow,isIconOnlyButton:function(){return utn(R())},
useIntrinsicWidth:D.useIntrinsicWidth},_.S(_.TV,{data:R}))},
subscribeButtonViewModel:function(Y){return _.S(kb,{isRow:D.isRow},_.S(_.J7,{data:Y.data,isOverlay:!1,animateWidth:function(){return!D.isRow()}}))},
downloadButtonViewModel:function(Y){var R=Y.data;return _.S(kb,{isRow:D.isRow,isIconOnlyButton:function(){return!!R().playlistId}},_.S(vVE,{data:R}))},
submitButtonViewModel:function(Y){var R=Y.data;return _.S(kb,{isRow:D.isRow,isIconOnlyButton:function(){var Z=R();return utn(_.A(Z==null?void 0:Z.button,_.QX))}},_.S(oVE,{data:R}))},
toggleButtonViewModel:function(Y){var R=Y.data;return _.S(kb,{isRow:D.isRow,isIconOnlyButton:function(){var Z=R();return utn(_.A(Z.isToggled?Z.toggledButtonViewModel:Z.defaultButtonViewModel,_.QX))}},_.S(_.JV,{data:R}))},
subscribePlusButtonViewModel:function(Y){return _.S(kb,{isRow:D.isRow},_.S(KYU,{data:Y.data}))}})},"M");
kb=_.RT(function(D){var Y={};return _.S("div",{class:_.e7("yt-flexible-actions-view-model-wiz__action",(Y["yt-flexible-actions-view-model-wiz__action--row-action"]=D.isRow,Y["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=D.useIntrinsicWidth,Y["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,Y["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=D.isIconOnlyButton,Y))},D.children)},"N");
_.UX=_.RT(function(D){var Y=function(){var Z;return((Z=D.layout)==null?void 0:Z.call(D))===1},R={};
return _.S("yt-flexible-actions-view-model",{class:_.e7("yt-flexible-actions-view-model-wiz",D.className,(R["yt-flexible-actions-view-model-wiz--inline"]=function(){return!Y()},R["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return D.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},R))},_.S(_.G6,{each:function(){return D.data().actionsRows||[]}},function(Z){return _.S(_.T,{cond:Y,
then:function(){return _.S("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.S(h$7,{actionRow:Z,isRow:Y,useIntrinsicWidth:function(){return!!D.data().respectActionIntrinsicWidth}}))},
else:function(){return _.S(h$7,{actionRow:Z,isRow:Y})}})}))},"O");_.at(_.UX,"yt-flexible-actions-view-model",{props:{data:_.cs,layout:_.cs,justifyContentOverride:_.cs,className:_.cs}});_.KV=_.RT(function(D){var Y=_.Ax(HN,function(){var t;return(t=D.data().dislikeEntityKey)!=null?t:""}),R=_.Si(function(){var t=Y();
return t?t.likeStatus==="DISLIKE":_.A(D.data().toggleButtonViewModel,_.py).isToggled},void 0,"B2tgKf"),Z=_.Si(function(){return Object.assign({},_.A(D.data().toggleButtonViewModel,_.py),{isToggled:R()})},void 0,"otfIbf");
return _.S("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.S(_.JV,{data:Z,buttonShapeOverrides:D.buttonShapeOverrideables,onToggle:function(t){var X=Y();X&&t!==(X.likeStatus==="DISLIKE")&&X.key&&_.cE(_.k6("likeStatusEntity",X.key,{likeStatus:t?"DISLIKE":"INDIFFERENT",hadUserInteraction:t}))}}))},"P");
_.KV.idomCompat=!0;_.h7=_.RT(function(D){var Y=_.f("web_supports_animations_api"),R=sD(function(V){var e=I();if(!V){var r,l;return{numberText:(l=e==null?void 0:(r=e.likeCountIfIndifferent)==null?void 0:r.content)!=null?l:"",numberValue:Number(e==null?void 0:e.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var U;r=(e==null?void 0:(U=e.likeCountIfIndifferent)==null?void 0:U.content)!==V.numberText;if(W()||!r)return V;var K;return{numberText:(e==null?void 0:(K=e.likeCountIfIndifferent)==null?void 0:K.content)||
"",numberValue:Number(e==null?void 0:e.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!e}}),Z=sD(function(V){var e=I();
if(!V){var r,l;return{numberText:(l=e==null?void 0:(r=e.likeCountIfLiked)==null?void 0:r.content)!=null?l:"",numberValue:Number(e==null?void 0:e.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var U;r=(e==null?void 0:(U=e.likeCountIfIndifferent)==null?void 0:U.content)!==V.numberText;if(W()||!r)return V;var K;return{numberText:(e==null?void 0:(K=e.likeCountIfLiked)==null?void 0:K.content)||"",numberValue:Number(e==null?void 0:e.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!e}}),t=_.a(_.ae(void 0,
void 0,"xYSlUe")),X=t.next().value,M=t.next().value,W=X,z=_.Ax(HN,function(){var V,e;
return(e=(V=D.data())==null?void 0:V.likeStatusEntityKey)!=null?e:""}),I=_.Ax(a5r,function(){var V,e;
return((V=D.likeCountEntity)==null?void 0:(e=V.call(D))==null?void 0:e.key)||""}),F=_.Si(function(){var V;
return((V=z())==null?void 0:V.likeStatus)==="LIKE"},void 0,"DG5Osd"),G=function(){var V;
return Y&&!((V=D.likeCountEntity)==null||!V.call(D))};
return _.S("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.S(_.JV,{data:function(){var V=Object,e=V.assign,r;var l=_.A((r=D.data())==null?void 0:r.toggleButtonViewModel,_.py);return e.call(V,{},l||{},{isToggled:F()})},
buttonShapeOverrides:D.buttonShapeOverrideables,animatedTextPropsDefault:function(){return G()?R():void 0},
animatedTextPropsToggled:function(){return G()?Z():void 0},
onToggle:function(V){a$$(V,z(),W(),M)},
style:function(){var V;return((V=D.disableIconAnimation)==null?0:V.call(D))?void 0:{animateIcon:"true"}}}))},"Q");
_.h7.idomCompat=!0;var LYE=_.RT(function(D){var Y=function(){return _.A(D.data().likeButtonViewModel,_.U_)},R=function(){var t;
return((t=Y())==null?void 0:t.likeStatusEntityKey)||""},Z=_.Si(function(){var t,X;
var M=(X=_.Ax(HN,R)())!=null?X:(t=Y())==null?void 0:t.likeStatusEntity;t=D.data();var W;t=(t==null?void 0:(W=t.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:t,enabled:(M==null?void 0:M.likeStatus)==="INDIFFERENT"&&t.length>0,experimentEnabled:t.length>0}},void 0,"hGh9Td");
return _.S("segmented-like-dislike-button-view-model",{class:_.e7("ytSegmentedLikeDislikeButtonViewModelHost",D.className),"button-renderer":!0},_.S(qV,{settings:Z},_.S("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.S(_.T,{cond:Y,then:function(t){return _.S(_.h7,{data:t,likeCountEntity:function(){return D.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.S(_.T,{cond:function(){return _.A(D.data().dislikeButtonViewModel,_.kG)},
then:function(t){return _.S(_.KV,{data:t,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"R");
LYE.idomCompat=!0;_.at(LYE,"segmented-like-dislike-button-view-model",{props:{data:_.cs,className:_.cs}});var mmD=_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.setMinWidth;var t=D.forceIconOnly;var X=_.dI("account-link-button-view-model"),M=_.Ax(_.Mli,function(){var V;return(V=Y().accountLinkStatusEntityKey)!=null?V:""}),W=_.Ax(_.Mli,function(){var V;
return(V=Y().accountLinkStatusSecondaryEntityKey)!=null?V:""}),z=function(){if(!_.f("web_account_link_secondary_killswitch")){var V,e;
return((V=M())==null?void 0:V.linked)||((e=W())==null?void 0:e.linked)}var r;return(r=M())==null?void 0:r.linked};
_.r2(function(){var V=M();if(V){var e=PRE(new xFU,qFU(new mFz,!!V.linked));_.jG().then(function(r){r&&(r.setAccountLinkState(_.rb(e.JSC$12078_serializeBinary(),4)),r.updateAccountLinkingConfig(!!V.linked))})}},"b9pSsf");
var I=function(){return _.A(Y().toggleButtonViewModel,_.py)};
_.gI("yt-signal-action-show-account-link-dialog",function(){if(I()){var V=z()?I().toggledButtonViewModel:I().defaultButtonViewModel;V=_.A(V,_.QX);var e;if((e=M())==null?0:e.isWarning){e=_.A(Y().warningButtonViewModel,_.QX);if(!e){_.qJ(Error("Ah"));return}V=e}var r;(e=_.HL((r=V)==null?void 0:r.onTap))&&_.Ib([e],X.value)}else _.qJ(Error("Bh"))});
var F=function(){var V=I();return Object.assign({},V,{isToggled:z()})},G=function(){return(t==null?0:t())?{iconPosition:"icon-only"}:{}};
return _.S("account-link-button-view-model",{class:_.e7("ytwAccountLinkButtonViewModelHost",R,function(){return(Z==null?0:Z())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:X,"button-renderer":!0},_.S("div",null,_.S(_.T,{cond:function(){var V;if((V=M())==null?0:V.isWarning)return(V=_.A(Y().warningButtonViewModel,_.QX))||_.qJ(Error("Ah")),V},
then:function(V){return _.S(_.TV,{data:V,buttonOverrides:G})},
else:function(){return _.S(_.JV,{data:F,buttonShapeOverrides:G})}})))},"S");_.at(mmD,"account-link-button-view-model",{props:{data:_.cs,className:_.uq,setMinWidth:_.uq,forceIconOnly:_.uq}});_.UD("menuRenderer","menuRenderer","ytd-menu-renderer");
var qvz={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"}},
HeD=_.f("web_fix_missing_action_buttons")?100:200,LV=function(){var D=_.N.apply(this,arguments)||this;D.safeArea=!_.f("kevlar_flex_menu_safe_area_killswitch");D.tonalOverride=!1;D.threeDotSize="M";D.isOverlay=!1;D.useOverlayDark=!1;D.topLevelIconsOnly=!1;D.JSC$14540_lastWidth=0;D.maybeUpdateFlexibleMenu=function(){_.f("web_fix_missing_action_buttons")?requestAnimationFrame(D.maybeUpdateFlexibleMenuImpl):D.maybeUpdateFlexibleMenuImpl()};
D.maybeUpdateFlexibleMenuImpl=function(){var Y;if((Y=D.data)!=null&&Y.flexibleItems){D.maybeFlushDebouncer();Y=D.hostElement.clientWidth;var R=Y>D.JSC$14540_lastWidth,Z,t=((Z=D.topLevelButtonsContainer)==null?void 0:Z.scrollHeight)||0,X;Z=((X=D.flexibleItemButtonsContainer)==null?void 0:X.scrollHeight)||0;X=D.hostElement.scrollHeight>Math.max(t,Z)+8;R?(D.resetFlexibleItems(),D.JSC$14540_lastWidth=D.hostElement.clientWidth,D.maybeUpdateFlexibleMenu()):X&&(D.shrinkFlexibleMenu(),D.JSC$14540_lastWidth=
Y)}};
D.computeThreeDotButtonShape=function(){if(D.tonalOverride)return Object.assign({},{onTap:function(){D.onOverflowTap()},
iconPosition:"icon-only",style:D.isOverlay?D.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:D.threeDotSize,state:"active",accessibilityLabel:D.computeAccessibilityLabel(D.data)},D.threeDotButtonOverride)};
D.onOverflowTap=function(){if(D.data.fetchMenuCommand)_.DH().resolve(_.Yw).resolveCommand(D.data.fetchMenuCommand,{form:{element:D.hostElement}});else if(D.data.isDisabled&&D.data.disabledCommand)_.Vu(D.data.disabledCommand,D.hostElement);else{var Y=D.createMenuRendererVe(),R={items:D.items};D.data.menuPopupAccessibility&&(R.menuPopupAccessibility=D.data.menuPopupAccessibility);D.data.footer&&(R.footer=D.data.footer);Y={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:R},veData:Y}};
_.DH().resolve(_.y$).openSheet({openPopupActionCommand:Y},D.hostElement)}};
return D};
_.n(LV,_.N);_.u=LV.prototype;_.u.updateButtonOverrides=function(){if(!_.f("menu_renderer_label_update_upkillswitch")){var D=_.aU(this.hostElement).querySelector("yt-button-view-model");D&&(D.buttonOverrides=this.buttonOverrides)}};
_.u.computeHasItems=function(){var D;return((D=this.topLevelButtonData)==null?void 0:D.length)||this.hasFlexibleItems};
_.u.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.u.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.SN(this.hostElement,{"--ytd-menu-renderer-button-color":_.HG(this.data.iconColor)}))};
_.u.onStamperFinished=function(){this.JSC$14540_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.u.setupFlexibleMenu=function(){var D=this,Y;(Y=this.data)!=null&&Y.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.gq(this.maybeUpdateFlexibleMenu,HeD,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){D.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))};
_.u.maybeFlushDebouncer=function(){if(_.f("web_replace_formatted_with_attributed_string")){var D;(D=this.topLevelButtons)==null||D.forEach(function(R){var Z;(R=(Z=R.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&yaU(R)});
var Y;(Y=this.flexibleItemButtons)==null||Y.forEach(function(R){var Z;(R=(Z=R.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&yaU(R)})}};
_.u.resetFlexibleItems=function(){var D;if((D=this.data)!=null&&D.flexibleItems){_.f("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var Y;this.flexAsTopLevelButtons=(Y=this.data.flexibleItems)==null?void 0:Y.map(function(R){return _.A(R,_.VBV).topLevelButton});
_.f("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.u.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.u.shrinkFlexibleMenu=function(){var D;(D=this.flexAsTopLevelButtons)!=null&&D.length&&(this.flexAsTopLevelButtons=[].concat(_.oK(this.flexAsTopLevelButtons.slice(0,-1))))};
_.u.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:qvz,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:qvz,events:!0}}};
_.u.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.u.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.u.detached=function(){this.icon="MORE_VERT"};
_.u.computeTopLevelButtonData=function(D){if(!D)return[];var Y;D=(Y=D==null?void 0:D.topLevelButtons)!=null?Y:[];return _.y7.unsafeClone([].concat(_.oK(D)))};
_.u.computeItems=function(D,Y){if(!D)return[];var R=[];if(Y){var Z=(D.flexibleItems||[]).map(function(M){return _.A(M,_.VBV)});
Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next())t=t.value,Y.includes(t.topLevelButton)||(t=t.menuItem)&&R.push(t)}var X;D=(X=D==null?void 0:D.items)!=null?X:[];return[].concat(_.oK(R),_.oK(D))};
_.u.computeMenuActive=function(D,Y){return D||Y};
_.u.onPopupOpened=function(){this.overlayOpen=!0;_.MX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.u.onPopupClosed=function(){this.overlayOpen=!1;_.MX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.u.onPopupCanceled=function(){this.overlayOpen=!1;_.MX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.u.computeAccessibilityLabel=function(D){return this.get("accessibility.accessibilityData.label",D)};
_.u.isHidden=function(D,Y){return this.tonalOverride||!D?!0:D.fetchMenuCommand||D.isDisabled&&D.disabledCommand?!1:!(Y==null?0:Y.length)};
_.u.isModernOverflowHidden=function(D,Y){return this.tonalOverride&&D?D.fetchMenuCommand?!1:!(Y==null?0:Y.length):!0};
_.u.createMenuRendererVe=function(){var D=this.data.trackingParams,Y=_.K2(),R=_.Ud();return D&&Y&&R?(D=_.oT(D),R=_.TP(7591),_.f("combine_ve_grafts")?_.jF(_.n8(),R,D):_.Qk(Y,D,R),R):null};
_.YF.Object.defineProperties(LV.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.flexAsTopLevelButtons)==null||!D.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
LV.prototype.onPopupCanceled=LV.prototype.onPopupCanceled;LV.prototype.onPopupClosed=LV.prototype.onPopupClosed;LV.prototype.onPopupOpened=LV.prototype.onPopupOpened;LV.prototype.tonalOverrideChanged=LV.prototype.tonalOverrideChanged;LV.prototype.resetFlexibleItems=LV.prototype.resetFlexibleItems;LV.prototype.setupFlexibleMenu=LV.prototype.setupFlexibleMenu;LV.prototype.iconButtonColorChanged=LV.prototype.iconButtonColorChanged;LV.prototype.updateButtonOverrides=LV.prototype.updateButtonOverrides;
_.q([_.v(_.Rv),_.x("design:type",Object)],LV.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#button-shape"),_.x("design:type",HTMLElement)],LV.prototype,"buttonShape",void 0);_.q([_.fr("#button"),_.x("design:type",Object)],LV.prototype,"button",void 0);
_.q([_.y(),_.x("design:type",Object)],LV.prototype,"data",void 0);_.q([_.y({computed:"computeTopLevelButtonData(data)"}),_.x("design:type",Array)],LV.prototype,"topLevelButtonData",void 0);_.q([_.y(),_.x("design:type",Array)],LV.prototype,"flexAsTopLevelButtons",void 0);_.q([_.y({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.x("design:type",Array)],LV.prototype,"items",void 0);_.q([_.y({value:"MORE_VERT"}),_.x("design:type",String)],LV.prototype,"icon",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],LV.prototype,"safeArea",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.x("design:type",Boolean)],LV.prototype,"menuActive",void 0);_.q([_.y(),_.x("design:type",Boolean)],LV.prototype,"menuFocused",void 0);_.q([_.y({value:"bottom"}),_.x("design:type",String)],LV.prototype,"buttonTooltipPosition",void 0);_.q([_.y(),_.x("design:type",Boolean)],LV.prototype,"overlayOpen",void 0);
_.q([_.y({value:!0}),_.x("design:type",Boolean)],LV.prototype,"forceIconButton",void 0);_.q([_.y(),_.x("design:type",Boolean)],LV.prototype,"styleActionButton",void 0);_.q([_.y(),_.x("design:type",Boolean)],LV.prototype,"disableTextTransformOnButtons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],LV.prototype,"tonalOverride",void 0);_.q([_.y(),_.x("design:type",Object)],LV.prototype,"threeDotSize",void 0);
_.q([_.y(),_.x("design:type",Object)],LV.prototype,"threeDotButtonOverride",void 0);_.q([_.y(),_.x("design:type",Object)],LV.prototype,"isOverlay",void 0);_.q([_.y(),_.x("design:type",Object)],LV.prototype,"useOverlayDark",void 0);_.q([_.y({computed:"computeButtonOverride(tonalOverride)"}),_.x("design:type",Object)],LV.prototype,"buttonOverride",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],LV.prototype,"hasCustomIconColor",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("flexAsTopLevelButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],LV.prototype,"hasFlexibleItems",null);_.q([_.y({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.x("design:type",Boolean)],LV.prototype,"hasItems",void 0);_.q([_.y(),_.x("design:type",Object)],LV.prototype,"topLevelIconsOnly",void 0);
_.q([_.Gm("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"updateButtonOverrides",null);_.q([_.b("topLevelIconsOnly"),_.x("design:type",Object),_.x("design:paramtypes",[])],LV.prototype,"buttonOverrides",null);_.q([_.fr("#top-level-buttons-computed"),_.x("design:type",HTMLElement)],LV.prototype,"topLevelButtonsContainer",void 0);_.q([_.eN(".top-level-buttons > *"),_.x("design:type",Array)],LV.prototype,"topLevelButtons",void 0);
_.q([_.fr("#flexible-item-buttons"),_.x("design:type",HTMLElement)],LV.prototype,"flexibleItemButtonsContainer",void 0);_.q([_.eN("#flexible-item-buttons > *"),_.x("design:type",Array)],LV.prototype,"flexibleItemButtons",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"iconButtonColorChanged",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"setupFlexibleMenu",null);_.q([_.rd("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"resetFlexibleItems",null);_.q([_.Gm("tonalOverride"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"tonalOverrideChanged",null);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"onPopupOpened",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"onPopupClosed",null);_.q([_.Fv("yt-popup-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LV.prototype,"onPopupCanceled",null);
_.L(LV,"ytd-menu-renderer",function(){if(amz===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);amz=D}D=amz;return D},{mode:2});var xmE;var Pp_;_.mT=_.RT(function(D){var Y=D.data;var R=function(){if(Y().icon)a:{var Z={iconName:Y().icon};for(var t=_.DH().resolve(_.FK),X=_.a([12,24]),M=X.next();!M.done;M=X.next()){var W=M.value;M=Object.assign({},Z,{iconStyle:"youtube_fill",iconSize:W});W=Object.assign({},Z,{iconStyle:"youtube_outline",iconSize:W});if(t.resolveIcon(M)){Z=M;break a}if(t.resolveIcon(W)){Z=W;break a}}Z=void 0}else Z=void 0;return Z};
D={};return _.S("badge-shape",{class:_.e7("badge-shape-wiz",function(){return jfy(Y().type)},(D["badge-shape-wiz--overlay"]=function(){return Y().isOverlay},D["badge-shape-wiz--ads-include-dot"]=function(){return Y().adsIncludeDot},D["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(Y().type){case 17:case 18:case 19:var Z=!0;
break a;default:Z=!1}return Z},D["badge-shape-wiz--status-badge"]=function(){a:switch(Y().type){case 12:case 13:case 14:case 15:case 16:var Z=!0;
break a;default:Z=!1}return Z},D["badge-shape-wiz--no-text"]=function(){return!Y().text},D["badge-shape-wiz--modern"]=function(){return Y().modern||_.f("web_modern_badge_shape")},D)),
style:_.Ap({"background-color":function(){var Z;return(Z=Y().customColors)==null?void 0:Z.backgroundColor}}),
role:function(){return Y().accessibilityText?"img":void 0},
"aria-label":function(){return Y().accessibilityText}},_.S(_.T,{cond:function(){return Y().animation},
then:function(Z){return _.S(_.fO,{className:"badge-shape-wiz__icon",data:Z,animationName:function(){return Z().animationConfig.name||""}})}}),_.S(_.T,{cond:function(){var Z;
return R()&&!((Z=Y())==null?0:Z.animation)},
then:function(){return _.S("div",{class:"badge-shape-wiz__icon"},_.S(pIn,{data:function(){return R()}}))}}),_.S("div",{class:"badge-shape-wiz__text"},function(){var Z;
return(Z=Y())==null?void 0:Z.text}))},"T");
_.mT.idomCompat=!0;_.at(_.mT,"badge-shape",{props:{data:_.cs}});var qf=function(){var D=_.N.apply(this,arguments)||this;D.systemIcons=_.f("kevlar_system_icons");D.animated=_.f("animated_live_badge_icon");D.useBadgeShape=_.f("web_badge_shape_defrag");return D};
_.n(qf,_.N);_.u=qf.prototype;_.u.addTooltips=function(){for(var D=_.aU(this.hostElement).querySelectorAll(".badge"),Y=0,R;R=D[Y++];){var Z=this.repeatElement.itemForElement(R);R=_.aU(R);R.lastChild&&R.lastChild.is==="tp-yt-paper-tooltip"&&R.removeChild(R.lastChild);if(Z=Z.metadataBadgeRenderer&&Z.metadataBadgeRenderer.tooltip){var t=_.sc("tp-yt-paper-tooltip");(0,_.zm)(t).textContent=Z;t.setAttribute("position","top");t.setAttribute("aria-hidden","true");R.appendChild(t)}}};
_.u.badgesChanged=function(){var D=this;_.Q0().parkOrScheduleJob(function(){D.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.u.standaloneRoundedBadgeChanged=function(){var D=this.useRoundedBadge?this.useRoundedBadge:void 0;D&&(this.useRoundedBadge=D)};
_.u.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.u.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.u.computeStyle=function(D){_.f("enable_html5_teal_ad_badge")&&D==="BADGE_STYLE_TYPE_AD"&&(D="badge-style-type-ad-alternate");_.f("kevlar_ytb_live_badges")&&D==="BADGE_STYLE_TYPE_LIVE_NOW"&&(D="badge-style-type-live-now-alternate");return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeRole=function(D){return this.computeAriaLabel(D)?"img":"status"};
_.u.computeAriaLabel=function(D){var Y;return(D==null?void 0:(Y=D.accessibilityData)==null?void 0:Y.label)||(D==null?void 0:D.label)};
_.u.computeBadgeShape=function(D){var Y;if(D){var R,Z=Stj(D.style),t=TNl(D.style),X=D.label,M=((R=D.accessibilityData)==null?void 0:R.label)||D.label;a:switch(D.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":R=!0;break a;default:R=!1}D=(Y=D.icon)==null?void 0:Y.iconType;Y={type:Z,brNzRatingBadgeType:t,text:X,accessibilityText:M,isOverlay:R,icon:D!=="PREMIUM"?D:void 0,modern:_.f("web_modern_badge_view_model")}}else Y={};return Y};
_.u.updateComputedBadges=function(D,Y,R){var Z=this;(Y=Y?[Y]:R?[R]:void 0)?this.computedBadges=Y:this.computedBadges=D==null?void 0:D.filter(function(t){var X;if((X=t.metadataBadgeRenderer)==null?0:X.groups){X=!1;t=_.a(t.metadataBadgeRenderer.groups);for(var M=t.next();!M.done;M=t.next()){M=M.value;var W=void 0;X=X||((W=Z.hiddenBadgeGroups)==null?void 0:W.includes(M))}return!X}return!0})};
_.u.useFilledIcons=function(D){return _.f("kevlar_system_icons")&&(D==="AUDIO_BADGE"||D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE"||D==="SPONSORSHIP_STAR"||D==="PERSON_RADAR_FILLED"||D==="PERSON_RADAR")};
_.u.computeBadgeShapeStyle=function(D){return this.useBadgeShape?D==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||D==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.u.computeIcon=function(D){var Y,R;D=D==null?void 0:(Y=D.metadataBadgeRenderer)==null?void 0:(R=Y.icon)==null?void 0:R.iconType;if(D!=="PREMIUM"&&D)return _.IT(D)};
_.u.computeStandaloneBadge=function(D){var Y;D=D==null?void 0:(Y=D.icon)==null?void 0:Y.iconType;return D==="PREMIUM_STANDALONE"||D==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
qf.prototype.hiddenBadgeGroupsChanged=qf.prototype.hiddenBadgeGroupsChanged;qf.prototype.standaloneBadgeChanged=qf.prototype.standaloneBadgeChanged;qf.prototype.standaloneRoundedBadgeChanged=qf.prototype.standaloneRoundedBadgeChanged;qf.prototype.badgesChanged=qf.prototype.badgesChanged;_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"hidden",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],qf.prototype,"componentBehavior",void 0);
_.q([_.y(),_.x("design:type",Array)],qf.prototype,"badges",void 0);_.q([_.y(),_.x("design:type",Object)],qf.prototype,"topStandaloneBadge",void 0);_.q([_.y(),_.x("design:type",Object)],qf.prototype,"bottomStandaloneBadge",void 0);_.q([_.y(),_.x("design:type",Object)],qf.prototype,"computedBadges",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"mediumFontAdBadge",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"useRoundedBadge",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"largeFontAdBadge",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"overlayAd",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"overlayPremium",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"noDotAdBadge",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"collectionTruncate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"isThumbnailBadge",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"wrapBadges",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qf.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qf.prototype,"animated",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qf.prototype,"useBadgeShape",void 0);_.q([_.y({value:[]}),_.x("design:type",Array)],qf.prototype,"hiddenBadgeGroups",void 0);_.q([_.fr("#repeat"),_.x("design:type",ky)],qf.prototype,"repeatElement",void 0);_.q([_.rd("badges"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qf.prototype,"badgesChanged",null);
_.q([_.rd("useRoundedBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qf.prototype,"standaloneRoundedBadgeChanged",null);_.q([_.rd("topStandaloneBadge","bottomStandaloneBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qf.prototype,"standaloneBadgeChanged",null);_.q([_.rd("hiddenBadgeGroups"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qf.prototype,"hiddenBadgeGroupsChanged",null);
_.q([_.h({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],qf);
var Q7E=_.WL()(qf,"ytd-badge-supported-renderer",function(){if(Pp_===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);Pp_=D}D=Pp_;return D},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.zD("kevlar_poly_si_batch_j053")?1:2});var HV=function(){var D=_.N.apply(this,arguments)||this;D.iconType="STAR";D.standardizeIconSize=_.f("kevlar_system_icons");D.mediaHoverOverlayInitialVisibility=_.f("enable_top_landscape_image_button_command_web");D.noBottomMargin=!1;D.thumbnailObjectFit="CONTAIN";D.thumbnailFitHeight=!0;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.n(HV,_.N);_.u=HV.prototype;
_.u.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"}}}};
_.u.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",HV.JSC$14552_DEFAULT_CLICK_LOCATION_BEHAVIOR,HV.JSC$14552_CLICK_LOCATION_ID_MAP))};
_.u.onTap=function(D){if(!_.f("use_on_click_for_desktop_display_ad"))this.onTapOrClick(D)};
_.u.onClick=function(D){if(_.f("use_on_click_for_desktop_display_ad"))this.onTapOrClick(D)};
_.u.onTapOrClick=function(D){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,D,!1)};
_.u.updateMediaBackgroundImage=function(){var D=this.get("data.image.thumbnail.thumbnails");D&&(D=_.MW(D,0))&&_.SN(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+D+")"})};
_.u.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var D=0;D<this.data.impressionEndpoints.length;D++){var Y=this.data.impressionEndpoints[D];Y.clickTrackingParams&&delete Y.clickTrackingParams;_.DH().resolve(_.Yw).resolveCommand(Y,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var R;((R=this.data)==null?0:R.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.u.handleMuteAd=function(){};
_.u.attached=function(){var D=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.YF.Object.defineProperties(HV.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.titleText)return"";var Y;return _.fX("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.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 D;return!((D=this.data)==null||!D.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"}}});
HV.prototype.onClick=HV.prototype.onClick;HV.prototype.onTap=HV.prototype.onTap;HV.prototype.dataChanged=HV.prototype.dataChanged;
HV.JSC$14552_CLICK_LOCATION_ID_MAP=_.f("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"]]);
HV.JSC$14552_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.f("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"}];_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.HH),_.x("design:type",Object)],HV.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],HV.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],HV.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.v(LS),_.x("design:type",Object)],HV.prototype,"ytdActiveViewBehavior",void 0);_.q([_.v([_.Va.YtActionHandlerBehavior]),_.x("design:type",Object)],HV.prototype,"actionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],HV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],HV.prototype,"clickCommand",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],HV.prototype,"miniMode",void 0);_.q([_.y(),_.x("design:type",String)],HV.prototype,"iconType",void 0);_.q([_.b("data.titleText"),_.x("design:type",String),_.x("design:paramtypes",[])],HV.prototype,"titleAriaLabel",null);
_.q([_.b("data.rating"),_.x("design:type",Object),_.x("design:paramtypes",[])],HV.prototype,"getRating",null);_.q([_.b("data.price"),_.x("design:type",Object),_.x("design:paramtypes",[])],HV.prototype,"getPrice",null);_.q([_.b("data.thirdLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],HV.prototype,"getThirdLine",null);_.q([_.b("data.fourthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],HV.prototype,"getFourthLine",null);
_.q([_.b("data.fifthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],HV.prototype,"getFifthLine",null);_.q([_.b("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"computeRatingHidden",null);_.q([_.b("getPrice"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"computePriceHidden",null);_.q([_.b("getThirdLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"computeThirdLineHidden",null);
_.q([_.b("getFourthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"computeFourthLineHidden",null);_.q([_.b("getFifthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"computeFifthLineHidden",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.energyIcon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"hasEnergyIcon",null);
_.q([_.b("computePriceHidden","computeRatingHidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"computeSecondaryTextHidden",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HV.prototype,"standardizeIconSize",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HV.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HV.prototype,"noBottomMargin",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.layout"),_.x("design:type",String),_.x("design:paramtypes",[])],HV.prototype,"layout",null);_.q([_.b("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],HV.prototype,"mediaThumbnailWidth",null);_.q([_.b("layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],HV.prototype,"useRoundedBadge",null);_.q([_.y(),_.x("design:type",String)],HV.prototype,"thumbnailObjectFit",void 0);
_.q([_.y(),_.x("design:type",Object)],HV.prototype,"thumbnailFitHeight",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HV.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],HV.prototype,"onTap",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],HV.prototype,"onClick",null);
_.q([_.h({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],HV);
_.L(HV,"ytd-display-ad-renderer",function(){if(xmE!==void 0)return xmE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xmE=D},{mode:1});var Bc_;var pbY;var EVE;var I$y=new Map;var gVb=!1;var xb=function(){var D=_.N.apply(this,arguments)||this;D.DEFAULT_TOOLTIP_OFFSET="10";D.TOOLTIP_OFFSET_NO_BANNER="-8";D.badges=null;D.noEndpoints=!1;D.wrapText=!1;D.forceVerified=!1;D.tooltipPosition="top";D.compactStyle=!1;D.height=0;D.lineHeight=0;return D};
_.n(xb,_.N);_.u=xb.prototype;_.u.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.u.attached=function(){var D=this;this.observer=new MutationObserver(function(Y,R){D.handleResized();R.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.u.detached=function(){this.observer&&this.observer.disconnect()};
_.u.logTooltipEvent=function(){_.f("kevlar_wiz_tooltip_event_killswitch")||gVb||(_.Fno("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),gVb=!0)};
_.u.handleWindowResized=function(){this.handleResized()};
_.u.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")))};
_.u.onHeightChanged=function(){if(this.verified){var D=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.JQ("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=D:this.textContainerEl.style.marginRight=D}};
_.u.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.JQ("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.u.handleResized=function(){var D=this;this.verified&&_.yc.addLowPriorityJob(function(){D.fitBackgroundToText();var Y=getComputedStyle(D.hostElement).lineHeight;Y&&(Y=Y.match(/\d+/))&&Y.length&&(D.lineHeight=Number(Y[0]));D.height=D.lineHeight&&!D.wrapText?D.lineHeight:D.textEl.offsetHeight})};
_.u.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var D=document.createRange(),Y=_.aU(this.textEl).children;Y.length>0?D.selectNodeContents(Y[0]):D.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(D.getBoundingClientRect().width)+"px"}};
_.u.computeChannelBadgeStyle=function(D){var Y;if((D==null?0:(Y=D.runs)==null?0:Y.length)&&D.runs[0].textColor)return"--ytd-badge-icon-color:"+_.HG(D.runs[0].textColor)+";"};
_.YF.Object.defineProperties(xb.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"?_.i0(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var D=this.get("badges.0.metadataBadgeRenderer.tooltip");if(D)return D}return _.OM(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
xb.prototype.onLineHeightChanged=xb.prototype.onLineHeightChanged;xb.prototype.onHeightChanged=xb.prototype.onHeightChanged;xb.prototype.onChannelNameChanged=xb.prototype.onChannelNameChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],xb.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xb.prototype,"badges",void 0);_.q([_.y(),_.x("design:type",Object)],xb.prototype,"channelName",void 0);
_.q([_.y(),_.x("design:type",Object)],xb.prototype,"noEndpoints",void 0);_.q([_.y(),_.x("design:type",Object)],xb.prototype,"wrapText",void 0);_.q([_.y(),_.x("design:type",Object)],xb.prototype,"forceVerified",void 0);_.q([_.y(),_.x("design:type",Object)],xb.prototype,"tooltipPosition",void 0);_.q([_.y(),_.x("design:type",String)],xb.prototype,"tooltip",void 0);_.q([_.y(),_.x("design:type",Boolean)],xb.prototype,"hasChannelArt",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xb.prototype,"compactStyle",void 0);_.q([_.fr("#text-container"),_.x("design:type",HTMLElement)],xb.prototype,"textContainerEl",void 0);_.q([_.fr("#text"),_.x("design:type",Object)],xb.prototype,"textEl",void 0);_.q([_.fr("#verified-tooltip"),_.x("design:type",HTMLElement)],xb.prototype,"verifiedTooltip",void 0);_.q([_.y(),_.x("design:type",Object)],xb.prototype,"height",void 0);
_.q([_.y(),_.x("design:type",Object)],xb.prototype,"lineHeight",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("badges","forceVerified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xb.prototype,"verified",null);_.q([_.b("badges","verified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xb.prototype,"hideBadges",null);_.q([_.b("channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],xb.prototype,"formattedName",null);
_.q([_.b("badges","verified","formattedName"),_.x("design:type",String),_.x("design:paramtypes",[])],xb.prototype,"tooltipText",null);_.q([_.b("hasChannelArt"),_.x("design:type",String),_.x("design:paramtypes",[])],xb.prototype,"tooltipOffset",null);_.q([_.Gm("channelName"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xb.prototype,"onChannelNameChanged",null);
_.q([_.Gm("height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xb.prototype,"onHeightChanged",null);_.q([_.Gm("lineHeight","height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xb.prototype,"onLineHeightChanged",null);_.q([_.h({is:"ytd-channel-name",disableElementRegistration:!0})],xb);
_.L(xb,"ytd-channel-name",function(){if(EVE!==void 0)return EVE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return EVE=D},{mode:_.zD("kevlar_poly_si_batch_j036")?1:2});var PV=function(){var D=_.N.apply(this,arguments)||this;D.standardizeIconSize=_.f("kevlar_system_icons");return D};
_.n(PV,_.N);PV.prototype.basicPaletteChanged=function(){var D;(D=this.data.color)!=null&&D.basicColorPaletteData&&_.Jp(this.hostElement,this.data.color.basicColorPaletteData)};
PV.prototype.useFilledIcons=function(D){return _.f("kevlar_system_icons")&&(D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE")};
_.YF.Object.defineProperties(PV.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return this.data.authorCreator||((D=this.data)==null?void 0:(Y=D.color)==null?void 0:(R=Y.basicColorPaletteData)==null?void 0:R.backgroundColor)}}});
PV.prototype.basicPaletteChanged=PV.prototype.basicPaletteChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],PV.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],PV.prototype,"standardizeIconSize",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.authorUnifiedVerified"),_.x("design:type",Object),_.x("design:paramtypes",[])],PV.prototype,"verified",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],PV.prototype,"creator",null);_.q([_.Gm("data.color.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PV.prototype,"basicPaletteChanged",null);_.q([_.h({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],PV);
_.L(PV,"ytd-author-comment-badge-renderer",function(){if(pbY!==void 0)return pbY;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return pbY=D},{mode:1});var dmb;var Q$=function(){return _.N.apply(this,arguments)||this};
_.n(Q$,_.N);Q$.prototype.computeThumbnailWidth=function(D){if(D==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Q$.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],Q$.prototype,"icon",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Q$.prototype,"surface",void 0);
_.q([_.y({reflectToAttribute:!0,value:_.f("enable_shrink_image_size_on_web_posts_singleton")}),_.x("design:type",Boolean)],Q$.prototype,"searchSxsUx",void 0);_.q([_.h({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Q$);
_.L(Q$,"ytd-backstage-image-renderer",function(){if(dmb!==void 0)return dmb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dmb=D},{mode:1});var ieU;var BV=function(){var D=_.N.apply(this,arguments)||this;D.isLoading=!1;D.selectedItemIndex=-1;return D};
_.n(BV,_.N);_.u=BV.prototype;_.u.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.u.computeIsImagePoll=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.u.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.u.thumbnailSrc=function(D){var Y,R,Z,t;return(D==null?0:(Y=D.thumbnails)==null?0:(R=Y[0])==null?0:R.url)?_.Jf((Z=D.thumbnails)==null?void 0:(t=Z[0])==null?void 0:t.url):void 0};
_.u.progressWidth=function(D){return"width:"+(D?D*100:0)+"%;"};
_.u.textAreaWidth=function(D){return this.isImagePoll?null:"width:"+(D?D*100:0)+"%;"};
_.u.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.u.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var D=this.data.choices,Y=0;Y<D.length;Y++)if(D[Y].selected){this.selectedItemIndex=Y;break}};
_.u.onPopupClosed=function(D,Y){D=Number(this.pollVotes.selected);Y.confirmed&&(this.selectChoice(D,!1),_.CX(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.u.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.u.onYtCommentPollRevert=function(D,Y){Y&&(this.selectChoice(Y.selectedChoiceIndex,!0),this.set("data.totalVotes",Y.totalVotes))};
_.u.onYtServiceRequestSent=function(D,Y){if(Y.actions)for(D=0;D<Y.actions.length;D++){var R=Y.actions[D];_.A(R,o5)&&this.set("data.totalVotes",_.A(R,o5).totalVotes)}};
_.u.onYtServiceRequestCompleted=function(D){var Y=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(Y==="FEEDBACK_DESELECT"||Y==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.MX(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.u.getEndpoint=function(D,Y){return Y===D?this.data.choices[Y].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.u.selectChoice=function(D,Y){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var R=0;R<this.data.choices.length;R++){var Z;if(D===this.selectedItemIndex){var t=!1;var X=Z=null}else Z=(t=R===D)?this.data.choices[R].voteRatioIfSelected:this.data.choices[R].voteRatioIfNotSelected,X=t?this.data.choices[R].votePercentageIfSelected:this.data.choices[R].votePercentageIfNotSelected;this.set("data.choices."+R+".voteRatio",Z);
this.set("data.choices."+R+".votePercentage",X);this.set("data.choices."+R+".selected",t)}Y||(this.isLoading=!0,(Y=this.getEndpoint(D,this.selectedItemIndex))&&_.DH().resolve(_.Yw).resolveCommand(Y,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.YF.Object.defineProperties(BV.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
BV.prototype.onYtServiceRequestCompleted=BV.prototype.onYtServiceRequestCompleted;BV.prototype.onYtServiceRequestSent=BV.prototype.onYtServiceRequestSent;BV.prototype.onYtCommentPollRevert=BV.prototype.onYtCommentPollRevert;BV.prototype.onPopupClosed=BV.prototype.onPopupClosed;BV.prototype.dataChanged=BV.prototype.dataChanged;_.q([_.v(_.dp),_.x("design:type",Object)],BV.prototype,"paperItemBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],BV.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],BV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],BV.prototype,"isLoading",void 0);_.q([_.y({computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],BV.prototype,"isChannelOwner",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.x("design:type",Boolean)],BV.prototype,"isImagePoll",void 0);_.q([_.y({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],BV.prototype,"isTotalVotesDisabled",void 0);_.q([_.y(),_.x("design:type",Object)],BV.prototype,"previousPollInfo",void 0);_.q([_.y(),_.x("design:type",Object)],BV.prototype,"selectedItemIndex",void 0);_.q([_.fr("#poll-votes"),_.x("design:type",Object)],BV.prototype,"pollVotes",void 0);
_.q([_.b("isChannelOwner"),_.x("design:type",Object),_.x("design:paramtypes",[])],BV.prototype,"endpointStyle",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BV.prototype,"dataChanged",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BV.prototype,"onPopupClosed",null);
_.q([_.Fv("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BV.prototype,"onYtCommentPollRevert",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],BV.prototype,"onYtServiceRequestSent",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BV.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],BV);
_.L(BV,"ytd-backstage-poll-renderer",function(){if(ieU!==void 0)return ieU;var D=document.createElement("template");_.w(D,'\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">\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ieU=D},{mode:2});var OeU;var cWV={autoplay:!1,loop:!1},DG7={simpleText:""},pV=function(){var D=_.N.apply(this,arguments)||this;D.isLoading=!1;D.usesPanelLockup=!1;D.selectedItemIndex=-1;D.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},cWV,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});D.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},cWV,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});D.correctnessAnimationProps=[];D.correctnessAnimationRefs=[];return D};
_.n(pV,_.N);_.u=pV.prototype;_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.u.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.u.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.u.computeIsImageQuiz=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.u.onExplanationChanged=function(){this.expander.reset()};
_.u.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var D=this.data.choices;if(D){this.maybeInitializeQuizLotties(D);for(var Y=0;Y<D.length;Y++)if(D[Y].isSelected||this.isChannelOwner&&D[Y].isCorrect){this.selectedItemIndex=Y;return}this.selectedItemIndex=-1}}};
_.u.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var D=this.selectedItemIndex,Y=Number(this.quizVotes.selected);this.selectChoice(Y);this.sendVoteAction(Y,D);this.quizVotes.selected=-1;var R;D=!((R=this.data)==null?0:R.enableAnimation);this.maybePlayAnswerAnimations(D)}};
_.u.onYtCommentPollRevert=function(D,Y){Y&&(this.selectChoice(Y.selectedChoiceIndex),this.set("data.totalVotes",Y.totalVotes))};
_.u.onYtServiceRequestSent=function(D,Y){if(Y.actions)for(D=_.a(Y.actions),Y=D.next();!Y.done;Y=D.next())(Y=_.A(Y.value,o5))&&this.set("data.totalVotes",Y.totalVotes)};
_.u.onYtServiceRequestCompleted=function(D){var Y=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(Y==="FEEDBACK_DESELECT"||Y==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.MX(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.u.getAnimationPropsForChoiceIndex=function(D,Y){return Y[D]};
_.u.maybePlayAnswerAnimations=function(D){D=D===void 0?!1:D;var Y;if((Y=this.data)!=null&&Y.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){Y=_.a(this.correctnessAnimationRefs);for(var R=Y.next();!R.done;R=Y.next()){var Z=void 0,t=void 0;(Z=R.value)==null||(t=Z.lottieEl)==null||t.stop()}if(!(this.selectedItemIndex<0)){Y=0;D&&(Y=this.isCorrect?37:25);var X,M;(X=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(M=X.lottieEl)==null||M.goToAndPlay(D?Y:0,!0);if(!(this.isCorrect||
(X=this.data.choices.findIndex(function(F){return F.isCorrect}),X<0))){var W,z;
(z=(W=this.correctnessAnimationRefs[X])==null?void 0:W.lottieEl)==null||z.goToAndPlay(37,!0);var I;W=(I=this.fadeContainers)==null?void 0:I.item(X);!D&&W&&this.fadeIn(W)}}}};
_.u.thumbnailSrc=function(D){var Y,R,Z,t;return(D==null?0:(Y=D.thumbnails)==null?0:(R=Y[0])==null?0:R.url)?_.Jf((Z=D.thumbnails)==null?void 0:(t=Z[0])==null?void 0:t.url):void 0};
_.u.a11yVotedText=function(D,Y){var R,Z,t=((R=this.data)==null?void 0:(Z=R.correctVotedText)==null?void 0:Z.simpleText)||"",X,M;R=((X=this.data)==null?void 0:(M=X.votedText)==null?void 0:M.simpleText)||"";if(!Y)return"";var W,z;if((W=this.data)==null?0:(z=W.choices)==null?0:z[D].isCorrect)return t;var I,F;return((I=this.data)==null?0:(F=I.choices)==null?0:F[D].isSelected)?R:""};
_.u.getEndpoint=function(D,Y){return Y===D?this.data.choices[D].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.u.sendVoteAction=function(D,Y){if(D=this.getEndpoint(D,Y))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(D)};
_.u.selectChoice=function(D){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Y=0;Y<this.data.choices.length;Y++)this.set("data.choices."+Y+".isSelected",D===this.selectedItemIndex?!1:Y===D);this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.u.maybeInitializeQuizLotties=function(D){var Y=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=D.map(function(R){return{animationConfig:R.isCorrect?Y.baseCorrectLottiePlayerAnimationConfig:Y.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){Y.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(R){return R.animationRef||{}})};
_.u.fadeIn=function(D){D.classList.add("fade-in");_.S7(_.yc,function(){D.classList.remove("fade-in")},900)};
_.YF.Object.defineProperties(pV.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.OM(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 D,Y;return((D=this.data)==null?void 0:(Y=D.choices)==null?void 0:Y.some(function(R){return R.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?DG7:this.data.choices[this.selectedItemIndex].explanation||DG7}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
pV.prototype.onYtServiceRequestCompleted=pV.prototype.onYtServiceRequestCompleted;pV.prototype.onYtServiceRequestSent=pV.prototype.onYtServiceRequestSent;pV.prototype.onYtCommentPollRevert=pV.prototype.onYtCommentPollRevert;pV.prototype.dataChanged=pV.prototype.dataChanged;pV.prototype.onExplanationChanged=pV.prototype.onExplanationChanged;_.q([_.v(_.dp),_.x("design:type",Object)],pV.prototype,"paperItemBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],pV.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.tV.YtTaskEmitterBehavior),_.x("design:type",Object)],pV.prototype,"ytTaskEmitterBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],pV.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pV.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],pV.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Object)],pV.prototype,"usesPanelLockup",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],pV.prototype,"isChannelOwner",void 0);_.q([_.y({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],pV.prototype,"isTotalVotesDisabled",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.x("design:type",Boolean)],pV.prototype,"isImageQuiz",void 0);_.q([_.y(),_.x("design:type",Object)],pV.prototype,"previousQuizInfo",void 0);_.q([_.y(),_.x("design:type",Object)],pV.prototype,"selectedItemIndex",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data","usesPanelLockup"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pV.prototype,"shouldUseModernUi",null);
_.q([_.eN(".fade-container"),_.x("design:type",Object)],pV.prototype,"fadeContainers",void 0);_.q([_.y(),_.x("design:type",Array)],pV.prototype,"correctnessAnimationProps",void 0);_.q([_.b("explanation","showCorrectAnswer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pV.prototype,"showExplanation",null);_.q([_.b("isChannelOwner","isAttempted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pV.prototype,"showCorrectAnswer",null);
_.q([_.b("isChannelOwner","isAttempted","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pV.prototype,"isQuizAnsweringDisabled",null);_.q([_.b("isQuizAnsweringDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],pV.prototype,"endpointStyle",null);_.q([_.b("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pV.prototype,"isAttempted",null);
_.q([_.b("data","selectedItemIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],pV.prototype,"explanation",null);_.q([_.b("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pV.prototype,"isCorrect",null);_.q([_.fr("ytd-expander"),_.x("design:type",Object)],pV.prototype,"expander",void 0);_.q([_.fr("#quiz-votes"),_.x("design:type",Object)],pV.prototype,"quizVotes",void 0);
_.q([_.Gm("explanation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pV.prototype,"onExplanationChanged",null);_.q([_.Gm("data","isChannelOwner"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pV.prototype,"dataChanged",null);_.q([_.Fv("yt-comment-quiz-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],pV.prototype,"onYtCommentPollRevert",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],pV.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pV.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],pV);
_.L(pV,"ytd-backstage-quiz-renderer",function(){if(OeU!==void 0)return OeU;var D=document.createElement("template");_.w(D,'\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-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return OeU=D},{mode:1});var Ytz;var EX=function(){return _.N.apply(this,arguments)||this};
_.n(EX,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],EX.prototype,"data",void 0);_.q([_.h({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],EX);
_.L(EX,"ytd-post-uploaded-video-renderer",function(){if(Ytz!==void 0)return Ytz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ytz=D},{mode:1});var RLL;var gG=function(){return _.N.apply(this,arguments)||this};
_.n(gG,_.N);gG.prototype.useFilledIcons=function(D){return D==="SPONSORSHIP_STAR"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gG.prototype,"data",void 0);_.q([_.h({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],gG);
var Zsz=_.WL()(gG,"ytd-sponsors-only-badge-renderer",function(){if(RLL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);RLL=D}D=RLL;return D},{allowedProps:["data"],
mode:1});var tl_;var dG=function(){return _.N.apply(this,arguments)||this};
_.n(dG,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],dG.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dG.prototype,"data",void 0);_.q([_.h({is:"ytd-child-video-renderer",disableElementRegistration:!0})],dG);
_.L(dG,"ytd-child-video-renderer",function(){if(tl_!==void 0)return tl_;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return tl_=D},{mode:1});var sfE;var X9D;var i6=function(){var D=_.N.apply(this,arguments)||this;D.size=0;D.enableWebModernCollectionsV2=_.f("web_modern_collections_v2");D.fallbackImageSize={height:void 0,width:9999};D.webModernCollections=!1;return D};
_.n(i6,_.N);_.u=i6.prototype;_.u.computeBlurredImageSize=function(D){return D?{height:D*2,width:D*2}:this.fallbackImageSize};
_.u.computeImageSize=function(D){return D?{height:D,width:D}:this.fallbackImageSize};
_.u.computeObjectFit=function(D){return D?"FILL":"CONTAIN"};
_.u.computePreserve=function(D){return D?!0:!1};
_.u.setBackground=function(){var D,Y;_.f("web_modern_collections_v2")&&((D=this.data)==null?0:(Y=D.thumbnail)==null?0:Y.sampledThumbnailColor)&&(D=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+D.red+","+D.green+","+D.blue+",1)")};
i6.prototype.setBackground=i6.prototype.setBackground;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],i6.prototype,"watchFeedThumbnail",void 0);_.q([_.y(),_.x("design:type",Object)],i6.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],i6.prototype,"size",void 0);
_.q([_.y({computed:"computeBlurredImageSize(size)"}),_.x("design:type",Object)],i6.prototype,"blurredImageSize",void 0);_.q([_.y({computed:"computeImageSize(size)"}),_.x("design:type",Object)],i6.prototype,"imageSize",void 0);_.q([_.y({computed:"computePreserve(size)"}),_.x("design:type",String)],i6.prototype,"preserve",void 0);_.q([_.y({computed:"computeObjectFit(size)"}),_.x("design:type",String)],i6.prototype,"objectFit",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],i6.prototype,"enableWebModernCollectionsV2",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],i6.prototype,"webModernCollections",void 0);_.q([_.Gm("data.thumbnail.sampledThumbnailColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i6.prototype,"setBackground",null);_.q([_.h({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],i6);
_.L(i6,"ytd-playlist-custom-thumbnail-renderer",function(){if(X9D!==void 0)return X9D;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return X9D=D},{mode:1});var utE;var OX=function(){return _.N.apply(this,arguments)||this};
_.n(OX,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],OX.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],OX.prototype,"width",void 0);_.q([_.h({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],OX);
_.L(OX,"ytd-playlist-video-thumbnail-renderer",function(){if(utE!==void 0)return utE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return utE=D},{mode:1});var a$U;var cV=function(){return _.N.apply(this,arguments)||this};
_.n(cV,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],cV.prototype,"width",void 0);_.q([_.h({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],cV);
_.L(cV,"ytd-show-custom-thumbnail-renderer",function(){if(a$U!==void 0)return a$U;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return a$U=D},{mode:1});var Mlb;var DI=function(){return _.N.apply(this,arguments)||this};
_.n(DI,_.N);DI.prototype.useFilledIcons=function(D){return D==="MUSIC"||D==="COURSE"};
DI.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=PG(this.overlayColor,"0.8");else if(this.overlayColor){var D=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+D.red+","+D.green+","+D.blue+",0.8)"}};
_.YF.Object.defineProperties(DI.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)}}});
DI.prototype.overlayColorChanged=DI.prototype.overlayColorChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DI.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],DI.prototype,"overlayColor",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],DI.prototype,"overlayStyle",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],DI.prototype,"overlayTextStyle",null);_.q([_.Gm("overlayColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],DI.prototype,"overlayColorChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],DI);
_.L(DI,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Mlb!==void 0)return Mlb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Mlb=D},{mode:1});var C2_;var Yk=function(){var D=_.N.apply(this,arguments)||this;D.active=!1;return D};
_.n(Yk,_.N);Yk.prototype.computeIsSpinnerHidden=function(D){return(D==null?void 0:D.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Yk.prototype.computeOverlayIcon=function(D){return(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yk.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Yk.prototype,"active",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Yk);
_.L(Yk,"ytd-thumbnail-overlay-downloading-renderer",function(){if(C2_!==void 0)return C2_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return C2_=D},{mode:1});var WnL;var R2=function(){return _.N.apply(this,arguments)||this};
_.n(R2,_.N);_.YF.Object.defineProperties(R2.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],R2.prototype,"data",void 0);_.q([_.b("data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],R2.prototype,"text",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],R2);
_.L(R2,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(WnL!==void 0)return WnL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return WnL=D},{mode:1});var zL4,StY=function(){if(zL4!==void 0)return zL4;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return zL4=D};var ZI=function(){return _.N.apply(this,arguments)||this};
_.n(ZI,_.N);_.YF.Object.defineProperties(ZI,{template:{configurable:!0,enumerable:!0,get:function(){return StY()}}});
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],ZI.prototype,"animateEqualizer",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ZI);_.WL()(ZI,"ytd-thumbnail-overlay-equalizer",function(){return StY()},{allowedProps:["animateEqualizer"],
mode:1});var TNz;var tz=function(){var D=_.N.apply(this,arguments)||this;D.nowPlayingBadge=_.f("web_now_playing_badge");D.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return D};
_.n(tz,_.N);tz.prototype.activeChanged=function(){var D=this;_.f("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.cy(this,function(){_.MX(D.hostElement,"yt-playlist-lockup-now-playing-active",D)})};
tz.prototype.onMiniplayerPlayStateChanged=function(D){var Y,R=(Y=_.A(_.AG().currentEndpoint,_.Od))==null?void 0:Y.videoId;this.isVideoPlaying=D&&(_.f("web_limit_now_playing_animation_killswitch")||this.videoId===R)};
tz.prototype.activeChanged=tz.prototype.activeChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],tz.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tz.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],tz.prototype,"isVideoPlaying",void 0);_.q([_.y(),_.x("design:type",String)],tz.prototype,"videoId",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],tz.prototype,"equalizerOnly",void 0);_.q([_.y(),_.x("design:type",Boolean)],tz.prototype,"isActive",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],tz.prototype,"nowPlayingBadge",void 0);_.q([_.Gm("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tz.prototype,"activeChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],tz);
_.L(tz,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(TNz!==void 0)return TNz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return TNz=D},{mode:1});var jfL;var sB=function(){return _.N.apply(this,arguments)||this};
_.n(sB,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sB.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],sB);
_.L(sB,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(jfL!==void 0)return jfL;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jfL=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var I$L;var XC=function(){return _.N.apply(this,arguments)||this};
_.n(XC,_.N);XC.prototype.onDurationChanged=function(){var D,Y;_.aU(this.hostElement).querySelector("#progress").style.width=((Y=(D=this.data)==null?void 0:D.percentDurationWatched)!=null?Y:0)+"%"};
XC.prototype.onDurationChanged=XC.prototype.onDurationChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],XC.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XC.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],XC.prototype,"isLive",void 0);_.q([_.Gm("data.percentDurationWatched"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XC.prototype,"onDurationChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],XC);
_.L(XC,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(I$L!==void 0)return I$L;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return I$L=D},{mode:1});var Fn4;var uY=function(){var D=_.N.apply(this,arguments)||this;D.bottomPanel=!1;D.richGridOverlay=!1;D.watchFeedOverlay=!1;D.isCompact=!1;return D};
_.n(uY,_.N);uY.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.YF.Object.defineProperties(uY.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.icon)==null?void 0:Y.iconType)==="PLAY_ALL"&&_.f("kevlar_system_icons")}}});
uY.prototype.widthChanged=uY.prototype.widthChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uY.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],uY.prototype,"width",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uY.prototype,"bottomPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uY.prototype,"richGridOverlay",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uY.prototype,"watchFeedOverlay",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uY.prototype,"isCompact",void 0);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uY.prototype,"isIconFilled",null);_.q([_.Gm("width","watchFeedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uY.prototype,"widthChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],uY);
_.L(uY,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(Fn4!==void 0)return Fn4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Fn4=D},{mode:1});var GvD;var VlD=["CLIP","SHORTS"],a2=function(){var D=_.N.apply(this,arguments)||this;D.animated=_.f("animated_live_badge_icon");D.hasIcon=!1;D.updateTimerIntervalId=0;D.timeSinceLive=0;return D};
_.n(a2,_.N);_.u=a2.prototype;_.u.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.u.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.u.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.u.hasIconOrText=function(){var D,Y;return!!(((D=this.data)==null?0:D.icon)||((Y=this.data)==null?0:Y.text))};
_.u.initializeLiveBadgeTimer=function(){var D=this,Y,R=(Y=this.liveBadgeData)==null?void 0:Y.startTimestampSec;if(R&&this.canShowLiveBadgeTimer()){var Z;Y=Number((Z=this.liveBadgeData)==null?void 0:Z.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(R);this.updateTimerIntervalId=_.Cv(function(){D.canShowLiveBadgeTimer()?D.timeSinceLive++:(D.timeSinceLive=0,window.clearInterval(D.updateTimerIntervalId))},Y)}else this.timeSinceLive=0};
_.u.canShowLiveBadgeTimer=function(){var D=Date.now(),Y,R;return D<(Number((Y=this.liveBadgeData)==null?void 0:Y.endTimestampSec)-1)*1E3&&D>Number((R=this.liveBadgeData)==null?void 0:R.startTimestampSec)*1E3};
_.YF.Object.defineProperties(a2.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data;var Y=this.timeSinceLive;var R,Z,t,X;a:{var M=D.style;if(M===void 0)M=17;else switch(M){case "LIVE":M=18;break a;default:M=17}}Y={type:M,text:Y?SnU({seconds:Y}):_.OM(D.text),accessibilityText:(R=D.text)==null?void 0:(Z=R.accessibility)==null?void 0:(t=Z.accessibilityData)==null?void 0:t.label,icon:(X=D.icon)==null?void 0:X.iconType}}else Y={};return Y}},
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 D;return(D=this.data)==null?void 0:D.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 VlD.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
a2.prototype.initializeLiveBadgeTimer=a2.prototype.initializeLiveBadgeTimer;a2.prototype.dataChanged=a2.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],a2.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],a2.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],a2.prototype,"icon",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],a2.prototype,"animated",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.x("design:type",Boolean)],a2.prototype,"hideTimeStatus",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],a2.prototype,"hasIcon",void 0);_.q([_.y(),_.x("design:type",Object)],a2.prototype,"timeSinceLive",void 0);_.q([_.b("data","timeSinceLive"),_.x("design:type",Object),_.x("design:paramtypes",[])],a2.prototype,"badgeShapeData",null);
_.q([_.b("data","overlayType"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],a2.prototype,"hideBadgeShape",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a2.prototype,"dataChanged",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],a2.prototype,"overlayStyle",null);
_.q([_.b("data.liveBadgeData"),_.x("design:type",Object),_.x("design:paramtypes",[])],a2.prototype,"liveBadgeData",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.type"),_.x("design:type",Object),_.x("design:paramtypes",[])],a2.prototype,"overlayType",null);_.q([_.b("overlayType","overlayStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],a2.prototype,"useFilledIcon",null);
_.q([_.rd("liveBadgeData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a2.prototype,"initializeLiveBadgeTimer",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],a2);
_.L(a2,"ytd-thumbnail-overlay-time-status-renderer",function(){if(GvD!==void 0)return GvD;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return GvD=D},{mode:_.zD("kevlar_poly_si_batch_j035")?1:2});var f$z;var ML=function(){return _.N.apply(this,arguments)||this};
_.n(ML,_.N);ML.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"}}}}};
ML.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(D){if(this.hasPlaybackProgressBar)return{percentDurationWatched:D.percentDurationWatched}};
ML.prototype.computeHasPlaybackProgressBar=function(D){return!!D.percentDurationWatched&&D.percentDurationWatched>0};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ML.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.x("design:type",Boolean)],ML.prototype,"hasPlaybackProgressBar",void 0);
_.q([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],ML);
_.L(ML,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(f$z!==void 0)return f$z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return f$z=D},{mode:1});var eLb;var Ab7=_.RT(function(D){var Y=D.data;var R=D.children;var Z=function(){return!!Y().doubleStack},t=function(){return!!Y().includeStackHeight};
return _.S("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!Y().experimentEnabled}},_.S(_.T,{cond:Y,
then:function(){var X={};return _.S(_.c_,null,_.S(_.T,{cond:t,then:function(){var M={};return _.S("div",{class:_.e7("collections-stack-wiz__spacer",(M["collections-stack-wiz__spacer--double-stack"]=Z,M))})}}),_.S("div",{class:_.e7((X["collections-stack-wiz__relative-stack"]=t,X))},_.S(_.T,{cond:Z,
then:function(){var M={};return _.S("div",{class:_.e7("collections-stack-wiz__collection-stack2",function(){return Y().customClassName2ndStack},(M["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return Y().enableResponsiveMode},M)),
style:_.Ap({"background-color":function(){return Vlb(Y())}})})}}),_.S("div",{class:_.e7("collections-stack-wiz__collection-stack1",function(){return Y().customClassName1stStack},function(){return Gvb(Y().thumbnailSize?Y().thumbnailSize:"medium")}),
style:_.Ap({"background-color":function(){return Vlb(Y())}})}),R))}}))},"U");_.at(Ab7,"yt-collections-stack",{props:{data:_.cs}});var Ca=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};D.webModernCollections=!1;D.isSearch=!1;D.isDoubleStack=!1;D.thumbnailSize="medium";D.enableWebModernCollectionsV2=_.f("web_modern_collections_v2");return D};
_.n(Ca,_.N);_.u=Ca.prototype;
_.u.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]]"}}}}}};
_.u.getThumbnailDetails=function(D){if(D!=null&&D.thumbnailRenderer){var Y=D.thumbnailRenderer,R;if((R=Y.playlistVideoThumbnailRenderer)==null?0:R.thumbnail)return Y.playlistVideoThumbnailRenderer.thumbnail;var Z;if((Z=Y.playlistCustomThumbnailRenderer)==null?0:Z.thumbnail)return Y.playlistCustomThumbnailRenderer.thumbnail;D=D.thumbnailRenderer;var t;if((t=D.showCustomThumbnailRenderer)==null?0:t.thumbnail)return D.showCustomThumbnailRenderer.thumbnail}};
_.u.computeOverlayColor=function(D){var Y,R;if((Y=this.getThumbnailDetails(D))==null?0:(R=Y.darkColorPalette)==null?0:R.section2Color)return this.getThumbnailDetails(D).darkColorPalette.section2Color;var Z;return(Z=this.getThumbnailDetails(D))==null?void 0:Z.sampledThumbnailColor};
_.u.computeWebModernCollections=function(D){if(D==null||!D.thumbnailOverlays)return!1;D=_.a(D.thumbnailOverlays);for(var Y=D.next();!Y.done;Y=D.next()){var R=void 0;if((R=Y.value)==null?0:R.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.u.computeNavigationEndpoint=function(D){return BpM(D==null?void 0:D.navigationEndpoint)};
_.YF.Object.defineProperties(Ca.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:D==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:D==null?void 0:D.vibrantColorPalette,darkColorPalette:D==null?void 0:D.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ca.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(l5D),_.x("design:type",Object)],Ca.prototype,"ytdThumbnailBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Ca.prototype,"componentBehavior",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ca.prototype,"watchFeedThumbnail",void 0);_.q([_.y(),_.x("design:type",Number)],Ca.prototype,"customThumbnailSize",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],Ca.prototype,"hideAria",void 0);_.q([_.y(),_.x("design:type",Object)],Ca.prototype,"data",void 0);_.q([_.y({computed:"computeOverlayColor(data)"}),_.x("design:type",Object)],Ca.prototype,"overlayColor",void 0);
_.q([_.y({computed:"computeWebModernCollections(data)"}),_.x("design:type",Object)],Ca.prototype,"webModernCollections",void 0);_.q([_.y({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],Ca.prototype,"computedNavigationEndpoint",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ca.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ca.prototype,"isDoubleStack",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Ca.prototype,"thumbnailSize",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ca.prototype,"enableWebModernCollectionsV2",void 0);_.q([_.b("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ca.prototype,"collectionStack",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Ca);
_.L(Ca,"ytd-playlist-thumbnail",function(){if(eLb!==void 0)return eLb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return eLb=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var naV;var W1=function(){var D=_.N.apply(this,arguments)||this;D.noEndpoints=!1;D.amsterdamPostMvp=_.f("web_amsterdam_post_mvp_playlists");D.badges=[];D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.n(W1,_.N);_.u=W1.prototype;_.u.getMetadata=function(D){if(!D)return[];var Y=[],R=D.shortViewCountText||D.viewCountText;R&&Y.push(_.OM(R));D.publishedTimeText&&Y.push(_.OM(D.publishedTimeText));D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&Y.push(_.lI(_.OM(D.upcomingEventData.upcomingEventText),Number(D.upcomingEventData.startTime)));return Y};
_.u.observeDataForBylineSeparator=function(){this.data&&_.Cr(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.u.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.HG(this.metadataColor)};
_.u.getSimpleString=function(D){return _.OM(D)};
_.u.isBylineHidden=function(D){return this.noByline||!((D==null?0:D.longBylineText)||(D==null?0:D.shortBylineText))};
_.u.isMetadataHidden=function(D){var Y;return((Y=this.getMetadata(D))==null?void 0:Y.length)===0};
_.u.isBylineMetadataSeparatorHidden=function(D){return this.isMetadataHidden(D)||!this.shouldShowVideoInfo};
_.u.isLongByline=function(D,Y){return Y&&!(D==null||!D.longBylineText)};
_.YF.Object.defineProperties(W1.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var D;return this.amsterdamPostMvp&&!((D=this.data)==null||!D.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}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
W1.prototype.metadataColorChanged=W1.prototype.metadataColorChanged;W1.prototype.observeDataForBylineSeparator=W1.prototype.observeDataForBylineSeparator;_.q([_.v(_.mb),_.x("design:type",Object)],W1.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],W1.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],W1.prototype,"noEndpoints",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"isSlimShort",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"radioMeta",void 0);_.q([_.y({selector:_.mI}),_.x("design:type",Object)],W1.prototype,"isGridViewEnabled",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"richMeta",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],W1.prototype,"amsterdamPostMvp",void 0);_.q([_.y(),_.x("design:type",Boolean)],W1.prototype,"noByline",void 0);
_.q([_.y({computed:"isLongByline(data, radioMeta)"}),_.x("design:type",Boolean)],W1.prototype,"longByline",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"truncateMetadataLine",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"miniMode",void 0);_.q([_.y(),_.x("design:type",Number)],W1.prototype,"metadataColor",void 0);_.q([_.y(),_.x("design:type",Array)],W1.prototype,"badges",void 0);
_.q([_.y({selector:_.mW,selectorArgs:["data.videoId"]}),_.x("design:type",String)],W1.prototype,"transferState",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"isDownloading",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],W1.prototype,"typographyBump",void 0);_.q([_.fr("#metadata-line"),_.x("design:type",HTMLElement)],W1.prototype,"metadataLine",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W1.prototype,"observeDataForBylineSeparator",null);_.q([_.Gm("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W1.prototype,"metadataColorChanged",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],W1.prototype,"shouldShowVideoInfo",null);
_.q([_.b("badges"),_.x("design:type",String),_.x("design:paramtypes",[])],W1.prototype,"inlineBadgeClass",null);_.q([_.b("longByline"),_.x("design:type",String),_.x("design:paramtypes",[])],W1.prototype,"longBylineClass",null);_.q([_.b("data","longByline"),_.x("design:type",Object),_.x("design:paramtypes",[])],W1.prototype,"bylineText",null);_.q([_.b("isGridViewEnabled","data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W1.prototype,"watchFeedBigThumbs",null);
_.q([_.h({is:"ytd-video-meta-block",disableElementRegistration:!0})],W1);
_.L(W1,"ytd-video-meta-block",function(){if(naV!==void 0)return naV;var D=document.createElement("template");_.w(D,'\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    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return naV=D},{mode:_.zD("kevlar_poly_si_batch_j080")?1:2});_.UD("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var zq=function(){var D=_.N.apply(this,arguments)||this;D.displayItemCount=2;D.isBackstagePlaylist=!1;D.isPostCompactPlaylist=!1;D.shouldShowChannelThumbnail=!1;D.useModernCollectionsV2=_.f("web_modern_collections_v2");return D};
_.n(zq,_.N);_.u=zq.prototype;_.u.computeFirstVideos=function(D,Y){return D===void 0||Y===void 0?[]:D.slice(0,Y)};
_.u.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var D=this.data.thumbnailRenderer;D.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",D.playlistVideoThumbnailRenderer.thumbnail);D.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",D.playlistCustomThumbnailRenderer.thumbnail)}};
_.u.computeThumbnailHeight=function(D,Y,R,Z,t){return Z?t==="BIG"?280:t==="MASSIVE"?337:234:R?240:Y?72:D?118:138};
_.u.computeThumbnailWidth=function(D,Y,R,Z,t){return Z?t==="MEDIUM"?450:t==="BIG"?500:t==="MASSIVE"?600:420:R?360:Y?128:D?210:246};
_.u.computeUseBiggerThumbs=function(D){return D&&_.f("enable_desktop_search_bigger_thumbs")};
_.u.computeShouldShowChannelThumbnail=function(D,Y){return D&&!(Y==null||!Y.channelThumbnail)};
_.YF.Object.defineProperties(zq.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
zq.prototype.dataChanged=zq.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],zq.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],zq.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],zq.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],zq.prototype,"displayItemCount",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zq.prototype,"isBackstagePlaylist",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zq.prototype,"isPostCompactPlaylist",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zq.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.x("design:type",Boolean)],zq.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],zq.prototype,"biggerThumbsStyle",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zq.prototype,"isDownloads",void 0);_.q([_.y({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.x("design:type",Object)],zq.prototype,"shouldShowChannelThumbnail",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zq.prototype,"useModernCollectionsV2",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zq.prototype,"dataChanged",null);_.q([_.b("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],zq.prototype,"stackThumbnailSize",null);_.q([_.h({is:"ytd-playlist-renderer",disableElementRegistration:!0})],zq);
_.L(zq,"ytd-playlist-renderer",function(){if(sfE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);sfE=D}D=sfE;return D},{mode:1});var rbU;var w9V;var S6=function(){var D=_.N.apply(this,arguments)||this;D.collections=!!_.f("web_modern_collections_v2");D.startX=0;return D};
_.n(S6,_.N);S6.prototype.onEndpointMouseDown=function(D){this.startX=D.clientX};
S6.prototype.onEndpointClick=function(D){this.startX!==D.clientX&&(D.preventDefault(),D.stopPropagation())};
S6.prototype.computeObjectFit=function(D){return D==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
S6.prototype.computeCardStyle=function(D){return D?D.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.YF.Object.defineProperties(S6.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var D,Y;return this.collections&&((D=this.data)==null?void 0:(Y=D.searchRefinementCardRendererStyle)==null?void 0:Y.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],S6.prototype,"data",void 0);_.q([_.y({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",Number)],S6.prototype,"objectFit",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",String)],S6.prototype,"cardStyle",void 0);
_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],S6.prototype,"roundContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],S6.prototype,"collections",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],S6.prototype,"isAlbumCard",null);_.q([_.b("data","collections","isAlbumCard"),_.x("design:type",Object),_.x("design:paramtypes",[])],S6.prototype,"collectionStack",null);
_.q([_.h({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],S6);
_.L(S6,"ytd-search-refinement-card-renderer",function(){if(w9V!==void 0)return w9V;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return w9V=D},{mode:1});var $G_;var Tq=function(){var D=_.N.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.n(Tq,_.N);_.q([_.y(),_.x("design:type",Object)],Tq.prototype,"data",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Tq.prototype,"componentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Tq.prototype,"ytdReduxBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Tq.prototype,"isRichGrid",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],Tq.prototype,"miniMode",void 0);
_.q([_.h({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Tq);
_.L(Tq,"ytd-game-details-renderer",function(){if($G_!==void 0)return $G_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $G_=D},{mode:1});var vaE;var oaL;var j6=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return D};
_.n(j6,_.N);_.u=j6.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.currentStateData=function(D){var Y=D||this.data;return Y&&Y.states&&Y.currentStateId!=null?Y.states.find(function(R){return R.stateId===Y.currentStateId})||null:null};
_.u.currentStateRendererData=function(D){return(D=this.currentStateData(D))&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.u.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())};
_.u.computeButtonIcon=function(D){D=this.currentStateRendererData(D);var Y;return(D==null?0:(Y=D.icon)==null?0:Y.iconType)?D.icon.iconType.toLowerCase():null};
_.u.computeAccessibility=function(D){return(D=this.currentStateRendererData(D))&&D.accessibilityData?D.accessibilityData.accessibilityData||null:null};
_.u.computeButtonClass=function(D){var Y=this.currentStateRendererData(D);if(!Y)return"";D="";var R=Y.style;R&&(D+=R.toLowerCase().replace(/_/g,"-")+" ");(Y=Y.size)&&(D+=Y.toLowerCase().replace(/_/g,"-")+" ");return D.trim()};
_.u.computeServiceEndpoint=function(D){if(!D)return null;var Y=D&&D.serviceEndpoint,R=this.get("command.commandMetadata.webCommandMetadata.sendPost",D);return Y?Y:R&&D.command?D.command:null};
_.u.computeBellMenuItemParams=function(D){var Y;D=(Y=_.A(D==null?void 0:D.command,_.je))==null?void 0:Y.commands;if(!D||D.length===0)return null;Y=_.A(D[0],_.bS);var R,Z;return(Y==null?0:(R=Y.popup)==null?0:(Z=R.menuPopupRenderer)==null?0:Z.items)?Y.popup.menuPopupRenderer.items.map(function(t){return t.menuServiceItemRenderer.trackingParams}):null};
_.u.handleBellMenuOpenSelectedAction=function(D){var Y=D.trackingParams,R=this.computeBellMenuItemParams(this.data);this.data&&Y&&R&&R.includes(Y)&&this.ytRenderButtonBehavior._setButtonIcon(D.icon.iconType.toLowerCase())};
_.u.onYtServiceRequestCompleted=function(D,Y){(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Y))&&this.set("data",D)};
_.u.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.u.resetState=function(){this.set("data.currentStateId",3)};
_.u.onYtButtonTapHandler=function(){if(this.data){var D=this.currentStateRendererData(this.data);D&&this.ytRendererBehavior.logExplicitClick(D)}};
j6.prototype.onYtServiceRequestError=j6.prototype.onYtServiceRequestError;j6.prototype.onYtServiceRequestCompleted=j6.prototype.onYtServiceRequestCompleted;j6.prototype.stateChanged=j6.prototype.stateChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],j6.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v($t.YtRenderButtonBehavior),_.x("design:type",Object)],j6.prototype,"ytRenderButtonBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],j6.prototype,"data",void 0);_.q([_.rd("data","data.currentStateId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j6.prototype,"stateChanged",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],j6.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j6.prototype,"onYtServiceRequestError",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],j6);
_.L(j6,"ytd-subscription-notification-toggle-button-renderer",function(){if(oaL!==void 0)return oaL;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return oaL=D},{mode:1});var bsL;var I2=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};D.tapHandler=function(){if(D.data){var Y=D.currentStateRendererData();Y&&D.ytRendererBehavior.logExplicitClick(Y)}};
return D};
_.n(I2,_.N);_.u=I2.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.currentStateData=function(){var D=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(Y){return Y.stateId===D.data.currentStateId})||null:null};
_.u.currentStateRendererData=function(){var D=this.currentStateData();return D&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.u.computeAccessibilityLabel=function(){var D,Y,R;return(D=this.currentStateRendererData())==null?void 0:(Y=D.accessibilityData)==null?void 0:(R=Y.accessibilityData)==null?void 0:R.label};
_.u.computeBellMenuItemParams=function(){var D,Y,R=(Y=_.A((D=this.data)==null?void 0:D.command,_.je))==null?void 0:Y.commands;if(!R||R.length===0)return null;D=_.A(R[0],_.bS);var Z,t;return(D==null?0:(Z=D.popup)==null?0:(t=Z.menuPopupRenderer)==null?0:t.items)?D.popup.menuPopupRenderer.items.map(function(X){return X.menuServiceItemRenderer.trackingParams}):null};
_.u.handleBellMenuOpenSelectedAction=function(D){var Y=D.trackingParams,R=this.computeBellMenuItemParams();if(this.data&&Y&&R&&R.includes(Y)&&(D==null||!D.isDisabled)){var Z;((Z=_.A(D.serviceEndpoint,_.Fa))==null?void 0:Z.signal)!=="CLIENT_SIGNAL"&&(this.icon=D.icon.iconType)}};
_.u.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.u.onYtServiceRequestCompleted=function(D,Y){if(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Y))this.icon=void 0,this.set("data",D)};
_.u.onYtServiceRequestError=function(){this.icon=void 0};
_.YF.Object.defineProperties(I2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data,Y=this.textLabel,R=this.hostElement,Z=this.computeAccessibilityLabel(),t=this.tapHandler,X=this.isOverlay?"overlay":"mono",M=(D==null?0:D.disableButton)?"disabled":"active";Y=Y?_.K8(Y):void 0;return{style:X,type:"tonal",state:M,size:"M",focused:!1,formattedButtonText:Y,iconPosition:"leading-trailing",onTap:eLi(D,t,R),accessibilityLabel:Z}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.currentStateRendererData(),Y,R,Z=(R=this.icon)!=null?R:D==null?void 0:(Y=D.icon)==null?void 0:Y.iconType;if(Z)return _.IT(Z)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.secondaryIcon)==null?void 0:Y.iconType;if(R)return _.IT(R)}}});
I2.prototype.onYtServiceRequestError=I2.prototype.onYtServiceRequestError;I2.prototype.onYtServiceRequestCompleted=I2.prototype.onYtServiceRequestCompleted;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],I2.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],I2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],I2.prototype,"textLabel",void 0);
_.q([_.y(),_.x("design:type",String)],I2.prototype,"icon",void 0);_.q([_.y(),_.x("design:type",Boolean)],I2.prototype,"isOverlay",void 0);_.q([_.b("data.*","textLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],I2.prototype,"computedButtonShape",null);_.q([_.b("data.*","icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],I2.prototype,"computedIcon",null);_.q([_.b("computedIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],I2.prototype,"computedAnimateIcon",null);
_.q([_.b("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],I2.prototype,"computedSecondaryIcon",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],I2.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],I2.prototype,"onYtServiceRequestError",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],I2);
_.L(I2,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(bsL!==void 0)return bsL;var D=document.createElement("template");_.w(D,'\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 bsL=D},{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var ybL;_.at(yWY,"yt-animated-action",{props:{backgroundLottieRef:_.cs,foregroundLottieRef:_.cs,wrapperClass:_.cs,disableAnimation:_.cs},unsafeExternallySettableAttributes:new Set(["key"])});var FC=function(){var D=_.N.apply(this,arguments)||this;D.animatedActionEnabled=_.f("web_animated_actions");D.foregroundLottieRef={};D.backgroundLottieRef={};D.forceIconOnly=!1;D.showTextWhileAnimating=!1;D.keyboardFocused=!1;D.isAnimating=!1;D.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return D};
_.n(FC,_.N);_.u=FC.prototype;_.u.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.u.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]]"}}}}}};
_.u.attached=function(){this.keyboardFocused=!1};
_.u.onYtServiceRequestSent=function(D,Y){(this.get("endpoint.subscribeEndpoint",Y)||this.get("endpoint.unsubscribeEndpoint",Y))&&this.updateSubscriptionState(!this.subscribed)};
_.u.onYtServiceRequestCompleted=function(D,Y){(D=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",Y.data))&&this.bellButton&&(this.bellButton.data=D)};
_.u.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.SN(this.hostElement)};
_.u.onPlayerSubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.u.onPlayerUnsubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||this.updateSubscriptionState(!1)};
_.u.handleUpdateSubscribeButtonAction=function(D){D=_.A(D,xZV);var Y;D&&D.channelId===((Y=this.data)==null?void 0:Y.channelId)&&this.updateSubscriptionState(!!D.subscribed)};
_.u.computeButtonStyle=function(D){return this.get("style.styleType",D)||null};
_.u.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.u.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.u.updateSubscriptionState=function(D){if(D!==this.subscribed){this.set("data.subscribed",D);var Y,R=(Y=this.data)==null?void 0:Y.subscribedEntityKey;R&&this.ytdReduxBehavior.dispatch(_.oP("subscriptionStateEntity",R,{key:R,subscribed:D}));this.isCompactRed()||_.MX(this.hostElement,"yt-subscription-changed",D);D||(_.CX(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!D),D&&this.hasBellButton&&this.startAnimation())}};
_.u.startAnimation=function(){var D=this;if(!this.isAnimating){var Y=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var R;(R=this.backgroundLottieRef.lottieEl)==null||R.goToAndPlay(0);var Z;(Z=this.foregroundLottieRef.lottieEl)==null||Z.goToAndPlay(0);_.yc.addJob(function(){D.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.yc.addJob(function(){D.updateContainerToFitContent(!!D.subscribed,!0)},2,1500);
_.yc.addJob(function(){D.isAnimating=!1},2,Y)}};
_.u.maybeAnimateBellIcon=function(){var D=_.MB(this.hostElement).querySelector("yt-animated-icon");if(D){var Y;(Y=D.animationRef.lottieEl)==null||Y.goToAndPlay(0)}};
_.u.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.u.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.u.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var D;this.unsubscribedWidth=(D=this.subscribeButtonShape)==null?void 0:D.getBoundingClientRect().width}var Y;this.subscribedWidth=(Y=this.bellButton)==null?void 0:Y.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.u.updateContainerToFitContent=function(D,Y){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(D?(D=this.subscribedWidth,Y=this.isAnimating&&!Y,this.subscribedIconOnlyWidth===void 0||Y||(D=this.subscribedIconOnlyWidth),this.hostElement.style.width=D+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.u.clearContainerSize=function(){this.hostElement.style.width=""};
_.u.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.u.maybeSetSubscribedButtonIconOnlyWidth=function(){var D=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 Y;D.subscribedIconOnlyWidth=(Y=D.bellButton)==null?void 0:Y.getBoundingClientRect().width;requestAnimationFrame(function(){if(D.bellButton){var R;D.bellButton.textLabel=
(R=D.data)==null?void 0:R.subscribedButtonText}})})))};
_.YF.Object.defineProperties(FC.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 D;return(D=this.data)==null?void 0:D.subscribedButtonText}var Y;return this.forceIconOnly?void 0:(Y=this.data)==null?void 0:Y.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=((D=this.data)==null?void 0:(Y=D.timedAnimationData)==null?void 0:Y.animationTiming)||[];return{uniqueId:"subscribe",timings:R,enabled:R.length>0&&!this.subscribed,experimentEnabled:R.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!this.subscribed&&((D=this.data)==null?void 0:D.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 D={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var Y=D.renderer;var R=D.element;var Z=D.subscribed;var t=D.commandController;var X=D.isOverlay;D=D.stopPropagation;var M=w9U(Y,Z);X&&(M.style="overlay");X=Object;var W=X.assign,z;a:switch((z=Y.style)==null?void 0:z.styleType){case "COMPACT_GRAY":case "COMPACT_RED":z={size:"S"};break a;default:z={size:"M"}}var I=rb$(Y,
Z);var F=(F=Z?Y.subscribedButtonText:Y.unsubscribedButtonText)?_.K8(F):void 0;return W.call(X,{},M,z,{focused:!1,toggled:Z,accessibilityLabel:I,formattedButtonText:F,onTap:naU(Y,Z,R,t,D)})}}}});
FC.prototype.onMouseDown=FC.prototype.onMouseDown;FC.prototype.onDataChanged=FC.prototype.onDataChanged;FC.prototype.observedSubscribed=FC.prototype.observedSubscribed;FC.prototype.onYtServiceRequestCompleted=FC.prototype.onYtServiceRequestCompleted;FC.prototype.onYtServiceRequestSent=FC.prototype.onYtServiceRequestSent;FC.prototype.maybeUpdateBellButtonText=FC.prototype.maybeUpdateBellButtonText;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],FC.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],FC.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],FC.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],FC.prototype,"data",void 0);
_.q([_.y({selectorArgs:["data.subscribedEntityKey"],selector:yAU}),_.x("design:type",Object)],FC.prototype,"subscriptionStateEntity",void 0);_.q([_.y({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.x("design:type",Boolean)],FC.prototype,"subscribed",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],FC.prototype,"branded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],FC.prototype,"animatedActionEnabled",void 0);
_.q([_.y(),_.x("design:type",Object)],FC.prototype,"foregroundLottieRef",void 0);_.q([_.y(),_.x("design:type",Object)],FC.prototype,"backgroundLottieRef",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],FC.prototype,"overlayButton",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.x("design:type",Object)],FC.prototype,"buttonStyle",void 0);_.q([_.y(),_.x("design:type",Object)],FC.prototype,"forceIconOnly",void 0);
_.q([_.y(),_.x("design:type",Object)],FC.prototype,"showTextWhileAnimating",void 0);_.q([_.y({value:function(){return!!_.DH().resolve(_.cD(_.MQ))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],FC.prototype,"useKeyboardFocused",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],FC.prototype,"keyboardFocused",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],FC.prototype,"isAnimating",void 0);_.q([_.b("data.notificationPreferenceButton.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"hasBellButton",null);
_.q([_.Gm("subscribedButtonText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FC.prototype,"maybeUpdateBellButtonText",null);_.q([_.b("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"subscribedButtonText",null);_.q([_.b("data.timedAnimationData.animationTiming","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"smartimationSettings",null);
_.q([_.y({reflectToAttribute:!0}),_.b("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"subscribeButtonHidden",null);_.q([_.y({reflectToAttribute:!0}),_.b("subscribed","hasBellButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"subscribeButtonInvisible",null);
_.q([_.y({reflectToAttribute:!0}),_.b("subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"unsubscribeButtonHidden",null);_.q([_.fr("ytd-subscription-notification-toggle-button-renderer-next"),_.x("design:type",Object)],FC.prototype,"bellButton",void 0);_.q([_.fr("#subscribe-button-shape"),_.x("design:type",HTMLElement)],FC.prototype,"subscribeButtonShape",void 0);
_.q([_.b("overlayButton","subscribed","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],FC.prototype,"buttonShape",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],FC.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],FC.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Gm("subscribed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FC.prototype,"observedSubscribed",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FC.prototype,"onDataChanged",null);_.q([_.Fv("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],FC.prototype,"onMouseDown",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],FC);
_.L(FC,"ytd-subscribe-button-renderer",function(){if(ybL!==void 0)return ybL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ybL=D},{mode:1});var Gq=function(){var D=_.N.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.n(Gq,_.N);Gq.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gq.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gq.prototype,"isRichGrid",void 0);_.q([_.h({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Gq);
_.L(Gq,"ytd-game-card-renderer",function(){if(vaE!==void 0)return vaE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return vaE=D},{mode:1});var VP={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.f("defer_menus")&&!Inz?0:void 0,waitForSignal:"eocs"};var NNL;var l$D;var fa=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return D};
_.n(fa,_.N);_.u=fa.prototype;_.u.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.u.onSeriesReminderStateEntityChange=function(){var D,Y,R;((D=this.eventReminderStateEntity)==null?0:D.key)&&((Y=this.seriesReminderStateEntity)==null?void 0:Y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((R=this.eventReminderStateEntity)==null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.oP("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.u.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.u.onYtServiceRequestError=function(){var D;this.updateReminderStateEntitiesFromButtonState((D=this.data)==null?void 0:D.currentState)};
_.u.handleUpdateUpcomingEventReminderButtonStateCommand=function(D){if(D=_.A(D,MFU)){var Y,R=(Y=this.data)==null?void 0:Y.targetId;R&&D.targetId===R&&_.BE(this.updateReminderStateEntitiesFromButtonState.bind(this,D.state))}};
_.u.getButtonStateFromReminderState=function(){var D;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var Y;if(((Y=this.eventReminderStateEntity)==null?void 0:Y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var R,Z;if(((R=this.seriesReminderStateEntity)==null?void 0:R.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Z=this.eventReminderStateEntity)==
null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var t;return(t=this.data)==null?void 0:t.currentState};
_.u.updateReminderStateEntitiesFromButtonState=function(D){if(D){switch(D){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":D="UPCOMING_EVENT_REMINDER_STATE_NONE";var Y="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":D="UPCOMING_EVENT_REMINDER_STATE_SINGLE";Y="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":D="UPCOMING_EVENT_REMINDER_STATE_NONE";Y="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var R;
((R=this.eventReminderStateEntity)==null?0:R.key)&&this.ytdReduxBehavior.dispatch(_.oP("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:D})));var Z;((Z=this.seriesReminderStateEntity)==null?0:Z.key)&&this.ytdReduxBehavior.dispatch(_.oP("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:Y})))}};
_.YF.Object.defineProperties(fa.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.getButtonStateFromReminderState(),Y,R;if(D&&((Y=this.data)==null?0:(R=Y.states)==null?0:R.length))for(Y=_.a(this.data.states),R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;if(((Z=_.A(R,Csz))==null?void 0:Z.state)===D)return _.A(R,Csz)}}}});
fa.prototype.onYtServiceRequestError=fa.prototype.onYtServiceRequestError;fa.prototype.onYtServiceRequestCompleted=fa.prototype.onYtServiceRequestCompleted;fa.prototype.onSeriesReminderStateEntityChange=fa.prototype.onSeriesReminderStateEntityChange;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],fa.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],fa.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fa.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:lN9}),_.x("design:type",Object)],fa.prototype,"eventReminderStateEntity",void 0);
_.q([_.y({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(D,Y){return _.jC(D.entities,"sportsSeriesReminderStateEntity",Y)}}),
_.x("design:type",Object)],fa.prototype,"seriesReminderStateEntity",void 0);_.q([_.b("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],fa.prototype,"currentButtonStateRenderer",null);_.q([_.Gm("seriesReminderStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fa.prototype,"onSeriesReminderStateEntityChange",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fa.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fa.prototype,"onYtServiceRequestError",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],fa);
_.L(fa,"ytd-upcoming-event-reminder-button-renderer",function(){if(l$D!==void 0)return l$D;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return l$D=D},{mode:1});var JbU;var e6=function(){return _.N.apply(this,arguments)||this};
_.n(e6,_.N);e6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.YF.Object.defineProperties(e6.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(_.f("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],e6.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],e6.prototype,"shelfDismissal",void 0);_.q([_.b("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],e6.prototype,"text",null);
_.q([_.b("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],e6.prototype,"textAriaLabel",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],e6);
_.L(e6,"ytd-notification-multi-action-renderer",function(){if(JbU!==void 0)return JbU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return JbU=D},{mode:1});var kvY;var Az=function(){return _.N.apply(this,arguments)||this};
_.n(Az,_.N);Az.prototype.ready=function(){var D=this;_.aU(this.hostElement).querySelector("#undo").addEventListener("tap",function(){D.onUndoTap()})};
Az.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Az.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Az);
_.L(Az,"ytd-notification-text-renderer",function(){if(kvY!==void 0)return kvY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return kvY=D},{mode:1});var UGz;var na=function(){var D=_.N.apply(this,arguments)||this;D.mouseOverDelayJobId=0;D.fadeInImageDelayJobId=0;D.startTimeMs=-1;D.loadingStartTimeMs=-1;D.loadingEndTimeMs=-1;D.hasVideoPreview=!1;return D};
_.n(na,_.N);_.u=na.prototype;_.u.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.u.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.u.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.u.showThumbnail=function(){var D=this;this.csn=_.K2();_.h4("fmth");_.yc.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.S7(_.yc,function(){D.loadingStartTimeMs=(0,_.DO)();var Y=_.aU(D.hostElement).querySelector("#thumbnail");Y.complete?D.displayMouseOverImage():Y.addEventListener("load",_.jN(D,D.displayMouseOverImage))},150):_.Cr(_.aU(this.hostElement).querySelector("#play"),"show",!0)};
_.u.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.u.onTap=function(){this.removeVideoPreview()};
_.u.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var D=this.videoId,Y=this.csn,R=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Z=this.startTimeMs,t=this.hasVideoPreview,X=_.oT(this.trackingParams),M={isMovingThumbnail:t};t&&Z>0&&(R>0&&(M.movingThumbnailLoadingDurationMs=Math.round(R)),M.durationHoveredMs=Math.round((0,_.DO)()-Z));D&&(M.videoId=D);_.ii(Y,X,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:M});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.u.removeVideoPreview=function(){_.yc.cancelJob(this.mouseOverDelayJobId);_.yc.cancelJob(this.fadeInImageDelayJobId);var D=_.aU(this.hostElement).querySelector("#thumbnail");_.Cr(D,"fade-in",!1);D.removeEventListener("load",_.jN(this,this.displayMouseOverImage));D=_.aU(this.hostElement).querySelector("#play");_.Cr(D,"fade-in",!1);_.Cr(D,"show",!1)};
_.u.displayMouseOverImage=function(){var D=_.aU(this.hostElement).querySelector("#thumbnail"),Y=_.aU(this.hostElement).querySelector("#play");this.isImageAvailable(D)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.DO)(),this.startTimeMs=(0,_.DO)(),this.fadeInImageDelayJobId=_.S7(_.yc,function(){_.Cr(D,"fade-in",!0)},50)):_.Cr(Y,"fade-in",!0)};
_.u.computeThumbnail=function(D,Y){var R;D&&D.movingThumbnailDetails&&D.movingThumbnailDetails.thumbnails&&Y?R=_.MW(D.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):R=Y?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(R)return _.Jf(R)};
_.u.isImageAvailable=function(D){return!(!D.src||D.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||D.naturalWidth===120)};
na.prototype.onTap=na.prototype.onTap;na.prototype.dataChanged=na.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],na.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],na.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],na.prototype,"csn",void 0);_.q([_.y(),_.x("design:type",Object)],na.prototype,"trackingParams",void 0);
_.q([_.y(),_.x("design:type",String)],na.prototype,"videoId",void 0);_.q([_.y(),_.x("design:type",Boolean)],na.prototype,"isAttachedAndDataSet",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],na.prototype,"dataChanged",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],na.prototype,"onTap",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],na);
_.L(na,"ytd-moving-thumbnail-renderer",function(){if(UGz!==void 0)return UGz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return UGz=D},{mode:1});var KnL;_.aa=function(D){this.hostElement=D;this.eventSink=null;this.eventList=[]};
_.aa.prototype.shouldForward=function(){var D,Y;return(Y=(D=this.eventSink)==null?void 0:D.isConnected)!=null?Y:document.body.contains(this.eventSink)};
_.aa.prototype.start=function(D,Y){this.eventSink&&this.stop();for(var R=0;R<D.length;R++)this.hostElement.addEventListener(D[R],_.jN(this,this.forwardEvent));var Z;this.eventSink=(Z=Y.hostElement)!=null?Z:Y;this.eventList=D};
_.aa.prototype.stop=function(){for(var D=0;D<this.eventList.length;D++)this.hostElement.removeEventListener(this.eventList[D],_.jN(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.aa.prototype.forwardEvent=function(D,Y){this.shouldForward()&&(D.stopPropagation(),this.eventSink instanceof Element?_.MX(this.eventSink,D.type,Y):_.Jk(new _.AT("eventSink is not an element")))};_.rO={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.aa(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(D,Y){this.forwarder_.start(D,Y)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var wO=function(){return _.N.apply(this,arguments)||this};
_.n(wO,_.N);_.u=wO.prototype;_.u.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=_.JQ("HTML_DIR")==="rtl"?"right":"left"};
_.u.dataChanged=function(){this.popupOpen=!1};
_.u.computeAriaLabel=function(D){return _.A(D,Wcz).label};
_.u.onTap=function(D){D.stopPropagation();D.preventDefault();this.data.command&&_.DH().resolve(_.Yw).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.u.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.u.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
wO.prototype.onPopupClosed=wO.prototype.onPopupClosed;wO.prototype.onPopupOpened=wO.prototype.onPopupOpened;wO.prototype.onTap=wO.prototype.onTap;wO.prototype.dataChanged=wO.prototype.dataChanged;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],wO.prototype,"eventForwardingBehavior",void 0);_.q([_.v(_.kl),_.x("design:type",Object)],wO.prototype,"ironButtonState",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],wO.prototype,"componentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],wO.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:-1}),_.x("design:type",Number)],wO.prototype,"tabindex",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.x("design:type",Object)],wO.prototype,"ariaLabel",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],wO.prototype,"disableTooltips",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],wO.prototype,"popupOpen",void 0);
_.q([_.y(),_.x("design:type",Element)],wO.prototype,"eventSink",void 0);_.q([_.fr("#tooltip"),_.x("design:type",Object)],wO.prototype,"tooltip",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wO.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wO.prototype,"onTap",null);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wO.prototype,"onPopupOpened",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wO.prototype,"onPopupClosed",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],wO);
_.L(wO,"ytd-thumbnail-overlay-button-renderer",function(){if(KnL!==void 0)return KnL;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return KnL=D},{mode:1});var hL4;var $k=function(){return _.N.apply(this,arguments)||this};
_.n($k,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$k.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],$k.prototype,"disableAnimation",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],$k.prototype,"rounded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],$k.prototype,"transparentBackground",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],$k.prototype,"noPadding",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],$k);
_.L($k,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(hL4!==void 0)return hL4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hL4=D},{mode:1});var LnU;var v1=function(){return _.N.apply(this,arguments)||this};
_.n(v1,_.N);v1.prototype.computeIconPosition=function(D){return this.get("iconPosition",D)||null};
v1.prototype.computeIconStyle=function(D){return this.get("iconStyle",D)||null};
v1.prototype.computeIsIconStyleFilled=function(D){if(!D)return!1;var Y;return D.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((Y=D.icon)==null?void 0:Y.iconType)==="ERROR_BLACK"};
_.q([_.y(),_.x("design:type",Object)],v1.prototype,"data",void 0);_.q([_.y({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.x("design:type",Object)],v1.prototype,"iconPosition",void 0);_.q([_.y({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.x("design:type",Object)],v1.prototype,"iconStyle",void 0);_.q([_.y({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],v1.prototype,"iconStyleFilled",void 0);
_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],v1);
_.L(v1,"ytd-thumbnail-overlay-icon-renderer",function(){if(LnU!==void 0)return LnU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return LnU=D},{mode:1});var mG4;var o2=function(){return _.N.apply(this,arguments)||this};
_.n(o2,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],o2.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],o2);
_.L(o2,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(mG4!==void 0)return mG4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return mG4=D},{mode:1});var qtE;var bY=function(){var D=_.N.apply(this,arguments)||this;D.isPreviewLoading=!1;return D};
_.n(bY,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],bY.prototype,"isPreviewLoading",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],bY);
_.L(bY,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(qtE!==void 0)return qtE;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qtE=D},{mode:1});var Hsb;var yP=function(){return _.N.apply(this,arguments)||this};
_.n(yP,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yP.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],yP);
_.L(yP,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Hsb!==void 0)return Hsb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Hsb=D},{mode:1});var xGV;var NL=function(){var D=_.N.apply(this,arguments)||this;D.disableTooltips=!1;D.isLoading=!1;D.useExpandableTooltip=!1;D.toggled=!1;D.hovered=!1;D.mouseoverDelayJobId=0;D.toggleDelayJobId=0;D.expandAnimationDelayJobId=0;return D};
_.n(NL,_.N);_.u=NL.prototype;_.u.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");_.aU(this.hostElement).querySelector("#tooltip").position=_.JQ("HTML_DIR")==="rtl"?"right":"left"};
_.u.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.yc.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.yc.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.yc.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.u.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.yc.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.yc.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.yc.cancelJob(this.expandAnimationDelayJobId)};
_.u.computeIcon=function(D,Y,R){return(D=R?Y:D)&&D.iconType?_.IT(D.iconType):void 0};
_.u.computeAriaLabel=function(D,Y,R){return _.A(R?Y:D,Wcz).label};
_.u.computeTooltip=function(D,Y,R){return R?Y:D};
_.u.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.u.computeIconOnHover=function(D,Y){if((D==null?0:D.iconType)&&!Y)return _.IT(D.iconType)};
_.u.onTap=function(D){var Y=this;D.stopPropagation();D.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(D),this.useExpandableTooltip&&(this.toggleDelayJobId=_.S7(_.yc,function(){Y.hovered=!1;Y.data&&!Y.data.toggledServiceEndpoint&&(Y.expandAnimationDelayJobId=_.S7(_.yc,function(){Y.set("data.isToggled",
!1)},200))},2E3))};
_.u.onMouseenter=function(){var D=this;this.mouseoverDelayJobId=_.S7(_.yc,function(){D.hovered=!0},300)};
_.u.onMouseleave=function(){_.yc.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.u.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.u.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.u.onServiceRequestCompleted=function(D,Y){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(Y)||this.set("data.isToggled",!this.data.isToggled)};
_.u.serviceRequestWasSuccessful=function(D){return _.A(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.hh)?D.data.status==="STATUS_SUCCEEDED":!0};
NL.prototype.onServiceRequestCompleted=NL.prototype.onServiceRequestCompleted;NL.prototype.onPopupClosed=NL.prototype.onPopupClosed;NL.prototype.onPopupOpened=NL.prototype.onPopupOpened;NL.prototype.onMouseleave=NL.prototype.onMouseleave;NL.prototype.dataChanged=NL.prototype.dataChanged;_.q([_.v(_.kl),_.x("design:type",Object)],NL.prototype,"ironButtonState",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],NL.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],NL.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],NL.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.x("design:type",Object)],NL.prototype,"ariaLabel",void 0);_.q([_.y(),_.x("design:type",Object)],NL.prototype,"disableTooltips",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],NL.prototype,"popupOpen",void 0);_.q([_.y(),_.x("design:type",Object)],NL.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Element)],NL.prototype,"eventSink",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],NL.prototype,"useExpandableTooltip",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.x("design:type",Object)],NL.prototype,"toggled",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],NL.prototype,"hovered",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.x("design:type",Object)],NL.prototype,"iconOnHover",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NL.prototype,"dataChanged",null);
_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NL.prototype,"onMouseleave",null);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NL.prototype,"onPopupOpened",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NL.prototype,"onPopupClosed",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],NL.prototype,"onServiceRequestCompleted",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],NL);
_.L(NL,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(xGV!==void 0)return xGV;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xGV=D},{mode:_.zD("kevlar_poly_si_batch_j053")?1:2});var P2L;var Qf_=_.RT(function(D){var Y=D.data;var R=D.thumbnailSize;var Z=function(){return Y().enableSegmentView};
return _.S("yt-thumbnail-overlay-progress-bar-view-model",{class:_.e7("ytThumbnailOverlayProgressBarHost",function(){return $GU(R==null?void 0:R())})},_.S(_.T,{cond:Z,
then:function(){return _.S("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.S("div",{class:_.kc("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+Y().startPercent+"%"}}),_.S("div",{class:_.kc("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+Y().segmentDurationPercent+"%"}},_.S("div",{class:_.kc("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.S("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.S("div",null," ",function(){return Y().segmentLabel})),_.S("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.S("div",{class:_.kc("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.S(_.T,{cond:function(){return!Z()&&Y().startPercent},
then:function(){var t={};return _.S("div",{class:_.kc("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(t.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.f("web_enable_modern_progress_bar_overlay"),t))},_.S("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+Y().startPercent+"%"}}))}}))},"V");
Qf_.idomCompat=!0;var BNE=_.RT(function(D){var Y=_.FU(),R=_.qW(function(t){var X,M,W;a:{var z=(X=D.data())==null?void 0:X.animationActivationTargetId;X=((M=D.data())==null?void 0:M.animationActivationEntityKey)||"";M=(W=D.data())==null?void 0:W.animationActivationEntitySelectorType;if(X&&z)switch(M){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":t=_.jC(t.entities,"playerStateEntity",X);W=_.DH().resolve(_.cD(_.mL));z=!!(t&&t.videoId===z&&(W==null?0:W.isMiniplayerActive()));z={activated:z,playAnimation:z&&
t.playerState==="PLAYER_STATE_PLAYING"};break a}z=void 0}return z});
_.r2(function(){var t;if((t=R())==null?0:t.activated){var X;if((X=R())==null?0:X.playAnimation){var M;(M=Y.lottieEl)==null||M.goToAndPlay(0)}else{var W;(W=Y.lottieEl)==null||W.goToAndStop(0)}}},"MDTl2e");
var Z=function(){var t,X=!((t=R())==null||!t.activated);if(D.data()){t=D.data();var M=void 0;t.icon&&(M=_.jVU(t.icon),M=Ayo(M));var W=void 0,z;if((z=t.backgroundColor)==null?0:z.lightTheme){var I;W={backgroundColor:PG((I=t.backgroundColor)==null?void 0:I.lightTheme,"0.8")}}if(t.text||M||X){if(X&&t.lottieData&&Y){I=t.lottieData;var F,G,V;z={animationConfig:{name:I.url,path:I.url,autoplay:(F=I.settings)==null?void 0:F.autoplay,loop:(V=(G=I.settings)==null?void 0:G.loop)!=null?V:!0},animationRef:Y}}else z=
void 0;if(X)F=17;else b:switch(t.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":F=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":F=19;break b;default:F=17}X={type:F,text:X&&t.animatedText?t.animatedText:t.text,icon:M,customColors:W,animation:z}}else X=void 0}else X=void 0;return X};
return _.S("yt-thumbnail-badge-view-model",{class:_.e7("yt-thumbnail-badge-view-model-wiz",D.class)},_.S(_.T,{cond:Z,then:function(){return _.S(_.mT,{data:function(){return Z()}})}}))},"W");var p9U=_.RT(function(D){var Y={},R={};return _.S("yt-thumbnail-bottom-overlay-view-model",{class:_.e7("ytThumbnailBottomOverlayViewModelHost",(Y.ytThumbnailBottomOverlayViewModelHostBackground=function(){return D.data().enableGradientBackground},Y))},_.S(_.vK,{data:function(){return D.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(Z){return _.S(Qf_,{data:Z.data,
thumbnailSize:D.thumbnailSize})}}),_.S("div",{class:_.e7("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var Z;
return van((Z=D.thumbnailSize)==null?void 0:Z.call(D))},(R.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var Z;
return(Z=D.isClip)==null?void 0:Z.call(D)},R.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var Z;
return!_.f("web_enable_modern_progress_bar_overlay")&&((Z=D.thumbnailSize)==null?void 0:Z.call(D))==="small"},R))},_.S(_.vK,{data:function(){return D.data().badge}},{thumbnailBadgeViewModel:function(Z){return _.S(BNE,{data:Z.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.S(_.vK,{data:function(){return D.data().badges}},{thumbnailBadgeViewModel:function(Z){return _.S(BNE,{data:Z.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"X");
p9U.idomCompat=!0;_.at(p9U,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.uq,thumbnailSize:_.uq,isClip:_.uq}});var hLo={calledOnce:!1,state:"visible"},Ln$={calledOnce:!1,state:"hidden"};var lY=_.RT(function(D){var Y=D.data;var R=D.className;D=D.alwaysShow;var Z=_.yby(),t={};return _.S("thumbnail-hover-overlay-view-model",{el:_.tp(_.mp(function(){return Y().rendererContext})),
class:_.e7("ytThumbnailHoverOverlayViewModelHost",R,(t.ytThumbnailHoverOverlayViewModelHostForceHover=D,t)),"aria-label":function(){var X;return(X=_.A(Y().rendererContext,_.ny))==null?void 0:X.label},
role:function(){return _.hx(Y().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.hx(Y().rendererContext)!==void 0?0:void 0},
"on:keypress":Z},_.S("div",{class:_.e7("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(Y().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}return X})},_.S(_.T,{cond:function(){return Y().icon},
then:function(X){return _.S(_.Rt,{data:X,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.S(_.T,{cond:function(){return Y().text},
then:function(X){return _.S(_.y_,{text:X,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Y");
lY.idomCompat=!0;var EaL=_.RT(function(D){var Y=D.data;return _.S(_.vK,{data:function(){return Y==null?void 0:Y().overlays}},{thumbnailHoverOverlayViewModel:lY})},"Z");
EaL.idomCompat=!0;var gaE={};var dGL=_.RT(function(D){var Y=D.data;var R=D.image;var Z=D.state;var t=D.iconType;var X=D.overlays;var M=D.isOverlay;var W=_.io("div");D=_.a(_.ae(!0,void 0,"sUzEZ"));var z=D.next().value,I=D.next().value,F=function(){return!!Y().onTap},G=_.DX(t,"LIVE");
_.r2(function(){var e=Y();requestAnimationFrame(function(){if(W.value===null)var r=!0;else{var l=W.value;r=e.badgeText;var U=Hsi(e.size);r in gaE?l=gaE[r]:(l=l.clientWidth,gaE[r]=l);(r=l>U)?W.value.style.display="none":W.value.style.visibility="visible"}I(r)})},"SpVcNb");
var V=function(){var e={};return e["yt-spec-avatar-shape__image"]=!0,e["yt-spec-avatar-shape__image--ads-app"]=Y().type===1,e};
return _.S("yt-avatar-shape",null,_.S("div",{el:_.tp(P2M(F,{keydown:function(e){if(e.key==="Enter"){var r;(r=e.currentTarget)==null||r.click()}},
click:function(e){var r,l;return void((l=(r=Y()).onTap)==null?void 0:l.call(r,e))}})),
class:function(){var e={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},r=Y();e=(e[r.clusterLayoutConfig?p99(r.clusterLayoutConfig):EaM(r.size)]=!0,e["yt-spec-avatar-shape__button--tappable"]=F(),e);(r=Y().avatarButtonCustomClassName)&&(e[r]=!0);return _.kc(e)},
"aria-label":function(){return F()?Y().accessibilityText:""},
role:function(){return F()?"button":void 0},
tabindex:function(){return F()?0:void 0}},_.S("div",{class:function(){var e,r=Y(),l=Z==null?void 0:Z(),U=M==null?void 0:M(),K=!((e=r.decorations)==null||!e.includes(2)||r.size!=="medium"&&r.size!=="large"),H=r.size==="tiny"||r.size==="extra-small",c,Q,E,B,O={};
e=(O["yt-spec-avatar-shape--live-ring"]=!!(((c=r.decorations)==null?0:c.includes(0))&&dGM(r.size)),O["yt-spec-avatar-shape--stories-watched"]=K&&!(l==null||!l.storiesWatched),O["yt-spec-avatar-shape--stories-unwatched"]=K&&!(l==null?0:l.storiesWatched),O["yt-spec-avatar-shape--background-border"]=iso(r.decorations)&&!H,O["yt-spec-avatar-shape--background-border-thin"]=iso(r.decorations)&&H,O["yt-spec-avatar-shape__on-select-border"]=!((Q=r.decorations)==null||!Q.includes(4)),O["yt-spec-avatar-shape__white-border"]=
!((E=r.decorations)==null||!E.includes(5)),O["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((B=r.decorations)==null?0:B.includes(5))&&H),O["yt-spec-avatar-shape--is-overlay"]=!!U,O);return _.kc(e)},
style:function(){a:{var e=Y().clusterLayoutConfig;if(e){b:{var r=e.numAvatarsInCluster;var l=e.avatarIndex;if(l!==r-1){switch(e.clusterSize){case "small":e="32";break;case "medium":e="36";break;case "40":e="40";break;default:r=void 0;break b}r="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+e+"x"+e+"_avatars_"+r+"_index_"+l+".svg"}else r=void 0}if(r){r=_.Ap({"-webkit-mask-image":"url("+r+")","mask-image":"url("+r+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}r=void 0}return r}},_.S("div",{class:function(){var e={};
var r=Y();e=(e[r.clusterLayoutConfig?QfU(r.clusterLayoutConfig):BNU(r.size)]=!0,e["yt-spec-avatar-shape--no-margin"]=iso(Y().decorations),e);return _.kc(e)}},_.S(_.Rt,{data:R,
alt:function(){return!F()&&Y().accessibilityText?Y().accessibilityText:""},
targetWidth:function(){return gan(Y().size)},
targetHeight:function(){return gan(Y().size)},
className:function(){return _.kc(V())}}),_.S(_.T,{cond:function(){var e;
return((e=Y().decorations)==null?void 0:e.includes(0))&&dGM(Y().size)},
then:function(){return _.S("div",{class:function(){var e={};e=(e["yt-spec-avatar-shape__live-badge"]=!0,e["yt-spec-avatar-shape__live-badge--badge-small"]=Y().size==="small",e["yt-spec-avatar-shape__live-badge--badge-medium"]=Y().size==="medium"||Y().size==="48",e["yt-spec-avatar-shape__live-badge--badge-large"]=Y().size==="large",e["yt-spec-avatar-shape__live-badge--badge-extra-large"]=Y().size==="extra-large"||Y().size==="extra-extra-large"||Y().size==="giant",e);return _.kc(e)}},_.S(_.T,{cond:function(){return Y().badgeText},
then:function(e){return _.S("div",{class:"yt-spec-avatar-shape__badge-text",el:W},e)}}),_.S(_.T,{cond:z,
then:function(){return _.S("div",{class:"yt-spec-avatar-shape__badge-icon"},_.S(_.nB,{icon:G,size:function(){a:switch(Y().size){case "extra-large":var e=16;break a;default:e=13}return e}}))}}))}}),_.S(_.T,{cond:function(){var e,r;
return((e=Y().decorations)==null?void 0:e.includes(1))||((r=Y().decorations)==null?void 0:r.includes(0))&&!dGM(Y().size)},
then:function(){return _.S("div",{class:function(){var e=Y(),r,l,U={};var K=(U["yt-spec-avatar-shape__live-dot"]=!((r=e.decorations)==null||!r.includes(0)||dGM(e.size)),U["yt-spec-avatar-shape__new-content"]=!((l=e.decorations)==null||!l.includes(1)),U);return _.kc(K)}})}}),_.S(_.T,{cond:function(){return!!X},
then:function(){return _.S("div",{class:function(){var e={};e=Object.assign((e["yt-spec-avatar-shape__image-overlays"]=!0,e),V());return _.kc(e)}},X==null?void 0:X())}})))))},"$");
dGL.idomCompat={callbacks:{overlays:!0}};_.Jz=_.RT(function(D){function Y(){R().endpoint&&_.BL(R().endpoint)}
var R=D.data;var Z=D.decorations;var t=D.avatarButtonCustomClassName;var X=D.isOverlay;var M=D.clusterLayoutConfig;return _.S("avatar-view-model",null,_.S(_.T,{cond:function(){return R().image},
then:function(W){return _.S(dGL,{data:function(){return cbo({data:R(),onTap:R().endpoint?Y:void 0,decorations:Z==null?void 0:Z(),badgeText:void 0,accessibilityText:R().accessibilityText,avatarButtonCustomClassName:t==null?void 0:t(),clusterLayoutConfig:M==null?void 0:M()})},
image:W,iconType:"RADAR_LIVE",overlays:function(){return _.S(EaL,{data:R})},
isOverlay:X})}}))},"aa");
_.Jz.idomCompat=!0;_.kk=_.RT(function(D){var Y=D.data;D=D.className;var R=_.io("yt-decorated-avatar-view-model"),Z=function(){return _.A(Y().avatar,_.qP)},t=_.Si(function(){var X,M=Y(),W=Z(),z=_.hx(Y().rendererContext),I=(X=R.value)!=null?X:void 0,F;
if(W){I={data:M,avatar:W,onTap:z,element:I};X=I.data;M=I.avatar;W=I.onTap;z=I.element;I=I.commandController;W=W?Z3S(W,z,I):void 0;z=[];X.liveData&&z.push(0);var G;I=(G=X.liveData)==null?void 0:G.liveBadgeText;G=(F=_.A(X.rendererContext,_.ny))==null?void 0:F.label;F=cbo({data:M,onTap:W,decorations:z,badgeText:I,accessibilityText:G?G:X.a11yLabel})}else F={size:"medium"};return F},void 0,"H8tk9d");
return _.S("yt-decorated-avatar-view-model",{class:_.e7("yt-decorated-avatar-view-model-wiz",D),el:R},_.S(_.T,{cond:function(){var X;return(X=Z())==null?void 0:X.image},
then:function(X){return _.S(dGL,{data:t,image:X,iconType:"RADAR_LIVE",overlays:function(){return _.S(EaL,{data:Z})}})}}))},"ba");
_.kk.idomCompat=!0;_.UB=_.RT(function(D){var Y=function(){var W;return Object.assign({},D.data(),(W=D.overrides)==null?void 0:W.call(D))},R=function(){return _.LH(Y().rendererContext)},Z=function(){var W=Y().avatars,z,I;
return(I=(z=(W==null?0:W[0])?_.A(W[0],_.qP):void 0)==null?void 0:z.avatarImageSize)!=null?I:"AVATAR_SIZE_UNKNOWN"},t=function(){return RV5(Y())},X=function(){if(Y().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var W=void 0;
else if((W=D.decorations)==null?0:W.call(D))W=D.decorations();else{W=Y();var z=0;W.avatars&&(z+=W.avatars.length);W.decoratedText&&(z+=1);W=z>1?[3]:[]}return W},M={};
return _.S("yt-avatar-stack-view-model",{el:_.tp(_.mp(function(){return Y().rendererContext})),
class:_.e7("yt-avatar-stack-view-model-wiz",D.className,(M["yt-avatar-stack-view-model-wiz--tappable"]=R,M["yt-avatar-stack-view-model-wiz--is-overlay"]=D.isOverlay,M["yt-avatar-stack-view-model-wiz--medium-text"]=D.useMediumText,M)),tabindex:function(){return R()?0:void 0},
role:function(){return R()?"link":void 0},
"aria-label":function(){var W,z;return(z=(W=_.A(Y().rendererContext,_.ny))==null?void 0:W.label)!=null?z:""}},_.S(_.T,{cond:function(){var W;
return Y().avatars&&!((W=D.hideAvatar)==null?0:W.call(D))},
then:function(){return _.S("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.S(_.T,{cond:function(){return Y().decoratedText},
then:function(W){var z={};return _.S("div",{class:_.e7("yt-avatar-stack-view-model-wiz__text-container",(z["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS"},z["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var I;
return((I=D.isOverlay)==null?void 0:I.call(D))&&(Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS")},z)),
style:_.Ap({width:function(){return t().avatarSizeInPx+"px"},
height:function(){return t().avatarSizeInPx+"px"}})},_.S(_.y_,{text:W,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.S("div",{style:function(){return _.Ap(t().avatarStackStyle)()},
class:function(){return t().avatarStackClass}},_.S(_.vK,{data:function(){return t().avatars.reverse()}},{avatarViewModel:function(W,z){return _.S("div",{style:function(){var I,F;
return _.Ap((F=(I=t()).avatarStyle)==null?void 0:F.call(I,z()))()},
class:function(){return t().avatarClass}},_.S(_.Jz,{data:W.data,
decorations:X,avatarButtonCustomClassName:function(){return t().avatarButtonCustomClassName},
isOverlay:D.isOverlay,clusterLayoutConfig:function(){var I,F;return(F=(I=t()).clusterLayoutConfig)==null?void 0:F.call(I,z())}}))},
decoratedAvatarViewModel:function(W,z){return _.S("div",{style:function(){var I,F;return _.Ap((F=(I=t()).avatarStyle)==null?void 0:F.call(I,z()))()},
class:function(){return t().avatarClass}},_.S(_.kk,{data:W.data}))}})))}}),_.S(_.T,{cond:function(){return Y().text},
then:function(W){return _.S(_.y_,{text:W,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ca");
_.UB.idomCompat=!0;_.at(_.RT(function(D){var Y=D.data;var R=D.thumbnailSize;return _.S("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.S("div",{class:_.e7("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return tzM(R==null?void 0:R())})},_.S(_.vK,{data:function(){return Y().avatarStack}},{avatarStackViewModel:function(Z){return _.S(_.UB,{data:Z.data,
decorations:[5]})}})))},"da"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.cs,
thumbnailSize:_.cs}});var is4=_.RT(function(D){D=_.YC(D,{hidden:!1});var Y=D.data;return _.S("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:D.hidden},_.S(_.y_,{text:function(){return Y().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(){return _.S(_.y_,{text:function(){return Y().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"ea");
is4.idomCompat=!0;_.at(is4,"yt-thumbnail-overlay-title-view-model",{props:{data:_.cs,hidden:_.cs}});var Os1=_.RT(function(D){D=_.YC(D,{isClip:!1});var Y=D.data,R=D.thumbnailSize,Z={};return _.S("yt-thumbnail-overlay-badge-view-model",{class:_.e7("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(Y().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var t="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:t="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return t},function(){return sYb(R==null?void 0:R())},(Z["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
D.isClip,Z))},_.S(_.vK,{data:function(){return Y().thumbnailBadges}},{thumbnailBadgeViewModel:function(t){return _.S(BNE,{data:t.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"fa");
Os1.idomCompat=!0;_.at(Os1,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.cs,thumbnailSize:_.cs,isClip:_.cs}});_.tN(Xwb);var cb4=_.RT(function(D){var Y=D.data;D=D.hidden;var R=_.Si(function(){return Y().indicatorCount||0},void 0,"ItxFlc"),Z={};
return _.S("yt-page-indicator-view-model",{class:_.e7("yt-page-indicator-view-model",(Z["yt-page-indicator-view-model__indicator--hidden"]=function(){return!Y().indicatorCount},Z)),
hidden:D},_.S(_.G6,{each:function(){return Array(R())}},function(t,X){var M={};
return _.S("div",{class:_.e7("yt-page-indicator-view-model__indicator",(M["yt-page-indicator-view-model__indicator--selected"]=function(){return Y().selectedIndex===X()},M))})}))},"ga"),DYz=_.f("mweb_enable_sink_page_indicator_view_model_ks")?Xwb:cb4,Y6E=_.f("mweb_enable_sink_page_indicator_view_model_ks")?_.Vv(Xwb):cb4;
cb4.idomCompat=!0;_.f("mweb_enable_sink_page_indicator_view_model_ks")?_.It(DYz,"yt-page-indicator-view-model",{propNames:["data","hidden"]}):_.at(Y6E,"yt-page-indicator-view-model",{props:{data:_.cs,hidden:_.cs}});var Ka=function(){var D=_.N.apply(this,arguments)||this;D.eventSink=function(){return D};
D.disableInteraction=!1;D.noRoundedCorners=!1;D.isPreviewLoading=!1;D.isOriginalAspectRatio=!1;D.computedObjectFit=!1;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return D};
_.n(Ka,_.N);_.u=Ka.prototype;
_.u.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:_.f("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"}}};
_.u.onImageLoaded=function(){this.loaded=!0};
_.u.onImageUnloaded=function(){this.loaded=!1};
_.u.computeRichThumbnail=function(D,Y,R,Z){if(D&&Y&&!Z&&!_.f("disable_moving_thumbs_handling")&&!R)return Y};
_.u.computeImageWidth=function(D,Y){return Y||9999};
_.u.computeIsOriginalAspectRatio=function(D){return D};
_.u.computeIsLive=function(D){if(D==null?0:D.badges)for(var Y=0;Y<D.badges.length;Y++){var R=D.badges[Y];if(R.metadataBadgeRenderer&&R.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(D==null?0:D.thumbnailOverlays)for(Y=0;Y<D.thumbnailOverlays.length;Y++)if(R=D.thumbnailOverlays[Y],R.thumbnailOverlayTimeStatusRenderer&&R.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.u.computeObjectFit=function(D,Y){return Y||(D?"CONTAIN":"")};
_.u.computeNavigationEndpoint=function(D,Y,R){return D?Y:R};
_.u.computeHasClip=function(D){D=_.a(D||[]);for(var Y=D.next();!Y.done;Y=D.next())if(Y.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.u.computeOverlayColor=function(D){var Y;return(D==null?0:(Y=D.darkColorPalette)==null?0:Y.section2Color)?D.darkColorPalette.section2Color:D==null?void 0:D.sampledThumbnailColor};
_.YF.Object.defineProperties(Ka.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return qT5(this.width)}}});
Ka.prototype.onImageUnloaded=Ka.prototype.onImageUnloaded;Ka.prototype.onImageLoaded=Ka.prototype.onImageLoaded;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ka.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(l5D),_.x("design:type",Object)],Ka.prototype,"ytdThumbnailBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Ka.prototype,"componentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Ka.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ka.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ka.prototype,"circular",void 0);
_.q([_.y({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.x("design:type",Object)],Ka.prototype,"richThumbnail",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.x("design:type",Boolean)],Ka.prototype,"hasClip",void 0);_.q([_.y(),_.x("design:type",Object)],Ka.prototype,"eventSink",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ka.prototype,"queued",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ka.prototype,"richGridThumbnail",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ka.prototype,"useExpandableTooltip",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ka.prototype,"useUntranslatedNavigationEndpoint",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ka.prototype,"disableInteraction",void 0);
_.q([_.y({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.x("design:type",Object)],Ka.prototype,"computedNavigationEndpoint",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ka.prototype,"nowPlayingEqualizerOnly",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ka.prototype,"hidePlaybackStatus",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Ka.prototype,"objectFit",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ka.prototype,"noRoundedCorners",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ka.prototype,"watchFeedThumbnail",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ka.prototype,"isPreviewLoading",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.x("design:type",Object)],Ka.prototype,"isOriginalAspectRatio",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.x("design:type",Object)],Ka.prototype,"computedObjectFit",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.x("design:type",Boolean)],Ka.prototype,"isLiveVideo",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ka.prototype,"loaded",void 0);_.q([_.y({computed:"computeOverlayColor(data.thumbnail)"}),_.x("design:type",Object)],Ka.prototype,"overlayColor",void 0);_.q([_.y({selector:_.Qin}),_.x("design:type",Boolean)],Ka.prototype,"inlinePreviewIsEnabled",void 0);_.q([_.y(),_.x("design:type",Number)],Ka.prototype,"width",void 0);
_.q([_.b("inlinePreviewIsEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ka.prototype,"isPreviewDisabled",null);_.q([_.b("width"),_.x("design:type",String),_.x("design:paramtypes",[])],Ka.prototype,"thumbnailSize",null);_.q([_.Fv("image-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ka.prototype,"onImageLoaded",null);
_.q([_.Fv("image-unloaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ka.prototype,"onImageUnloaded",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-thumbnail"})],Ka);
var RV7=_.WL()(Ka,"ytd-thumbnail",function(){if(P2L===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);P2L=D}D=P2L;return D},{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".split(" "),mode:2});var MzS=function(D){var Y=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14816_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14816_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(R){Z31(Y,R)};
this.onLockupMouseLeaveFn=function(R){R=R.relatedTarget;var Z,t;((Z=document.getElementsByTagName("ytd-video-preview"))==null?0:(t=Z.item(0))==null?0:t.contains(R))||(Y.terminateVideoPreview(),hz(Y))};
this.onThumbnailMouseDownFn=function(){Y.terminateVideoPreview();hz(Y)};
this.onTouchStart=function(){Y.JSC$14816_touched=!0};
this.mediaRenderer=D.mediaRenderer;this.thumbnailElement=D.thumbnailElement;this.lockupElement=D.lockupElement;this.videoPreviewOptsInput=D.videoPreviewOpts;tzL(this);La(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)):
_.Jk(Error("Ch")):_.Jk(Error("Dh")):sYD(this)},DF=function(D){sYD(D);
var Y;(Y=D.lockupElement)==null||Y.removeEventListener("mouseenter",D.onMouseMoveFn);var R;(R=D.lockupElement)==null||R.removeEventListener("mouseleave",D.onLockupMouseLeaveFn);var Z;(Z=D.lockupElement)==null||Z.removeEventListener("touchstart",D.onTouchStart);var t;(t=D.thumbnailElement)==null||t.removeEventListener("mousedown",D.onThumbnailMouseDownFn);hz(D)},tzL=function(D){D.inlinePreviewIsEnabledForUser=_.Dl().getState().ui.inlinePreviewIsEnabled;
D.unsubscribeFromInlinePreviewIsEnabled=_.rm(_.Dl(),_.Qin,function(Y){(D.inlinePreviewIsEnabledForUser=Y)||hz(D)});
D.JSC$14816_unsubscribeFromInlinePreviewIsActive=_.rm(_.Dl(),_.Psj,function(Y){(D.inlinePreviewIsActive=Y)||hz(D)})},sYD=function(D){D.unsubscribeFromInlinePreviewIsEnabled();
D.unsubscribeFromInlinePreviewIsEnabled=function(){};
D.JSC$14816_unsubscribeFromInlinePreviewIsActive();D.JSC$14816_unsubscribeFromInlinePreviewIsActive=function(){}},Z31=function(D,Y){Y.buttons>0||(Y=_.ZH("kevlar_lockup_hover_delay",-1),D.JSC$14816_touched&&Y>=0?(_.yc.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.S7(_.yc,function(){XwD(D)},Y),D.JSC$14816_touched=!1):XwD(D))},Z5l=function(D){D.videoPreviewJobId=_.S7(_.yc,function(){return _.C(function(Y){return Y.yield(u0L(D,{isAutoplay:!0}),0)})})},XwD=function(D){!D.previewTriggered&&La(D)&&
(D.inlinePreviewIsActive&&D.terminateVideoPreview(),D.previewTriggered=!0,D.mediaRenderer.isInlinePreviewTriggered=!0,_.yc.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.S7(_.yc,function(){return _.C(function(Y){return Y.yield(u0L(D),0)})}))},u0L=function(D,Y){Y=Y===void 0?{}:Y;
var R=Y.isAutoplay===void 0?!1:Y.isAutoplay;var Z,t,X,M;return _.C(function(W){if(W.nextAddress==1){if(!La(D))return W.return();Z=D.getVideoPreviewOpts();if(!Z)return W.return();R&&(Z.isAutoplay=!0);return(X=(t=_.WC(D.mediaRenderer.hostElement,"yt-open-video-preview-action",[Z]))&&t[0])?W.yield(t[0],3):W.jumpTo(2)}W.nextAddress!=2&&(X=W.yieldResult===1);if(X){var z=(M=D.mediaRenderer)==null?void 0:M.data;z&&(azl(z)?delete z.inlinePlayerData:"inlinePlaybackEndpoint"in z&&delete z.inlinePlaybackEndpoint)}_.V9(W)})};
MzS.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var D,Y;if((Y=(D=this.videoPreviewOptsInput)==null?void 0:D.videoPreviewData)!=null)D=Y;else if(D=this.mediaRenderer.data)if(azl(D))D={inlinePlaybackEndpoint:_.HL(D.inlinePlayerData.onVisible),navigationEndpoint:_.HL(D.onTap),thumbnail:"image"in D?D.image:D.thumbnail,thumbnailOverlays:void 0,accessibilityText:u0M(D)};else if("multipleInlinePlaybackEndpoint"in D){var R=_.A(_.A(D.multipleInlinePlaybackEndpoint,nOY),rmY);if(R!=
null&&R.playerDescriptors){Y=[];R=_.a(R.playerDescriptors);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,Y.push({inlinePlaybackEndpoint:Z.inlinePlaybackEndpoint,navigationEndpoint:Z.navigationEndpoint,thumbnail:Z.thumbnail,thumbnailOverlays:Z.thumbnailOverlays,accessibilityText:u0M(D)});D=Y}else D=void 0}else D={inlinePlaybackEndpoint:D.inlinePlaybackEndpoint,navigationEndpoint:D.navigationEndpoint,thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays,accessibilityText:u0M(D)};else D=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:D,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var La=function(D){var Y;if(Y=D.inlinePreviewIsEnabledForUser)Y=(D=D.mediaRenderer.data)?"inlinePlaybackEndpoint"in D&&D.inlinePlaybackEndpoint||azl(D)&&D.inlinePlayerData||"multipleInlinePlaybackEndpoint"in D&&D.multipleInlinePlaybackEndpoint?!0:!1:!1;return Y};
MzS.prototype.terminateVideoPreview=function(){_.CX(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var hz=function(D){_.yc.cancelJob(D.videoPreviewJobId);D.inlinePreviewIsActive=!1;D.previewTriggered=!1;D.mediaRenderer.isInlinePreviewTriggered=!1};var azz=_.gY(["#"]),me=function(){var D=_.N.apply(this,arguments)||this;D.isDisabled=!1;return D};
_.n(me,_.N);_.u=me.prototype;_.u.configureRendererStamper=function(){return{"data.menu":VP,"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"}}}};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.getMetadata=function(D){var Y=[];if(D.metadataText&&Object.keys(D.metadataText).length>0){var R=this.ytRendererBehavior.getSimpleString(D.metadataText);D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&(R=_.lI(R,Number(D.upcomingEventData.startTime)));Y.push(R)}else D.shortViewCountText&&Y.push(this.ytRendererBehavior.getSimpleString(D.shortViewCountText)),D.publishedTimeText&&Y.push(this.ytRendererBehavior.getSimpleString(D.publishedTimeText)),D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&
(R=this.ytRendererBehavior.getSimpleString(D.upcomingEventData.upcomingEventText),Y.push(_.lI(R,Number(D.upcomingEventData.startTime))));return Y};
_.u.calculateBylineText=function(D){return D.shortBylineText?D.shortBylineText:D.bylineText?D.bylineText:null};
_.u.calculateIsDisabled=function(D){return!!D.isDisabled};
_.u.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.O$$(azz)};
_.u.onDetailsTap=function(D){var Y=this.data&&this.data.navigationEndpoint;Y&&!_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.f("kevlar_grid_video_renderer_killswitch")?_.MX(this.hostElement,"yt-navigate",{endpoint:Y}):this.ytComponentBehavior.resolveCommand(Y))};
_.u.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14823_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:_.aU(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.aU(this.hostElement).querySelector("ytd-thumbnail")})};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$14823_inlinePreviewHoverListener)==null||DF(D)};
_.u.computeThumbnailWidth=function(D,Y){return Y&&Y>0?Y:D?360:210};
_.u.computeShowChannelThumbnail=function(D,Y){var R;return Y&&!!(D==null?0:(R=D.channelThumbnailSupportedRenderers)==null?0:R.channelThumbnailWithLinkRenderer)};
_.YF.Object.defineProperties(me.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$14823_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
me.prototype.dataChanged=me.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],me.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],me.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.gM),_.x("design:type",Object)],me.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],me.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],me.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],me.prototype,"noEndpoints",void 0);_.q([_.y({computed:"calculateBylineText(data)"}),_.x("design:type",Object)],me.prototype,"bylineText",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],me.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],me.prototype,"isDownloading",void 0);_.q([_.y({reflectToAttribute:!0,value:0}),_.x("design:type",Number)],me.prototype,"width",void 0);_.q([_.y({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.x("design:type",Object)],me.prototype,"isDisabled",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],me.prototype,"dataChanged",null);_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],me.prototype,"isHovered",null);_.q([_.h({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],me);
_.L(me,"ytd-grid-video-renderer",function(){if(NNL!==void 0)return NNL;var D=document.createElement("template");_.w(D,'\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" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" 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]]" 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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return NNL=D},{mode:_.zD("kevlar_poly_si_batch_j047")?1:2});var Mz1;var qL=function(){var D=_.N.apply(this,arguments)||this;D.roundedContainer=!0;D.skipRoundingTop=!1;D.disableTopPadding=!1;D.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return D};
_.n(qL,_.N);qL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
qL.prototype.onClick=function(D){var Y,R=(Y=this.data)==null?void 0:Y.sourceEndpoint;!_.Yc(_.O$(D),this.hostElement,["A".toString()])&&R&&_.MX(this.hostElement,"yt-navigate",{endpoint:R})};
_.YF.Object.defineProperties(qL.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 D;return!((D=this.data)==null||!D.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.data)==null?void 0:D.paragraphMaxLines)!=null?Y:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qL.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qL.prototype,"showVerticalDividers",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qL.prototype,"roundedContainer",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qL.prototype,"skipRoundingTop",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qL.prototype,"disableTopPadding",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qL.prototype,"amsterdamEnabled",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qL.prototype,"showMetadataAtTop",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qL.prototype,"showMetadataBelowTitle",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],qL.prototype,"hasMenu",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.truncateParagraphs"),_.x("design:type",Object),_.x("design:paramtypes",[])],qL.prototype,"truncateParagraphs",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.paragraphMaxLines"),_.x("design:type",Number),_.x("design:paramtypes",[])],qL.prototype,"paragraphMaxLines",null);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.b("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],qL.prototype,"background",null);_.q([_.h({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],qL);
_.L(qL,"ytd-info-panel-content-renderer",function(){if(Mz1!==void 0)return Mz1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Mz1=D},{mode:_.zD("kevlar_poly_si_batch_j076")?1:2});var CF4;var W11;var zVU;var S6D;var H1=function(){return _.N.apply(this,arguments)||this};
_.n(H1,_.N);H1.prototype.computeStyle=function(D){return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],H1.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],H1.prototype,"style_",void 0);_.q([_.Lr({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],H1);
_.L(H1,"yt-channel-thumbnail-with-link-renderer",function(){if(S6D===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;zVU===void 0&&(zVU=document.createElement("template"));var Z=zVU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);S6D=D}D=S6D;return D},{mode:2});var xk=function(){var D=_.N.apply(this,arguments)||this;D.modernTypography=_.f("web_modern_typography");return D};
_.n(xk,_.N);xk.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"}}}};
xk.prototype.computeTitleStyle=function(D){return D||null};
xk.prototype.computeAvatarStyle=function(D){return D||null};
xk.prototype.computeShowNavigationButton=function(D,Y){return!(D==null||!D.navigationButton||Y)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xk.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.x("design:type",String)],xk.prototype,"titleStyle",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.x("design:type",String)],xk.prototype,"avatarStyle",void 0);_.q([_.y(),_.x("design:type",Boolean)],xk.prototype,"hideNavigationButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],xk.prototype,"isModernSd",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xk.prototype,"modernTypography",void 0);
_.q([_.h({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],xk);
_.L(xk,"ytd-rich-list-header-renderer",function(){if(W11!==void 0)return W11;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return W11=D},{mode:_.zD("kevlar_poly_si_batch_j058")?1:2});var P1=function(){return _.N.apply(this,arguments)||this};
_.n(P1,_.N);P1.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]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],P1.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],P1.prototype,"isSearch",void 0);_.q([_.h({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],P1);
_.L(P1,"ytd-preview-card-renderer",function(){if(CF4!==void 0)return CF4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return CF4=D},{mode:1});var Tjz;var QP=function(){return _.N.apply(this,arguments)||this};
_.n(QP,_.N);QP.prototype.configureRendererStamper=function(){return{"data.menu":VP}};
QP.prototype.dataChanged=function(){var D=this.get("colorExtractionPalette.section1Color",this.data);D=_.HG(D);_.SN(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":D})};
QP.prototype.computeCardStyle=function(D){return this.get("style.value",D)||null};
QP.prototype.dataChanged=QP.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],QP.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QP.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.x("design:type",String)],QP.prototype,"cardStyle",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QP.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],QP);
_.L(QP,"ytd-compact-channel-recommendation-card-renderer",function(){if(Tjz!==void 0)return Tjz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Tjz=D},{mode:1});var jY_;var IzE;var B1=function(){var D=_.N.apply(this,arguments)||this;D.alignAuto=!1;D.collapsed=!0;D.isToggled=!1;D.alwaysCollapsed=!1;D.canToggle=!0;D.collapsedHeight=80;D.disableToggle=!1;D.alwaysToggleable=!1;D.reversed=!1;D.shouldUseNumberOfLines=!1;D.recomputeOnResize=!1;D.canToggleJobId=0;D.lastReversed=!1;return D};
_.n(B1,_.N);_.u=B1.prototype;_.u.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.u.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.u.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var D=_.aU(this.hostElement),Y=D.childNodes,R=document.createDocumentFragment(),Z=D.childNodes.length-1;Z>=0;Z--)_.aU(R).appendChild(Y[Z]);_.f("enable_shadydom_free_scoped_node_methods")?_.MB(this.hostElement).appendChild(R):D.appendChild(R)}};
_.u.ready=function(){var D=this;_.BE(function(){D.initChildrenObserver()},1)};
_.u.attached=function(){var D;(D=this.resizeObserver)==null||D.observe(this.content)};
_.u.detached=function(){this.detachObserver()};
_.u.toggle=function(D,Y){this.canToggle&&(this.isToggled=Y,_.MX(this.hostElement,"yt-refit"),D&&D.stopPropagation())};
_.u.reset=function(){this.childrenChanged()};
_.u.onIronResize=function(){this.recomputeOnResize&&!_.f("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.u.computeIsMoreVisible=function(D,Y){return D&&!Y};
_.u.computeShouldUseNumberOfLines=function(D){try{return!!D&&window.CSS.supports("-webkit-line-clamp","1")}catch(Y){}return!1};
_.u.computeIsLessVisible=function(D,Y){return D&&Y};
_.u.observeCollapsedHeightAndMaxLines=function(){var D=this.collapsedHeight,Y=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.SN(this.hostElement,{"--ytd-expander-max-lines":""+Y,"--ytd-expander-collapsed-height":""}):_.SN(this.hostElement,{"--ytd-expander-collapsed-height":D+"px","--ytd-expander-max-lines":""})};
_.u.handleMoreTap=function(D){this.disableToggle||(_.MX(this.hostElement,"yt-expander-more-tapped"),this.toggle(D,!0))};
_.u.handleLessTap=function(D){_.MX(this.hostElement,"yt-expander-less-tapped");this.toggle(D,!1)};
_.u.initChildrenObserver=function(){var D=this;this.observer=new MutationObserver(function(){D.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.f("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.gq(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var Y;(Y=D.resizeThrottle)==null||Y.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.u.childrenChanged=function(){var D=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){zf(function(){D.canToggleJobId=0;D.calculateCanCollapse()})}))};
_.u.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};
_.u.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.u.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("collapsed-changed",this.collapsed))};
_.u.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("is-toggled-changed",this.isToggled))};
_.u.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("can-toggle-changed",this.canToggle))};
_.YF.Object.defineProperties(B1.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
B1.prototype.canToggleChangedForBinding=B1.prototype.canToggleChangedForBinding;B1.prototype.isToggledChangedForBinding=B1.prototype.isToggledChangedForBinding;B1.prototype.collapsedChangedForBinding=B1.prototype.collapsedChangedForBinding;B1.prototype.observeCollapsedHeightAndMaxLines=B1.prototype.observeCollapsedHeightAndMaxLines;B1.prototype.onIronResize=B1.prototype.onIronResize;B1.prototype.reversedChanged=B1.prototype.reversedChanged;B1.prototype.toggledChanged=B1.prototype.toggledChanged;
B1.prototype.alwaysToggleableChanged=B1.prototype.alwaysToggleableChanged;_.q([_.v(_.l_),_.x("design:type",Object)],B1.prototype,"ironResizableBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B1.prototype,"alignAuto",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B1.prototype,"collapsed",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"isToggled",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"alwaysCollapsed",void 0);
_.q([_.y(),_.x("design:type",Object)],B1.prototype,"canToggle",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"collapsedHeight",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"disableToggle",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"alwaysToggleable",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"reversed",void 0);_.q([_.y(),_.x("design:type",Number)],B1.prototype,"maxNumberOfLines",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.x("design:type",Object)],B1.prototype,"shouldUseNumberOfLines",void 0);_.q([_.y(),_.x("design:type",Object)],B1.prototype,"recomputeOnResize",void 0);_.q([_.fr("#content"),_.x("design:type",HTMLDivElement)],B1.prototype,"content",void 0);_.q([_.rd("alwaysToggleable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"alwaysToggleableChanged",null);
_.q([_.rd("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"toggledChanged",null);_.q([_.b("canToggleJobId"),_.x("design:type",Object),_.x("design:paramtypes",[])],B1.prototype,"isResetting",null);_.q([_.Gm("reversed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"reversedChanged",null);
_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"onIronResize",null);_.q([_.Gm("maxNumberOfLines","collapsedHeight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"observeCollapsedHeightAndMaxLines",null);_.q([_.Gm("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"collapsedChangedForBinding",null);
_.q([_.Gm("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"isToggledChangedForBinding",null);_.q([_.Gm("canToggle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B1.prototype,"canToggleChangedForBinding",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-expander"})],B1);
_.L(B1,"ytd-expander",function(){if(IzE!==void 0)return IzE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return IzE=D},{mode:1});var pa=function(){return _.N.apply(this,arguments)||this};
_.n(pa,_.N);pa.prototype.computeIsCarousel=function(D){return!!D.isCarousel};
pa.prototype.observeLightsourcePalette=function(){var D,Y=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;Y&&_.Jp(this.hostElement,Y)};
pa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
pa.prototype.observeLightsourcePalette=pa.prototype.observeLightsourcePalette;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pa.prototype,"data",void 0);_.q([_.y({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],pa.prototype,"isCarousel",void 0);
_.q([_.Gm("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pa.prototype,"observeLightsourcePalette",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],pa);
_.L(pa,"ytd-media-upsell-renderer",function(){if(jY_!==void 0)return jY_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jY_=D},{mode:2});var F1L;var EB=function(){var D=_.N.apply(this,arguments)||this;D.JSC$14851_playerEvents=new Map;D.listeningToPlayer=!1;D.startX=0;D.active=!1;D.shouldShowButtons=_.f("web_buttons_hidden_killswitch");D.isHighlighted=!1;D.useHighlightStyling=_.f("web_enable_deeper_metadata_highlight_styling");D.modern=_.f("kevlar_modern_sd");D.enableProblemWalkthrough=_.f("problem_walkthrough_sd");return D};
_.n(EB,_.N);_.u=EB.prototype;
_.u.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}}}}}};
_.u.created=function(){this.JSC$14851_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.u.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.jN(this,this.onRepeatButtonToggle));_.f("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.jN(this,this.onActiveUpdate))};
_.u.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.jN(this,this.onRepeatButtonToggle));_.f("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.jN(this,this.onActiveUpdate))};
_.u.onDataChanged=function(){this.removePlayerListeners()};
_.u.onColorPaletteChange=function(){var D={},Y;if(_.N3()==="USER_INTERFACE_THEME_DARK"&&((Y=this.data)==null?0:Y.darkColorPalette)){var R=this.data.darkColorPalette;D["--ytd-macro-markers-list-item-background-color"]=_.xI(this.get("section2Color",R))}else{var Z;_.N3()==="USER_INTERFACE_THEME_LIGHT"&&((Z=this.data)==null?0:Z.lightColorPalette)&&(R=this.data.lightColorPalette,D["--ytd-macro-markers-list-item-background-color"]=_.xI(this.get("section3Color",R)))}R?(D["--ytd-macro-markers-list-item-title-color"]=
_.xI(this.get("primaryTitleColor",R)),D["--ytd-macro-markers-list-item-secondary-color"]=_.xI(this.get("secondaryTitleColor",R)),D["--ytd-macro-markers-list-item-timestamp-background-color"]=_.xI(this.get("section1Color",R)),this.customButtonProperties={customColors:{color:_.xI(this.get("primaryTitleColor",R))}},this.useColorSampling=!0):(D["--ytd-macro-markers-list-item-background-color"]="initial",D["--ytd-macro-markers-list-item-title-color"]="initial",D["--ytd-macro-markers-list-item-secondary-color"]=
"initial",D["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.SN(this.hostElement,D)};
_.u.onEndpointMouseDown=function(D){this.startX=D.clientX};
_.u.onEndpointClick=function(D){var Y=this,R,Z,t;return _.C(function(X){if(X.nextAddress==1){if(Y.startX!==D.clientX)return D.preventDefault(),X.return();Y.data&&Y.ytRendererBehavior.logExplicitClick(Y.data);if(!Y.seekWithAnimationOnClick)return X.jumpTo(0);if(D.button!==0||D.shiftKey||D.altKey||D.metaKey||D.ctrlKey||_.Yc(_.O$(D),Y.hostElement,["BUTTON".toString()]))return X.return();D.stopPropagation();D.preventDefault();return Y.data?X.yield(_.XU().getPlayerPromise(),3):X.return()}R=X.yieldResult;
t=(Z=_.A(Y.data.onTap,_.Od))==null?void 0:Z.startTimeSeconds;t!==void 0&&R.seekToTimeWithAnimation(t*1E3,_.OM(Y.data.title));_.V9(X)})};
_.u.computeLayout=function(D){return D};
_.u.computeIsHighlighted=function(D){return!!D};
_.u.computeCarouselType=function(D){return D};
_.u.hideModernCarousel=function(D){return this.modern&&this.hideThumbnail(D)};
_.u.hideThumbnail=function(D){return this.enableProblemWalkthrough&&D!==null&&D==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.u.onRepeatButtonToggle=function(D){var Y=this;D.detail.toggled&&_.XU().getPlayerPromise().then(function(R){Y.ytPlayerListenerBehavior.listenToPlayerEvents(R,Y.JSC$14851_playerEvents);Y.listeningToPlayer=!0})};
_.u.onLoopRangeChange=function(D){var Y=_.aU(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(Y){var R=Y.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",Y.polymerController.data);if(R){var Z=Number(R.endTimeMs);if(Number(R.startTimeMs)!==(D==null?void 0:D.startTimeMs)||Z!==(D==null?void 0:D.endTimeMs))Y.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.u.removePlayerListeners=function(){var D=this;this.listeningToPlayer&&_.XU().getPlayerPromise().then(function(Y){D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Y,D.JSC$14851_playerEvents);D.listeningToPlayer=!1})};
_.u.onActiveUpdate=function(D){this.active=D.detail.active};
EB.prototype.onColorPaletteChange=EB.prototype.onColorPaletteChange;EB.prototype.onDataChanged=EB.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],EB.prototype,"ytPlayerListenerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],EB.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],EB.prototype,"useCustomColors",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EB.prototype,"active",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],EB.prototype,"shouldShowButtons",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.x("design:type",String)],EB.prototype,"layout",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.x("design:type",Object)],EB.prototype,"isHighlighted",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EB.prototype,"useHighlightStyling",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EB.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EB.prototype,"enableProblemWalkthrough",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.x("design:type",String)],EB.prototype,"carouselType",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],EB.prototype,"useColorSampling",void 0);_.q([_.y(),_.x("design:type",Boolean)],EB.prototype,"seekWithAnimationOnClick",void 0);_.q([_.y(),_.x("design:type",Object)],EB.prototype,"customButtonProperties",void 0);
_.q([_.fr("#repeat-button"),_.x("design:type",HTMLElement)],EB.prototype,"repeatButton",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EB.prototype,"onDataChanged",null);_.q([_.Gm("data.lightColorPalette","data.darkColorPalette"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EB.prototype,"onColorPaletteChange",null);_.q([_.h({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],EB);
_.L(EB,"ytd-macro-markers-list-item-renderer",function(){if(F1L!==void 0)return F1L;var D=document.createElement("template");_.w(D,'\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="[[hideModernCarousel(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="[[!hideModernCarousel(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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return F1L=D},{mode:1});var GNb;var Vz7;var gO=function(){var D=_.N.apply(this,arguments)||this;D.modernTypography=_.f("web_modern_typography");return D};
_.n(gO,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],gO.prototype,"modernTypography",void 0);_.q([_.y(),_.x("design:type",Object)],gO.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],gO);
_.L(gO,"ytd-title-and-button-list-header-renderer",function(){if(Vz7!==void 0)return Vz7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Vz7=D},{mode:1});var fzz;var eVD=new _.R6("BUTTON_RENDERER_WIZ_TOKEN"),AYU=new _.R6("BUTTON_RENDERER_TOKEN");_.dO=_.RT(function(D){var Y=_.DH().resolve(_.cD(eVD));if(Y)return _.S(Y,Object.assign({},D));var R=_.DH().resolve(AYU);return R?_.S(jZU,null,function(){return _.S(O9,null,function(){var Z,t,X,M,W,z,I,F,G,V,e,r;return void R(D.data(),{onButtonClickCallback:D.onButtonClickCallback,shouldShowIcons:(Z=D.shouldShowIcons)==null?void 0:Z.call(D),icon:(t=D.icon)==null?void 0:t.call(D),processAllEndpoints:(X=D.processAllEndpoints)==null?void 0:X.call(D),preventDefault:(M=D.preventDefault)==null?void 0:M.call(D),
stopPropagation:(W=D.stopPropagation)==null?void 0:W.call(D),disableButtonRendererClickHandling:(z=D.disableButtonRendererClickHandling)==null?void 0:z.call(D),className:(I=D.className)==null?void 0:I.call(D),buttonOverrides:(F=D.buttonOverrides)==null?void 0:F.call(D),forceModernIconButton:(G=D.forceModernIconButton)==null?void 0:G.call(D),isSubscribe:(V=D.isSubscribe)==null?void 0:V.call(D),alignByText:(e=D.alignByText)==null?void 0:e.call(D),forceDisabled:(r=D.forceDisabled)==null?void 0:r.call(D)})})}):
_.S(_.c_,null)},"ha");
_.dO.idomCompat=!0;var nDV=_.RT(function(D){var Y=D.data,R=_.DX(D.useSquareAspectRatio,!1);return _.S("dismissed-mini-game-card-view-model",null,_.S(_.T,{cond:function(){var Z,t;return(Z=Y().responseText)==null?void 0:(t=Z.runs)==null?void 0:t.length},
then:function(){var Z={};return _.S("div",{class:_.e7("yt-mini-game-card-view-model__dismissed-card",(Z["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!R()},Z["yt-mini-game-card-view-model--dismissed-square-card"]=R,Z))},_.S("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.S(_.T,{cond:function(){return Y().responseText.runs[0].text},
then:function(t){return _.S("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:t},t)}}),_.S(_.vK,{data:function(){return Y().buttons}},{buttonRenderer:_.dO,
buttonViewModel:_.TV})))}}))},"ia");var yY_=_.RT(function(D){D=_.YC(D,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var Y=D.data,R=D.useFullWidth,Z=D.isDesktopWeb,t=D.addSearchResultTopMargin,X=function(){return Y().layout},M=function(){return Y().title},W=function(){return Y().metadataText?Y().metadataText:Y().genre},z=function(){return Y().channelName},I=function(){return Y().image},F=function(){return Y().colorPalette},G=function(){return Y().actionButton},V=function(){return Y().overflowButton},
e=function(){return Y().avatar},r=function(){var H={};
H=_.e7("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(H["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Z()},H));
return _.S("div",{class:H},_.S(rYz,{imageData:I,colorPalette:F}),_.S(ww7,{onTap:function(){return Y().onTap},
imageData:I,accessibilityText:function(){return Y().accessibilityText},
overlayBadgeText:function(){return Y().overlayBadgeText},
iconName:function(){return Y().iconName},
unplayableInlinePlaybackIconName:function(){return Y().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.S(_.T,{cond:function(){return!Z()},
then:function(){return _.S(_.c_,null,_.S($YV,{layout:X,colorPalette:F,isDesktopWeb:Z,overflowButton:V,avatar:e,onTap:function(){return Y().onTap},
genre:W,title:M,channelName:z}),_.S(vD_,{actionButton:G}))}}))},l=function(){var H={};
H=_.e7((H["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Z()},H["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Z()},H["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return t()},H));
return _.S("div",{class:H},r(),_.S(oDE,{description:function(){return Y().description},
isDesktopWeb:Z,title:M,genre:W,onTap:function(){return Y().onTap},
actionButton:G,overflowButton:V,avatar:e,channelName:z}))},U=function(){var H={};
H=_.e7("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(H["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Z()},H["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Z()&&Y().width===135},H["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Z()},H["yt-mini-game-card-view-model--big-metadata-font"]=function(){return Y().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},H["yt-mini-game-card-view-model--use-full-width"]=
function(){return R()},H["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!G()},H));
return _.S("div",{class:H},_.S(b3Y,{colorPalette:F,isDesktopWeb:Z,onTap:function(){return Y().onTap},
accessibilityText:function(){return Y().accessibilityText},
overlayBadgeText:function(){return Y().overlayBadgeText},
iconName:function(){return Y().iconName},
unplayableInlinePlaybackIconName:function(){return Y().unplayableInlinePlaybackIconName},
actionButton:G,imageData:I}),_.S($YV,{layout:X,colorPalette:F,isDesktopWeb:Z,overflowButton:V,avatar:e,onTap:function(){return Y().onTap},
genre:W,title:M,channelName:z}))},K=function(){var H={};
H=_.e7("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(H["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Z()},H["yt-mini-game-card-view-model--use-full-width"]=function(){return R()},H));
return _.S("div",{class:H},_.S(ww7,{onTap:function(){return Y().onTap},
imageData:I,accessibilityText:function(){return Y().accessibilityText},
overlayBadgeText:function(){return Y().overlayBadgeText},
iconName:function(){return Y().iconName},
unplayableInlinePlaybackIconName:function(){return Y().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.S($YV,{layout:X,colorPalette:F,isDesktopWeb:Z,overflowButton:V,avatar:e,onTap:function(){return Y().onTap},
genre:W,title:M,channelName:z}))};
return _.S("mini-game-card-view-model",{class:D.className},_.S(_.ej,null,_.S(_.VL,{when:function(){return X()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return U()}),_.S(_.VL,{when:function(){return X()==="MINI_APP_LAYOUT_SQUARE"}},function(){return K()}),_.S(_.VL,{when:function(){return X()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return l()})))},"ja");
yY_.idomCompat=!0;var vD_=_.RT(function(D){var Y=_.DX(D.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.S(_.vK,{data:D.actionButton},{buttonViewModel:function(R){return _.S("div",{class:Y},_.S(_.TV,{data:R.data}))}})},"ka"),ww7=_.RT(function(D){var Y=D.onTap;
var R=D.imageData;var Z=D.accessibilityText;var t=D.overlayBadgeText;var X=D.iconName;var M=D.unplayableInlinePlaybackIconName;D=D.isDesktopWeb;return _.S(_.PK,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:Y},_.S(_.Rt,{data:R,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Z==null?void 0:Z())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.S(NjL,{overlayBadgeText:t,iconName:X,unplayableInlinePlaybackIconName:M,isDesktopWeb:D}))},"la"),NjL=_.RT(function(D){var Y=D.overlayBadgeText;
var R=D.iconName;var Z=D.unplayableInlinePlaybackIconName;var t=D.isDesktopWeb;return _.S("div",{class:"yt-mini-game-card-view-model__badge-container"},_.S(_.T,{cond:R,then:function(X){return _.S("div",{class:"yt-mini-game-card-view-model__badge"},_.S("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.S(_.nB,{icon:X,className:"yt-mini-game-card-view-model__icon",size:12}),_.S("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},Y)))}}),_.S(_.T,{cond:function(){return!R()&&
Y()},
then:function(){return _.S("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},Y)}}),_.S(_.T,{cond:function(){return Z()&&t()},
then:function(){return _.S("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.S(_.nB,{icon:Z,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ma"),rYz=_.RT(function(D){var Y=D.colorPalette;
var R=D.imageData;var Z=function(){return Y().vibrantColorPalette?Y().vibrantColorPalette.section2Color:Y().sectionTwoColor};
return _.S(_.c_,null,_.S("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Ap({"background-color":function(){return PG(Z(),"1")}})}),_.S("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Ap({"background-image":function(){return"url("+R().sources[0].url+")"}})}),_.S("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Ap({background:function(){return"linear-gradient(180deg,\n    "+PG(Z(),".8")+" 0%,\n    "+PG(Z(),".4")+" 25%,\n    "+PG(Y().vibrantColorPalette?Y().vibrantColorPalette.section4Color:Y().sectionFourColor,".8")+" 100%)"}})}))},"na"),$YV=_.RT(function(D){var Y=D.layout;
var R=D.colorPalette;var Z=D.overflowButton;var t=D.avatar;var X=D.onTap;var M=D.title;var W=D.channelName;var z=D.genre;var I=function(){var F;return Y()!=="MINI_APP_LAYOUT_SQUARE"&&((F=R())==null?0:F.textPrimaryColor)?"color: "+PG(R().textPrimaryColor,".7"):""};
return _.S("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.S(_.T,{cond:t,then:function(){return _.S("div",{class:"yt-mini-game-card-view-model__avatar"},_.S(_.vK,{data:t},{avatarViewModel:_.Jz}))}}),_.S(_.PK,{command:X,
className:"yt-mini-game-card-view-model__metadata-details"},_.S("h3",{class:"yt-mini-game-card-view-model__title",title:M},M),_.S(_.T,{cond:t,then:function(){return _.S("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.S("span",{class:"yt-mini-game-card-view-model__genre",title:W,style:I},W),_.S("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:I},z))},
else:function(){return _.S("span",{class:"yt-mini-game-card-view-model__genre",title:z},z)}})),_.S("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.S(_.vK,{data:Z},{buttonViewModel:function(F){var G=F.data;
return _.S(_.TV,{data:function(){return Object.assign({},G(),{customFontColor:Y()==="MINI_APP_LAYOUT_SINGLETON"?G().customFontColor:void 0})}})}})))},"oa"),b3Y=_.RT(function(D){var Y=D.colorPalette;
var R=D.isDesktopWeb;var Z=D.onTap;var t=D.accessibilityText;var X=D.overlayBadgeText;var M=D.iconName;var W=D.unplayableInlinePlaybackIconName;var z=D.actionButton;D=D.imageData;return _.S("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.S(rYz,{imageData:D,colorPalette:Y}),_.S(ww7,{onTap:Z,imageData:D,accessibilityText:t,overlayBadgeText:X,iconName:M,unplayableInlinePlaybackIconName:W,isDesktopWeb:R}),_.S(_.T,{cond:function(){return z==null?void 0:z()},
then:function(){return _.S(vD_,{actionButton:z})}}))},"pa"),oDE=_.RT(function(D){var Y=D.description;
var R=D.isDesktopWeb;var Z=D.title;var t=D.genre;var X=D.onTap;var M=D.actionButton;var W=D.overflowButton;var z=D.avatar;D=D.channelName;var I={};I=_.e7("yt-mini-game-card-view-model--search-result-metadata-wrapper",(I["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=R,I["yt-mini-game-card-view-model--show-unplayable-on-hover"]=R,I["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!R()},I));
var F={};F=_.e7("yt-mini-game-card-view-model__search-result-info-row",(F["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!R()},F));
return _.S("div",{class:I},_.S("div",{class:F},_.S(_.PK,{command:X,className:"yt-mini-game-card-view-model__metadata-details"},_.S("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.S("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)),_.S(vD_,{actionButton:M,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.S("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.S(_.vK,{data:W},{buttonViewModel:_.TV}))),_.S("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.S("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.S("div",{class:"yt-mini-game-card-view-model__avatar"},_.S(_.vK,{data:z},{avatarViewModel:function(G){var V=G.data;return _.S(_.Jz,{data:function(){return Object.assign({},V(),{avatarImageSize:R()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.S(_.PK,{command:X,
className:"yt-mini-game-card-view-model__description"},_.S("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},D)),_.S(_.PK,{command:X,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.S("div",null)))),_.S(_.T,{cond:R,then:function(){return _.S(_.PK,{command:X,className:"yt-mini-game-card-view-model__description"},Y)}}))},"qa");_.at(yY_,"mini-game-card-view-model",{props:{data:_.cs,className:_.cs,useFullWidth:_.cs,isDesktopWeb:_.cs,addSearchResultTopMargin:_.cs}});_.at(nDV,"dismissed-mini-game-card-view-model",{props:{data:_.cs,useSquareAspectRatio:_.cs}});var iY=function(){var D=_.N.apply(this,arguments)||this;D.isSearch=!1;D.isRichGrid=!1;return D};
_.n(iY,_.N);_.u=iY.prototype;_.u.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.u.dismissibleItemOnYtServiceRequestSent=function(D,Y){Y.actions&&this.dismissibleItemProcessActions(D,Y.actions)};
_.u.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.u.dataChanged=function(){this.dismissibleItemReset()};
_.u.dismissibleItemProcessActions=function(D,Y){for(var R=0;R<Y.length;R++){var Z=Y[R];_.A(Z,_.wi)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.A(Z,_.wi)),D.stopPropagation())}};
_.u.dismissibleItemHandleReplaceEnclosingAction=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0};
_.YF.Object.defineProperties(iY.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var D;return!!this.data&&!((D=this.dismissedRenderer)==null?0:D.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.dismissedRenderer)==null||!D.notificationMultiActionRenderer)}}});
iY.prototype.dataChanged=iY.prototype.dataChanged;iY.prototype.dismissibleItemOnRequestSent=iY.prototype.dismissibleItemOnRequestSent;iY.prototype.dismissibleItemOnYtServiceRequestSent=iY.prototype.dismissibleItemOnYtServiceRequestSent;_.q([_.y(),_.x("design:type",Object)],iY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iY.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],iY.prototype,"isDismissed",void 0);
_.q([_.y(),_.x("design:type",Object)],iY.prototype,"dismissedRenderer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iY.prototype,"isRichGrid",void 0);_.q([_.b("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],iY.prototype,"useSquareAspectRatio",null);_.q([_.b("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],iY.prototype,"showCard",null);
_.q([_.b("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],iY.prototype,"showDismissed",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],iY.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.q([_.Fv("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iY.prototype,"dismissibleItemOnRequestSent",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iY.prototype,"dataChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],iY);
_.L(iY,"ytd-mini-game-card-view-model",function(){if(fzz!==void 0)return fzz;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return fzz=D},{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var lzE;var JYE;var OB=function(){return _.RR.apply(this,arguments)||this};
_.n(OB,_.RR);OB.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
OB.prototype.getContinuationUrl=function(D){var Y={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(Y.itct=this.data.clickTrackingParams);return _.pb(D,Y)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],OB.prototype,"data",void 0);_.q([_.Lr({is:"yt-reload-continuation",noInjection:!0})],OB);var kNV;var UYb;var c1=function(){var D=_.N.apply(this,arguments)||this;D.notificationData={};return D};
_.n(c1,_.N);_.u=c1.prototype;_.u.isMenuExpanded=function(D){return D&&D.length<=1?"undefined":"false"};
_.u.dataChanged_=function(){this.selected=void 0;var D=this.computeSelectedIndex_(this.data);D>=0&&(this.selected=D);D=this.data&&this.data.length>1;_.Cr(this.hostElement,"has-items",D);_.aU(this.hostElement).querySelector("#label").tabIndex=D?0:-1};
_.u.onDropdownOpen=function(){var D=_.K2();if(this.parentTrackingParams&&this.data){var Y=_.oT(this.parentTrackingParams);this.data.forEach(function(R){D&&Y&&R.trackingParams&&(R=_.oT(R.trackingParams),_.Qk(D,Y,R),_.E7(D,[R]))})}else this.parentTrackingParams||_.Jk(new _.AT("No parent tracking params passed in for yt-dropdown-menu."))};
_.u.hasNotification=function(D){var Y;if(D.targetId&&((Y=this.notificationData)==null?0:Y.targetId)){var R;return D.targetId===((R=this.notificationData)==null?void 0:R.targetId)}};
_.u.computeSelectedIndex_=function(D){if(D)for(var Y=0,R=D.length;Y<R;Y++)if(D[Y].selected)return Y;return-1};
_.u.computeLabel_=function(D){return this.data&&D!=void 0?this.data[D].title:""};
_.u.computeShowIcon_=function(D,Y){return!Y&&!!D};
_.u.computeVerticalOffset_=function(D){return D?36:0};
_.u.computeEndpoint_=function(D){return D.endpoint||D.navigationEndpoint};
_.u.onLabelClick_=function(D){this.data&&this.data.length<=1?D.stopPropagation():this.menuExpanded="true"};
_.u.onIronActivate_=function(D){D=D.detail.item;var Y=_.aU(this.hostElement).querySelector("#repeat").itemForElement(D);if(Y&&Y.trackingParams){var R=_.K2(),Z=_.oT(Y.trackingParams);R&&_.dC(R,Z)}if(Y&&Y.serviceEndpoint)_.f("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(Y.serviceEndpoint):_.zA(this.hostElement,[Y.serviceEndpoint]),_.MX(this.hostElement,"yt-playlist-reloading");else a:{if((Y=D.querySelector("yt-supported-renderers"))&&
(Y=Y.rendererElement)&&Y.is=="yt-reload-continuation"){Y.trigger();break a}(D=D.querySelector("yt-reload-continuation"))&&D.trigger()}};
_.u.onTap_=function(D){D.preventDefault()};
_.u.onItemTap_=function(D){this.ytEndpointBehavior.onEndpointTap_(D)};
_.u.onLinkFocus_=function(D){try{var Y=D.target}catch(Z){}if(Y){var R=Y.querySelector("tp-yt-paper-item");R&&_.pr(this,"focus",function(){R.focus()})}};
_.u.onMenuClose_=function(){this.menuExpanded="false"};
_.u.isLabelIconActive_=function(D){return D==="true"};
_.u.computeHasSubtitle_=function(D){return!!D};
_.u.computeHrefForItem_=function(D){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(D))};
_.u.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
_.YF.Object.defineProperties(c1.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
c1.prototype.onMenuClose_=c1.prototype.onMenuClose_;c1.prototype.onTap_=c1.prototype.onTap_;c1.prototype.onIronActivate_=c1.prototype.onIronActivate_;c1.prototype.onDropdownOpen=c1.prototype.onDropdownOpen;c1.prototype.dataChanged_=c1.prototype.dataChanged_;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],c1.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],c1.prototype,"ytEndpointBehavior",void 0);
_.q([_.y(),_.x("design:type",Array)],c1.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],c1.prototype,"parentTrackingParams",void 0);_.q([_.y(),_.x("design:type",Object)],c1.prototype,"selected",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],c1.prototype,"useLabel",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],c1.prototype,"useComputedAriaLabel",void 0);_.q([_.y(),_.x("design:type",String)],c1.prototype,"icon",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],c1.prototype,"iconLabel",void 0);_.q([_.y(),_.x("design:type",String)],c1.prototype,"ariaLabel",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],c1.prototype,"disabled",void 0);_.q([_.y({computed:"isMenuExpanded(data)"}),_.x("design:type",String)],c1.prototype,"menuExpanded",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],c1.prototype,"closeOnActivate",void 0);
_.q([_.y({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.x("design:type",Boolean)],c1.prototype,"modernButtons",void 0);_.q([_.y(),_.x("design:type",Object)],c1.prototype,"notificationData",void 0);_.q([_.b("ariaLabel, selected"),_.y(),_.x("design:type",String),_.x("design:paramtypes",[])],c1.prototype,"computedAriaLabel",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],c1.prototype,"dataChanged_",null);
_.q([_.Fv("paper-dropdown-open"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],c1.prototype,"onDropdownOpen",null);_.q([_.Fv("iron-activate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],c1.prototype,"onIronActivate_",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],c1.prototype,"onTap_",null);
_.q([_.Fv("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],c1.prototype,"onMenuClose_",null);_.q([_.Lr({is:"yt-dropdown-menu",disableElementRegistration:!0})],c1);
_.L(c1,"yt-dropdown-menu",function(){if(UYb===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;kNV===void 0&&(kNV=document.createElement("template"));var Z=kNV;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);UYb=D}D=UYb;return D},{mode:2});var DA=function(){var D=_.N.apply(this,arguments)||this;D.hasNotification=!1;return D};
_.n(DA,_.N);DA.prototype.computeId=function(D){return D};
DA.prototype.computeHorizontalAlign=function(D){return D?"right":"left"};
DA.prototype.computeAccessibilityLabel=function(D){var Y,R;return((Y=D.accessibility)==null?void 0:(R=Y.accessibilityData)==null?void 0:R.label)||null};
DA.prototype.notificationDataChanged=function(){var D;this.hasNotification=!!this.notificationData&&!((D=this.data)==null?0:D.icon)};
DA.prototype.notificationDataChanged=DA.prototype.notificationDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.QA.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],DA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DA.prototype,"data",void 0);_.q([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],DA.prototype,"id",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],DA.prototype,"isRightAligned",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],DA.prototype,"disabled",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],DA.prototype,"closeOnActivate",void 0);_.q([_.y(),_.x("design:type",Object)],DA.prototype,"notificationData",void 0);_.q([_.y(),_.x("design:type",Object)],DA.prototype,"hasNotification",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],DA.prototype,"useComputedAriaLabel",void 0);_.q([_.Gm("notificationData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],DA.prototype,"notificationDataChanged",null);_.q([_.Lr({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],DA);
_.L(DA,"yt-sort-filter-sub-menu-renderer",function(){if(JYE===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;lzE===void 0&&(lzE=document.createElement("template"));var Z=lzE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);JYE=D}D=JYE;return D},{mode:2});_.tN(CFo);var K1D=_.RT(function(D){var Y=D.data;var R=_.F4(function(){var X=Y().onTap;(X=_.A(X,_.mQ))&&_.DH().resolve(_.Yw).resolveCommand(X);return!1}),Z=function(){return{sources:[{url:Y().thumbnailUrl,
width:120,height:90}]}},t=function(){return Y().rating&&Y().ratingA11yLabel&&Y().reviewsCount&&Y().reviewsCountA11yLabel};
return _.S("place-data-view-model",null,_.S(_.T,{cond:function(){return Y().placeName&&Y().placeCategory},
then:function(){return _.S("div",{class:"yt-spec-place-data-view-model-shape","on:click":R},_.S(_.Rt,{data:Z,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.S(_.PK,{className:"yt-spec-place-data-view-model-shape__place-link",command:function(){return Y().onTap}},_.S("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:function(){return Y().placeName}},function(){return Y().placeName})),_.S("div",{class:"yt-spec-place-data-view-model-shape__metadata"},_.S(_.T,{cond:t,
then:function(){return _.S("div",{class:_.e7("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-ratings")},_.S("span",{class:"score",title:function(){return Y().ratingA11yLabel}},function(){return Y().rating}),_.S("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.S(_.nB,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.S("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:function(){return Y().reviewsCountA11yLabel}},function(){return Y().reviewsCount}))},
else:function(){return _.S("div",{class:_.e7("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-ratings")})}}),_.S("div",{class:_.e7("yt-spec-place-data-view-model-shape__metadata-row","yt-spec-place-data-view-model-shape__metadata-row-categories")},_.S("span",{class:"category",
title:function(){return Y().placeCategory}},function(){return Y().placeCategory}))))}}))},"ra"),hVz=_.f("web_enable_sink_place_data_view_model")?K1D:_.Vv(CFo);
K1D.idomCompat=!0;_.at(hVz,"place-data-view-model",{props:{data:_.cs}});var L1E=new _.R6("INLINE_PLAYBACK_HOOK_TOKEN");var mYL=function(D){this.setActiveSlideIndex=D;this.jobIds=[];this.isSlideshowPlaying=!1},xYE=function(D,Y){D.isSlideshowPlaying||(D.isSlideshowPlaying=!0,q6U(D),H3z(D,Y,0))},q6U=function(D){_.S7(_.yc,function(){D.setActiveSlideIndex(0)},1)},H3z=function(D,Y,R){D.jobIds.push(_.S7(_.yc,function(){var Z=R<Y-1?R+1:0;
D.setActiveSlideIndex(Z);H3z(D,Y,Z)},1800))};var PFb=new _.R6("IMAGE_ON_LOAD_HANDLER_TOKEN");var QYY=_.RT(function(D){return _.S("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.S(_.T,{cond:function(){var Y;return(Y=D.data())==null?void 0:Y.thumbnail},
then:function(Y){return _.S(_.Rt,{data:Y,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"sa");_.BjD=_.RT(function(D){var Y=D.data;var R=D.lockupExperiments;D={};return _.S("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.S("div",{class:_.e7("ytThumbnailOverlayButtonViewModelButton",(D.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Z;return R&&((Z=R())==null?void 0:Z.useLegacySizedIconButton)},D))},_.S(_.vK,{data:function(){return Y().overlayButton}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
buttonOverrides:function(){var t;return R&&((t=R())==null?0:t.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"ta");
_.BjD.idomCompat=!0;var pwz=_.RT(function(D){return _.S("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.F4(function(Y){Y.preventDefault();return!1})},_.S(_.vK,{data:function(){return D.data().buttons}},{toggleButtonViewModel:function(Y){return _.S("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.S(_.JV,{data:Y.data}))}}))},"ua");
pwz.idomCompat=!0;var EDV=_.RT(function(D){var Y=function(){var R;return((R=_.A(D.data().rendererContext,_.ny))==null?void 0:R.label)||""};
return _.S("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.S(_.T,{cond:function(){return D.data().image},
then:function(){return _.S("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.S(_.Rt,{data:function(){return D.data().image},
alt:Y}))}}),_.S(_.T,{cond:function(){return D.data().text},
then:function(){return _.S("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return D.data().text})}}))},"va");_.Yo=_.RT(function(D){var Y=[],R=function(){var V,e;return qT5((V=D.width)==null?void 0:V.call(D),(e=D.height)==null?void 0:e.call(D))},Z=_.DH().resolve(_.cD(PFb)),t=_.dI("yt-thumbnail-view-model",function(){Y.push("elRef.value set");
var V;(V=D.playbackRef)==null||V.call(D,{thumbnailElRef:t,thumbnail:D.data().image,thumbnailOverlays:D.data().overlays,thumbnailSize:R()})});
_.$s(function(){Y.push("onInit");_.w2(function(){Y.push("onCleanup")})});
var X=_.qW(zV$),M=function(){var V,e;return(e=(V=D.aspectRatio)==null?void 0:V.call(D))!=null?e:0},W=function(){return(D.data().image?_.Tw$(D.data().image):M())<=1&&M()===0},z=function(){return W()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},I=function(){t.value||_.Jk(new _.AT("Thumbnail elRef.value is null",Y.join("\n")));
Z&&t.value&&Z(t.value)},F=function(){var V,e;
return((V=D.hovered)==null?void 0:V.call(D))&&R()!=="large"&&((e=D.data().overlays)==null?void 0:e.some(function(r){return _.A(r,k54)}))},G={};
return _.S("yt-thumbnail-view-model",{class:_.e7("yt-thumbnail-view-model",D.className,function(){return jYU(M())},function(){var V,e;
a:{var r=R(),l=(V=D.disableRounding)==null?void 0:V.call(D);V=(e=D.isClip)==null?void 0:e.call(D);if(!l&&!V)switch(r){case "large":e="yt-thumbnail-view-model--large";break a;case "small":e="yt-thumbnail-view-model--small";break a;default:e="yt-thumbnail-view-model--medium";break a}e=void 0}return e},(G["yt-thumbnail-view-model--cinematic"]=W,G)),
style:_.Ap({"background-color":function(){var V,e=W()?(V=D.data().backgroundColor)==null?void 0:V.lightTheme:void 0;return e?PG(e,"1"):void 0}}),
el:t},_.S(_.T,{cond:W,then:function(){return _.S("div",{class:"yt-thumbnail-view-model__blurred-image"},_.S(_.Rt,{data:function(){return D.data().image},
alt:"",contentMode:z,targetWidth:D.width,onload:I}))}}),_.S("div",{class:"yt-thumbnail-view-model__image"},_.S(_.Rt,{data:function(){return D.data().image},
alt:"",contentMode:z,targetWidth:D.width,onload:I}),null),_.S(_.vK,{data:function(){return F()?void 0:D.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:is4,thumbnailOverlayBadgeViewModel:function(V){return _.S(Os1,{data:V.data,thumbnailSize:R,isClip:D.isClip})},
thumbnailBottomOverlayViewModel:function(V){return _.S(p9U,{data:V.data,thumbnailSize:R,isClip:D.isClip})},
thumbnailOverlayFullViewModel:EDV,thumbnailOverlayButtonViewModel:function(V){return _.S(_.BjD,{data:V.data,lockupExperiments:D.lockupExperiments})}}),_.S(_.vK,{data:function(){var V;
return((V=D.hovered)==null?0:V.call(D))?D.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(V){return _.S(lY,{data:V.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:pwz}),_.S(_.vK,{data:function(){var V;return((V=D.hovered)==null?0:V.call(D))&&X()?D.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:QYY}),_.S(_.T,{cond:D.isClip,then:function(){return _.S("div",{class:"yt-pinking"},_.S("svg",{class:"yt-pinking__pinking-left"},_.S("defs",null,_.S("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.S("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.S("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.S("svg",{class:"yt-pinking__pinking-right"},_.S("defs",null,_.S("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.S("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.S("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"wa");
_.Yo.idomCompat={callbacks:{playbackRef:!0}};var gDU=_.RT(function(D){var Y=_.a(_.ae(-1,void 0,"IOLZ0b")),R=Y.next().value,Z=Y.next().value;_.$s(function(){var t=new mYL(Z);xYE(t,D.data().thumbnails.length);_.w2(function(){if(t.isSlideshowPlaying){t.isSlideshowPlaying=!1;for(var X=t.jobIds,M=0,W=X.length;M<W;M++)_.yc.cancelJob(X[M]);t.jobIds.length=0}})});
return _.S("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.S(_.vK,{data:function(){return D.data().thumbnails}},{thumbnailViewModel:function(t,X){return _.S("div",{class:function(){var M=!D.data().primaryThumbnail,W=X(),z=R(),I=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
M&&W===0&&I.push("yt-collection-thumbnail-slideshow--first-slide");W<=z&&I.push("yt-collection-thumbnail-slideshow--show-slide");return I.join(" ")}},_.S(_.Yo,{data:t.data,
disableRounding:D.disableRounding}))}}))},"xa");
gDU.idomCompat=!0;var IzU=new _.R6("DWELL_DETECTOR_REGISTRY_TOKEN");var i34=_.RT(function(D){var Y=F1y(D.triggeringElement),R=function(){return!!D.data().primaryThumbnail},Z=function(){var X,M=(X=D.data())==null?void 0:X.maxHeight,W;
X=(W=D.maxHeight)==null?void 0:W.call(D);return M!=null&&X!=null?Math.min(M,X):X!=null?X:M},t=function(){var X=Z();
if(X){var M;if(R()&&(M=D.includeStackHeight)!=null&&M.call(D)){var W;M=((W=D.doubleStack)==null?0:W.call(D))?8:4}else M=0;X=X-M-1;if(!(X<0)){W=Math;M=W.ceil;var z,I;var F=mgi((I=(z=D.aspectRatio)==null?void 0:z.call(D))!=null?I:0);return M.call(W,X*F)}}};
return _.S("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.Ap({height:function(){return Z()?Z()+"px":void 0},
width:function(){return t()?t()+"px":void 0}})},_.S(dYY,{stackEnabled:R,
thumbnailSize:function(){var X,M;return qT5((X=D.width)==null?void 0:X.call(D),(M=D.height)==null?void 0:M.call(D))},
doubleStack:D.doubleStack,stackColor:function(){return D.data().stackColor},
includeStackHeight:D.includeStackHeight},_.S(_.vK,{data:function(){return D.data().primaryThumbnail}},{thumbnailViewModel:function(X){var M={};
return _.S(_.Yo,{data:X.data,width:D.width,height:D.height,aspectRatio:D.aspectRatio,disableRounding:D.disableRounding,className:_.e7((M["yt-collection-thumbnail-view-model--has-stacks"]=R,M)),hovered:D.hovered,playbackRef:D.playbackRef})}}),_.S(_.T,{cond:function(){var X;
return Y()&&((X=D.data().thumbnails)==null?void 0:X.length)},
then:function(){return _.S("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.S(gDU,{data:D.data,disableRounding:function(){return!R()}}))}})))},"ya");
i34.idomCompat={callbacks:{playbackRef:!0}};
var dYY=_.RT(function(D){var Y=D.children;var R=D.stackEnabled;var Z=D.thumbnailSize;var t=D.doubleStack;var X=D.stackColor;var M=D.includeStackHeight;var W,z=(W=_.DH().resolve(_.cD(_.O4)))==null?void 0:W();return _.S(_.T,{cond:R,then:function(){return _.S(Ab7,{data:function(){var I,F;return{experimentEnabled:!0,thumbnailSize:Z(),doubleStack:t==null?void 0:t(),color:z?X==null?void 0:(I=X())==null?void 0:I.darkTheme:X==null?void 0:(F=X())==null?void 0:F.lightTheme,enableResponsiveMode:!1,includeStackHeight:M==
null?void 0:M()}}},Y)},
else:function(){return Y}})},"za");var O3Y=new _.R6("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var ZA;_.R4={calledOnce:!0,state:"visible"};ZA={calledOnce:!0,state:"hidden"};_.t8=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;var Z=D.className;var t=D.delayedClassName;var X=D.animationEntityKey;var M=D.isCompactWidth;D=_.a(_.ae(!1,void 0,"aSkCmb"));var W=D.next().value,z=D.next().value,I=_.DX(X,""),F=_.Ax(lgU,I),G=function(){var VU,AS;return(AS=(VU=F())==null?void 0:VU.value)!=null?AS:!1},V=function(){_.cE(_.oP("booleanEntity",I(),{key:I(),
value:!0}));Q=void 0};
X=_.a(_.fB(G));var e=X.next().value,r=X.next().value;X=_.a(_.fB(G));var l=X.next().value,U=X.next().value;X=_.a(_.fB(function(){var VU;return G()?(VU=Y().styleTransitionConfig)==null?void 0:VU.destinationStyle:void 0}));
var K=X.next().value,H=X.next().value,c=function(){var VU=Object.assign({},Y(),K()&&{style:K()});var AS,nM,Ho=VU.label,KM=(AS=VU.interaction)==null?void 0:(nM=AS.accessibility)==null?void 0:nM.label;AS=VU.iconImage?VU.label&&VU.label.content?VU.iconLeading?"leading":"trailing":"icon-only":void 0;VU={formattedButtonText:Ho,accessibilityLabel:KM,style:eVb(VU.style),type:AY9(VU.style),state:"active",size:fzl(VU.size),iconPosition:AS,disabled:!1,aTagConfig:Vz5(VU,R)};_.f("enable_desktop_vdcbg_components")&&
(VU.focused=W());return VU},Q;
X=_.Zq({visibilityCallback:function(VU){var AS,nM=(AS=Y().interaction)==null?void 0:AS.onFirstVisible;VU&&nM&&_.BL(nM)},
showOption:_.R4});var E=function(){return EzS(c(),!!Y().iconImage)};
D={};Z=_.e7(function(){return"ytwAdButtonViewModelHost"},function(){return Y().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var VU=!!Y().delayedAppearanceConfig,AS=e();
return VU?AS?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var VU=!!Y().delayedAppearanceConfig,AS=l();
return VU?AS?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!Y().delayedAppearanceConfig||e()?t==null?void 0:t():""},(D.ytwAdButtonViewModelHostCompactWidth=function(){return M==null?void 0:M()},D),Z!=null?Z:"");
var B=function(){var VU,AS=(VU=Y().delayedAppearanceConfig)==null?void 0:VU.delayedInvisibleSeconds;AS&&(Q=_.NP(_.yc,function(){r(!0);O()},AS*1E3))},O=function(){var VU,AS=(VU=Y().delayedAppearanceConfig)==null?void 0:VU.delayedVisibleSeconds;
AS&&(Q=_.NP(_.yc,function(){U(!0);Wo()},AS*1E3))},Wo=function(){var VU,AS=(VU=Y().styleTransitionConfig)==null?void 0:VU.styleTransitionSeconds,nM,Ho=(nM=Y().styleTransitionConfig)==null?void 0:nM.destinationStyle;
AS&&Ho?Q=_.NP(_.yc,function(){H(Ho);V()},AS*1E3):V()},Sb=function(){var VU;
return(VU=Y().delayedAppearanceConfig)==null?void 0:VU.transitionDurationSeconds};
_.$s(function(){B()});
_.w2(function(){Q&&_.yc.cancelJob(Q)});
return _.S("ad-button-view-model",{"on:focusin":_.F4(_.f("enable_desktop_vdcbg_components")?function(){var VU=_.DH().resolve(_.cD(_.MQ));VU&&z(VU.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.F4(_.f("enable_desktop_vdcbg_components")?function(){z(!1);return!1}:void 0),
class:Z,el:_.tp(X),style:_.Ap({"transition-duration":function(){return Sb()?Sb()+"s":void 0}})},_.S(_.T,{cond:c,
then:function(){return _.S(_.Sn,{data:c,icon:function(){return _.S(_.T,{cond:function(){return Y().iconImage},
then:function(VU){return _.S(_.Rt,{data:VU,alt:"",targetWidth:E,targetHeight:E,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Aa");var cYU=_.RT(function(D){var Y=D.data;D=function(){return Y().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var R=_.Zq({visibilityCallback:function(X){var M,W=(M=Y().interaction)==null?void 0:M.onFirstVisible;X&&W&&_.BL(W)},
showOption:_.R4}),Z={},t={};return _.S("ad-button-group-view-model",{class:_.e7("ytwAdButtonGroupViewModelHost",(Z.ytwAdButtonGroupViewModelHostCompactWidth=D,Z)),el:_.tp(R)},_.S("div",{class:_.e7("ytwAdButtonGroupViewModelHostSecondaryButton",(t.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=D,t))},_.S(_.vK,{data:function(){return Y().secondaryAdButton}},{adButtonViewModel:function(X){return _.S(_.t8,{data:X.data})}})),_.S("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.S(_.vK,
{data:function(){return Y().primaryAdButton}},{adButtonViewModel:function(X){return _.S(_.t8,{data:X.data})}})))},"Ba");var DHL=_.RT(function(D){var Y=function(){var R;return((R=D.data())==null?void 0:R.answers)||[]};
return _.S("yt-survey-icons",{class:"ytSurveyIconsHost"},_.S("div",{class:"ytSurveyIconsHeader"},_.S("div",{class:"ytSurveyIconsTitle"},function(){var R;return(R=D.data())==null?void 0:R.text}),_.S("div",null,_.S(_.Sn,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var R;(R=D.onDismiss)==null||R.call(D)}}},
iconName:"DISMISSAL"}))),_.S("div",null,_.S("div",{class:"ytSurveyIconsAnswers"},_.S(_.G6,{each:function(){return Y()},
keyBy:"INDEX"},function(R,Z){return _.S("div",null,_.S(_.Sn,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var t;(t=D.onSelect)==null||t.call(D,R(),Z)}}},
icon:function(){return _.S(_.nB,{icon:function(){var t,X;return(t=R())==null?void 0:(X=t.icon)==null?void 0:X.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.S("div",{class:"ytSurveyIconsAnswersText"},_.S("div",null,function(){return Y().length?Y()[0].text:""}),_.S("div",null,function(){return Y().length?Y()[Y().length-1].text:""}))))},"Ca");var YCL=_.RT(function(D){var Y=_.tp(_.mp(function(){var z;return(z=D.data())==null?void 0:z.rendererContext},void 0,void 0,void 0,!0)),R=_.a(_.ae(!1,void 0,"YxWRNc")),Z=R.next().value,t=R.next().value,X=_.Ax(C2U,function(){var z;
return(z=D.data().keys)==null?void 0:z.surveyEntityKey}),M=_.Ax(Wny,function(){var z;
return(z=D.data().keys)==null?void 0:z.surveyStateEntityKey});
_.gI("ytd-slimline-survey-show-action",function(){t(!1)});
var W=function(){var z,I;var F=(z=M())==null?void 0:(I=z.questionStack)==null?void 0:I[0];if(F!==void 0){var G,V;return(G=X())==null?void 0:(V=G.questions)==null?void 0:V[F]}};
R={};return _.S("yt-slimline-survey-view-model",{el:Y,class:_.e7("ytSlimlineSurveyViewModelHost",(R.ytSlimlineSurveyViewModelCollapsed=function(){return Z()},R))},_.S("div",{class:"ytSlimlineSurveyViewModelContainer"},_.S(_.T,{cond:function(){var z;
return((z=W())==null?void 0:z.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.S(DHL,{data:function(){return W()},
onSelect:function(z,I){var F,G;return _.C(function(V){t(!0);if(G=(F=D.data())==null?void 0:F.onSelectRating)_.BL(G),_.cE(ZAb(I));_.V9(V)})},
onDismiss:function(){t(!0);var z;var I=(z=X())==null?void 0:z.dismissalFeedbackToken;z=I?{feedbackEndpoint:{feedbackToken:I}}:void 0;z&&_.xC(z,{form:{element:Y.value}})}})}})))},"Da");var RiD=_.RT(function(D){return _.S("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.S(_.vK,{data:function(){var Y;return(Y=D.data())==null?void 0:Y.attachments}},{flexibleActionsViewModel:function(Y){return _.S("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.S(_.UX,{data:Y.data,
layout:function(){var R;return((R=D.lockupStyle())==null?void 0:R.arrangement)===1?0:1},
justifyContentOverride:function(){var R;return((R=D.lockupStyle())==null?void 0:R.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(Y){return _.S("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.S(YCL,{data:Y.data}))},
expandableMetadataViewModel:function(Y){Y=Y.data;var R;return _.S("div",{class:_.e7("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(R=_.DH().resolve(_.cD(O3Y)))==null?void 0:R({data:Y}))},
adButtonGroupViewModel:function(Y){return _.S("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.S(cYU,{data:Y.data}))},
adButtonViewModel:function(Y){return _.S("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.S(_.t8,{data:Y.data,isCompactWidth:!0}))}}))},"Ea");var oDU=_.ZH("rich_grid_min_item_width",310),$YU=_.ZH("rich_grid_max_item_width",500);var Zl1=_.RT(function(D){var Y=D.data;return _.S("br-nz-badge-shape",{class:_.e7(function(){return K1b(Y().brNzRatingBadgeType)}),
role:function(){return Y().accessibilityText?"img":void 0},
"aria-label":function(){return Y().accessibilityText}},function(){var R;
return(R=Y())==null?void 0:R.text})},"Fa");_.sq=_.RT(function(D){var Y=function(){var R=D.data(),Z,t;if(R){var X=!((Z=D.workaroundShortsIsThumbnailBadge)==null||!Z.call(D));Z=(t=D.modern)==null?void 0:t.call(D);var M;a:switch(R.badgeStyle){case "BADGE_OVERLAY":t=!0;break a;default:t=!1}R={type:X?17:hVl(R.badgeStyle),brNzRatingBadgeType:L1U(R.badgeStyle),text:R.badgeText,icon:R.iconName,isOverlay:t,modern:Z||_.f("web_modern_badge_view_model"),accessibilityText:R.accessibilityLabel||((M=_.A(R.rendererContext,_.ny))==null?void 0:M.label)}}else R=
void 0;return R};
return _.S("yt-badge-view-model",{class:_.e7("yt-badge-view-model-wiz",D.class)},_.S(_.ej,null,_.S(_.VL,{when:function(){var R;return!((R=Y())==null||!R.brNzRatingBadgeType)}},function(){return _.S(Zl1,{data:function(){return Y()}})}),_.S(_.VL,{when:function(){return!!Y()&&!Y().brNzRatingBadgeType}},function(){return _.S(_.mT,{data:function(){return Y()}})})))},"Ga");
_.sq.idomCompat=!0;var q69,mYy;q69=16/9;mYy=2/3;_.X2=_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.imageSizeConfig;var t=D.notifyOnLoaded;var X=function(){return Y().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M=function(){var V;
return _.LH((V=Y())==null?void 0:V.rendererContext)};
D={};D=(D["yt-content-preview-image-view-model-wiz"]=!0,D["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return X()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},D["yt-content-preview-image-view-model-wiz--tappable"]=function(){return M()},D);
var W=function(){var V,e;return(e=(V=_.A(Y().rendererContext,_.ny))==null?void 0:V.label)!=null?e:""},z=function(){return xYU(Y())},I=function(){var V=H3l(X(),Y().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Z==null?void 0:Z(),PFi(z()),Y().layoutWidth,Y().layoutHeight),e=Object.assign({},V);
V.width&&(e.width=Math.round(V.width));V.height&&(e.height=Math.round(V.height));V.maxWidth&&(e.maxWidth=Math.round(V.maxWidth));V.maxHeight&&(e.maxHeight=Math.round(V.maxHeight));return e},F=_.Si(function(){return I().height},void 0,"Cn10Ce"),G=_.Si(function(){return I().width},void 0,"laoove");
return _.S("yt-content-preview-image-view-model",{el:_.tp(_.mp(function(){var V;return(V=Y())==null?void 0:V.rendererContext})),
role:function(){return M()?"link":void 0},
tabindex:function(){return M()?0:void 0},
class:_.e7(R,D,function(){var V=X();var e=Z==null?void 0:Z();V=V==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||V==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||V==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||V==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(e==null?void 0:e.size)!=null&&e.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(e==null?void 0:e.size)!=null&&e.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return V}),
style:function(){var V=I(),e=[];V.width&&e.push("width: "+V.width+"px");V.height&&e.push("height: "+V.height+"px");V.maxWidth&&e.push("max-width: "+V.maxWidth+"px");V.maxHeight&&e.push("max-height: "+V.maxHeight+"px");V.fullWidth&&e.push("width: 100%");return e.join(";")}},_.S(_.T,{cond:z,
then:function(V){return _.S(_.Rt,{data:V,alt:W,"data-disabled$":function(){return!W()},
notifyOnLoaded:t,targetWidth:G,targetHeight:F,preserveWidth:function(){return!!G()},
preserveHeight:function(){return!!F()}})}}),_.S(_.vK,{data:function(){var V;
return(V=Y())==null?void 0:V.overlays}},{thumbnailHoverOverlayViewModel:lY,
thumbnailOverlayButtonViewModel:_.BjD}))},"Ha");
_.X2.idomCompat=!0;var sOY=_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.useSmallLayout;D=D.useMediumText;var t={};D=(t["yt-attribution-view-model-wiz"]=!0,t["yt-attribution-view-model-wiz--medium-text"]=D,t);return _.S("yt-attribution-view-model",{el:_.tp(_.mp(function(){var X;return(X=Y())==null?void 0:X.rendererContext})),
class:_.e7(R,D)},_.S(_.T,{cond:function(){return _.LH(Y().rendererContext)},
then:function(){return _.S("button",{class:"yt-attribution-view-model-wiz--tappable"},_.S(tO4,{data:Y,useSmallLayout:Z}))},
else:function(){return _.S(tO4,{data:Y,useSmallLayout:Z})}}))},"Ia"),tO4=_.RT(function(D){var Y=D.data;
var R=D.useSmallLayout;var Z=function(){return{size:(R==null?0:R())?16:24}};
return _.S(_.c_,null,_.S(_.vK,{data:function(){return Y().contentPreviewImage}},{contentPreviewImageViewModel:function(t){return _.S(_.X2,{data:t.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:Z})}}),_.S(_.vK,{data:function(){return Y().badge}},{badgeViewModel:function(t){return _.S(_.sq,{data:t.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.S(_.T,{cond:function(){return Y().text},
then:function(){return _.S(_.y_,{text:function(){return Y().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.S(_.T,{cond:function(){return Y().suffix},
then:function(){return _.S(_.y_,{text:function(){return Y().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ja");
sOY.idomCompat=!0;var X37,uuE,a2E,MOU,CaD;X37=_.RT(function(D){var Y=D.delimiter;var R=D.max;var Z=D.index;var t=D.isStandalone;return _.S(_.T,{cond:function(){return R()-1>Z()},
then:function(){var X={};return _.S("span",{class:_.e7("yt-content-metadata-view-model-wiz__delimiter",(X["yt-content-metadata-view-model-wiz__delimiter--standalone"]=t,X)),"aria-hidden":!0},Y)}})},"Ka");
uuE=_.RT(function(D){var Y=D.metadataPart;var R=D.maxLines;return _.S(_.y_,{text:function(){return Y().text},
linkInheritColor:!0,className:function(){return QYj(R())},
userInput:!0})},"La");
a2E=_.RT(function(D){var Y=D.metadataPart;var R=D.maxLines;return _.S(_.T,{cond:function(){return Y().tooltip},
then:function(Z){return _.S("span",{title:Z,role:"tooltip"},_.S(uuE,{metadataPart:Y,maxLines:R}))},
else:function(){return _.S(uuE,{metadataPart:Y,maxLines:R})}})},"Ma");
MOU=_.RT(function(D){var Y=D.metadataPart;var R=D.isOverlay;var Z=D.useMediumText;var t=D.hideAvatar;var X=function(){return Y().maxLines!==void 0?Y().maxLines:1};
return _.S(_.c_,null,_.S(_.vK,{data:function(){return Y().avatarStack}},{avatarStackViewModel:function(M){return _.S(_.UB,{data:M.data,
isOverlay:R,useMediumText:Z,hideAvatar:t})},
badgeViewModel:_.sq}),_.S(_.T,{cond:function(){return Y().leadingIcon},
then:function(M){return _.S(_.nB,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return M().name},
size:function(){return M().width}})}}),_.S(_.T,{cond:function(){return Y().text},
then:function(){return _.S(a2E,{metadataPart:Y,maxLines:X})}}),_.S(_.T,{cond:function(){return Y().icon},
then:function(M){return _.S(_.nB,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return M().name},
size:function(){return M().width}})}}))},"Na");
CaD=_.RT(function(D){var Y=D.metadataRow;var R=D.isInline;var Z=D.delimiter;var t=D.isOverlay;var X=D.useMediumText;var M=D.extensions;var W=function(){var I,F=M==null?void 0:(I=M())==null?void 0:I.lockupMetadata;I=Y();var G,V;return!!((F==null?0:(G=F.byline)==null?0:G.hideAvatar)&&((V=_.A(I,AGb))==null?void 0:V.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},z=function(){return Y().metadataParts||[]};
D={};return _.S("div",{class:_.e7("yt-content-metadata-view-model-wiz__metadata-row",(D["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=R,D["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var I,F=M==null?void 0:(I=M())==null?void 0:I.lockupMetadata;I=Y();var G,V;return!!((F==null?0:(G=F.byline)==null?0:G.addPadding)&&((V=_.A(I,AGb))==null?void 0:V.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},D["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var I;
return!!(M==null?0:(I=M())==null?0:I.lockupMetadata)&&Y().badges&&!Y().metadataParts},D))},_.S(_.vK,{data:function(){return Y().badges}},{badgeViewModel:function(I){return _.S("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.S(_.sq,{data:I.data}))}}),_.S(_.G6,{each:z},function(I,F){return _.S(_.c_,null,_.S(MOU,{metadataPart:I,
isOverlay:t,useMediumText:X,hideAvatar:W}),_.S(X37,{delimiter:Z,max:function(){return z().length},
index:F,isStandalone:!1}))}),_.S(_.T,{cond:function(){return Y().isSpacerRow&&!R()},
then:function(){return _.S("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Oa");
_.un=_.RT(function(D){D=_.YC(D,{layout:0,isOverlay:!1});var Y=D.data,R=D.layout,Z=D.isOverlay,t=D.useMediumText,X=D.extensions,M=function(){return R()===0},W=function(){var I;
return((I=Y().metadataRows)==null?void 0:I.filter(function(F){var G,V=X==null?void 0:(G=X())==null?void 0:G.lockupMetadata,e,r;G=!!((V==null?0:(e=V.description)==null?0:e.hideDescription)&&((r=_.A(F,AGb))==null?void 0:r.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var l,U;return!((V==null?0:(l=V.spacer)==null?0:l.hideSpacer)&&((U=_.A(F,AGb))==null?void 0:U.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||G)}))||[]},z={};
return _.S("yt-content-metadata-view-model",{class:_.e7(D.className,"yt-content-metadata-view-model-wiz",(z["yt-content-metadata-view-model-wiz--inline"]=M,z["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.LH(Y().rendererContext)},z["yt-content-metadata-view-model-wiz--medium-text"]=t,z)),
el:_.tp(_.mp(function(){return Y().rendererContext}))},_.S(_.G6,{each:W},function(I,F){return _.S(_.c_,null,_.S(CaD,{metadataRow:I,
isInline:M,delimiter:function(){return Y().delimiter},
isOverlay:Z,useMediumText:t,extensions:X}),_.S(_.T,{cond:function(){return M()&&!I.isSpacerRow},
then:function(){return _.S(X37,{delimiter:function(){return Y().delimiter},
max:function(){return W().length},
index:F,isStandalone:!0})}}))}))},"Pa");
_.un.idomCompat=!0;var Wtz=_.RT(function(D){var Y={};return _.S("yt-lockup-metadata-view-model",{class:_.e7("yt-lockup-metadata-view-model-wiz",function(){a:{var R=D.lockupStyle();if(R==null?0:R.isOverlay)R="yt-lockup-metadata-view-model-wiz--overlay";else switch(R==null?void 0:R.arrangement){case 1:R="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:R="yt-lockup-metadata-view-model-wiz--vertical"}}return R},function(){a:{var R=D.lockupStyle();
if(R==null?0:R.isTiny)R="yt-lockup-metadata-view-model-wiz--tiny";else switch(R==null?void 0:R.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":R="yt-lockup-metadata-view-model-wiz--compact";break a;default:R="yt-lockup-metadata-view-model-wiz--standard"}}return R},(Y["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var R;
return(R=D.lockupStyle())==null?void 0:R.isOverlay},Y["yt-lockup-metadata-view-model-wiz--card"]=function(){var R;
return(R=D.lockupStyle())==null?void 0:R.isCard},Y["yt-lockup-metadata-view-model-wiz--centered"]=function(){var R;
return(R=D.lockupStyle())==null?void 0:R.isCentered},Y["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var R;
return(R=D.lockupStyle())==null?void 0:R.typographyBump},Y["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var R;
return(R=D.lockupStyle())==null?void 0:R.useLegacyTypography},Y["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var R;
return(R=D.lockupStyle())==null?void 0:R.useRichGridLegacyTypography},Y))},_.S(_.vK,{data:function(){return D.data().image}},{avatarStackViewModel:function(R){return _.S("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.S(_.UB,{data:R.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(R){return _.S("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.S(_.Jz,{data:R.data}))},
decoratedAvatarViewModel:function(R){return _.S("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.S(_.kk,{data:R.data}))}}),_.S("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.S("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var R;return(R=D.data().title)==null?void 0:R.content}},_.S(_.T,{cond:function(){return D.data().title},
then:function(R){return _.S(_.PK,{command:D.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:D.lockupAccessibilityLabel},_.S(_.y_,{text:R,userInput:!0}))}})),_.S("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.S(_.vK,{data:function(){return D.data().metadata}},{contentMetadataViewModel:function(R){return _.S(_.un,{data:R.data,
layout:1,useMediumText:function(){var Z,t;return((Z=D.lockupStyle())==null?void 0:Z.typographyBump)||((t=D.lockupStyle())==null?void 0:t.useRichGridLegacyTypography)},
extensions:function(){var Z,t,X,M;return{lockupMetadata:{byline:{hideAvatar:((Z=D.lockupStyle())==null?void 0:Z.arrangement)===0,addPadding:((t=D.lockupStyle())==null?void 0:t.arrangement)===1},description:{hideDescription:!((X=D.lockupStyle())==null||!X.compactMetadata)},spacer:{hideSpacer:!((M=D.lockupStyle())==null||!M.compactMetadata)}}}}})}})),_.S(_.vK,{data:function(){return D.data().attribution}},{attributionViewModel:function(R){return _.S("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.S(sOY,{data:R.data,
useSmallLayout:!0}))}})),_.S("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.S(_.vK,{data:function(){return D.data().menuButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
buttonOverrides:function(){var Z;return((Z=D.lockupStyle())==null?0:Z.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qa");
Wtz.idomCompat=!0;var ziz=_.RT(function(D){var Y=_.dI("notification-multi-action-renderer");_.rf(function(){requestAnimationFrame(function(){_.pq(Y.value)})});
var R={},Z={},t={};return _.S("notification-multi-action-renderer",{class:_.e7("ytNotificationMultiActionRendererHost",(R.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var X;return(X=D.useLegacyShelfStyle)==null?void 0:X.call(D)},R)),
el:Y},_.S("span",{"aria-live":"polite",class:_.e7("ytNotificationMultiActionRendererTextContainer",(Z.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var X;return(X=D.useLegacyShelfStyle)==null?void 0:X.call(D)},Z))},_.S(_.y_,{text:function(){return D.data().responseText}})),_.S("div",{class:_.e7("ytNotificationMultiActionRendererButtonContainer",(t.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var X;
return(X=D.useLegacyShelfStyle)==null?void 0:X.call(D)},t))},_.S(_.vK,{data:function(){var X;
return(X=D.data().buttons)==null?void 0:X.map(function(M){if(M=M.buttonRenderer){var W,z=Object,I=z.assign,F=(W=M.icon)==null?void 0:W.iconType;W=(W=M.command||M.serviceEndpoint||M.navigationEndpoint)?{innertubeCommand:W}:void 0;M={buttonViewModel:I.call(z,{},{iconName:F,onTap:W,trackingParams:M.trackingParams,titleFormatted:M.text?_.K8(M.text):void 0},pwl(M))}}else M=void 0;return M}).filter(function(M){return!!M})}},{buttonViewModel:function(X,M){return _.S("div",null,_.S(_.TV,{data:X.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var W;return((W=D.useModernStyles)==null?0:W.call(D))?{type:M()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ra");var SCD=_.RT(function(D){var Y=_.dI("notification-text-renderer");_.rf(function(){requestAnimationFrame(function(){_.pq(Y.value)})});
return _.S("notification-text-renderer",{el:Y,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.S(_.y_,{text:function(){return D.data().successResponseText}}))},"Sa");_.a4=_.RT(function(D){var Y=_.Ax(hH5,function(){var Z;return EDU((Z=D.contentId)==null?void 0:Z.call(D))}),R=function(){var Z;
return _.A((Z=Y())==null?void 0:Z.command,_.wi)};
return _.S(_.T,{cond:function(){var Z;if(!(Z=R())){var t;Z=_.A((t=Y())==null?void 0:t.command,GtU)}return Z},
then:function(){return _.S(_.T,{cond:R,then:function(){var Z={};return _.S("div",{class:_.e7("ytDismissibleItemReplacedContent",function(){var t;return gD9((t=D.aspectRatio)==null?void 0:t.call(D))})},_.S("div",{class:_.e7((Z.ytDismissibleItemAspectRatioContainer=function(){var t;
return((t=D.aspectRatio)==null?void 0:t.call(D))!==void 0},Z))},_.S(_.vK,{data:function(){var t;
return(t=R())==null?void 0:t.item}},{notificationMultiActionRenderer:function(t){return _.S(ziz,{data:t.data,
useModernStyles:D.useModernStyle,useLegacyShelfStyle:D.useLegacyShelfStyle})},
notificationTextRenderer:SCD})))}})},
else:D.children})},"Ta");_.TxL=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;D=_.tp(_.Zq({visibilityCallback:function(X){var M,W=(M=Y().interaction)==null?void 0:M.onFirstVisible;X&&W&&_.BL(W)},
showOption:_.R4}));var Z=function(){var X;return((X=Y().interaction)==null?0:X.onTap)?function(M){var W;GNi(M,(W=Y().interaction)==null?void 0:W.onTap,R)}:void 0},t=function(){var X,M=Y(),W=Z(),z=(X=_.A(Y().rendererContext,_.ny))==null?void 0:X.label;
a:switch(M.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":X=1;break a;default:X=0}return{size:O3j(M.size),type:X,onTap:W,accessibilityText:z}};
return _.S("ad-avatar-view-model",{class:function(){var X;return((X=Y().interaction)==null?0:X.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:D},_.S(_.T,{cond:function(){return Y().image},
then:function(X){return _.S(dGL,{data:t,image:X})}}))},"Ua");_.M6=_.RT(function(D){var Y=_.YC(D,{hasDot:!1});D=Object.assign({},Y);var R=Y.data,Z=Y.hasDot;Y=Y.customCommandResolver;var t=(delete D.data,delete D.hasDot,delete D.customCommandResolver,D);D=function(){return R().style};
D!==void 0&&D!==null||_.qJ(Error("Eh"));D=_.BK(function(){return R().interaction},Y);
return _.S("ad-badge-view-model",{class:_.e7(function(){var X;return((X=R().interaction)==null?0:X.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var X=t.adRenderingContextType();
R();return X==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.tp(D)},_.S(_.mT,{data:function(){var X;R();return{type:2,text:(X=R().label)==null?void 0:X.content,adsIncludeDot:Z(),isOverlay:R().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Va");var jO1;_.CA=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;var Z=D.adRenderingContextType;return _.S("ad-details-line-view-model",{class:function(){var t;return((t=Y().interaction)==null?0:t.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(t){var X,M=(X=Y().interaction)==null?void 0:X.onFirstVisible;t&&M&&_.BL(M)},
showOption:_.R4}),_.BK(function(){return Y().interaction},R))},_.S(_.T,{cond:function(){return Y().style},
then:function(t){return _.S(_.G6,{each:function(){var X;return((X=Y())==null?void 0:X.attributes)||[]},
keyBy:"INDEX"},function(X){return _.S(jO1,{attribute:X,style:t,adRenderingContextType:function(){return Z()}})})}}))},"Wa");
jO1=_.RT(function(D){var Y=D.attribute;var R=D.style;var Z=D.adRenderingContextType;return _.S(_.T,{cond:function(){return Y().text},
then:function(t){return _.S(_.y_,{text:t,className:function(){var X=Z();R();return X==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Xa");var I24=_.RT(function(D){var Y=D.data;var R=D.typographyBump;var Z=function(){return Y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
D={};return _.S(_.c_,null,_.S("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.S(_.y_,{text:function(){return Y().headline},
className:_.e7("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Z==null?void 0:Z()},D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(R==null?void 0:R())&&!(Z==null?0:Z())},D)),
linkInheritColor:!0}),_.S(_.T,{cond:function(){return Y().description},
then:function(t){var X={};return _.S(_.y_,{text:t,className:_.e7("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(X.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Z==null?void 0:Z()},X.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(R==null?void 0:R())&&!(Z==null?0:Z())},X)),
linkInheritColor:!0})}}),_.S(_.T,{cond:function(){return Y().secondaryDescription},
then:function(t){var X={};return _.S(_.y_,{text:t,className:_.e7("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(X.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return R==null?void 0:R()},X)),
linkInheritColor:!0})}}),_.S("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.S(_.T,{cond:function(){return Y().adAvatar},
then:function(){return _.S("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.S(_.vK,{data:function(){return Y().adAvatar}},{adAvatarViewModel:_.TxL}))}}),_.S(_.vK,{data:function(){return Y().adBadge}},{adBadgeViewModel:function(t){return _.S(_.M6,{data:t.data,
hasDot:function(){return!!Y().adDetailsLine},
adRenderingContextType:function(){return Y().adRenderingContextType}})}}),_.S(_.vK,{data:function(){return Y().adDetailsLine}},{adDetailsLineViewModel:function(t){return _.S(_.CA,{data:t.data,
adRenderingContextType:function(){return Y().adRenderingContextType}})}}))),_.S("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.S(_.vK,{data:function(){return Y().menu}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
buttonOverrides:function(){a:switch(Y().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var X="S";break a;default:X="M"}return{size:X}}})}})))},"Ya"),Ftb=_.RT(function(D){var Y=D.data;
var R=D.noBottomMargin;var Z=D.useVideoLockupTopPadding;var t=D.typographyBump;D={};D=_.e7("ytwFeedAdMetadataViewModelHostMetadata",(D.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return R==null?void 0:R()},D.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},D));
var X=function(){return Y().adBadge};
X!==void 0&&X!==null||_.qJ(Error("Fh"));X={};var M={};return _.S(_.c_,null,_.S(_.T,{cond:function(){return Y().adAvatar},
then:function(){return _.S("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.S(_.vK,{data:function(){return Y().adAvatar}},{adAvatarViewModel:function(W){return _.S(_.TxL,{data:W.data})}}))}}),_.S("div",{class:D},_.S("div",{class:_.e7("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(X.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return t==null?void 0:t()},X.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(t==
null?void 0:t())&&_.f("web_enable_typography_bump_v2")},X))},_.S(_.y_,{text:function(){return Y().headline},
linkInheritColor:!0})),_.S(_.T,{cond:function(){return Y().description},
then:function(W){return _.S(_.y_,{text:W,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.S("div",{class:function(){return Y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.f("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.S(_.vK,{data:function(){return Y().adBadge}},
{adBadgeViewModel:function(W){return _.S(_.M6,{data:W.data,
hasDot:function(){return!!Y().adDetailsLine},
adRenderingContextType:function(){return Y().adRenderingContextType}})}}),_.S(_.vK,{data:function(){return Y().adDetailsLine}},{adDetailsLineViewModel:function(W){return _.S(_.CA,{data:W.data,
adRenderingContextType:function(){return Y().adRenderingContextType}})}})),_.S(_.T,{cond:function(){return Y().secondaryDescription},
then:function(W){return _.S(_.y_,{text:W,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.S("div",{class:_.e7("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},M))},_.S(_.vK,{data:function(){return Y().menu}},{buttonViewModel:_.TV})))},"Za"),GGU=_.RT(function(D){var Y=D.data;
var R=D.noBottomMargin;var Z=D.listenToTapEvent;var t=D.setTouchEndHandler;var X=D.useVideoLockupTopPadding;var M=D.typographyBump;D=_.Zq({visibilityCallback:function(G){var V,e=(V=Y().interaction)==null?void 0:V.onFirstVisible;G&&e&&_.BL(e)},
showOption:_.R4});var W=_.BK(function(){return Y().interaction},void 0,function(){return Z==null?void 0:Z()}),z=_.a(_.ae(!1,void 0,"p7Js8e")),I=z.next().value,F=z.next().value;
z=_.F4(function(G){(t==null?0:t())&&!I()&&(G.currentTarget.click(),F(!0),setTimeout(function(){F(!1)},100));
return!1});
return _.S("feed-ad-metadata-view-model",{class:function(){var G;return((G=Y().interaction)==null?0:G.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.tp(D,W),"on:touchend":z},_.S(_.ej,null,_.S(_.VL,{when:function(){return Y().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.S(I24,{data:Y,
typographyBump:M})}),_.S(_.VL,{when:function(){return Y().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.S(Ftb,{data:Y,
noBottomMargin:R,useVideoLockupTopPadding:X,typographyBump:M})})))},"$a");var VOz;_.Wz=_.RT(function(D){return _.S("yt-lockup-view-model",{class:_.e7(D.className)},_.S(_.a4,{contentId:function(){return D.data().contentId},
useModernStyle:!0,aspectRatio:function(){var Y,R;return((Y=D.containerType)==null?void 0:Y.call(D))!==3?kNU(D.data().contentType,(R=D.force16By9ThumbnailAspectRatio)==null?void 0:R.call(D)):void 0}},function(){return _.S(VOz,Object.assign({},D))}))},"ab");
VOz=_.RT(function(D){D=_.YC(D,{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});var Y=D.data,R=D.containerLayoutConfig,Z=D.containerType,t=D.sizing,X=D.protectBackground,M=D.typographyBump,W=D.force16By9ThumbnailAspectRatio,z=D.thumbnailFixedWidth,I=D.thumbnailTargetWidth,F=D.lockupExperiments,G=D.elementsPerRow;
D=_.tp(_.mp(function(){var nM;return(nM=Y())==null?void 0:nM.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 V=_.qW(S6b),e=_.DH().resolve(_.cD(L1E)),r=e?{}:void 0,l=function(){var nM,Ho,KM;return(KM=(Ho=_.A((nM=Y())==null?void 0:nM.rendererContext,_.ny))==null?void 0:Ho.label)!=null?KM:void 0},U=function(){var nM=R==null?void 0:R(),Ho;
if(nM==null?0:nM.containerType){var KM=(Ho=Y())==null?void 0:Ho.contentType;Ho=F();var Xb=M(),kE=I(),SD=X();nM=Object.assign({},UYi(NjM(nM),b3j(nM.responsiveSize),Xb,KM,nM.force16By9ThumbnailAspectRatio,kE,SD,Ho),{thumbnailFixedWidth:nM.contentPreviewWidth})}else nM=UYi(Z(),t(),M(),(KM=Y())==null?void 0:KM.contentType,W(),I(),X(),F());return nM};
e&&r&&e({enabled:function(){return V()},
itemPlaybackModel:function(){return Y().itemPlayback},
thumbnailElRef:function(){return r.thumbnailElRef},
containerElRef:D,options:function(){var nM,Ho=(nM=_.A(Y().metadata,_.nWE))==null?void 0:nM.endorsement;nM=r.thumbnailOverlays||[];Ho&&nM.push(Ho);var KM,Xb;return{thumbnail:r.thumbnail,thumbnailOverlays:nM,accessibilityText:l(),thumbnailSize:r.thumbnailSize,enableRounding:U().isCollection,containPlayerWithinThumbnail:U().isCollection,trackingParams:(KM=_.A(Y().rendererContext,_.rs))==null?void 0:(Xb=KM.loggingDirectives)==null?void 0:Xb.trackingParams}}});
var K=0;e=_.a(_.ae(!1,void 0,"HzAs3"));var H=e.next().value,c=e.next().value;e=_.a(_.ae(!1,void 0,"ujOXud"));var Q=e.next().value,E=e.next().value;e=_.F4(function(){var nM=V()&&Y().itemPlayback;Q()?(_.yc.cancelJob(K),K=_.yc.addJob(function(){c(!nM)},8,32)):c(!nM);
return!0});
var B=_.F4(function(){K&&(_.yc.cancelJob(K),K=0);c(!1)});
_.w2(function(){K&&(_.yc.cancelJob(K),K=0)});
var O=i3o(function(){E(!0)}),Wo=O.touchFeedbackEvents,Sb=O.touchFeedbackOnPointerUp,VU=O.touchFeedbackOnPointerDown;
O=O.touchFeedbackOnPointerLeave;var AS={};return _.S("div",{el:D,class:_.e7("yt-lockup-view-model-wiz",function(){a:{var nM=U();if(nM.isOverlay)nM="yt-lockup-view-model-wiz--overlay";else switch(nM.arrangement){case 1:nM="yt-lockup-view-model-wiz--horizontal";break a;default:nM="yt-lockup-view-model-wiz--vertical"}}return nM},function(){a:{var nM=U();
if(nM.isOverlay)nM="yt-lockup-view-model-wiz--overlay";else{switch(nM.collectionStackNumber){case 1:nM="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:nM="yt-lockup-view-model-wiz--collection-stack-2";break a}nM=void 0}}return nM},function(){var nM;
return _.Bjb((nM=Y())==null?void 0:nM.contentId)},(AS["yt-lockup-view-model-wiz--card"]=function(){return U().isCard},AS["yt-lockup-view-model-wiz--compact"]=function(){return U().isTiny||U().sizing!=="STANDARD"},AS["yt-lockup-view-model-wiz--protect-background"]=X,AS["yt-lockup-view-model-wiz--add-margins"]=function(){return U().addMarginForFullbleed},AS["yt-lockup-view-model-wiz--centered"]=function(){return U().isCentered},AS["yt-lockup-view-model-wiz--fullbleed"]=function(){return U().fullbleed},
AS["yt-lockup-view-model-wiz--single-column-grid"]=function(){return G()===1&&Z()===2},AS["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var nM;
return(nM=F())==null?void 0:nM.useRichGridLegacyMargin},AS)),
"on:mousedown":VU,"on:mouseleave":B,"on:mouseup":Sb,"on:mouseover":e,"on:touchstart":VU,"on:touchend":Sb,"on:pointerleave":O},_.S(_.PK,{command:function(){var nM;return _.hx((nM=Y())==null?void 0:nM.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return z()&&U().arrangement===1?"width: "+z():""}},_.S(_.vK,{data:function(){var nM;
return(nM=Y())==null?void 0:nM.contentImage}},{thumbnailViewModel:function(nM){return _.S(_.Yo,{data:nM.data,
aspectRatio:function(){return U().aspectRatio},
disableRounding:function(){return U().disableRounding},
width:I,hovered:H,isClip:function(){var Ho;return((Ho=Y())==null?void 0:Ho.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:W1S(r),lockupExperiments:function(){return F()}})},
collectionThumbnailViewModel:function(nM){return _.S(i34,{data:nM.data,aspectRatio:function(){return U().aspectRatio},
disableRounding:function(){return U().disableRounding},
width:I,doubleStack:function(){return U().collectionStackNumber===2},
hovered:H,playbackRef:W1S(r)})},
decoratedAvatarViewModel:_.kk})),_.S("div",{class:"yt-lockup-view-model-wiz__metadata"},_.S(_.vK,{data:function(){var nM;return(nM=Y())==null?void 0:nM.metadata}},{lockupMetadataViewModel:function(nM){return _.S(Wtz,{data:nM.data,
lockupStyle:U,lockupCommand:function(){var Ho;return _.hx((Ho=Y())==null?void 0:Ho.rendererContext)},
lockupAccessibilityLabel:function(){return l()}})},
feedAdMetadataViewModel:function(nM){return _.S(GGU,{data:nM.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:M})}}),_.S(_.vK,{data:function(){var nM;
return(nM=Y())==null?void 0:nM.attachmentSlot}},{lockupAttachmentsViewModel:function(nM){return _.S(RiD,{data:nM.data,
lockupStyle:U})}})),_.S(_.CO,{model:function(){a:{switch(U().collectionStackNumber){case 1:var nM=8;
break a;case 2:nM=12;break a}nM=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:nM}},
pointerDownEvent:Wo.pointerDownEvent,pointerUpEvent:Wo.pointerUpEvent,pointerLeaveEvent:Wo.pointerLeaveEvent}))},"bb");
_.Wz.idomCompat=!0;_.at(_.Wz,"yt-lockup-view-model",{props:{data:_.cs,containerLayoutConfig:_.cs,containerType:_.cs,sizing:_.cs,protectBackground:_.cs,typographyBump:_.cs,thumbnailFixedWidth:_.cs,thumbnailTargetWidth:_.cs,force16By9ThumbnailAspectRatio:_.cs,className:_.cs,lockupExperiments:_.cs,elementsPerRow:_.cs}});var Rib,f2V=_.RT(function(D){var Y=_.YC(D,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),R=Y.text,Z=Y.alwaysShowTruncationText;D=Y.truncationText;var t=Y.onTextClick,X=Y.maxLines,M=Y.disableTextMask,W=Y.textStyle,z=Y.accessibilityLabel,I=Y.textSize,F=Y.alwaysTruncateAtMaxLines,G=Y.expandOnClick;Y=_.a(_.ae(!1,void 0,"lWDnae"));var V=Y.next().value,e=Y.next().value;Y=_.F4(function(){G()&&e(!V());t==null||t()});
var r=function(){a:switch(I()){case "medium":var B=2;break a;case "large":B=2.2;break a;default:B=1.8}return B},l=sOj(R,function(){return V()?Infinity:X()},r,M,F,V),U=l.isTruncated;
R=l.displayText;F=l.contentRef;var K=l.hiddenRef,H=l.placeholderTruncationTextRef,c=l.hiddenTruncationTextRef;l=l.truncationTextRef;var Q={},E={};return _.S("truncated-text",{class:_.e7((Q["truncated-text-wiz"]=!0,Q["truncated-text-wiz--overlay"]=function(){return W()==="overlay"},Q["truncated-text-wiz--medium-text"]=function(){return I()==="medium"},Q["truncated-text-wiz--large-text"]=function(){return I()==="large"},Q["truncated-text-wiz--primary-text"]=function(){return W()==="primary-text"},Q)),
"on:click":Y,style:function(){return"line-height: "+r()+"rem;"}},_.S("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:F,style:function(){return V()?"":"max-height: "+X()*r()+"rem;"}},_.S(_.y_,{text:R}),_.S("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:H,style:function(){return"line-height: "+r()+"rem;"}},_.S(_.y_,{text:D}))),_.S("truncated-text-content",{class:_.e7("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:K,style:function(){return V()?"":"max-height: "+X()*r()+"rem;"},
"aria-hidden":"true"},_.S(_.y_,{text:R}),_.S("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:c,style:function(){return"line-height: "+r()+"rem;"}},_.S(_.y_,{text:D}))),_.S("button",{"aria-label":z,
class:_.e7((E["truncated-text-wiz__absolute-button"]=function(){return!M()},E["truncated-text-wiz__bottom-button"]=function(){return M()},E["truncated-text-wiz--hidden"]=function(){return!(!V()&&(Z!=null&&Z()||U()))},E)),
el:l,style:function(){return"line-height: "+r()+"rem;"}},_.S(_.y_,{text:D})))},"cb");
f2V.idomCompat={callbacks:{onTextClick:!0}};var nu_=_.RT(function(D){var Y=D.data;D=D.className;var R=_.Si(function(){return uuU(Y())},void 0,"sR58pd");
return _.S("yt-video-attribute-view-model",{class:D},_.S("div",{class:function(){var Z=Y();a:switch(Z.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var t="yt-video-attribute-view-model--vertical";break a;default:t="yt-video-attribute-view-model--horizontal"}a:switch(Z.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var X="yt-video-attribute-view-model--image-small";break a;default:X="yt-video-attribute-view-model--image-large"}a:switch(Z.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var M=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":M="yt-video-attribute-view-model--image-avatar";break a;default:M=""}a:switch(Z.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var W="yt-video-attribute-view-model--metadata-header";break a;default:W=""}a:switch(Z.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var z="yt-video-attribute-view-model--container-card";break a;default:z=""}return["yt-video-attribute-view-model",t,X,
M,W,z,uuU(Z)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Ap({"background-color":function(){var Z=Y();if(Z.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var t="";else{t=Z.lightColorPalette;Z=Z.darkColorPalette;var X,M=((X=_.DH().resolve(_.cD(_.O4)))==null?0:X())&&Z?Z:t;t=(t=M==null?void 0:M.section2Color)?_.xI(t):""}return t}})},_.S(_.T,{cond:function(){return R()||!_.f("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.S(_.PK,{className:"yt-video-attribute-view-model__content-container",command:R,role:"group",ariaLabel:function(){return Y().title}},_.S(_.T,{cond:function(){return Y().heroText||Y().image},
then:function(){return _.S(eiL,{data:Y})}}),_.S(Aq_,{data:Y,
sizeSmall:function(){return Y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.S("div",{class:"yt-video-attribute-view-model__content-container"},_.S(_.T,{cond:function(){return Y().heroText||Y().image},
then:function(){return _.S(eiL,{data:Y})}}),_.S(Aq_,{data:Y,
sizeSmall:function(){return Y().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"db");
nu_.idomCompat=!0;var eiL=_.RT(function(D){var Y=D.data;var R,Z=(R=_.DH().resolve(_.cD(_.O4)))==null?void 0:R(),t=function(){return Z&&Y().darkThemeImage?Y().darkThemeImage:Y().image},X=_.Si(function(){return a2n(Y())},void 0,"zGDeMe");
return _.S("div",{class:"yt-video-attribute-view-model__hero-section"},_.S(_.ej,null,_.S(_.VL,{when:t},function(){return _.S(_.Rt,{data:function(){return t()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.S(_.VL,{when:function(){return Y().heroText}},function(){return _.S("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.S("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return Y().heroText}))})),_.S(_.T,{cond:function(){return Y().overflowMenuOnTap},
then:function(){return _.S("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.S(_.Sn,{data:X,iconName:"MORE_VERT"}))}}))},"eb");
eiL.idomCompat=!0;var Aq_=_.RT(function(D){var Y=D.data;D=D.sizeSmall;var R=function(){return Y().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},Z=_.Si(function(){return Qu(_.PL({innertubeCommand:uuU(Y())}))?"link":"group"},void 0,"kGuRzd"),t={};
return _.S("div",{class:_.e7("yt-video-attribute-view-model__metadata",(t["yt-video-attribute-view-model--small-font"]=D,t)),role:Z},_.S("h1",{class:"yt-video-attribute-view-model__title"},function(){return Y().title}),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(){return _.S("h4",{class:"yt-video-attribute-view-model__subtitle"},_.S(_.T,{cond:R,then:function(){return _.S(f2V,{text:function(){return X35(Y().subtitle)},
truncationText:function(){return X35(Y().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.S("span",null,function(){return Y().subtitle})}}))}}),_.S(_.T,{cond:function(){return Y().secondarySubtitle},
then:function(X){return _.S("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.S(_.y_,{text:function(){var M=X();if(M!=null&&M.attachmentRuns){for(var W=[],z=_.a(M.attachmentRuns),I=z.next();!I.done;I=z.next())I=I.value,I.element&&W.push(Object.assign({},I,{element:Object.assign({},I.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));M=Object.assign({},M,{attachmentRuns:W})}return M}}))}}),_.S(_.vK,
{data:function(){return Y().buttonViewModel}},{buttonViewModel:function(X){return _.S(_.TV,{data:X.data,
className:"yt-video-attribute-view-model__button"})}}))},"fb");
Aq_.idomCompat=!0;_.at(nu_,"yt-video-attribute-view-model",{props:{data:_.cs,className:_.cs}});var zw=function(){var D=_.N.apply(this,arguments)||this;D.useHighlightStyling=_.f("web_enable_deeper_metadata_highlight_styling");D.isSearch=!1;D.JSC$15053_lastScrollContainerWidth=NaN;D.pageLoadingFromNavigation=!1;D.currentIndex=0;D.supportComponentResize=!1;return D};
_.n(zw,_.N);_.u=zw.prototype;
_.u.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}}}}}};
_.u.attached=function(){document.addEventListener("yt-page-type-changed",_.jN(this,this.onPageChange))};
_.u.detached=function(){document.removeEventListener("yt-page-type-changed",_.jN(this,this.onPageChange))};
_.u.getItemsPath=function(){return"data.cards"};
_.u.onIronResize=function(){this.updateListStyles()};
_.u.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var D;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(D=this.data)==null?void 0:D.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.f("problem_walkthrough_sd")&&!!this.centerItems};
_.u.computeCardListStyle=function(D){return D||null};
_.u.computeEmpty=function(D){return!this.get("cards.length",D)};
_.u.computeThumbnailStyle=function(D){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",D)||null};
_.u.computeHasSubtitle=function(D){return!!this.get("header.richListHeaderRenderer.subtitle",D)};
_.u.computeInitialCountNumber=function(D){return this.hasSquareMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.u.computeUseFloorScrolling=function(D){return D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.u.computeHasGameCard=function(D){return(D=this.get("cards",D))?D.some(function(Y){return Y.gameCardRenderer}):!1};
_.u.computeCenterHeaderTitle=function(D){return!(D==null||!D.centerHeaderTitle)};
_.u.computeHasPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(Y){return Y.miniGameCardViewModel&&Y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.u.computeHasSquareMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(Y){return Y.miniGameCardViewModel&&Y.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.u.computeHasSkinnyWidthPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(Y){return Y.miniGameCardViewModel&&Y.miniGameCardViewModel.width===135}):!1};
_.u.computeCenterItems=function(D){return!!D};
_.u.computeHasInfoPanel=function(D){var Y;return D==null?void 0:(Y=D.cards)==null?void 0:Y.some(function(R){return R.infoPanelContentRenderer})};
_.u.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.u.getItemByIndex=function(D){var Y=this.items.children;return Y&&Y.length>D?Y[D]:void 0};
_.u.onPageChange=function(){var D=this;this.pageLoadingFromNavigation=!0;_.yc.addJob(function(){D.pageLoadingFromNavigation=!1;_.WC(D.hostElement,"yt-terminate-video-preview-action")},8)};
_.u.updateListStyles=function(){if(_.f("problem_walkthrough_sd")&&this.JSC$15053_scrollContainer!==void 0){var D=this.JSC$15053_scrollContainer.clientWidth;D!==this.JSC$15053_lastScrollContainerWidth&&(this.JSC$15053_lastScrollContainerWidth=D,_.SN(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(D*.8,415)+"px"}),_.MX(this.hostElement,"iron-resize"))}};
_.YF.Object.defineProperties(zw.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.f("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!((D=this.data)==null?0:(Y=D.cards)==null?0:(R=Y[0])==null?0:R.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!((D=this.data)==null?0:(Y=D.cards)==null?0:(R=Y[0])==null?0:R.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return _.f("enable_desktop_amsterdam_info_panels")&&!!((D=this.data)==null?0:(Y=D.cards)==null?0:(R=Y[0])==null?0:R.infoPanelContentRenderer)}}});
zw.prototype.dataChanged=zw.prototype.dataChanged;zw.prototype.onIronResize=zw.prototype.onIronResize;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],zw.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.v(_.HH),_.x("design:type",Object)],zw.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],zw.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],zw.prototype,"useCustomColors",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zw.prototype,"useHighlightStyling",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.x("design:type",Object)],zw.prototype,"cardListStyle",void 0);_.q([_.y({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.x("design:type",Boolean)],zw.prototype,"empty",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.x("design:type",Boolean)],zw.prototype,"hasSubtitle",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.x("design:type",Boolean)],zw.prototype,"thumbnailStyle",void 0);_.q([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.x("design:type",Boolean)],zw.prototype,"hasGameCard",void 0);_.q([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.x("design:type",Boolean)],zw.prototype,"centerHeaderTitle",void 0);
_.q([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.x("design:type",Boolean)],zw.prototype,"hasPortraitMiniApp",void 0);_.q([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.x("design:type",Boolean)],zw.prototype,"hasSquareMiniApp",void 0);_.q([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.x("design:type",Boolean)],zw.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.q([_.y({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.x("design:type",Boolean)],zw.prototype,"hasInfoPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zw.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zw.prototype,"inlineStructuredDescription",void 0);_.q([_.fr("#scroll-container"),_.x("design:type",HTMLDivElement)],zw.prototype,"JSC$15053_scrollContainer",void 0);
_.q([_.y({computed:"computeInitialCountNumber(data.style.type)"}),_.x("design:type",Number)],zw.prototype,"initialCount",void 0);_.q([_.y({computed:"computeUseFloorScrolling(data.style.type)"}),_.x("design:type",Boolean)],zw.prototype,"useFloorScrolling",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.x("design:type",Boolean)],zw.prototype,"centerItems",void 0);_.q([_.y(),_.x("design:type",Object)],zw.prototype,"pageLoadingFromNavigation",void 0);
_.q([_.y(),_.x("design:type",Object)],zw.prototype,"currentIndex",void 0);_.q([_.y(),_.x("design:type",Number)],zw.prototype,"scrollCount",void 0);_.q([_.y(),_.x("design:type",Object)],zw.prototype,"supportComponentResize",void 0);_.q([_.fr("#items"),_.x("design:type",HTMLDivElement)],zw.prototype,"items",void 0);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zw.prototype,"onIronResize",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zw.prototype,"dataChanged",null);_.q([_.y({reflectToAttribute:!0}),_.b("inlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zw.prototype,"hideNavigationButton",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zw.prototype,"modernChapters",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zw.prototype,"hasVideoAttributeViewModels",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zw.prototype,"modernInfoPanels",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],zw);
_.L(zw,"ytd-horizontal-card-list-renderer",function(){if(GNb!==void 0)return GNb;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return GNb=D},{mode:_.zD("kevlar_poly_si_batch_j072")?1:2});var rq4=_.RT(function(D){var Y=D.data;var R={};return _.S("video-summary-content-view-model",{class:_.e7("video-summary-content-view-model-wiz",D.className,(R["video-summary-content-view-model-wiz--is-search"]=D.isSearch,R))},_.S(_.G6,{each:function(){var Z=[],t=Y().paragraphs;if(t==null||!t.length)return[];for(var X=0;X<t.length;X++){var M=_.A(t[X],N77),W=void 0;X>0&&(W=_.A(t[X-1],N77));W&&!!W.marker===!!M.marker?Z[Z.length-1].paragraphs.push(M):Z.push({isList:!!M.marker,paragraphs:[M]})}return Z},
keyBy:"INDEX"},function(Z){return _.S(_.T,{cond:function(){return Z().isList},
then:function(){return _.S("ul",{class:"video-summary-content-view-model-wiz__list"},_.S(_.G6,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(t){return _.S("li",{class:"video-summary-content-view-model-wiz__list-item"},_.S(_.y_,{text:function(){return t().text}}))}))},
else:function(){return _.S(_.G6,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(t){return _.S("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.S(_.y_,{text:function(){return t().text}}))})}})}),_.S(_.T,{cond:function(){return!!_.A(Y().likeButtonViewModel,_.U_)&&!!_.A(Y().dislikeButtonViewModel,_.kG)},
then:function(){return _.S("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.S("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.S(_.h7,{data:function(){return _.A(Y().likeButtonViewModel,_.U_)},
disableIconAnimation:!0})),_.S(_.KV,{data:function(){return _.A(Y().dislikeButtonViewModel,_.kG)}}))}}))},"gb");
rq4.idomCompat=!0;_.at(rq4,"video-summary-content-view-model",{props:{data:_.cs,isSearch:_.cs,className:_.cs}});var S9=function(){var D=_.N.apply(this,arguments)||this;var Y,R;D.isExpanded=(R=(Y=D.data)==null?void 0:Y.isExpanded)!=null?R:!1;D.disableExpand=!1;D.showProminentLabel=!1;D.showRightSideLabel=!0;D.toggleExpandableContent=function(Z){D.disableExpand||(Z.stopPropagation(),_.RP(_.O$(Z),D.hostElement,["info","expanded-subtitle"])||(D.isExpanded=!D.isExpanded,D.ytRendererBehavior.logExplicitClick(D.data),D.JSC$15064_cardList&&!_.f("expandable_metadata_a11y_fix_ks")&&_.cy(D,function(){_.Bg(D.hostElement)})))};
D.useSquareThumbnail=!1;D.contentHiddenWithDisplayNone=_.f("web_expandable_metadata_content_hidden_with_display_none");D.startX=0;return D};
_.n(S9,_.N);_.u=S9.prototype;_.u.computeUseSquareThumbnail=function(){var D;return(D=this.data)==null?void 0:D.useSquareThumbnail};
_.u.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"}}}}};
_.u.dataChanged=function(){if(this.data){var D,Y;this.isExpanded=(Y=(D=this.data)==null?void 0:D.isExpanded)!=null?Y:!1;var R,Z,t,X;if(D=this.isDarkTheme()?(R=this.data)==null?void 0:(Z=R.colorData)==null?void 0:Z.darkColorPalette:(t=this.data)==null?void 0:(X=t.colorData)==null?void 0:X.lightColorPalette){var M,W;if((M=this.data)==null?0:(W=M.colorData)==null?0:W.vibrantColorPalette)D.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Jp(this.hostElement,D)}}};
_.u.isExpandedChanged=function(){this.isExpanded&&this.JSC$15064_cardList&&_.MX(this.JSC$15064_cardList,"iron-resize")};
_.u.computeIsExpanded=function(D){return!!D.isExpanded};
_.u.computeShowProminentLabel=function(D,Y){var R;return!!(D==null?0:(R=D.header)==null?0:R.showLeadingCollapsedLabel)&&!Y};
_.u.computeShowRightSideLabel=function(D,Y){var R;return!(D==null?0:(R=D.header)==null?0:R.showLeadingCollapsedLabel)&&!Y};
_.u.captureContentClick=function(D){if(!this.disableExpand)if(_.f("expandable_metadata_fix_killswitch")){var Y=D.target;_.OLL(Y,"ytd-macro-markers-list-item-renderer")||D.stopPropagation();(Y==null?void 0:Y.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.RP(_.O$(D),this.hostElement,["items"])||_.Yc(_.O$(D),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.u.timestampClick=function(D){D.stopPropagation();var Y,R;(D=(Y=this.data)==null?void 0:(R=Y.header)==null?void 0:R.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(D)};
_.u.onDown=function(D){D.stopPropagation();this.startX=D.detail?D.detail.x:0};
_.u.onUp=function(D){this.skipKeyInteraction(D)&&D.stopPropagation()};
_.u.skipKeyInteraction=function(D){var Y=D.target;if((Y==null?void 0:Y.id)==="scroll-container"||(Y==null?void 0:Y.id)==="items"||D.detail&&D.detail.x!==this.startX)return!0;D=_.O$(D);D=_.a(D);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;if(Y===this.hostElement)break;if(Y.hasAttribute&&Y.hasAttribute("skip-key-interaction"))return!0}return!1};
_.u.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.YF.Object.defineProperties(S9.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.A((D=this.data)==null?void 0:D.expandedContent,yw7)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.A((D=this.data)==null?void 0:D.expandedContent,_.rGE)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.useCustomColors)&&!((Y=this.data)==null||!Y.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!((D=this.data)==null?0:(Y=D.header)==null?0:Y.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!((D=this.data)==null?0:(Y=D.header)==null?0:Y.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!((D=this.data)==null?0:(Y=D.header)==null?0:Y.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.f("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
S9.prototype.onUp=S9.prototype.onUp;S9.prototype.onDown=S9.prototype.onDown;S9.prototype.isExpandedChanged=S9.prototype.isExpandedChanged;S9.prototype.dataChanged=S9.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],S9.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],S9.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],S9.prototype,"isExpanded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],S9.prototype,"disableExpand",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],S9.prototype,"isSearch",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],S9.prototype,"isWatch",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.x("design:type",Object)],S9.prototype,"showProminentLabel",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.x("design:type",Object)],S9.prototype,"showRightSideLabel",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"hasVideoSummary",null);_.q([_.y({value:!1,reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"hasLockupViewModel",null);_.q([_.y({reflectToAttribute:!0}),_.b("data","isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"useCustomColors",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"showInfoButton",null);_.q([_.b("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"showTimestamp",null);_.q([_.b("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"showExpandedSubtitle",null);
_.q([_.b("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"showThumbnail",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"useVppShoppingDestinationStyle",null);_.q([_.y(),_.x("design:type",Object)],S9.prototype,"toggleExpandableContent",void 0);_.q([_.fr("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],S9.prototype,"JSC$15064_cardList",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.x("design:type",Object)],S9.prototype,"useSquareThumbnail",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],S9.prototype,"contentHiddenWithDisplayNone",void 0);_.q([_.b("isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],S9.prototype,"contentHidden",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S9.prototype,"dataChanged",null);_.q([_.Gm("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S9.prototype,"isExpandedChanged",null);_.q([_.Fv("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],S9.prototype,"onDown",null);
_.q([_.Fv("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],S9.prototype,"onUp",null);_.q([_.h({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],S9);
_.L(S9,"ytd-expandable-metadata-renderer",function(){if(rbU!==void 0)return rbU;var D=document.createElement("template");_.w(D,'\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]]">\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="[[contentHidden]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rbU=D},{mode:1});var w3U,$HL=function(){if(w3U!==void 0)return w3U;var D=document.createElement("template");_.w(D,'\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      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" 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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return w3U=D};_.at(_.UB,"yt-avatar-stack-view-model",{props:{className:_.cs,data:_.cs,overrides:_.cs,isOverlay:_.cs,useMediumText:_.cs,decorations:_.cs,hideAvatar:_.cs}});_.UD("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Tw=function(){var D=_.N.apply(this,arguments)||this;D.disableExpand=!1;D.shouldShowChannelInfo=!1;D.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return D};
_.n(Tw,_.N);_.u=Tw.prototype;_.u.computeUseSearchUi=function(){var D,Y;return this.isSearch||((D=this.data)==null?void 0:(Y=D.style)==null?void 0:Y.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.u.computeUseThreeLineTitle=function(){var D;return((D=this.data)==null?void 0:D.maxTitleLines)===3};
_.u.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.f("polymer_video_renderer_defer_menu")&&!Inz?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"}}}};
_.u.attached=function(){_.Cr(this.hostElement,"blue-links",_.f("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.WE(_.aU(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Y;D&&((Y=_.A(D.commandMetadata,_.yX))==null?0:Y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D);this.updateInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15069_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.JSC$15069_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15069_inlinePreviewHoverListener)==null||DF(D)};
_.u.onTextWrapperClick=function(D){var Y,R,Z=this.hideTranslation?(Y=this.data)==null?void 0:Y.untranslatedNavigationEndpoint:(R=this.data)==null?void 0:R.navigationEndpoint;Y=_.RP(_.O$(D),this.hostElement,["expandable-metadata"]);!Z||Y&&!_.f("expandable_metadata_fix_killswitch")||_.Yc(_.O$(D),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.MX(this.hostElement,"yt-navigate",{endpoint:Z})};
_.u.computeThumbnailWidth=function(D,Y,R,Z,t){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Z?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:R?360:Y?128:D?210:246};
_.u.computeUseBiggerThumbs=function(D){return D&&_.f("enable_desktop_search_bigger_thumbs")};
_.u.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.u.computeVideoStyle=function(){if(_.f("enable_video_style")){var D,Y;return(D=this.data)==null?void 0:(Y=D.style)==null?void 0:Y.value}};
_.u.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.u.handleHideItemSectionVideosByIdCommand=function(D){var Y;D=(Y=_.A(D,cHV))==null?void 0:Y.videoId;this.data&&this.data.videoId===D&&(this.isHidden=!0)};
_.u.getMetadataSnippetContainerClass=function(D){return D?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.u.computeTitleText=function(D,Y,R){return D?R:Y};
_.u.computeDescriptionSnippet=function(D,Y,R){return D?R:Y};
_.u.computeSnippetText=function(D,Y,R){return D?R:Y};
_.u.computeNavigationEndpoint=function(D,Y){return D?Y==null?void 0:Y.untranslatedNavigationEndpoint:Y==null?void 0:Y.navigationEndpoint};
_.u.hideInlineTitleIcon=function(D,Y){return D||!Y};
_.YF.Object.defineProperties(Tw.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 D;return(D=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?D:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!(this==null?0:(D=this.data)==null?0:(Y=D.channelThumbnailSupportedRenderers)==null?0:(R=Y.channelThumbnailWithLinkRenderer)==null?0:R.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.A((D=this.data)==null?void 0:D.avatar,wkL)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15069_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.YF.Object.defineProperties(Tw,{template:{configurable:!0,enumerable:!0,get:function(){return $HL()}}});
Tw.prototype.dataChanged=Tw.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Tw.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.gM),_.x("design:type",Object)],Tw.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Tw.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Tw.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Tw.prototype,"isBackstageVideo",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Tw.prototype,"isPostCompactVideo",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Tw.prototype,"isHistory",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Tw.prototype,"isRichGridVideoPost",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Tw.prototype,"isHidden",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Tw.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.x("design:type",Boolean)],Tw.prototype,"useSearchUi",void 0);_.q([_.y({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.x("design:type",Boolean)],Tw.prototype,"useThreeLineTitle",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.x("design:type",Boolean)],Tw.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.x("design:type",Object)],Tw.prototype,"videoStyle",void 0);_.q([_.y({computed:"computeDisableExpand(videoStyle)"}),_.x("design:type",Object)],Tw.prototype,"disableExpand",void 0);
_.q([_.y({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.x("design:type",Object)],Tw.prototype,"shouldShowChannelInfo",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Tw.prototype,"biggerThumbsStyle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.x("design:type",String)],Tw.prototype,"inlineTitleIcon",void 0);_.q([_.y({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.x("design:type",Object)],Tw.prototype,"computedNavigationEndpoint",void 0);_.q([_.y({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(D,Y){return _.jC(D.entities,"searchVideoResultEntity",Y)}}),
_.x("design:type",Object)],Tw.prototype,"searchVideoResultEntity",void 0);_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],Tw.prototype,"thumbnail",void 0);_.q([_.fr("#dismissible"),_.x("design:type",HTMLElement)],Tw.prototype,"JSC$15069_dismissibleMedia",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tw.prototype,"dataChanged",null);
_.q([_.b("searchVideoResultEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Tw.prototype,"hideTranslation",null);_.q([_.b("searchVideoResultEntity"),_.x("design:type",Array),_.x("design:paramtypes",[])],Tw.prototype,"hiddenBadgeGroups",null);_.q([_.b("data","useAvatar"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Tw.prototype,"shouldShowChannelThumbnail",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Tw.prototype,"useAvatar",null);
_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Tw.prototype,"isHovered",null);_.q([_.h({is:"ytd-video-renderer",disableElementRegistration:!0})],Tw);_.L(Tw,"ytd-video-renderer",function(){return $HL()},{mode:_.zD("kevlar_poly_si_batch_j047")?1:2});var j9=function(){var D=_.N.apply(this,arguments)||this;D.editDialog=null;D.roundedContainer=!0;D.isLoading=!1;D.isRichGrid=!1;D.isRichGridRepost=!1;D.reduceSidePaddings=_.f("reduce_side_paddings_in_shelf");D.JSC$15076_spinnerEl=null;return D};
_.n(j9,_.N);_.u=j9.prototype;
_.u.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"}}}};
_.u.contentTextChanged=function(){this.expander.reset()};
_.u.dataChanged=function(){var D=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var Y=0,R=this.data.actions&&this.data.actions.length;Y<R;Y++)this.openEditDialog(_.A(this.data.actions[Y],MEL));if((Y=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(Y=this.get("buttonRenderer.hint.hintRenderer.hintId",Y))&&Y.startsWith("share-post-hint")){var Z=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Z){_.uB.getInstance();var t=a8(_.i0(_.fX("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.yc.addLowPriorityJob(function(){_.Se(D.hostElement,t,Z)})}}}};
_.u.updatePoll=function(D){D>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.u.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15076_spinnerEl||(this.JSC$15076_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.aU(this.hostElement).appendChild(this.JSC$15076_spinnerEl));this.JSC$15076_spinnerEl&&(this.JSC$15076_spinnerEl.active=this.isLoading)};
_.u.onYtNavigate=function(D){var Y=this.get("updateCommentDialogEndpoint",D.detail.endpoint);Y&&(this.openEditDialog(Y),D.stopPropagation())};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null};
_.u.onYtCommentPollRevert=function(D,Y){Y&&this.updatePoll(Y.selectedChoiceIndex)};
_.u.onYtServiceRequestSent=function(D,Y){var R;Y.endpoint&&(_.A(Y.endpoint,q_E)||_.A(Y.endpoint,mvV)&&((R=_.A(Y.endpoint,mvV))==null||!R.clientActions))&&(this.isLoading=!0);if(Y.actions)for(D=0;D<Y.actions.length;D++)R=Y.actions[D],_.A(R,o5)&&(R=this.get("updateBackstagePollAction.selectedChoiceIndex",R),R==void 0&&(R=-1),this.updatePoll(R))};
_.u.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.u.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.u.computeIsPostHidden=function(D,Y){return!!D||Y};
_.u.computeSurfaceType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.u.computeShowWithoutToolbar=function(D){return!D.actionButtons&&!D.actionMenu};
_.u.computePostAttachment=function(D){if(D.backstageAttachment){if(_.A(D.backstageAttachment,fVY))return"poll";if(_.A(D.backstageAttachment,tBz))return"quiz";if(_.A(D.backstageAttachment,_.xG))return"video";if(_.A(D.backstageAttachment,s5D))return"uploaded-videos";if(_.A(D.backstageAttachment,J0z))return D.contentText?"image":"image-only";if(_.A(D.backstageAttachment,Dv1))return"playlist"}return"none"};
_.u.computePostTabIndex=function(D){return D?0:-1};
_.u.computeButtonTooltipPosition=function(D){return this.computeUsesCompactLockup(D)?"top":"bottom"};
_.u.computeHasText=function(D){return!(D==null||!D.contentText)};
_.u.onTap=function(D){var Y,R;if(((Y=this.data)==null?0:Y.navigationEndpoint)&&((R=this.data)==null?void 0:R.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Z;((Z=this.data)==null?0:Z.navigationEndpoint)&&!_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.YF.Object.defineProperties(j9.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.i0("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,fVY))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,s5D))}}});
j9.prototype.onYtServiceRequestCompleted=j9.prototype.onYtServiceRequestCompleted;j9.prototype.onYtServiceRequestSent=j9.prototype.onYtServiceRequestSent;j9.prototype.onYtCommentPollRevert=j9.prototype.onYtCommentPollRevert;j9.prototype.onYtCommentboxDismiss=j9.prototype.onYtCommentboxDismiss;j9.prototype.onYtNavigate=j9.prototype.onYtNavigate;j9.prototype.isLoadingChanged=j9.prototype.isLoadingChanged;j9.prototype.dataChanged=j9.prototype.dataChanged;j9.prototype.contentTextChanged=j9.prototype.contentTextChanged;
_.q([_.v(_.HH),_.x("design:type",Object)],j9.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],j9.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],j9.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],j9.prototype,"editDialog",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],j9.prototype,"roundedContainer",void 0);_.q([_.y(),_.x("design:type",Object)],j9.prototype,"isLoading",void 0);_.q([_.y({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.x("design:type",String)],j9.prototype,"surface",void 0);
_.q([_.y({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.x("design:type",Boolean)],j9.prototype,"usesCompactLockup",void 0);_.q([_.y({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],j9.prototype,"showWithoutToolbar",void 0);_.q([_.y({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.x("design:type",String)],j9.prototype,"attachment",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],j9.prototype,"isRichGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],j9.prototype,"isRichGridRepost",void 0);_.q([_.y({reflectToAttribute:!0,value:_.f("use_better_post_dismissals")}),_.x("design:type",Boolean)],j9.prototype,"useBetterPostDismissals",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],j9.prototype,"reduceSidePaddings",void 0);
_.q([_.y({computed:"computeHasText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],j9.prototype,"hasText",void 0);_.q([_.fr("#expander"),_.x("design:type",Object)],j9.prototype,"expander",void 0);_.q([_.fr("#action-buttons"),_.x("design:type",Object)],j9.prototype,"actionButtons",void 0);_.q([_.fr("#edit-dialog"),_.x("design:type",HTMLElement)],j9.prototype,"editDialogEl",void 0);
_.q([_.Gm("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j9.prototype,"contentTextChanged",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j9.prototype,"dataChanged",null);_.q([_.Gm("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j9.prototype,"isLoadingChanged",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j9.prototype,"onYtNavigate",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j9.prototype,"onYtCommentboxDismiss",null);_.q([_.Fv("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],j9.prototype,"onYtCommentPollRevert",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],j9.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],j9.prototype,"onYtServiceRequestCompleted",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],j9.prototype,"voteCount",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],j9.prototype,"commentCount",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],j9.prototype,"hasPoll",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],j9.prototype,"hasUploadedVideo",null);_.q([_.h({is:"ytd-post-renderer",disableElementRegistration:!0})],j9);
_.L(j9,"ytd-post-renderer",function(){if(Bc_!==void 0)return Bc_;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Bc_=D},{mode:1});var vuY;var ouE;var I4=function(){return _.N.apply(this,arguments)||this};
_.n(I4,_.N);I4.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],I4.prototype,"ytdHorizontalListBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],I4.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],I4.prototype,"data",void 0);
_.q([_.y({value:"$.items.children"}),_.x("design:type",String)],I4.prototype,"itemsPath",void 0);_.q([_.y({value:1}),_.x("design:type",Number)],I4.prototype,"initialCount",void 0);_.q([_.y(),_.x("design:type",String)],I4.prototype,"surface",void 0);_.q([_.h({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],I4);
_.L(I4,"ytd-post-multi-image-renderer",function(){if(ouE!==void 0)return ouE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ouE=D},{mode:_.zD("kevlar_poly_si_batch_j079")?1:2});var bl4={"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",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"}}},F2=function(){var D=_.N.apply(this,arguments)||this;D.hasInlineCommentSection=!1;D.editDialog=null;D.isLoading=!1;D.shouldHideAuthor=!1;D.shouldShowVideoTime=!1;
D.isInEngagementPanel=!1;D.hideBorder=!1;D.usesFullLockup=!1;D.shouldShowMenuInCompactView=!1;D.JSC$15092_spinnerEl=null;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.n(F2,_.N);_.u=F2.prototype;_.u.configureRendererStamper=function(){return bl4};
_.u.computeIsPollHeaderEnabled=function(D){return(D==null?void 0:D.pollMetadataIcon)!=null};
_.u.getPublishTimeStampString=function(D,Y){Y=new Date((Number(Y)-60*((new Date).getTimezoneOffset()-(new Date(Number(Y)*1E3)).getTimezoneOffset()))*1E3);Y=(new gL(10)).format(Y);if(D&&D.runs&&D.runs.length)for(var R=0;R<D.runs.length;R++)D.runs[R].text&&(D.runs[R].text=D.runs[R].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",Y));return D};
_.u.created=function(){this.JSC$15092_spinnerEl=null};
_.u.contentTextChanged=function(){this.expander.reset()};
_.u.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var D;if((D=this.data)==null?0:D.actions){D=_.a(this.data.actions);for(var Y=D.next();!Y.done;Y=D.next())this.openEditDialog(_.A(Y.value,MEL))}};
_.u.handleSignalActionOpenPostCommentDialogAction=function(){_.aU(this.hostElement).querySelector("#action-buttons").reply()};
_.u.updatePoll=function(D,Y){Y&&this.set("data.pollMetadataVoteCountText",Y);this.hasInlineCommentSection&&(D=D>=0,Y=_.aU(this.hostElement).querySelector("#action-buttons"),D?Y.reply():Y.hideReplyDialog())};
_.u.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15092_spinnerEl||(this.JSC$15092_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.aU(this.hostElement).appendChild(this.JSC$15092_spinnerEl));this.JSC$15092_spinnerEl&&(this.JSC$15092_spinnerEl.active=this.isLoading)};
_.u.onYtNavigate=function(D){var Y=this.get("updateCommentDialogEndpoint",D.detail.endpoint);Y&&(this.openEditDialog(Y),D.stopPropagation())};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null};
_.u.onYtCommentPollRevert=function(D,Y){Y&&this.updatePoll(Y.selectedChoiceIndex,Y.totalVotes)};
_.u.onYtServiceRequestSent=function(D,Y){D.stopPropagation();D=_.A(Y.endpoint,mvV);if(_.A(Y.endpoint,q_E)||D&&!D.clientActions)this.isLoading=!0;if(Y.actions)for(D=0;D<Y.actions.length;D++){var R=Y.actions[D],Z=_.A(R,o5);Z&&(R=this.get("updateBackstagePollAction.selectedChoiceIndex",R),R===void 0&&(R=-1),this.updatePoll(R,Z.totalVotes))}};
_.u.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.u.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogElement.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.u.computeIsBodyHidden=function(D,Y){return!!D||Y};
_.YF.Object.defineProperties(F2.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var D,Y;if((D=this.data)==null?0:(Y=D.pollMetadataIcon)==null?0:Y.iconType)return _.IT(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.i0("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,fVY))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,tBz))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.A(this.data.backstageAttachment,s5D))}}});
F2.prototype.onYtServiceRequestCompleted=F2.prototype.onYtServiceRequestCompleted;F2.prototype.onYtServiceRequestSent=F2.prototype.onYtServiceRequestSent;F2.prototype.onYtCommentPollRevert=F2.prototype.onYtCommentPollRevert;F2.prototype.onYtCommentboxDismiss=F2.prototype.onYtCommentboxDismiss;F2.prototype.onYtNavigate=F2.prototype.onYtNavigate;F2.prototype.isLoadingChanged=F2.prototype.isLoadingChanged;F2.prototype.dataChanged=F2.prototype.dataChanged;F2.prototype.contentTextChanged=F2.prototype.contentTextChanged;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],F2.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],F2.prototype,"rendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],F2.prototype,"rendererstamperBehavior",void 0);_.q([_.fr("#contentTextExpander"),_.x("design:type",Object)],F2.prototype,"expander",void 0);
_.q([_.fr("#edit-dialog"),_.x("design:type",Element)],F2.prototype,"editDialogElement",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"hasInlineCommentSection",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"editDialog",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"isLoading",void 0);
_.q([_.y({computed:"computeIsPollHeaderEnabled(data)"}),_.x("design:type",Boolean)],F2.prototype,"isPollHeaderEnabled",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"shouldHideAuthor",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"shouldShowVideoTime",void 0);_.q([_.y(),_.x("design:type",Object)],F2.prototype,"isInEngagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F2.prototype,"hideBorder",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F2.prototype,"usesFullLockup",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F2.prototype,"shouldShowMenuInCompactView",void 0);_.q([_.b("isInEngagementPanel"),_.x("design:type",Number),_.x("design:paramtypes",[])],F2.prototype,"postTextMaxLines",null);_.q([_.b("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"pollIcon",null);
_.q([_.Gm("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"contentTextChanged",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"dataChanged",null);_.q([_.Gm("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"isLoadingChanged",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F2.prototype,"onYtNavigate",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F2.prototype,"onYtCommentboxDismiss",null);_.q([_.Fv("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],F2.prototype,"onYtCommentPollRevert",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],F2.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F2.prototype,"onYtServiceRequestCompleted",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"voteCount",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],F2.prototype,"commentCount",null);_.q([_.b("data.backstageAttachment"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],F2.prototype,"hasPoll",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],F2.prototype,"hasQuiz",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],F2.prototype,"hasUploadedVideo",null);
_.q([_.h({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],F2);
_.L(F2,"ytd-backstage-post-renderer",function(){if(vuY!==void 0)return vuY;var D=document.createElement("template");_.w(D,'\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="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.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="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return vuY=D},{mode:1});var yq_;var Gw=function(){var D=_.N.apply(this,arguments)||this;D.editDialog=null;D.showExpandButton=!1;D.isRichGrid=!1;D.usesFullLockup=!1;return D};
_.n(Gw,_.N);_.u=Gw.prototype;_.u.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"}}}};
_.u.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.u.computeShowExpandButton=function(D){return this.usesCompactLockup||D&&D.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.u.computeUsesCompactLockup=function(D){return!!D.condensedContent};
_.u.computeShowFullContentText=function(D){return!D};
_.u.onYtNavigate=function(D){D=this.get("updateCommentDialogEndpoint",D.detail.endpoint);this.openEditDialog(D)};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null};
_.u.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.repostEditDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.u.onTap=function(D){if(this.data){var Y=null;this.usesCompactLockup&&!_.Yc(_.O$(D)||[],this.hostElement,["YT-IMG-SHADOW"])?Y=this.get("navigationEndpoint",this.data):D.target===this.moreButtonEl&&(Y=this.get("navigationEndpoint",D.target.data));Y&&_.MX(this.hostElement,"yt-navigate",{endpoint:Y})}};
Gw.prototype.onYtCommentboxDismiss=Gw.prototype.onYtCommentboxDismiss;Gw.prototype.onYtNavigate=Gw.prototype.onYtNavigate;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Gw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gw.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],Gw.prototype,"editDialog",void 0);_.q([_.y({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Gw.prototype,"usesCompactLockup",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gw.prototype,"showExpandButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gw.prototype,"isRichGrid",void 0);
_.q([_.y({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Gw.prototype,"showFullContentText",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gw.prototype,"usesFullLockup",void 0);_.q([_.fr("#more"),_.x("design:type",Object)],Gw.prototype,"moreButtonEl",void 0);_.q([_.fr("#repost-content-text"),_.x("design:type",HTMLElement)],Gw.prototype,"repostContentTextEl",void 0);
_.q([_.fr("#repost-edit-dialog"),_.x("design:type",HTMLElement)],Gw.prototype,"repostEditDialogEl",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gw.prototype,"dataChanged",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Gw.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gw.prototype,"onYtCommentboxDismiss",null);_.q([_.h({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Gw);
_.L(Gw,"ytd-shared-post-renderer",function(){if(yq_!==void 0)return yq_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return yq_=D},{mode:1});var NxU;var l2V;var Vw=function(){return _.N.apply(this,arguments)||this};
_.n(Vw,_.N);Vw.prototype.attached=function(){var D=this;this.networkStatusManager||(this.networkStatusManager=new _.xQ,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){D.onlineHandler()}))};
Vw.prototype.detached=function(){var D=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){D.onlineHandler()}),delete this.networkStatusManager)};
Vw.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Vw.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Vw.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Vw);
_.L(Vw,"ytd-reload-page-button-renderer",function(){if(l2V!==void 0)return l2V;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return l2V=D},{mode:1});var Jq4={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"},fA=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(fA,_.N);_.u=fA.prototype;_.u.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.u.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.u.computeHasBodyText=function(D){return!!D.bodyText};
_.u.computeButtons=function(D){var Y=[];D.ctaButton&&Y.push(D.ctaButton);D.secondaryButton&&Y.push(D.secondaryButton);return Y};
_.u.computeRendererStyle=function(D){return D.style?D.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():D.icon?"":"no-icon"};
_.u.getIconName=function(D,Y){Y=Y===void 0?!1:Y;if(D===void 0)return"";D=this.get("icon.iconType",D);var R;_.f("enable_hlp_client_icon_pick")?R=this.getThemedIcon(D,Y):R=D;(Y=Jq4[R])||(Y="yt-icons");return[Y,R].join(":")};
_.u.getThemedIcon=function(D,Y){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(D)?Y?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(D)?Y?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":D};
_.u.isThumbnail=function(D){return!!D.thumbnail};
_.u.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.u.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],fA.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fA.prototype,"data",void 0);
_.q([_.y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],fA.prototype,"rendererStyle",void 0);_.q([_.y({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.x("design:type",String)],fA.prototype,"iconName",void 0);_.q([_.y({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],fA.prototype,"thumbnail",void 0);_.q([_.y({computed:"computeButtons(data)"}),_.x("design:type",Array)],fA.prototype,"buttons",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],fA.prototype,"isDarkTheme",void 0);_.q([_.y({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],fA.prototype,"hasBodyText",void 0);_.q([_.h({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],fA);
_.L(fA,"ytd-background-promo-renderer",function(){if(NxU!==void 0)return NxU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return NxU=D},{mode:1});var kGb;var e9=function(){var D=_.N.apply(this,arguments)||this;D.collections=_.f("web_modern_collections_v2");return D};
_.n(e9,_.N);_.YF.Object.defineProperties(e9.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t,X;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(Y=D.thumbnail)==null?void 0:Y.sampledThumbnailColor,vibrantColorPalette:(R=this.data)==null?void 0:(Z=R.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(X=t.thumbnail)==null?void 0:X.darkColorPalette,experimentEnabled:this.collections}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],e9.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],e9.prototype,"collections",void 0);_.q([_.b("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],e9.prototype,"collectionStack",null);_.q([_.h({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],e9);
_.L(e9,"ytd-compact-station-renderer",function(){if(kGb!==void 0)return kGb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return kGb=D},{mode:1});var UHY;var A8=function(){var D=_.N.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.n(A8,_.N);A8.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]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],A8.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],A8.prototype,"isRichGrid",void 0);_.q([_.h({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],A8);
_.L(A8,"ytd-grid-channel-renderer",function(){if(UHY!==void 0)return UHY;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return UHY=D},{mode:1});var KtU;var nA=function(){return _.N.apply(this,arguments)||this};
_.n(nA,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nA.prototype,"data",void 0);_.q([_.h({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],nA);
_.L(nA,"ytd-grid-movie-playlist-renderer",function(){if(KtU!==void 0)return KtU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return KtU=D},{mode:1});var hiz;var rS=function(){var D=_.N.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.modernButtons=_.f("web_modern_buttons");D.useModernCollectionsV2=_.f("web_modern_collections_v2");return D};
_.n(rS,_.N);rS.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
rS.prototype.configureRendererStamper=function(){return{"data.menu":VP}};
rS.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
rS.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.f("woffle_playlist_renderer_killswitch")){var D,Y=L0S(this.entityInfo,this.transferState,this.downloadProgress,(D=this.data)==null?void 0:D.playlistId,this.isOnline);D=Y.viewPlaylistText;var R=Y.badges;Y=Y.thumbnailOverlays;this.isDownloads=!!D||!!R;this.set("data.viewPlaylistText",D);R&&R.length>0&&this.set("data.badges",R);Y&&Y.length>0&&this.set("data.thumbnailOverlays",
Y)}};
_.YF.Object.defineProperties(rS.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 D;return!((D=this.data)==null?0:D.menu)}}});
rS.prototype.transferStateChanged=rS.prototype.transferStateChanged;rS.prototype.dataChanged=rS.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],rS.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],rS.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y({selector:_.cGj,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],rS.prototype,"downloadProgress",void 0);_.q([_.y({selector:_.qw,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],rS.prototype,"transferState",void 0);_.q([_.y({selector:ONb,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],rS.prototype,"entityInfo",void 0);_.q([_.y({selector:_.Lh}),_.x("design:type",Boolean)],rS.prototype,"isOnline",void 0);
_.q([_.y(),_.x("design:type",Object)],rS.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],rS.prototype,"downloadRenderData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],rS.prototype,"modernButtons",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],rS.prototype,"isDownloads",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rS.prototype,"useModernCollectionsV2",void 0);
_.q([_.b("transferState"),_.y({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],rS.prototype,"downloadState",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rS.prototype,"menuHidden",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"dataChanged",null);
_.q([_.rd("transferState","downloadProgress","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rS.prototype,"transferStateChanged",null);_.q([_.h({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],rS);
_.L(rS,"ytd-grid-playlist-renderer",function(){if(hiz!==void 0)return hiz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hiz=D},{mode:1});var LtL;var wS=function(){var D=_.N.apply(this,arguments)||this;D.collections=_.f("web_modern_collections_v2");return D};
_.n(wS,_.N);wS.prototype.configureRendererStamper=function(){return{"data.menu":VP,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.YF.Object.defineProperties(wS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t,X;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(Y=D.thumbnail)==null?void 0:Y.sampledThumbnailColor,vibrantColorPalette:(R=this.data)==null?void 0:(Z=R.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(X=t.thumbnail)==null?void 0:X.darkColorPalette,experimentEnabled:this.collections}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],wS.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],wS.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wS.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],wS.prototype,"collections",void 0);_.q([_.b("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],wS.prototype,"collectionStack",null);_.q([_.h({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],wS);
_.L(wS,"ytd-grid-radio-renderer",function(){if(LtL!==void 0)return LtL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return LtL=D},{mode:1});var mH_;var $o=function(){var D=_.N.apply(this,arguments)||this;D.useModernCollectionsV2=_.f("web_modern_collections_v2");return D};
_.n($o,_.N);$o.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
$o.prototype.computeNavigationEndpoint=function(D){return BpM(D==null?void 0:D.navigationEndpoint)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],$o.prototype,"ytdLockupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$o.prototype,"data",void 0);_.q([_.y({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],$o.prototype,"computedNavigationEndpoint",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$o.prototype,"useModernCollectionsV2",void 0);_.q([_.h({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],$o);
_.L($o,"ytd-grid-show-renderer",function(){if(mH_!==void 0)return mH_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return mH_=D},{mode:1});var qCz;_.vz=function(D){this.playerClient=D};
_.Hlz=function(D,Y,R){R=R===void 0?{}:R;return D.playerClient.setOption("ad",Y,R)};
_.vz.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.vz.prototype.executeCommand=function(D,Y){this.getOptions().includes("executeCommand")?_.Hlz(this,"executeCommand",{command:D,layoutId:Y}):_.dq("Calling executeCommand when adModule is not loaded")};var o4=function(){return _.N.apply(this,arguments)||this};
_.n(o4,_.N);o4.prototype.getLayoutId=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
o4.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var D=_.sm(),Y=this.getLayoutId(),R=this.data.clickthroughEndpoint;D&&Y&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(Z){(new _.vz(Z)).executeCommand(R,Y)}):_.MX(this.hostElement,"yt-navigate",{endpoint:R})}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],o4.prototype,"data",void 0);_.q([_.h({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],o4);
_.L(o4,"ytd-shopping-companion-item-renderer",function(){if(qCz!==void 0)return qCz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qCz=D},{mode:1});var xHY;var bn=function(){var D=_.N.apply(this,arguments)||this;D.isExpandableContent=!1;return D};
_.n(bn,_.N);_.YF.Object.defineProperties(bn.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?void 0:D.price)||((Y=this.data)==null?void 0:(R=Y.dealsData)==null?void 0:R.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var D,Y;if((D=this.data)!=null&&D.dealsData&&((Y=this.data)==null||!Y.priceReplacementText)){D=this.data.dealsData;var R,Z,t;return((R=D.salesData)==null?void 0:R.originalPrice)||((Z=D.priceDropData)==null?void 0:Z.referencePrice)||((t=D.promotionData)==null?void 0:t.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(D=this.data)==null?void 0:(Y=D.dealsData)==null?void 0:Y.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],bn.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bn.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],bn.prototype,"isExpandableContent",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"showCta",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"ctaText",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"hasPriceTopPosition",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"hasPriceBottomPosition",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"useNewStyle",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"showPriceReplacementText",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"priceValue",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"showDeal",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"showAffiliateDisclaimer",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"useSaleStyle",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"useFromBrandCtaStyle",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"useFromVendorCtaStyle",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bn.prototype,"useShoppingCollectionCtaStyle",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],bn);
_.L(bn,"ytd-vertical-product-card-renderer",function(){if(xHY!==void 0)return xHY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xHY=D},{mode:1});var PaU;var yw=function(){return _.N.apply(this,arguments)||this};
_.n(yw,_.N);yw.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],yw.prototype,"ytdLockupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yw.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],yw);
_.L(yw,"ytd-grid-movie-renderer",function(){if(PaU!==void 0)return PaU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return PaU=D},{mode:1});var QOU;var N6=function(){var D=_.N.apply(this,arguments)||this;D.rounded=!0;D.itemStyle="small-item";return D};
_.n(N6,_.N);N6.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,Y,R,Z,t=(Y=_.A((D=this.data)==null?void 0:D.buttonCommand,_.ri))==null?void 0:(R=Y.item)==null?void 0:(Z=R.notificationTextRenderer)==null?void 0:Z.successResponseText;t&&_.MO$(this.hostElement,t)}};
_.YF.Object.defineProperties(N6.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.isProductPlaceholder)!==void 0&&((Y=this.data)==null?void 0:Y.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],N6.prototype,"rounded",void 0);_.q([_.y(),_.x("design:type",Object)],N6.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],N6.prototype,"itemStyle",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"hasPrice",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"hasPriceReplacementText",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"hasAdditionalFeesText",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"hasAffiliateDisclaimer",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"isProductPlaceholder",null);
_.q([_.y(),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"hideOpenInNewIcon",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],N6.prototype,"ariaLabel",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],N6);
_.L(N6,"ytd-merch-shelf-item-renderer",function(){if(QOU!==void 0)return QOU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return QOU=D},{mode:1});var BxD=_.RT(function(D){return _.S("button-card-view-model",{el:_.tp(_.mp(function(){return D.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return D.data().title},
role:"button"},_.S(_.CO,{model:{}}),_.S("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.S("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.S(_.T,{cond:function(){return D.data().image},
then:function(Y){return _.S(_.Rt,{data:Y,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.S("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return D.data().title})))},"hb");_.f("web_button_view_model_wcw_registration_killswitch")||_.at(BxD,"button-card-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){D=_.YC(D,{className:void 0});var Y=D.data;D=D.className;var R=_.Si(function(){return Y().onTapCommand},void 0,"NprDr");
return _.S("ytd-shopping-item-card",{class:_.e7("ytdShoppingItemCardHost",D)},_.S(_.PK,{command:R,className:"ytdShoppingItemCardHostLink"},_.S("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.S(_.vK,{data:function(){return Y().thumbnailViewModel}},{thumbnailViewModel:function(Z){return _.S(_.Yo,{data:Z.data,
aspectRatio:3})}})),_.S("div",null,_.S("p",{class:"ytdShoppingItemCardHostItemTitle"},_.S(_.y_,{text:function(){return Y().itemTitle}})),_.S("p",{class:"ytdShoppingItemCardHostPrice"},_.S(_.y_,{text:function(){return Y().priceOrStatus}})))))},"ib"),"ytd-shopping-item-card",{props:{data:_.cs,
className:_.cs}});var p3Y={isAdsVideo:!0},EuL={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},guz={showPlayerControls:!1,videoPreviewDurationMs:15E3},dHV={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.f("web_shorts_imp_fullwidth_killswitch")};var Om=null,Cab={};var SCb="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(" "),ln={},TxM=(ln.FEwhat_to_watch="home",ln.FEhashtag="hashtag",ln.FEtrending="trending",ln.FEhistory="history",ln.SPunlimited="premium",ln.FEmemberships_and_purchases="paid_memberships",ln.SPredeem_code="redeem",ln.SPverify_location="locate",ln.SPminor_moment="minor_moment",
ln.FEmini_app_container="mini_app",ln.FEnews_destination="news",ln.SPopen_in_app="open_in_app",ln.FEexplore="explore",ln.FEsubscriptions="subscriptions",ln.FEsfv_audio_pivot="sfv_audio_pivot",ln.FEplaylist_aggregation="playlist_aggregation",ln);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");_.TA("init");var il1=function(){},YaD=_.RT(function(D){var Y=D.data;
var R=D.inlineMetadata;var Z=D.aspectRatio;var t=D.scrimStyle;var X=D.className;var M=D.useDefaultStyle;var W=new il1,z=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",I=_.Si(function(){return(M==null?0:M())?z==="SHORTS_LOCKUP_STYLE_SLIM":Y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),F=_.Si(function(){return _.v_(R)||I()||!1},void 0,"F6KaVc"),G=function(){return(t==null?void 0:t())!==void 0?t==null?void 0:t():1},V=_.Si(function(){return Y().belowThumbnailMetadata||
!F()},void 0,"t2xwLe");
D=_.Zq({visibilityCallback:function(O){var Wo=Y().onFirstVisible;O&&Wo&&_.BL(Wo)},
showOption:{calledOnce:!0,state:"visible"}});var e=_.tp(),r={},l=_.e7(function(){return I(),"shortsLockupViewModelHostThumbnailContainer"},(r.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.v_(Z)===1},r.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.v_(Z)===2},r.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.f("web_shorts_2_by_3_lockups_study")&&!_.f("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
r)),U=_.Si(function(){if(_.v_(Z)===1)return 1;
_.v_(Z);return 2},void 0,"LG7swb"),K,H=function(){if(W){var O;
(O=K)==null||DF(O);var Wo;if(W.hostElement&&((Wo=W.data)==null?0:Wo.inlinePlayerData)){O=Object.assign({},dHV);var Sb,VU;((Sb=W.data)==null?void 0:(VU=Sb.inlinePlayerData)==null?void 0:VU.maxPlaybackLengthSec)!==void 0&&(O.videoPreviewDurationMs=W.data.inlinePlayerData.maxPlaybackLengthSec*1E3);K=xc({mediaRenderer:W,lockupElement:W.hostElement,thumbnailElement:e.value,videoPreviewOpts:O})}}};
_.r2(function(){W&&(W.data=Y(),H())},"adXpp");
var c=_.Si(function(){return Y().thumbnail},void 0,"cFasFe");
r=_.Si(function(){return Y().badge},void 0,"a2oavc");
var Q=_.Si(function(){return Y().onTap},void 0,"jb0oIf"),E={},B={};
return _.S("ytm-shorts-lockup-view-model",{el:_.tp(function(O){W&&(W.hostElement=O)},H,D),
class:_.e7("shortsLockupViewModelHost",X)},_.S(_.c_,null,_.S(_.PK,{command:Q,className:_.e7("shortsLockupViewModelHostEndpoint",(E.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!V()},E),"reel-item-endpoint",""),
ariaHidden:function(){return!F()},
tabIndex:function(){return F()?0:-1}},_.S("div",{el:e,
class:_.e7("shortsLockupViewModelHostThumbnailParentContainer",(B.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!I()},B))},_.S(_.T,{cond:c,
then:function(){return _.S("div",{class:l},_.S(_.Rt,{data:function(){var O;return(O=c==null?void 0:c())!=null?O:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.S(_.vK,{data:function(){return Y().thumbnailViewModel}},{thumbnailViewModel:function(O){return _.S(_.Yo,{data:O.data,
aspectRatio:function(){return U()},
disableRounding:function(){return I()}})}}),null),_.S(_.T,{cond:F,
then:function(){return _.S(OlY,{data:Y,scrimStyle:G,useDefaultStyle:M})}}),_.S(_.vK,{data:r},{badgeViewModel:function(O){return _.S(_.sq,{data:O.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.S(_.T,{cond:function(){return F()&&Y().menuOnTap},
then:function(){return _.S(cqU,{data:Y,inlineMetadata:!0})}}),_.S(_.T,{cond:V,
then:function(){return _.S(D_L,{data:Y,useDefaultStyle:M,inlineMetadata:F})}})))},"jb"),OlY=_.RT(function(D){var Y=D.data;
var R=D.scrimStyle;var Z=D.useDefaultStyle;var t=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=Z&&_.f("web_hide_primary_text_for_pivot_panel"),M=_.Si(function(){return(Z==null?0:Z())?t==="SHORTS_LOCKUP_STYLE_SLIM":Y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
D={};D=_.e7("shortsLockupViewModelHostInlineMetadata",(D.shortsLockupViewModelHostMetadataRounded=function(){return!M()},D.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(R==null?void 0:R())===3&&!_.f("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(R==null?void 0:R())===3&&_.f("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(R==null?void 0:R())===2||(R==null?void 0:
R())===4},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
var W={};return _.S("div",{class:D},_.S("h3",{class:_.e7("shortsLockupViewModelHostMetadataTitle",(W.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(R==null?void 0:R())===4},W.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return Y().belowThumbnailMetadata},W)),
"aria-label":function(){return Y().accessibilityText}},_.S(_.T,{cond:function(){var z;
return!((z=Y().overlayMetadata)==null||!z.primaryText)&&!X},
then:function(){return _.S(_.y_,{text:function(){var z;return(z=Y().overlayMetadata)==null?void 0:z.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.S(_.T,{cond:function(){var z;
return(z=Y().overlayMetadata)==null?void 0:z.secondaryText},
then:function(){return _.S(RzL,{data:Y,scrimStyle:R,className:void 0})}}))},"kb"),D_L=_.RT(function(D){var Y=D.data;
var R=D.useDefaultStyle;var Z=D.inlineMetadata;var t=_.f("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=_.Si(function(){return(R==null?0:R())?t==="SHORTS_LOCKUP_STYLE_SLIM":Y().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),M=_.tp(),W;
D=_.F4(function(e){if(_.KH(_.Um(e),M.value,["AVATAR-VIEW-MODEL"]))return!1;var r;(r=W)==null||r.click();return!1});
var z=_.Si(function(){return Y().belowThumbnailMetadata||Y().overlayMetadata},void 0,"YLe6Mc"),I=function(){return Y().menuOnTap&&!Z()},F=function(){var e;
return(e=z())==null?void 0:e.avatar},G={},V={};
return _.S("div",{class:_.e7(function(){return X()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(G.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!F()},G.shortsLockupViewModelHostOutsideMetadataHasMenu=I,G)),
"on:click":D,el:M,role:"presentation"},_.S(_.vK,{data:F},{avatarViewModel:function(e){return _.S("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.S(_.Jz,{data:e.data}))}}),_.S("div",null,_.S("h3",{class:_.e7("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(V.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var e,r;
return!((e=z())==null?0:(r=e.primaryText)==null?0:r.content)},V.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=Z,V)),
role:"presentation"},_.S(_.PK,{ref:function(e){return void(W=e)},
command:function(){return Y().onTap},
className:_.e7("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var e,r;return(e=z())==null?void 0:(r=e.primaryText)==null?void 0:r.content},
"aria-label":function(){return Y().accessibilityText}},_.S(_.T,{cond:function(){var e;
return(e=z())==null?void 0:e.primaryText},
then:function(e){return _.S(_.y_,{text:e,noEndpoints:!0,noStyleRuns:!0})}}))),_.S(_.T,{cond:function(){var e;
return(e=z())==null?void 0:e.secondaryText},
then:function(e){return _.S("div",{class:_.e7("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.S(_.y_,{text:e,noStyleRuns:!0}))}})),_.S(_.T,{cond:I,
then:function(){return _.S(cqU,{data:Y,inlineMetadata:!1})}}))},"lb"),RzL=_.RT(function(D){var Y=D.data;
var R=D.scrimStyle;D=D.className;var Z={};return _.S("div",{class:_.e7((Z.shortsLockupViewModelHostMetadataSubhead=function(){return(R==null?void 0:R())!==4},Z.shortsLockupViewModelHostMetadataSubheadNew=_.f("enable_shorts_lockup_new_scrim"),Z.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(R==null?void 0:R())===4},Z),D),
"aria-hidden":"true"},_.S(_.y_,{text:function(){var t;return(t=Y().overlayMetadata)==null?void 0:t.secondaryText},
noStyleRuns:!0}))},"mb"),cqU=_.RT(function(D){var Y=D.data;
var R=D.inlineMetadata;D={};D=_.e7((D.shortsLockupViewModelHostInlineMetadataMenu=function(){return R()},D.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!R()},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
return _.S("div",{class:D},_.S(_.Sn,{data:function(){return{style:R()?"overlay":"mono",accessibilityLabel:Y().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Z){Z.preventDefault();Z.stopPropagation();var t=_.PL({elementsCommand:Y().menuOnTap,forceNewState:!0});if(t==null?0:t.onclick)t.onclick(Z)}}},
iconName:"MORE_VERT"}))},"nb");var ZQL=_.RT(function(D){var Y=D.data;var R=D.inlineMetadata;var Z=D.aspectRatio;var t=D.scrimStyle;var X=D.className;var M=D.useDefaultStyle;D=_.Si(function(){var W=Y().entityId;return W?W.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.S("ytm-shorts-lockup-view-model-v2",{class:_.e7("shortsLockupViewModelHost",X)},_.S(_.a4,{contentId:D,aspectRatio:function(){return(Z==null?void 0:Z())===1?1:(Z==null?void 0:Z())===2?2:4}},function(){return _.S(YaD,{data:Y,
inlineMetadata:R,aspectRatio:Z,scrimStyle:t,className:X,useDefaultStyle:M})}))},"ob");_.at(ZQL,"ytm-shorts-lockup-view-model-v2",{props:{data:_.uq,inlineMetadata:_.uq,aspectRatio:_.uq,scrimStyle:_.uq,className:_.uq,useDefaultStyle:_.uq}});var t1D=16/9*210,J8=function(){var D=_.N.apply(this,arguments)||this;D.isExpandableContent=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.buttonClasses=["arrow"];D.isSearch=!1;D.disableScrollEventListener=!1;D.containsLockup=!1;D.overrideArrowPositionForProductCard=!1;D.overrideArrowPositionForShoppingItemCard=!1;D.overrideArrowPositionForReelItems=!1;D.overrideArrowPositionForGridMovie=!1;D.overrideArrowPositionToCenter=!1;D.isSearchPostShelf=!1;D.overrideArrowPositionForMixedShelf=!1;D.overrideArrowPositionForMixedShelfShortsOnly=
!1;D.hasBigThumbsReelItems=!1;D.shouldUseMixedListHeight=!1;D.shouldUseShortsListHeight=!1;D.gridVideoWidth=0;D.isSearchVodShelf=!1;D.disableWheelScroll=!1;D.sizing="COMPACT";D.shortsLockupAspectRatio=0;return D};
_.n(J8,_.N);_.u=J8.prototype;
_.u.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]]"}}}}};
_.u.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.f("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.u.computeInitialCountNumber=function(D){if(!D)return 6;var Y=D.items.some(function(X){return!!X.topicRecommendationsChipRenderer}),R=D.items.some(function(X){return!!X.displayAdRenderer}),Z=this.computeShouldListItemsHaveEqualHeight(D),t=D.items.some(function(X){return!!X.gridPlaylistRenderer});
D=D.items.some(function(X){return!!X.shoppingItemCardViewModel});
return Y?9:R?8:t||Z?10:D?7:6};
_.u.computeContainsPost=function(D){return!!D&&!!D.items&&D.items.some(function(Y){return!!Y.postRenderer})};
_.u.computeContainsLockup=function(){if(_.f("web_horizontal_list_lockup_arrow_killswitch"))return!1;var D,Y;return(D=this.data)==null?void 0:(Y=D.items)==null?void 0:Y.some(function(R){return!!R.lockupViewModel})};
_.u.maybeUpdateLockupAspectRatio=function(){var D,Y;if(this.computeContainsLockup()&&((D=this.data)==null?0:(Y=D.items)==null?0:Y.length)){var R;D=kNU((R=this.data.items[0].lockupViewModel)==null?void 0:R.contentType,this.data.force16By9ThumbnailAspectRatio);R=Hiy(D);R=this.computeLockupWidth()/R;_.SN(this.hostElement,{"--yt-horizontal-list-content-height":R+"px"})}};
_.u.computeOverrideArrowPositionForProductCard=function(D){if(this.isExpandableContent)return!1;var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){return!!R.verticalProductCardRenderer}))};
_.u.computeOverrideArrowPositionForShoppingItemCard=function(D){var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){return!!R.shoppingItemCardViewModel}))};
_.u.computeOverrideArrowPositionForReelItemRenderer=function(D){return this.containsReelItemRenderer(D)};
_.u.computeHasBigThumbsReelItems=function(D,Y){return D&&this.containsReelItemRenderer(Y)};
_.u.computeShouldListItemsHaveEqualHeight=function(D){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(D==null?void 0:D.itemSizeConstraint)};
_.u.computeShouldListItemsHaveShortsHeight=function(D){return this.computeShouldListItemsHaveEqualHeight(D)&&!this.containsGridVideoRenderer(D)};
_.u.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.u.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.u.containsReelItemRenderer=function(D){var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){return!(!R.reelItemRenderer&&!R.shortsLockupViewModel)}))};
_.u.containsGridVideoRenderer=function(D){var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){return!!R.gridVideoRenderer||!!R.lockupViewModel}))};
_.u.computeContainsGridMovieRenderer=function(D){var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){return!!R.gridMovieRenderer}))};
_.u.computeOverrideArrowPositionToCenter=function(D){return this.computeIsSearchPostShelf(D)};
_.u.computeIsSearchPostShelf=function(D){var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){var Z,t;return((t=(Z=R.postRenderer)==null?void 0:Z.surface)!=null?t:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.u.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(D){var Y;return!!(D==null?0:(Y=D.items)==null?0:Y.some(function(R){var Z,t,X;return((X=(Z=R.backgroundPromoRenderer)==null?void 0:(t=Z.style)==null?void 0:t.value)!=null?X:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.u.computeIsSearchVodShelf=function(D,Y){return D&&this.containsGridVideoRenderer(Y)};
_.u.computeDisableWheelScroll=function(D,Y){return this.computeIsSearchVodShelf(D,Y)};
_.u.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.u.computeShortsLockupAspectRatio=function(){return 1};
_.u.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.SN(this.hostElement,{"--ytd-reel-item-thumbnail-height":t1D+"px"})};
J8.prototype.dataChanged=J8.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],J8.prototype,"ytdHorizontalListBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],J8.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],J8.prototype,"isExpandableContent",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"hideShelfHeader",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"engagementPanel",void 0);_.q([_.y(),_.x("design:type",Array)],J8.prototype,"buttonClasses",void 0);_.q([_.y(),_.x("design:type",Object)],J8.prototype,"isSearch",void 0);
_.q([_.y(),_.x("design:type",Object)],J8.prototype,"disableScrollEventListener",void 0);_.q([_.y({computed:"computeInitialCountNumber(data)"}),_.x("design:type",Number)],J8.prototype,"initialCount",void 0);_.q([_.y({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],J8.prototype,"supportComponentResize",void 0);_.q([_.y({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],J8.prototype,"containsPost",void 0);
_.q([_.y({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"containsLockup",void 0);_.q([_.y({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],J8.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.q([_.y({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionForProductCard",void 0);_.q([_.y({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.q([_.y({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionForReelItems",void 0);_.q([_.y({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionForGridMovie",void 0);
_.q([_.y({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionToCenter",void 0);_.q([_.y({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"isSearchPostShelf",void 0);_.q([_.y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.q([_.y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.q([_.y({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"hasBigThumbsReelItems",void 0);
_.q([_.y({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"shouldUseMixedListHeight",void 0);_.q([_.y({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"shouldUseShortsListHeight",void 0);_.q([_.y({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"gridVideoWidth",void 0);
_.q([_.y({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"isSearchVodShelf",void 0);_.q([_.y({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],J8.prototype,"disableWheelScroll",void 0);_.q([_.y({computed:"computeSizing(isSearch)"}),_.x("design:type",Object)],J8.prototype,"sizing",void 0);
_.q([_.y({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.x("design:type",Object)],J8.prototype,"shortsLockupAspectRatio",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],J8.prototype,"dataChanged",null);
_.L(J8,"yt-horizontal-list-renderer",function(){if(uM4===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);uM4=D}D=uM4;return D},{mode:1});var sCb;var XJ1=[10,12,14,16,18,20,24,28,32,36],uwY=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],ko=function(){var D=_.N.apply(this,arguments)||this;D.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";D.hideOverflow=!1;D.useRoboto=!1;D.fontClass="";D.overflown=!1;D.actionMap={"yt-window-resized":"resize"};return D};
_.n(ko,_.N);_.u=ko.prototype;
_.u.attached=function(){var D=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();_.cy(this,function(){D.resize()});
if(!_.Cw){var Y,R,Z;(Y=document)==null||(R=Y.fonts)==null||(Z=R.ready)==null||Z.then(function(){D.resize()})}};
_.u.dataChanged=function(){this.resize()};
_.u.guideIsExpandedChanged=function(){this.resize()};
_.u.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 D=this.getMaxNumLines(),Y=this.getMinFont(),R=this.getMaxFont(),Z=this.useRoboto?XJ1:uwY;for(Z=Z.filter(function(X){return X<=R&&X>=Y});Z.length>1;){var t=Math.floor(Z.length/2);
this.updateFontSize(Z[t]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=D)Z=Z.slice(t,Z.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>D)Z=Z.slice(0,t);else break}this.updateFontSize(Z[Z.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(D)}};
_.u.handleOverflow=function(D){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>D&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",D.toString()))};
_.u.updateFontSize=function(D){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+D;this.textNode.classList.add(this.fontClass)};
_.u.getMaxFont=function(){var D=this.useRoboto?XJ1:uwY;D=D[D.length-1];return this.maxFontSize&&this.maxFontSize<=D?this.maxFontSize:D};
_.u.getMinFont=function(){var D=(this.useRoboto?XJ1:uwY)[0];return this.minFontSize&&this.minFontSize>=D?this.minFontSize:D};
_.u.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.u.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.u.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.OM(this.text).split("\n").length-1:Infinity};
_.u.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("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
ko.prototype.guideIsExpandedChanged=ko.prototype.guideIsExpandedChanged;ko.prototype.dataChanged=ko.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],ko.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ko.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ko.prototype,"text",void 0);
_.q([_.y(),_.x("design:type",String)],ko.prototype,"fontFamily",void 0);_.q([_.y(),_.x("design:type",Number)],ko.prototype,"maxWidth",void 0);_.q([_.y(),_.x("design:type",Number)],ko.prototype,"maxHeight",void 0);_.q([_.y(),_.x("design:type",Number)],ko.prototype,"maxFontSize",void 0);_.q([_.y(),_.x("design:type",Number)],ko.prototype,"minFontSize",void 0);_.q([_.y(),_.x("design:type",Number)],ko.prototype,"maxLines",void 0);_.q([_.y(),_.x("design:type",Object)],ko.prototype,"hideOverflow",void 0);
_.q([_.y({selector:_.m8M}),_.x("design:type",Boolean)],ko.prototype,"guideIsExpanded",void 0);_.q([_.fr("#container"),_.x("design:type",HTMLElement)],ko.prototype,"containerNode",void 0);_.q([_.fr("#text"),_.x("design:type",HTMLElement)],ko.prototype,"textNode",void 0);_.q([_.rd("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ko.prototype,"dataChanged",null);
_.q([_.rd("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ko.prototype,"guideIsExpandedChanged",null);_.q([_.h({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],ko);
_.L(ko,"yt-dynamic-sizing-formatted-string",function(){if(sCb!==void 0)return sCb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return sCb=D},{mode:1});var a9z;_.M1E=function(D){_.Yn.call(this,D)};
_.n(_.M1E,_.Yn);var CGE=function(D){_.Yn.call(this,D)};
_.n(CGE,_.M1E);var Uq=function(){return _.N.apply(this,arguments)||this};
_.n(Uq,_.N);Uq.prototype.onTapSuspendedChannel=function(){var D;if((D=this.data)!=null&&D.serviceEndpoint){var Y,R;(D=(R=_.A((Y=this.data)==null?void 0:Y.serviceEndpoint,_.Qj))==null?void 0:R.url)?_.pn(D,void 0,void 0,window.top):(Y=new CGE("Did not handle suspended account tap. No appealUrl."),_.Nb(Y))}else Y=new CGE("Did not handle suspended account tap. No serviceEndpoint."),_.Nb(Y)};
Uq.prototype.onTap=function(){var D=this,Y=_.n8(),R,Z=(R=_.Ai(Y,{veType:7116}))!=null?R:void 0;_.pB(Y,{visualElement:Z});_.Qb();this.saveRoleText();var t;if((t=this.data)==null?0:t.youtubeSuspended)this.onTapSuspendedChannel();else{var X=!1,M,W;(Y=(W=_.A((M=this.data)==null?void 0:M.serviceEndpoint,_.pxU))==null?void 0:W.supportedTokens)&&Y.forEach(function(z){if(z.accountSigninToken)if(X=!0,D.onAccountItemTap)D.onAccountItemTap(z.accountSigninToken.signinUrl);else _.pn(z.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!X){if(M=this.get("serviceEndpoint",this.data))X=!0,this.ytComponentBehavior.resolveCommand(M);X||_.lo(new CGE("Did not handle account switch tap. No token."))}}};
Uq.prototype.saveRoleText=function(){if(this.data){var D=this.data,Y=D.channelDelegationRole;if(Y){var R,Z=(R=_.A(D==null?void 0:D.serviceEndpoint,_.pxU))==null?void 0:R.supportedTokens;if(!Z){var t,X,M,W;Z=(t=_.A(D==null?void 0:D.serviceEndpoint,_.bS))==null?void 0:(X=t.popup)==null?void 0:(M=X.confirmDialogRenderer)==null?void 0:(W=M.confirmButton)==null?void 0:W.buttonRenderer;var z;Z=(z=_.A(Z==null?void 0:Z.command,_.je))==null?void 0:z.commands;if(!Z)return;var I;Z=(I=_.A(Z[1],_.pxU))==null?
void 0:I.supportedTokens}if(Z){z=void 0;I=_.a(Z);for(Z=I.next();!Z.done;Z=I.next())if(Z=Z.value,Z.datasyncIdToken){z=Z.datasyncIdToken.datasyncIdToken;break}if(z){var F;a:{if(_.uC5()&&(I=_.FWo(z+"::pom"))){I=new Nx(I);break a}I=void 0}(F=I)==null||F.set("role_text",Y);if((fIM?fIM:window.location).href.indexOf("studio")!==-1&&(F=aIo())){I=F.src?(new URL(F.src)).origin:"*";var G;(G=F.contentWindow)==null||G.postMessage({action:"save_pom_role",datasyncId:z,roleText:Y},I)}}}}}};
_.YF.Object.defineProperties(Uq.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.accountPhoto)==null?void 0:Y.thumbnails;return R&&R.length>0&&(R[0].height===36||R[0].height===48)?R[0].height:40}}});
Uq.prototype.onTap=Uq.prototype.onTap;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Uq.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Uq.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Function)],Uq.prototype,"onAccountItemTap",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Uq.prototype,"enableRingForActiveAccount",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Uq.prototype,"thumbnailSize",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uq.prototype,"onTap",null);_.q([_.h({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Uq);
_.L(Uq,"ytd-account-item-renderer",function(){if(a9z!==void 0)return a9z;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return a9z=D},{mode:1});var WRU;var KA=function(){return _.N.apply(this,arguments)||this};
_.n(KA,_.N);KA.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.DH().resolve(_.Yw).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],KA.prototype,"data",void 0);_.q([_.h({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],KA);
_.L(KA,"ytd-identity-chip-renderer",function(){if(WRU!==void 0)return WRU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return WRU=D},{mode:1});var zz1;var SaY;var TTz;var jCb;var h8=function(){var D=_.N.apply(this,arguments)||this;D.richItemMinWidth=_.ZH("wn_grid_min_item_width",310);D.isShorts=!1;D.isWatchNext=!1;D.isExploreHub=!1;return D};
_.n(h8,_.N);_.YF.Object.defineProperties(h8.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var D=[],Y=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.SN(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var R;if(((R=this.data)==null?0:R.rows)&&Y)for(Y*=this.data.rows,R=0;R<Y;R++)D.push({});return D}}});
_.q([_.v(_.mb),_.x("design:type",Object)],h8.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],h8.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.UM,value:3}),_.x("design:type",Number)],h8.prototype,"itemsPerRow",void 0);_.q([_.y({selector:_.LOb,value:6}),_.x("design:type",Number)],h8.prototype,"slimItemsPerRow",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Number)],h8.prototype,"richItemMinWidth",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],h8.prototype,"miniMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],h8.prototype,"isShorts",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],h8.prototype,"isWatchNext",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],h8.prototype,"isExploreHub",void 0);
_.q([_.b("isExploreHub"),_.y({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],h8.prototype,"shimmerAnimation",null);_.q([_.b("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.x("design:type",Array),_.x("design:paramtypes",[])],h8.prototype,"cardItems",null);_.q([_.h({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],h8);
_.I9E=_.WL()(h8,"ytd-ghost-grid-renderer",function(){if(jCb===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);jCb=D}D=jCb;return D},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.at(_.RT(function(D){var Y=_.YC(D,{numberOfComments:3}).numberOfComments,R=_.YC(D,{isInitialLoad:!1}).isInitialLoad,Z=_.YC(D,{engagementPanel:!1}).engagementPanel,t=function(){return Math.min(Number(Y==null?void 0:Y())||20,20)};
return _.S("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.S(_.T,{cond:function(){return!(Z==null?0:Z())&&(R==null?void 0:R())},
then:function(){return _.S("div",{class:"ytGhostCommentsComments"},_.S("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.S("div",{class:_.e7("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.S("div",{class:_.e7("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.S("div",{class:"ytGhostCommentsGhostCard"},_.S("div",{class:"ytGhostCommentsAvatar"},_.S("div",{class:"ytGhostCommentsCircle"})),_.S("div",{class:"ytGhostCommentsComments"},_.S("div",{class:"ytGhostCommentsMeta"},
_.S("div",{class:_.e7("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.S("div",{class:_.e7("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.S("div",{class:"ytGhostCommentsComments"},_.S(_.G6,{each:function(){return Array((t==null?void 0:t())||3)}},function(){return _.S("div",{class:"ytGhostCommentsGhostCard"},_.S("div",{class:"ytGhostCommentsAvatar"},_.S("div",{class:"ytGhostCommentsCircle"})),_.S("div",{class:"ytGhostCommentsHost"},_.S("div",{class:"ytGhostCommentsMeta"},
_.S("div",{class:_.e7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.S("div",{class:_.e7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.S("div",{class:_.e7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.S("div",{class:"ytGhostCommentsGhostLikeDislike"},_.S("div",{class:_.e7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.S("div",{class:_.e7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"pb"),"yt-ghost-comments",{props:{numberOfComments:_.cs,
isInitialLoad:_.cs,engagementPanel:_.cs}});_.UD("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var LA=function(){var D=_.N.apply(this,arguments)||this;D.isOverridable=!1;D.spinnerActive=!1;D.showButton=!1;D.isCommentsSection=!1;D.engagementPanel=!0;D.isShortsGrid=!1;D.isShortsPage=!1;D.isWatchPage=!1;D.ghostCardExperimentEnabled=_.f("show_ghost_comments_shorts_watch")||_.f("show_ghost_comments_desktop_watch");D.originalShowButton=!1;D.endOfList=!1;return D};
_.n(LA,_.N);_.u=LA.prototype;_.u.resetIntersectionObserver=function(){var D;(D=this.observer)==null||D.disconnect();this.observer=void 0};
_.u.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var D,Y;((D=this.data)==null?void 0:D.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((Y=this.data)==null?0:Y.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.u.initializeIntersectionObserver=function(){var D=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R.value.isIntersecting&&(D.triggerContinuation(),D.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.u.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{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]]"}}}}}};
_.u.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var D;((D=this.data)==null?0:D.continuationEndpoint)&&(D=_.A(this.data.continuationEndpoint,_.PN))&&this.ytdReduxBehavior.dispatch(_.u0({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:D}}))};
_.u.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.u.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.u.onServiceRequestCompleted=function(D,Y){if(!_.f("kevlar_hide_spinner_on_empty_continuation_killswitch")){var R;(R=Y.actions)!=null&&R.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.u.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.u.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.u.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.u.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var D=3;if(this.engagementPanel){var Y,R,Z;D=Math.floor(((((Y=this.hostElement)==null?void 0:(R=Y.parentElement)==null?void 0:(Z=R.parentElement)==null?void 0:Z.scrollHeight)||108)-108)/108);D=this.isInitialLoad?Math.max(D,3):3}Y=[].concat(_.oK(this.hostElement.querySelectorAll("yt-ghost-comments")));Y=_.a(Y);for(R=Y.next();!R.done;R=Y.next())R=R.value,R.numberOfComments=D,R.isInitialLoad=this.isInitialLoad,R.engagementPanel=
this.engagementPanel}};
_.u.detached=function(){this.resetIntersectionObserver()};
_.YF.Object.defineProperties(LA.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.f("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.f("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
LA.prototype.numberOfGhostCommentsChanged=LA.prototype.numberOfGhostCommentsChanged;LA.prototype.continuationTriggerOffsetChanged=LA.prototype.continuationTriggerOffsetChanged;LA.prototype.showButtonChanged=LA.prototype.showButtonChanged;LA.prototype.onYtServiceRequestCompletedForButtonRenderer=LA.prototype.onYtServiceRequestCompletedForButtonRenderer;LA.prototype.onServiceRequestCompleted=LA.prototype.onServiceRequestCompleted;LA.prototype.onYtServiceRequestSentForButtonRenderer=LA.prototype.onYtServiceRequestSentForButtonRenderer;
LA.prototype.observeData=LA.prototype.observeData;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gt.YtVisibilityBehavior),_.x("design:type",Object)],LA.prototype,"ytVisibilityBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],LA.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],LA.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"isOverridable",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"spinnerActive",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"showButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],LA.prototype,"isCommentsSection",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],LA.prototype,"engagementPanel",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"isShortsGrid",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.x8U}),_.x("design:type",Object)],LA.prototype,"isShortsPage",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.HNo}),_.x("design:type",Object)],LA.prototype,"isWatchPage",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],LA.prototype,"ghostCardExperimentEnabled",void 0);
_.q([_.y(),_.x("design:type",Number)],LA.prototype,"continuationTriggerOffset",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"endOfList",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],LA.prototype,"isInitialLoad",void 0);_.q([_.fr("ytd-button-renderer"),_.x("design:type",_.tU)],LA.prototype,"buttonRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],LA.prototype,"buttonOverrides",void 0);
_.q([_.y(),_.b("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.x("design:type",Object),_.x("design:paramtypes",[])],LA.prototype,"isShortsCommentsSection",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LA.prototype,"observeData",null);
_.q([_.Fv("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LA.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],LA.prototype,"onServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-completed-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LA.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.q([_.rd("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LA.prototype,"showButtonChanged",null);
_.q([_.rd("continuationTriggerOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LA.prototype,"continuationTriggerOffsetChanged",null);_.q([_.Gm("isInitialLoad","engagementPanel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LA.prototype,"numberOfGhostCommentsChanged",null);_.q([_.h({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],LA);
_.L(LA,"ytd-continuation-item-renderer",function(){if(TTz!==void 0)return TTz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return TTz=D},{mode:1});var FRU;var mC=function(){var D=_.N.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;D.downloadedVideoPlaybackPosition=0;return D};
_.n(mC,_.N);mC.prototype.dataChanged=function(){var D;this.videoData=_.A((D=this.data)==null?void 0:D.renderer,wx4);this.transferStateChanged()};
mC.prototype.downloadProgressChanged=function(){if(this.entityInfo){var D=Object.assign({},this.videoData),Y=mxU(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),R=Y.publishedTimeText,Z=Y.badges;D.shortViewCountText=Y.shortViewCountText;D.publishedTimeText=R;D.badges=Z;this.set("videoData",D)}};
mC.prototype.transferStateChanged=function(){if(this.entityInfo){var D=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",Y=_.rL(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!nh(this.entityInfo.policyEntity),R=Object.assign({},this.videoData),Z=mxU(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),t=Z.publishedTimeText,X=Z.badges;R.shortViewCountText=
Z.shortViewCountText;R.publishedTimeText=t;R.badges=X;R.isDisabled=Y;R.isWatched=this.downloadedVideoPlaybackPosition>0;R.navigationEndpoint=Y?void 0:P_S(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var M;D&&((M=this.videoData)==null?0:M.videoId)&&!_.f("dl_resume_click_killswitch")&&(R.isDisabled=!1,R.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});R.thumbnailOverlays=hxy(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",R)}};
mC.prototype.transferStateChanged=mC.prototype.transferStateChanged;mC.prototype.downloadProgressChanged=mC.prototype.downloadProgressChanged;mC.prototype.dataChanged=mC.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],mC.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mC.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],mC.prototype,"videoData",void 0);_.q([_.y({selector:HU,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"downloadProgress",void 0);_.q([_.y(),_.x("design:type",Number)],mC.prototype,"relativeDateReference",void 0);_.q([_.y({selector:_.mW,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"transferState",void 0);
_.q([_.y({selector:M8y,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"downloadState",void 0);_.q([_.y({selector:EWo,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"offlinePolicyAction",void 0);_.q([_.y({selector:gWM,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.q([_.y({selector:xx,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"downloadedVideoPlaybackPosition",void 0);_.q([_.y({selector:iN9,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],mC.prototype,"entityInfo",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],mC.prototype,"isDownloading",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mC.prototype,"dataChanged",null);
_.q([_.rd("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mC.prototype,"downloadProgressChanged",null);_.q([_.rd("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mC.prototype,"transferStateChanged",null);
_.q([_.h({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],mC);
_.L(mC,"ytd-downloaded-video-grid-video-renderer",function(){if(FRU!==void 0)return FRU;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return FRU=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var GsD;var q6=function(){};
q6.prototype.resolve=function(D,Y){var R=this;return _.C(function(Z){return Z.yield(R.resolveCommand(D,Y),0)})};var V1D,Hz;V1D=Vpl(function(D){return D.targetId},{shouldPersist:!1});
Hz=V1D.updateData;_.f91=V1D.useUpdatableData;var ezL,ACD;ezL=Vpl(function(D){return D.targetId});
ACD=ezL.updateData;_.ngb=ezL.useUpdatableData;var rC7=Fti.bind(null,Hz),wJU=Fti.bind(null,ACD);(function(D,Y,R){var Z=_.A(R==null?void 0:R.updatedRenderer,_.Y_z);return Z?D({targetId:Y},function(){return Z}):!1}).bind(null,Hz);var xo=function(){};
_.n(xo,q6);xo.prototype.resolveCommand=function(D){var Y;return _.C(function(R){Y=_.A(D,_.y3r);if(!Y)return R.return();rC7(Y.targetId,Y);_.V9(R)})};var Pz=function(){var D=_.Aj.apply(this,arguments)||this;D.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return D};
_.n(Pz,_.Aj);_.u=Pz.prototype;_.u.configureContinuationPathMap=function(){return{}};
_.u.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.u.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.u.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.u.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.u.handleAppendContinuationItemsAction=function(D){var Y=_.A(D,_.rlE);if(this.data&&this.data.targetId&&Y&&this.continuationPathMap&&Y.targetId===this.data.targetId){var R=JxU(D),Z=R&&this.continuationPathMap[R];if(Z&&R)if(D=this.get(Z,this.data)){a:{for(R=0;R<D.length;R++){var t=D[R],X=void 0,M=!!_.A((X=_.A(t,CCY))==null?void 0:X.content,_.eOz);if(_.A(t,_.Y5)||M)break a}R=D.length}Z="data."+Z;Y.continuationItems?R===D.length-1?(this.pop(Z),this.push.apply(this,[Z].concat(_.oK(Y.continuationItems)))):
R===D.length?this.push.apply(this,[Z].concat(_.oK(Y.continuationItems))):this.splice.apply(this,[Z,R,1].concat(_.oK(Y.continuationItems))):this.splice(Z,R,1);(_.f("web_enable_voting_animation")||_.f("enable_music_web_cairo_voting_animation"))&&_.MX(this.hostElement,"yt-append-continuation-items-action-finished");_.MX(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Jk(new _.AT("append continuation items does not exist",R));else _.Jk(new _.AT("append continuation path does not exist",
R))}};
_.u.handleReloadContinuationItemsCommand=function(D){var Y=_.A(D,_.y3r);if(this.data&&Y){if(_.f("web_client_explore_hub")||_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover"))try{_.DH().resolve(xo).resolveCommand(D)}catch(X){}if(this.data.targetId&&this.continuationPathMap&&Y.targetId===this.data.targetId&&(!_.f("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||Y.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var R,Z=(R=Y.slot)==null?void 0:
R.replace("RELOAD_CONTINUATION_SLOT_","");R=(D=JxU(D)+"-"+(Z==null?void 0:Z.toLowerCase()))&&this.continuationPathMap[D];if(!R||!D||!Z)_.Jk(new _.AT("reload continuation path does not exist",D));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(Y)){if(Y.replaceWithFirstItem){var t;this.set("data."+R,((t=Y.continuationItems)==null?0:t.length)?Y.continuationItems[0]:{})}else this.set("data."+R,Y.continuationItems?Y.continuationItems:[]);this.continuationIsReloading=
!1;_.MX(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.u.handleShowReloadUiCommand=function(D){D=_.A(D,mZE);var Y;((Y=this.data)==null?0:Y.targetId)&&(D==null?0:D.targetId)&&D.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Pz.prototype.observeData=Pz.prototype.observeData;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Pz.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Pz.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Pz.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Pz.prototype,"continuationIsReloading",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pz.prototype,"observeData",null);_.q([_.nr()],Pz);_.Qw=[_.Bs.YtComponentBehavior,_.Va.YtActionHandlerBehavior,Pz.prototype];_.Bz={};_.Bz.YtNextContinuationBehavior=[_.tV.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",_.jN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.jN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(D,Y){D.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,Y,{}):(D={locationRetrieved:function(R){this.makeNextContinuationRequest_(R,Y,{})}.bind(this)},_.MX(this.hostElement,"yt-retrieve-location",D))},
makeNextContinuationRequest_:function(D,Y,R){_.h4("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();D=Y(D);var Z;this.canUseContextualNetworkManager_()&&(Z=this.getNetworkManager());Z||(Z=_.DH().resolve(_.Kn));Y=_.ED.instance;if(_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&Y){Z=_.YI([D.startsWith("/")?D.substr(1):D]);var t,X;R=_.Hk(Y,{},Z,R==null?void 0:(t=R.context)==null?void 0:(X=t.clickTracking)==null?void 0:X.clickTrackingParams).then(function(M){return{response:M}})}else R=
this.nextContinuation.usePost?Z.postData(D,R):Z.fetchData(D);
R.then(this.updateNextContinuationData_.bind(this,D));this.pendingContinuationRequest_=R;this.startListeningForNavigate_()},
updateNextContinuationData_:function(D,Y){var R=this;_.h4("ncl");this.pendingContinuationRequest_=void 0;if(Y){var Z={};this.nextContinuation&&(Z=this.nextContinuation);if(Y.response&&Y.response.continuationContents&&Y.response.continuationContents[Z.continuationType]){D=Y.response.continuationContents[Z.continuationType];var t=Z.header||"data.header",X=D[Z.responseHeaderKey||"header"];X&&this.set(t,X);t=Z.contentsArray||"data.contents";X=this.getContents_(D,Z.responseContentsKey||"contents")||[];
this.pathExists_(t)?(X.unshift(t),this.push.apply(this,X)):this.set(t,X);X&&(GG9(_.n8(),Y.response,this.hostElement,function(M){_.CX(R.hostElement,"yt-store-grafted-ve-action",[M])}),_.MX(this.hostElement,"yt-next-continuation-data-updated",{continuationData:Y,
page:this,contentsArray:t}));this.set(Z.continuationsArray||"data.continuations",D[Z.responseContinuationsKey||"continuations"]||[])}else Y.reload?_.Jk(new _.AT("Reloading from continuation is unsupported")):Y.responseContext&&Y.responseContext.errors||(delete Y.xsrf_token,delete Y.timing,delete Y.endpoint,delete Y.csn,Y.responseContext&&delete Y.responseContext.serviceTrackingParams,t={request:_.BD(D,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(Y).sort()},Y.response&&(t.responseContentKeys=
Object.keys(Y.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(t.continuationType=this.nextContinuation.continuationType.substr(0,256)),Y=new _.AT("Malformed continuation",t),D.indexOf("/comment_service_ajax")==0?_.Jk(Y):_.Nb(Y)),this.set(Z.continuationsArray||"data.continuations",[])}else _.lo(new _.AT("Missing continuation response",D))},
getContents_:function(D,Y){Y=Y.split(".");return _.y7.getValueByKeys(D,Y)},
pathExists_:function(D){var Y=this;D=D.toString().split(".");for(var R=0;R<D.length;R++)if(Y=Y[D[R]],Y===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var $_Y;var vgL;var pA=function(){var D=_.N.apply(this,arguments)||this;D.triggered_=!1;return D};
_.n(pA,_.N);_.u=pA.prototype;_.u.attached=function(){this.maybeTriggerAutoload()};
_.u.detached=function(){this.hasBeenTriggered_=!1};
_.u.onPrescanVisible=function(){this.onShow()};
_.u.onShow=function(){this.showButton||this.trigger()};
_.u.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.MX(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.u.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.u.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.u.computeLabel_=function(D,Y){return D===void 0?null:D.label||!Y?D.label:this.showMoreText_};
_.u.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.u.getContinuationUrl=function(D){var Y={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(Y.itct=this.data.clickTrackingParams);return _.pb(D,Y)};
_.u.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
pA.prototype.showButtonChanged_=pA.prototype.showButtonChanged_;pA.prototype.observeData_=pA.prototype.observeData_;_.q([_.v(_.gt.YtVisibilityBehavior),_.x("design:type",Object)],pA.prototype,"ytVisibilityBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pA.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],pA.prototype,"showButton",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],pA.prototype,"showIcon",void 0);_.q([_.y({computed:"computeLabel_(data, showButton)"}),_.x("design:type",Object)],pA.prototype,"label",void 0);_.q([_.y({value:_.i0(_.fX("SHOW_MORE",void 0,"Show More"))}),_.x("design:type",Object)],pA.prototype,"showMoreText_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],pA.prototype,"spinnerActive_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],pA.prototype,"hasBeenTriggered_",void 0);
_.q([_.y({value:void 0}),_.x("design:type",String)],pA.prototype,"observeVisibleOption",void 0);_.q([_.y({value:void 0}),_.x("design:type",String)],pA.prototype,"observeHiddenOption",void 0);_.q([_.y({value:"observe_once"}),_.x("design:type",Object)],pA.prototype,"observePrescanOption",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pA.prototype,"observeData_",null);
_.q([_.Gm("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pA.prototype,"showButtonChanged_",null);_.q([_.Lr({is:"yt-next-continuation",disableElementRegistration:!0})],pA);
_.L(pA,"yt-next-continuation",function(){if(vgL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;$_Y===void 0&&($_Y=document.createElement("template"));var Z=$_Y;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);vgL=D}D=vgL;return D},{mode:2});var ogE;var bQU;var Eq=function(){return _.N.apply(this,arguments)||this};
_.n(Eq,_.N);Eq.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Eq.prototype,"data",void 0);_.q([_.Lr({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Eq);
_.L(Eq,"yt-music-pass-small-feature-info-renderer",function(){if(bQU===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;ogE===void 0&&(ogE=document.createElement("template"));var Z=ogE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);bQU=D}D=bQU;return D},{mode:2});_.UD("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var gS=function(){var D=_.N.apply(this,arguments)||this;D.isCollapsible=!1;D.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return D};
_.n(gS,_.N);_.u=gS.prototype;_.u.computeIsCollapsible=function(D){return!!(((D==null?0:D.showMoreText)||(D==null?0:D.visibleRowCount))&&(D==null?0:D.isCollapsible))};
_.u.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"}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.u.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.u.onIronResize=function(){var D=this;_.pr(this,"updateGridInitItems",function(){D.maybeUpdateInitialItemsDisplayed()})};
_.u.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var D=this.getVisibleWidth();D!==0&&(D=Math.floor(D/214)*(this.data.visibleRowCount||2),D!==this.initialCount&&(this.initialCount=D,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.u.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.u.computeExpandVisible=function(D,Y,R,Z){return D&&Y&&R&&!!Z&&!!Z.showMoreText};
_.u.computeShowMoreButton=function(D){return{text:D,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.u.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.u.initCollapsed=function(){var D=this;this.ytLazyListBehavior.canShowMore=!1;var Y;(this.collapsed=!((Y=this.data)==null||!Y.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.cy(this,function(){_.WC(D.hostElement,"yt-refit-popups-action")})};
_.u.fillRestIfNotCollapsible=function(){var D=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!D||this.ytLazyListBehavior.fillRemainingListItems()};
_.u.computeViewAllHidden=function(D,Y){return D||!Y.viewAllEndpoint};
gS.prototype.fillRestIfNotCollapsible=gS.prototype.fillRestIfNotCollapsible;gS.prototype.initCollapsed=gS.prototype.initCollapsed;gS.prototype.onIronResize=gS.prototype.onIronResize;gS.prototype.persistentGuideChanged=gS.prototype.persistentGuideChanged;_.q([_.v(_.l_),_.x("design:type",Object)],gS.prototype,"ironResizableBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],gS.prototype,"ytLazyListBehavior",void 0);_.q([_.v(_.Bz.YtNextContinuationBehavior),_.x("design:type",Object)],gS.prototype,"ytNextContinuationBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],gS.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.v(_.Qw),_.x("design:type",Object)],gS.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gS.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],gS.prototype,"collapsed",void 0);_.q([_.y(),_.x("design:type",Number)],gS.prototype,"initialCount",void 0);_.q([_.y({computed:"computeShowMoreButton(data.showMoreText)"}),_.x("design:type",Object)],gS.prototype,"showMoreButton",void 0);
_.q([_.y({computed:"computeIsCollapsible(data)"}),_.x("design:type",Object)],gS.prototype,"isCollapsible",void 0);_.q([_.fr("#items"),_.x("design:type",HTMLElement)],gS.prototype,"items",void 0);_.q([_.rd("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"persistentGuideChanged",null);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"onIronResize",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"initCollapsed",null);_.q([_.rd("canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gS.prototype,"fillRestIfNotCollapsible",null);_.q([_.h({is:"ytd-grid-renderer",disableElementRegistration:!0})],gS);
_.L(gS,"ytd-grid-renderer",function(){if(GsD!==void 0)return GsD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return GsD=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var dS=function(){return _.N.apply(this,arguments)||this};
_.n(dS,_.N);
dS.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"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dS.prototype,"data",void 0);_.q([_.h({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],dS);
_.L(dS,"ytd-carousel-ad-renderer",function(){if(SaY!==void 0)return SaY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return SaY=D},{mode:1});var yCb;var Oq=function(){return _.N.apply(this,arguments)||this};
_.n(Oq,_.N);_.u=Oq.prototype;_.u.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"}}}};
_.u.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Oq.JSC$15268_CLICK_LOCATION_ID_MAP))};
_.u.onSitelinkTap=function(D){D.stopPropagation();var Y,R,Z=D==null?void 0:(Y=D.model)==null?void 0:(R=Y.item)==null?void 0:R.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,D,!1)};
_.u.onTap=function(D){var Y=this.data&&this.data.content&&this.data.content.navigationEndpoint;Y&&this.ytSparklesClickLocationBehavior.handleClick(Y,D,!1)};
_.u.sendImpression=function(){if(this.data&&this.data.content)for(var D=_.a(this.data.content.impressionEndpoints||[]),Y=D.next();!Y.done;Y=D.next()){Y=_.a(Y.value.loggingUrls||[]);for(var R=Y.next();!R.done;R=Y.next())R=R.value,R.baseUrl&&Hg(R.baseUrl,R.attributionSrcMode)}};
Oq.prototype.onTap=Oq.prototype.onTap;Oq.prototype.dataChanged=Oq.prototype.dataChanged;Oq.JSC$15268_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"]]);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Oq.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Oq.prototype,"data",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oq.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Oq.prototype,"onTap",null);_.q([_.h({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Oq);
_.L(Oq,"ytd-promoted-sparkles-text-search-renderer",function(){if(yCb!==void 0)return yCb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return yCb=D},{mode:1});var NTL;var cz=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.n(cz,_.N);_.u=cz.prototype;
_.u.configureRendererStamper=function(){return{"data.menu":{id:_.f("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]]"}}}}}};
_.u.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.u.computeHasAdBadge=function(D){return!(D==null||!D.adBadge)};
_.u.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",cz.JSC$15277_DEFAULT_AD_BADGE_RENDERER),_.Cr(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,cz.JSC$15277_CLICK_LOCATION_ID_MAP))};
_.u.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var D;(((D=this.data)==null?void 0:D.impressionCommands)||[]).forEach(function(Y){Y=_.a(Y.loggingUrls||[]);for(var R=Y.next();!R.done;R=Y.next())R=R.value,R.baseUrl&&Hg(R.baseUrl,R.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.u.onTap=function(D){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint,Z;(Y=(Z=this.data)==null?void 0:Z.thumbnailNavigationEndpoint)&&_.RP(_.O$(D),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(Y,D,!1):R&&this.ytSparklesClickLocationBehavior.handleClick(R,D,!1)};
_.u.handleMuteAd=function(){this.collapsed=!0};
_.u.attached=function(){var D=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.YF.Object.defineProperties(cz.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
cz.prototype.dataChanged=cz.prototype.dataChanged;
cz.JSC$15277_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"]]);
cz.JSC$15277_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.q([_.v(LS),_.x("design:type",Object)],cz.prototype,"ytdActiveViewBehavior",void 0);
_.q([_.v([_.Va.YtActionHandlerBehavior]),_.x("design:type",Object)],cz.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],cz.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cz.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],cz.prototype,"collapsed",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],cz.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],cz.prototype,"biggerThumbsStyle",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.x("design:type",Boolean)],cz.prototype,"fixAlignmentSmallScreens",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs_square")}}),
_.x("design:type",Boolean)],cz.prototype,"useBiggerThumbsSquare",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.mediaHoverOverlay"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"hideHoverOverlay",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"webSearchLayout",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"webSearchLayoutLandscape",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"webSearchLayoutSquare",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"sparklesCtaNoBackground",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.actionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"hideActionButton",null);_.q([_.y({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],cz.prototype,"buttonOverride",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.x("design:type",Boolean)],cz.prototype,"hasNewAdBadge",void 0);_.q([_.b("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cz.prototype,"useRoundedBadge",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cz.prototype,"dataChanged",null);_.q([_.h({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],cz);
_.L(cz,"ytd-promoted-sparkles-web-renderer",function(){if(NTL!==void 0)return NTL;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return NTL=D},{mode:1});var l9U;var Dc=function(){var D=_.N.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.enableMonoStyle=_.f("enable_default_mono_cta_migration_web_client");return D};
_.n(Dc,_.N);_.u=Dc.prototype;_.u.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]]"}}}}}};
_.u.computeShowCta=function(D){return!(D==null||!D.ctaRenderer)};
_.u.onCtaClick=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.ctaRenderer)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.u.onWatchButtonClick=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.watchButtonRenderer)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.u.onTap=function(){};
_.u.dataChanged=function(){if(this.data){var D;_.f("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Dc.JSC$15281_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Dc.JSC$15281_DEFAULT_CLICK_LOCATION_BEHAVIOR,Dc.JSC$15281_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"))}};
_.u.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var D=_.a(this.data.impressionUrls),Y=D.next();!Y.done;Y=D.next())Y=Y.value,GDU(Y,fXn(Y));this.data.impressionsFired=!0}};
_.u.maybeComputeHref=function(){return null};
_.u.computeIsShortDR=function(D){return!(D==null||!D.watchButtonRenderer)&&!(D==null||!D.ctaRenderer)&&!!this.enableShortDR};
_.u.computeIsNewUiOrShortDr=function(D){return!!this.enableUiUpdate||this.computeIsShortDR(D)};
_.u.computeIsNewUiAndNotShortDr=function(D){return!!this.enableUiUpdate&&!this.computeIsShortDR(D)};
_.u.computeHideAvatar=function(D){return!((D==null?0:D.channelThumbnail)&&this.computeIsNewUiOrShortDr(D))};
_.u.onClick=function(D){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint;if(this.enableShortDR&&R&&(_.A(R,_.Od)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(R,D,!!_.A(R,_.Od)),D.stopPropagation();else if(R&&_.A(R,_.Od))this.ytSparklesClickLocationBehavior.handleClick(R,D,!0),D.stopPropagation();else if(R){var Z,t;((Z=this.data)==null?0:Z.navigationEndpoint)&&((t=this.data)==null?0:t.adPlaybackContextParams)&&(Y=this.data.navigationEndpoint,D=this.data.adPlaybackContextParams,
Y.commandMetadata&&_.A(Y.commandMetadata,_.GA)&&_.A(Y.commandMetadata,_.GA).url&&(Y=_.QL(_.A(Y.commandMetadata,_.GA).url).adurl)&&_.fi9(Y)&&_.Rb(_.BO(Y),{encoded_ad_playback_context:D}));this.ytComponentBehavior.resolveCommand(R)}};
_.u.computeButtonOverride=function(D){if(this.computeIsNewUiOrShortDr(D))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.u.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.u.onThumbnailContainerClick=function(D){this.onClick(D)};
_.u.computeThumbnailWidth=function(D,Y){return D?Y==="MASSIVE"?600:Y==="BIG"?500:Y==="MEDIUM"?450:420:360};
_.u.attached=function(){var D=this,Y;_.f("enable_inline_muted_playback_on_web_search")&&((Y=this.data)==null?0:Y.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){var D;_.f("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15282_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:p3Y})};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15282_inlinePreviewHoverListener)==null||DF(D)};
Dc.prototype.dataChanged=Dc.prototype.dataChanged;Dc.prototype.onTap=Dc.prototype.onTap;Dc.JSC$15281_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Dc.JSC$15281_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Dc.JSC$15281_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"}];_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.q([_.v(LS),_.x("design:type",Object)],Dc.prototype,"ytdActiveViewBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Dc.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Dc.prototype,"ytSparklesClickLocationBehavior",void 0);
_.q([_.fr("#main-container"),_.x("design:type",HTMLElement)],Dc.prototype,"mainContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Dc.prototype,"isInlinePreviewTriggered",void 0);_.q([_.y(),_.x("design:type",Object)],Dc.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Dc.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_video_display_compact_button_group_for_desktop_search")}}),
_.x("design:type",Boolean)],Dc.prototype,"enableShortDR",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_vac_ui_update_for_desktop_search")}}),
_.x("design:type",Boolean)],Dc.prototype,"enableUiUpdate",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Dc.prototype,"biggerThumbsStyle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.x("design:type",Boolean)],Dc.prototype,"showCta",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.x("design:type",Boolean)],Dc.prototype,"isShortDr",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.x("design:type",Boolean)],Dc.prototype,"isShortDrOrNewUi",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.x("design:type",Boolean)],Dc.prototype,"isNewUiAndNotShortDr",void 0);_.q([_.y({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],Dc.prototype,"buttonOverride",void 0);_.q([_.y({computed:"computeSecondaryButtonOverride(data)"}),_.x("design:type",Object)],Dc.prototype,"secondaryButtonOverride",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Dc.prototype,"enableMonoStyle",void 0);
_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],Dc.prototype,"thumbnail",void 0);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dc.prototype,"onTap",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dc.prototype,"dataChanged",null);_.q([_.h({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Dc);
_.L(Dc,"ytd-promoted-video-renderer",function(){if(l9U!==void 0)return l9U;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return l9U=D},{mode:1});var JCb;var Yv=function(){var D=_.N.apply(this,arguments)||this;D.useRoundedBadge=!0;D.sitelinkIds=[];return D};
_.n(Yv,_.N);_.u=Yv.prototype;
_.u.configureRendererStamper=function(){return{"data.menu":{id:_.f("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]]"}}}}}};
_.u.dataChanged=function(){var D;(D=this.data)!=null&&D.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Yv.JSC$15287_CLICK_LOCATION_ID_MAP)};
_.u.onTap=function(D){var Y,R=(Y=this.data)==null?void 0:Y.navigationCommand;R&&!_.RP(_.O$(D),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(R,D,!1)};
_.u.onSitelinkTap=function(D){var Y,R,Z=D==null?void 0:(Y=D.model)==null?void 0:(R=Y.item)==null?void 0:R.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,D,!1)};
_.u.configureSitelinkClickTargets=function(){var D=this,Y,R,Z=(Y=this.data)==null?void 0:(R=Y.clickLocationTargets)==null?void 0:R.find(function(t){return t.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Z&&_.aU(this.hostElement).querySelectorAll(".sitelink").forEach(function(t){_.Cr(t,"yt-simple-endpoint",!0);D.sitelinkIds.push(t.id);var X,M;(X=D.ytSparklesClickLocationBehavior)==null||(M=X.clickTargetMap)==null||M.set(t.id,Z)})};
_.u.sendImpression=function(){var D,Y,R=((D=this.data)==null?void 0:(Y=D.impressionCommand)==null?void 0:Y.loggingUrls)||[];D=_.a(R);for(Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.baseUrl&&Hg(Y.baseUrl,Y.attributionSrcMode)};
_.u.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.YF.Object.defineProperties(Yv.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Yv.prototype.onTap=Yv.prototype.onTap;Yv.prototype.dataChanged=Yv.prototype.dataChanged;Yv.JSC$15287_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"]]);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Yv.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yv.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Yv.prototype,"showFavicon",null);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Yv.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Yv.prototype,"biggerThumbsStyle",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.x("design:type",Boolean)],Yv.prototype,"enableThumbnailScalingFix",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yv.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Yv.prototype,"onTap",null);_.q([_.h({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Yv);
_.L(Yv,"ytd-text-image-no-button-layout-renderer",function(){if(JCb!==void 0)return JCb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return JCb=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var ksU;var Rm=function(){var D=_.N.apply(this,arguments)||this;D.isInlinePlaybackState=!1;D.uiUpdate=_.f("web_modern_buttons");D.hideCta=_.f("hide_cta_for_home_web_video_ads");D.noBottomMargin=!1;D.animateInTimeStamp=_.ZH("hide_cta_for_home_web_video_ads_animate_in_time");D.animateInCta=!1;D.isHovered=!1;D.enableMonoStyle=_.f("enable_default_mono_cta_migration_web_client");D.player=null;D.JSC$15294_playerEvents=new Map;D.JSC$15294_preventProgressSaveTimer=null;D.delayedCtaJobId=null;return D};
_.n(Rm,_.N);_.u=Rm.prototype;_.u.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]]"}}}}}};
_.u.attached=function(){this.JSC$15294_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15294_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.f("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.u.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15294_playerEvents)};
_.u.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Rm.JSC$15293_DEFAULT_CLICK_LOCATION_BEHAVIOR,Rm.JSC$15293_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.u.hoverChanged=function(){var D=this;this.delayedCtaJobId&&(_.yc.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.f("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.NP(_.yc,function(){D.buttonContainer.classList.add("show-delayed-buttons")},_.ZH("delayed_cta_on_web_delay_milliseconds")))};
_.u.setPlayer=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return(Y=_.WC(D.hostElement,"yt-get-inline-preview-player-action"))&&Y[0]?R.yield(Y[0].getPlayerPromise(),3):R.jumpTo(0);D.player=R.yieldResult;D.ytPlayerListenerBehavior.listenToPlayerEvents(D.player,D.JSC$15294_playerEvents);_.V9(R)})};
_.u.onPlaybackStart=function(){var D=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15294_preventProgressSaveTimer=_.S7(_.yc,function(){D.JSC$15294_preventProgressSaveTimer=null},1E4))};
_.u.onVideoProgress=function(D){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&D>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.u.resetPreventProgressSaveTimer=function(){_.yc.cancelJob(this.JSC$15294_preventProgressSaveTimer);this.JSC$15294_preventProgressSaveTimer=null};
_.u.getSimpleString=function(D){return _.OM(D)};
_.u.onClick=function(D){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint,Z;Y=(Z=this.data)==null?void 0:Z.channelEndpoint;var t,X;(Z=(X=_.A((t=this.data)==null?void 0:t.adCtaButton,_.qv))==null?void 0:X.command)&&_.RP(_.O$(D),this.hostElement,["call-to-action"])?_.f("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(Z,D,!1):Y&&_.RP(_.O$(D),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(Y,D,!1):!_.RP(_.O$(D),this.hostElement,["secondary-button"])&&R&&(_.f("enable_short_dr_for_desktop_launchable")?(t=!!_.A(R,_.Od),this.isInlinePlaybackState&&t&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(R,D,t)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(R,D,!0)))}};
_.u.updateWatchEndpointStartTime=function(){var D,Y;this.player&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&((Y=this.data)==null?0:Y.navigationEndpoint)&&!this.JSC$15294_preventProgressSaveTimer&&(D=Math.floor(this.player.getCurrentTime()),_.A(this.data.navigationEndpoint,_.Od).startTimeSeconds=D,_.A(this.data.inlinePlaybackEndpoint,_.Od).startTimeSeconds=D)};
_.u.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.u.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.YF.Object.defineProperties(Rm.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.f("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.watchButton)&&!((Y=this.data)==null||!Y.adCtaButton)}}});
Rm.prototype.hoverChanged=Rm.prototype.hoverChanged;Rm.prototype.dataChanged=Rm.prototype.dataChanged;
Rm.JSC$15293_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"]]);
Rm.JSC$15293_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"}];
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Rm.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Rm.prototype,"ytSparklesClickLocationBehavior",void 0);
_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],Rm.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Rm.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"isInlinePlaybackState",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Rm.prototype,"miniMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"uiUpdate",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"hideCta",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"noBottomMargin",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"animateInCta",void 0);_.q([_.y({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],Rm.prototype,"buttonOverride",void 0);
_.q([_.y({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.x("design:type",Object)],Rm.prototype,"secondaryButtonOverride",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"isHovered",void 0);_.q([_.fr("#button-container"),_.x("design:type",HTMLElement)],Rm.prototype,"buttonContainer",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Rm.prototype,"typographyBump",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Rm.prototype,"typographyBumpV2",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rm.prototype,"enableMonoStyle",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rm.prototype,"dataChanged",null);
_.q([_.Gm("isHovered"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rm.prototype,"hoverChanged",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Rm.prototype,"isButtonGroup",null);_.q([_.h({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Rm);
_.L(Rm,"ytd-ad-inline-playback-meta-block",function(){if(ksU!==void 0)return ksU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ksU=D},{mode:_.zD("kevlar_poly_si_batch_j065")?1:2});var U_U;var Zc=function(){var D=_.N.apply(this,arguments)||this;D.noBottomMargin=!1;D.isInlinePreviewTriggered=!1;D.JSC$15299_activeViewMeasurementDataResolver=_.iq();return D};
_.n(Zc,_.N);_.u=Zc.prototype;_.u.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15299_activeViewMeasurementDataResolver.promise.then(function(Y){D.ytdActiveViewBehavior.enableActiveViewMeasurement(Y,15)});
_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){this.clearInlinePreviewHoverListeners();_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15299_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.JSC$15299_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:p3Y})};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15299_inlinePreviewHoverListener)==null||DF(D)};
_.u.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15299_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Zc.JSC$15298_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zc.JSC$15298_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var Y;if((Y=this.data)==
null?0:Y.forceImpAutoplay){var R;(R=this.JSC$15299_inlinePreviewHoverListener)==null||Z5l(R)}};
_.u.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.u.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(R,D,!!_.A(R,_.Od));D.stopPropagation()}};
_.u.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.u.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Y,R,Z=(R=_.A((Y=this.data)==null?void 0:Y.onImpression,_.je))==null?void 0:R.commands;Z&&(Z.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;D.ytComponentBehavior.resolveCommand(t)}),this.data.impressionsFired=!0)}};
_.YF.Object.defineProperties(Zc.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15299_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Zc.prototype.onTypographyBumpChanged=Zc.prototype.onTypographyBumpChanged;Zc.prototype.onDataChanged=Zc.prototype.onDataChanged;Zc.JSC$15298_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Zc.JSC$15298_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"}];
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Zc.prototype,"ytComponentBehavior",void 0);_.q([_.v(LS),_.x("design:type",Object)],Zc.prototype,"ytdActiveViewBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Zc.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.gM),_.x("design:type",Object)],Zc.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Zc.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Zc.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zc.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Zc.prototype,"noBottomMargin",void 0);
_.q([_.y(),_.x("design:type",Object)],Zc.prototype,"isInlinePreviewTriggered",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],Zc.prototype,"miniMode",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Zc.prototype,"typographyBump",void 0);_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],Zc.prototype,"thumbnail",void 0);_.q([_.fr("#dismissible"),_.x("design:type",HTMLElement)],Zc.prototype,"JSC$15299_dismissibleMedia",void 0);
_.q([_.fr("ytd-ad-inline-playback-meta-block"),_.x("design:type",HTMLElement)],Zc.prototype,"adInlinePlaybackMetaBlock",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zc.prototype,"onDataChanged",null);_.q([_.rd("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zc.prototype,"onTypographyBumpChanged",null);
_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Zc.prototype,"isHovered",null);_.q([_.h({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Zc);
_.L(Zc,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(U_U!==void 0)return U_U;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return U_U=D},{mode:1});var KRz;var tc=function(){var D=_.N.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.JSC$15302_activeViewMeasurementDataResolver=_.iq();return D};
_.n(tc,_.N);_.u=tc.prototype;_.u.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15302_activeViewMeasurementDataResolver.promise.then(function(Y){D.ytdActiveViewBehavior.enableActiveViewMeasurement(Y,15)})};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15302_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.JSC$15302_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:p3Y})};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15302_inlinePreviewHoverListener)==null||DF(D)};
_.u.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15302_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tc.JSC$15301_DEFAULT_CLICK_LOCATION_BEHAVIOR,tc.JSC$15301_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"))};
_.u.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(R,D,!0);D.stopPropagation()}};
_.u.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.u.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Y,R,Z=(R=_.A((Y=this.data)==null?void 0:Y.onImpression,_.je))==null?void 0:R.commands;Z&&(Z.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.DH().resolve(_.Yw).resolveCommand(t,{form:{element:D.hostElement}})}),this.data.impressionsFired=!0)}};
_.YF.Object.defineProperties(tc.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15302_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tc.prototype.onDataChanged=tc.prototype.onDataChanged;tc.JSC$15301_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tc.JSC$15301_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"}];_.q([_.v(LS),_.x("design:type",Object)],tc.prototype,"ytdActiveViewBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],tc.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],tc.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],tc.prototype,"ytdReduxBehavior",void 0);
_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],tc.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tc.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],tc.prototype,"isInlinePreviewTriggered",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],tc.prototype,"miniMode",void 0);_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],tc.prototype,"thumbnail",void 0);
_.q([_.fr("#dismissible"),_.x("design:type",HTMLElement)],tc.prototype,"JSC$15302_dismissibleMedia",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tc.prototype,"onDataChanged",null);_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tc.prototype,"isHovered",null);_.q([_.h({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tc);
_.L(tc,"ytd-video-display-full-buttoned-renderer",function(){if(KRz!==void 0)return KRz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return KRz=D},{mode:1});var s0=function(D,Y,R,Z){Z=Z===void 0?!1:Z;_.Yn.call(this,D);this.adsClientErrorMessage=R;this.aggressivelySample=Z;this.args=[];Y&&this.args.push(Y)};
_.n(s0,_.Yn);var Zx=function(D,Y,R,Z){Z=Z===void 0?!1:Z;_.Yn.call(this,D);this.adsClientErrorMessage=R;this.aggressivelySample=Z;this.args=[];Y&&this.args.push(Y)};
_.n(Zx,_.Yn);var hzV=function(D){_.AE.call(this);var Y=this;this.initializationFunction=D;this.instance=null;this.addOnDisposeCallback(function(){_.OG(Y.instance);Y.instance=null})};
_.n(hzV,_.AE);hzV.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.dq("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var $HM=function(){var D=new Map;[].forEach(function(Y){D.set(Y.JSC$30305_getType(),Y)});
this.getters=D};new Promise(function(){});var eiM=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"]]),VOr=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"}]]),LRE=function(D){this.experimentApiProvider=D;D=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=D<.1};var sJ=function(D,Y,R,Z){_.AE.call(this);this.adsControlFlowEventListeners=Y;this.adEventLogger=R;this.experimentApiProvider=Z;this.adsControlFlowManagerHelper=D(this,this,this,this,this);_.WB(this,this.adsControlFlowManagerHelper);D=_.a(Y);for(Y=D.next();!Y.done;Y=D.next())_.WB(this,Y.value)};
_.n(sJ,_.AE);var m_1=function(D,Y,R,Z){Xg(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Y,R,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z);D=_.a(D.adsControlFlowEventListeners);for(Z=D.next();!Z.done;Z=D.next())m_1(Z.value,Y,R)};
_.u=sJ.prototype;_.u.onOpportunityProcessedExternallyManaged=function(D,Y,R,Z){Xg(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",D,R,Y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)};
_.u.onSlotReceivedExternallyManaged=function(D,Y){u8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",D,Y)};
_.u.onSlotEntered=function(D){if(am(this.adsControlFlowManagerHelper,D)!=null){u8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);this.adsControlFlowManagerHelper.onSlotEntered(D);for(var Y=_.a(this.adsControlFlowEventListeners),R=Y.next();!R.done;R=Y.next())R.value.onSlotEntered(D);if(am(this.adsControlFlowManagerHelper,D)!=null&&am(this.adsControlFlowManagerHelper,D).isOccupyingSlotType()&&MS(this.adsControlFlowManagerHelper,D)&&!qaD(this.adsControlFlowManagerHelper,D)){var Z;Ck(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",D,(Z=MS(this.adsControlFlowManagerHelper,D))!=null?Z:void 0);D=am(this.adsControlFlowManagerHelper,D);D.slotLifecycleStage!=="entered"&&W5(D.slot,D.slotLifecycleStage,"enterLayoutForSlot");D.slotLifecycleStage="rendering";D.registeredLayoutRenderingAdapter.startRendering(D.layout)}}};
_.u.onSlotExited=function(D){if(am(this.adsControlFlowManagerHelper,D)!=null){u8(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);this.adsControlFlowManagerHelper.onSlotExited(D);for(var Y=_.a(this.adsControlFlowEventListeners),R=Y.next();!R.done;R=Y.next())R.value.onSlotExited(D);am(this.adsControlFlowManagerHelper,D)!=null&&am(this.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests&&HQL(this,D)}};
_.u.onLayoutReceivedExternallyManaged=function(D,Y,R){D.managerLayer!=="core"&&Ck(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",D,Y,R)};
var x_z=function(D,Y,R){if(am(D.adsControlFlowManagerHelper,Y)!=null){Ck(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Y,R);D=_.a(D.adsControlFlowEventListeners);for(var Z=D.next();!Z.done;Z=D.next())x_z(Z.value,Y,R)}};
sJ.prototype.onLayoutExited=function(D,Y,R){if(am(this.adsControlFlowManagerHelper,D)!=null){Ck(this.adEventLogger,f2U(R),D,Y);this.adsControlFlowManagerHelper.onLayoutExited(D,Y);for(var Z=_.a(this.adsControlFlowEventListeners),t=Z.next();!t.done;t=Z.next())t.value.onLayoutExited(D,Y,R);(R=MS(this.adsControlFlowManagerHelper,D))&&Y.layoutId===R.layoutId&&PGU(this,D)}};
sJ.prototype.disposeInternal=function(){var D=QCU(this.adsControlFlowManagerHelper);D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())HQL(this,Y.value);_.AE.prototype.disposeInternal.call(this)};
var HQL=function(D,Y){if(am(D.adsControlFlowManagerHelper,Y)!=null)if(am(D.adsControlFlowManagerHelper,Y).JSC$30335_isSlotExitRequested()||am(D.adsControlFlowManagerHelper,Y).JSC$30335_isLayoutExitRequested())am(D.adsControlFlowManagerHelper,Y).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(am(D.adsControlFlowManagerHelper,Y).isOccupyingSlotType())am(D.adsControlFlowManagerHelper,Y).markedForUnscheduleAfterOutboundAdapterRequests=!0,PGU(D,Y);else if(am(D.adsControlFlowManagerHelper,Y).JSC$30335_isSlotFillRequested())am(D.adsControlFlowManagerHelper,
Y).markedForUnscheduleAfterOutboundAdapterRequests=!0,am(D.adsControlFlowManagerHelper,Y)!=null&&(u8(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Y),Y=am(D.adsControlFlowManagerHelper,Y),Y.fulfillmentLifecycleStage="fill_cancel_requested",Y.registeredFulfillmentAdapter.cancelSlotFilling());else{var R=MS(D.adsControlFlowManagerHelper,Y),Z;D.experimentApiProvider.get();(Z=_.f("h5_enable_layout_unscheduling_events"))&&(R?BTL(D,Y,R):_.dq(Error("Ih"),Y,R,void 0,!1));u8(D.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Y);var t=am(D.adsControlFlowManagerHelper,Y),X=Y.slotEntryTrigger,M=t.registeredSlotEntryTriggerAdapters.get(X.triggerId);M&&(M.unregisterTrigger(X),t.registeredSlotEntryTriggerAdapters.delete(X.triggerId));X=_.a(Y.slotFulfillmentTriggers);for(M=X.next();!M.done;M=X.next()){M=M.value;var W=t.registeredFulfillmentTriggerAdapters.get(M.triggerId);W&&(W.unregisterTrigger(M),t.registeredFulfillmentTriggerAdapters.delete(M.triggerId))}X=_.a(Y.slotExpirationTriggers);
for(M=X.next();!M.done;M=X.next())if(M=M.value,W=t.registeredExpirationTriggerAdapters.get(M.triggerId))W.unregisterTrigger(M),t.registeredExpirationTriggerAdapters.delete(M.triggerId);t.hasLayout()&&(X=t.layout,z7(t,X.layoutExitNormalTriggers),z7(t,X.layoutExitSkipTriggers),z7(t,X.layoutExitMuteTriggers),z7(t,X.layoutExitUserInputSubmittedTriggers),z7(t,X.layoutExitUserCancelledTriggers));t.registeredFulfillmentAdapter=void 0;t.registeredSlotAdapter!=null&&(t.registeredSlotAdapter.release(),t.registeredSlotAdapter=
void 0);t.registeredLayoutRenderingAdapter!=null&&(t.registeredLayoutRenderingAdapter.release(),t.registeredLayoutRenderingAdapter=void 0);t=D.adsControlFlowManagerHelper;am(t,Y)&&(t=pJE(t,Y.slotType+"_"+Y.slotPhysicalPosition))&&t.delete(Y.slotId);u8(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Y);D=_.a(D.adsControlFlowEventListeners);for(t=D.next();!t.done;t=D.next())t=t.value,t.onSlotUnscheduled(Y),R&&!Z&&BTL(t,Y,R)}},BTL=function(D,Y,R){Ck(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
Y,R);
Ck(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Y,R);D=_.a(D.adsControlFlowEventListeners);for(var Z=D.next();!Z.done;Z=D.next())Z=Z.value,R&&BTL(Z,Y,R)},PGU=function(D,Y){if(am(D.adsControlFlowManagerHelper,Y)!=null&&am(D.adsControlFlowManagerHelper,Y).isOccupyingSlotType()){var R=MS(D.adsControlFlowManagerHelper,Y);
if(R&&qaD(D.adsControlFlowManagerHelper,Y)){if(am(D.adsControlFlowManagerHelper,Y)!=null){var Z=D.adEventLogger,t;var X=((t=VOr.get("abandoned"))==null?void 0:t.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Ck(Z,X,Y,R);D=am(D.adsControlFlowManagerHelper,Y);D.slotLifecycleStage!=="rendering"&&W5(D.slot,D.slotLifecycleStage,"exitLayout");D.slotLifecycleStage="rendering_stop_requested";D.registeredLayoutRenderingAdapter.stopRendering(R,"abandoned")}}else{u8(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
Y);try{Z=am(D.adsControlFlowManagerHelper,Y);if(!Z)throw new Zx("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Z.slotLifecycleStage!=="enter_requested"&&Z.slotLifecycleStage!=="entered"&&Z.slotLifecycleStage!=="rendering"&&W5(Z.slot,Z.slotLifecycleStage,"exitSlot");Z.slotLifecycleStage="exit_requested";if(Z.registeredSlotAdapter===void 0)throw Z.slotLifecycleStage="scheduled",new Zx("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Z.registeredSlotAdapter.exit()}catch(M){M instanceof Zx&&M.adsClientErrorMessage?(EgE(D.adEventLogger,M.adsClientErrorMessage,Y),_.dq(M,Y,void 0,void 0,M.aggressivelySample)):(EgE(D.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Y),_.dq(M,Y))}}}};var Sk=function(D,Y,R,Z,t,X){_.AE.call(this);this.registry=D;this.experimentApiProvider=X;this.slotMap=new Map};
_.n(Sk,_.AE);var pJE=function(D,Y){return(D=D.slotMap.get(Y))?D:new Map},am=function(D,Y){return pJE(D,Y.slotType+"_"+Y.slotPhysicalPosition).get(Y.slotId)},QCU=function(D){var Y=[];
D.slotMap.forEach(function(R){R=_.a(R.values());for(var Z=R.next();!Z.done;Z=R.next())Y.push(Z.value.slot)});
return Y};
Sk.prototype.onSlotEntered=function(D){D=am(this,D);D.slotLifecycleStage!=="enter_requested"&&W5(D.slot,D.slotLifecycleStage,"onSlotEntered");D.slotLifecycleStage="entered"};
var qaD=function(D,Y){D=am(D,Y);return D.hasLayout()&&D.isRendering()},MS=function(D,Y){(D=am(D,Y))?D.hasLayout()&&!D.layout&&_.dq("Unexpected empty layout",Y):_.dq("Unexpected undefined slotState",Y);
return(D==null?void 0:D.layout)||null};
Sk.prototype.onSlotExited=function(D){D=am(this,D);D.slotLifecycleStage!=="exit_requested"&&W5(D.slot,D.slotLifecycleStage,"onSlotExited");D.slotLifecycleStage="scheduled"};
Sk.prototype.onLayoutExited=function(D,Y){D=am(this,D);D.isPrimaryLayout(Y)&&(D.slotLifecycleStage!=="rendering_stop_requested"&&W5(D.slot,D.slotLifecycleStage,"onLayoutExited"),D.slotLifecycleStage="entered")};
var z7=function(D,Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=D.registeredLayoutExitTriggerAdapters.get(R.triggerId);Z&&(Z.unregisterTrigger(R),D.registeredLayoutExitTriggerAdapters.delete(R.triggerId))}},W5=function(D,Y,R){_.dq("Slot stage was "+Y+" when calling method "+R,D)};var d_Y=function(D){_.AE.call(this);this.deps=D;this.JSC$15352_adsControlFlowManager=gg_(this)};
_.n(d_Y,_.AE);var gg_=function(D){var Y=new sJ(function(R,Z,t,X){return new Sk(D.deps.registry,R,Z,t,X,D.deps.experimentApiProvider)},new Set(w3$(D.deps.registry).concat(D.deps.listeners)),D.deps.adEventLogger,D.deps.experimentApiProvider);
_.WB(D,Y);return Y};var wCS=function(){};var iQE=function(D,Y){_.AE.call(this);this.experimentApiProvider=D;this.eventLoggingSettingsProvider=Y;this.eventCount=0;this.premiumAdSeenEventLogger=$XU()()};
_.n(iQE,_.AE);iQE.prototype.logEvent=function(D){Xg(this,D)};
var u8=function(D,Y,R,Z){Xg(D,Y,void 0,void 0,void 0,R,void 0,void 0,void 0,R.adSlotLoggingData,void 0,void 0,Z)},Ck=function(D,Y,R,Z,t){Xg(D,Y,void 0,void 0,void 0,R,Z?Z:void 0,void 0,void 0,R.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0,void 0,t);
R=_.DH().resolve(_.cD(nI))==null?void 0:rI();Y=R==null?void 0:R.adsSeenHotConfig;R=R==null?void 0:R.adsHotConfig;(Y==null?0:Y.logOnAdsSeen)&&(R==null?0:R.webEnablePremiumAdsSeenLogging)&&OQz(D,Z?Z:void 0,t)},EgE=function(D,Y,R){Xg(D,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,R,void 0,void 0,void 0,R.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:Y})},Xg=function(D,Y,R,Z,t,X,M,W,z,I,F,G,V){V=V===void 0?0:V;
cC7(D.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Y,"slot:",X,"layout:",M,"ping:",W,"Opportunity:",{opportunityType:R,associatedSlotId:Z,slotsFromOpportunity:t,triggerBundle:z,adSlotLoggingData:I,adLayoutLoggingData:F});try{var e=function(){D.experimentApiProvider.get();if(Y!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Y||_.dq("Empty PACF event type",X,M);var r=D.eventLoggingSettingsProvider.get();var l;(l=r.alwaysIncludeDebugData)||(r.experimentApiProvider.get(),l=
!1);r=l;l={eventType:Y,eventOrder:++D.eventCount};var U={};X&&(U.slotData=nuU(r,X));if(M){var K={type:M.layoutType,controlFlowManagerLayer:eiM.get(M.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};r&&(K.debugData={layoutId:M.layoutId});U.layoutData=K}W&&(U.pingData={pingDispatchStatus:W.dispatchStatus,serializedAdPingMetadata:W.ping.serializedAdPingMetadata,pingIndex:W.index});z&&(U.triggerData=AqU(z.trigger,z.category));R&&(U.opportunityData=rqo(r,R,Z,t));l.adClientData=U;I&&(l.serializedSlotAdServingData=
I.serializedSlotAdServingDataEntry);F&&(l.serializedAdServingData=F.serializedAdServingDataEntry);G&&(l.errorInfo=G);_.bo("adsClientStateChange",{adsClientEvent:l})}};
V&&V>0?_.Ak(_.b$(),function(){return e()},V):e()}catch(r){cC7(D.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Ak(_.b$(),function(){_.dq(r instanceof Error?r:String(r),X,M,{pacf_message:"exception during pacf logging"})})}},OQz=function(D,Y,R){if(Y){var Z=Y.adLayoutLoggingData;
_.Ak(_.b$(),function(){D.premiumAdSeenEventLogger!=null&&Z&&_.bo("adsSeenClientLogging",{serializedAdServingDataEntry:Z.serializedAdServingDataEntry})},R!=null?R:0)}};var Dr4=function(D,Y){iQE.call(this,D,Y)};
_.n(Dr4,iQE);var Yj4=function(){},cC7=function(D,Y){return _.f(Y)};var ZxV=function(){var D=new RP1;this.JSC$15377_adsControlFlowManager=(new d_Y(D)).JSC$15352_adsControlFlowManager},RP1=function(){_.AE.call(this);
var D=this;this.experimentApiProvider=new hzV(function(){return new Yj4});
var Y=new hzV(function(){return new LRE(D.experimentApiProvider)});
this.adEventLogger=new Dr4(this.experimentApiProvider,Y);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.n(RP1,_.AE);var tJ7=function(){},srE,T7=function(){srE||(srE=new tJ7);
return srE},jk=function(D){if(!D.JSC$15388_externallyManagedSlotAdapterCallback){var Y=(new ZxV).JSC$15377_adsControlFlowManager;
D.JSC$15388_externallyManagedSlotAdapterCallback=Y}return D.JSC$15388_externallyManagedSlotAdapterCallback},XeV=function(D,Y,R){var Z=Y.opportunityType,t=Error("Jh");
if(Z!==void 0){var X=jk(D);m_1(X,Z,void 0,R)}else _.dq(t,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});X=[];if(Y.adSlotAndLayoutMetadata!==void 0){Y=_.a(Y.adSlotAndLayoutMetadata);for(var M=Y.next();!M.done;M=Y.next()){var W=M.value;if(M=W.adSlotMetadata)if(X.push(M),D.onSlotReceivedExternallyManaged(M,R),W.adLayoutMetadata){W=_.a(W.adLayoutMetadata);for(var z=W.next();!z.done;z=W.next())D.onLayoutReceivedExternallyManaged(M,z.value,R)}else R>0&&_.dq("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else R>0&&_.dq("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else R>0&&_.dq("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Z!==void 0)D.onOpportunityProcessedExternallyManaged(Z,X,void 0,R);else _.dq(t,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
tJ7.prototype.onSlotReceivedExternallyManaged=function(D,Y){D=tR(D);if(D instanceof Zx)_.dq(D,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else jk(this).onSlotReceivedExternallyManaged(D,Y)};
tJ7.prototype.onLayoutReceivedExternallyManaged=function(D,Y,R){D=tR(D);Y=vuj(Y);if(D instanceof Zx)_.dq(D,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(Y instanceof s0)_.dq(Y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else jk(this).onLayoutReceivedExternallyManaged(D,Y,R)};
tJ7.prototype.onOpportunityProcessedExternallyManaged=function(D,Y,R,Z){var t=[];Y=_.a(Y);for(var X=Y.next();!X.done;X=Y.next())X=tR(X.value),X instanceof Zx?_.dq(X,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):t.push(X);jk(this).onOpportunityProcessedExternallyManaged(D,t,R,Z)};
var uOE=function(D,Y){Y=tR(Y);if(Y instanceof Zx)_.dq(Y,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var R=jk(D);u8(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Y);R=_.a(R.adsControlFlowEventListeners);for(var Z=R.next();!Z.done;Z=R.next())Z=am(Z.value,Y),Z.slotLifecycleStage!=="not_scheduled"&&W5(Z.slot,Z.slotLifecycleStage,"onSlotScheduled"),Z.slotLifecycleStage="scheduled";D=jk(D);u8(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Y);D=_.a(D.adsControlFlowEventListeners);
for(R=D.next();!R.done;R=D.next())R.value.onSlotEntered(Y)}},ay4=function(D,Y){Y=tR(Y);
if(Y instanceof Zx)_.dq(Y,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var R=jk(D);u8(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Y);R=_.a(R.adsControlFlowEventListeners);for(var Z=R.next();!Z.done;Z=R.next())Z.value.onSlotExited(Y);D=jk(D);u8(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Y);D=_.a(D.adsControlFlowEventListeners);for(R=D.next();!R.done;R=D.next())R.value.onSlotUnscheduled(Y)}},MJU=function(D,Y,R){Y=tR(Y);
R=vuj(R);if(Y instanceof Zx)_.dq(Y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(R instanceof s0)_.dq(R,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Z=jk(D);Ck(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Y,R);Z=_.a(Z.adsControlFlowEventListeners);for(var t=Z.next();!t.done;t=Z.next())t.value.onLayoutScheduled(Y,R);D=jk(D);Ck(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Y,R);D=_.a(D.adsControlFlowEventListeners);
for(Z=D.next();!Z.done;Z=D.next())x_z(Z.value,Y,R)}},Im=function(D,Y,R){Y=tR(Y);
R=vuj(R);if(Y instanceof Zx)_.dq(Y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(R instanceof s0)_.dq(R,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Z=jk(D);Ck(Z.adEventLogger,f2U("normal"),Y,R);Z=_.a(Z.adsControlFlowEventListeners);for(var t=Z.next();!t.done;t=Z.next())t.value.onLayoutExited(Y,R,"normal");D=jk(D);D=_.a(D.adsControlFlowEventListeners);for(Z=D.next();!Z.done;Z=D.next())BTL(Z.value,Y,R)}};_.Fg=_.RT(function(D){var Y=_.YC(D,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});D=Object.assign({},Y);var R=Y.data;Y=Y.customCommandResolver;var Z=(delete D.data,delete D.customCommandResolver,D);D=_.Zq({visibilityCallback:function(W,z){var I,F=(I=R().interaction)==null?void 0:I.onFirstVisible;W&&(F&&_.BL(F),Z.setOnErrorHandler()&&oun(z))},
showOption:_.R4});Y=_.BK(function(){return R().interaction},Y,function(){var W;
return(W=Z.listenToTapEvent)==null?void 0:W.call(Z)});
var t=_.a(_.ae(!1,void 0,"nqIeMd")),X=t.next().value,M=t.next().value;t=_.F4(function(W){var z;((z=Z.setTouchEndHandler)==null?0:z.call(Z))&&!X()&&(W.currentTarget.click(),M(!0),setTimeout(function(){M(!1)},100));
return!1});
return _.S("ad-image-view-model",{class:function(){var W,z=[((W=R().interaction)==null?0:W.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],I;((I=Z.isGridViewEnabled)==null?0:I.call(Z))&&z.push("ytwAdImageViewModelHostInGridView");return z.join(" ")},
el:_.tp(D,Y),"on:touchend":t},_.S("div",{class:"ytwAdImageViewModelHostImageContainer"},_.S(_.Rt,{data:function(){var W;return{sources:R().imageSources,contentMode:(W=R().imageProperties)==null?void 0:W.contentMode}},
alt:function(){var W,z;return((W=R().interaction)==null?void 0:(z=W.accessibility)==null?void 0:z.label)||""},
targetHeight:Z.targetHeight,targetWidth:Z.targetWidth,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,useWidth:Z.useWidth,style:function(){var W,z;return"vertical-align: bottom;"+(((W=R().background)==null?0:W.color)?"background-color:"+_.HG((z=R().background)==null?void 0:z.color)+";":"")},
className:function(){return Z.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var W,z;return(z=(W=Z.setDraggable)==null?void 0:W.call(Z))!=null?z:void 0}})))},"qb");var CJ1=_.RT(function(D){var Y=D.data,R=D.listenToTapEvent,Z=function(){};
return _.S("ad-button-hover-overlay-view-model",{"on:click":_.F4(function(t){if(_.f("enable_web_home_top_landscape_image_layout_legacy_click_command")){var X,M=(X=Y().interaction)==null?void 0:X.onTap;M&&_.MX(t.currentTarget,"yt-navigate",{endpoint:_.HL(M)})}}),
class:function(){var t;return((t=Y().interaction)==null?0:t.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(t){var X,M=(X=Y().interaction)==null?void 0:X.onFirstVisible;t&&M&&_.BL(M)},
showOption:_.R4}),_.BK(function(){return Y().interaction},void 0,function(){return!_.f("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(R==null?void 0:R())}))},function(){return _.f("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.S(_.vK,{data:function(){return Y().button}},{adButtonViewModel:function(t){return _.S(_.t8,{data:t.data,
customCommandResolver:Z})}}):_.S(_.vK,{data:function(){return Y().button}},{adButtonViewModel:_.t8})}())},"rb");var XF;_.at(_.RT(function(D){var Y=D.data;D=_.Zq({visibilityCallback:function(W,z){if(W){var I;(W=(I=Y().interaction)==null?void 0:I.onFirstVisible)&&_.BL(W);var F;if(I=(F=Y().adLayoutData)==null?void 0:F.activeViewData)uE(z,I),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&aZ(z)})}else _.f("stop_av_measurement_on_detach")&&aZ(z)},
showOption:_.R4,hideOption:ZA});var R=_.BK(function(){return Y().interaction},void 0,function(){return!0}),Z=_.a(_.ae(!1,void 0,"K1MNM")),t=Z.next().value,X=Z.next().value;
Z=_.F4(function(){X(!0)});
var M=_.F4(function(){X(!1)});
return _.S("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.tp(D,UHj,R),"on:mouseenter":Z,"on:mouseleave":M},_.S("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Ap({"max-width":function(){return _.f("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.S("div",{class:function(){var W;
a:{var z;switch((W=_.A(Y().thumbnailImage,bCU))==null?void 0:(z=W.imageProperties)==null?void 0:z.renderingAspect){case "RENDERING_ASPECT_SQUARE":W="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":W="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}W=void 0}return W}},_.S(_.vK,{data:function(){return Y().thumbnailImage}},{adImageViewModel:function(W){return _.S(_.Fg,
{data:W.data,
listenToTapEvent:!0,setTouchEndHandler:_.f("enable_top_landscape_image_experiment_dom_id_web")})}})),_.S("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.S(_.T,{cond:function(){var W,z,I;
return(W=_.A(Y().thumbnailImage,bCU))==null?void 0:(z=W.imageProperties)==null?void 0:(I=z.overlayIcon)==null?void 0:I.iconImage},
then:function(W){return _.S(_.Rt,{data:W,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.S("div",{class:function(){return t()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.S(_.vK,{data:function(){return Y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(W){return _.S(CJ1,
{data:W.data,
listenToTapEvent:!0})}}))),_.S("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.S(_.vK,{data:function(){return Y().feedAdMetadata}},{feedAdMetadataViewModel:function(W){return _.S(GGU,{data:W.data,
listenToTapEvent:!0,setTouchEndHandler:_.f("enable_top_landscape_image_experiment_dom_id_web")})}})))},"sb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;D=_.Zq({visibilityCallback:function(W,z){if(W){var I;(W=(I=Y().interaction)==null?void 0:I.onFirstVisible)&&_.BL(W);var F;if(I=(F=Y().adLayoutData)==null?void 0:F.activeViewData)uE(z,I),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&aZ(z)})}else _.f("stop_av_measurement_on_detach")&&aZ(z)},
showOption:_.R4,hideOption:ZA});var R=_.qW(_.mI),Z=_.BK(function(){return Y().interaction}),t={},X={},M={};
return _.S("square-image-layout-view-model",{class:_.e7("ytwSquareImageLayoutViewModelHost",(t.ytwSquareImageLayoutViewModelHostColumn=R,t)),el:_.tp(D,Kt9,Z)},_.S("div",{class:_.e7("ytwSquareImageLayoutViewModelHostImage",(X.ytwSquareImageLayoutViewModelHostColumnImage=R,X))},function(){return _.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(W){return _.S(_.Fg,{data:W.data,
isGridViewEnabled:R,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.S("div",{class:_.e7("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(M.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=R,M))},_.S(_.vK,{data:function(){return Y().feedAdMetadata}},{feedAdMetadataViewModel:GGU}),function(){return _.S(_.vK,{data:function(){return Y().adButton}},{adButtonViewModel:function(W){var z={};
return _.S(_.t8,{data:W.data,className:_.e7((z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=R,z))})}})}()))},"tb"),"square-image-layout-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=D.noBottomMargin;var Z=D.typographyBump;D=_.Zq({visibilityCallback:function(G,V){if(G){var e;(G=(e=Y().interaction)==null?void 0:e.onFirstVisible)&&_.BL(G);var r;if(e=(r=Y().adLayoutData)==null?void 0:r.activeViewData)uE(V,e),_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&aZ(V)})}else _.f("stop_av_measurement_on_detach")&&aZ(V)},
showOption:_.R4,hideOption:ZA});var t=_.BK(function(){return Y().interaction},void 0,function(){return _.f("enable_web_home_top_landscape_image_layout_level_click")}),X=function(){return Y().interaction};
X!==void 0&&X!==null||_.qJ(Error("Kh"));var M=function(){var G,V,e;return(G=_.A(Y().thumbnailImage,bCU))==null?void 0:(V=G.background)==null?void 0:(e=V.backgroundImageSource)==null?void 0:e.imageSources};
X=_.a(_.ae(!1,void 0,"pZPLOd"));var W=X.next().value,z=X.next().value;X=_.F4(function(){z(!0)});
var I=_.F4(function(){z(!1)}),F=function(){return W()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.S("top-landscape-image-layout-view-model",{class:function(){var G;return((G=Y().interaction)==null?0:G.onTap)&&_.f("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.tp(D,hir,t),"on:mouseenter":X,"on:mouseleave":I},_.S("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.S(_.T,{cond:function(){return M()&&M().length>0},
then:function(){return _.S("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Ap({top:"0","background-image":function(){return"url("+String(M()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.S(_.T,{cond:function(){return!!Y().adButtonHoverOverlay},
then:function(){return _.S("div",{class:F},_.S(_.vK,{data:function(){return Y().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:CJ1}))}}),_.S("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.S(_.vK,{data:function(){return Y().thumbnailImage}},{adImageViewModel:function(G){return _.S(_.Fg,{data:G.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.f("enable_web_home_top_landscape_image_layout_level_click")})}})),_.S("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.S(_.Rt,{data:{sources:[{clientResource:{imageName:_.f("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.S("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.S(_.vK,{data:function(){return Y().feedAdMetadata}},{feedAdMetadataViewModel:function(G){return _.S(GGU,{data:G.data,
noBottomMargin:function(){return R==null?void 0:R()},
listenToTapEvent:function(){return _.f("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Z==null?void 0:Z()}})}})))},"ub"),"top-landscape-image-layout-view-model",{props:{data:_.cs,
noBottomMargin:_.cs,typographyBump:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=D.typographyBump;return _.S("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.tp(_.Zq({visibilityCallback:function(Z,t){if(Z){var X;(Z=(X=Y().interaction)==null?void 0:X.onFirstVisible)&&_.BL(Z);var M;(X=(M=Y().adLayoutData)==null?void 0:M.activeViewData)&&uE(t,X)}},
showOption:_.R4,hideOption:ZA}))},_.S("div",null,_.S(_.vK,{data:function(){return Y().videoLockup}},{lockupViewModel:function(Z){return _.S(_.Wz,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:R})}})))},"vb"),"video-display-button-group-layout-view-model",{props:{data:_.cs,
noBottomMargin:_.cs,typographyBump:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.typographyBump;return _.S("video-display-compact-button-group-layout-view-model",{el:_.tp(_.Zq({visibilityCallback:function(t,X){if(t){var M;(t=(M=Y().interaction)==null?void 0:M.onFirstVisible)&&_.BL(t);var W;(M=(W=Y().adLayoutData)==null?void 0:W.activeViewData)&&uE(X,M)}},
showOption:_.R4})),class:_.e7("videoDisplayCompactButtonGroupLayoutViewModelHost",R)},_.S(_.vK,{data:function(){return Y().videoLockup}},{lockupViewModel:function(t){return _.S(_.Wz,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Z})}}))},"wb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.cs,
className:_.cs,typographyBump:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.typographyBump;return _.S("video-display-compact-buttoned-layout-view-model",{el:_.tp(_.Zq({visibilityCallback:function(t,X){if(t){var M;(t=(M=Y().interaction)==null?void 0:M.onFirstVisible)&&_.BL(t);var W;(M=(W=Y().adLayoutData)==null?void 0:W.activeViewData)&&uE(X,M)}},
showOption:_.R4})),class:_.e7("videoDisplayCompactButtonedLayoutViewModelHost",R)},_.S(_.vK,{data:function(){return Y().videoLockup}},{lockupViewModel:function(t){return _.S(_.Wz,{data:t.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Z})}}))},"xb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.cs,
className:_.cs,typographyBump:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.typographyBump;var t=function(){return Y().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},X=_.qW(_.mI);
D=_.Zq({visibilityCallback:function(I,F){if(I){var G=Y();I=G.adLayoutData;var V;(G=(V=G.interaction)==null?void 0:V.onFirstVisible)&&_.BL(G);(V=I==null?void 0:I.activeViewData)&&uE(F,V)}},
showOption:_.R4});var M=_.Si(function(){return{containerType:t()&&X()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),W=_.Si(function(){return t()&&X()?"":t()?"168px":"50%"},void 0,"ikSkm"),z=_.Si(function(){return t()&&X()?9999:void 0},void 0,"M8rucc");
return _.S("video-display-compact-layout-view-model",{el:_.tp(D),class:_.e7("videoDisplayCompactLayoutViewModelHost",R)},_.S(_.vK,{data:function(){return Y().videoLockup}},{lockupViewModel:function(I){return _.S(_.Wz,{data:I.data,
containerLayoutConfig:M,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:W,thumbnailTargetWidth:z,typographyBump:Z})}}))},"yb"),"video-display-compact-layout-view-model",{props:{data:_.cs,
className:_.cs,typographyBump:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=D.typographyBump;return _.S("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.tp(_.Zq({visibilityCallback:function(Z,t){if(Z){var X;(Z=(X=Y().interaction)==null?void 0:X.onFirstVisible)&&_.BL(Z);var M;(X=(M=Y().adLayoutData)==null?void 0:M.activeViewData)&&uE(t,X)}},
showOption:_.R4,hideOption:ZA}))},_.S("div",null,_.S(_.vK,{data:function(){return Y().videoLockup}},{lockupViewModel:function(Z){return _.S(_.Wz,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:R})}})))},"zb"),"video-display-full-layout-view-model",{props:{data:_.cs,
noBottomMargin:_.cs,typographyBump:_.cs}});_.W8z=_.RT(function(D){var Y=D.data;D=_.dI("ad-card-badge-view-model");return _.S("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:D},_.S(_.T,{cond:function(){return Y().imageBadge},
then:function(R){return _.S(_.Rt,{data:R,alt:""})}}))},"Ab");var zPD=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;return _.S("carousel-ad-card-image-view-model",{class:function(){var Z;return((Z=Y().interaction)==null?0:Z.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4}),_.BK(function(){return Y().interaction},R)),
"aria-label":function(){var Z,t;return(Z=Y().interaction)==null?void 0:(t=Z.accessibility)==null?void 0:t.label}},_.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(Z){return _.S(_.Fg,{data:Z.data,
customCommandResolver:R})}}),_.S("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.S(_.vK,{data:function(){return Y().badge}},{adCardBadgeViewModel:_.W8z})),_.S(_.CO,{model:{color:4}}))},"Bb");var SjD=_.RT(function(D){var Y=_.a(_.ae(0,void 0,"o9Bzd")),R=Y.next().value;Y.next();var Z=Y.next().value,t=_.a(_.ae(!1,void 0,"KLdzYe"));Y=t.next().value;var X=t.next().value,M;_.w2(function(){clearTimeout(M)});
t=_.F4(function(){var I;((I=D.animate)==null?0:I.call(D))?(X(!0),M=setTimeout(function(){X(!1);W()},200)):W();
return!1});
var W=function(){Z(function(I){return(I+D.numShownItems())%D.data().length})},z={};
return _.S("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.S("div",{class:_.e7("ytwHorizontalCarouselCarouselWrapper")},_.S("div",{class:_.e7("ytwHorizontalCarouselCarouselInnerWrapper",(z.ytwHorizontalCarouselAnimating=Y,z))},_.S(_.G6,{each:D.data,keyBy:"INDEX"},function(I,F){return _.S("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Ap({"flex-basis":function(){return"calc((100% - (8px * "+(D.numShownItems()-1)+")) / "+D.numShownItems()+")"},
order:function(){var G=F-R();G<0&&(G+=D.data().length);return G}})},D.children(I,F))}))),_.S("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":t},D.nextButton()))},"Cb");var To1=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;var Z=D.expansive;return _.S("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.tp(_.Zq({visibilityCallback:function(t){var X,M=(X=Y().interaction)==null?void 0:X.onFirstVisible;t&&M&&_.BL(M)},
showOption:_.R4}))},_.S(SjD,{data:function(){var t;return((t=Y())==null?void 0:t.carouselAdCards)||[]},
nextButton:function(){return _.S(_.vK,{data:function(){return Y().nextButton}},{buttonViewModel:function(t){var X=t.data;
return _.S(_.TV,{data:function(){return(Z==null?0:Z())?Object.assign({},X(),{style:"mono"}):X()},
className:_.f("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(t){return _.S(_.vK,{data:t},{carouselAdCardImageViewModel:function(X){return _.S(zPD,{data:X.data,customCommandResolver:R})}})}))},"Db");var jrE=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;var Z=D.className;var t=D.buttonClassName;var X=D.animationEntityKey;var M=D.expansive;return _.S("carousel-button-view-model",{class:_.e7("ytwCarouselButtonViewModelHost",Z)},_.S(_.vK,{data:function(){return Y().carousel}},{carouselAdCardCollectionViewModel:function(W){return _.S(To1,{data:W.data,
customCommandResolver:R,expansive:M})}}),_.S(_.vK,{data:function(){return Y().button}},{adButtonViewModel:function(W){var z=W.data;
return _.S(_.t8,{data:function(){return(M==null?0:M())?Object.assign({},z(),{style:"AD_BUTTON_STYLE_TONAL"}):z()},
className:t,customCommandResolver:R,animationEntityKey:X})}}))},"Eb");_.IyL=_.RT(function(D){var Y=D.data;D=D.className;var R=_.dI("pivot-button-view-model");_.$s(function(){var Z;((Z=Y())==null?0:Z.backgroundColor)&&R.value.setAttribute("data-background-color",String(Y().backgroundColor))});
return _.S("pivot-button-view-model",{el:R,class:_.e7("ytwPivotButtonViewModelHost",D)},_.S(_.PK,{command:function(){var Z=Y();Z=Z.onClickCommand?_.HL(Z.onClickCommand):Z.contentDescription?_.Zl(Z.contentDescription):void 0;return Z},
ariaLabel:function(){return Y().contentDescription}},_.S(_.T,{cond:function(){return Y().thumbnail},
then:function(Z){return _.S(_.Rt,{data:Z,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.S(_.T,{cond:function(){return Y().icon},
then:function(Z){return _.S(_.nB,{icon:function(){return Z().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Fb");_.F8D=_.RT(function(D){var Y=D.data;var R=D.buttonShapeOverrideables;return _.S("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.S(_.vK,{data:function(){return Y().buttonViewModels}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
buttonOverrides:R})},
likeButtonViewModel:function(Z){return _.S(_.h7,{data:Z.data,buttonShapeOverrideables:R})},
dislikeButtonViewModel:function(Z){return _.S(_.KV,{data:Z.data,buttonShapeOverrideables:R})},
toggleButtonViewModel:function(Z){return _.S(_.JV,{data:Z.data,buttonShapeOverrides:R})}}))},"Gb");var Gcz=_.RT(function(D){var Y=D.avatar;var R=D.headline;var Z=D.badge;var t=D.description;var X=D.expansive;D={};return _.S("yt-ad-metadata-shape",{class:_.e7("ytAdMetadataShapeHost",(D.ytAdMetadataShapeHostLarge=X,D))},_.S("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.S(_.T,{cond:Y,then:function(M){return _.S(_.TxL,{data:function(){return(X==null?0:X())?Object.assign({},M(),{size:"AD_AVATAR_SIZE_MPLUS"}):M()}})}}),_.S("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.S(_.y_,{text:R,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.S(_.T,{cond:Z,then:function(M){return _.S(_.M6,{data:function(){return(X==null?0:X())?Object.assign({},M(),{style:"AD_BADGE_STYLE_STARK"}):M()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.S("h2",{class:"ytAdMetadataShapeHostDescription"},_.S(_.y_,{text:t,
linkInheritColor:!0})))},"Hb");var VJU=_.RT(function(D){var Y=D.data;var R=D.onShow;var Z=D.expansive;D=_.BK(function(){return Y().interaction});
_.$s(function(){var X,M=(X=Y().animatedRenderingConfig)==null?void 0:X.delayedSecondsToVisible;if(M){var W=setTimeout(R,M*1E3);_.w2(function(){clearTimeout(W)})}});
var t={};return _.S("reels-ad-card-buttoned-view-model",{class:_.e7(function(){var X;return((X=Y().interaction)==null?0:X.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(t.ytwReelsAdCardButtonedViewModelHostExpansive=Z,t)),
el:_.tp(D)},_.S(Gcz,{avatar:function(){return _.A(Y().avatar,vr7)},
headline:function(){return Y().headline},
badge:function(){return _.A(Y().adBadge,orz)},
description:function(){return Y().description},
expansive:Z}),_.S(_.vK,{data:function(){return Y().ctaButton}},{adButtonViewModel:function(X){var M=X.data;
return _.S(_.t8,{data:function(){return(Z==null?0:Z())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_FILLED"}):M()}})}}))},"Ib");var fyD=_.RT(function(D){var Y=D.data;D=D.expansive;var R=_.f("web_ad_metadata_clickable")?_.BK(function(){return Y().interaction},void 0,function(){return _.f("web_ad_metadata_clickable")}):void 0,Z={};
Z=_.kc("ytwReelsAdMetadataViewModelHost",(Z.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.f("web_ad_metadata_clickable"),Z));return _.S("reels-ad-metadata-view-model",{class:Z,el:_.tp(R)},_.S(Gcz,{avatar:function(){return _.A(Y().avatar,vr7)},
headline:function(){return Y().headline},
badge:function(){return _.A(Y().adBadge,orz)},
description:function(){return Y().description},
expansive:D}))},"Jb");var ePU={iconPosition:"icon-with-label",size:"L"},AIY=_.RT(function(D){var Y=D.data;var R=D.overlayDensity;D=_.dI("reels-player-overlay-layout-view-model");var Z=_.DX(R,0),t=function(){var G;return(G=Y().reelsAdCardButtonedEntityKey)!=null?G:""},X=function(){return t()+"/ad_button"},M=_.Ax(lgU,t),W=function(){var G,V;
return(V=(G=M())==null?void 0:G.value)!=null?V:!1},z=_.qW(Lty),I=function(){return Object.assign({},ePU,(z()||Z()===2)&&{style:"overlay-dark"})};
R={};var F={};return _.S("reels-player-overlay-layout-view-model",{class:_.e7("ytwReelsPlayerOverlayLayoutViewModelHost",(R.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!Y().extension},R.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},R)),
"overlay-density":function(){return String(Z())},
el:D},_.S("div",{class:_.e7("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(F.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},F))},_.S("div",{"aria-hidden":function(){return W()},
class:_.e7("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return W()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Ap({"transition-duration":function(){return xHj(Y())}})},_.S(_.vK,{data:function(){return Y().adMetadata}},{reelsAdMetadataViewModel:function(G){return _.S(fyD,{data:G.data,
expansive:function(){return Z()===1}})}}),_.S(_.T,{cond:function(){return Y().extension},
then:function(G){return _.S("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.S(_.vK,{data:G},{adButtonViewModel:function(V){return _.S(_.t8,{data:V.data,animationEntityKey:X,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(V){return _.S(jrE,{data:V.data,animationEntityKey:X,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return Z()===1}})}}))}})),_.S("div",{"aria-hidden":function(){return!W()},
class:_.e7("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return W()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Ap({"transition-duration":function(){return xHj(Y())}})},_.S(_.vK,{data:function(){return Y().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(G){return _.S(VJU,{data:G.data,
onShow:function(){_.cE(_.oP("booleanEntity",t(),{key:t(),value:!0}))},
expansive:function(){return Z()===1}})}}))),_.S("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.S(_.vK,{data:function(){return Y().actions}},{reelActionBarViewModel:function(G){return _.S(_.F8D,{data:G.data,
buttonShapeOverrideables:I})}}),_.S(_.vK,{data:function(){return Y().menu}},{buttonViewModel:function(G){return _.S(_.TV,{data:G.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},I(),{type:"tonal"})}})}}),_.S(_.vK,{data:function(){return Y().pivotButton}},{pivotButtonViewModel:function(G){return _.S(_.IyL,{data:G.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Kb");_.at(AIY,"reels-player-overlay-layout-view-model",{props:{data:_.cs,overlayDensity:_.cs}});var G7=function(){var D=_.N.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;return D};
_.n(G7,_.N);_.u=G7.prototype;
_.u.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",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.f("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]]"}}}}}};
_.u.ready=function(){var D=this;aNo(function(){D.isAttached&&Y6(D.JSC$15432_storedAdSlotMetadata,D.JSC$15432_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&Im(T7(),D.JSC$15432_storedAdSlotMetadata,D.JSC$15432_storedAdLayoutMetadata)})};
_.u.attached=function(){Y6(this.JSC$15432_storedAdSlotMetadata,this.JSC$15432_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&MJU(T7(),this.JSC$15432_storedAdSlotMetadata,this.JSC$15432_storedAdLayoutMetadata)};
_.u.detached=function(){Y6(this.JSC$15432_storedAdSlotMetadata,this.JSC$15432_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Im(T7(),this.JSC$15432_storedAdSlotMetadata,this.JSC$15432_storedAdLayoutMetadata)};
_.u.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.u.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15432_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15432_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15432_storedAdLayoutMetadata!==void 0&&this.JSC$15432_storedAdSlotMetadata!==void 0&&Im(T7(),this.JSC$15432_storedAdSlotMetadata,this.JSC$15432_storedAdLayoutMetadata),MJU(T7(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15432_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15432_storedAdSlotMetadata=this.adSlotMetadata)};
_.YF.Object.defineProperties(G7.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
G7.prototype.onAdMetadataChanged=G7.prototype.onAdMetadataChanged;G7.prototype.onTypographyBumpChanged=G7.prototype.onTypographyBumpChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],G7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],G7.prototype,"rendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],G7.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],G7.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],G7.prototype,"noBottomMargin",void 0);_.q([_.y(),_.x("design:type",Object)],G7.prototype,"overlayDensity",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],G7.prototype,"typographyBump",void 0);_.q([_.b("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],G7.prototype,"adLayoutMetadata",null);_.q([_.y(),_.x("design:type",Object)],G7.prototype,"adSlotMetadata",void 0);
_.q([_.fr("ytd-video-display-full-buttoned-and-button-group-renderer"),_.x("design:type",HTMLElement)],G7.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.q([_.Gm("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G7.prototype,"onTypographyBumpChanged",null);_.q([_.Gm("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G7.prototype,"onAdMetadataChanged",null);
_.q([_.h({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],G7);
_.L(G7,"ytd-in-feed-ad-layout-renderer",function(){if(zz1!==void 0)return zz1;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return zz1=D},
{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var nUL;var rI_;_.at(_.M6,"ad-badge-view-model",{props:{data:_.cs,hasDot:_.cs,customCommandResolver:_.uq,adRenderingContextType:_.uq}});_.at(_.t8,"ad-button-view-model",{props:{data:_.cs,customCommandResolver:_.uq,className:_.uq,delayedClassName:_.uq,animationEntityKey:_.uq,isCompactWidth:_.uq}});var VW=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return D};
_.n(VW,_.N);_.u=VW.prototype;_.u.computeHasLiveDescription=function(D){return!(D==null||!D.liveDescription)};
_.u.computeHasByline=function(D){return!(D==null||!D.byline)};
_.u.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model"}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.u.onYtToggleButton=function(D){var Y,R=(Y=this.data)==null?void 0:Y.videoReminderEntityKey;R&&this.ytdReduxBehavior.dispatch(_.oP("upcomingEventReminderStateEntity",R,{key:R,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.u.attached=function(){this.updateChannelBanner()};
_.u.dataChanged=function(){this.updateChannelBanner()};
_.u.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.A((D=this.data)==null?void 0:D.cta,_.Hx)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.u.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var D=_.MW(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);D&&(D.startsWith("//")&&(D="https:"+D),this.hostElement.classList.add("channel-banner"),_.SN(this.hostElement,{"--ytvmh-channel-banner":"url("+D+")"}))}else _.f("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.u.onPlayerReady=function(){this.onIronResize()};
_.u.maybeFlushDebouncer=function(){_.f("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(D){var Y;D=(Y=D.getElementsByTagName("yt-attributed-string"))==null?void 0:Y[0];yaU(D==null?void 0:D.polymerController)})};
_.u.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var D=_.aU(this.hostElement).querySelector("#live-description"),Y;D&&((Y=this.data)==null?0:Y.shortLiveDescription)&&D.clientWidth<D.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
VW.prototype.onIronResize=VW.prototype.onIronResize;VW.prototype.videoReminderStateChanged=VW.prototype.videoReminderStateChanged;VW.prototype.dataChanged=VW.prototype.dataChanged;VW.prototype.onYtToggleButton=VW.prototype.onYtToggleButton;_.q([_.v(_.l_),_.x("design:type",Object)],VW.prototype,"ironResizableBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],VW.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],VW.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],VW.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.videoReminderEntityKey"],selector:lN9}),_.x("design:type",Object)],VW.prototype,"videoReminderState",void 0);
_.q([_.y({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.x("design:type",Boolean)],VW.prototype,"rounded",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.x("design:type",Boolean)],VW.prototype,"hasLiveDescription",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.x("design:type",Boolean)],VW.prototype,"hasByline",void 0);
_.q([_.y({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.x("design:type",String)],VW.prototype,"adRenderingContextType",void 0);_.q([_.y({reflectToAttribute:!0,value:_.f("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.x("design:type",Boolean)],VW.prototype,"resizableAdBannerSafariFix",void 0);_.q([_.y({reflectToAttribute:!0,value:_.f("align_three_dot_menu_with_title_description")}),_.x("design:type",Boolean)],VW.prototype,"menuFix",void 0);
_.q([_.eN("yt-formatted-string"),_.x("design:type",Array)],VW.prototype,"formattedStrings",void 0);_.q([_.fr("#cta-button"),_.x("design:type",HTMLElement)],VW.prototype,"ctaButton",void 0);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],VW.prototype,"onYtToggleButton",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VW.prototype,"dataChanged",null);
_.q([_.Gm("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VW.prototype,"videoReminderStateChanged",null);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VW.prototype,"onIronResize",null);_.q([_.h({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],VW);
_.L(VW,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(rI_!==void 0)return rI_;var D=document.createElement("template");_.w(D,'\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]]" 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]]" 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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return rI_=D},{mode:1});var weD;var fk=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.isLocked=!1;return D};
_.n(fk,_.N);_.u=fk.prototype;_.u.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.u.onExpandedChanged=function(){this.expanded&&_.WC(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.u.onMouseOver=function(){this.maybeExpand()};
_.u.onTap=function(){this.maybeExpand()};
_.u.onExpandableTileExpanding=function(D){D!==this&&(this.expanded=!1)};
_.u.onExpandableTileLockAndCollapse=function(D){this.isLocked=!0;D!==this&&(this.expanded=!1)};
_.u.onExpandableTileUnlock=function(){this.isLocked=!1};
fk.prototype.onTap=fk.prototype.onTap;fk.prototype.onMouseOver=fk.prototype.onMouseOver;fk.prototype.onExpandedChanged=fk.prototype.onExpandedChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],fk.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fk.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],fk.prototype,"expanded",void 0);_.q([_.rd("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fk.prototype,"onExpandedChanged",null);_.q([_.Fv("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fk.prototype,"onMouseOver",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fk.prototype,"onTap",null);
_.q([_.h({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],fk);
_.L(fk,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(weD!==void 0)return weD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return weD=D},{mode:1});var $rY;var ek=function(){var D=_.N.apply(this,arguments)||this;D.buttonOverrides={style:"overlay"};D.useYtdPlayer=_.f("use_ytd_player_for_desktop_masthead");D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.playbackFinished=!1;D.JSC$15446_playerManager=null;D.JSC$15446_mastheadCounter=new nhD;return D};
_.n(ek,_.N);_.u=ek.prototype;_.u.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"}}}};
_.u.created=function(){this.JSC$15446_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15446_playerManager=new lB)};
_.u.ready=function(){var D=this;this.JSC$15446_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var Y=_.aU(this.hostElement).querySelector("#player");this.useYtdPlayer?Y.style.display="none":(this.ytdPlayer.style.display="none",buV(this.JSC$15446_playerManager,Y,function(){D.onPlaybackEnded()}),_.aU(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var R;
((R=D.data)==null?0:R.navigationEndpoint)&&_.MX(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})}))};
_.u.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15446_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.u.attached=function(){var D=this;_.BE(function(){D.maybePlayVideo()})};
_.u.maybePlayVideo=function(){var D=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$15446_playerManager.playVideo(),this.getPlayerPromise().then(function(){D.JSC$15446_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.u.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15446_playerManager.stopVideo()};
_.u.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var D,Y={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((D=this.data.playbackStartMs)!=null?D:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(Y);this.setupYtdPlayer()}else Nlb(this.JSC$15446_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(yaV(this.JSC$15446_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.u.getPlayerPromise=function(){return this.JSC$15446_playerManager.getPlayerPromise()};
_.u.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15446_playerManager.mute():this.JSC$15446_playerManager.unMute()};
_.u.onYtNavigate=function(D){var Y=nkr(D.detail.endpoint),R=rzy(this.data.clickthroughReportingData);Y&&R&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=R:_.Rb(Y,R,30))};
_.u.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.u.onExpandedChanged=function(){this.expanded?(_.WC(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.u.onMouseOver=function(){this.maybeExpand()};
_.u.onTap=function(){this.maybeExpand()};
_.u.onExpandableTileExpanding=function(D){D!==this&&(this.stopVideo(),this.expanded=!1)};
_.u.onExpandableTileLockAndCollapse=function(D){D!==this&&(this.isLocked=!0,this.expanded=!1)};
_.u.onExpandableTileUnlock=function(){this.isLocked=!1};
_.u.lockAndCollapseExpandableTiles=function(){_.CX(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.u.unlockExpandableTiles=function(){_.CX(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.u.setupYtdPlayer=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D.ytdPlayer.getPlayerPromise(),2);Y=R.yieldResult;Y.addEventListener("onStateChange",function(Z){D.onPlayerStateChange(Z)});
Y.addEventListener("onCueRangeExit",function(Z){D.onCueRangeExit(Z)});
_.V9(R)})};
_.u.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var Y=D.getCurrentTime(),R,Z,t=Y+((Z=(R=this.data)==null?void 0:R.playbackDurationMs)!=null?Z:0)/1E3;D.addCueRange("playback",Y,t);this.JSC$15446_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.u.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.u.toggleMute=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.ytdPlayer.getPlayerPromise(),2);R=Z.yieldResult;D?R.mute():R.unMute();_.V9(Z)})};
ek.prototype.onTap=ek.prototype.onTap;ek.prototype.onMouseOver=ek.prototype.onMouseOver;ek.prototype.onExpandedChanged=ek.prototype.onExpandedChanged;ek.prototype.onYtNavigate=ek.prototype.onYtNavigate;ek.prototype.onYtToggleButton=ek.prototype.onYtToggleButton;ek.prototype.dataChanged=ek.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ek.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ek.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],ek.prototype,"expanded",void 0);_.q([_.y(),_.x("design:type",Object)],ek.prototype,"buttonOverrides",void 0);
_.q([_.y(),_.x("design:type",Object)],ek.prototype,"useYtdPlayer",void 0);_.q([_.fr("#ytd-player"),_.x("design:type",Object)],ek.prototype,"ytdPlayer",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ek.prototype,"dataChanged",null);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ek.prototype,"onYtToggleButton",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ek.prototype,"onYtNavigate",null);_.q([_.rd("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ek.prototype,"onExpandedChanged",null);_.q([_.Fv("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ek.prototype,"onMouseOver",null);
_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ek.prototype,"onTap",null);_.q([_.h({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],ek);
_.L(ek,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if($rY!==void 0)return $rY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $rY=D},{mode:1});var vU_;var Ac=function(){return _.N.apply(this,arguments)||this};
_.n(Ac,_.N);Ac.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ac.prototype.onShow=function(){var D=_.aU(this.hostElement).querySelector("#live-description"),Y;D&&((Y=this.data)==null?0:Y.shortLiveDescription)&&D.clientWidth<D.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Ac.prototype.onYtToggleButton=function(D){var Y,R=(Y=this.data)==null?void 0:Y.videoReminderEntityKey;R&&this.ytdReduxBehavior.dispatch(_.oP("upcomingEventReminderStateEntity",R,{key:R,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Ac.prototype.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.A((D=this.data)==null?void 0:D.cta,_.Hx)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Ac.prototype.videoReminderStateChanged=Ac.prototype.videoReminderStateChanged;Ac.prototype.onYtToggleButton=Ac.prototype.onYtToggleButton;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Ac.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ac.prototype,"data",void 0);
_.q([_.y({selectorArgs:["data.videoReminderEntityKey"],selector:lN9}),_.x("design:type",Object)],Ac.prototype,"videoReminderState",void 0);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ac.prototype,"onYtToggleButton",null);_.q([_.Gm("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ac.prototype,"videoReminderStateChanged",null);
_.q([_.h({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Ac);
_.L(Ac,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(vU_!==void 0)return vU_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return vU_=D},{mode:_.zD("kevlar_poly_si_batch_j065")?1:2});var oUV;var nk=function(){var D=_.N.apply(this,arguments)||this;D.useYtdPlayer=_.f("use_ytd_player_for_desktop_masthead");D.buttonOverrides={style:"overlay"};D.JSC$15454_playerManager=null;D.JSC$15454_mastheadCounter=new nhD;D.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return D};
_.n(nk,_.N);_.u=nk.prototype;_.u.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"}}}};
_.u.created=function(){this.JSC$15454_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15454_playerManager=new lB)};
_.u.ready=function(){var D=this;this.JSC$15454_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var Y;(Y=this.embeddedPlayer)==null||Y.remove()}else{var R;(R=this.ytdPlayer)==null||R.remove();buV(this.JSC$15454_playerManager,this.embeddedPlayer,function(){D.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){D.data&&D.data.navigationEndpoint&&_.MX(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})})}};
_.u.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15454_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.u.dataChanged=function(){var D=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var Y=!this.data.disableAutoPlayback,R,Z={autoplay:Y,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((R=this.data.playbackStartMs)!=null?R:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(Y?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else Nlb(this.JSC$15454_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(yaV(this.JSC$15454_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15454_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.CX(D.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");D.JSC$15454_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.u.getPlayerPromise=function(){return this.JSC$15454_playerManager.getPlayerPromise()};
_.u.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15454_playerManager.mute():this.JSC$15454_playerManager.unMute()};
_.u.onYtNavigate=function(D){var Y=nkr(D.detail.endpoint),R=rzy(this.data.clickthroughReportingData);Y&&R&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=R:_.Rb(Y,R,30))};
_.u.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15454_playerManager.stopVideo()};
_.u.setupYtdPlayer=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D.ytdPlayer.getPlayerPromise(),2);Y=R.yieldResult;Y.addEventListener("onStateChange",function(Z){D.onPlayerStateChange(Z)});
Y.addEventListener("onCueRangeExit",function(Z){D.onCueRangeExit(Z)});
_.V9(R)})};
_.u.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var Y=D.getCurrentTime(),R,Z,t=Y+((Z=(R=this.data)==null?void 0:R.playbackDurationMs)!=null?Z:0)/1E3;D.addCueRange("playback",Y,t);_.CX(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15454_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.u.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.u.toggleMute=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.ytdPlayer.getPlayerPromise(),2);R=Z.yieldResult;D?R.mute():R.unMute();_.V9(Z)})};
_.YF.Object.defineProperties(nk.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(!((D=this.data)==null?0:(Y=D.accessibilityData)==null?0:Y.label))return"Ad primary link";var R,Z;return _.fX("AD_TITLE",{title:(R=this.data)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label})}}});
nk.prototype.onYtMastheadHidden=nk.prototype.onYtMastheadHidden;nk.prototype.onYtNavigate=nk.prototype.onYtNavigate;nk.prototype.onYtToggleButton=nk.prototype.onYtToggleButton;nk.prototype.dataChanged=nk.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],nk.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nk.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],nk.prototype,"useYtdPlayer",void 0);_.q([_.fr("ytd-toggle-button-renderer"),_.x("design:type",Object)],nk.prototype,"muteButton",void 0);_.q([_.y(),_.x("design:type",Object)],nk.prototype,"buttonOverrides",void 0);
_.q([_.b("data.accessibilityData.label"),_.x("design:type",String),_.x("design:paramtypes",[])],nk.prototype,"titleAriaLabel",null);_.q([_.fr("#replay-button"),_.x("design:type",Object)],nk.prototype,"replayButton",void 0);_.q([_.fr("#player-container"),_.x("design:type",Object)],nk.prototype,"playerContainer",void 0);_.q([_.fr("#player"),_.x("design:type",Object)],nk.prototype,"embeddedPlayer",void 0);_.q([_.fr("#ytd-player"),_.x("design:type",Object)],nk.prototype,"ytdPlayer",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nk.prototype,"dataChanged",null);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nk.prototype,"onYtToggleButton",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nk.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-masthead-hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nk.prototype,"onYtMastheadHidden",null);_.q([_.h({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],nk);
_.L(nk,"ytd-video-masthead-ad-primary-video-renderer",function(){if(oUV!==void 0)return oUV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return oUV=D},{mode:2});var bx7;var rh=function(){var D=_.N.apply(this,arguments)||this;D.collapsed=!1;D.impressionResolver=_.iq();D.JSC$15458_activeViewMeasurementDataResolver=_.iq();D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.n(rh,_.N);_.u=rh.prototype;_.u.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"}}}};
_.u.ready=function(){var D=this;_.aU(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){D.expandAd()});
this.hostElement.addEventListener("yt-action",function(Y){if(Y.detail.actionName==="yt-service-request"){var R=Y.detail.args[1];R.videoMastheadAdMuteCommand&&(D.collapseAd(R.videoMastheadAdMuteCommand.encryptedMastheadId),Y.stopPropagation())}})};
_.u.attached=function(){var D=this;_.BE(function(){D.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(Y){if(!D.collapsed){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,Hg(R.baseUrl,R.attributionSrcMode);D.data.impressionCommand=void 0}});
this.JSC$15458_activeViewMeasurementDataResolver.promise.then(function(Y){D.ytdActiveViewBehavior.enableActiveViewMeasurement(Y,15)});
_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.dataChanged=function(){var D;((D=this.data.impressionCommand)==null?0:D.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$15458_activeViewMeasurementDataResolver.resolve(this.data.activeView);(D=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(D.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.u.computeWidescreen=function(D){var Y;return!!(D&&((Y=_.A(D,A0V))==null?0:Y.isWidescreen))};
_.u.computeExpandable=function(D){return!!(D&&D.length>0)};
_.u.onIronResize=function(){if(this.expandable){var D=_.aU(this.hostElement).querySelector("#expandable-tile-container :first-child");D&&!D.expanded&&(D.expanded=!0)}};
_.u.handleMuteAd=function(){this.collapseAd(null)};
_.u.restoreCollapsedState=function(D){this.collapsed=_.nX().get("HIDDEN_MASTHEAD_ID")===D};
_.u.collapseAd=function(D){if(D){var Y=_.nX();Y.set("HIDDEN_MASTHEAD_ID",D);Y.save()}(D=_.aU(this.hostElement).querySelector("#video"))&&_.MX(D,"yt-masthead-hidden");this.collapsed=!0};
_.u.expandAd=function(){var D=_.nX();D.set("HIDDEN_MASTHEAD_ID",!1);D.save();location.reload()};
_.u.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
rh.prototype.onIronResize=rh.prototype.onIronResize;rh.prototype.dataChanged=rh.prototype.dataChanged;_.q([_.v(_.l_),_.x("design:type",Object)],rh.prototype,"ironResizableBehavior",void 0);_.q([_.v(LS),_.x("design:type",Object)],rh.prototype,"ytdActiveViewBehavior",void 0);_.q([_.v(_.PH),_.x("design:type",Object)],rh.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],rh.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rh.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.x("design:type",Boolean)],rh.prototype,"widescreen",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.x("design:type",Boolean)],rh.prototype,"expandable",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rh.prototype,"collapsed",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rh.prototype,"dataChanged",null);
_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rh.prototype,"onIronResize",null);_.q([_.h({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],rh);
_.L(rh,"ytd-video-masthead-ad-v3-renderer",function(){if(bx7!==void 0)return bx7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return bx7=D},{mode:2});var wh=function(){return _.N.apply(this,arguments)||this};
_.n(wh,_.N);_.u=wh.prototype;_.u.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.u.ready=function(){var D=this;aNo(function(){D.isAttached&&Y6(D.JSC$15463_storedAdSlotMetadata,D.JSC$15463_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&Im(T7(),D.JSC$15463_storedAdSlotMetadata,D.JSC$15463_storedAdLayoutMetadata)})};
_.u.attached=function(){Y6(this.JSC$15463_storedAdSlotMetadata,this.JSC$15463_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&MJU(T7(),this.JSC$15463_storedAdSlotMetadata,this.JSC$15463_storedAdLayoutMetadata)};
_.u.detached=function(){Y6(this.JSC$15463_storedAdSlotMetadata,this.JSC$15463_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Im(T7(),this.JSC$15463_storedAdSlotMetadata,this.JSC$15463_storedAdLayoutMetadata)};
_.u.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15463_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15463_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15463_storedAdLayoutMetadata!==void 0&&this.JSC$15463_storedAdSlotMetadata!==void 0&&Im(T7(),this.JSC$15463_storedAdSlotMetadata,this.JSC$15463_storedAdLayoutMetadata),MJU(T7(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15463_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15463_storedAdSlotMetadata=this.adSlotMetadata)};
_.YF.Object.defineProperties(wh.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
wh.prototype.onAdMetadataChanged=wh.prototype.onAdMetadataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],wh.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wh.prototype,"data",void 0);_.q([_.b("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],wh.prototype,"adLayoutMetadata",null);
_.q([_.y(),_.x("design:type",Object)],wh.prototype,"adSlotMetadata",void 0);_.q([_.Gm("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wh.prototype,"onAdMetadataChanged",null);_.q([_.h({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],wh);
_.L(wh,"ytd-page-top-ad-layout-renderer",function(){if(nUL!==void 0)return nUL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return nUL=
D},{mode:_.zD("kevlar_poly_si_batch_j070")?1:2});var yIz;var $v=function(){var D=_.N.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.typographyBump=!1;return D};
_.n($v,_.N);_.u=$v.prototype;
_.u.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]]"}},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]]"}}}}}};
_.u.ready=function(){var D=this;aNo(function(){D.isAttached&&D.adSlotMetadata&&ay4(T7(),D.adSlotMetadata)})};
_.u.attached=function(){if(this.adSlotMetadata){var D;if(this.adSlotMetadata===((D=this.data)==null?void 0:D.adSlotMetadata))uOE(T7(),this.adSlotMetadata);else{var Y;_.Jk(Error("Lh`"+this.adSlotMetadata+"`"+((Y=this.data)==null?void 0:Y.adSlotMetadata)))}}};
_.u.detached=function(){this.adSlotMetadata&&ay4(T7(),this.adSlotMetadata)};
_.u.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.u.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&ay4(T7(),this.adSlotMetadata),uOE(T7(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.YF.Object.defineProperties($v.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=_.A((D=this.data)==null?void 0:(Y=D.fulfillmentContent)==null?void 0:Y.fulfilledLayout,_.r0E),Z;return(D=(Z=_.A(R==null?void 0:R.renderingContent,nrz))==null?void 0:Z.layout)?D.toLowerCase().replace(/_/g,"-"):""}}});
$v.prototype.onAdSlotMetadataChanged=$v.prototype.onAdSlotMetadataChanged;$v.prototype.onTypographyBumpChanged=$v.prototype.onTypographyBumpChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],$v.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$v.prototype,"rendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],$v.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],$v.prototype,"noBottomMargin",void 0);_.q([_.y(),_.x("design:type",Object)],$v.prototype,"overlayDensity",void 0);_.q([_.y(),_.x("design:type",Object)],$v.prototype,"typographyBump",void 0);_.q([_.fr("ytd-in-feed-ad-layout-renderer"),_.x("design:type",HTMLElement)],$v.prototype,"inFeedAdLayoutRenderer",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],$v.prototype,"layout",null);_.q([_.Gm("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$v.prototype,"onTypographyBumpChanged",null);_.q([_.Gm("data.adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$v.prototype,"onAdSlotMetadataChanged",null);
_.q([_.h({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],$v);
_.L($v,"ytd-ad-slot-renderer",function(){if(yIz!==void 0)return yIz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return yIz=D},{mode:_.zD("kevlar_poly_si_batch_j077")?
1:2});var Noz;var v5=function(){return _.N.apply(this,arguments)||this};
_.n(v5,_.N);_.u=v5.prototype;_.u.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"}}}};
_.u.maybeComputeHref=function(){return null};
_.u.onTap=function(){};
_.u.onThumbnailContainerClick=function(D){this.onClick(D)};
_.u.onClick=function(D){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint;R&&_.A(R,_.Od)&&(this.ytSparklesClickLocationBehavior.handleClick(R,D,!1),D.stopPropagation())};
_.u.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var D=_.a(this.data.impressionUrls),Y=D.next();!Y.done;Y=D.next())Y=Y.value,GDU(Y,fXn(Y));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",v5.JSC$15471_DEFAULT_CLICK_LOCATION_BEHAVIOR,v5.JSC$15471_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&
D.removeAttribute("href"))}};
_.u.attached=function(){var D=this;_.f("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.f("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.YF.Object.defineProperties(v5.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
v5.prototype.dataChanged=v5.prototype.dataChanged;v5.prototype.onTap=v5.prototype.onTap;v5.JSC$15471_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
v5.JSC$15471_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"}];_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.q([_.v(LS),_.x("design:type",Object)],v5.prototype,"ytdActiveViewBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],v5.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],v5.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],v5.prototype,"ytSparklesClickLocationBehavior",void 0);
_.q([_.y({selector:_.mI}),_.x("design:type",Object)],v5.prototype,"isGridViewEnabled",void 0);_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],v5.prototype,"watchFeedBigThumbs",null);_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],v5.prototype,"thumbnailWidth",null);_.q([_.y(),_.x("design:type",Object)],v5.prototype,"data",void 0);
_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],v5.prototype,"thumbnail",void 0);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],v5.prototype,"onTap",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],v5.prototype,"dataChanged",null);_.q([_.h({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],v5);
_.L(v5,"ytd-compact-promoted-video-renderer",function(){if(Noz!==void 0)return Noz;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Noz=D},{mode:1});var lyE;_.UD("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Jc=function(){return _.N.apply(this,arguments)||this};
_.n(Jc,_.N);Jc.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Jc.prototype,"data",void 0);_.q([_.h({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Jc);
_.L(Jc,"ytd-search-pyv-renderer",function(){if(lyE!==void 0)return lyE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return lyE=D},{mode:1});var JIE;_.UD("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var kv=function(){var D=_.N.apply(this,arguments)||this;D.roundedContainer=!0;D.JSC$15479_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.n(kv,_.N);_.u=kv.prototype;
_.u.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}}};
_.u.onStampFinished=function(){this.JSC$15479_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.u.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.aU(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");D?D.openDialog():this.JSC$15479_handleOpenPostCommentDialogActionAfterStamp=!0};
_.u.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.u.computeHideBorder=function(){return this.isInEngagementPanel};
_.u.computeIsCompact=function(){return this.isInEngagementPanel};
_.u.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.u.computeUsesFullLockup=function(){var D,Y=(D=this.data)==null?void 0:D.post,R;D=(R=_.A(Y,ktD))==null?void 0:R.surface;var Z;R=(Z=_.A(Y,hD_))==null?void 0:Z.originalPost;var t;if(Z=D||((t=_.A(R,ktD))==null?void 0:t.surface))return!this.computeUsesCompactLockup(Z)&&this.useUpdatedRepostUi;var X;return((X=_.A(Y,hD_))==null?void 0:X.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.YF.Object.defineProperties(kv.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((Y=_.A((D=this.data)==null?void 0:D.post,ktD))==null?void 0:Y.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useUpdatedRepostUi}}});
kv.prototype.onYtCommentModerationPanelEmpty=kv.prototype.onYtCommentModerationPanelEmpty;kv.prototype.onStampFinished=kv.prototype.onStampFinished;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],kv.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],kv.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kv.prototype,"roundedContainer",void 0);_.q([_.y({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],kv.prototype,"hideBorder",void 0);_.q([_.y({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],kv.prototype,"isCompact",void 0);
_.q([_.y({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.x("design:type",Boolean)],kv.prototype,"usesFullLockup",void 0);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kv.prototype,"onStampFinished",null);
_.q([_.Fv("ytd-comment-moderation-panel-empty"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],kv.prototype,"onYtCommentModerationPanelEmpty",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kv.prototype,"isInEngagementPanel",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kv.prototype,"useUpdatedRepostUi",null);
_.q([_.h({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],kv);
_.L(kv,"ytd-backstage-post-thread-renderer",function(){if(JIE!==void 0)return JIE;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return JIE=D},{mode:1});var kcb;var UJ=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(UJ,_.N);UJ.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
UJ.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var D=this.data.thumbnail.thumbnails;this.isDarkTheme&&(D=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(D=_.MW(D,24,void 0,"height"))?D:void 0}};
UJ.prototype.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
UJ.prototype.computeHasText=function(){var D;return!((D=this.data)==null||!D.text)};
_.YF.Object.defineProperties(UJ.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Jf(this.bannerImageUrl))+'");'}}});
UJ.prototype.computeHasText=UJ.prototype.computeHasText;UJ.prototype.computeBannerImageUrl=UJ.prototype.computeBannerImageUrl;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],UJ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],UJ.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],UJ.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],UJ.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",String)],UJ.prototype,"bannerImageUrl",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.x("design:type",Boolean)],UJ.prototype,"hasText",void 0);_.q([_.Gm("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UJ.prototype,"computeBannerImageUrl",null);
_.q([_.Gm("data.text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UJ.prototype,"computeHasText",null);_.q([_.b("bannerImageUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],UJ.prototype,"bannerStyle",null);_.q([_.h({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],UJ);
_.L(UJ,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(kcb!==void 0)return kcb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return kcb=D},{mode:1});var UrL;var Kk=function(){return _.N.apply(this,arguments)||this};
_.n(Kk,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Kk.prototype,"data",void 0);_.q([_.h({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Kk);
_.L(Kk,"ytd-backstage-zero-state-renderer",function(){if(UrL!==void 0)return UrL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return UrL=D},{mode:1});var K8L;var hc=function(){return _.N.apply(this,arguments)||this};
_.n(hc,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hc.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],hc.prototype,"icon",void 0);_.q([_.h({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],hc);
_.L(hc,"ytd-post-filter-zero-state-renderer",function(){if(K8L!==void 0)return K8L;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return K8L=D},{mode:1});var hPV;var L8E={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Lk=function(){return _.N.apply(this,arguments)||this};
_.n(Lk,_.N);Lk.prototype.configureRendererStamper=function(){return L8E};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Lk.prototype,"rendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Lk.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],Lk.prototype,"icon",void 0);_.q([_.h({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Lk);
_.L(Lk,"ytd-post-scheduling-zero-state-renderer",function(){if(hPV!==void 0)return hPV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return hPV=D},{mode:1});var mrV;var ms=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return D};
_.n(ms,_.N);ms.prototype.onTabsActivate=function(D){this.data&&this.data.tabs&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[D.detail.selected].navigationEndpoint})};
ms.prototype.shouldShowTotalCount=function(D){return D&&D.totalCount!==void 0};
ms.prototype.handleUpdatePostsTotalCountAction=function(D){var Y=this.get(["data.tabs",1,"totalCount"]),R=this.get("updatePostsTotalCountAction.updateType",D);D=this.get("updatePostsTotalCountAction.number",D);Y!==void 0&&R!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&D&&(R==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(Y)+D):R==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(Y)-D))};
_.YF.Object.defineProperties(ms.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var D=0,Y=this.data.tabs.length;D<Y;D++)if(this.data.tabs[D].selected)return D;return 0}}});
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ms.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ms.prototype,"rendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ms.prototype,"data",void 0);_.q([_.b("data.tabs"),_.x("design:type",Number),_.x("design:paramtypes",[])],ms.prototype,"selected",null);_.q([_.h({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],ms);
_.L(ms,"ytd-post-stream-filter-renderer",function(){if(mrV!==void 0)return mrV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return mrV=D},{mode:1});var qjb;var qS=function(){return _.N.apply(this,arguments)||this};
_.n(qS,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qS.prototype,"kevlarBehaviors",void 0);_.q([_.y(),_.x("design:type",Object)],qS.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],qS);
_.L(qS,"ytd-channel-age-gate-renderer",function(){if(qjb!==void 0)return qjb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qjb=D},{mode:1});var Hxz;_.UD("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var H5=function(){var D=_.N.apply(this,arguments)||this;D.data=null;return D};
_.n(H5,_.N);H5.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.YF.Object.defineProperties(H5.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?0:(Y=D.title)==null?0:(R=Y.runs)==null?0:R.length)?147:160}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],H5.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],H5.prototype,"imageSizePx",null);_.q([_.h({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],H5);
_.L(H5,"ytd-channel-owner-empty-state-renderer",function(){if(Hxz!==void 0)return Hxz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Hxz=D},{mode:1});var xrL;var PJY;var xv=function(){var D=_.N.apply(this,arguments)||this;D.boundSubmitSearch=function(){D.submitSearch()};
D.boundClearSearch=function(){D.clearSearch()};
return D};
_.n(xv,_.N);_.u=xv.prototype;_.u.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]]"}}}}}};
_.u.toggleClearButton=function(){this.hideClearButton=MWy||!this.input.value};
_.u.submitOnEnterKeyUp=function(D){D.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.u.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.u.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.u.submit=function(){_.MX(this.hostElement,"search-query-changed",this.input.value)};
xv.prototype.toggleClearButton=xv.prototype.toggleClearButton;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xv.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],xv.prototype,"hideClearButton",void 0);_.q([_.y(),_.x("design:type",Object)],xv.prototype,"boundSubmitSearch",void 0);_.q([_.y(),_.x("design:type",Object)],xv.prototype,"boundClearSearch",void 0);_.q([_.fr("#input"),_.x("design:type",Object)],xv.prototype,"input",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xv.prototype,"toggleClearButton",null);
_.q([_.h({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],xv);
_.L(xv,"ytd-channel-switcher-search-box-renderer",function(){if(PJY!==void 0)return PJY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return PJY=D},{mode:1});var Qrb;var P5=function(){var D=_.N.apply(this,arguments)||this;D.boundSubmit=function(){D.submit()};
return D};
_.n(P5,_.N);_.u=P5.prototype;_.u.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"}}}}};
_.u.ready=function(){var D=this;this.form.addEventListener("submit",function(Y){return D.onSubmit(Y)})};
_.u.onSubmit=function(D){D.preventDefault();return!1};
_.u.toggleClearButton=function(){this.hideClearButton=MWy||!this.input.value};
_.u.submitOnEnterKeyUp=function(D){D.keyCode===13&&this.submit()};
_.u.submit=function(){var D=this.data.endpoint,Y=(0,_.y7.unsafeClone)(D);_.A(Y,_.A6)?_.A(Y,_.A6).query=this.input.value:_.A(Y,_.nn)&&(_.A(Y,_.nn).query=this.input.value);var R=_.A(Y.commandMetadata,_.GA);(R==null?0:R.url)?(R.url=_.LI(R.url,"query",this.input.value),_.MX(this.hostElement,"yt-navigate",{endpoint:Y})):_.A(Y,FcE)?(_.A(Y,FcE).channelSwitcherQuery=this.input.value,_.DH().resolve(_.Yw).resolveCommand(Y,{form:{element:this.hostElement}})):(D=Error("Mh`"+JSON.stringify(D)),_.Nb(D))};
_.u.getUrl=function(D){return this.get("commandMetadata.webCommandMetadata.url",D)};
P5.prototype.toggleClearButton=P5.prototype.toggleClearButton;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],P5.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],P5.prototype,"hideClearButton",void 0);
_.q([_.y(),_.x("design:type",Object)],P5.prototype,"boundSubmit",void 0);_.q([_.fr("#form"),_.x("design:type",HTMLFormElement)],P5.prototype,"form",void 0);_.q([_.fr("#input"),_.x("design:type",Object)],P5.prototype,"input",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P5.prototype,"toggleClearButton",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],P5);
_.L(P5,"ytd-search-box-renderer",function(){if(Qrb!==void 0)return Qrb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Qrb=D},{mode:2});var QW=function(){var D=_.N.apply(this,arguments)||this;D.showSearchBox=!0;return D};
_.n(QW,_.N);QW.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QW.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],QW.prototype,"showSearchBox",void 0);_.q([_.h({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],QW);
_.L(QW,"ytd-channel-switcher-header-renderer",function(){if(xrL!==void 0)return xrL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return xrL=D},{mode:1});var BoL;var peD;var B5=function(){var D=_.N.apply(this,arguments)||this;D.isDisplayed=!0;return D};
_.n(B5,_.N);_.u=B5.prototype;_.u.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.dataChanged=function(){this.isDisplayed=!0};
_.u.computeType=function(D){return D||"UNKNOWN"};
_.u.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isDisplayed=!1};
_.u.onClose=function(){this.isDisplayed=!1};
B5.prototype.onYtServiceRequestCompleted=B5.prototype.onYtServiceRequestCompleted;B5.prototype.dataChanged=B5.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],B5.prototype,"data",void 0);
_.q([_.y({computed:"computeType(data.type)",reflectToAttribute:!0}),_.x("design:type",String)],B5.prototype,"type",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B5.prototype,"isDisplayed",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B5.prototype,"dataChanged",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],B5.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],B5);
_.L(B5,"ytd-alert-with-button-renderer",function(){if(peD!==void 0)return peD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return peD=D},{mode:1});var pk=function(){var D=_.N.apply(this,arguments)||this;D.noResult=!1;D.enableAlertBanner=!1;D.dismissedAlertBanner=!1;D.hideCreateChannelButton=!1;D.boundDismissAlertBanner=function(){D.dismissAlertBanner()};
D.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return D};
_.n(pk,_.N);_.u=pk.prototype;_.u.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.u.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.u.updateChannelSwitcherAction=function(D){var Y;D=(Y=_.A(D,M_L))==null?void 0:Y.page;_.A(D,as4)!==void 0&&(this.data=_.A(D,as4))};
_.u.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]]"}}}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.u.searchQueryChanged=function(D,Y){if(this.data&&this.data.contents&&this.data.contents.length){D=[];var R=[];this.hideCreateChannelButton=this.noResult=!1;for(var Z=document.querySelectorAll("ytd-account-item-renderer"),t=_.a(Z),X=t.next();!X.done;X=t.next())X=X.value,R.push(X),X.style.display="block";this.resetRightBorder(R);if(Y){this.hideCreateChannelButton=!0;for(R=1;R<this.data.contents.length;R++)if(X=this.data.contents[R],_.A(X,TyL)){var M=void 0,W=void 0;t=(M=_.A(X,TyL))==null?void 0:(W=
M.accountName)==null?void 0:W.simpleText;W=M=void 0;X=(M=_.A(X,TyL))==null?void 0:(W=M.channelHandle)==null?void 0:W.simpleText;(M=Z[R-1])&&t&&_.zU(t,Y)?D.push(M):_.f("enable_handle_search_on_channel_switcher")&&M&&X&&_.zU(X.toString(),Y.toString())?D.push(M):M.style.display="none"}D.length===0&&(this.noResult=!0);this.resetRightBorder(D)}}};
_.u.resetRightBorder=function(D){for(var Y=0;Y<D.length;Y++)D[Y].style.borderRight=!this.hideCreateChannelButton&&(Y+2)%3===0||this.hideCreateChannelButton&&(Y+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.u.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.u.setShowSearchBox=function(D){if(D&&D.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var Y=0;Y<D.contents.length;Y++)_.A(D.contents[Y],_.Y5)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.u.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.YF.Object.defineProperties(pk.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.contents)}}});
pk.prototype.onContinuationItemsUpdated=pk.prototype.onContinuationItemsUpdated;pk.prototype.searchQueryChanged=pk.prototype.searchQueryChanged;pk.prototype.onDataChanged=pk.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],pk.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],pk.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pk.prototype,"data",void 0);_.q([_.fr("ytd-channel-switcher-header-renderer"),_.x("design:type",Object)],pk.prototype,"channelSwitcherHeaderRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],pk.prototype,"noResult",void 0);
_.q([_.y(),_.x("design:type",Object)],pk.prototype,"enableAlertBanner",void 0);_.q([_.y(),_.x("design:type",Object)],pk.prototype,"dismissedAlertBanner",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],pk.prototype,"hideCreateChannelButton",void 0);_.q([_.b("data.contents"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pk.prototype,"isLoading",null);_.q([_.y(),_.x("design:type",Object)],pk.prototype,"boundDismissAlertBanner",void 0);
_.q([_.y({computed:"computeButtonOverride()"}),_.x("design:type",Object)],pk.prototype,"buttonOverride",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pk.prototype,"onDataChanged",null);_.q([_.Fv("search-query-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],pk.prototype,"searchQueryChanged",null);
_.q([_.Fv("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],pk.prototype,"onContinuationItemsUpdated",null);_.q([_.h({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],pk);
_.L(pk,"ytd-channel-switcher-page-renderer",function(){if(BoL!==void 0)return BoL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return BoL=D},{mode:1});var EU7;var gUz;var EJ=function(){var D=_.N.apply(this,arguments)||this;D.images=[];D.selectedImageIndex=0;return D};
_.n(EJ,_.N);_.u=EJ.prototype;
_.u.ready=function(){_.yu(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.yu(this.JSC$15524_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.yu(this.JSC$15524_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.yu(this.JSC$15524_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.u.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.u.updateImageThumbnails=function(D){D=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:D.event_.detail});this.images.splice(this.selectedImageIndex,1,D);this.images=[].concat(_.oK(this.images))};
_.u.cancelImageRepositions=function(){this.selectedImageIndex=0;_.MX(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.u.saveImageRepositions=function(){this.selectedImageIndex=0;_.MX(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.YF.Object.defineProperties(EJ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var D=this;return(this.images||[]).map(function(Y,R){return{image:Y,selected:R===D.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("ytd-backstage-image-preview-renderer"),_.x("design:type",Object)],EJ.prototype,"JSC$15524_imagePreviewContainer",void 0);_.q([_.fr(".thumbnail-images-container"),_.x("design:type",HTMLElement)],EJ.prototype,"thumbnailImagesContainer",void 0);_.q([_.y(),_.x("design:type",Array)],EJ.prototype,"images",void 0);
_.q([_.y(),_.x("design:type",Object)],EJ.prototype,"repositionInstructions",void 0);_.q([_.y(),_.x("design:type",Object)],EJ.prototype,"selectedImageIndex",void 0);_.q([_.b("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],EJ.prototype,"thumbnailRendererDatas",null);_.q([_.b("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],EJ.prototype,"selectedImageData",null);
_.q([_.h({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],EJ);
_.L(EJ,"ytd-backstage-multi-image-reposition-renderer",function(){if(gUz!==void 0)return gUz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return gUz=D},{mode:1});var gh=function(D,Y){_.eE.call(this);this.uploadUrl=D;this.channelId=Y;this.imagesUploadData=[]};
_.n(gh,_.eE);gh.prototype.getAllUploadStatuses=function(){var D=this,Y,R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(drY(D),2);Y=t.yieldResult;R=Y.get("succeed");Z=Y.get("failed");return t.return(R.concat(Z))})};
var OxE=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(drY(D),2);Y=Z.yieldResult;R=Y.get("failed");R.length>0&&ixz(D,R);return Z.return(D.getAllUploadStatuses())})},drY=function(D){var Y,R,Z,t,X,M,W;
return _.C(function(z){if(z.nextAddress==1)return Y=new Map,z.yield(Promise.allSettled(D.imagesUploadData.map(function(I){return I.uploadPromise})),2);
R=z.yieldResult;Z=[];t=_.a(R);for(X=t.next();!X.done;X=t.next())M=X.value,M.status==="fulfilled"&&Z.push(M.value);W=D.imagesUploadData.map(function(I){return I.image}).filter(function(I){return Z.every(function(F){return F.id!==I.id})});
Y.set("succeed",Z);Y.set("failed",W);return z.return(Y)})},ixz=function(D,Y){Y=_.a(Y);
for(var R=Y.next();!R.done;R=Y.next()){var Z=D;R=R.value;cIV(Z,R.id)>=0&&Z.cancel(R.id);var t=new Dz_(R),X=_.RDV(Z.uploadUrl,{"X-YouTube-ChannelId":Z.channelId},R.imageBlob);t.transfer=X;t.uploadPromise=Y54(X,R);Z.imagesUploadData.push(t);X.run()}};
gh.prototype.cancel=function(D){var Y=cIV(this,D);Y!==-1&&((Y=this.imagesUploadData[Y].transfer)&&Y.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(R){return R.image.id!==D}))};
var cIV=function(D,Y){return D.imagesUploadData.findIndex(function(R){return R.image.id===Y})},Y54=function(D,Y){return new Promise(function(R,Z){D.listen("l",function(){var t=D.getResponseText();
t?(t=JSON.parse(t).encryptedBlobId,Y.encryptedBlobId=t,R(Y)):Z("upload failed")});
D.listen("n",function(){Z("upload failed")})})},Dz_=function(D){this.image=D};var Pa9=function(D,Y,R,Z,t){this.id=D;this.imageBlob=Y;this.localImageSrc=R;this.naturalWidth=Z;this.naturalHeight=t;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 Reb=[".jpeg",".jpg",".png"],dh=function(){var D=_.N.apply(this,arguments)||this;D.showImagesPreview=!1;D.pollOptions=[];D.errorMessage="";D.optionPlaceholderText="";D.optionDefaultText="";D.JSC$15535_imageId=0;D.maxFileSizeMb=0;D.maxAspectRatio=0;D.invalidFileSizeError="";D.invalidAspectRatioError="";D.invalidFileTypeError="";D.imageSelector=new jB(null,"single_file",Reb);return D};
_.n(dh,_.N);_.u=dh.prototype;_.u.ready=function(){_.yu(this.imageSelector,"j",this.onImageSelect,!1,this);_.yu(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.yu(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.u.dataChanged=function(){var D,Y,R=_.A((D=this.data)==null?void 0:(Y=D.cellTemplate)==null?void 0:Y.onEmptyCellTap,TpE);if(R&&R.uploadUrl&&R.channelId){var Z;this.maxFileSizeMb=((Z=R.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0;var t;this.maxAspectRatio=((t=R.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0;var X;this.invalidFileSizeError=this.getSimpleString((X=this.data)==null?void 0:X.invalidFileSizeError);var M;this.invalidAspectRatioError=this.getSimpleString((M=this.data)==
null?void 0:M.invalidAspectRatioError);var W;this.invalidFileTypeError=this.getSimpleString((W=this.data)==null?void 0:W.invalidFileTypeError);this.uploadManager=new gh(R.uploadUrl,R.channelId)}};
_.u.onEditorInfoChange=function(){this.optionPlaceholderText=_.OM(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.OM(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.u.observeAddImageError=function(){this.errorMessage!==""&&_.MX(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.u.onPollOptionsChange=function(){for(var D=!1,Y=[],R=0;R<this.pollOptions.length;R++){var Z=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(R+1);this.pollOptions[R].placeholderText!==Z?(D=!0,Y.push(Object.assign({},this.pollOptions[R],{placeholderText:Z}))):Y.push(this.pollOptions[R])}D&&(this.pollOptions=Y);this.isValid()?_.MX(this.hostElement,"yt-commentbox-post-enable"):_.MX(this.hostElement,"yt-commentbox-post-disable")};
_.u.createPollOptions=function(D){var Y=[],R;D=(R=D==null?void 0:D.minPollOptions)!=null?R:0;for(R=0;R<D;R++)Y.push(this.createPollOption());return Y};
_.u.onImageSelect=function(D){var Y=this,R,Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1){if(Y.selectedImageIndex===void 0)return z.jumpTo(0);R=D.files[0];Y.errorMessage="";Z=Y.validateImage(R);if(Z!=="")return Y.errorMessage=Z,z.return();t=new cx(Y.maxAspectRatio,!1,!0);return z.yield(t.transform(R),3)}if(z.nextAddress!=4)return X=z.yieldResult,X.transformedData?X.invalidAspectRatio?(Y.errorMessage=Y.invalidAspectRatioError,z.return()):z.yield(QO9(Y.JSC$15535_imageId,D.files[0],X.transformedData),
4):(Y.errorMessage=Y.invalidFileTypeError,z.return());M=z.yieldResult;Y.JSC$15535_imageId++;ixz(Y.uploadManager,[M]);W=Object.assign({},Y.pollOptions[Y.selectedImageIndex],{image:M});Y.pollOptions.splice(Y.selectedImageIndex,1,W);Y.refreshPollOptions();_.MX(Y.hostElement,"yt-backstage-poll-image-select");_.V9(z)})};
_.u.validateImage=function(D){return D.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.u.refreshPollOptions=function(){this.pollOptions=[].concat(_.oK(this.pollOptions))};
_.u.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.oK(this.pollOptions),[this.createPollOption()]))};
_.u.onRemovePollOption=function(D){var Y=this.pollOptions[D.model.index];Y&&Y.image&&this.uploadManager.cancel(Y.image.id);this.pollOptions.splice(D.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.MX(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.u.onTextInput=function(){this.refreshPollOptions()};
_.u.onImageButtonClick=function(D){this.selectedImageIndex=D.model.index;this.imageSelector.click()};
_.u.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.u.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.u.saveImageRepositions=function(D){D=D.event_.detail;for(var Y=0,R=[],Z=_.a(this.pollOptions),t=Z.next();!t.done;t=Z.next())t=t.value,t.image!==void 0?(t=Object.assign({},t,{image:D[Y]}),R.push(t),Y++):R.push(t);this.showImagesPreview=!1;this.pollOptions=[].concat(_.oK(R))};
_.u.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 D=0,Y=_.a(this.pollOptions),R=Y.next();!R.done;R=Y.next())if(R=R.value,R.optionText.trim()!==""||R.image!==void 0){if(!R.image||this.hasCustomOptionText&&R.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;D++}return D>=Number(this.editorInfo.minPollOptions)};
_.u.getAllUploadStatuses=function(){var D=this,Y,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return X.yield(D.uploadManager.getAllUploadStatuses(),2);Y=X.yieldResult;R=_.a(Y);for(Z=R.next();!Z.done;Z=R.next())if(t=Z.value,t.encryptedBlobId===void 0)return X.return(OxE(D.uploadManager));return X.return(Y)})};
_.u.getPostCreateOptions=function(){for(var D=[],Y=_.a(this.pollOptions),R=Y.next();!R.done;R=Y.next())R=R.value,R.image!==void 0&&D.push({text:this.hasCustomOptionText?R.optionText:R.placeholderText,image:R.image});return D};
_.u.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.u.createButtonRenderer=function(D,Y){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleString(D)}},isDisabled:Y}};
_.u.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.u.computeThumbnailRendererData=function(D){return D?{image:D,selected:!1}:void 0};
_.u.getSimpleString=function(D){return _.OM(D)};
_.u.updateOptionTextFromBinding=function(D){if(D.target){var Y=Array.from(_.aU(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(D.target);if(Y>=0){var R;this.pollOptions[Y].optionText=(R=D.detail.value)!=null?R:""}}};
_.YF.Object.defineProperties(dh.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,Y;return this.pollOptions.length<((Y=(D=this.editorInfo)==null?void 0:D.maxPollOptions)!=null?Y:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(D){return D.image}).map(function(D){return D.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var D,Y=(D=this.data)==null?void 0:D.addOptionButtonText;return Y?this.createButtonRenderer(Y,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var D,Y=(D=this.data)==null?void 0:D.repositionImagesButtonLabel;return Y?this.createButtonRenderer(Y,!this.hasImages):void 0}}});
dh.prototype.onPollOptionsChange=dh.prototype.onPollOptionsChange;dh.prototype.observeAddImageError=dh.prototype.observeAddImageError;dh.prototype.onEditorInfoChange=dh.prototype.onEditorInfoChange;dh.prototype.dataChanged=dh.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("ytd-backstage-multi-image-reposition-renderer"),_.x("design:type",Object)],dh.prototype,"imageRepositionContainer",void 0);
_.q([_.y(),_.x("design:type",Object)],dh.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],dh.prototype,"editorInfo",void 0);_.q([_.y(),_.x("design:type",gh)],dh.prototype,"uploadManager",void 0);_.q([_.y(),_.x("design:type",Object)],dh.prototype,"showImagesPreview",void 0);_.q([_.y(),_.x("design:type",Array)],dh.prototype,"pollOptions",void 0);_.q([_.y(),_.x("design:type",Object)],dh.prototype,"errorMessage",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dh.prototype,"dataChanged",null);_.q([_.rd("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dh.prototype,"onEditorInfoChange",null);_.q([_.Gm("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dh.prototype,"observeAddImageError",null);
_.q([_.rd("pollOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dh.prototype,"onPollOptionsChange",null);_.q([_.b("pollOptions","editorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],dh.prototype,"isAllowedToAddOption",null);_.q([_.b("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],dh.prototype,"hasImages",null);
_.q([_.b("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],dh.prototype,"imagesToReposition",null);_.q([_.b("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],dh.prototype,"hasCustomOptionText",null);_.q([_.b("data","isAllowedToAddOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],dh.prototype,"addOptionButton",null);_.q([_.b("data","hasImages"),_.x("design:type",Object),_.x("design:paramtypes",[])],dh.prototype,"repositionImagesButton",null);
_.q([_.h({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],dh);
_.L(dh,"ytd-backstage-image-poll-editor-renderer",function(){if(EU7!==void 0)return EU7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return EU7=D},{mode:2});var ZTD={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 tAz;var i8=function(){var D=_.N.apply(this,arguments)||this;D.a11yConfig=ZTD;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.showPreviewContainer=!0;D.startPicker=!1;D.repositionOptional=!1;D.editOnlyMode=!1;D.savedImageDisplayOffsetTop=0;D.savedImageDisplayOffsetLeft=0;return D};
_.n(i8,_.N);_.u=i8.prototype;_.u.created=function(){_.H6.requestAvailability()};
_.u.ready=function(){};
_.u.onArrowKeysDown=function(D){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var Y=0,R=0,Z="";switch(D.detail.keyboardEvent.key){case "ArrowUp":Bxb(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:Y=this.imageHeight*.05*-1;break;case "ArrowDown":Bxb(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
Y=this.imageHeight*.05;break;case "ArrowLeft":Bxb(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:R=this.imageWidth*.05*-1;break;case "ArrowRight":Bxb(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:R=this.imageWidth*.05}Z&&_.fX(Z)&&_.MX(this.hostElement,"iron-announce",{text:_.fX(Z)});if(R||Y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Y)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.fX(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+R)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.fX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.MX(this.hostElement,"iron-announce",{text:D})}};
_.u.getPreviewPosition=function(D,Y,R,Z){return Math.round(100*(D+Y*.5-R)/Z)};
_.u.calculateDisplayPosition=function(){var D=this.imageData.naturalWidth,Y=this.imageData.naturalHeight;this.displayScale=Math.max(200/D,200/Y);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var R=D*this.displayScale*this.imageData.previewCoordinates.left,Z=Y*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=Y>D?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-R;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=D>Y?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Z;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=D*this.displayScale;this.imageHeight=Y*this.displayScale};
_.u.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.u.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.u.getSignedPosition=function(D,Y,R){return Y==="X"&&_.JQ("HTML_DIR")==="rtl"?R==="-"?D+"px":D*-1+"px":R==="-"?D*-1+"px":D+"px"};
_.u.pickerMove=function(D){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Y=this.pickerOffsetX-D.clientX,R=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
R)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Y))}};
_.u.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.u.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var D=this.generateCropPreview();D&&_.MX(this.hostElement,"ytd-backstage-image-preview-coordinates-update",D)};
_.u.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.MX(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.u.deleteImage=function(){_.MX(this.hostElement,"ytd-backstage-image-preview-delete")};
_.u.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.u.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var D=this.generateCropPreview();D&&_.MX(this.hostElement,"ytd-backstage-image-preview-coordinates-save",D)};
_.u.getPreviewOffset=function(D,Y,R){return Y&&D?(R==="X"&&_.JQ("HTML_DIR")==="rtl"?300/Y*D:300/Y*D*-1)+"px":"0px"};
_.u.getSimpleText=function(D){return D?_.OM(D):""};
_.u.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}};
_.YF.Object.defineProperties(i8.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.fX(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.fX(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.fX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.fX(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 D,Y,R=(D=this.instruction)==null?void 0:(Y=D.previewInstruction)==null?void 0:Y.editButtonLabel;return R?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:R,accessibilityData:{accessibilityData:{label:this.getSimpleText(R)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t=this.editOnlyMode?(D=this.instruction)==null?void 0:(Y=D.editInstruction)==null?void 0:Y.saveImagesButtonLabel:(R=this.instruction)==null?void 0:(Z=R.editInstruction)==null?void 0:Z.saveButtonLabel;return t?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleText(t)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.instruction)==null?void 0:(Y=D.previewInstruction)==null?void 0:Y.deleteButtonLabel;return R?{size:"SIZE_SMALL",text:R,accessibilityData:{accessibilityData:{label:this.getSimpleText(R)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.instruction)==null?void 0:(Y=D.editInstruction)==null?void 0:Y.cancelButtonLabel;D=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return R?{style:D,size:"SIZE_SMALL",text:R,accessibilityData:{accessibilityData:{label:this.getSimpleText(R)}}}: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"}}});
i8.prototype.onEditOnlyModeUpdate=i8.prototype.onEditOnlyModeUpdate;i8.prototype.onImageChange=i8.prototype.onImageChange;_.q([_.y(),_.x("design:type",Pa9)],i8.prototype,"imageData",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"instruction",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"a11yConfig",void 0);_.q([_.y(),_.x("design:type",Number)],i8.prototype,"imageWidth",void 0);_.q([_.y(),_.x("design:type",Number)],i8.prototype,"imageHeight",void 0);
_.q([_.y(),_.x("design:type",Number)],i8.prototype,"displayScale",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"imageDisplayOffsetTop",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"imageDisplayOffsetLeft",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"pickerDisplayOffsetTop",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"pickerDisplayOffsetLeft",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"showPreviewContainer",void 0);
_.q([_.y(),_.x("design:type",Object)],i8.prototype,"startPicker",void 0);_.q([_.y(),_.x("design:type",Number)],i8.prototype,"pickerOffsetX",void 0);_.q([_.y(),_.x("design:type",Number)],i8.prototype,"pickerOffsetY",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"repositionOptional",void 0);_.q([_.y(),_.x("design:type",Object)],i8.prototype,"editOnlyMode",void 0);_.q([_.fr("#picker-container"),_.x("design:type",HTMLElement)],i8.prototype,"JSC$15548_pickerContainer",void 0);
_.q([_.fr("#picker"),_.x("design:type",HTMLElement)],i8.prototype,"picker",void 0);_.q([_.fr("#preview-clipper"),_.x("design:type",HTMLElement)],i8.prototype,"previewClipper",void 0);_.q([_.fr("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],i8.prototype,"JSC$15548_imageInBackground",void 0);_.q([_.fr("#image-in-picker"),_.x("design:type",HTMLImageElement)],i8.prototype,"JSC$15548_imageInPicker",void 0);
_.q([_.fr("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],i8.prototype,"JSC$15548_imageInPreviewClipper",void 0);_.q([_.b("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],i8.prototype,"altLabelForImage",null);_.q([_.b("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],i8.prototype,"pickerSize",null);
_.q([_.b("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],i8.prototype,"imageOrientationStyle",null);_.q([_.b("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],i8.prototype,"editButton",null);_.q([_.b("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],i8.prototype,"saveButton",null);_.q([_.b("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],i8.prototype,"deleteButton",null);
_.q([_.b("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],i8.prototype,"cancelButton",null);_.q([_.b("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],i8.prototype,"cropOffsetTop",null);_.q([_.b("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],i8.prototype,"cropOffsetLeft",null);
_.q([_.b("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],i8.prototype,"pickerBackgroundStyle",null);_.q([_.b("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],i8.prototype,"pickerDisplayStyle",null);_.q([_.b("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],i8.prototype,"imageInPickerStyle",null);
_.q([_.b("cropOffsetLeft","cropOffsetTop","pickerSize"),_.x("design:type",String),_.x("design:paramtypes",[])],i8.prototype,"previewClipperStyle",null);_.q([_.rd("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i8.prototype,"onImageChange",null);_.q([_.rd("editOnlyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i8.prototype,"onEditOnlyModeUpdate",null);
_.q([_.b("showPreviewContainer"),_.x("design:type",String),_.x("design:paramtypes",[])],i8.prototype,"pickerModeStyle",null);_.q([_.h({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],i8);
_.L(i8,"ytd-backstage-image-preview-renderer",function(){if(tAz!==void 0)return tAz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return tAz=D},{mode:1});var sG1;var Xnz={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 uT1;var aJL;var OJ=function(){var D=_.N.apply(this,arguments)||this;D.a11yConfig=Xnz;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.cropCoordinatesSaved=!1;D.previewSize=0;D.startPicker=!1;D.repositionOptional=!1;return D};
_.n(OJ,_.N);_.u=OJ.prototype;_.u.created=function(){_.H6.requestAvailability()};
_.u.ready=function(){};
_.u.onArrowKeysDown=function(D){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var Y=0,R=0,Z="";switch(D.detail.keyboardEvent.key){case "ArrowUp":p3j(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:Y=this.imageHeight*.05*-1;break;case "ArrowDown":p3j(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
Y=this.imageHeight*.05;break;case "ArrowLeft":p3j(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:R=this.imageWidth*.05*-1;break;case "ArrowRight":p3j(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:R=this.imageWidth*.05}Z&&_.fX(Z)&&_.MX(this.hostElement,"iron-announce",{text:_.fX(Z)});if(R||Y)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Y)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.fX(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+R)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.fX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.MX(this.hostElement,"iron-announce",{text:D})}};
_.u.getPreviewPosition=function(D,Y,R,Z){return Math.round(100*(D+Y*.5-R)/Z)};
_.u.displayImage=function(){var D=this.JSC$15559_pickerContainer.getBoundingClientRect().width,Y=this.JSC$15559_pickerContainer.getBoundingClientRect().height,R=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Z=this.JSC$15559_imageInBackground.naturalWidth,t=this.JSC$15559_imageInBackground.naturalHeight;this.displayScale=Math.max(R/Z,R/t);this.imageWidth=Z*this.displayScale;this.imageHeight=t*this.displayScale;this.pickerDisplayOffsetLeft=(D-R)/2;this.pickerDisplayOffsetTop=
(Y-R)/2;this.imageDisplayOffsetLeft=t>Z?this.pickerDisplayOffsetLeft:(D-this.imageWidth)/2;this.imageDisplayOffsetTop=Z>t?this.pickerDisplayOffsetTop:(Y-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.u.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15559_imageInBackground.src=this.imageData.toString(),this.JSC$15559_imageInPicker.src=this.imageData.toString(),this.JSC$15559_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.u.getSignedPosition=function(D,Y,R){return Y==="X"&&_.JQ("HTML_DIR")==="rtl"?R==="-"?D+"px":D*-1+"px":R==="-"?D*-1+"px":D+"px"};
_.u.pickerMove=function(D){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Y=this.pickerOffsetX-D.clientX,R=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
R)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Y))}};
_.u.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.u.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.u.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.MX(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.u.getPreviewOffset=function(D,Y,R,Z){return Y&&D&&R?(Z==="X"&&_.JQ("HTML_DIR")==="rtl"?R/Y*D:R/Y*D*-1)+"px":"0px"};
_.u.getSimpleText=function(D){return D?_.OM(D):""};
_.u.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var D=this.cropOffsetTop/this.imageHeight,Y=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,R=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Z=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.aU(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.MX(this.hostElement,"yt-img-crop-coordinates-update",{top:D,right:Y,bottom:R,left:Z})}};
_.YF.Object.defineProperties(OJ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.fX(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.fX(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.fX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.fX(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 D,Y=(D=this.learnMore.runs[0])==null?void 0:D.navigationEndpoint,R;return((R=_.A(Y,_.Qj))==null?void 0:R.url)||void 0}}}});
OJ.prototype.onImageDataChange=OJ.prototype.onImageDataChange;_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"imageData",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"instruction",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"a11yConfig",void 0);_.q([_.y(),_.x("design:type",Number)],OJ.prototype,"imageWidth",void 0);_.q([_.y(),_.x("design:type",Number)],OJ.prototype,"imageHeight",void 0);_.q([_.y(),_.x("design:type",Number)],OJ.prototype,"displayScale",void 0);
_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"imageDisplayOffsetTop",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"imageDisplayOffsetLeft",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"pickerDisplayOffsetTop",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"pickerDisplayOffsetLeft",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"cropCoordinatesSaved",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"previewSize",void 0);
_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"startPicker",void 0);_.q([_.y(),_.x("design:type",Number)],OJ.prototype,"pickerOffsetX",void 0);_.q([_.y(),_.x("design:type",Number)],OJ.prototype,"pickerOffsetY",void 0);_.q([_.y(),_.x("design:type",Object)],OJ.prototype,"repositionOptional",void 0);_.q([_.fr("#picker-container"),_.x("design:type",HTMLElement)],OJ.prototype,"JSC$15559_pickerContainer",void 0);_.q([_.fr("#picker"),_.x("design:type",HTMLElement)],OJ.prototype,"picker",void 0);
_.q([_.fr("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],OJ.prototype,"JSC$15559_imageInBackground",void 0);_.q([_.fr("#image-in-picker"),_.x("design:type",HTMLImageElement)],OJ.prototype,"JSC$15559_imageInPicker",void 0);_.q([_.fr("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],OJ.prototype,"JSC$15559_imageInPreviewClipper",void 0);_.q([_.fr("#full-image-as-preview"),_.x("design:type",HTMLImageElement)],OJ.prototype,"imageAsPreview",void 0);
_.q([_.b("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],OJ.prototype,"altLabelForImage",null);_.q([_.b("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],OJ.prototype,"pickerSize",null);_.q([_.b("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],OJ.prototype,"imageOrientationStyle",null);
_.q([_.b("instruction.previewInstruction.editButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],OJ.prototype,"editButton",null);_.q([_.b("instruction.editInstruction.saveButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],OJ.prototype,"saveButton",null);_.q([_.b("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],OJ.prototype,"cropOffsetTop",null);
_.q([_.b("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],OJ.prototype,"cropOffsetLeft",null);_.q([_.b("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],OJ.prototype,"pickerBackgroundStyle",null);_.q([_.b("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],OJ.prototype,"pickerDisplayStyle",null);
_.q([_.b("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],OJ.prototype,"imageInPickerStyle",null);_.q([_.b("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.x("design:type",String),_.x("design:paramtypes",[])],OJ.prototype,"previewClipperStyle",null);_.q([_.Gm("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OJ.prototype,"onImageDataChange",null);
_.q([_.b("cropCoordinatesSaved"),_.x("design:type",String),_.x("design:paramtypes",[])],OJ.prototype,"pickerModeStyle",null);_.q([_.b("instruction.editInstruction.learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],OJ.prototype,"learnMore",null);_.q([_.b("learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],OJ.prototype,"learnMoreUrl",null);_.q([_.Lr({is:"yt-img-crop-picker",disableElementRegistration:!0})],OJ);
_.L(OJ,"yt-img-crop-picker",function(){if(aJL===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;uT1===void 0&&(uT1=document.createElement("template"));var Z=uT1;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);aJL=D}D=aJL;return D},{mode:2});var c5=function(){var D=_.N.apply(this,arguments)||this;D.errorMessage="";D.hasPreview=!1;D.isBackstagePost=!1;D.dismissButtonOverrides={size:"XS"};return D};
_.n(c5,_.N);_.u=c5.prototype;_.u.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"}}}};
_.u.detached=function(){this.removeOverlay()};
_.u.setPreview=function(D){_.aU(this.hostElement).querySelector("#preview-picker").imageData=D;this.hasPreview=!0;_.MX(this.hostElement,"yt-backstage-image-select-preview")};
_.u.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var D=_.aU(this.hostElement).querySelector("#dropzone");D.classList.remove("dragover");D.classList.remove("error");_.MX(this.hostElement,"yt-backstage-image-select-cancel")};
_.u.setupOverlay=function(){var D=this.imageUploadEndpoint;this.removeOverlay();if(D&&D.imageValidationInfo){var Y=_.aU(this.hostElement).querySelector("#dropzone"),R=_.aU(this.hostElement).querySelector("#select");this.overlay=new YW(D.uploadUrl,D.channelId,D.imageValidationInfo.maxFileSizeMb,D.imageValidationInfo.allowedMaxAspectRatio,Y,R,!0);_.yu(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.yu(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.yu(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.yu(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.yu(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.u.removeOverlay=function(){this.overlay&&(_.fg(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.fg(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.fg(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.fg(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.fg(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.u.onDragOver=function(D){var Y=_.aU(this.hostElement).querySelector("#dropzone");_.Cr(Y,"dragover",D.value)};
_.u.onPreview=function(D){this.setPreview(D.value)};
_.u.onImageError=function(D){if(D.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var Y;D=(Y=this.data)==null?void 0:Y.fileSizeError}else if(D.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var R;D=(R=this.data)==null?void 0:R.invalidError}else if(D.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Z;D=(Z=this.data)==null?void 0:Z.invalidAspectRatioError}else return;this.errorMessage=_.OM(D);_.aU(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.u.onImageAlert=function(D){this.onImageError(D)};
_.u.uploadPromise=function(){var D=this,Y=this.overlay&&this.overlay.uploadPromise();if(Y)return Y.catch(function(){throw Error(D.data?_.OM(D.data.uploadFailureError):"");})};
_.YF.Object.defineProperties(c5.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var D,Y;if((D=this.data)==null?0:(Y=D.icon)==null?0:Y.iconType)return _.IT(this.data.icon.iconType)}}});
c5.prototype.setupOverlay=c5.prototype.setupOverlay;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],c5.prototype,"rendererStamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],c5.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],c5.prototype,"imageUploadEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],c5.prototype,"errorMessage",void 0);
_.q([_.y(),_.x("design:type",YW)],c5.prototype,"overlay",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],c5.prototype,"hasPreview",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],c5.prototype,"isBackstagePost",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],c5.prototype,"selectionCancel",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],c5.prototype,"previewCancel",null);
_.q([_.b("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],c5.prototype,"icon",null);_.q([_.y(),_.x("design:type",Object)],c5.prototype,"dismissButtonOverrides",void 0);_.q([_.Gm("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],c5.prototype,"setupOverlay",null);_.q([_.h({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],c5);
_.L(c5,"ytd-backstage-image-select-renderer",function(){if(sG1!==void 0)return sG1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return sG1=D},{mode:1});var MAY;var C7Y;var Dn=function(){var D=_.N.apply(this,arguments)||this;D.selected=!1;return D};
_.n(Dn,_.N);_.u=Dn.prototype;_.u.computeSelected=function(D){return D==null?void 0:D.selected};
_.u.computeTransform=function(D,Y,R){var Z,t,X=(t=(Z=this.imageContainer)==null?void 0:Z.getBoundingClientRect())!=null?t:{width:0,height:0};Z=Math.max(X.width/Y,X.height/R);R=R*Z*D.top;return"translateX("+this.getSignedPosition(Y*Z*D.left,"X","-")+") translateY("+this.getSignedPosition(R,"Y","-")+")"};
_.u.getSignedPosition=function(D,Y,R){return Y==="X"&&_.JQ("HTML_DIR")==="rtl"?R==="-"?D+"px":D*-1+"px":R==="-"?D*-1+"px":D+"px"};
_.u.onClick=function(){var D;_.MX(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(D=this.data)==null?void 0:D.image)};
_.u.onKeyPress=function(D){if(D.keyCode===13)this.onClick()};
_.YF.Object.defineProperties(Dn.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.image)==null?void 0:Y.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.image){var Y;D=(Y=this.data)==null?void 0:Y.image;return D.previewCoordinates.top!==0||D.previewCoordinates.left!==0?(Y=this.computeTransform(D.previewCoordinates,D.naturalWidth,D.naturalHeight),D.naturalHeight>=D.naturalWidth?"width:inherit;transform:"+Y+";":"height:inherit;transform:"+Y+";"):D.naturalHeight>=D.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Dn.prototype.onKeyPress=Dn.prototype.onKeyPress;_.q([_.fr(".image-container"),_.x("design:type",HTMLElement)],Dn.prototype,"imageContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Dn.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.x("design:type",Object)],Dn.prototype,"selected",void 0);_.q([_.b("data.image"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dn.prototype,"thumbnailUrl",null);
_.q([_.b("data.image","data.image.previewCoordinates"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dn.prototype,"thumbnailStyle",null);_.q([_.Fv("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Dn.prototype,"onKeyPress",null);_.q([_.h({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Dn);
_.L(Dn,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(C7Y!==void 0)return C7Y;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return C7Y=D},{mode:2});var Ym=function(D,Y,R){R=R===void 0?!1:R;_.eE.call(this);var Z=this;this.dropZoneOverlay=new TB(D);this.selectOverlay=R?new jB(Y,"multiple_file",["image/*"]):new jB(Y,"single_file",["image/*"]);this.handler=new _.aR(this);_.WB(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(Y,"click",function(){Z.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.n(Ym,_.eE);Ym.prototype.onChange=function(D){var Y;(Y=D.files)!=null&&Y.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:D.files}))};var Ry=function(){var D=_.N.apply(this,arguments)||this;D.addImageErrorMessage="";D.errorMessage="";D.images=[];D.selectedImageIndex=0;D.modern=_.f("web_modern_buttons");D.maxNumImagesPerPost=_.ZH("max_num_images_per_post_web_ui");D.JSC$15574_imageId=0;return D};
_.n(Ry,_.N);_.u=Ry.prototype;_.u.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.MX(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.u.observeDragToReorder=function(){var D=this;if(this.showImagesPreview){var Y,R=VkL(_.uB.getInstance(),(Y=this.data)==null?void 0:Y.dragToReorderTooltip);_.yc.addLowPriorityJob(function(){_.Se(D.hostElement,R,D.thumbnailDragDropArea)})}};
_.u.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}}};
_.u.computeThumbnail=function(D){return(D==null?void 0:D.localImageSrc)||void 0};
_.u.onRendererstamperFinished=function(){_.COV(this.ytReorderableBehavior,_.aU(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.aU(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.u.handleDrop=function(D){var Y=D.currDragItem;if(Y!=null&&Y.data){D=this.images[this.selectedImageIndex];var R=Y.data.image,Z=this.images.indexOf(R)||0;Y=_.Uy(Y.parentNode.children,Y);this.images.splice(Z,1);this.images.splice(Y,0,R);this.images=[].concat(_.oK(this.images));this.selectedImageIndex=this.images.indexOf(D)}};
_.u.setUpImagePicker=function(){var D=this.imageUploadEndpoint;D&&D.imageValidationInfo&&(this.uploadManager=new gh(D.uploadUrl,D.channelId),this.initialPicker||(this.initialPicker=new Ym(this.dropzone,this.selectLink,!0),_.yu(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Ym(this.addImageButtonContainer,this.addImageSelectButton),_.yu(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.yu(this.JSC$15574_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.yu(this.JSC$15574_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.yu(_.aU(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.u.detached=function(){this.initialPicker&&(_.fg(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.fg(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.u.onInitialSelectImages=function(D){var Y=this;return _.C(function(R){return R.yield(Y.onSelectImages(D,!1),0)})};
_.u.onAddImage=function(D){var Y=this;return _.C(function(R){return R.yield(Y.onSelectImages(D,!0),0)})};
_.u.onSelectImages=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B;return _.C(function(O){switch(O.nextAddress){case 1:Y?R.addImageErrorMessage="":(R.images=[],R.errorMessage="");Z=D.detail;t=R.validateImages([].concat(_.oK(Z)));if(t!=="")return Y?R.addImageErrorMessage=t:R.errorMessage=t,O.return();X=[].concat(_.oK(Z)).map(function(Wo){return(new cx(R.maxAspectRatio,!1,!0)).transform(Wo)});
return O.yield(Promise.allSettled(X),2);case 2:M=O.yieldResult,W=_.a(M.entries()),z=W.next();case 3:if(z.done){O.jumpTo(5);break}I=z.value;F=_.a(I);G=F.next().value;V=F.next().value;e=G;r=V;if(r.status!=="fulfilled"){K=U=l=void 0;Y?R.addImageErrorMessage=_.OM((l=R.data)==null?void 0:l.invalidError):R.errorMessage=R.errorMessage===""?_.OM((U=R.data)==null?void 0:U.invalidError):_.OM((K=R.data)==null?void 0:K.multiFileError);O.jumpTo(4);break}H=r.value;H.cropped&&_.MX(R.hostElement,"yt-backstage-multi-image-cropped");
if(H.invalidAspectRatio){E=Q=c=void 0;Y?R.addImageErrorMessage=_.OM((c=R.data)==null?void 0:c.invalidAspectRatioError):R.errorMessage=R.errorMessage===""?_.OM((Q=R.data)==null?void 0:Q.invalidAspectRatioError):_.OM((E=R.data)==null?void 0:E.multiFileError);O.jumpTo(4);break}return O.yield(QO9(R.JSC$15574_imageId,D.detail[e],H.transformedData),8);case 8:B=O.yieldResult,R.images.push(B),R.JSC$15574_imageId++;case 4:z=W.next();O.jumpTo(3);break;case 5:if(R.errorMessage!==""||R.addImageErrorMessage!==
"")return O.return();Y?ixz(R.uploadManager,[R.images[R.images.length-1]]):ixz(R.uploadManager,R.images);R.images=[].concat(_.oK(R.images));R.selectedImageIndex=Y?Math.max(R.images.length-1,0):0;_.MX(R.hostElement,"yt-backstage-multi-image-select");_.V9(O)}})};
_.u.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.u.validateImages=function(D){if(D.length>this.maxNumImagesPerPost){var Y;return _.OM((Y=this.data)==null?void 0:Y.multiImageExceedMaxImageCountError)}var R=1048576*this.maxFileSizeMb;D=D.filter(function(X){return X.size>R}).length;
if(D===0)return"";var Z,t;D=D>1?(Z=this.data)==null?void 0:Z.multiFileError:(t=this.data)==null?void 0:t.fileSizeError;return _.OM(D)};
_.u.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.oK(this.images));this.selectedImageIndex=0};
_.u.repositionImage=function(D){this.images[this.selectedImageIndex].previewCoordinates=D.event_.detail;this.images=[].concat(_.oK(this.images))};
_.u.getAllUploadStatuses=function(){var D=this,Y,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return X.yield(D.uploadManager.getAllUploadStatuses(),2);Y=X.yieldResult;R=_.a(Y);for(Z=R.next();!Z.done;Z=R.next())if(t=Z.value,t.encryptedBlobId===void 0)return X.return(OxE(D.uploadManager));return X.return(Y)})};
_.u.hasImages=function(){return this.images.length>0};
_.u.cancel=function(){for(var D=this.uploadManager,Y=_.a(D.imagesUploadData),R=Y.next();!R.done;R=Y.next())D.cancel(R.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.MX(this.hostElement,"yt-backstage-multi-image-cancel")};
_.YF.Object.defineProperties(Ry.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.imageUploadEndpoint)==null?void 0:(Y=D.imageValidationInfo)==null?void 0:Y.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.imageUploadEndpoint)==null?void 0:(Y=D.imageValidationInfo)==null?void 0:Y.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var D,Y;if((D=this.data)==null?0:(Y=D.icon)==null?0:Y.iconType)return _.IT(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.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 D=this;return(this.images||[]).map(function(Y,R){return{renderer:{image:Y,selected:R===D.selectedImageIndex}}})}}});
Ry.prototype.setUpImagePicker=Ry.prototype.setUpImagePicker;Ry.prototype.onRendererstamperFinished=Ry.prototype.onRendererstamperFinished;Ry.prototype.observeDragToReorder=Ry.prototype.observeDragToReorder;Ry.prototype.observeAddImageError=Ry.prototype.observeAddImageError;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ry.prototype,"rendererStamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.WG1),_.x("design:type",Object)],Ry.prototype,"ytReorderableBehavior",void 0);_.q([_.fr("#dropzone"),_.x("design:type",HTMLElement)],Ry.prototype,"dropzone",void 0);_.q([_.fr("#select-link"),_.x("design:type",HTMLElement)],Ry.prototype,"selectLink",void 0);_.q([_.fr("#thumbnail-drag-drop-area"),_.x("design:type",HTMLElement)],Ry.prototype,"thumbnailDragDropArea",void 0);_.q([_.fr("#add-image-button-container"),_.x("design:type",HTMLElement)],Ry.prototype,"addImageButtonContainer",void 0);
_.q([_.fr("#add-image-button"),_.x("design:type",HTMLElement)],Ry.prototype,"addImageSelectButton",void 0);_.q([_.fr("#image-preview-container"),_.x("design:type",Object)],Ry.prototype,"JSC$15574_imagePreviewContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Ry.prototype,"addImageErrorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],Ry.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Ry.prototype,"errorMessage",void 0);
_.q([_.y(),_.x("design:type",Object)],Ry.prototype,"imageUploadEndpoint",void 0);_.q([_.y(),_.x("design:type",Array)],Ry.prototype,"images",void 0);_.q([_.y(),_.x("design:type",Ym)],Ry.prototype,"initialPicker",void 0);_.q([_.y(),_.x("design:type",Ym)],Ry.prototype,"addImagePicker",void 0);_.q([_.y(),_.x("design:type",gh)],Ry.prototype,"uploadManager",void 0);_.q([_.y(),_.x("design:type",Object)],Ry.prototype,"selectedImageIndex",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ry.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ry.prototype,"maxNumImagesPerPost",void 0);_.q([_.b("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],Ry.prototype,"maxAspectRatio",null);_.q([_.b("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],Ry.prototype,"maxFileSizeMb",null);
_.q([_.b("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ry.prototype,"dropIcon",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ry.prototype,"selectionCancel",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ry.prototype,"previewCancel",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ry.prototype,"dataForAddImageButton",null);
_.q([_.b("errorMessage"),_.x("design:type",String),_.x("design:paramtypes",[])],Ry.prototype,"dropzoneClass",null);_.q([_.b("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ry.prototype,"showImagesPreview",null);_.q([_.b("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ry.prototype,"containMaxImages",null);_.q([_.Gm("addImageErrorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ry.prototype,"observeAddImageError",null);
_.q([_.Gm("showImagesPreview"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ry.prototype,"observeDragToReorder",null);_.q([_.b("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ry.prototype,"selectedImageData",null);_.q([_.b("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],Ry.prototype,"thumbnailRenderers",null);
_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ry.prototype,"onRendererstamperFinished",null);_.q([_.Gm("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ry.prototype,"setUpImagePicker",null);_.q([_.h({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Ry);
_.L(Ry,"ytd-backstage-multi-image-select-renderer",function(){if(MAY!==void 0)return MAY;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return MAY=D},{mode:1});var WlL;var zeU;var S5E;var Zn=function(){var D=_.N.apply(this,arguments)||this;D.boundCaptureFocus=function(Y){D.onCaptureFocus(Y)};
return D};
_.n(Zn,_.N);_.u=Zn.prototype;_.u.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.u.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.u.onCaptureFocus=function(D){_.O$(D).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.u.getIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.u.onSelect=function(){var D;if((D=this.data)==null?0:D.onSelectCommand)if(_.f("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var Y;((Y=_.A(this.data.onSelectCommand.commandMetadata,_.GA))==null?0:Y.url)?_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.DH().resolve(_.Yw).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.YF.Object.defineProperties(Zn.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.OM(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}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Zn.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zn.prototype,"data",void 0);_.q([_.fr("#item"),_.x("design:type",HTMLElement)],Zn.prototype,"item",void 0);_.q([_.b("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],Zn.prototype,"label",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"value",null);_.q([_.h({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Zn);
_.L(Zn,"ytd-privacy-dropdown-item-renderer",function(){if(S5E!==void 0)return S5E;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return S5E=D},{mode:1});var ta=function(){var D=_.N.apply(this,arguments)||this;D.value="";D.label="";D.disabled=!1;return D};
_.n(ta,_.N);_.u=ta.prototype;_.u.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"}}}};
_.u.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.u.dataChanged=function(){this.reset()};
_.u.valueChanged=function(){var D;if(this.value&&(D=this.data)!=null&&D.entries){D=_.a(this.data.entries);for(var Y=D.next();!Y.done;Y=D.next())if((Y=this.getRendererForEntry(Y.value))&&this.getItemRendererValue(Y)===this.value){this.label=this.ytComponentBehavior.getSimpleString(Y.label);break}}};
_.u.setInitialLabel=function(){if(this.data&&this.data.entries)for(var D=_.a(this.data.entries),Y=D.next();!Y.done;Y=D.next())if(Y=this.getRendererForEntry(Y.value)){if(Y.isSelected){this.label=this.ytComponentBehavior.getSimpleString(Y.label);break}this.data.label&&(this.label=this.data.label)}};
_.u.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var D=_.a(this.data.entries),Y=D.next();!Y.done;Y=D.next()){Y=this.getRendererForEntry(Y.value);var R=void 0;if((R=Y)==null?0:R.isSelected)return this.getItemRendererValue(Y)||-1}return-1};
_.u.getItemRendererValue=function(D){return"stringValue"in D||"int32Value"in D?D.stringValue||D.int32Value||null:null};
_.u.getRendererForEntry=function(D){return D.dropdownItemRenderer||D.privacyDropdownItemRenderer||D.navigationDropdownItemRenderer||null};
_.u.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("value-changed",this.value))};
_.u.updateValueFromBinding=function(D){this.value=D.detail.value};
ta.prototype.valueChangedForBinding=ta.prototype.valueChangedForBinding;ta.prototype.valueChanged=ta.prototype.valueChanged;ta.prototype.dataChanged=ta.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ta.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],ta.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],ta.prototype,"value",void 0);_.q([_.y(),_.x("design:type",Object)],ta.prototype,"label",void 0);_.q([_.fr("#entries"),_.x("design:type",Object)],ta.prototype,"entries",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ta.prototype,"disabled",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ta.prototype,"dataChanged",null);
_.q([_.rd("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ta.prototype,"valueChanged",null);_.q([_.Gm("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ta.prototype,"valueChangedForBinding",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],ta);
_.L(ta,"ytd-flat-dropdown-renderer",function(){if(zeU!==void 0)return zeU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return zeU=D},{mode:1});var TUD;var sQ=function(){var D=_.N.apply(this,arguments)||this;D.quizOptions=[];D.explanationPlaceholderText="";D.optionPlaceholderText="";D.correctAnswerIndex=-1;D.isMarkAnswerTooltipShown=!1;D.timer=0;return D};
_.n(sQ,_.N);_.u=sQ.prototype;_.u.dataChanged=function(){this.optionPlaceholderText=_.OM(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.OM(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.u.onMarkCorrectAnswer=function(D){var Y,R=((Y=this.quizOptions[this.correctAnswerIndex])==null?void 0:Y.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[D.model.index]=Object.assign({},this.quizOptions[D.model.index],{explanationText:R,isCorrect:!0});this.correctAnswerIndex=D.model.index;this.quizOptions=[].concat(_.oK(this.quizOptions))};
_.u.updatePlaceholderTexts=function(){for(var D=!1,Y=[],R=0;R<this.quizOptions.length;R++){var Z=this.optionPlaceholderText+" "+(R+1),t=void 0;((t=this.quizOptions[R])==null?void 0:t.placeholderText)!==Z?(D=!0,Y.push(Object.assign({},this.quizOptions[R],{placeholderText:Z}))):Y.push(this.quizOptions[R])}D&&(this.quizOptions=Y);this.isValid()?_.MX(this.hostElement,"yt-commentbox-post-enable"):_.MX(this.hostElement,"yt-commentbox-post-disable")};
_.u.getSimpleString=function(D){return _.OM(D)};
_.u.createQuizOptions=function(D){var Y=[],R;D=(R=D==null?void 0:D.minQuizOptions)!=null?R:0;for(R=0;R<D;R++)Y.push(this.createQuizOption());return Y};
_.u.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.oK(this.quizOptions),[this.createQuizOption()]))};
_.u.onInput=function(){this.quizOptions=[].concat(_.oK(this.quizOptions))};
_.u.onExplanationInput=function(){_.MX(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.u.onRemoveQuizOption=function(D){this.quizOptions.splice(D.model.index,1);D.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:D.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.oK(this.quizOptions));this.quizOptions.length===0&&_.MX(this.hostElement,"yt-quiz-attachment-dismiss")};
_.u.updateHintRenderer=function(){var D=this;clearTimeout(this.timer);this.timer=setTimeout(function(){D.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.u.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var D=0,Y=0,R=_.a(this.quizOptions),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=void 0;if(((t=Z.optionText)==null?void 0:t.trim())!==""||Z.isCorrect){Z.isCorrect&&Y++;t=void 0;if(this.hasCustomOptionText&&((t=Z.optionText)==null?void 0:t.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;D++}}return D>=
Number(this.editorInfo.minQuizOptions)&&Y===1};
_.u.getPostCreateOptions=function(){for(var D=[],Y=_.a(this.quizOptions),R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;((Z=R.optionText)==null?void 0:Z.trim())!==""&&D.push({pollOption:{text:R.optionText,explanation:R.explanationText},isCorrect:R.isCorrect})}return D};
_.u.getExplanationText=function(){var D;return((D=this.quizOptions[this.correctAnswerIndex])==null?void 0:D.explanationText)||""};
_.u.maybeDisplayMarkAnswerEduToolTip=function(){var D,Y,R,Z,t,X,M;this.shouldShowMarkAnswerTooltip()&&((D=this.editorInfo)==null?0:(Y=D.markAnswerButton)==null?0:(R=Y.buttonRenderer)==null?0:(Z=R.hint)==null?0:(t=Z.hintRenderer)==null?0:(X=t.content)==null?0:(M=X.bubbleHintRenderer)==null?0:M.text)&&(_.uB.getInstance(),D=a8(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,(D==null?void 0:D.length)>0&&this.optionSelectors&&_.Vu(D[0],this.optionSelectors[0]))};
_.u.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var D=0,Y=_.a(this.quizOptions),R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;((Z=R.optionText)==null?void 0:Z.trim())!==""&&D++;if(R.isCorrect)return!1}return D<2?!1:!0};
_.u.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.u.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.u.updateOptionTextFromBinding=function(D){if(D.target){var Y=Array.from(_.aU(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(D.target);if(Y>=0){var R;this.quizOptions[Y].optionText=(R=D.detail.value)!=null?R:""}}};
_.YF.Object.defineProperties(sQ.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.editorInfo)==null?void 0:(Y=D.addOptionButton)==null?void 0:Y.buttonRenderer;R&&(R.style="STYLE_SUGGESTIVE",R.size="SIZE_SMALL",R.isDisabled=!this.isAllowedToAddOption);return(R==null?0:R.text)?R:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,Y;return this.quizOptions.length<((Y=(D=this.editorInfo)==null?void 0:D.maxQuizOptions)!=null?Y:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(D){var Y;return(Y=D.optionText)==null?void 0:Y.trim()})}}});
sQ.prototype.updatePlaceholderTexts=sQ.prototype.updatePlaceholderTexts;sQ.prototype.dataChanged=sQ.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],sQ.prototype,"editorInfo",void 0);_.q([_.y(),_.x("design:type",Array)],sQ.prototype,"quizOptions",void 0);_.q([_.y(),_.x("design:type",Object)],sQ.prototype,"explanationPlaceholderText",void 0);_.q([_.eN(".option-selector-button"),_.x("design:type",Array)],sQ.prototype,"optionSelectors",void 0);
_.q([_.rd("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sQ.prototype,"dataChanged",null);_.q([_.b("editorInfo","isAllowedToAddOption","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],sQ.prototype,"addAnswerButton",null);_.q([_.b("editorInfo","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],sQ.prototype,"isAllowedToAddOption",null);
_.q([_.rd("quizOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sQ.prototype,"updatePlaceholderTexts",null);_.q([_.b("quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],sQ.prototype,"hasCustomOptionText",null);_.q([_.h({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],sQ);
_.L(sQ,"ytd-backstage-quiz-editor-renderer",function(){if(TUD!==void 0)return TUD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return TUD=D},{mode:2});var jG4;var IJD=(V_.FIRSTDAYOFWEEK+1)%7;var FlU;var GeE=[],VA7=0,fJD=0;VA7=0;fJD=24;if(.25*(fJD-VA7)<0)FlU=[];else{for(var eez=VA7;eez<fJD;eez+=.25)GeE.push(eez);FlU=GeE}var AvV=FlU.map(function(D){D=D*60*60;return{secondsSinceMidnight:D,text:(new gL(7)).format(new Date(0,0,0,0,0,D))}});var nYz;var X6=function(){var D=_.N.apply(this,arguments)||this;D.skipNextOpenDialog=!1;D.errorMessage="";D.previousMonthLabel=_.fX("PREVIOUS_MONTH_LABEL");D.nextMonthLabel=_.fX("NEXT_MONTH_LABEL");return D};
_.n(X6,_.N);_.u=X6.prototype;_.u.attached=function(){var D=this,Y=new MutationObserver(function(){D.JSC$15617_calendarMain.scrollHeight>0&&(Y.disconnect(),D.calendarConfig&&D.calendarConfig.selectedDate&&D.scrollToDate())});
Y.observe(this.JSC$15617_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){Y.disconnect()},1E3)};
_.u.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.u.onDateTextChange=function(){if(this.calendarConfig){var D=this.validateDateText();D.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(D.details)):this.textbox.setAttribute("invalid","")}};
_.u.handleDayClick=function(D){D.model.day.date&&(this.commitDate(D.model.day.date),this.dialog.close())};
_.u.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var D=Rzy(this.calendarConfig.selectedDate,this.renderData);D!==void 0&&this.JSC$15617_calendarMain.scrollToIndex(D)}};
_.u.scrollToNextMonth=function(){this.JSC$15617_calendarMain.scrollToIndex(this.JSC$15617_calendarMain.firstVisibleIndex+1)};
_.u.scrollToPrevMonth=function(){this.JSC$15617_calendarMain.firstVisibleIndex===0&&this.JSC$15617_calendarMain.scrollTo(0,0);this.JSC$15617_calendarMain.scrollToIndex(this.JSC$15617_calendarMain.firstVisibleIndex-1)};
_.u.onFormSubmit=function(D){D.preventDefault();this.calendarConfig&&(D=this.validateDateText(),D.isValid&&(this.commitDate(D.details),this.dialog.close()))};
_.u.onEscOrClickingOutside=function(D){D=D.detail.path&&!!D.detail.path.length&&D.detail.path[0];if(D.classList.contains("ytd-calendar-date-picker")){D===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var Y=0;Y<this.dropdownButton.children.length;Y++)this.dropdownButton.children[Y]===D&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}D=this.textbox.value!==this.dateText;Y=this.validateDateText();D&&Y.isValid&&this.commitDate(Y.details);this.dialog.close();this.textbox.value=
this.dateText};
_.u.commitDate=function(D){this.calendarConfig&&(this.set("calendarConfig.selectedDate",D),_.MX(this.hostElement,"ytd-calendar-date-selected",D))};
_.u.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var D=this.textbox.value;var Y=new Date;D=(new ezy(2)).parse(D,Y,{validate:!0})===D.length?D_y(Y):void 0;if(!D)return this.errorMessage=_.fX("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};Y=this.calendarConfig.start;var R=this.calendarConfig.end;if(gul(D,Y))return this.errorMessage=_.fX("ENTER_DATE_OR_LATER",{allowed_date:cq9(Y)}),{isValid:!1,details:void 0};if(gul(R,D))return this.errorMessage=
_.fX("ENTER_DATE_OR_EARLIER",{allowed_date:cq9(R)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:D}};
_.YF.Object.defineProperties(X6.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?cq9(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var D=this.calendarConfig,Y=[],R=0;R<7;R++)Y.push(V_.NARROWWEEKDAYS[(R+IJD)%7]);R=[];for(var Z=new Date(D.start.year,D.start.month);Z.getFullYear()<D.end.year||Z.getFullYear()===D.end.year&&Z.getMonth()<=D.end.month;){var t=R,X=t.push,M=Z.getFullYear(),W=Z.getMonth(),z=D,I=void 0,F=[],G=Object.freeze({extraCssClass:"invisible",debugClass:""}),V=new Date(M,W),e=D_y(V);V=V.getDay();for(var r=D_y(new Date);e.month===
W;){V!==IJD&&I||(I=Array.from({length:7}).fill(G),F.push(I));var l={date:{year:M,month:W,day:e.day},extraCssClass:"",debugClass:""};z.selectedDate&&l.date&&EuM(l.date,z.selectedDate)&&(l.extraCssClass+=" selected");if(gul(e,z.start)||gul(z.end,e))l.extraCssClass+=" disabled";EuM(e,r)&&(l.extraCssClass+=" today");l.extraCssClass=l.extraCssClass.trim();I[(V-IJD+7)%7]=l;e=ilS(e);V=(V+1)%7}X.call(t,{weeks:F,monthLabel:V_.SHORTMONTHS[W]+" "+M,year:M,month:W,monthLabelExtraCssClass:F[0][2]===G?"shift-down-label":
""});Z.setMonth(Z.getMonth()+1)}return{months:R,daysOfWeekLabel:Y}}}}});
X6.prototype.onEscOrClickingOutside=X6.prototype.onEscOrClickingOutside;X6.prototype.scrollToDate=X6.prototype.scrollToDate;_.q([_.y(),_.x("design:type",Object)],X6.prototype,"calendarConfig",void 0);_.q([_.y(),_.x("design:type",Object)],X6.prototype,"skipNextOpenDialog",void 0);_.q([_.y(),_.x("design:type",Object)],X6.prototype,"errorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],X6.prototype,"previousMonthLabel",void 0);
_.q([_.y(),_.x("design:type",Object)],X6.prototype,"nextMonthLabel",void 0);_.q([_.fr("#textbox"),_.x("design:type",HTMLInputElement)],X6.prototype,"textbox",void 0);_.q([_.fr("#calendar-dialog"),_.x("design:type",Object)],X6.prototype,"dialog",void 0);_.q([_.fr("#calendar-main"),_.x("design:type",Object)],X6.prototype,"JSC$15617_calendarMain",void 0);_.q([_.fr("#date-picker"),_.x("design:type",HTMLElement)],X6.prototype,"dropdownButton",void 0);
_.q([_.b("calendarConfig.selectedDate"),_.x("design:type",String),_.x("design:paramtypes",[])],X6.prototype,"dateText",null);_.q([_.b("calendarConfig","calendarConfig.selectedDate"),_.x("design:type",Object),_.x("design:paramtypes",[])],X6.prototype,"renderData",null);_.q([_.Gm("renderData","calendarConfig.selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],X6.prototype,"scrollToDate",null);
_.q([_.Fv("iron-overlay-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X6.prototype,"onEscOrClickingOutside",null);_.q([_.Lr({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],X6);
_.L(X6,"ytd-calendar-date-picker",function(){if(nYz!==void 0)return nYz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return nYz=D},{mode:2});var rvb=_.fX("UTC_OFFSET_FORMAT",{utc_offset:(new gL("Z")).format(new Date)}),wnE=(new Date).getTimezoneOffset()*-60,$zE=new Date,vYV,oYY=EM($zE.getTimezoneOffset());vYV=ahE(CPL(oYY,$zE));var bTL=_.fX("LOCAL_TIME_GMT_LABEL",{gmt_text:vYV.replace("+0","+").replace("-0","-").replace(":00","")}),uv=function(){var D=_.N.apply(this,arguments)||this;D.selectedTimeIndex=0;D.selectedTimezoneIndex=0;D.timeOfDayOptions=AvV;return D};
_.n(uv,_.N);_.u=uv.prototype;_.u.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var D=Olj();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=D,this.selectedTimeIndex=0;else{var Y=Yab(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},D,{selectedDate:Y.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(R){return R.secondsSinceMidnight===Y.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.u.onDatePicked=function(D){this.selectedDate=D.detail};
_.u.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.MX(this.hostElement,"ytd-date-time-selection-cancelled")};
_.u.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var D=this.selectedDate;D=new Date(D.year,D.month,D.day);_.MX(this.hostElement,"ytd-date-time-selection-update",Math.floor(D.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+D.getTimezoneOffset()*60))}};
_.u.getTimezoneFormat=function(D){return D.localizedDisplayText?D.localizedDisplayText:_.fX("TIMEZONE_FORMAT",{utc_offset_text:""+D.localizedUtcOffset,city_name:""+D.localizedName})};
_.u.updateSelectedTimeIndexFromBinding=function(D){this.selectedTimeIndex=D.detail.value};
_.u.updateSelectedTimezoneIndexFromBinding=function(D){this.selectedTimezoneIndex=D.detail.value};
_.YF.Object.defineProperties(uv.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data.timezoneOptions;var Y={name:"Etc/Unknown",localizedName:_.fX("LOCAL_TIME_LABEL"),localizedUtcOffset:rvb,utcOffsetSec:""+wnE,localizedDisplayText:bTL};D?D.length&&D[0].name!==Y.name&&(D[0].localizedDisplayText||(Y.localizedDisplayText=""),D.unshift(Y)):D=[Y];return D}}},
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]}}});
uv.prototype.onDateTimeTimezoneChange=uv.prototype.onDateTimeTimezoneChange;uv.prototype.onDatePicked=uv.prototype.onDatePicked;uv.prototype.updateDefaultSelectedValue=uv.prototype.updateDefaultSelectedValue;_.q([_.y(),_.x("design:type",Object)],uv.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],uv.prototype,"calendarConfig",void 0);_.q([_.y(),_.x("design:type",Object)],uv.prototype,"selectedDate",void 0);_.q([_.y(),_.x("design:type",Object)],uv.prototype,"selectedTimeIndex",void 0);
_.q([_.y(),_.x("design:type",Object)],uv.prototype,"selectedTimezoneIndex",void 0);_.q([_.fr("#time-listbox"),_.x("design:type",Object)],uv.prototype,"timeListBox",void 0);_.q([_.fr("#timezone-listbox"),_.x("design:type",Object)],uv.prototype,"timezoneListBox",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],uv.prototype,"rendererStamperBehavior",void 0);_.q([_.b("data.timezoneOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],uv.prototype,"timeZones",null);
_.q([_.rd("data","timeZones"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uv.prototype,"updateDefaultSelectedValue",null);_.q([_.b("selectedTimezoneIndex","timeZones"),_.x("design:type",Object),_.x("design:paramtypes",[])],uv.prototype,"selectedTimezone",null);_.q([_.b("selectedTimeIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],uv.prototype,"selectedTime",null);
_.q([_.Fv("ytd-calendar-date-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],uv.prototype,"onDatePicked",null);_.q([_.Gm("selectedTimezone","selectedTime","selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uv.prototype,"onDateTimeTimezoneChange",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],uv);
_.L(uv,"ytd-date-time-picker-renderer",function(){if(jG4!==void 0)return jG4;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return jG4=D},{mode:1});var yv7;var ay=function(){var D=_.N.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.dismissTapHandler()};
D.dismissButtonOverrides={size:"XS"};return D};
_.n(ay,_.N);ay.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}}}}}};
ay.prototype.dismissTapHandler=function(){_.MX(this.hostElement,"yt-backstage-attachment-dismissed")};
ay.prototype.computeAttachmentType=function(D){return D?D.backstageImageRenderer?"image":D.videoRenderer?"video":"none":"none"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ay.prototype,"attachmentPreview",void 0);_.q([_.y(),_.x("design:type",Object)],ay.prototype,"dismissButton",void 0);_.q([_.y(),_.x("design:type",Object)],ay.prototype,"boundOnTapDismissButton",void 0);
_.q([_.y(),_.x("design:type",Object)],ay.prototype,"dismissButtonOverrides",void 0);_.q([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.x("design:type",String)],ay.prototype,"attachmentType",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],ay);
_.L(ay,"ytd-backstage-dismissable-attachment",function(){if(yv7!==void 0)return yv7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return yv7=D},{mode:1});var NUD;var MN=function(){var D=_.N.apply(this,arguments)||this;D.selectedVideoId=void 0;D.picker=void 0;D.dismissButtonOverrides={size:"XS"};D.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return D};
_.n(MN,_.N);_.u=MN.prototype;_.u.onServiceRequestCompleted=function(D){D.stopPropagation()};
_.u.handleAddVideoPreviewAction=function(D){D=this.get("addVideoPreviewAction",D);this.onGetVideoPreviewSuccess(D)};
_.u.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}}}}}};
_.u.onLaunchVideoPicker=function(D){var Y=this,R=_.OM(this.get("addVideoLinkAction.title",D)),Z=this.get("addVideoLinkAction.onePickHostId",D);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",D);Z&&(this.picker||(R=_.YKV(_.$fS(Z).setTitle(R).addView(ibD()).addView(dJD()),function(t){Y.onPickVideo(t)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",D)||R.addView("youtube"),this.picker=R.build()),this.picker.setVisible(!0))};
_.u.onPickVideo=function(D){if(D)if(D.action==="cancel")_.MX(this.hostElement,"yt-video-link-button-cancel");else if(D.action==="picked"){D=D.docs;if(!D||D.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(D=(D==null?0:D.length)?D[0]:void 0)?D.id:void 0;this.setVideoPreview()}};
_.u.setVideoPreview=function(){var D=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){D.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.u.onGetVideoPreviewSuccess=function(D){if(D&&D.videoPreview&&D.cancelButton)this.videoPreview=D.videoPreview,this.cancelButton=D.cancelButton,_.MX(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.u.onGetVideoPreviewError=function(){this.cancel()};
_.u.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.MX(this.hostElement,"yt-video-link-cancel")};
_.u.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
MN.prototype.onServiceRequestCompleted=MN.prototype.onServiceRequestCompleted;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],MN.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],MN.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],MN.prototype,"videoPreview",void 0);_.q([_.y(),_.x("design:type",Object)],MN.prototype,"cancelButton",void 0);_.q([_.y(),_.x("design:type",Object)],MN.prototype,"getVideoPreviewCommand",void 0);_.q([_.y(),_.x("design:type",Object)],MN.prototype,"dismissButtonOverrides",void 0);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],MN.prototype,"onServiceRequestCompleted",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],MN);
_.L(MN,"ytd-backstage-video-link-attachment",function(){if(NUD!==void 0)return NUD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return NUD=D},{mode:1});var lJE;var Jv4;var keU;var Cu=function(){return _.N.apply(this,arguments)||this};
_.n(Cu,_.N);Cu.prototype.dataChanged=function(){this.active=!1};
Cu.prototype.onTap=function(){_.MX(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Cu.prototype.identity=function(D){return D};
_.YF.Object.defineProperties(Cu.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;if((D=this.data)==null?0:(Y=D.image)==null?0:(R=Y.thumbnails)==null?0:(Z=R[0])==null?0:Z.url)return D=this.data.image.thumbnails[0].url,D.startsWith("data:image/svg+xml")?$7(D):_.Jf(D)}}});
Cu.prototype.dataChanged=Cu.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],Cu.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cu.prototype,"active",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cu.prototype,"dataChanged",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Cu.prototype,"imageSrc",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Cu);
_.L(Cu,"ytd-emoji-suggestion",function(){if(keU!==void 0)return keU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return keU=D},{mode:1});var UzU=/.*([:@#].*?)$/,Wd=function(){var D=_.N.apply(this,arguments)||this;D.suggestions=[];D.suggestionIndex=-1;D.JSC$15645_lastSuggestionRange=null;return D};
_.n(Wd,_.N);_.u=Wd.prototype;_.u.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.u.getSuggestions=function(D){var Y=[],R=zgE(this.emojiManager,D.substr(0,3));if(R)for(var Z in R)if(Z.toLocaleLowerCase().indexOf(D)===0){var t=R[Z];if(t&&t.emojiId){t=Qa(this.emojiManager,t.emojiId);var X=void 0,M=void 0,W=void 0,z=void 0,I=((X=t)==null?0:X.isCustomEmoji)?(M=t)==null?void 0:(W=M.shortcuts)==null?void 0:W[0]:(z=t)==null?void 0:z.emojiId;X=void 0;Y.push({suggestion:{image:(X=t)==null?void 0:X.image,alt:I,text:Z}});if(Y.length>=64)break}}return Y?Y.sort(function(F,G){return G.suggestion.text<
F.suggestion.text?-1:G.suggestion.text===F.suggestion.text?0:1}):null};
_.u.insertSuggestion=function(D){_.MX(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15645_lastSuggestionRange,text:D.alt});this.dropdown.opened=!1};
_.u.updateSuggestionsAtCaret=function(D){this.updateSuggestions(D,this.retrieveTextBeforeRange(D))};
_.u.offsetStartOfRangeBy=function(D,Y){D.startOffset>=Y&&D.setStart(D.startContainer,D.startOffset-Y)};
_.u.updateSuggestions=function(D,Y){var R=this;this.JSC$15645_lastSuggestionRange&&(this.JSC$15645_lastSuggestionRange.detach(),this.JSC$15645_lastSuggestionRange=null);if((Y=UzU.exec(Y))&&Y.length&&(Y=Y[Y.length-1].toLocaleLowerCase(),Y.length>2||Y===":_")&&(this.offsetStartOfRangeBy(D,Y.length),this.JSC$15645_lastSuggestionRange=D,(D=this.getSuggestions(Y))&&D.length)){this.suggestions=D;_.cy(this,function(){R.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.u.onKeyDown=function(D){if(this.dropdown.opened)switch(D.key){case "Escape":this.dropdown.opened=!1;D.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);D.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.u.onKeyUp=function(D,Y){switch(D.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(Y);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(Y)}};
_.u.onKeyPress=function(D){D.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),D.preventDefault())};
_.u.changeSuggestionIndex=function(D){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(D+this.suggestions.length)%this.suggestions.length,D=this.dropdownContent.children[this.suggestionIndex],D.active=!0,this.dropdownContent.scrollTop=D.offsetTop)};
_.u.retrieveTextBeforeRange=function(D){var Y=D.startContainer;return Y&&Y.nodeType===Node.TEXT_NODE?Y.textContent.substr(0,D.startOffset):""};
Wd.prototype.onKeyPress=Wd.prototype.onKeyPress;Wd.prototype.onKeyUp=Wd.prototype.onKeyUp;Wd.prototype.onKeyDown=Wd.prototype.onKeyDown;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Array)],Wd.prototype,"suggestions",void 0);_.q([_.y(),_.x("design:type",_.xt)],Wd.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",Number)],Wd.prototype,"verticalSuggestionsOffset",void 0);
_.q([_.fr("#dropdown"),_.x("design:type",Object)],Wd.prototype,"dropdown",void 0);_.q([_.fr("#dropdown-content"),_.x("design:type",HTMLDivElement)],Wd.prototype,"dropdownContent",void 0);_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],Wd.prototype,"onKeyDown",null);_.q([_.Fv("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent,Range]),_.x("design:returntype")],Wd.prototype,"onKeyUp",null);
_.q([_.Fv("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],Wd.prototype,"onKeyPress",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-emoji-input"})],Wd);
_.L(Wd,"ytd-emoji-input",function(){if(Jv4!==void 0)return Jv4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Jv4=D},{mode:2});var Kl1;var z9=function(){var D=_.N.apply(this,arguments)||this;D.hasMaxOptions=!1;return D};
_.n(z9,_.N);_.u=z9.prototype;_.u.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.u.setPrefilledChoices=function(D){var Y=this;this.set("pollOptions",[]);var R;for(R=0;R<Math.min(D.length,this.data.maxPollOptions);R++)this.push("pollOptions",D[R].substring(0,this.data.maxPollOptionChars));for(;R<this.data.minPollOptions;R++)this.push("pollOptions","");this.hasMaxOptions=R>=this.data.maxPollOptions;_.cy(this,function(){for(var Z=Y.pollOptions,t=_.aU(Y.hostElement).querySelectorAll(".poll-option-input"),X=0;X<t.length;X++)t[X].value=Z[X]})};
_.u.focusChanged=function(){_.SN(this.hostElement)};
_.u.onInput=function(){var D=this;_.pr(this,"onInput",function(){D.isValid()?_.MX(D.hostElement,"yt-commentbox-post-enable"):_.MX(D.hostElement,"yt-commentbox-post-disable")},300)};
_.u.setPollOptions=function(){var D=[],Y,R=((Y=this.data)==null?0:Y.minPollOptions)?this.data.minPollOptions:0;for(Y=0;Y<R;Y++)D.push("");return D};
_.u.addPollOption=function(){var D=this;_.MX(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.yc.addLowPriorityJob(function(){var Y;(Y=_.aU(D.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||Y.focus()})};
_.u.onRemovePollOption=function(D){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.MX(this.hostElement,"yt-poll-attachment-dismiss")):(D=this.repeat.indexForElement(D.target.parentNode),D!==null&&(this.splice("pollOptions",D,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.MX(this.hostElement,"yt-commentbox-post-enable"))))};
_.u.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.u.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var D=0,Y=this.pollOptions.length;D<Y;D++)if(this.pollOptions[D].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.u.getPollOptions=function(){return this.pollOptions};
_.u.setPollOptionsFromInputs=function(){for(var D=_.aU(this.hostElement).querySelectorAll(".poll-option-input"),Y=0;Y<D.length;Y++)this.pollOptions[Y]=D[Y].value.trim()};
_.u.clearPollOptions=function(){var D=_.aU(this.hostElement).querySelectorAll(".poll-option-input");D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())Y.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.u.getSimpleString=function(D){return _.OM(D)};
_.u.updateValueFromBinding=function(D){if(D.target&&this.pollOptions){var Y=Array.from(_.aU(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(D.target);if(Y>=0){var R;this.pollOptions[Y]=(R=D.detail.value)!=null?R:"";this.notifyPath("pollOptions."+Y)}}};
z9.prototype.dataChanged=z9.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],z9.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Array)],z9.prototype,"pollOptions",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],z9.prototype,"hasMaxOptions",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],z9.prototype,"enableCreationBox",void 0);
_.q([_.fr("#repeat"),_.x("design:type",ky)],z9.prototype,"repeat",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z9.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-poll-attachment"})],z9);
_.L(z9,"ytd-poll-attachment",function(){if(Kl1!==void 0)return Kl1;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Kl1=D},{mode:2});var hez;var LlE;var mzE;var q5_;var S4=function(){return _.N.apply(this,arguments)||this};
_.n(S4,_.N);_.YF.Object.defineProperties(S4.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],S4.prototype,"rendererBehaviors",void 0);_.q([_.y(),_.x("design:type",Object)],S4.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],S4.prototype,"focused",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("focused"),_.x("design:type",Object),_.x("design:paramtypes",[])],S4.prototype,"ariaSelected",null);_.q([_.Lr({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],S4);
_.L(S4,"yt-user-mention-suggestion-renderer",function(){if(q5_===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;mzE===void 0&&(mzE=document.createElement("template"));var Z=mzE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);q5_=D}D=q5_;return D},{mode:2});var HT4;var xzz;var T9=function(){var D=_.N.apply(this,arguments)||this;D.focusedSuggestionIndex=-1;return D};
_.n(T9,_.N);_.u=T9.prototype;_.u.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.u.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.u.setFocusedSuggestionIndex=function(D){!this.data||!this.data.suggestions||D<0||D>=this.data.suggestions.length||(this.focusedSuggestionIndex=D,D=this.getSuggestionId(D),this._setFocusedSuggestionId(D))};
_.u.advanceSuggestion=function(D){this.focusedSuggestionIndex===-1||D!==-1&&D!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+D),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.u.ensureSuggestionVisible=function(D){D=this.getSuggestionId(D);D=_.aU(this.hostElement).querySelector("[id="+D+"]");D!=null&&(D.offsetTop<this.hostElement.scrollTop?D.scrollIntoView(!0):D.offsetTop+D.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&D.scrollIntoView(!1))};
_.u.getSuggestionId=function(D){return"user-mention-suggestion-"+D};
_.u.onSuggestionTap=function(D){var Y=_.A(D.model.item,siz);this.ytRendererBehavior.logExplicitClick(Y);_.MX(this.hostElement,"yt-user-mention-suggestion-selected",{data:Y,index:D.model.index})};
_.u.onSuggestionMouseMove=function(D){D.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(D.model.index)};
_.u.isSuggestionFocused=function(D,Y){return D===Y};
_.u.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.u.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("focused-suggestion-id-changed",this.focusedSuggestionId))};
T9.prototype.focusedSuggestionIdChangedForBinding=T9.prototype.focusedSuggestionIdChangedForBinding;T9.prototype.onDomChange=T9.prototype.onDomChange;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],T9.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],T9.prototype,"focusedSuggestionIndex",void 0);_.q([_.y({readOnly:!0}),_.x("design:type",String)],T9.prototype,"focusedSuggestionId",void 0);
_.q([_.Fv("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],T9.prototype,"onDomChange",null);_.q([_.Gm("focusedSuggestionId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T9.prototype,"focusedSuggestionIdChangedForBinding",null);_.q([_.Lr({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],T9);
_.L(T9,"yt-user-mention-suggestions-dropdown",function(){if(xzz===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;HT4===void 0&&(HT4=document.createElement("template"));var Z=HT4;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);xzz=D}D=xzz;return D},{mode:2});var j4=function(){var D=_.N.apply(this,arguments)||this;D.suggestionsResponse=null;D.activeMention=null;D.selectionChangeListener=D.onSelectionChange.bind(D);D.handlesEnabled=_.f("enable_handles_in_mention_suggest_posts");D.handlesInMentionSuggestionsEnabled=_.f("handles_in_mention_suggest_posts");D.zeroPrefixMentionSuggestionEnabled=_.f("enable_zero_prefix_mention_suggestion_web");D.pendingQuery=null;D.flowNonce=null;return D};
_.n(j4,_.N);_.u=j4.prototype;_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.u.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.u.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.u.hasSuggestions=function(D){return!!(D&&D.suggestions&&D.suggestions.length>0)};
_.u.onInput=function(){var D=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var Y=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),R=this.activeMention.JSC$11256_getText().slice(-1)===" ",Z=this.activeMention.JSC$11256_getText().slice(-2,-1)===" ",t="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11256_getText().slice(-2,
-1))>=0;t=this.zeroPrefixMentionSuggestionEnabled&&t;if(this.activeMention.isCollapsed()||(Y||Z||t)&&R)this.cancelActiveMention();else{var X=this.activeMention.JSC$11256_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.pr(this,"requestSuggestions",function(){D.requestSuggestions(X)},100)}}}};
_.u.onServiceRequestSent=function(D){D.stopPropagation()};
_.u.onServiceRequestCompleted=function(D){D.stopPropagation();D=D.detail.data;D.query&&(!this.pendingQuery||this.pendingQuery!==D.query)||!this.zeroPrefixMentionSuggestionEnabled&&D.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=D,this.hasSuggestions(D)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.u.onServiceRequestError=function(D){D.stopPropagation()};
_.u.onUserMentionSuggestionSelected=function(D){this.selectSuggestion(D.detail.data,D.detail.index)};
_.u.onSelectionChange=function(){if(this.activeMention){var D=_.Tb(),Y=this.activeMention.JSC$11256_containsRange(D);D=D&&this.containsHelper(this.dropdown,D.getContainer());Y||D||this.cancelActiveMention()}};
_.u.containsHelper=function(D,Y){var R;if(((R=window.ShadyDOM)==null?void 0:R.noPatch)===!0)return D.contains(Y);for(;Y;){if(Y===D)return!0;Y=Y instanceof ShadowRoot?Y.host:Y.parentNode}return!1};
_.u.maybeStartSuggest=function(){var D=_.Tb();if(D&&D.isCollapsed()){var Y=D.JSC$11256_getStartNode(),R=D.JSC$11256_getStartOffset();if(Y instanceof Text&&!(R<1)){var Z=Y.textContent;!(Z=Z&&Z.charAt(R-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Z)<0||(this.activeMention=_.mw(Y,R-1,D.JSC$11256_getEndNode(),D.JSC$11256_getEndOffset()),this.flowNonce=J5(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.u.updateActiveMention=function(){if(this.activeMention){var D=_.Tb();D&&D.isCollapsed()&&(this.activeMention=_.mw(this.activeMention.JSC$11256_getStartNode(),this.activeMention.JSC$11256_getStartOffset(),D.JSC$11256_getEndNode(),D.JSC$11256_getEndOffset()))}};
_.u.requestSuggestions=function(D){if(this.activeMention){var Y={suggestions_query:D};this.pendingQuery=D;_.zA(this.hostElement,[this.suggestionsEndpoint,Y])}};
_.u.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()};
_.u.focusPreviousSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),D.preventDefault())};
_.u.focusNextSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),D.preventDefault())};
_.u.selectFocusedSuggestion=function(D){if(this.hasSuggestions(this.suggestionsResponse)){var Y=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.A(Y,siz)&&(this.selectSuggestion(_.A(Y,siz),this.dropdown.focusedSuggestionIndex),D.preventDefault())}};
_.u.selectSuggestion=function(D,Y){if(D){var R=this.activeMention;if(R){var Z=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&D.handle?_.kr(Z,"\u00a0\u2068@"+D.handle+"\u2069\u00a0"):this.handlesEnabled?_.kr(Z,"\u00a0"+D.displayName+"\u00a0"):_.kr(Z,"\u00a0@"+D.displayName+"\u00a0");_.L$(Z,"/channel/"+D.channelId);Z.classList.add("yt-formatted-string","yt-simple-endpoint");Z.setAttribute("spellcheck","false");R.isCollapsed()||R.JSC$11256_removeContents();R.insertNode(Z,!0);D=
document.createTextNode(" ");Z.parentNode.insertBefore(D,Z.nextSibling);window.getSelection().collapse(D,1);Y={suggestionSelected:{suggestionIndex:Y}};if(this.zeroPrefixMentionSuggestionEnabled){var t;Y.suggestionSelected.isZeroPrefix=((t=this.suggestionsResponse)==null?void 0:t.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",Y);this.cancelActiveMention();_.MX(this.hostElement,"yt-mention-inserted")}}};
_.u.getPositionTarget=function(D){return D&&D.getBrowserRangeObject()};
_.u.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.u.onFocusedSuggestionIdChanged=function(D){var Y=_.y8y(this.hostElement)[0];Y&&(D.detail.value?Y.setAttribute("aria-activedescendant",D.detail.value):Y.removeAttribute("aria-activedescendant"))};
_.u.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.u.logGELEvent=function(D,Y){D={eventType:D,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};Y&&(D=Object.assign(D,Y));_.bo("userMentionAutoCompleteBoxEvent",D)};
j4.prototype.onDomChange=j4.prototype.onDomChange;j4.prototype.onUserMentionSuggestionSelected=j4.prototype.onUserMentionSuggestionSelected;j4.prototype.onServiceRequestError=j4.prototype.onServiceRequestError;j4.prototype.onServiceRequestCompleted=j4.prototype.onServiceRequestCompleted;j4.prototype.onServiceRequestSent=j4.prototype.onServiceRequestSent;j4.prototype.onInput=j4.prototype.onInput;_.q([_.v(_.nJ),_.x("design:type",Object)],j4.prototype,"ironA11yKeysBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],j4.prototype,"suggestionsEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],j4.prototype,"suggestionsResponse",void 0);_.q([_.y(),_.x("design:type",Object)],j4.prototype,"activeMention",void 0);_.q([_.fr("#dropdown"),_.x("design:type",Object)],j4.prototype,"dropdown",void 0);_.q([_.fr("#iron-dropdown"),_.x("design:type",Object)],j4.prototype,"ironDropdown",void 0);
_.q([_.Fv("input"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],j4.prototype,"onInput",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j4.prototype,"onServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j4.prototype,"onServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j4.prototype,"onServiceRequestError",null);_.q([_.Fv("yt-user-mention-suggestion-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j4.prototype,"onUserMentionSuggestionSelected",null);
_.q([_.Fv("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j4.prototype,"onDomChange",null);_.q([_.Lr({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],j4);
_.L(j4,"yt-user-mention-autosuggest-input",function(){if(LlE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;hez===void 0&&(hez=document.createElement("template"));var Z=hez;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);LlE=D}D=LlE;return D},{mode:2});var Iy=null;
_.Jj({is:"ytd-commentbox",_template:function(){if(lJE!==void 0)return lJE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return lJE=D},
behaviors:[_.acl.YtHostElementBehavior,_.nJ,_.Va.YtActionHandlerBehavior,_.Bs.YtComponentBehavior,_.a$.YtRendererstamperBehavior,_.Nv_.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(D,Y){return _.jC(D.entities,"aadcGuidelinesStateEntityPayload",Y)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(D,Y){return _.jC(D.entities,"commentboxStateEntity",Y)},
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 _.BM}},
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:_.f("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.f("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",_.jN(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(D){this.fire(D?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(D){this.set("submitButtonDisabled",void 0);this.clear();D&&this.computeIsEmojiButtonDisplayed_(D)&&(D=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&D.updateEmojiCategories()},
observePrefilledImage_:function(D,Y,R){this.isValidPrefilledImage_(D,Y,R)&&(this.prefilledAttachment_="image",this.prefilledImageData_=Y,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(D,Y){this.isValidPrefilledVideo_(D,Y)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(D){D&&D.pollData&&D.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(D.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.jR();this.focus()},
detached:function(){document.removeEventListener("tap",_.jN(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(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var Y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Y,D);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var D=_.Tb();if(D){D=D.getBrowserRangeObject();for(var Y=D.commonAncestorContainer;Y;){if(Y===this.getEditableTextArea_())return D;Y=Y.parentNode}}D=this.getEditableTextArea_();D=_.LD(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,Y,R){(Y=this.emojiManager.createDocumentFragment(Y,!0,!1,R===void 0?!0:R))&&Y.childNodes.length!==0&&(D.collapsed||D.deleteContents(),R=Y.lastChild,D.insertNode(Y),_.bnE(R).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var D=_.Tb();if(D){var Y=D.JSC$11256_getStartNode(),R=D.JSC$11256_getEndNode();if(ZQM(Y)&&ZQM(R)){var Z=D.JSC$11256_getStartOffset(),t;if(_.TX&&Y.nodeType===Node.ELEMENT_NODE&&(t=_.oE1(Y)))_.LD(t,0).select();else{t=Wl(Y)?Y:_.K0(Y,Wl);var X=Wl(R)?R:_.K0(R,Wl);if(t||X)if(D.isCollapsed()){if(Y.nodeType===Node.TEXT_NODE){D=!0;Z===Y.length&&(D=!1);if(Iy==="end"||Iy==="right")D=!1;Y=Y.parentNode;D=[].concat(_.oK(Y.parentNode.childNodes)).indexOf(Y)+(D?0:1);_.LD(Y.parentNode,
D).select()}}else t?t.previousSibling&&t.previousSibling.length>0?_.mw(R,D.JSC$11256_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(Y=document.createTextNode("\u200b"),t.parentNode.insertBefore(Y,t),_.mw(R,D.JSC$11256_getEndOffset(),Y,0).select()):X&&(X.nextSibling&&X.nextSibling.length>0?_.mw(Y,D.JSC$11256_getStartOffset(),X.nextSibling,1).select():(R=document.createTextNode("\u200b"),X.parentNode.insertBefore(R,X.nextSibling),_.mw(Y,D.JSC$11256_getStartOffset(),R,R.length).select()));
Iy=null}}else Iy=null}else Iy=null},
leftKeyPressed_:function(){Iy="left"},
rightKeyPressed_:function(){Iy="right"},
endKeyPressed_:function(){Iy="end"},
maybeDeleteChip_:function(){var D=M1U(!0);if(D){var Y=_.Tb(),R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();_.Jw(R,Y,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=M1U(!1);if(D){var Y=_.Tb(),R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();_.Jw(R,Y,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var Y=_.Tb();if(Y.isCollapsed()){var R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();var Z=CGU(R,Y,!0);Z&&(_.Jw(R,Y,Z,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var Y=_.Tb();if(Y.isCollapsed()){var R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();var Z=CGU(R,Y,!1);Z&&(_.Jw(R,Y,Z,Z.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onTap_:function(D){if(!D.defaultPrevented&&(D.currentTarget.tagName==="YTD-COMMENTBOX"&&Wl(D.target)&&D.preventDefault(),this.isEmojiPickerDisplayed)){var Y=this.$$("#emojis"),R=this.$$("#emoji-button"),Z=this.getEditableTextArea_();if((D=D.path?D.path:D.composedPath&&D.composedPath())&&!D.includes(Y)&&!D.includes(Z)&&!D.includes(R))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(D,Y,R){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Y!==void 0&&Y.encryptedBlobId!==null&&Y.sourceExternalVideoId!==null&&R!==void 0&&R.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(D,Y){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!Y&&!!Y.videoRenderer&&!!Y.videoRenderer.videoId},
isValidPrefilledAttachment_:function(D,Y,R){return this.isValidPrefilledImage_(D,Y,R)||this.isValidPrefilledVideo_(D,R)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.f("enable_multi_image_post_creation")){var D=this.$$("ytd-backstage-multi-image-select-renderer");D&&D.hasImages()&&D.cancel()}else(D=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&D.cancel();(D=this.$["poll-attachment"])&&this.hasPoll_&&D.clearPollOptions();(D=this.$["image-poll-attachment"])&&this.hasImagePoll_&&D.resetPollOptions();(D=this.$["quiz-attachment"])&&this.hasQuiz_&&D.resetQuizOptions();
(D=this.$["video-link-attachment"])&&this.hasVideo_&&D.cancel();(D=this.$["access-restrictions-selector"].firstElementChild)&&D.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 _.aU(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.aU(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(D,Y){D=sCi(D,this.emojiManager,Y).cloneNode(!0);for(Y=D.firstChild;Y;)if(Y.nodeType!==1)Y=Y.nextSibling;else switch(Y.tagName){case "BR":var R=_.og();_.K7U(R,Y);Y=R.nextSibling;break;case "DIV":(R=Y.lastChild)&&Y.nextSibling&&_.l3(_.og(),R);Y.previousSibling&&(Y.previousSibling.nodeType===1||Y.previousSibling.nodeType===3&&!Y.previousSibling.textContent.endsWith("\n"))&&_.Nq(_.og(),Y);R&&R.nodeName==="BR"&&_.F_(R);R=Y;Y.hasChildNodes()?(Y=Y.firstChild,
_.hY4(R)):(Y=Y.nextSibling,_.F_(R));break;default:Y=Y.nextSibling}return WR9(D)},
onAddImageError_:function(D){D.stopPropagation();this.errorMessage_=_.i0(D.detail)},
setTextAreaValue_:function(D){D||(D="");var Y=this.getEditableFormattedString_();Y.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});Y.text=D},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Iy=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.LD(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.JQ("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),Y=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",Y)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var D;return CRS((D=this.$["quiz-attachment"])==null?void 0:D.getExplanationText())||CRS(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var Y=this.getInputRange_();Y&&(D=this.emojiInput.retrieveTextBeforeRange(Y))}this.insertText_(D,!0);this.updateCharCount_();this.setSubmitButton_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
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(D){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(D)},
onPasteEmoji_:function(D){D.preventDefault();D.stopImmediatePropagation();D=D.clipboardData.getData("text/plain");this.insertText_(D,!1,!1)},
insertText_:function(D,Y,R){Y=Y===void 0?!1:Y;R=R===void 0?!0:R;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(Y&&this.emojiInput.offsetStartOfRangeBy(Z,D.length),this.insertTextWithEmojis_(Z,D,R),t1b(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,D),this.updateSuggestionOffset_(Z)))}},
setSubmitButton_:function(){if(this.data){var D=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",Y=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(D||Y){var R=this.getTextAreaValue().trim();Y=R===this.previousText_;R=!R||this.aboveCharLimit_;D&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(R=this.aboveCharLimit_);this.submitButtonDisabled=
Y||R||!this.getTextLength();D&&_.f("enable_post_scheduling")&&(this.submitButtonDisabled=Y&&!this.scheduledPublishTimeSec_||R)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.OM,computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computeFooterMessageClass_:function(D,Y){return Y?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(D,Y){return Y?Y:D},
computeFooterMessageHidden_:function(D,Y){return!Y&&!D},
computePlaceholderText_:function(D,Y,R){return(R==="video"||R==="image")&&(D==null?0:D.prefilledPlaceholderText)?D==null?void 0:D.prefilledPlaceholderText:Y==="poll"||Y==="image-poll"?D==null?void 0:D.pollPostPlaceholderText:Y==="quiz"?D==null?void 0:D.quizPostPlaceholderText:Y==="image"?D==null?void 0:D.imagePostPlaceholderText:D==null?void 0:D.placeholderText},
computeHideAttachmentButtons_:function(D,Y,R,Z){return D===void 0?!1:Z&&this.getSimpleString(Z)===this.getSimpleString(D.rateLimitErrorMessage)?!0:Y!=="none"||R!=="none"||!D.videoLinkButton&&!D.pollButton&&!D.imagePollButton&&!D.quizButton&&!D.imageButton},
computeHideDismissableAttachment_:function(D){return D!=="image"&&D!=="video"},
computeHasVideo_:function(D){return D==="video"},
computeHasImage_:function(D){return D==="image"},
computeHasPoll_:function(D){return D==="poll"},
computeHasImagePoll_:function(D){return D==="image-poll"},
computeHasQuiz_:function(D){return D==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(D){return D&&D.backstageAttachment?D.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!D.backstageAttachment.quizRenderer&&!D.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(D){if(this.isValidPrefilledAttachment_(D.purpose,D.prefilledImageData,D.backstageAttachment))return D.backstageAttachment},
computeEditAttachment_:function(D){if(this.computePrefilledContent_(D)===void 0)return D.backstageAttachment},
computeAuthorThumbnailDimension_:function(D,Y){return D&&!Y?24:40},
computeImageUploadEndpoint_:function(D){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",D)},
computeRateLimitErrorCommands_:function(D){var Y,R;return D==null?void 0:(Y=D.advancedTierFeatures)==null?void 0:(R=Y.rateLimit)==null?void 0:R.rateLimitCommands},
computeIsBackstageComment_:function(D){return!(!D||D!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)||this.get("replyButton.buttonRenderer.serviceEndpoint",D)||this.get("postButton.buttonRenderer.serviceEndpoint",D)},
computeSubmitButtonOverride:function(){if(_.f("web_modern_buttons")){var D,Y;return{segmentedPosition:this.dropdownSchedulePanel_||!((D=this.data)==null?0:(Y=D.postOptionsMenu)==null?0:Y.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.f("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(D,Y){D=this.get("submitButton.buttonRenderer",D)||this.get("replyButton.buttonRenderer",D)||this.get("postButton.buttonRenderer",D);Y&&(D=Y);D&&(D=Object.assign({},D),D.serviceEndpoint=void 0,D.isDisabled=this.submitButtonDisabled);return D},
computeHasExternalLinksAccess_:function(D){if(_.f("enable_rfa_external_links")){var Y,R,Z;return(Z=D==null?void 0:(Y=D.advancedTierFeatures)==null?void 0:(R=Y.externalLinks)==null?void 0:R.allowExternalLinks)!=null?Z:!0}return!0},
computeIsEmojiButtonDisplayed_:function(D){return D.emojiButton&&D.emojiPicker&&D.emojiPicker.emojiPickerRenderer&&D.emojiPicker.emojiPickerRenderer.categories?D.emojiPicker.emojiPickerRenderer.categories.find(function(Y){return Y.emojiPickerCategoryRenderer?Y.emojiPickerCategoryRenderer.emojiIds&&Y.emojiPickerCategoryRenderer.emojiIds.length>0:Y.emojiPickerUpsellCategoryRenderer?Y.emojiPickerUpsellCategoryRenderer.emojis&&Y.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(D){return D.charLimit?D.charLimit:null},
computeDropdownSchedulingPanel_:function(D,Y){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Y)return Y},
computeInlineSchedulingPanel_:function(D,Y){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Y)return Y},
computeHideAuthorThumbnail_:function(D,Y){return D||this.computeUseIdentityChip_(Y)},
computeHideIdentityChipRenderer_:function(D,Y){return D||!this.computeUseIdentityChip_(Y)},
computeUseIdentityChip_:function(D){return!!D&&!!D.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(D){var Y,R,Z,t;(D==null?0:(Y=D.detail)==null?0:(R=Y.endpoint)==null?0:R.ypcGetOffersEndpoint)||(D==null?0:(Z=D.detail)==null?0:(t=Z.endpoint)==null?0:t.ypcOffersEndpoint)?(D.stopPropagation(),_.zA(this,[D.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(D.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(D){this.addedAttachment="video";this.selectedVideoId_=D.detail.videoId},
commentboxStateEntityChanged_:function(D){var Y=this;(D==null?void 0:D.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(D==null?void 0:D.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){Y.focus()})},
onYtServiceRequestSent_:function(D,Y){if(Y.actions)for(D=_.a(Y.actions),Y=D.next();!Y.done;Y=D.next())Y.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(D){this.isLoading=!1;var Y=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",D),R,Z,t,X=D==null?void 0:(R=D.detail)==null?void 0:(Z=R.data)==null?void 0:(t=Z.actionResult)==null?void 0:t.commentboxStateEntityKey;if(Y)this.errorMessage_=Y;else if(X){var M;this.dismissData_=D==null?void 0:(M=D.detail)==null?void 0:M.data;this.commentboxStateKey_=X}else{this.clear();var W;this.fire("yt-commentbox-dismiss",D==null?void 0:(W=D.detail)==
null?void 0:W.data)}},
onYtServiceRequestError_:function(D){D.stopPropagation();this.isLoading=!1;var Y,R;if(((Y=this.data)==null?void 0:Y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((R=this.data)==null?void 0:R.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(Y=this.get("detail.error.args",D)||[],Y.length>1&&Y[1].message){this.handlePostsServiceRequestError_(Y[1].message);return}(D=this.get("detail.error.message",D))?this.errorMessage_=this.data.errorMessage||_.i0(D):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(D){if(_.f("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var Y=_.a(this.rateLimitErrorCommands),R=Y.next();!R.done;R=Y.next())if(R=R.value,R.errorLabel===D){_.Vu(R.command,this.hostElement);return}this.errorMessage_=_.i0(D)},
submitIfNotBackstagePost_:function(D){if(!this.isBackstagePost)this.onSubmit_(D)},
onSubmit_:function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U;return _.C(function(K){switch(K.nextAddress){case 1:D.stopPropagation();if(!Y.serviceEndpoint||!Y.isValidInput_())return K.return();if(Y.shouldShowPostAadcNotice_())return Y.showPostAadcNotice_(),K.return();if(Y.shouldShowCommentAadcNotice_())return Y.showCommentAadcNotice_(),K.return();if(!(Y.$$("ytd-backstage-multi-image-select-renderer")&&Y.hasImage_&&_.f("enable_multi_image_post_creation"))){K.jumpTo(2);break}R=Y.$$("ytd-backstage-multi-image-select-renderer");
return K.yield(R.getAllUploadStatuses(),3);case 3:Z=K.yieldResult;if(!Z)return K.return();t=_.a(Z);for(X=t.next();!X.done;X=t.next())if(M=X.value,M.encryptedBlobId===void 0)return Y.isLoading=!1,z=W=void 0,Y.errorMessage_=(z=(W=Y.imageUploadEndpoint_)==null?void 0:W.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?z:null,K.return();return K.return(Y.submitForm_(void 0,void 0,void 0,void 0,R.images,Y.taggedVideoId_));case 2:if(!Y.hasImagePoll_||!Y.$["image-poll-attachment"]){K.jumpTo(4);
break}return K.yield(Y.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:I=K.yieldResult;if(!I)return K.return();F=_.a(I);for(G=F.next();!G.done;G=F.next())if(V=G.value,!V.encryptedBlobId)return Y.isLoading=!1,e=void 0,Y.errorMessage_=(e=Y.data.errorMessage)!=null?e:null,K.return();case 4:l=(r=Y.$$("ytd-backstage-image-select-renderer"))&&r.uploadPromise(),U=Y.getSharedPostId_(),l?l.then(function(){Y.submitForm_.apply(Y,_.oK(_.UN.apply(0,arguments)))}).catch(function(H){Y.isLoading=!1;
Y.errorMessage_=_.i0(H.message)}):Y.selectedVideoId_?Y.submitForm_(void 0,Y.selectedVideoId_):Y.prefilledAttachment_==="image"?Y.submitForm_(Y.prefilledImageData_.encryptedBlobId,void 0,void 0,Y.prefilledImageData_.sourceExternalVideoId,void 0,Y.taggedVideoId_):Y.prefilledAttachment_==="video"?Y.submitForm_(void 0,Y.data.backstageAttachment.videoRenderer.videoId):U?Y.submitForm_(void 0,void 0,U):Y.taggedVideoId_!==void 0?Y.submitForm_(void 0,void 0,void 0,void 0,void 0,Y.taggedVideoId_):Y.submitForm_(),
_.V9(K)}})},
openSchedulingPanel:function(D){D&&D.scheduleButton&&D.scheduleButton.buttonRenderer&&(this.scheduleButton_=D.scheduleButton.buttonRenderer);D&&D.dateTimePicker&&this.set("data.schedulingDateTimePicker",D.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(D){D.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(D){D.stopPropagation();D.detail.alertMessage&&(this.alertMessage_=D.detail.alertMessage)},
onImageSelected_:function(D){D.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(D){D.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(D.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(D){var Y=this.$["video-link-attachment"];Y&&Y.onLaunchVideoPicker(D)},
onAttachmentDismiss_:function(D){D.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"&&_.f("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.f("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 D;if(this.addedAttachment==="image-poll"&&((D=this.$["image-poll-attachment"])==null||!D.isValid()))return!1;var Y;if(this.addedAttachment==="quiz"&&((Y=this.$["quiz-attachment"])==null||!Y.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;D=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")D=!0;return D||!!this.getTextAreaValue().trim()},
submitForm_:function(D,Y,R,Z,t,X){var M=this.getTextAreaValue().trim(),W={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&M===this.previousText_&&(M=void 0);M!==void 0&&(W.comment_text=M);this.isLoading=!0;X!=void 0&&(W.tagged_video_id=X);D?(W.image_blob_id=D,this.imagePreviewCoordinates_&&(W.image_preview_coordinates=this.imagePreviewCoordinates_)):Y?W.attached_video_id=Y:R?W.shared_post_id=R:t&&t.length>0&&(W.images_data=t.map(function(z){return{encryptedBlobId:z.encryptedBlobId,
previewCoordinates:z.previewCoordinates}}));
Z&&(W.source_video_id=Z);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(W.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(W.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(W.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.f("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(W.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.f("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(W.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.zA(this,[this.serviceEndpoint,W])},
onIsInputFocusChanged_:function(D,Y){D?this.fire("yt-autonav-pause-focus"):Y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var Y=this.getEditableTextArea_();[].concat(_.oK(D.dataTransfer.items)).forEach(function(R){R.kind==="string"&&R.type.match("^text/plain")&&R.getAsString(function(Z){Y.appendChild(document.createTextNode(Z))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
computeSubmitButtonClass_:function(D,Y){return!Y||D?"":"with-options"},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.aU(this.emojiInput).querySelector("#dropdown")){var Y=this.getEditableTextArea_().getBoundingClientRect().bottom,R=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Y-R)+5;Y=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-Y;_.aU(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(D){if(_.f("enable_post_scheduling")&&this.data&&this.data.purpose){D=D.detail;if(Math.floor(Date.now()/1E3)>=D)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var Y=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(Y)||Y!==D?this.scheduledPublishTimeSec_=D:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=D;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var D=["image-button","image-poll-button","poll-button"];_.f("enable_quiz_creation")&&D.push("quiz-button");_.f("auto_convert_posts_video_tag")||D.push("video-link-button");return D},
getButtonRenderer:function(D,Y){if(D)switch(Y){case "video-link-button":var R;return((R=D.videoLinkButton)==null?void 0:R.buttonRenderer)||void 0;case "image-button":var Z;return((Z=D.imageButton)==null?void 0:Z.buttonRenderer)||void 0;case "poll-button":var t;return((t=D.pollButton)==null?void 0:t.buttonRenderer)||void 0;case "image-poll-button":var X;return((X=D.imagePollButton)==null?void 0:X.buttonRenderer)||void 0;case "quiz-button":var M;return((M=D.quizButton)==null?void 0:M.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var D;return(D=this.data)==null||!D.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var D,Y;return!((D=this.data)==null||!D.openAadcDialog)&&!((Y=this.aadcGuidelinesState_)==null||!Y.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.JQ("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var D;((D=this.data)==null?0:D.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.U1("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(D){D.clickTrackingParams&&_.n8().clickCommand(D);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.CX(this,"yt-close-popup-action")},
onHideIdentityChip:function(D){var Y;this.set("data.placeholderText",(Y=D.hideIdentityChipAction)==null?void 0:Y.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var F6=function(){var D=_.N.apply(this,arguments)||this;D.isOpen=!1;D.modern=_.f("web_modern_buttons");D.roundedContainer=!0;D.dropdownButtonOverride=_.f("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;D.inPopupContainer=!1;D.isCommentboxLoading=!1;var Y=["image-button","image-poll-button","poll-button"];_.f("enable_quiz_creation")&&Y.push("quiz-button");_.f("auto_convert_posts_video_tag")||Y.push("video-link-button");D.attachmentButtonIds=Y;D.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 D};
_.n(F6,_.N);_.u=F6.prototype;_.u.computeButtonOverride=function(){var D;return((D=this.data)==null?0:D.postOptionsMenu)&&_.f("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.u.configureRendererStamper=function(){var D={"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]]"}}}}};_.f("auto_convert_posts_video_tag")||(D["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return D};
_.u.ready=function(){var D=this,Y=_.aU(this.hostElement).querySelector("#placeholder-area"),R=function(Z){D.onOpen(Z)};
Y.addEventListener("tap",R);Y.addEventListener("keypress",R)};
_.u.showButtonEduTooltip=function(){var D,Y,R,Z,t,X,M;if(_.f("enable_quiz_creation")&&((D=this.data)==null?0:(Y=D.quizButton)==null?0:(R=Y.buttonRenderer)==null?0:(Z=R.hint)==null?0:(t=Z.hintRenderer)==null?0:(X=t.content)==null?0:(M=X.bubbleHintRenderer)==null?0:M.text)&&(_.uB.getInstance(),D=a8(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(D==null?void 0:
D.length)>0)){this.ytComponentBehavior.resolveCommand(D[0],{form:{element:this.quizButton}});return}var W;if((W=this.data)==null?0:W.imagePollButtonTooltip)if(_.uB.getInstance(),W=a8(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(W==null?void 0:W.length)>0){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.imagePollButton}});return}var z;_.f("enable_multi_image_post_creation")&&
((z=this.data)==null?0:z.multiImageButtonTooltip)&&(_.uB.getInstance(),z=a8(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(z==null?void 0:z.length)>0&&this.ytComponentBehavior.resolveCommand(z[0],{form:{element:this.imageButton}}))};
_.u.onCreatePollAction=function(D){_.A(D,uQb)&&(this.JSC$15700_commentbox.addedAttachment="poll",this.openDialog())};
_.u.onAddVideoLinkAction=function(D){if(_.A(D,ZgY))this.JSC$15700_commentbox.onAddVideoLink(D)};
_.u.onShowSchedulingPanelCommand=function(D){(D=_.A(D,Ny_))&&this.openSchedulingPanel(D)};
_.u.onCreateImagePollCommand=function(D){_.A(D,RO_)&&(this.JSC$15700_commentbox.openImagePollComponent(),this.openDialog())};
_.u.onCreateQuizCommand=function(D){_.A(D,Zy7)&&(this.JSC$15700_commentbox.openQuizComponent(),this.openDialog())};
_.u.openSchedulingPanel=function(D){_.f("enable_post_scheduling")&&(this.openDialog(),this.JSC$15700_commentbox.openSchedulingPanel(D))};
_.u.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.JSC$15700_commentbox.clear(),this.closeDialog())};
_.u.onOpen=function(D){D instanceof KeyboardEvent&&D.type==="keypress"&&D.keyCode!==13&&D.keyCode!==32||(this.data.prepareAccountEndpoint?_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.u.onYtCommentboxDismiss=function(){this.closeDialog()};
_.u.onYtCommentboxLoadingStart=function(D){D.stopPropagation();this.isCommentboxLoading=!0};
_.u.onYtCommentboxLoadingEnd=function(D){D.stopPropagation();this.isCommentboxLoading=!1};
_.u.onYtVideoLinkButtonCancel=function(D){D.stopPropagation();this.onOpen(D)};
_.u.onYtVideoLinkSelected=function(D){D.stopPropagation();this.onOpen(D)};
_.u.onIronSelect=function(D){D.stopPropagation();D.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=D.detail.item.value&&(this.accessRestriction?(this.accessRestriction=D.detail.item.value,this.onOpen(D)):this.accessRestriction=D.detail.item.value)};
_.u.onYtNavigate=function(D){this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(this.JSC$15700_commentbox.addedAttachment="image",this.JSC$15700_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.u.onRequestSent=function(D){if(_.f("web_button_rework"))for(var Y=_.a(D.detail),R=Y.next();!R.done;R=Y.next())_.A(R.value,TpE)&&(this.JSC$15700_commentbox.addedAttachment="image",this.JSC$15700_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.u.openDialog=function(){this.JSC$15700_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15700_commentbox.focus()};
_.u.onPopupClosed=function(){_.uB.getInstance()};
_.u.computeCreationDisabled=function(D){return!!D};
_.u.computeIsCreationDialog=function(D){return!!D&&D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.u.computeDisabledPostButton=function(D){if(!D)return null;D.isDisabled=!0;return D};
_.u.computeIsCreationDialogWithHeader=function(D){return!this.inPopupContainer&&!!D&&!!D.authorText&&D.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.u.computeIsHeaderHidden=function(D,Y){return!D||Y};
_.u.computeDropdownRendererClasses=function(D){return D?["text-secondary-style"]:[]};
_.u.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var D=_.aU(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;D&&D.reset()};
F6.prototype.onPopupClosed=F6.prototype.onPopupClosed;F6.prototype.onRequestSent=F6.prototype.onRequestSent;F6.prototype.onYtNavigate=F6.prototype.onYtNavigate;F6.prototype.onIronSelect=F6.prototype.onIronSelect;F6.prototype.onYtVideoLinkSelected=F6.prototype.onYtVideoLinkSelected;F6.prototype.onYtVideoLinkButtonCancel=F6.prototype.onYtVideoLinkButtonCancel;F6.prototype.onYtCommentboxLoadingEnd=F6.prototype.onYtCommentboxLoadingEnd;F6.prototype.onYtCommentboxLoadingStart=F6.prototype.onYtCommentboxLoadingStart;
F6.prototype.onYtCommentboxDismiss=F6.prototype.onYtCommentboxDismiss;F6.prototype.showButtonEduTooltip=F6.prototype.showButtonEduTooltip;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],F6.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],F6.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],F6.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F6.prototype,"isOpen",void 0);_.q([_.y({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],F6.prototype,"buttonOverride",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F6.prototype,"modern",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F6.prototype,"roundedContainer",void 0);_.q([_.y(),_.x("design:type",Object)],F6.prototype,"dropdownButtonOverride",void 0);_.q([_.y({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.x("design:type",Boolean)],F6.prototype,"creationDisabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],F6.prototype,"enableCreationBox",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.x("design:type",Boolean)],F6.prototype,"isCreationDialog",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],F6.prototype,"inPopupContainer",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.x("design:type",Boolean)],F6.prototype,"isCreationDialogWithHeader",void 0);_.q([_.y(),_.x("design:type",Object)],F6.prototype,"accessRestriction",void 0);
_.q([_.y({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.x("design:type",Array)],F6.prototype,"dropdownRendererClasses",void 0);_.q([_.y(),_.x("design:type",Object)],F6.prototype,"isCommentboxLoading",void 0);_.q([_.y(),_.x("design:type",Array)],F6.prototype,"attachmentButtonIds",void 0);_.q([_.fr("#image-button"),_.x("design:type",HTMLElement)],F6.prototype,"imageButton",void 0);
_.q([_.fr("#image-poll-button"),_.x("design:type",HTMLElement)],F6.prototype,"imagePollButton",void 0);_.q([_.fr("#quiz-button"),_.x("design:type",HTMLElement)],F6.prototype,"quizButton",void 0);_.q([_.fr("#commentbox"),_.x("design:type",Object)],F6.prototype,"JSC$15700_commentbox",void 0);_.q([_.Gm("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F6.prototype,"showButtonEduTooltip",null);
_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onYtCommentboxDismiss",null);_.q([_.Fv("yt-commentbox-loading-start"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onYtCommentboxLoadingStart",null);
_.q([_.Fv("yt-commentbox-loading-end"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onYtCommentboxLoadingEnd",null);_.q([_.Fv("yt-video-link-button-cancel"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onYtVideoLinkButtonCancel",null);
_.q([_.Fv("yt-video-link-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onYtVideoLinkSelected",null);_.q([_.Fv("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onIronSelect",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F6.prototype,"onRequestSent",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F6.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],F6);
_.L(F6,"ytd-backstage-post-dialog-renderer",function(){if(WlL!==void 0)return WlL;var D=document.createElement("template");_.w(D,'\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">\n    </yt-formatted-string>\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 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]]" 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 slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return WlL=D},{mode:1});var P7L;var QG4;var G9=function(){return _.N.apply(this,arguments)||this};
_.n(G9,_.N);_.u=G9.prototype;_.u.computeHeartButtonStyle=function(D){return(D==null?0:D.styleType)?D.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.u.onYtButtonTap=function(){if(this.data.isEnabled){var D=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(D=this.getEndpoint(D))&&_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})}else(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(D)};
_.u.toggle=function(D){this.set("data.isHearted",D!==void 0?D:!this.data.isHearted)};
_.u.getEndpoint=function(D){var Y,R=(Y=this.data)==null?void 0:Y.heartEndpoint,Z;Y=(Z=this.data)==null?void 0:Z.unheartEndpoint;if(R&&Y)return D?Y:R};
_.u.computeButtonAccessibility=function(D,Y){var R,Z,t=D==null?void 0:(R=D.heartedAccessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label,X,M;D=D==null?void 0:(X=D.unheartedAccessibility)==null?void 0:(M=X.accessibilityData)==null?void 0:M.label;return Y?t:D};
_.YF.Object.defineProperties(G9.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 D;return _.f("kevlar_system_icons")&&!((D=this.data)==null||!D.isHearted)}}});
G9.prototype.onYtButtonTap=G9.prototype.onYtButtonTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],G9.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],G9.prototype,"data",void 0);_.q([_.b("data.isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],G9.prototype,"heartTooltip",null);
_.q([_.b("data.isHearted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],G9.prototype,"iconFilled",null);_.q([_.y({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.x("design:type",String)],G9.prototype,"buttonAccessibility",void 0);_.q([_.y({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],G9.prototype,"heartButtonStyle",void 0);
_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G9.prototype,"onYtButtonTap",null);_.q([_.h({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],G9);
_.L(G9,"ytd-creator-heart-renderer",function(){if(QG4!==void 0)return QG4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return QG4=D},{mode:1});var Vz=function(){var D=_.N.apply(this,arguments)||this;D.hasCreatorReply=!1;D.buttonOverrides={size:"S",iconPosition:"icon-only"};D.replyButtonOverrides={size:"S",type:"text"};D.forceIconButton=!_.f("web_modern_buttons");D.modern=_.f("web_modern_buttons");D.buttonTooltipPosition="bottom";D.systemIcons=_.f("kevlar_system_icons");D.replyDialog=null;return D};
_.n(Vz,_.N);_.u=Vz.prototype;
_.u.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]]"}}}}}};
_.u.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.u.dataChange=function(){this.replyDialog&&_.aU(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var D,Y,R;this.isLiked=this.systemIcons&&!!((D=this.data)==null?0:(Y=D.likeButton)==null?0:(R=Y.toggleButtonRenderer)==null?0:R.isToggled)};
_.u.computeShowVoteCountBeginning=function(D,Y){return D===void 0||Y===void 0?!0:D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Y&&this.ytRendererBehavior.getSimpleString(Y)!=="0"};
_.u.computeShowVoteCountEnd=function(D,Y){return D===void 0||Y===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Y&&this.ytRendererBehavior.getSimpleString(Y)!=="0"};
_.u.computeShowCommentCount=function(D,Y){return D===void 0||Y===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Y&&this.ytRendererBehavior.getSimpleString(Y)!=="0"};
_.u.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.u.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.u.showReplyDialog=function(D){D&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.aU(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=D,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.u.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.u.onRequestSent=function(D){if(_.f("web_button_rework")){D=_.a(D.detail);for(var Y=D.next();!Y.done;Y=D.next())(Y=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",Y.value))&&this.showReplyDialog(Y)}};
_.u.onYtNavigate=function(D){var Y,R;(D=(Y=_.A(D.detail.endpoint,_.ISE))==null?void 0:(R=Y.dialog)==null?void 0:R.commentReplyDialogRenderer)&&this.showReplyDialog(D)};
_.u.onYtServiceRequestSent=function(D,Y){D.stopPropagation();if(Y.actions)for(D=0;D<Y.actions.length;D++){var R=_.A(Y.actions[D],SkL);R&&this.handleUpdateCommentVoteAction(R)}};
_.u.handleUpdateCommentVoteAction=function(D){this.voteCount=D.voteCount||_.i0("0");D.voteStatus==="LIKE"?this.JSC$15711_ytdDislikeToggleButtonRenderer.toggle(!1):D.voteStatus==="DISLIKE"?this.JSC$15711_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15711_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15711_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.u.computeReplyButtonHidden=function(D){return D};
_.u.computeReplyButtonBeginning=function(D){return(D==null?0:D.replyButton)&&D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.u.computeReplyButtonEnd=function(D){return(D==null?0:D.replyButton)&&D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.u.computeActionButtonStyle=function(D){return(D==null?0:D.style)?D.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.u.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.u.onYtToggleButton=function(D){var Y,R;this.isLiked=this.systemIcons&&!!((Y=D.detail)==null?0:(R=Y.actions)==null?0:R.like)};
Vz.prototype.onYtToggleButton=Vz.prototype.onYtToggleButton;Vz.prototype.onButtonTooltipPositionChanged=Vz.prototype.onButtonTooltipPositionChanged;Vz.prototype.onYtServiceRequestSent=Vz.prototype.onYtServiceRequestSent;Vz.prototype.onYtNavigate=Vz.prototype.onYtNavigate;Vz.prototype.onRequestSent=Vz.prototype.onRequestSent;Vz.prototype.onYtCommentboxDismiss=Vz.prototype.onYtCommentboxDismiss;Vz.prototype.dataChange=Vz.prototype.dataChange;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"voteCount",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"commentCount",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"replyThumbnail",void 0);
_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"hasCreatorReply",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Vz.prototype,"enableCreationBox",void 0);_.q([_.y({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],Vz.prototype,"actionButtonsStyle",void 0);_.q([_.y({computed:"computeReplyButtonBeginning(data)"}),_.x("design:type",Object)],Vz.prototype,"replyButtonBeginning",void 0);
_.q([_.y({computed:"computeReplyButtonEnd(data)"}),_.x("design:type",Object)],Vz.prototype,"replyButtonEnd",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"buttonOverrides",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"replyButtonOverrides",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"forceIconButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Vz.prototype,"useCommentIcon",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Vz.prototype,"modern",void 0);_.q([_.y(),_.x("design:type",Object)],Vz.prototype,"buttonTooltipPosition",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Vz.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Vz.prototype,"isLiked",void 0);_.q([_.fr("ytd-button-renderer"),_.x("design:type",Object)],Vz.prototype,"ytdReplyButtonRenderer",void 0);
_.q([_.fr("#like-button"),_.x("design:type",Object)],Vz.prototype,"JSC$15711_ytdLikeToggleButtonRenderer",void 0);_.q([_.fr("#dislike-button"),_.x("design:type",Object)],Vz.prototype,"JSC$15711_ytdDislikeToggleButtonRenderer",void 0);_.q([_.fr("#reply-dialog"),_.x("design:type",HTMLElement)],Vz.prototype,"replyDialogElement",void 0);_.q([_.fr("#reply-button"),_.x("design:type",HTMLElement)],Vz.prototype,"replyButtonElement",void 0);
_.q([_.fr("#reply-button-end"),_.x("design:type",HTMLElement)],Vz.prototype,"replyButtonEndElement",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vz.prototype,"dataChange",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vz.prototype,"onYtCommentboxDismiss",null);
_.q([_.Fv("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vz.prototype,"onRequestSent",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vz.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],Vz.prototype,"onYtServiceRequestSent",null);_.q([_.Gm("buttonTooltipPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vz.prototype,"onButtonTooltipPositionChanged",null);
_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vz.prototype,"onYtToggleButton",null);_.q([_.h({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Vz);
_.L(Vz,"ytd-comment-action-buttons-renderer",function(){if(P7L!==void 0)return P7L;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return P7L=D},{mode:1});var BUz;var fu=function(){return _.N.apply(this,arguments)||this};
_.n(fu,_.N);fu.prototype.focus=function(){_.aU(this.hostElement).querySelector("#commentbox").focus()};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fu.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],fu.prototype,"zeroStepChannelCreationRenderer",void 0);_.q([_.h({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],fu);
_.L(fu,"ytd-comment-dialog-renderer",function(){if(BUz!==void 0)return BUz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return BUz=D},{mode:1});var pnU;var e4=function(){var D=_.N.apply(this,arguments)||this;D.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.f("enable_web_delhi_icons")};D.replyButtonOverrides={size:"S",type:"text"};return D};
_.n(e4,_.N);_.u=e4.prototype;_.u.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.u.detached=function(){this.replyBox&&this.replyBox.remove()};
_.u.showReplyDialog=function(D){if(D){var Y=this.replyBox;Y||(Y=document.createElement("ytd-comment-reply-dialog-renderer"),Y.id="replybox",_.aU(this.replyDialogDiv).appendChild(Y));Y.data=D;this.replyDialogDiv.hidden=!1;Y.openDialog()}};
_.u.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.u.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var D,Y=_.A((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand,_.mQ);Y&&_.MX(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:Y})}};
_.u.onYtServiceRequestSent=function(D,Y){D.stopPropagation();if(Y.actions)for(var R=0;R<Y.actions.length;R++){var Z=_.A(Y.actions[R],SkL);Z?this.handleUpdateCommentVoteAction(Z):D.target===this.heartButton&&this.toggleHeartState()}};
_.u.handleUpdateCommentVoteAction=function(D){var Y;(Y=this.toolbarState)!=null&&Y.key&&this.ytdReduxBehavior.dispatch(_.k6("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:D.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":D.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.u.toggleHeartState=function(){var D;(D=this.toolbarState)!=null&&D.key&&this.ytdReduxBehavior.dispatch(_.k6("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.YF.Object.defineProperties(e4.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return(((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(Y=this.toolbarData)==null?void 0:Y.likeCountLiked:(R=this.toolbarData)==null?void 0:R.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand)!==void 0&&!_.f("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y=_.A((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.mQ),R,Z,t,X,M,W,z,I,F;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((R=this.toolbarSharedData)==null||!R.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:Y!=null?Y:_.A((t=this.toolbarSurface)==null?void 0:t.likeCommand,_.mQ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Y!=null?Y:_.A((X=this.toolbarSurface)==null?void 0:X.unlikeCommand,_.mQ),defaultCommand:this.isVisiblyDisabled?_.A((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.mQ):void 0,defaultTooltip:(W=this.toolbarData)==null?void 0:W.likeInactiveTooltip,toggledTooltip:(z=this.toolbarData)==null?void 0:z.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(I=this.toolbarData)==null?void 0:I.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y=_.A((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.mQ),R,Z,t,X,M,W,z,I,F,G;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((R=this.toolbarSharedData)==null||!R.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:Y!=null?Y:_.A((t=this.toolbarSurface)==null?void 0:t.dislikeCommand,_.mQ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Y!=null?Y:_.A((X=this.toolbarSurface)==null?void 0:X.undislikeCommand,_.mQ),defaultCommand:this.isVisiblyDisabled?_.A((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.mQ):void 0,defaultTooltip:(W=this.toolbarData)==null?void 0:W.dislikeInactiveTooltip,toggledTooltip:(z=this.toolbarData)==null?void 0:
z.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(I=this.toolbarSharedData)==null?void 0:I.dislikeReplyButtonA11y:(F=this.toolbarSharedData)==null?void 0:F.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(G=this.toolbarSharedData)==null?void 0:G.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;if(((D=this.toolbarState)==null?void 0:D.heartState)!==void 0&&((Y=this.toolbarState)==null?void 0:Y.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((R=this.toolbarState)==null?void 0:R.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Z,t,X,M,W,z,I,F,G,V,e,r,l,U;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Z=this.toolbarData)==null?void 0:Z.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.A((z=this.toolbarSurface)==null?void 0:z.heartCommand,
_.mQ),unheartEndpoint:this.isVisiblyDisabled?void 0:_.A((I=this.toolbarSurface)==null?void 0:I.unheartCommand,_.mQ),disabledEndpoint:this.isVisiblyDisabled?_.A((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.mQ):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(G=this.toolbarData)==null?void 0:G.heartActiveTooltip,unheartedTooltip:(V=this.toolbarData)==null?void 0:V.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((e=
this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(r=this.toolbarSharedData)==null?void 0:r.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 D;return!((D=this.toolbarSurface)==null||!D.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(D=this.commentStrings)==null?void 0:D.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.A((Y=this.toolbarSurface)==null?void 0:Y.replyCommand,_.mQ),command:this.isVisiblyDisabled?_.A((R=this.toolbarSurface)==null?
void 0:R.commentDisabledActionCommand,_.mQ):this.isSubsOnlyCommentsIneligibleUser?_.A((Z=this.toolbarSurface)==null?void 0:Z.subscribersOnlySnackbarCommand,_.mQ):void 0}}}});
e4.prototype.onYtServiceRequestSent=e4.prototype.onYtServiceRequestSent;e4.prototype.hideReplyDialogDiv=e4.prototype.hideReplyDialogDiv;_.q([_.y(),_.x("design:type",Object)],e4.prototype,"commentStrings",void 0);_.q([_.y(),_.x("design:type",Boolean)],e4.prototype,"isReply",void 0);_.q([_.y(),_.x("design:type",Object)],e4.prototype,"toolbarData",void 0);_.q([_.y(),_.x("design:type",Object)],e4.prototype,"toolbarSharedData",void 0);
_.q([_.y(),_.x("design:type",String)],e4.prototype,"toolbarStateKey",void 0);_.q([_.y(),_.x("design:type",String)],e4.prototype,"toolbarSurfaceKey",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Rv),_.x("design:type",Object)],e4.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.fr("#reply-dialog"),_.x("design:type",HTMLElement)],e4.prototype,"replyDialogDiv",void 0);_.q([_.fr("#replybox"),_.x("design:type",Object)],e4.prototype,"replyBox",void 0);_.q([_.fr("ytd-creator-heart-renderer"),_.x("design:type",Object)],e4.prototype,"heartButton",void 0);_.q([_.y({selector:function(D,Y){return _.jC(D.entities,"engagementToolbarStateEntityPayload",Y)},
selectorArgs:["toolbarStateKey"]}),_.x("design:type",Object)],e4.prototype,"toolbarState",void 0);_.q([_.y({selector:JAy,selectorArgs:["toolbarSurfaceKey"]}),_.x("design:type",Object)],e4.prototype,"toolbarSurface",void 0);_.q([_.y(),_.x("design:type",Object)],e4.prototype,"buttonOverrides",void 0);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],e4.prototype,"hideReplyDialogDiv",null);
_.q([_.b("toolbarData","toolbarState"),_.x("design:type",String),_.x("design:paramtypes",[])],e4.prototype,"likeCount",null);_.q([_.b("likeCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],e4.prototype,"showLikeCount",null);_.q([_.b("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],e4.prototype,"isVisiblyDisabled",null);_.q([_.b("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],e4.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.q([_.b("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],e4.prototype,"isSubsOnlyCommentsEligibleUser",null);_.q([_.b("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],e4.prototype,"hasPrepareAccountCommand",null);_.q([_.b("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],e4.prototype,"likeToggleButtonRenderer",null);
_.q([_.b("isReply","toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],e4.prototype,"dislikeToggleButtonRenderer",null);_.q([_.b("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],e4.prototype,"creatorHeartSupportedRenderer",null);_.q([_.b("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],e4.prototype,"hasReplyCommand",null);
_.q([_.b("toolbarSurface","commentStrings","isVisiblyDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],e4.prototype,"replyButtonRenderer",null);_.q([_.y(),_.x("design:type",Object)],e4.prototype,"replyButtonOverrides",void 0);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],e4.prototype,"onYtServiceRequestSent",null);_.q([_.h({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],e4);
_.L(e4,"ytd-comment-engagement-bar",function(){if(pnU!==void 0)return pnU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return pnU=D},{mode:1});var EY_;var Aa=function(){return _.N.apply(this,arguments)||this};
_.n(Aa,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Aa.prototype,"data",void 0);_.q([_.h({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Aa);
_.L(Aa,"ytd-comment-inline-thumbnail-renderer",function(){if(EY_!==void 0)return EY_;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return EY_=D},{mode:1});var gY4;var nu=function(){return _.N.apply(this,arguments)||this};
_.n(nu,_.N);nu.prototype.onMessageTap=function(){if(this.onTapCommand){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);D&&this.ytdOpenPopupBehavior.openPopup(D)}};
_.YF.Object.defineProperties(nu.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return(D=this.data)==null?void 0:(Y=D.button)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.command}}});
_.q([_.v(_.Rv),_.x("design:type",Object)],nu.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nu.prototype,"data",void 0);_.q([_.b("data.button.buttonRenderer.command"),_.x("design:type",Object),_.x("design:paramtypes",[])],nu.prototype,"onTapCommand",null);_.q([_.h({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],nu);
_.L(nu,"ytd-comment-pause-composer-renderer",function(){if(gY4!==void 0)return gY4;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return gY4=D},{mode:1});var dz1;var iTU;var rl=function(){var D=_.N.apply(this,arguments)||this;D.isOpen=!1;return D};
_.n(rl,_.N);_.u=rl.prototype;_.u.dataChanged=function(){this.isOpen=!1};
_.u.onTap=function(){this.data&&(this.data.navigationEndpoint?_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.u.focus=function(){this.JSC$15741_commentbox.focus()};
_.u.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.u.openDialog=function(){this.isOpen=!0;this.JSC$15741_commentbox.focus();this.JSC$15741_commentbox.maybeHeightChanged()};
rl.prototype.onYtCommentboxDismiss=rl.prototype.onYtCommentboxDismiss;rl.prototype.dataChanged=rl.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rl.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],rl.prototype,"isOpen",void 0);_.q([_.fr("#commentbox"),_.x("design:type",Object)],rl.prototype,"JSC$15741_commentbox",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rl.prototype,"dataChanged",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rl.prototype,"onYtCommentboxDismiss",null);_.q([_.h({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],rl);
_.L(rl,"ytd-comment-reply-dialog-renderer",function(){if(iTU!==void 0)return iTU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return iTU=D},{mode:1});var OTE;var wl=function(){return _.N.apply(this,arguments)||this};
_.n(wl,_.N);_.YF.Object.defineProperties(wl.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.icon)==null?void 0:Y.iconType;return R?"yt-icons:"+R.toLowerCase():null}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wl.prototype,"data",void 0);_.q([_.y(),_.b("data.icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],wl.prototype,"icon",null);_.q([_.h({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],wl);
_.L(wl,"ytd-pinned-comment-badge-renderer",function(){if(OTE!==void 0)return OTE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return OTE=D},{mode:1});var cvb;var Dd7={},YI_={input:!0,meta:!0,br:!0,link:!0,img:!0},$m=null;Dd7.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(){$m==null&&($m=document.createElement("tp-yt-paper-tooltip"),$m.offset=8,$m.fitToVisibleBounds=!0)},
onMouseOver_:function(D){if(D=_.K0(D.target,function(t){return t==this||t.getAttribute&&t.getAttribute("shared-tooltip-text")}.bind(this),!0)){var Y=D.getAttribute("shared-tooltip-text");
if(Y){var R=this,Z=null;D!=this&&(D.tagName.toLowerCase()in YI_?R=D.parentElement:R=D,D.id&&(Z=D.id));this.polymerController.createTooltipIfRequired_();if($m.parentElement!=R||$m.for!=Z)(0,_.zm)($m).textContent=Y,_.aU(R).appendChild($m),$m.for=Z,$m.animationDelay=this.polymerController.sharedTooltipAnimationDelay,$m.position=this.polymerController.sharedTooltipPosition}}}};var vd=function(){return _.N.apply(this,arguments)||this};
_.n(vd,_.N);vd.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]]"}}}}}};
vd.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
vd.prototype.colorChanged=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.color)==null?void 0:(R=Y.basicColorPaletteData)==null?void 0:R.foregroundBodyColor;Z&&(this.rgbBadgeColor=_.HG(Z));_.aU(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
vd.prototype.tooltipChanged=function(){var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
vd.prototype.tooltipChanged=vd.prototype.tooltipChanged;vd.prototype.colorChanged=vd.prototype.colorChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(Dd7.YtSharedTooltipBehavior),_.x("design:type",Object)],vd.prototype,"ytSharedTooltipBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vd.prototype,"data",void 0);
_.q([_.y({value:"#4285F4"}),_.x("design:type",String)],vd.prototype,"rgbBadgeColor",void 0);_.q([_.Gm("data.color"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vd.prototype,"colorChanged",null);_.q([_.Gm("data.tooltip"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vd.prototype,"tooltipChanged",null);_.q([_.h({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],vd);
_.L(vd,"ytd-sponsor-comment-badge-renderer",function(){if(cvb!==void 0)return cvb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return cvb=D},{mode:1});var Rfz;var Z6V;var oy=function(){return _.N.apply(this,arguments)||this};
_.n(oy,_.N);oy.prototype.computeState=function(D){switch(D==null?void 0:D.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"}};
oy.prototype.updateStateIdentifier=function(D){if(this.viewModel.triStateKey){var Y=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.k6("triStateButtonStateEntityPayload",Y,{key:Y,stateIdentifier:D}))}};
oy.prototype.onClick=function(){var D=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(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.YF.Object.defineProperties(oy.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 D;return((D=this.data)==null?void 0:D.buttonText)||""}}});
_.q([_.y(),_.x("design:type",Object)],oy.prototype,"viewModel",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],oy.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],oy.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.q([_.y({selector:kC9,selectorArgs:["viewModel.triStateKey"]}),_.x("design:type",Object)],oy.prototype,"triStateButtonStateEntity",void 0);
_.q([_.y({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.x("design:type",String)],oy.prototype,"state",void 0);_.q([_.b("viewModel","state"),_.x("design:type",Object),_.x("design:paramtypes",[])],oy.prototype,"data",null);_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],oy.prototype,"buttonText",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],oy);
_.L(oy,"ytd-tri-state-button-view-model",function(){if(Z6V!==void 0)return Z6V;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Z6V=D},{mode:1});var tZY;var sWE;var bv=function(){var D=_.N.apply(this,arguments)||this;D.defaultIconToFilled=!_.f("kevlar_fill_comment_chip_icon_killswitch");return D};
_.n(bv,_.N);bv.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
bv.prototype.dataChanged=function(){if(this.data){var D,Y;((D=this.data.chipColorPalette)==null?0:D.backgroundColor)&&((Y=this.data.chipColorPalette)==null?0:Y.foregroundTitleColor)&&_.SN(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.xI(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.xI(this.data.chipColorPalette.foregroundTitleColor)});var R;((R=this.data)==null?0:R.command)?(_.SN(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.SN(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}};
bv.prototype.onTap=function(){var D;if(this.data&&(D=this.data)!=null&&D.command){var Y;this.ytComponentBehavior.resolveCommand((Y=this.data)==null?void 0:Y.command)}};
bv.prototype.getIconSize=function(){return _.f("kevlar_fill_comment_chip_icon_killswitch")?24:12};
bv.prototype.onTap=bv.prototype.onTap;bv.prototype.dataChanged=bv.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],bv.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.nJ),_.x("design:type",Object)],bv.prototype,"ironA11yKeysBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bv.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],bv.prototype,"basePriceText",void 0);_.q([_.y(),_.x("design:type",Object)],bv.prototype,"chipIcon",void 0);_.q([_.y(),_.x("design:type",Object)],bv.prototype,"defaultIconToFilled",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bv.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bv.prototype,"onTap",null);
_.q([_.Lr({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],bv);
_.L(bv,"yt-pdg-comment-chip-renderer",function(){if(sWE===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;tZY===void 0&&(tZY=document.createElement("template"));var Z=tZY;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);sWE=D}D=sWE;return D},{mode:2});var yz=function(){var D=_.N.apply(this,arguments)||this;D.useSmallAvatars=_.f("small_avatars_for_comments");D.webWatchCompactComments=_.f("web_watch_compact_comments");D.editDialog=null;return D};
_.n(yz,_.N);_.u=yz.prototype;_.u.onShow=function(){_.h4("cmv",void 0,"wn_comments")};
_.u.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"}}}};
_.u.detached=function(){this.editDialog=null;this.expander.reset()};
_.u.updateBackgroundColor=function(){if(this.backgroundColor){var D={"--ytd-comment-paid-background-color":_.xI(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.SN(this.hostElement,D)}else _.SN(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.u.resetExpander=function(){var D;(D=this.expander)==null||D.reset()};
_.u.openEditDialog=function(D){D.dialog&&(this.editDialog=D.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.u.onYtNavigate=function(D){var Y=D.detail.endpoint;if(Y=_.A(Y,_.FaY)||_.A(Y,_.GY_))D.stopPropagation(),this.openEditDialog(Y)};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null;_.SN(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.u.onAuthorThumbnailClicked=function(){_.f("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.u.onYtCommentboxResize=function(D){var Y;(D==null?0:(Y=D.detail)==null?0:Y.height)&&_.SN(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":D.detail.height+"px"})};
_.YF.Object.defineProperties(yz.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 D,Y=(D=this.commentEntity)==null?void 0:D.author;return Y&&(Y.isCreator||Y.isVerified||Y.isArtist)?{renderer:{authorEndpoint:Y.channelPageEndpoint?_.A(Y.channelPageEndpoint,_.mQ):_.A(Y.channelCommand,_.mQ),authorText:{runs:[{text:Y.displayName}]},color:Y.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:Y.isArtist?{iconType:"AUDIO_BADGE"}:
Y.isVerified?{iconType:Y.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:Y.isArtist||Y.isVerified?Y.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var D,Y=(D=this.commentEntity)==null?void 0:D.author;return Y!=null&&Y.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:Y.sponsorBadgeUrl}]},tooltip:Y.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return _.A((D=this.commentSurfaceEntity)==null?void 0:D.pdgCommentChip,_.p6Y)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&((D=this.voiceReplyContainerViewModel)==null?void 0:D.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return _.A((D=this.commentSurfaceEntity)==null?void 0:D.voiceReplyContainerViewModel,Al4)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&(D=this.voiceReplyContainerViewModel)!=null&&D.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.commentSurfaceEntity)==null?void 0:D.commentBackgroundColor)!=null?Y:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(((D=this.commentEntity)==null?void 0:(Y=D.properties)==null?void 0:Y.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(_.f("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(Y=D.author)==null?0:Y.profileCardEndpoint)&&this.viewModel.allowProfileCard){var R,Z;return _.A((R=this.commentEntity)==null?void 0:(Z=R.author)==null?void 0:Z.profileCardEndpoint,_.mQ)}var t,X;return _.A((t=this.commentEntity)==null?void 0:(X=t.avatar)==null?void 0:X.endpoint,_.mQ)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(_.f("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(Y=D.author)==null?0:Y.channelPageEndpoint)){var R,Z;return _.A((R=this.commentEntity)==null?void 0:(Z=R.author)==null?void 0:Z.channelPageEndpoint,_.mQ)}var t,X;return _.A((t=this.commentEntity)==null?void 0:(X=t.avatar)==null?void 0:X.endpoint,_.mQ)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t=(D=this.commentEntity)==null?void 0:(Y=D.avatar)==null?void 0:(R=Y.image)==null?void 0:(Z=R.sources)==null?void 0:Z[0];return t?{thumbnails:[{url:t.url,width:t.width,height:t.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.commentEntity)==null?0:(Y=D.author)==null?0:Y.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.commentEntity)==null?void 0:(Y=D.author)==null?void 0:Y.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.commentEntity)==null?void 0:(Y=D.properties)==null?void 0:Y.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.A((D=this.commentSurfaceEntity)==null?void 0:D.publishedTimeCommand,_.mQ)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(((D=this.commentEntity)==null?0:D.translatedContent)&&((Y=this.translateButtonState)==null?void 0:Y.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var R;if((R=this.voiceReplyContainerViewModel)==null?0:R.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Z,t;return((Z=this.commentEntity)==null?void 0:(t=Z.properties)==null?void 0:t.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.commentSharedEntity)==null?void 0:(Y=D.strings)==null?void 0:Y.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.commentSharedEntity)==null?void 0:(Y=D.strings)==null?void 0:Y.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentEntity)==null||!D.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var D,Y,R=(Y=_.A((D=this.viewModel)==null?void 0:D.translateButton,ecV))!=null?Y:{},Z,t,X,M,W,z,I,F,G,V,e;return Object.assign({},R,{untoggledStateData:Object.assign({},R.untoggledStateData,{buttonText:(Z=this.commentEntity)==null?void 0:(t=Z.translateData)==null?void 0:t.text}),togglingStateData:Object.assign({},R.togglingStateData,{buttonText:(X=this.commentSharedEntity)==null?
void 0:(M=X.strings)==null?void 0:M.translatingText}),toggledStateData:Object.assign({},R.toggledStateData,{buttonText:(W=this.commentSharedEntity)==null?void 0:(z=W.strings)==null?void 0:z.seeOriginalText}),transitionCommand:((I=this.commentEntity)==null?0:I.translatedContent)?void 0:_.A((F=this.commentEntity)==null?void 0:(G=F.translateData)==null?void 0:G.translateComment,_.mQ),triStateKey:(V=this.commentEntity)==null?void 0:(e=V.properties)==null?void 0:e.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((Y=_.A(_.A((D=this.toolbarSurface)==null?void 0:D.menuCommand,_.mQ),VtU))==null?void 0:(R=Y.menu)==null?void 0:R.menuRenderer)||null}}});
yz.prototype.onYtCommentboxResize=yz.prototype.onYtCommentboxResize;yz.prototype.onYtCommentboxDismiss=yz.prototype.onYtCommentboxDismiss;yz.prototype.onYtNavigate=yz.prototype.onYtNavigate;yz.prototype.resetExpander=yz.prototype.resetExpander;yz.prototype.updateBackgroundColor=yz.prototype.updateBackgroundColor;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],yz.prototype,"ytdReduxBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],yz.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#author-thumbnail > button"),_.x("design:type",HTMLElement)],yz.prototype,"authorThumbnailAnchor",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yz.prototype,"linked",null);
_.q([_.b("viewModel","linked"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"linkedCommentBadge",null);_.q([_.y({reflectToAttribute:!0}),_.b("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yz.prototype,"pinned",null);_.q([_.b("viewModel","pinned"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"pinnedCommentBadge",null);
_.q([_.b("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"authorCommentBadge",null);_.q([_.y({reflectToAttribute:!0}),_.b("authorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"hasAuthorBadge",null);_.q([_.b("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"sponsorCommentBadge",null);
_.q([_.y({reflectToAttribute:!0}),_.b("sponsorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"hasSponsorBadge",null);_.q([_.b("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"pdgCommentChipRenderer",null);_.q([_.y({reflectToAttribute:!0}),_.b("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"hasVoiceReply",null);
_.q([_.b("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"voiceReplyContainerViewModel",null);_.q([_.b("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"voiceReplyUnavailableText",null);_.q([_.y(),_.x("design:type",Object)],yz.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"viewModel",null);
_.q([_.y({selector:function(D,Y){return _.jC(D.entities,"commentSharedEntityPayload",Y)},
selectorArgs:["viewModel.sharedKey"]}),_.x("design:type",Object)],yz.prototype,"commentSharedEntity",void 0);_.q([_.y({selector:function(D,Y){return _.jC(D.entities,"commentEntityPayload",Y)},
selectorArgs:["viewModel.commentKey"]}),_.x("design:type",Object)],yz.prototype,"commentEntity",void 0);_.q([_.y({selector:function(D,Y){return _.jC(D.entities,"commentSurfaceEntityPayload",Y)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.x("design:type",Object)],yz.prototype,"commentSurfaceEntity",void 0);_.q([_.y({selector:JAy,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.x("design:type",Object)],yz.prototype,"toolbarSurface",void 0);_.q([_.y({selector:kC9,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.x("design:type",Object)],yz.prototype,"translateButtonState",void 0);
_.q([_.b("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"backgroundColor",null);_.q([_.y({reflectToAttribute:!0}),_.b("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yz.prototype,"optimalReadingWidthComments",null);_.q([_.fr("ytd-expander"),_.x("design:type",Object)],yz.prototype,"expander",void 0);
_.q([_.Gm("backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yz.prototype,"updateBackgroundColor",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],yz.prototype,"useSmallAvatars",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],yz.prototype,"webWatchCompactComments",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"isReply",null);
_.q([_.b("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"authorThumbnailEndpoint",null);_.q([_.b("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"authorNameEndpoint",null);_.q([_.b("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"authorThumbnail",null);_.q([_.b("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],yz.prototype,"authorTextClass",null);
_.q([_.b("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],yz.prototype,"authorChannelName",null);_.q([_.b("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"publishedTime",null);_.q([_.b("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"publishedTimeCommand",null);
_.q([_.b("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"contentText",null);_.q([_.Gm("contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yz.prototype,"resetExpander",null);_.q([_.b("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yz.prototype,"shouldShowReadMoreInitially",null);
_.q([_.b("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],yz.prototype,"expandText",null);_.q([_.b("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],yz.prototype,"collapseText",null);_.q([_.b("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yz.prototype,"shouldShowTranslateButton",null);
_.q([_.b("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"translateButton",null);_.q([_.b("toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],yz.prototype,"overflowMenuRenderer",null);_.q([_.y(),_.x("design:type",Object)],yz.prototype,"editDialog",void 0);_.q([_.fr("ytd-comment-dialog-renderer"),_.x("design:type",Object)],yz.prototype,"editCommentDialogContainer",void 0);
_.q([_.fr("ytd-comment-reply-dialog-renderer"),_.x("design:type",Object)],yz.prototype,"editReplyDialogContainer",void 0);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yz.prototype,"onYtNavigate",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yz.prototype,"onYtCommentboxDismiss",null);
_.q([_.Fv("yt-commentbox-resize"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yz.prototype,"onYtCommentboxResize",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-comment-view-model"})],yz);
_.L(yz,"ytd-comment-view-model",function(){if(Rfz!==void 0)return Rfz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Rfz=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var NN=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_modern_buttons");D.commentThreadingEnabled=_.f("web_delhi_comment_threads");D.isWatchGrid=_.f("kevlar_watch_grid");D.buttonOverrides=D.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};D.JSC$15787_spinnerEl=null;return D};
_.n(NN,_.N);_.u=NN.prototype;_.u.configureContinuationPathMap=function(){return _.f("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.u.shouldShowExpandedThreads=function(D,Y){return this.commentThreadingEnabled&&!Y&&(D==null?void 0:D.length)>0};
_.u.shouldShowCollapsedThreads=function(D,Y){return this.commentThreadingEnabled&&Y&&D};
_.u.computeThreadRenderer=function(D){return _.A(D,T3b)};
_.u.computeIsContinuationItem=function(D){return!!this.computeContinuationItemRenderer(D)};
_.u.computeButtonRenderer=function(D){return _.A(D,_.qv)};
_.u.computeContinuationItemRenderer=function(D){return _.A(D,_.Y5)};
_.u.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]]"}}}}}};
_.u.attached=function(){this.isShowRepliesVisible=!0};
_.u.dataChanged=function(){var D=this.expanderContents;D&&(D.hidden=!0);this.isLoading=!1};
_.u.endsInContinuation=function(D){return!!D&&D.length>0&&!!this.computeContinuationItemRenderer(D[D.length-1])};
_.u.computeShouldShowHideRepliesButton=function(D,Y){return!D&&Y};
_.u.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.u.isLoadingChanged=function(){this.isLoading&&!this.JSC$15787_spinnerEl&&(this.JSC$15787_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.aU(this.expanderContents).appendChild(this.JSC$15787_spinnerEl));this.JSC$15787_spinnerEl&&(this.JSC$15787_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var D;(D=this.contents)==null||D.classList.remove("reloading")}};
_.u.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var D=_.A(this.data.viewReplies,_.qv);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.u.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var D=_.A(this.data.hideReplies,_.qv);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.u.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var D=_.aU(this.hostElement).querySelector("#expander-contents");D&&(D.hidden=this.isShowRepliesVisible)}};
_.u.computeAlign=function(){if(this.modern){var D;return!((D=this.data)==null?0:D.viewRepliesCreatorThumbnail)}};
_.YF.Object.defineProperties(NN.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var D,Y;return this.endsInContinuation((D=this.data)==null?void 0:D.contents)||this.commentThreadingEnabled&&this.endsInContinuation((Y=this.data)==null?void 0:Y.subThreads)}}});
NN.prototype.isShowMoreChanged=NN.prototype.isShowMoreChanged;NN.prototype.isLoadingChanged=NN.prototype.isLoadingChanged;NN.prototype.triggerFirstContinuation=NN.prototype.triggerFirstContinuation;NN.prototype.dataChanged=NN.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Qw),_.x("design:type",Object)],NN.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],NN.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],NN.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],NN.prototype,"commentThreadingEnabled",void 0);_.q([_.y(),_.x("design:type",Boolean)],NN.prototype,"collapsed",void 0);
_.q([_.y(),_.x("design:type",Function)],NN.prototype,"toggleCollapsed",void 0);_.q([_.y(),_.x("design:type",Boolean)],NN.prototype,"isLoading",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],NN.prototype,"isShowRepliesVisible",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],NN.prototype,"useNewFormatting",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],NN.prototype,"isWatchGrid",void 0);_.q([_.y(),_.x("design:type",Object)],NN.prototype,"buttonOverrides",void 0);
_.q([_.fr("#expander-contents"),_.x("design:type",HTMLElement)],NN.prototype,"expanderContents",void 0);_.q([_.fr("ytd-continuation-item-renderer"),_.x("design:type",Object)],NN.prototype,"continuationItemRenderer",void 0);_.q([_.fr("#contents"),_.x("design:type",HTMLElement)],NN.prototype,"contents",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NN.prototype,"dataChanged",null);
_.q([_.b("data.contents","data.subThreads.*"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],NN.prototype,"hasContinuation",null);_.q([_.Fv("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NN.prototype,"triggerFirstContinuation",null);_.q([_.Gm("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NN.prototype,"isLoadingChanged",null);
_.q([_.Gm("isShowRepliesVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NN.prototype,"isShowMoreChanged",null);_.q([_.h({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],NN);
_.L(NN,"ytd-comment-replies-renderer",function(){if(dz1!==void 0)return dz1;var D=document.createElement("template");_.w(D,'\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="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content 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="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dz1=D},{mode:1});var XtD;var lv=function(){var D=_.N.apply(this,arguments)||this;D.isOpen=!1;D.commentDialog=null;D.useSmallAvatars=_.f("small_avatars_for_comments");D.useSmallAvatarsEngagementPanelOnly=_.f("small_avatars_for_comments_ep");D.placeholderFocusListener=null;D.hasOpenedDialog=!1;D.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return D};
_.n(lv,_.N);_.u=lv.prototype;_.u.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]]"}}}}}};
_.u.ready=function(){var D=this,Y=_.aU(this.hostElement).querySelector("#placeholder-area"),R=_.aU(this.hostElement).querySelector("#simplebox-placeholder"),Z=function(t){t.stopPropagation();t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||D.openDialog()};
this.placeholderFocusListener=Z;R.addEventListener("focus",this.placeholderFocusListener);Y.addEventListener("tap",Z);Y.addEventListener("keypress",Z)};
_.u.maybeRemoveFocusEventListener=function(){var D;(D=this.data)!=null&&D.prepareAccountEndpoint&&!_.f("web_comments_simplebox_modal_focus_on_tap_ks")&&(D=_.aU(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(D.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.u.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.u.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.f("web_comment_simplebox_resolve_polymer_command_ks")?_.GD.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Vu(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);D&&this.ytdOpenPopupBehavior.openPopup(D);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.aU(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.u.onYtCommentboxDismiss=function(D){D.stopPropagation();this.isOpen=!1};
_.u.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.isOpen=!1)};
_.u.computeCommentDialog=function(D){return{placeholderText:D.placeholderText,authorThumbnail:D.authorThumbnail,submitButton:D.submitButton,imageButton:D.imageButton,cancelButton:D.cancelButton,emojiButton:D.emojiButton,emojis:D.emojis,emojiPicker:D.emojiPicker,aadcGuidelinesStateEntityKey:D.aadcGuidelinesStateEntityKey,openAadcDialog:D.openAadcDialog,unicodeEmojisUrl:D.unicodeEmojisUrl}};
_.u.onHideIdentityChip=function(D){_.A(D,aWz)&&this.set("data.placeholderText",_.A(D,aWz).placeholderText)};
lv.prototype.onYtCommentboxDismiss=lv.prototype.onYtCommentboxDismiss;lv.prototype.dataChanged=lv.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],lv.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],lv.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lv.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],lv.prototype,"isOpen",void 0);_.q([_.y(),_.x("design:type",Object)],lv.prototype,"commentDialog",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],lv.prototype,"engagementPanel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lv.prototype,"useSmallAvatars",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lv.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],lv.prototype,"enableCreationBox",void 0);_.q([_.y(),_.x("design:type",Boolean)],lv.prototype,"showCreateDialog",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lv.prototype,"dataChanged",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lv.prototype,"onYtCommentboxDismiss",null);_.q([_.h({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],lv);
_.L(lv,"ytd-comment-simplebox-renderer",function(){if(XtD!==void 0)return XtD;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return XtD=D},{mode:1});var ujU;_.UD("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Ja=function(){var D=_.N.apply(this,arguments)||this;D.addHoverEffect=_.f("swatcheroo_comments_hover_effect");D.useSmallAvatars=_.f("small_avatars_for_comments");D.threadHovered=!1;D.collapsed=!1;D.removed=!1;D.actionMap=D.configureActionMap();D.toggleCollapsed=function(){D.collapsed=!D.collapsed;D.collapsed&&_.f("web_comment_threading_scroll_on_collapse")&&_.CX(D.hostElement,"yt-scroll-to-watch-element",[D.commentElement])};
return D};
_.n(Ja,_.N);_.u=Ja.prototype;_.u.configureActionMap=function(){return _.f("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"}:{}};
_.u.createCommentReplyAction=function(D){D=_.A(D,XP1);if(D!=null&&D.contents){var Y=D.replyToCommentId,R=D.parentCommentId,Z,t=(Z=this.commentViewModel)==null?void 0:Z.commentId;(t===Y||t===R&&!Y)&&this.attachReply(D.contents)}};
_.u.attachReply=function(D){var Y;((Y=this.data)==null?0:Y.replies)?(Y=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+Y+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",Y,0,D):this.push("data.replies.commentRepliesRenderer.subThreads",D)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[D]}})};
_.u.removeCommentAction=function(D){D=_.A(D,WPz);var Y=D==null?void 0:D.commentId,R;Y&&((R=this.commentViewModel)==null?void 0:R.commentId)===Y&&this.maybeRemoveComment(D.actionResult)};
_.u.banAuthorAction=function(D){D=_.A(D,tEU);var Y=D==null?void 0:D.commentId,R;Y&&((R=this.commentViewModel)==null?void 0:R.commentId)===Y&&this.maybeRemoveComment(D.actionResult)};
_.u.hideReportedCommentAction=function(D){D=_.A(D,$ZY);var Y=D==null?void 0:D.commentId,R;Y&&((R=this.commentViewModel)==null?void 0:R.commentId)===Y&&this.maybeRemoveComment(D.actionResult)};
_.u.maybeRemoveComment=function(D){D&&D.status==="STATUS_SUCCEEDED"&&(this.feedbackText=D.feedbackText||_.tu("Comment removed"),this.removed=!0)};
_.u.onTap=function(D){if(this.addHoverEffect&&!this.engagementPanel&&!_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Y;((Y=window.getSelection())==null?0:Y.toString().length)||_.Vu({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.u.attached=function(){var D=this,Y;(Y=this.commentThreadHitbox)==null||Y.addEventListener("mouseover",function(){D.threadHovered=!0});
var R;(R=this.commentThreadHitbox)==null||R.addEventListener("mouseout",function(){D.threadHovered=!1});
var Z;(Z=this.commentThreadHitbox)==null||Z.addEventListener("click",function(){D.maybeToggleCollapsed()})};
_.u.maybeToggleCollapsed=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.replies)==null?void 0:(R=Y.commentRepliesRenderer)==null?void 0:R.subThreads;Z&&(Z.length===1&&_.A(Z[0],_.Y5)||this.toggleCollapsed())};
_.YF.Object.defineProperties(Ja.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.commentViewModel)return _.A(this.data.commentViewModel,fWY)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return _.f("web_delhi_comment_threads")&&!!((D=this.data)==null?0:(Y=D.replies)==null?0:(R=Y.commentRepliesRenderer)==null?0:R.subThreads)}}});
Ja.prototype.onTap=Ja.prototype.onTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ja.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ja.prototype,"addHoverEffect",void 0);
_.q([_.y(),_.x("design:type",Object)],Ja.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ja.prototype,"useSmallAvatars",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ja.prototype,"isSubThread",void 0);_.q([_.fr(".thread-hitbox"),_.x("design:type",HTMLElement)],Ja.prototype,"commentThreadHitbox",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ja.prototype,"threadHovered",void 0);
_.q([_.fr("#comment"),_.x("design:type",HTMLElement)],Ja.prototype,"commentElement",void 0);_.q([_.y(),_.x("design:type",Object)],Ja.prototype,"collapsed",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ja.prototype,"removed",void 0);_.q([_.y(),_.x("design:type",Object)],Ja.prototype,"feedbackText",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ja.prototype,"commentViewModel",null);
_.q([_.b("data.replies"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ja.prototype,"hasSubThreading",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ja.prototype,"engagementPanel",void 0);_.q([_.Fv("tap"),_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ja.prototype,"onTap",null);_.q([_.h({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Ja);
_.L(Ja,"ytd-comment-thread-renderer",function(){if(ujU!==void 0)return ujU;var D=document.createElement("template");_.w(D,'\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]]" 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 collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" 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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return ujU=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var aKD;var km=function(){var D=_.N.apply(this,arguments)||this;D.modernTypography=_.f("web_modern_typography");D.compactHeader=_.f("web_watch_compact_comments_header");D.hidePanelButton=!1;D.isPostSchedulingEnabled=_.f("enable_post_scheduling");D.hasFinishedStamping=!1;D.JSC$15810_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.n(km,_.N);_.u=km.prototype;
_.u.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"}}}};
_.u.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.u.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15810_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.u.onYtServiceRequestSent=function(D,Y){if(!_.f("kevlar_command_handler")&&Y.actions)for(D=0;D<Y.actions.length;D++){var R=Y.actions[D];_.A(R,Ny_)&&_.aU(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.A(R,Ny_))}};
_.u.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var D;if(this.getPrefilledBackstagePostDialog((D=this.data)==null?void 0:D.actions)){_.aU(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var Y=_.aU(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;Y&&_.cy(this,function(){Y.focus();Y.openDialog&&Y.openDialog()})}}else this.hasActionsChange=!0};
_.u.computeIsBackstage=function(D){return D};
_.u.onYtCommentboxDismiss=function(){_.aU(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.u.removePrefilledDialog=function(D){if(D==null?0:D.actions){for(var Y=D.actions.length-1;Y>=0;Y--){var R=void 0;((R=_.A(D.actions[Y],j11))==null?0:R.dialog)&&delete D.actions[Y]}this.set("data",void 0);this.set("data",D)}};
_.u.getPrefilledBackstagePostDialog=function(D){if(D)for(var Y=0;Y<D.length;Y++){var R=D[Y],Z=void 0;if((Z=_.A(R,j11))==null?0:Z.dialog)return _.A(R,j11).dialog}return null};
_.u.computeBackstagePostDialog=function(D){return D&&(this.getPrefilledBackstagePostDialog(D.actions)||D.createRenderer)};
_.u.dataChanged=function(){if(this.data){var D=this.data.customEmojis,Y=this.data.unicodeEmojisUrl;_.BM.clear();Y&&_.uHY(_.BM,Y);D&&_.BM.load(D)}};
_.u.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.aU(this.hostElement).querySelector("ytd-comment-simplebox-renderer");D?D.openDialog():this.JSC$15810_handleOpenPostCommentDialogActionAfterStamp=!0};
_.YF.Object.defineProperties(km.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.f("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t,X,M;return!this.hidePanelButton&&_.f("kevlar_watch_comments_panel_button")&&((M=_.A((D=this.data)==null?void 0:(Y=D.sortMenu)==null?void 0:(R=Y.sortFilterSubMenuRenderer)==null?void 0:(Z=R.subMenuItems)==null?void 0:(t=Z[0])==null?void 0:(X=t.serviceEndpoint)==null?void 0:X.commandMetadata,_.GA))==null?void 0:M.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.fX("MINIPLAYER_EXPAND_LABEL"),text:_.i0(_.fX("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
km.prototype.dataChanged=km.prototype.dataChanged;km.prototype.onYtCommentboxDismiss=km.prototype.onYtCommentboxDismiss;km.prototype.observePrefilledBackstagePostDialog=km.prototype.observePrefilledBackstagePostDialog;km.prototype.onYtServiceRequestSent=km.prototype.onYtServiceRequestSent;km.prototype.onStampFinished=km.prototype.onStampFinished;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],km.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],km.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],km.prototype,"modernTypography",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],km.prototype,"compactHeader",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],km.prototype,"engagementPanel",void 0);_.q([_.y(),_.x("design:type",Object)],km.prototype,"hidePanelButton",void 0);_.q([_.y({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.x("design:type",Boolean)],km.prototype,"isBackstage",void 0);_.q([_.y({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.x("design:type",Object)],km.prototype,"backstagePostDialog",void 0);
_.q([_.y(),_.x("design:type",Object)],km.prototype,"isPostSchedulingEnabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],km.prototype,"useSpaceBetween",null);_.q([_.y({reflectToAttribute:!0}),_.b("data","hidePanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],km.prototype,"showCommentsPanelButton",null);
_.q([_.b("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],km.prototype,"commentsPanelButtonData",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],km.prototype,"onStampFinished",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],km.prototype,"onYtServiceRequestSent",null);
_.q([_.Gm("data.actions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],km.prototype,"observePrefilledBackstagePostDialog",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],km.prototype,"onYtCommentboxDismiss",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],km.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],km);
_.L(km,"ytd-comments-header-renderer",function(){if(aKD!==void 0)return aKD;var D=document.createElement("template");_.w(D,'\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" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return aKD=D},{mode:1});var MZ_;var UQ=function(){return _.N.apply(this,arguments)||this};
_.n(UQ,_.N);_.q([_.y(),_.x("design:type",Object)],UQ.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.q([_.h({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],UQ);
_.L(UQ,"ytd-destination-button-renderer",function(){if(MZ_!==void 0)return MZ_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return MZ_=D},{mode:1});var Cz4;var Ku=function(){var D=_.N.apply(this,arguments)||this;D.isRichGrid=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};D.modernTypography=_.f("web_modern_typography");return D};
_.n(Ku,_.N);_.u=Ku.prototype;_.u.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.u.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.u.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.u.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var D;if((D=this.data)==null||!D.isExpanded){D=this.hostElement.clientWidth;var Y;if(D&&(Y=this.data)!=null&&Y.destinationButtons){Y=Math.floor((D+4)/214);D=this.data.destinationButtons.length;var R=Math.ceil(D/Y);this.fullyVisibleRows=D%Y===1&&R===2?1:Math.min(R,2);this.isShowMoreVisible=this.fullyVisibleRows<R}}}};
_.u.updateRichGridDestinationButtonsVisibility=function(){var D,Y;if(this.isRichGrid&&((D=this.data)==null||!D.isExpanded)&&(Y=this.data)!=null&&Y.destinationButtons){D=this.richGridItemsPerRow+1;Y=this.data.destinationButtons.length;var R=Math.ceil(Y/D);this.fullyVisibleRows=Y%D===1&&R===2?1:Math.min(R,2);this.isShowMoreVisible=this.fullyVisibleRows<R}};
_.u.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ku.prototype.updateRichGridDestinationButtonsVisibility=Ku.prototype.updateRichGridDestinationButtonsVisibility;_.q([_.y(),_.x("design:type",Object)],Ku.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Number)],Ku.prototype,"fullyVisibleRows",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Ku.prototype,"isShowMoreVisible",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ku.prototype,"isRichGrid",void 0);
_.q([_.y({selector:_.UM,value:0}),_.x("design:type",Number)],Ku.prototype,"richGridItemsPerRow",void 0);_.q([_.y(),_.x("design:type",Object)],Ku.prototype,"gridStateActionMap",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ku.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Ku.prototype,"ytdReduxBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ku.prototype,"modernTypography",void 0);_.q([_.Gm("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ku.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.q([_.h({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Ku);
_.L(Ku,"ytd-destination-shelf-renderer",function(){if(Cz4!==void 0)return Cz4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Cz4=D},{mode:1});var WqU;var ha=function(){return _.N.apply(this,arguments)||this};
_.n(ha,_.N);ha.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ha.prototype,"data",void 0);_.q([_.h({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],ha);
_.L(ha,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(WqU!==void 0)return WqU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return WqU=D},{mode:1});var zf1;var Lu=function(){var D=_.N.apply(this,arguments)||this;D.disableAnimation=!1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;return D};
_.n(Lu,_.N);Lu.prototype.onTap=function(D){D.preventDefault();this.data&&_.MX(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.YF.Object.defineProperties(Lu.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 D,Y,R,Z,t;return((D=this.data)==null?0:D.checked)?(Y=this.data)==null?void 0:(R=Y.onStateIcon)==null?void 0:R.iconType:(Z=this.data)==null?void 0:(t=Z.defaultStateIcon)==null?void 0:t.iconType}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Lu.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Lu.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Lu.prototype,"disableAnimation",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Lu.prototype,"isSlimlineSurvey",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Lu.prototype,"isSlimlineSurveyFollowUp",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Lu.prototype,"isShortsStyle",void 0);_.q([_.b("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Lu.prototype,"isAnimatedIcon",null);
_.q([_.b("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Number),_.x("design:paramtypes",[])],Lu.prototype,"iconSize",null);_.q([_.b("isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Lu.prototype,"isDarkTheme",null);_.q([_.b("data.checked"),_.x("design:type",Object),_.x("design:paramtypes",[])],Lu.prototype,"icon",null);_.q([_.h({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Lu);
_.L(Lu,"ytd-rating-survey-option-renderer",function(){if(zf1!==void 0)return zf1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return zf1=D},{mode:2});var SI4;var mr=function(){var D=_.N.apply(this,arguments)||this;D.firstResponseText=null;D.lastResponseText=null;D.selectedNonStarOption=null;D.hideOptions=!1;D.hideUndoButton=!0;D.disableAnimation=!1;D.showResponseRangeText=!1;D.selectedRatingIndex=-1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.slimlineSurveyRatingSelectedIndex=-1;return D};
_.n(mr,_.N);_.u=mr.prototype;_.u.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.u.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.u.onOptionChange=function(D,Y){var R=this;D=Y.onStateIcon&&Y.defaultStateIcon&&Y.onStateIcon.iconType===Y.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(M,W){M.responseText===Y.responseText?R.isSlimlineSurvey?(R.selectedRatingIndex=W,R.ytdReduxBehavior.dispatch(ZAb(W))):(R.setSurveyOptionValue(W,!0,"checked"),R.setSurveyOptionValue(W,!0,"selected")):(R.setSurveyOptionValue(W,!1,"checked"),R.setSurveyOptionValue(W,
!1,"selected"))});
else if(D)this.selectedNonStarOption=Y,this.hideOptions=!0;else{var Z=this.ytRendererBehavior.getSimpleString(Y.responseText),t=!0;this.getOptionRenderers().forEach(function(M,W){R.setSurveyOptionValue(W,t,"checked");R.setSurveyOptionValue(W,!1,"selected");R.ytRendererBehavior.getSimpleString(M.responseText)===Z&&(t=!1,R.setSurveyOptionValue(W,!0,"selected"))})}D=Y.responseEndpoint;
var X;Y.followUpCommand&&(X=_.A(Y.followUpCommand,Kk1));this.isSlimlineSurvey?(this.resetComponent(),_.CX(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.CX(this.hostElement,"ytd-inline-survey-rating-select-action",[D,X])};
_.u.showSelectedOption=function(){var D=this;_.yc.addJob(function(){var Y=D.getOptionRenderers()[D.slimlineSurveyRatingSelectedIndex];D.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),Y)},8,100)};
_.u.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(D){var Y;return(Y=_.A(D,Lkz))!=null?Y:{}}):[]};
_.u.onUndoClick=function(){this.resetComponent();_.CX(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.u.setSurveyOptionValue=function(D,Y,R){this.notifyPath("data.ratings."+D+".ratingSurveyOptionRenderer."+R);this.set("data.ratings."+D+".ratingSurveyOptionRenderer."+R,Y)};
_.u.resetComponent=function(){var D=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var Y=this.getOptionRenderers(),R,Z;this.firstResponseText=(Z=(R=Y[0])==null?void 0:R.responseText)!=null?Z:null;var t,X;this.lastResponseText=(X=(t=Y[Y.length-1])==null?void 0:t.responseText)!=null?X:null;Y.forEach(function(M,W){D.setSurveyOptionValue(W,!1,"checked");D.setSurveyOptionValue(W,!1,"selected")})};
_.YF.Object.defineProperties(mr.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
mr.prototype.onOptionChange=mr.prototype.onOptionChange;mr.prototype.dataChanged=mr.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],mr.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],mr.prototype,"firstResponseText",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"lastResponseText",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"selectedNonStarOption",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"hideOptions",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"hideUndoButton",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"disableAnimation",void 0);
_.q([_.y(),_.x("design:type",Object)],mr.prototype,"showResponseRangeText",void 0);_.q([_.y(),_.x("design:type",Object)],mr.prototype,"selectedRatingIndex",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mr.prototype,"isSlimlineSurvey",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mr.prototype,"isSlimlineSurveyFollowUp",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mr.prototype,"isShortsStyle",void 0);_.q([_.y({selector:function(D){return D.ui.slimlineSurveyRatingSelectedIndex}}),
_.x("design:type",Object)],mr.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.q([_.b("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],mr.prototype,"isSingleSelect",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mr.prototype,"dataChanged",null);
_.q([_.Fv("ytd-rating-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],mr.prototype,"onOptionChange",null);_.q([_.h({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],mr);
_.L(mr,"ytd-rating-survey-renderer",function(){if(SI4!==void 0)return SI4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return SI4=D},{mode:1});var T8b;var jW7;var IKE;var Gsb=(V_.FIRSTDAYOFWEEK+1)%7,FqY=function(D,Y,R,Z){var t="";if(Z.selection&&TTr(Z.selection))IZ(D,Z.selection)&&(t+=" selected");else if(Z.selection&&jCi(Z.selection)){var X=Z.selection.selectionState||"START_DATE";IZ(D,Z.selection.start)&&(t+=" period-start ",X==="START_DATE"&&(t+="selected"));IZ(D,Z.selection.end)&&(t+=" period-end ",X==="END_DATE"&&(t+="selected"));FF(D,Z.selection.start)||FF(Z.selection.end,D)||(t+=" highlighted")}if(FF(Y,Z.start)||FF(Z.end,Y))t+=" disabled";Z.circleToday&&
IZ(Y,R)&&(t+=" today");return t};var qN=function(){return _.N.apply(this,arguments)||this};
_.n(qN,_.N);_.u=qN.prototype;_.u.attached=function(){var D=this;_.cy(this,function(){D.JSC$15844_calendarMain.scrollHeight>0&&(D.calendarConfig.selection?D.scrollToDate(I9n(D.calendarConfig.selection)):D.scrollToDate(D.calendarConfig.end))})};
_.u.updateSelection=function(D){D=V1b(Object.assign({},this.calendarConfig,{selection:D}),FqY);this.splice.apply(this,["renderData.months",0,D.length].concat(_.oK(D)))};
_.u.scrollToDate=function(D){this.renderData&&(D=f9S(D,this.renderData),D!==void 0&&this.JSC$15844_calendarMain.scrollToIndex(D))};
_.u.scrollToNextMonth=function(){this.JSC$15844_calendarMain.scrollToIndex(this.JSC$15844_calendarMain.firstVisibleIndex+1)};
_.u.scrollToPrevMonth=function(){this.JSC$15844_calendarMain.firstVisibleIndex===0&&this.JSC$15844_calendarMain.scrollTo(0,0);this.JSC$15844_calendarMain.scrollToIndex(this.JSC$15844_calendarMain.firstVisibleIndex-1)};
_.u.handleDayClick=function(D){_.CX(this.hostElement,"ytd-calendar-date-clicked",[D.model.day.date])};
_.u.handleDayMouseDown=function(D){D.preventDefault();_.CX(this.hostElement,"ytd-calendar-date-mousedown",[D.model.day.date])};
_.u.handleDayMouseUp=function(D){_.CX(this.hostElement,"ytd-calendar-date-mouseup",[D.model.day.date])};
_.u.handleDayMouseEnter=function(D){D.preventDefault();_.CX(this.hostElement,"ytd-calendar-date-mouseenter",[D.model.day.date])};
_.u.handleDayMouseLeave=function(D){_.CX(this.hostElement,"ytd-calendar-date-mouseleave",[D.model.day.date])};
_.YF.Object.defineProperties(qN.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var D=this.calendarConfig,Y=FqY;Y=Y===void 0?FqY:Y;for(var R=[],Z=0;Z<7;Z++)R.push(V_.NARROWWEEKDAYS[(Z+Gsb)%7]);return{months:V1b(D,Y),daysOfWeekLabel:R}}}});
_.q([_.y(),_.x("design:type",Object)],qN.prototype,"calendarConfig",void 0);_.q([_.fr("#calendar-main"),_.x("design:type",Object)],qN.prototype,"JSC$15844_calendarMain",void 0);_.q([_.b("calendarConfig"),_.x("design:type",Object),_.x("design:paramtypes",[])],qN.prototype,"renderData",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],qN);
_.L(qN,"ytd-scrollable-calendar",function(){if(IKE!==void 0)return IKE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return IKE=D},{mode:2});var GOE;var VZ1;var Hd=function(){var D=_.N.apply(this,arguments)||this;D.hideCharCounter=!1;D.hideLabel=!1;D.noLabelFloat=!1;D.autoValidate=!0;D.invalid=!1;D.disabled=!1;D.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return D};
_.n(Hd,_.N);_.u=Hd.prototype;_.u.reset=function(D){this.value=D&&this.data?this.data.value=D:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.u.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.u.focusTextInput=function(){this.input.focus()};
_.u.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()};
_.u.valueChanged=function(){var D,Y;if(((D=this.data)==null?0:D.value)||((Y=this.data)==null?void 0:Y.value)==="")this.value=this.data.value;else{var R;((R=this.data)==null?void 0:R.value)!==void 0||this.value||(this.value="")}};
_.u.computeLabel=function(D,Y){return Y?"":_.OM(D)};
_.u.computeAriaLabel=function(D,Y){return Y?_.OM(D):""};
_.u.computeErrorMessage=function(D,Y,R,Z){!D&&Y?D=R||this.strings.REQUIRED_LABEL:(D=_.OM(Z),D=_.CM(D,"&")?"document"in _.ZU?fUE(D):ejL(D):D);return D};
_.u.computeType=function(D){return D==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.u.onTextValueChanged=function(D){this.value=D.detail.value;var Y;(Y=this.onValueChanged)==null||Y.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.u.handleUpdateTextInputFormFieldRendererCommand=function(D){(D=_.A(D,t_b))&&this.data&&this.data.id===D.id&&(D.invalid!==void 0&&(this.invalid=D.invalid),D.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",D.invalidValueErrorMessage))};
_.u.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("value-changed",this.value))};
_.u.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.YF.Object.defineProperties(Hd.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var D;return!((D=this.data)==null||!D.isMultiline)}}});
Hd.prototype.valueChangedForBinding=Hd.prototype.valueChangedForBinding;Hd.prototype.valueChanged=Hd.prototype.valueChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Hd.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Hd.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],Hd.prototype,"value",void 0);_.q([_.y(),_.x("design:type",String)],Hd.prototype,"pattern",void 0);_.q([_.y(),_.x("design:type",String)],Hd.prototype,"errorMessage",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Hd.prototype,"componentStyle",void 0);_.q([_.y(),_.x("design:type",Object)],Hd.prototype,"hideCharCounter",void 0);
_.q([_.y(),_.x("design:type",Object)],Hd.prototype,"hideLabel",void 0);_.q([_.y(),_.x("design:type",Object)],Hd.prototype,"noLabelFloat",void 0);_.q([_.y(),_.x("design:type",Function)],Hd.prototype,"onValueChanged",void 0);_.q([_.y(),_.x("design:type",Boolean)],Hd.prototype,"isMultilineOverride",void 0);_.q([_.y(),_.x("design:type",Object)],Hd.prototype,"autoValidate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"invalid",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"disabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hd.prototype,"enableOverlayTheme",void 0);_.q([_.y({value:{REQUIRED_LABEL:_.fX("REQUIRED_LABEL",void 0,"Required")}}),_.x("design:type",Object)],Hd.prototype,"strings",void 0);_.q([_.fr("#input"),_.x("design:type",Object)],Hd.prototype,"input",void 0);
_.q([_.b("data","isMultilineOverride"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hd.prototype,"isMultiline",null);_.q([_.rd("data.value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hd.prototype,"valueChanged",null);_.q([_.Gm("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hd.prototype,"valueChangedForBinding",null);_.q([_.Lr({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Hd);
_.L(Hd,"yt-text-input-form-field-renderer",function(){if(VZ1===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;GOE===void 0&&(GOE=document.createElement("template"));var Z=GOE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);VZ1=D}D=VZ1;return D},{mode:2});var xm=function(){var D=_.N.apply(this,arguments)||this;D.data=void 0;D.selectionState="START_DATE";D.isStartDateInvalid=!1;D.isEndDateInvalid=!1;D.autoapply=!1;D.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 D};
_.n(xm,_.N);_.u=xm.prototype;_.u.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"}}}}};
_.u.focus=function(){this.startDateInput.focus()};
_.u.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Gb(this.data.selection.start),end:Gb(this.data.selection.end)})};
_.u.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.u.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.qU(this.selectionState)}};
_.u.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.u.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.u.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.u.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,Y=D.end;D=ACb({start:D.start,end:this.endDate||Y},this.startDateInput.value||"");this.isStartDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection=this.endDate?{start:D,end:this.endDate}:D,this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.u.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,Y=D.start;D=ACb({start:this.startDate||Y,end:D.end},this.endDateInput.value||"");this.isEndDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection={start:this.startDate,end:D},this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.u.handleCalendarDateClicked=function(D){var Y=this.selection&&I9n(this.selection),R=this.selection&&FR$(this.selection);Y&&!FF(D,Y)&&this.selectionState==="END_DATE"?(this.selection={start:Y,end:D},this.selectionState="START_DATE"):(R&&!FF(R,D)?this.selection={start:D,end:R}:this.selection=D,this.selectionState="END_DATE")};
_.u.handleCalendarDateMouseDown=function(D){this.selection&&!TTr(this.selection)&&(this.dragPivot=IZ(D,this.selection.start)?this.selection.end:IZ(D,this.selection.end)?this.selection.start:D)};
_.u.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.u.handleCalendarDateMouseEnter=function(D){this.dragPivot&&(this.selection={start:function(Y,R){return FF(Y,R)?Y:R}(this.dragPivot,D),
end:function(Y,R){return FF(Y,R)?R:Y}(this.dragPivot,D)},this.dragPivot||(this.selectionState="START_DATE"))};
_.u.handleCalendarDateMouseLeave=function(){};
_.u.handleCalendarSubmitDateRange=function(){this.selection&&!TTr(this.selection)&&_.CX(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.u.updateInvalidState=function(){var D=function(Y,R){R?Y.setAttribute("invalid",""):Y.removeAttribute("invalid")};
D(this.startDateInput,this.isStartDateInvalid);D(this.endDateInput,this.isEndDateInvalid)};
_.u.updateDateStrings=function(){this.selection&&(TTr(this.selection)?Saj(this.selection):(Saj(this.selection.start),Saj(this.selection.end)))};
_.u.updateCalendarSelection=function(D){this.calendar.updateSelection(Object.assign({},D,{selectionState:this.selectionState}))};
_.u.updateIsStartDateInvalidFromBinding=function(D){this.isStartDateInvalid=D.detail.value};
_.u.updateIsEndDateInvalidFromBinding=function(D){this.isEndDateInvalid=D.detail.value};
_.u.updateStartDateStringFromBinding=function(){};
_.u.updateEndDateStringFromBinding=function(){};
_.YF.Object.defineProperties(xm.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Gb(this.data.dateRangeStart),end:Gb(this.data.dateRangeEnd),selection:{start:Gb(this.data.selection.start),end:Gb(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&I9n(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&FR$(this.selection)}}});
xm.prototype.resetTextboxes=xm.prototype.resetTextboxes;xm.prototype.observeSelection=xm.prototype.observeSelection;xm.prototype.dataChanged=xm.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],xm.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#calendar"),_.x("design:type",Object)],xm.prototype,"calendar",void 0);
_.q([_.fr("#start-date"),_.x("design:type",Object)],xm.prototype,"startDateInput",void 0);_.q([_.fr("#end-date"),_.x("design:type",Object)],xm.prototype,"endDateInput",void 0);_.q([_.y(),_.x("design:type",Object)],xm.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],xm.prototype,"selection",void 0);_.q([_.y(),_.x("design:type",String)],xm.prototype,"selectionState",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xm.prototype,"calendarConfig",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xm.prototype,"errorMessage",null);_.q([_.b("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],xm.prototype,"startDate",null);_.q([_.b("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],xm.prototype,"endDate",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xm.prototype,"dataChanged",null);
_.q([_.Gm("selection","selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xm.prototype,"observeSelection",null);_.q([_.Gm("selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xm.prototype,"resetTextboxes",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],xm);
_.L(xm,"ytd-date-period-picker-renderer",function(){if(jW7!==void 0)return jW7;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return jW7=D},{mode:1});var Pd=function(){var D=_.N.apply(this,arguments)||this;var Y={};D.actionMap=(Y["ytd-date-period-picker-apply"]="handleDateRangeUpdated",Y);return D};
_.n(Pd,_.N);Pd.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Pd.prototype.handleDateRangeUpdated=function(){};
_.q([_.y(),_.x("design:type",Object)],Pd.prototype,"data",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Pd.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pd.prototype,"rendererstamperBehavior",void 0);_.q([_.h({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Pd);
_.L(Pd,"ytd-report-history-section-header-renderer",function(){if(T8b!==void 0)return T8b;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return T8b=D},{mode:1});var fKU;var ef1;var AOY;var Qz=function(){return _.N.apply(this,arguments)||this};
_.n(Qz,_.N);_.YF.Object.defineProperties(Qz.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?0:(Y=D.icon)==null?0:Y.iconType)?_.IT(this.data.icon.iconType):""}}});
_.q([_.y(),_.x("design:type",Object)],Qz.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Qz.prototype,"icon",null);_.q([_.h({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Qz);
_.L(Qz,"ytd-report-history-table-text-cell-renderer",function(){if(AOY!==void 0)return AOY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return AOY=D},{mode:1});var Bd=function(){return _.N.apply(this,arguments)||this};
_.n(Bd,_.N);Bd.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Bd.prototype,"data",void 0);_.q([_.h({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Bd);
_.L(Bd,"ytd-report-history-table-reason-cell-renderer",function(){if(ef1!==void 0)return ef1;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ef1=D},{mode:1});var pu=function(){return _.N.apply(this,arguments)||this};
_.n(pu,_.N);pu.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"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pu.prototype,"rendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pu.prototype,"data",void 0);_.q([_.h({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],pu);
_.L(pu,"ytd-report-history-table-cell-renderer",function(){if(fKU!==void 0)return fKU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return fKU=D},{mode:1});var npE;var EQ=function(){var D=_.N.apply(this,arguments)||this;D.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 D};
_.n(EQ,_.N);EQ.prototype.onDataChanged=function(){var D;if((D=this.data)==null?0:D.style)this.componentStyle=this.getStyleName(this.data.style)};
EQ.prototype.getCellForColumn=function(D){return this.cells.find(function(Y){var R;return((R=_.A(Y==null?void 0:Y.cell,HfU)||_.A(Y==null?void 0:Y.cell,qSL))==null?void 0:R.columnId)===D.type})};
EQ.prototype.getClassForColumn=function(D){switch(D){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
EQ.prototype.getStyleName=function(D){switch(D){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.YF.Object.defineProperties(EQ.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.cells)||[]).map(function(Y){return _.A(Y,mlU)})}}});
EQ.prototype.onDataChanged=EQ.prototype.onDataChanged;_.q([_.y(),_.x("design:type",Object)],EQ.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Array)],EQ.prototype,"columnRenderData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],EQ.prototype,"componentStyle",void 0);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],EQ.prototype,"cells",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EQ.prototype,"onDataChanged",null);_.q([_.h({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],EQ);
_.L(EQ,"ytd-report-history-table-row-renderer",function(){if(npE!==void 0)return npE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return npE=D},{mode:1});var rOb;var wtE;var ngi={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},rC5={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var gl=function(){return _.N.apply(this,arguments)||this};
_.n(gl,_.N);gl.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"}}}}}};
gl.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.YF.Object.defineProperties(gl.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.columns)?bQ$(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return vgy(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var D=this.tableSpec,Y=ngi;Y=Y===void 0?rC5:Y;Y=ogn(D.columnDimensions,D.columnsToShow||[],Y);D=0;Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,D+=R.minWidth+R.paddingLeft+R.paddingRight;return D}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.q([_.v(_.Qw),_.x("design:type",Object)],gl.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gl.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],gl.prototype,"tableSpec",null);_.q([_.b("tableSpec"),_.x("design:type",Array),_.x("design:paramtypes",[])],gl.prototype,"columnRenderData",null);
_.q([_.b("tableSpec"),_.x("design:type",Number),_.x("design:paramtypes",[])],gl.prototype,"totalMinWidth",null);_.q([_.b("totalMinWidth"),_.x("design:type",String),_.x("design:paramtypes",[])],gl.prototype,"tableWidthStyle",null);_.q([_.h({is:"ytd-table-renderer",disableElementRegistration:!0})],gl);
_.L(gl,"ytd-table-renderer",function(){if(wtE!==void 0)return wtE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return wtE=D},{mode:1});var dl=function(){return _.N.apply(this,arguments)||this};
_.n(dl,_.N);dl.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}}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dl.prototype,"data",void 0);_.q([_.h({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],dl);
_.L(dl,"ytd-report-reason-history-modal-renderer",function(){if(rOb!==void 0)return rOb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rOb=D},{mode:1});var $dE;var vpV;var opD;var iv=function(){return _.N.apply(this,arguments)||this};
_.n(iv,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iv.prototype,"data",void 0);_.q([_.h({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],iv);
_.L(iv,"ytd-profile-column-stats-entry-renderer",function(){if(opD!==void 0)return opD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return opD=D},{mode:1});var b64;var OQ=function(){return _.N.apply(this,arguments)||this};
_.n(OQ,_.N);OQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],OQ.prototype,"data",void 0);_.q([_.h({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],OQ);
_.L(OQ,"ytd-profile-column-stats-renderer",function(){if(b64!==void 0)return b64;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return b64=D},{mode:1});var yO4;var cd=function(){return _.N.apply(this,arguments)||this};
_.n(cd,_.N);_.YF.Object.defineProperties(cd.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var Y,R;D=(Y=this.data)==null?void 0:(R=Y.thumbnail)==null?void 0:R.thumbnails;var Z;return D&&((Z=D[0])==null?void 0:Z.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var Y,R;D=(Y=this.data)==null?void 0:(R=Y.thumbnail)==null?void 0:R.thumbnails;var Z;return D&&((Z=D[0])==null?void 0:Z.height)||80}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],cd.prototype,"componentStyle",void 0);_.q([_.b("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],cd.prototype,"thumbnailWidth",null);
_.q([_.b("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],cd.prototype,"thumbnailHeight",null);_.q([_.h({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],cd);
_.L(cd,"ytd-profile-column-user-info-renderer",function(){if(yO4!==void 0)return yO4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return yO4=D},{mode:1});var DM=function(){return _.N.apply(this,arguments)||this};
_.n(DM,_.N);DM.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]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DM.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],DM.prototype,"componentStyle",void 0);_.q([_.h({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],DM);
_.L(DM,"ytd-profile-column-renderer",function(){if(vpV!==void 0)return vpV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return vpV=D},{mode:1});var Yq=function(){var D=_.N.apply(this,arguments)||this;D.componentStyle="NON_CENTERED_PROFILE";return D};
_.n(Yq,_.N);Yq.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Yq.prototype.getIcon=function(D){return D?"settings:"+D.toLowerCase():null};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yq.prototype,"data",void 0);_.q([_.h({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Yq);
_.L(Yq,"ytd-page-introduction-renderer",function(){if($dE!==void 0)return $dE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $dE=D},{mode:1});var N84;var Ru=function(){return _.N.apply(this,arguments)||this};
_.n(Ru,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ru.prototype,"data",void 0);_.q([_.h({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Ru);
_.L(Ru,"ytd-report-description-renderer",function(){if(N84!==void 0)return N84;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return N84=D},{mode:1});var lKz;var JOL;var ZM=function(){return _.N.apply(this,arguments)||this};
_.n(ZM,_.N);ZM.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ZM.prototype,"data",void 0);_.q([_.h({is:"ytd-video-report-renderer",disableElementRegistration:!0})],ZM);
_.L(ZM,"ytd-video-report-renderer",function(){if(JOL!==void 0)return JOL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return JOL=D},{mode:1});var kOU;_.UD("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.UD("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var tX=function(){return _.N.apply(this,arguments)||this};
_.n(tX,_.N);tX.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]]"}}}}}};
tX.prototype.computeMessageStyle=function(D){return D};
tX.prototype.computeButtonOverride=function(D){var Y;if((D==null?0:(Y=D.style)==null?0:Y.value)&&D.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tX.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],tX.prototype,"shelf",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],tX.prototype,"panel",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.x("design:type",Boolean)],tX.prototype,"componentStyle",void 0);_.q([_.y({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],tX.prototype,"buttonOverride",void 0);_.q([_.h({is:"ytd-message-renderer",disableElementRegistration:!0})],tX);
_.L(tX,"ytd-message-renderer",function(){if(kOU!==void 0)return kOU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return kOU=D},{mode:1});var sA=function(){return _.N.apply(this,arguments)||this};
_.n(sA,_.N);sA.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"}}}};
sA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
sA.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.YF.Object.defineProperties(sA.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!(((D=this.data)==null?0:D.header)&&((Y=this.data)==null?0:Y.table))}}});
sA.prototype.onRequestError=sA.prototype.onRequestError;_.q([_.v(_.Qw),_.x("design:type",Object)],sA.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sA.prototype,"data",void 0);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],sA.prototype,"isUnifiedReportHistory",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sA.prototype,"onRequestError",null);_.q([_.h({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],sA);
_.L(sA,"ytd-report-history-section-renderer",function(){if(lKz!==void 0)return lKz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return lKz=D},{mode:1});var Udz;var Xd=function(){var D=_.N.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.n(Xd,_.N);Xd.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Xd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Xd.prototype,"answerExpanded",void 0);_.q([_.h({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Xd);
_.L(Xd,"ytd-handles-claiming-faq-renderer",function(){if(Udz!==void 0)return Udz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Udz=D},{mode:1});var Kqz;var hfz=function(){return _.N.apply(this,arguments)||this};
_.n(hfz,_.N);_.q([_.y(),_.x("design:type",Object)],hfz.prototype,"data",void 0);_.q([_.h({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],hfz);
_.L(hfz,"ytd-handles-claiming-faq-section-renderer",function(){if(Kqz!==void 0)return Kqz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Kqz=D},{mode:1});var Lqz;var u5=function(){var D=_.N.apply(this,arguments)||this;D.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";D.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";D.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";D.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";D.leftSquiggly=D.leftSquigglyLight;D.rightSquiggly=D.rightSquigglyLight;
D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return D};
_.n(u5,_.N);_.u=u5.prototype;_.u.updateLeftSquigglyStyle=function(){_.SN(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.u.updateRightSquigglyStyle=function(){_.SN(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.u.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),D?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
u5.prototype.updateRightSquigglyStyle=u5.prototype.updateRightSquigglyStyle;u5.prototype.updateLeftSquigglyStyle=u5.prototype.updateLeftSquigglyStyle;_.q([_.y(),_.x("design:type",Object)],u5.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],u5.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",String)],u5.prototype,"leftSquiggly",void 0);_.q([_.y(),_.x("design:type",String)],u5.prototype,"rightSquiggly",void 0);
_.q([_.Gm("leftSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u5.prototype,"updateLeftSquigglyStyle",null);_.q([_.Gm("rightSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u5.prototype,"updateRightSquigglyStyle",null);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],u5.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],u5.prototype,"actionButtonOverride",void 0);_.q([_.h({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],u5);
_.L(u5,"ytd-handles-claiming-header-renderer",function(){if(Lqz!==void 0)return Lqz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Lqz=D},{mode:1});var mdL;var au=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";D.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";D.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";D.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
D.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";D.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";D.image0SquigglyBackground=D.image0LightSquigglyBackground;D.image1SquigglyBackground=D.image1LightSquigglyBackground;D.image3SquigglyBackground=D.image3LightSquigglyBackground;return D};
_.n(au,_.N);_.u=au.prototype;_.u.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.u.onDataChanged=function(){this.updateTitleAndImages()};
_.u.onThemeChanged=function(){this.updateTitleAndImages()};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.u.updateImage0SquigglyBackground=function(){_.SN(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.u.updateImage1SquigglyBackground=function(){_.SN(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.u.updateImage3SquigglyBackground=function(){_.SN(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.u.updateTitleAndImages=function(){var D,Y;((D=this.data)==null?void 0:(Y=D.titleImages)==null?void 0:Y.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))};
au.prototype.updateImage3SquigglyBackground=au.prototype.updateImage3SquigglyBackground;au.prototype.updateImage1SquigglyBackground=au.prototype.updateImage1SquigglyBackground;au.prototype.updateImage0SquigglyBackground=au.prototype.updateImage0SquigglyBackground;au.prototype.onThemeChanged=au.prototype.onThemeChanged;au.prototype.onDataChanged=au.prototype.onDataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],au.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],au.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"title0",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"title1",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"title2",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"title3",void 0);
_.q([_.y(),_.x("design:type",Object)],au.prototype,"title4",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"image0",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"image1",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"image2",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"image3",void 0);_.q([_.y(),_.x("design:type",Object)],au.prototype,"image4",void 0);_.q([_.y(),_.x("design:type",String)],au.prototype,"image0SquigglyBackground",void 0);
_.q([_.y(),_.x("design:type",String)],au.prototype,"image1SquigglyBackground",void 0);_.q([_.y(),_.x("design:type",String)],au.prototype,"image3SquigglyBackground",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],au.prototype,"onDataChanged",null);_.q([_.Gm("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],au.prototype,"onThemeChanged",null);
_.q([_.Gm("image0SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],au.prototype,"updateImage0SquigglyBackground",null);_.q([_.Gm("image1SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],au.prototype,"updateImage1SquigglyBackground",null);
_.q([_.Gm("image3SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],au.prototype,"updateImage3SquigglyBackground",null);_.q([_.h({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],au);
_.L(au,"ytd-handles-claiming-title-images-section-renderer",function(){if(mdL!==void 0)return mdL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return mdL=D},{mode:1});var qIL;var Mu=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(Mu,_.N);Mu.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
Mu.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
Mu.prototype.onCopyButtonClick=function(){var D=this,Y,R,Z;return _.C(function(t){return(Y=D.data)!=null&&Y.primaryChannelUrl?t.yield(navigator.clipboard.writeText(((R=D.data)==null?0:R.encodedChannelUrl)?D.data.encodedChannelUrl:"https://"+_.OM((Z=D.data)==null?void 0:Z.primaryChannelUrl)),0):t.jumpTo(0)})};
_.q([_.y(),_.x("design:type",Object)],Mu.prototype,"data",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Mu.prototype,"ytComponentBehavior",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Mu.prototype,"isDarkTheme",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.q([_.h({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Mu);
_.L(Mu,"ytd-handles-claiming-update-social-renderer",function(){if(qIL!==void 0)return qIL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return qIL=D},{mode:1});var H6L;var C1=function(){var D=_.N.apply(this,arguments)||this;D.JSC$15938_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";D.JSC$15938_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.squigglyBackground=D.JSC$15938_squigglyBackgroundLight;return D};
_.n(C1,_.N);C1.prototype.updateSquigglyBackgroundStyle=function(){_.SN(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
C1.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.squigglyBackground=D?this.JSC$15938_squigglyBackgroundDark:this.JSC$15938_squigglyBackgroundLight};
C1.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$15938_squigglyBackgroundDark:this.JSC$15938_squigglyBackgroundLight)};
C1.prototype.updateSquigglyBackgroundStyle=C1.prototype.updateSquigglyBackgroundStyle;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],C1.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],C1.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],C1.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",String)],C1.prototype,"squigglyBackground",void 0);_.q([_.Gm("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C1.prototype,"updateSquigglyBackgroundStyle",null);_.q([_.h({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],C1);
_.L(C1,"ytd-handles-claiming-vanity-info-renderer",function(){if(H6L!==void 0)return H6L;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return H6L=D},{mode:1});var xdb;var W7=function(){var D=_.N.apply(this,arguments)||this;D.JSC$15941_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";D.JSC$15941_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";D.squigglyBackground=D.JSC$15941_squigglyBackgroundLight;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(W7,_.N);_.u=W7.prototype;_.u.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$15941_squigglyBackgroundDark:this.JSC$15941_squigglyBackgroundLight)};
_.u.updateSquigglyBackgroundStyle=function(){_.SN(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.u.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.u.detached=function(){this.stop()};
_.u.stop=function(){this.playerElement.stop()};
_.u.setupVideoPlayer=function(){var D=this,Y,R;return _.C(function(Z){Y=D.data.videoId;R="http://i1.ytimg.com/vi/"+Y+"/maxresdefault.jpg";D.playerElement.loadVideoWithPlayerVars({video_id:Y,iurlhq:R});_.V9(Z)})};
W7.prototype.onDataChanged=W7.prototype.onDataChanged;W7.prototype.updateSquigglyBackgroundStyle=W7.prototype.updateSquigglyBackgroundStyle;_.q([_.y({value:!1}),_.x("design:type",Boolean)],W7.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",String)],W7.prototype,"squigglyBackground",void 0);_.q([_.fr("#player"),_.x("design:type",Object)],W7.prototype,"playerElement",void 0);_.q([_.y(),_.x("design:type",Object)],W7.prototype,"data",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],W7.prototype,"ytActionHandlerBehavior",void 0);_.q([_.Gm("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W7.prototype,"updateSquigglyBackgroundStyle",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W7.prototype,"onDataChanged",null);
_.q([_.h({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],W7);
_.L(W7,"ytd-handles-claiming-video-item-renderer",function(){if(xdb!==void 0)return xdb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xdb=D},{mode:1});var Pz7;var Sy=function(){var D=_.Aj.apply(this,arguments)||this;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.containerWidthDiff=0;D.boundPrevClick=function(){D.set("offset",zr(D,D.offset-(D.scrollDistance||320)))};
D.boundNextClick=function(){D.set("offset",zr(D,D.offset+(D.scrollDistance||320)))};
D.boundScrollContainerMouseDown=function(Y){D.dragMouseStart=Y.clientX;D.dragOffsetStart=D.offset;D.dragging=!0};
D.boundScrollContainerDrag=function(Y){D.dragging&&D.set("offset",zr(D,D.dragOffsetStart-(Y.clientX-D.dragMouseStart)))};
D.boundMouseUp=function(){D.onMouseUp()};
D.boundWheelScroll=function(Y){var R=0;Math.abs(Y.deltaX)>=Math.abs(Y.deltaY)?R=Y.deltaX:Y.shiftKey&&(R=Y.deltaY);R!==0&&(D.offset+=R,Y.stopPropagation(),Y.preventDefault())};
D.boundChipCloudChipScrollIntoView=function(Y){(Y=Y.detail)&&D.scrollChipIntoView(Y)};
return D};
_.n(Sy,_.Aj);Sy.prototype.attached=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container");D.addEventListener("wheel",this.boundWheelScroll);D.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.style.touchAction="pan-y";D.addEventListener("pointerdown",this.boundScrollContainerMouseDown);D.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Sy.prototype.detached=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.boundWheelScroll);D.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);D.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Sy.prototype.reset=function(){this.set("offset",0);_.cy(this,this.setContainerWidthDiff);Tr(this)};
var zr=function(D,Y){return Math.min(Math.max(Y,0),D.containerWidthDiff)};
Sy.prototype.onMouseUp=function(){this.dragging=!1};
Sy.prototype.transformContainer=function(){this.offset=zr(this,this.offset);var D=_.JQ("HTML_DIR")==="rtl"?"":"-";_.aU(this.hostElement).querySelector("#chips").style.transform="translateX("+D+this.offset+"px)";Tr(this)};
var Tr=function(D){_.cy(D,D.setButtonsState)};
Sy.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=zr(this,this.offset));this.atStart=this.offset<=0};
Sy.prototype.setContainerWidthDiff=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container"),Y=_.aU(this.hostElement).querySelector("#chips");D&&Y&&(this.containerWidthDiff=Y.clientWidth-D.clientWidth)};
Sy.prototype.scrollChipIntoView=function(D){var Y=_.aU(this.hostElement).querySelector("#scroll-container");if(Y){var R=this.atStart?0:106,Z=this.atEnd?0:106;D.offsetLeft<this.offset+R?this.offset=zr(this,D.offsetLeft-R):D.offsetLeft+D.clientWidth>this.offset+Y.clientWidth-Z&&(this.offset=zr(this,D.offsetLeft+D.clientWidth+Z-Y.clientWidth))}};
Sy.prototype.transformContainer=Sy.prototype.transformContainer;_.q([_.y({value:0}),_.x("design:type",Number)],Sy.prototype,"offset",void 0);_.q([_.y({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],Sy.prototype,"atStart",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Sy.prototype,"atEnd",void 0);_.q([_.y(),_.x("design:type",Number)],Sy.prototype,"scrollDistance",void 0);
_.q([_.Gm("offset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sy.prototype,"transformContainer",null);_.q([_.nr()],Sy);var QWY;var B8U;var gpL=_.RT(function(D){var Y=D.data;D=_.a(_.ae(!1,void 0,"HDMMr"));var R=D.next().value,Z=D.next().value;D={};D=_.e7("ytChipShapeChip",function(){a:switch(Y==null?void 0:Y().state){case 0:var X="ytChipShapeActive";break a;case 1:X="ytChipShapeDisabled";break a;default:X="ytChipShapeInactive"}return X},function(){var X=Y().type===1||Y().type===2,M=Y();
return X||M!=null&&M.startIcon?M==null||!M.startIcon||M!=null&&M.text?X?"ytChipShapeEndIconPadding":(M==null?0:M.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(D.ytChipShapeFocused=function(){var X;
return R()&&((X=Y())==null?void 0:X.state)!==1},D));
var t=function(X){if((Y==null?void 0:Y().state)!==1){var M,W;(W=(M=Y()).onTap)==null||W.call(M,X)}};
return _.S("chip-shape",{class:"ytChipShapeHost","on:focusin":_.F4(function(){var X=_.DH().resolve(_.cD(_.MQ));if(X){Z(X.isKeyBoardInUse());var M,W;(W=(M=Y()).onFocusIn)==null||W.call(M)}return!1}),
"on:focusout":_.F4(function(){Z(!1);return!1})},_.S(ptE,{shouldWrapInButton:function(){return Y().type!==2},
selected:function(){return Y().state===0},
onClick:t,isDropdown:function(){return Y().type===1},
accessibilityLabel:function(){return Y().accessibilityLabel}},_.S("div",{class:D},_.S(_.T,{cond:function(){return Y().startIcon},
then:function(){return _.S(_.nB,{icon:function(){var X;return(X=Y())==null?void 0:X.startIcon},
className:function(){return Y().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return Y().text},_.S(EpY,{shape:Y,
onClick:t}),_.S(_.CO,{model:{borderRadius:"8px"}}))))},"Lb");
gpL.idomCompat=!0;var ptE=_.RT(function(D){var Y=_.F4(function(R){D.onClick(R);return!1});
return _.S(_.T,{cond:D.shouldWrapInButton,then:function(){return _.S("button",{class:"ytChipShapeButtonReset","on:click":Y,role:function(){return D.isDropdown()?"combobox":"tab"},
"aria-label":D.accessibilityLabel,"aria-selected":D.selected},D.children)},
else:function(){return D.children}})},"Mb"),EpY=_.RT(function(D){var Y=D.shape;
var R=D.onClick;var Z=_.F4(function(t){R(t);return!1});
return _.S(_.ej,null,_.S(_.VL,{when:function(){return Y().type===1}},function(){return _.S(_.nB,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.S(_.VL,{when:function(){return Y().type===2}},function(){return _.S("button",{class:"ytChipShapeButtonReset",
"on:click":Z},_.S(_.nB,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.S(_.VL,{when:function(){return Y().type===0}},function(){return _.S(_.c_,null)}))},"Nb");_.at(gpL,"chip-shape",{props:{data:_.cs}});var jy=function(){var D=_.N.apply(this,arguments)||this;D.disableDeselectEvent=!1;D.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return D};
_.n(jy,_.N);_.u=jy.prototype;_.u.onSelectChipCommand=function(D){if(!this.selected&&this.data&&(D=_.A(D,gBz),D.targetId&&D.targetId===this.data.targetId))this.onTap()};
_.u.onFilterChipTransformCommand=function(D){if(!this.selected&&this.data){var Y;(D=(Y=_.A(D,HCE))==null?void 0:Y.chipUniqueId)&&D===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.u.dataChanged=function(){var D=this;_.cy(this,function(){D.data&&D.data.isSelected&&!D.selected&&(D.scrollChipIntoView(),D.onTap())})};
_.u.computeChipStyle=function(D){return D!=null?D:"STYLE_DEFAULT"};
_.u.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.CX(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.CX(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.u.onFocus=function(){var D=_.DH().resolve(_.cD(_.MQ));D&&D.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.u.scrollChipIntoView=function(){_.MX(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.YF.Object.defineProperties(jy.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return U_9({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
jy.prototype.onFocus=jy.prototype.onFocus;jy.prototype.onTap=jy.prototype.onTap;jy.prototype.dataChanged=jy.prototype.dataChanged;_.q([_.v(_.$l),_.x("design:type",Object)],jy.prototype,"ironButtonState",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],jy.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],jy.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.nJ),_.x("design:type",Object)],jy.prototype,"ironA11yKeysBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jy.prototype,"disableDeselectEvent",void 0);_.q([_.y(),_.x("design:type",Object)],jy.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.icon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jy.prototype,"hasIcon",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.uniqueId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jy.prototype,"isGnomeChip",null);_.q([_.y({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.x("design:type",String)],jy.prototype,"chipStyle",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],jy.prototype,"selected",void 0);
_.q([_.b("data","selected"),_.x("design:type",Object),_.x("design:paramtypes",[])],jy.prototype,"chipShapeData",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jy.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jy.prototype,"onTap",null);
_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jy.prototype,"onFocus",null);_.q([_.Lr({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],jy);
_.L(jy,"yt-chip-cloud-chip-renderer",function(){if(B8U===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;QWY===void 0&&(QWY=document.createElement("template"));var Z=QWY;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);B8U=D}D=B8U;return D},{mode:2});var Iu=function(){var D=_.N.apply(this,arguments)||this;D.isDarkTheme=!1;D.notSticky=!1;D.transparentBackground=!1;D.shouldHide=!1;D.disableSticky=!1;D.fluidWidth=!1;D.isClipList=!1;D.defaultChipIndex=0;D.isPlaylist=!1;D.playlistVotingAnimationEnabled=_.f("web_enable_voting_animation");D.toolbarHeight=0;D.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return D};
_.n(Iu,_.N);_.u=Iu.prototype;
_.u.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}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.u.attached=function(){var D=this;document.addEventListener("scroll",_.jN(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var Y;this.toolbarHeight=((Y=document.querySelector("ytd-masthead"))==null?void 0:Y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(R){D.handleIntersect(R)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.u.detached=function(){var D;(D=this.intersectionObserver)==null||D.disconnect();var Y;(Y=this.resizeObserver)==null||Y.disconnect();document.removeEventListener("scroll",_.jN(this,this.updateChipBarWidthAndTop))};
_.u.dataChanged=function(){var D=this,Y,R,Z;((Z=_.A((Y=this.data)==null?void 0:(R=Y.contents)==null?void 0:R[0],nG7))==null?void 0:Z.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var t=this.findSelectedChipIndex();this.selectedIndex!==t&&(this.selectedIndex=-1);_.cy(this,function(){D.selectedIndex=t;D.updating=!1;D.ytScrollableChipCloudBehavior.reset()})};
_.u.findSelectedChipIndex=function(){var D;if((D=this.data)==null||!D.contents)return 0;D=this.data.contents;for(var Y=0;Y<D.length;Y++){var R=void 0;if((R=_.A(D[Y],nG7))==null?0:R.isSelected)return Y}return 0};
_.u.computeStyle=function(D){return D};
_.u.handleChipCloudChipSelectAction=function(D){D=this.JSC$15962_chipsSelector.indexOf(D);D>-1&&this.JSC$15962_chipsSelector.selectIndex(D)};
_.u.handleChipCloudChipDeselectAction=function(){if(_.f("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],nG7))==null?void 0:R.navigationEndpoint;Z&&_.CX(this.hostElement,"yt-browse-section-list-reload-endpoint",[Z]);this.JSC$15962_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.u.onGuideIsExpandedChanged=function(){var D=this.ytScrollableChipCloudBehavior;_.cy(D,D.setContainerWidthDiff);Tr(this.ytScrollableChipCloudBehavior)};
_.u.onResize=function(){var D=this.ytScrollableChipCloudBehavior;_.cy(D,D.setContainerWidthDiff);Tr(this.ytScrollableChipCloudBehavior)};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.u.handleIntersect=function(D){this.notSticky=this.isChannelPageGrid||this.disableSticky||D[0].intersectionRatio===1};
_.u.updateDimensions=function(){var D=this.ytRendererBehavior.parentComponent;if(D){var Y,R=(Y=D.headerElement)!=null?Y:D;_.SN(this.hostElement,{"--ytd-rich-grid-chips-bar-width":R.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.u.updateSelectedIndexFromBinding=function(D){this.selectedIndex=D.detail.value};
_.u.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var D;(D=this.sortFilterHeaderRendererElement)==null||D.setAttribute("is-playlist-page-with-filters","")}};
_.u.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Xzb(!this.notSticky))};
_.YF.Object.defineProperties(Iu.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 D,Y,R=(D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y.find(function(Z){return _.A(Z,oGL)});
return{sortFilterHeaderRenderer:_.A(R,oGL)}}}});
Iu.prototype.dispatchChipBarIsSticky=Iu.prototype.dispatchChipBarIsSticky;Iu.prototype.isPlaylistPageChanged=Iu.prototype.isPlaylistPageChanged;Iu.prototype.updateChipBarWidthAndTop=Iu.prototype.updateChipBarWidthAndTop;Iu.prototype.onResize=Iu.prototype.onResize;Iu.prototype.onGuideIsExpandedChanged=Iu.prototype.onGuideIsExpandedChanged;Iu.prototype.dataChanged=Iu.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Iu.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],Iu.prototype,"ironResizableBehavior",void 0);_.q([_.v(),_.x("design:type",Sy)],Iu.prototype,"ytScrollableChipCloudBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Iu.prototype,"data",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],Iu.prototype,"selectedIndex",void 0);_.q([_.y({value:320}),_.x("design:type",Number)],Iu.prototype,"scrollDistance",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"notSticky",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"transparentBackground",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.x("design:type",String)],Iu.prototype,"componentStyle",void 0);_.q([_.y({selector:_.m8M}),_.x("design:type",Boolean)],Iu.prototype,"guideIsExpanded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"shouldHide",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"disableSticky",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"fluidWidth",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"isClipList",void 0);_.q([_.y(),_.x("design:type",Object)],Iu.prototype,"defaultChipIndex",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Iu.prototype,"isPlaylist",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Iu.prototype,"playlistVotingAnimationEnabled",void 0);_.q([_.fr("#chips"),_.x("design:type",Object)],Iu.prototype,"JSC$15962_chipsSelector",void 0);_.q([_.fr("ytd-sort-filter-header-renderer"),_.x("design:type",HTMLElement)],Iu.prototype,"sortFilterHeaderRendererElement",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Iu.prototype,"updating",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"dataChanged",null);_.q([_.Gm("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"onGuideIsExpandedChanged",null);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"onResize",null);
_.q([_.rd("isChannelPageGrid","disableSticky","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"updateChipBarWidthAndTop",null);_.q([_.b("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iu.prototype,"isChannelPageGrid",null);_.q([_.b("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iu.prototype,"isHashtagLandingPage",null);
_.q([_.Gm("isPlaylistPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"isPlaylistPageChanged",null);_.q([_.b("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iu.prototype,"isPlaylistPage",null);_.q([_.b("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iu.prototype,"isDisableDeselectEvent",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Iu.prototype,"sortFilterHeaderRendererData",null);_.q([_.y({reflectToAttribute:!0,selector:_.pki}),_.x("design:type",String)],Iu.prototype,"frostedGlassMode",void 0);_.q([_.Gm("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iu.prototype,"dispatchChipBarIsSticky",null);_.q([_.h({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Iu);
_.L(Iu,"ytd-feed-filter-chip-bar-renderer",function(){if(Pz7!==void 0)return Pz7;var D=document.createElement("template");_.w(D,'\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>\n');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Pz7=D},{mode:1});var dd7;var i6b=_.RT(function(D){var Y=D.data;var R=D.buttonIndex;var Z=D.selectedIndex;var t=D.onSelect;var X=function(){return R()===Z()},M=function(){var W,z;
return(z=(W=Y().text)==null?void 0:W.content)!=null?z:""};
D=_.bsM();return _.S("yt-toggleable-image-button-view-model",{class:function(){var W={};W=(W["toggleable-image-button-view-model-wiz"]=!0,W[""]=!0,W["toggleable-image-button-view-model-wiz__semi-transparent"]=Z()!==-1&&!X(),W);return _.kc(W)},
tabindex:0,"aria-label":M,"aria-pressed":X,role:"button","on:keydown":D,"on:click":_.F4(function(){t(Y().onSubmitCommand);return!1})},_.S(_.T,{cond:function(){return Y().logo},
then:function(W){return _.S(_.Rt,{data:W,className:function(){var z={};z=(z["toggleable-image-button-view-model-wiz__image"]=!0,z["toggleable-image-button-view-model-wiz__circular-radius"]=!(!Y().backgroundColor||!Y().backgroundColorDarkMode),z["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(X()&&Y().backgroundColor&&Y().backgroundColorDarkMode),z);return _.kc(z)},
alt:M,useWidth:!1,style:function(){if(X()&&Y().backgroundColor&&Y().backgroundColorDarkMode){var z=PG(Number(Y().backgroundColorDarkMode),"1");var I=PG(Number(Y().backgroundColor),"1");z="background: linear-gradient(180deg,"+z+","+I+") border-box;"}else z="";return z}})}}),_.S(_.CO,{model:{borderRadius:"16px"}}),_.S("p",{class:function(){var W={};
W=(W["toggleable-image-button-view-model-wiz__label"]=!0,W["toggleable-image-button-view-model-wiz__bold-text"]=X(),W);return _.kc(W)}},_.S(_.y_,{text:function(){return Y().text}})))},"Ob");
i6b.idomCompat=!0;var cOL=_.RT(function(D){var Y=D.data;D=_.a(_.ae({index:-1,command:{}},void 0,"Zcqtsb"));var R=D.next().value,Z=D.next().value;return _.S("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.S("div",{class:"nudge-form-view-model-wiz__form-options"},_.S(_.vK,{data:function(){return Y().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(t,X){return _.S(i6b,{data:t.data,buttonIndex:X,selectedIndex:function(){return R().index},
onSelect:function(M){Z({index:X(),command:M})}})}})),_.S(_.y_,{text:function(){return Y().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.S("div",{class:"nudge-form-view-model-wiz__submit"},_.S(_.vK,{data:function(){return Y().submitButton}},{buttonViewModel:function(t){return _.S(O6U,{data:t.data,
isDisabled:function(){return R().index===-1},
onClick:function(){_.BL(R().command)}})}})))},"Pb");
cOL.idomCompat=!0;var O6U=_.RT(function(D){var Y=_.Si(function(){return Object.assign({},D.data(),{state:D.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.S(_.TV,{data:Y,onClick:D.onClick})},"Qb");_.at(cOL,"yt-nudge-form-view-model",{props:{data:_.cs}});var Fd=function(){var D=_.N.apply(this,arguments)||this;D.roundedContainer=!0;D.buttonUpdate=_.f("web_modern_buttons");D.isDarkMode=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.n(Fd,_.N);_.u=Fd.prototype;_.u.computeNudgeStyle=function(D){return D?"modernized-nudge":""};
_.u.handleDarkModeToggledAction=function(D){this.isDarkMode=D};
_.u.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.u.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"}}}};
_.u.computeIsHorizontalButtons=function(D){return D?!!D.applyModernizedStyle&&!!D.enableHorizontalButtons&&!!D.secondaryButton:!1};
_.YF.Object.defineProperties(Fd.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.data)==null?void 0:D.backgroundStyle)!=null?Y:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.data)==null?void 0:D.contentsLocation)!=null?Y:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.lightIconImage)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Fd.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Fd.prototype,"actionHandlerBehavior",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("isHideEnclosingAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Fd.prototype,"isHidden",null);_.q([_.y(),_.x("design:type",Object)],Fd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fd.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fd.prototype,"buttonUpdate",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.x("design:type",String)],Fd.prototype,"nudgeStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.trimStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],Fd.prototype,"trimStyle",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.backgroundStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],Fd.prototype,"backgroundStyle",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.contentsLocation"),_.x("design:type",String),_.x("design:paramtypes",[])],Fd.prototype,"contentsLocation",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.disableDropShadow"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Fd.prototype,"noShadow",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.lightIconImage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Fd.prototype,"noIcon",null);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.x("design:type",Boolean)],Fd.prototype,"isHorizontalButtons",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],Fd.prototype,"isDarkMode",void 0);_.q([_.h({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Fd);
_.L(Fd,"ytd-feed-nudge-renderer",function(){if(dd7!==void 0)return dd7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dd7=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var D5D;var YsY;var Gr=function(){var D=_.N.apply(this,arguments)||this;D.collapsed=!1;D.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return D};
_.n(Gr,_.N);Gr.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"}}}};
Gr.prototype.handleRatingSelect=function(){var D;((D=this.data)==null?0:D.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Gr.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Gr.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Gr.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.HH),_.x("design:type",Object)],Gr.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gr.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gr.prototype,"collapsed",void 0);_.q([_.h({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Gr);
_.L(Gr,"ytd-slimline-survey-renderer",function(){if(YsY!==void 0)return YsY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return YsY=D},{mode:1});var R_Y;var VD=function(){return _.N.apply(this,arguments)||this};
_.n(VD,_.N);VD.prototype.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
VD.prototype.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D&&(D==null?0:D.secondaryTitleColor)&&this.maybeGetBackgroundColor(D)?(this.hostElement.style.backgroundColor=_.HG(this.maybeGetBackgroundColor(D)),this.hostElement.style.color=_.HG(D.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
VD.prototype.colorPaletteChanged=VD.prototype.colorPaletteChanged;_.q([_.v(_.mb),_.x("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],VD.prototype,"data",void 0);_.q([_.y({selector:function(D){return D.ui.darkModeIsEnabled}}),
_.x("design:type",Boolean)],VD.prototype,"isDarkMode",void 0);_.q([_.y(),_.x("design:type",Object)],VD.prototype,"lightColorPalette",void 0);_.q([_.y(),_.x("design:type",Object)],VD.prototype,"darkColorPalette",void 0);_.q([_.Gm("darkColorPalette","lightColorPalette","data","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VD.prototype,"colorPaletteChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],VD);
_.L(VD,"ytd-endorsement-header-renderer",function(){if(R_Y!==void 0)return R_Y;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return R_Y=D},{mode:1});_.at(_.kk,"yt-decorated-avatar-view-model",{props:{data:_.cs,className:_.cs}});_.f1=new _.R6("VIEW_TRANSITION_MANAGER_TOKEN");var ey=function(){var D=_.N.apply(this,arguments)||this;D.fullHeight=_.f("web_rich_grid_media_full_height");D.showChannelAvatar=!0;D.hasPlaylistThumbnail=!1;D.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};D.registerThumbnailForPageTransition=function(){_.f("web_thumbnail_to_watch_transition")&&_.Z5z(_.DH().resolve(_.f1),D.thumbnail)};
return D};
_.n(ey,_.N);_.u=ey.prototype;
_.u.configureRendererStamper=function(){return{lazyLoadMenu:VP,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"}}}};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.shouldLazyLoadMenu=function(){var D=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.f("kevlar_modern_downloads_page")||!D};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15987_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.JSC$15987_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.u.getVideoPreviewOpts=function(){var D={},Y;if((Y=this.data)==null?0:Y.multipleInlinePlaybackEndpoint)D=guz;this.isRadio&&(D=EuL);return D};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15987_inlinePreviewHoverListener)==null||DF(D)};
_.u.getOwner=function(){var D,Y,R;return((D=this.data)==null?void 0:(Y=D.channelThumbnailSupportedRenderers)==null?void 0:Y.channelThumbnailWithLinkRenderer)||_.A((R=this.data)==null?void 0:R.showProviderChannelThumbnail,c0E)};
_.u.updateLockupSize=function(){var D;((D=this.getOwner())==null?0:D.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.u.getFeedbackEndpoint=function(D){if(_.A(D,_.Jn))return D;var Y,R;D=(R=(Y=_.A(D,_.je))==null?void 0:Y.commands)!=null?R:[];Y=_.a(D);for(R=Y.next();!R.done;R=Y.next())if(R=this.getFeedbackEndpoint(R.value))return R;return null};
_.u.computeNavigationEndpoint=function(D){return BpM(D==null?void 0:D.navigationEndpoint)};
_.u.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var D=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(D)!==JSON.stringify(this.data)&&this.set("data",D)}};
_.u.onDataChanged=function(){var D=this,Y=this.getOwner();if(Y){this.set("data.owner",Y);var R,Z,t,X,M,W=((R=this.data)==null?void 0:(Z=R.shortBylineText)==null?void 0:(t=Z.runs)==null?void 0:(X=t[0])==null?void 0:X.text)||((M=Y.name)==null?void 0:M.simpleText);this.set("data.owner.title",W)}var z,I,F,G,V,e;Y=((z=this.data)==null?void 0:(I=z.thumbnailRenderer)==null?void 0:I.playlistVideoThumbnailRenderer)||((F=this.data)==null?void 0:(G=F.thumbnailRenderer)==null?void 0:G.playlistCustomThumbnailRenderer)||
((V=this.data)==null?void 0:(e=V.thumbnailRenderer)==null?void 0:e.showCustomThumbnailRenderer);var r;((r=this.data)==null?0:r.thumbnail)||!Y||this.set("data.thumbnail",Y.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){D.updateLockupSize()});
var l;if(z=((l=this.data)==null?void 0:l.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(z);var U;((U=this.dismissActionToReplayEntity)==null?0:U.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.u.onHiddenChanged=function(){this.updateLockupSize()};
_.u.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.CX(this.hostElement,"yt-terminate-video-preview-action");else{var D;(D=this.videoTitleLink)==null||D.focus()}};
_.u.metadataColorChanged=function(){var D;if(this.metadataColor&&((D=this.videoTitle)==null?0:D.style))this.videoTitle.style.color=_.HG(this.metadataColor);else{var Y,R;!this.metadataColor&&((Y=this.videoTitle)==null?0:(R=Y.style)==null?0:R.color)&&(this.videoTitle.style.color="")}};
_.u.onDetailsClick=function(D){var Y=this.computedNavigationEndpoint;Y&&(_.Yc(_.O$(D),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.MX(this.hostElement,"yt-navigate",{endpoint:Y}))};
_.u.onRendererTap=function(){this.registerThumbnailForPageTransition();var D,Y,R=((D=this.data)==null?void 0:D.serviceEndpoint)||this.getFeedbackEndpoint((Y=this.data)==null?void 0:Y.navigationEndpoint);R&&_.A(R,_.Jn)&&this.ytComponentBehavior.resolveCommand(R)};
_.u.onMouseDown=function(D){var Y=D.target,R=this.computedNavigationEndpoint,Z;D=Y.href||((Z=_.A(R==null?void 0:R.commandMetadata,_.GA))==null?void 0:Z.url);Z=Y.data||R;D&&Z&&$jo(D,Z)};
_.u.computeVideoTitleText=function(){var D;if((D=this.data)==null?0:D.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.u.computeHasPlaylistThumbnail=function(D){var Y,R,Z,t,X;if((((Y=D.thumbnailRenderer)==null?0:Y.playlistVideoThumbnailRenderer)||((R=D.thumbnailRenderer)==null?0:R.playlistCustomThumbnailRenderer)||((Z=D.thumbnailRenderer)==null?0:Z.showCustomThumbnailRenderer)||((t=D.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((X=D.thumbnailRenderer)==null?0:X.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(Y=0;Y<D.thumbnailOverlays.length;Y++)if(R=void 0,(R=D.thumbnailOverlays[Y])==
null?0:R.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.YF.Object.defineProperties(ey.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.f("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15987_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.fn(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.videoId)||((Y=this.data)==null?void 0:Y.playlistId)||""}}});
ey.prototype.onMouseDown=ey.prototype.onMouseDown;ey.prototype.metadataColorChanged=ey.prototype.metadataColorChanged;ey.prototype.onIsDismissedChanged=ey.prototype.onIsDismissedChanged;ey.prototype.onHiddenChanged=ey.prototype.onHiddenChanged;ey.prototype.onDataChanged=ey.prototype.onDataChanged;ey.prototype.handleReloadDownloadsInfo=ey.prototype.handleReloadDownloadsInfo;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],ey.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],ey.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],ey.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],ey.prototype,"entitySelectorType",void 0);_.q([_.y(),_.x("design:type",Boolean)],ey.prototype,"noEndpoints",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],ey.prototype,"isRadio",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],ey.prototype,"miniMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ey.prototype,"fullHeight",void 0);
_.q([_.y(),_.x("design:type",Boolean)],ey.prototype,"showDarkVideoMetadata",void 0);_.q([_.y(),_.x("design:type",Boolean)],ey.prototype,"showLightVideoMetadata",void 0);_.q([_.y(),_.x("design:type",Number)],ey.prototype,"metadataColor",void 0);_.q([_.y(),_.x("design:type",Object)],ey.prototype,"showChannelAvatar",void 0);_.q([_.y(),_.x("design:type",Boolean)],ey.prototype,"hidden",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],ey.prototype,"showYtInteraction",void 0);
_.q([_.y(),_.x("design:type",String)],ey.prototype,"dismissedContentId",void 0);_.q([_.y({selectorArgs:["dismissedContentId"],selector:hH5}),_.x("design:type",Object)],ey.prototype,"dismissActionToReplayEntity",void 0);
_.q([_.y({selectorArgs:["entitySelectorType","mediaId"],selector:function(D,Y,R){if(_.f("kevlar_modern_downloads_page")&&R&&Y&&Y!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Y){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Z=iN9(D,R);if(Z){Y=_.mW(D,R);var t=HU(D,R),X=M8y(D,R);D=xx(D,R);var M=mxU(Z,Y,t,X);t=M.shortViewCountText;var W=M.publishedTimeText;M=M.badges;var z=D>0;X=hxy(Z,Y,X,D);Z=_.rL(Y)||Y==="TRANSFER_STATE_FAILED"||Y==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!nh(Z.policyEntity)?
void 0:P_S(R,D,Z.videoEntity.lengthSeconds);Y==="TRANSFER_STATE_PAUSED_BY_USER"&&R&&!_.f("dl_resume_click_killswitch")&&(Z={offlineVideoEndpoint:{videoId:R,action:"ACTION_RESUME"}});R={shortViewCountText:t,publishedTimeText:W,badges:M,isWatched:z,navigationEndpoint:Z,thumbnailOverlays:X}}else R=void 0;return R;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(Y=ONb(D,R))if(Z=_.qw(D,R),X=_.cGj(D,R),Z!=="TRANSFER_STATE_UNKNOWN"){R=L0S(Y,Z,X,R,_.Lh(D));break a}R=void 0}return R;default:_.Jk(new _.AT("Error: entitySelectorType defined but not matched in selector.",
D,Y))}}}),
_.x("design:type",Object)],ey.prototype,"entityDrivenState",void 0);_.q([_.y({computed:"computeVideoTitleText(data)"}),_.x("design:type",Object)],ey.prototype,"videoTitleText",void 0);_.q([_.y({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],ey.prototype,"hasPlaylistThumbnail",void 0);_.q([_.y({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],ey.prototype,"computedNavigationEndpoint",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ey.prototype,"typographyBump",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ey.prototype,"typographyBumpV2",null);_.q([_.fr("#video-title"),_.x("design:type",HTMLElement)],ey.prototype,"videoTitle",void 0);_.q([_.fr("#video-title-link"),_.x("design:type",HTMLElement)],ey.prototype,"videoTitleLink",void 0);
_.q([_.fr("#thumbnail"),_.x("design:type",HTMLElement)],ey.prototype,"thumbnail",void 0);_.q([_.fr("#dismissible"),_.x("design:type",HTMLElement)],ey.prototype,"JSC$15987_dismissibleMedia",void 0);_.q([_.b("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],ey.prototype,"lazyLoadMenu",null);_.q([_.b("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],ey.prototype,"immediateLoadMenu",null);
_.q([_.rd("entityDrivenState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"handleReloadDownloadsInfo",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"onDataChanged",null);_.q([_.rd("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"onHiddenChanged",null);
_.q([_.Gm("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"onIsDismissedChanged",null);_.q([_.Gm("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"metadataColorChanged",null);_.q([_.Fv("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ey.prototype,"onMouseDown",null);
_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ey.prototype,"isHovered",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ey.prototype,"useAvatar",null);_.q([_.b("data","entitySelectorType"),_.x("design:type",String),_.x("design:paramtypes",[])],ey.prototype,"mediaId",null);_.q([_.h({is:"ytd-rich-grid-media",disableElementRegistration:!0})],ey);
var tu_=_.WL()(ey,"ytd-rich-grid-media",function(){if(D5D!==void 0)return D5D;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return D5D=D},{mode:_.zD("kevlar_poly_si_batch_j072")?1:2});var sN4;var AX=function(){var D=_.N.apply(this,arguments)||this;D.removeMaxWidth=!0;D.insetMetadata=!1;return D};
_.n(AX,_.N);_.u=AX.prototype;_.u.configureRendererStamper=function(){return{innerMenu:VP,outerMenu:Object.assign({},VP,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.onDataChanged=function(){var D,Y=((D=this.data)==null?void 0:D.trackingParams)||"";Y&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Y));var R;((R=this.dismissActionToReplayEntity)==null?0:R.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15992_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.JSC$15992_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:dHV})};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15992_inlinePreviewHoverListener)==null||DF(D)};
_.u.onRendererTap=function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.serviceEndpoints)==null?void 0:Y[0];_.A(R,_.Jn)&&this.componentBehavior.resolveCommand(R)};
_.u.onDetailsClick=function(D){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint;R&&(_.Yc(_.O$(D),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(R))};
_.u.onShow=function(){var D=this.data;D.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(D.onFirstVisibleCommand),delete D.onFirstVisibleCommand)};
_.YF.Object.defineProperties(AX.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?void 0:(D=this.data)==null?void 0:D.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?(D=this.data)==null?void 0:D.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var D=this.data;if(D!=null&&D.badge&&(D=_.A(D.badge,IVL))){var Y,R,Z;return[{metadataBadgeRenderer:{label:((Y=D.label)==null?void 0:(R=Y.runs)==null?void 0:R[0].text)||((Z=D.label)==null?void 0:Z.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var D=this.data;return Object.assign({},D.headline,{accessibility:D.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return this.isSlimShort?(D=this.computedTitle)==null?void 0:(Y=D.accessibility)==null?void 0:(R=Y.accessibilityData)==null?void 0:R.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.f("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15992_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
AX.prototype.onDataChanged=AX.prototype.onDataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],AX.prototype,"componentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],AX.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.HH),_.x("design:type",Object)],AX.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],AX.prototype,"ytdReduxBehavior",void 0);_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],AX.prototype,"thumbnail",void 0);_.q([_.fr("#dismissible"),_.x("design:type",HTMLElement)],AX.prototype,"JSC$15992_dismissibleMedia",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],AX.prototype,"removeMaxWidth",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],AX.prototype,"insetMetadata",void 0);_.q([_.y(),_.x("design:type",String)],AX.prototype,"dismissedContentId",void 0);_.q([_.y({selectorArgs:["dismissedContentId"],selector:hH5}),_.x("design:type",Object)],AX.prototype,"dismissActionToReplayEntity",void 0);_.q([_.b("insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],AX.prototype,"thumbnailObjectFit",null);
_.q([_.b("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],AX.prototype,"innerMenu",null);_.q([_.b("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],AX.prototype,"outerMenu",null);_.q([_.y(),_.x("design:type",Object)],AX.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],AX.prototype,"miniMode",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AX.prototype,"onDataChanged",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],AX.prototype,"shortsBadges",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],AX.prototype,"isShort",null);
_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],AX.prototype,"isSlimShort",null);_.q([_.b("data","isShort"),_.x("design:type",Object),_.x("design:paramtypes",[])],AX.prototype,"computedTitle",null);_.q([_.b("isSlimShort","computedTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],AX.prototype,"computedAccessibilityLabel",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],AX.prototype,"shouldForce2By3",null);_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],AX.prototype,"isHovered",null);_.q([_.h({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],AX);
_.L(AX,"ytd-rich-grid-slim-media",function(){if(sN4!==void 0)return sN4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return sN4=D},{mode:_.zD("kevlar_poly_si_batch_j063")?1:2});var X2z;var uVz;var n1=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(n1,_.N);n1.prototype.computeIcon=function(D){return D&&D.iconType?"yt-sys-icons:"+D.iconType.toLowerCase():""};
n1.prototype.onMouseEnter=function(){this.isHovered=!0};
n1.prototype.onMouseLeave=function(){this.isHovered=!1};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],n1.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],n1.prototype,"isHovered",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n1.prototype,"darkerDarkTheme",void 0);_.q([_.h({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],n1);
_.L(n1,"ytd-expand-on-hover-card-renderer",function(){if(uVz!==void 0)return uVz;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return uVz=D},{mode:1});var aR7,Muz=function(){if(aR7!==void 0)return aR7;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return aR7=D};_.UD("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var rn=function(){var D=_.N.apply(this,arguments)||this;D.compactStyle=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(rn,_.N);_.u=rn.prototype;_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.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"}}}};
_.u.computeHideDot=function(D){return!(D&&D.subscriberCountText&&D.videoCountText)||this.compactStyle};
_.u.hasDualButtons=function(D){return D&&D.purchaseButton&&D.subscribeButton};
_.u.backgroundColorChanged=function(){if(this.data!==void 0){var D=this.data.backgroundColor;this.isDarkTheme&&(D=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=D!=null?_.HG(D):"transparent"}};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.onTap=function(D){var Y,R,Z=((Y=this.data)==null?void 0:Y.navigationEndpoint)||((R=this.data)==null?void 0:R.serviceEndpoint);_.A(Z,_.Dx)&&(Z&&_.DH().resolve(_.Yw).resolveCommand(Z,{form:{element:this.hostElement}}),D.preventDefault())};
_.u.computeChannelEndpoint=function(D){return _.A(D,_.Dx)?null:D};
_.u.computeHrefEndpoint=function(D){return _.A(D,_.Dx)?null:this.componentBehavior.computeHref_(D)};
_.u.computeChannelRendererStyle=function(D){return D};
_.u.computeIconSize=function(D){return D?108:136};
_.YF.Object.defineProperties(rn,{template:{configurable:!0,enumerable:!0,get:function(){return Muz()}}});
rn.prototype.backgroundColorChanged=rn.prototype.backgroundColorChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],rn.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],rn.prototype,"componentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],rn.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],rn.prototype,"isDarkTheme",void 0);_.q([_.y({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.x("design:type",String)],rn.prototype,"channelRendererStyle",void 0);_.q([_.y({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],rn.prototype,"dualButtons",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],rn.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],rn.prototype,"biggerThumbStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rn.prototype,"compactStyle",void 0);_.q([_.Gm("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rn.prototype,"backgroundColorChanged",null);_.q([_.h({is:"ytd-channel-renderer",disableElementRegistration:!0})],rn);_.L(rn,"ytd-channel-renderer",function(){return Muz()},{mode:1});var CdV;var Wxb;_.UD("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var wn=function(){var D=_.N.apply(this,arguments)||this;D.displayItemCount=2;D.collections=_.f("web_modern_collections_v2");D.hasPlaylistThumbnail=!1;D.stackThumbnailSize="large";return D};
_.n(wn,_.N);_.u=wn.prototype;_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.u.computeFirstVideos=function(D,Y){return D&&Y?D.slice(0,Y):[]};
_.u.computeThumbnailWidth=function(D,Y){return D?Y==="BIG"?500:Y==="MASSIVE"?600:Y==="MEDIUM"?450:420:360};
_.u.computeThumbnailHeight=function(D,Y){return D?Y==="BIG"?280:Y==="MASSIVE"?337:234:202};
_.u.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16005_inlinePreviewHoverListener)==null||DF(D)};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16005_inlinePreviewHoverListener=xc({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:guz,thumbnailElement:this.thumbnail})};
_.u.computeHasPlaylistThumbnail=function(D){var Y,R;if((((Y=D.thumbnailRenderer)==null?0:Y.playlistVideoThumbnailRenderer)||((R=D.thumbnailRenderer)==null?0:R.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(Y=0;Y<D.thumbnailOverlays.length;Y++)if(R=void 0,(R=D.thumbnailOverlays[Y])==null?0:R.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.YF.Object.defineProperties(wn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16005_inlinePreviewHoverListener)==null?0:La(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wn.prototype.dataChanged=wn.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],wn.prototype,"ytdLockupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wn.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],wn.prototype,"displayItemCount",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],wn.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],wn.prototype,"biggerThumbsStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],wn.prototype,"collections",void 0);_.q([_.y({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],wn.prototype,"hasPlaylistThumbnail",void 0);_.q([_.y(),_.x("design:type",String)],wn.prototype,"stackThumbnailSize",void 0);_.q([_.fr("ytd-thumbnail"),_.x("design:type",HTMLElement)],wn.prototype,"thumbnail",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wn.prototype,"dataChanged",null);_.q([_.b("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wn.prototype,"isHovered",null);_.q([_.h({is:"ytd-radio-renderer",disableElementRegistration:!0})],wn);
_.L(wn,"ytd-radio-renderer",function(){if(Wxb!==void 0)return Wxb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Wxb=D},{mode:_.zD("kevlar_poly_si_batch_j058")?1:2});var z_L;_.UD("itemSectionRenderer","showRenderer","ytd-show-renderer");var $q=function(){return _.N.apply(this,arguments)||this};
_.n($q,_.N);$q.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$q.prototype.computeThumbnailWidth=function(D){return D?360:246};
$q.prototype.computeUseProminentThumbs=function(D){return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$q.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],$q.prototype,"isSearch",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.x("design:type",Boolean)],$q.prototype,"useProminentThumbs",void 0);_.q([_.h({is:"ytd-show-renderer",disableElementRegistration:!0})],$q);
_.L($q,"ytd-show-renderer",function(){if(z_L!==void 0)return z_L;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return z_L=D},{mode:1});_.UD("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var v7=function(){var D=_.N.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.n(v7,_.N);v7.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"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],v7.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],v7.prototype,"isRichGrid",void 0);_.q([_.h({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],v7);
_.L(v7,"ytd-feed-entry-renderer",function(){if(CdV!==void 0)return CdV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return CdV=D},{mode:1});var Ss4;var ou=function(){return _.N.apply(this,arguments)||this};
_.n(ou,_.N);ou.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.q([_.v(_.mb),_.x("design:type",Object)],ou.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ou.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ou.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.UM,value:3}),_.x("design:type",Number)],ou.prototype,"itemsPerRow",void 0);
_.q([_.h({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ou);
_.L(ou,"ytd-link-card-renderer",function(){if(Ss4!==void 0)return Ss4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ss4=D},{mode:1});var TWE;var b5=function(){return _.N.apply(this,arguments)||this};
_.n(b5,_.N);_.u=b5.prototype;_.u.configureRendererStamper=function(){return{"data.menu":VP,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.onRendererTap=function(D){if(!this.ytdDismissibleItemBehavior.isDismissed){var Y,R=(Y=this.data)==null?void 0:Y.navigationEndpoint;R&&!_.Yc(_.O$(D),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(R)?_.Yc(_.O$(D),this.hostElement,["A"])||_.MX(this.hostElement,"yt-navigate",{endpoint:R}):this.ytComponentBehavior.resolveCommand(R,{}))}};
_.u.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.u.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
_.u.isNavigationCommand=function(D){return D?_.A(D,_.A6)||_.A(D,_.Od)||_.A(D,_.Qj)?!0:!1:!1};
b5.prototype.onRendererTap=b5.prototype.onRendererTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],b5.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],b5.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],b5.prototype,"data",void 0);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],b5.prototype,"onRendererTap",null);_.q([_.h({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],b5);
_.L(b5,"ytd-lumiere-promo-item-image-renderer",function(){if(TWE!==void 0)return TWE;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return TWE=D},{mode:1});var jNV;var yD=function(){return _.N.apply(this,arguments)||this};
_.n(yD,_.N);yD.prototype.computeLandscapeThumbnail=function(){var D;return((D=this.data)==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],yD.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yD.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],yD.prototype,"miniMode",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.UM}),_.x("design:type",Number)],yD.prototype,"itemsPerRow",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.x("design:type",Boolean)],yD.prototype,"landscapeThumbnail",void 0);_.q([_.h({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],yD);
_.L(yD,"ytd-lumiere-shelf-details-renderer",function(){if(jNV!==void 0)return jNV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jNV=D},{mode:_.zD("kevlar_poly_si_batch_j076")?1:2});var IR_;var Nu=function(){return _.N.apply(this,arguments)||this};
_.n(Nu,_.N);Nu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Nu.prototype,"data",void 0);_.q([_.h({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Nu);
_.L(Nu,"ytd-primetime-promo-details-renderer",function(){if(IR_!==void 0)return IR_;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return IR_=D},{mode:1});var Fx_;var l5=function(){return _.N.apply(this,arguments)||this};
_.n(l5,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],l5.prototype,"data",void 0);_.q([_.h({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],l5);
_.L(l5,"ytd-panel-show-style-metadata-renderer",function(){if(Fx_!==void 0)return Fx_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Fx_=D},{mode:1});var G47;var JX=function(){return _.N.apply(this,arguments)||this};
_.n(JX,_.N);_.u=JX.prototype;_.u.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.u.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.u.computeThumbnail=function(D){if(D)return D.smallFormFactorBackgroundThumbnail||D.largeFormFactorBackgroundThumbnail};
_.u.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.u.isNavigationCommand=function(D){return D?_.A(D,_.A6)||_.A(D,_.Od)||_.A(D,_.Qj)?!0:!1:!1};
_.u.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
JX.prototype.onPanelTap=JX.prototype.onPanelTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],JX.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],JX.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0,value:_.f("web_modern_buttons")}),_.x("design:type",Boolean)],JX.prototype,"modernButtons",void 0);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JX.prototype,"onPanelTap",null);_.q([_.h({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],JX);
_.L(JX,"ytd-primetime-promo-panel-renderer",function(){if(G47!==void 0)return G47;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return G47=D},{mode:1});_.at(_.RT(function(D){D=_.YC(D,{data:{},useFullWidth:!1});var Y=D.data,R=D.useFullWidth;D={};return _.S("teaser-card-view-model",{class:_.e7("ytTeaserCardViewModelHost",(D.ytTeaserCardViewModelUseFullWidth=function(){return R()},D))},_.S(_.T,{cond:function(){return Y().onTap},
then:function(Z){return _.S(_.PK,{className:"ytTeaserCardViewModelLink",command:Z},_.S("div",{class:"ytTeaserCardViewModelImageContainer"},_.S(_.T,{cond:function(){return Y().image},
then:function(t){return _.S(_.Rt,{data:t,className:"ytTeaserCardViewModelImage",alt:""})}})),_.S("p",{class:"ytTeaserCardViewModelCaption"},function(){return Y().caption}))}}))},"Rb"),"teaser-card-view-model",{props:{data:_.cs,
useFullWidth:_.cs}});var VuE=new _.R6("RICH_GRID_VIDEO_RENDERER_TOKEN");_.at(_.RT(function(D){var Y=D.data;var R=D.showYtInteractionInContent;var Z=function(){return!!Y().selectableFeedback};
D=_.a(_.ae(!1,void 0,"nblDw"));var t=D.next().value,X=D.next().value;_.$s(function(){var V=_.A(Y().primaryButton,_.py);(V==null?0:V.isToggled)&&X(V.isToggled)});
D=_.F4(function(V){if(!Z())return!1;if(t()){var e;var r=(e=Y().selectableFeedback)==null?void 0:e.onDeselect}else{var l;r=(l=Y().selectableFeedback)==null?void 0:l.onSelect}r&&_.BL(r,{form:{element:V.target}});X(!t());if(V=_.A(Y().primaryButton,_.py))V.isToggled=t();return!1});
var M=function(){if(!Z()){var V,e=(V=Y().loggingDirectives)==null?void 0:V.trackingParams;e&&_.GJ(_.DH().resolve(_.ya),e)}},W=_.yby(),z=function(){var V;
return Z()?(V=Y().selectableFeedback)==null?void 0:V.a11yLabel:void 0},I=function(){return Z()?{toggled:t()}:{}},F=_.DH().resolve(_.cD(VuE)),G={};
return _.S("yt-feedback-item-renderer",{class:_.e7("ytFeedbackItemRendererHost",(G.ytFeedbackItemRendererSelectableFeedback=Z,G)),"on:click":D,"on:keydown":W,title:z,"aria-label":z,"aria-pressed":function(){return Z()?t():void 0},
tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"button":void 0}},_.S("div",{class:"ytFeedbackItemRendererContentContainer"},_.S(_.vK,{data:function(){return Y().content}},{videoRenderer:function(V){return _.S(F,{data:V.data,
showYtInteraction:R})},
lockupViewModel:function(V){return _.S(_.Wz,{data:V.data,containerType:2})}})),_.S("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.S(_.vK,{data:function(){return Y().primaryButton}},{toggleButtonViewModel:function(V){return _.S(_.JV,{data:V.data,
buttonShapeOverrides:I,disableExplicitClickLogging:!0,onToggle:M})}})))},"Sb"),"yt-feedback-item-renderer",{props:{data:_.cs,
showYtInteractionInContent:_.cs}});var kq=function(){var D=_.N.apply(this,arguments)||this;D.isShortsGrid=!1;D.isCompactGrid=!1;D.isShortsPanelGrid=!1;D.renderedFromRichGrid=!1;D.isInFirstColumn=!1;D.noGutterMargins=!1;D.isInlineGroupItem=!1;D.insetMetadata=!1;D.noBottomMarginInAds=!0;D.force16By9ThumbnailAspectRatio=!1;D.useCompactList=!1;D.containerType=2;D.thumbnailTargetWidth=9999;D.isResponsiveGrid=!1;D.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};D.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
D.hoverListener=D.hover.bind(D);D.leaveListener=D.leave.bind(D);D.highlighted=!1;D.JSC$16040_unsubscribeFromInlinePreviewIsActive=function(){};
return D};
_.n(kq,_.N);_.u=kq.prototype;_.u.computeContainerType=function(){return this.useCompactList?3:2};
_.u.computeThumbnailTargetWidth=function(){var D;return(D=this.itemWidth)!=null?D:9999};
_.u.updateIsInFirstColumn=function(){var D;this.isInFirstColumn=((D=this.data)==null?void 0:D.colIndex)===0};
_.u.observerContainerType=function(){if(this.lockup){var D=this.lockup;D.containerType=this.containerType;D.sizing=this.sizing;D.typographyBump=this.typographyBump;D.itemWidth=this.itemWidth}this.richGridMedia&&_.f("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.f("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.u.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",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]]"}}}}}};
_.u.leave=function(D){D=D.relatedTarget;var Y=document.querySelector("ytd-video-preview");D&&Y&&_.MB(Y).contains(D)||this.removeAndCleanupHighlight()};
_.u.hover=function(){var D;if(!this.highlighted&&(!_.f("web_enable_rich_item_on_focus_effect")||(D=this.data)!=null&&D.onFocusEffect)){var Y,R;((Y=this.data)==null?void 0:(R=Y.onFocusEffect)==null?void 0:R.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(D=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:D,boxShadow:"0 0 0 10px "+D}));var Z,t;((Z=this.data)==null?void 0:(t=Z.onFocusEffect)==null?void 0:
t.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.u.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};
_.u.registerHoverHighlightListeners=function(){var D=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16040_unsubscribeFromInlinePreviewIsActive=_.rm(_.Dl(),_.Psj,function(Y){D.highlighted&&!Y&&D.removeAndCleanupHighlight()})};
_.u.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16040_unsubscribeFromInlinePreviewIsActive()};
_.u.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.u.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.u.getBackgroundColor=function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.onFocusEffect)==null?void 0:Y.onFocusColor;if(R){if(document.documentElement.hasAttribute("dark")&&(R==null?0:R.darkTheme))return _.HG(R==null?void 0:R.darkTheme);if(R==null?0:R.lightTheme)return _.HG(R==null?void 0:R.lightTheme)}};
_.u.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var D=_.K2(),Y,R,Z;D&&((Y=this.data)==null?0:Y.trackingParams)&&((R=this.data)==null?void 0:R.colIndex)!=null&&((Z=this.data)==null?void 0:Z.rowIndex)!=null&&_.O7(D,_.oT(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.u.isSlimMediaRenderer=function(D){return!!_.A(D==null?void 0:D.content,_.pXz)||!!_.A(D==null?void 0:D.content,B7E)||!!_.A(D==null?void 0:D.content,_.mM)||!!_.A(D==null?void 0:D.content,S_4)};
_.u.isPostRenderer=function(){var D,Y;return!!_.A((D=this.data)==null?void 0:D.content,Kcb)||!!_.A((Y=this.data)==null?void 0:Y.content,hD_)};
_.u.computeIsGameCardShelf=function(){var D;return!!_.A((D=this.data)==null?void 0:D.content,EOb)};
_.u.computeIsMiniGameCardShelf=function(){var D,Y;return!!_.A((D=this.data)==null?void 0:D.content,av4)||!!_.A((Y=this.data)==null?void 0:Y.content,MQL)};
_.u.computeIsTeaserCard=function(){var D;return!!_.A((D=this.data)==null?void 0:D.content,MQL)};
_.u.computeIsSelectableFeedbackItem=function(){var D,Y;return!((Y=_.A((D=this.data)==null?void 0:D.content,_.Wvz))==null||!Y.selectableFeedback)};
_.u.computeContainsLumierePosters=function(){var D,Y;return((Y=_.A((D=this.data)==null?void 0:D.content,Er1))==null?void 0:Y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.u.computeIsExpandOnHoverCardShelf=function(){var D;return!!_.A((D=this.data)==null?void 0:D.content,pj4)};
_.u.computeIsLinkCardShelf=function(){var D;return!!_.A((D=this.data)==null?void 0:D.content,AVE)};
_.u.computeIsReelItemStyleAvatarCircle=function(D){var Y;return((Y=_.A(D==null?void 0:D.content,_.mM))==null?void 0:Y.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.u.computeIsLinkCardFullWidth=function(D,Y){var R;return((R=_.A(D==null?void 0:D.content,AVE))==null?void 0:R.useFullWidth)||Y<=2};
_.YF.Object.defineProperties(kq.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.f("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.f("web_enable_rich_item_on_focus_effect")||_.f("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}}});
kq.prototype.richGridHoverHighlightChanged=kq.prototype.richGridHoverHighlightChanged;kq.prototype.observerContainerType=kq.prototype.observerContainerType;kq.prototype.updateIsInFirstColumn=kq.prototype.updateIsInFirstColumn;_.q([_.v(_.mb),_.x("design:type",Object)],kq.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],kq.prototype,"ytdLockupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kq.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.x("design:type",Boolean)],kq.prototype,"isPost",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.x("design:type",Boolean)],kq.prototype,"containsLumierePosters",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.x("design:type",Boolean)],kq.prototype,"isSlimMedia",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.x("design:type",Boolean)],kq.prototype,"isGameCardShelf",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.x("design:type",Boolean)],kq.prototype,"isMiniGameCardShelf",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.x("design:type",Boolean)],kq.prototype,"isTeaserCard",void 0);_.q([_.y({computed:"computeIsSelectableFeedbackItem(data)"}),_.x("design:type",Boolean)],kq.prototype,"isSelectableFeedbackItem",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"isShortsGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],kq.prototype,"isSlimGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"isCompactGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"isShortsPanelGrid",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.x("design:type",Boolean)],kq.prototype,"isExpandOnHoverCardShelf",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.x("design:type",Boolean)],kq.prototype,"isLinkCardShelf",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.UM,value:3}),_.x("design:type",Number)],kq.prototype,"itemsPerRow",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"renderedFromRichGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"isInFirstColumn",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"noGutterMargins",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"isInlineGroupItem",void 0);_.q([_.y(),_.x("design:type",Object)],kq.prototype,"insetMetadata",void 0);
_.q([_.y(),_.x("design:type",Object)],kq.prototype,"noBottomMarginInAds",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],kq.prototype,"isShelfItem",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.x("design:type",Boolean)],kq.prototype,"isReelItemStyleAvatarCircle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.x("design:type",Boolean)],kq.prototype,"isLinkCardFullWidth",void 0);
_.q([_.y(),_.x("design:type",Object)],kq.prototype,"force16By9ThumbnailAspectRatio",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"useCompactList",void 0);_.q([_.y(),_.x("design:type",String)],kq.prototype,"sizing",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],kq.prototype,"typographyBump",void 0);_.q([_.y(),_.x("design:type",Number)],kq.prototype,"itemWidth",void 0);_.q([_.y(),_.x("design:type",Boolean)],kq.prototype,"isHomeShelf",void 0);
_.q([_.y(),_.x("design:type",Boolean)],kq.prototype,"isHomeGrid",void 0);_.q([_.fr("yt-lockup-view-model"),_.x("design:type",HTMLElement)],kq.prototype,"lockup",void 0);_.q([_.fr("ytd-rich-grid-media"),_.x("design:type",HTMLElement)],kq.prototype,"richGridMedia",void 0);_.q([_.fr("ytd-ad-slot-renderer"),_.x("design:type",HTMLElement)],kq.prototype,"adSlotRenderer",void 0);_.q([_.y({computed:"computeContainerType(useCompactList)"}),_.x("design:type",Object)],kq.prototype,"containerType",void 0);
_.q([_.y({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.x("design:type",Object)],kq.prototype,"thumbnailTargetWidth",void 0);_.q([_.b("showYtInteractionOnRichItem"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kq.prototype,"showYtInteractionOnRichGridMedia",null);_.q([_.b("isSelectableFeedbackItem","richGridHoverHighlight"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kq.prototype,"showYtInteractionOnRichItem",null);
_.q([_.b("typographyBump","isHomeGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kq.prototype,"richTypographyBump",null);_.q([_.y({reflectToAttribute:!0}),_.b("isShortsGrid","isCompactGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kq.prototype,"richGridHoverHighlight",null);_.q([_.b("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],kq.prototype,"shortsLockupViewModelAspectRatio",null);
_.q([_.b("isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],kq.prototype,"shortsLockupViewModelScrimStyle",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kq.prototype,"updateIsInFirstColumn",null);_.q([_.Gm("containerType","sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kq.prototype,"observerContainerType",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kq.prototype,"isResponsiveGrid",void 0);_.q([_.y(),_.x("design:type",Object)],kq.prototype,"lockupExperiments",void 0);_.q([_.Gm("richGridHoverHighlight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kq.prototype,"richGridHoverHighlightChanged",null);_.q([_.h({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],kq);
_.fRE=_.WL()(kq,"ytd-rich-item-renderer",function(){if(X2z===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);X2z=D}D=X2z;return D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var PG9={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var ZxU=_.i0(_.fX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var BTM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},EgU={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},ggU={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var e_L;var UA=function(){var D=_.N.apply(this,arguments)||this;D.useResponsiveGrid=!1;D.hidden=!1;D.isShowMoreHidden=!1;D.isExpanded=!1;D.isInnerShelf=!1;D.allVideosCount=0;D.allPlaylistCount=0;D.haveSmartDownloadsCompleted=!1;D.isShowLessHidden=!0;D.restrictContentsOverflow=!1;D.firstShownIndex=0;D.horizontalOffset=0;D.atEnd=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
D.nextClick=function(){var Y;(Y=D.data)!=null&&Y.contents&&(D.firstShownIndex+=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
D.previousClick=function(){var Y;(Y=D.data)!=null&&Y.contents&&(D.firstShownIndex-=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
return D};
_.n(UA,_.N);_.u=UA.prototype;
_.u.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.JQ("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.u.attached=function(){this.requestElementsPerRow()};
_.u.refreshGridLayoutNew=function(){var D;if((D=this.data)!=null&&D.contents&&this.containerWidth){var Y;((Y=this.data.responsiveContainerConfiguration)==null?0:Y.responsiveSize)?(D=_.XeU(this.data.responsiveContainerConfiguration,this.containerWidth),D=_.pH(Object.assign({},D,{standardUnitMinWidth:this.standardUnitMinWidth}))):D=_.pH({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=D.typographyBump;if(this.elementsPerRow!==
D.numItems||this.gutter!==D.gutter)this.elementsPerRow=D.numItems,this.gutter=D.gutter,this.itemWidth=D.itemWidth,_.SN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":D.gutter+"px"})}};
_.u.computeSizing=function(){if(!this.isLumiere){var D=_.yYU(this.data);if(D)return D;if(_.f("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.u.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.u.computeButton=function(D){var Y=_.A(D,_.qv);D=Object.assign({},_.A(D,_.qv));return Y?(D.text||(D.text={simpleText:D.tooltip}),D.style="STYLE_MONO_OUTLINE",D.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",D):Y};
_.u.onRowIndexChange=function(){var D=_.K2(),Y,R;((Y=this.data)==null?0:Y.trackingParams)&&((R=this.data)==null?void 0:R.rowIndex)!=null&&D&&_.O7(D,_.oT(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.u.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var D,Y=((D=this.getRichItemRenderers()[0])==null?void 0:D.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*Y;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
_.u.onUpdateElementsPerRowAction=function(D,Y,R,Z,t,X){if(this.containerWidth!==X&&(this.containerWidth=X,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&D&&Y&&R&&Z&&t&&(this.elementsPerRow!==D||this.postsPerRow!==Y||this.slimItemsPerRow!==R||this.gameCardsPerRow!==Z||this.miniGameCardsPerRow!==t)&&(this.elementsPerRow=D,this.postsPerRow=Y,this.slimItemsPerRow=R,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=t,this.updateItemVisibility())};
_.u.getRichItemRenderers=function(){return _.aU(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.u.updateItemVisibility=function(){var D=this;if(this.data&&this.data.contents){var Y=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Z,t){var X;((X=D.data)==null?0:X.isExpanded)?(Z.hidden=t>Y-1,Z.ytRendererBehavior.markDirty()):Z.hidden=t>D.currentElementsPerRow-1||t>Y-1});
var R=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||R||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||R||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.u.setHeightToSingleRow=function(){var D=this.getRichItemRenderers(),Y=Number.parseInt(getComputedStyle(D[0]).marginBottom,10)||0;D=D.slice(0,this.currentElementsPerRow).reduce(function(R,Z){return Math.max(R,Z.getBoundingClientRect().height+Y)},0);
this.contents.style.height=D+"px"};
_.u.focusNextExpandedItem=function(){var D;((D=this.data)==null?0:D.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.u.focusItem=function(D,Y){var R=this.getRichItemRenderers();if(R[D]&&(D=R[D].querySelector(".focus-on-expand"))){if(Y){var Z;(Z=R[this.currentElementsPerRow])==null||Z.scrollIntoView({behavior:"smooth",block:"center"})}D.focus({preventScroll:!0})}};
_.u.onDataChange=function(){var D=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var Y;if((Y=this.data)==null?0:Y.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.cy(this,function(){D.updateItemVisibility()});
var R;if((R=this.data)==null?0:R.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.SN(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),Y=0;Y<this.data.contents.length;Y++)R=_.A(this.data.contents[Y],_.Nv)||{},R.colIndex=Y,R.rowIndex=this.data.rowIndex};
_.u.handleRerenderDownloadsData=function(){_.f("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())};
_.u.blockInlinePreview=function(D){var Y=this,R;return _.C(function(Z){(R=Y.inlinePreviewIsEnabled)&&Y.ytdReduxBehavior.dispatch(_.s4L(!1));return Z.return(new Promise(function(t){D(function(){R&&Y.ytdReduxBehavior.dispatch(_.s4L(!0));t()})}))})};
_.u.expandShelf=function(){var D=this;if(this.data){var Y,R=(Y=_.A(this.data.showMoreButton,_.qv))==null?void 0:Y.trackingParams;R&&_.GJ(_.n8(),R);this.data.isExpanded=!0;this.blockInlinePreview(function(Z){D.setHeightToSingleRow();D.updateItemVisibility();D.contents.style.height=D.contents.scrollHeight+"px";_.yc.addJob(function(){D.contents.style.height="auto";D.focusNextExpandedItem();Z()},2,200)})}};
_.u.collapseShelf=function(){var D=this;return _.C(function(Y){if(Y.nextAddress==1){if(!D.data)return Y.return();D.data.isExpanded=!1;return Y.yield(D.blockInlinePreview(function(R){D.contents.style.height=D.contents.scrollHeight+"px";D.setHeightToSingleRow();_.yc.addJob(function(){D.updateItemVisibility();D.contents.style.height="auto";R()},2,200)}),2)}_.MX(D.hostElement,"yt-rich-shelf-renderer-collapse",D.data.trackingParams);
D.focusItem(0,!1);_.V9(Y)})};
_.u.updateArrowButtonStatus=function(){var D=this.getRichItemRenderers().length;if(!_.f("web_rich_shelf_renderer_use_data_contents_killswitch")){var Y,R;D=((Y=this.data)==null?void 0:(R=Y.contents)==null?void 0:R.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=D};
_.u.onChildElementFocus=function(D){this.hasChevronButtons&&(D=D.target.closest("#contents > *"),this.contents.contains(D)&&(D.offsetLeft<this.horizontalOffset?this.previousClick():D.offsetLeft+D.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.u.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.JQ("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.u.updateHorizontalOffset=function(){var D=this.getRichItemRenderers(),Y=D.length;if(!_.f("web_rich_shelf_renderer_use_data_contents_killswitch")){var R,Z;Y=((R=this.data)==null?void 0:(Z=R.contents)==null?void 0:Z.length)||0}var t;D=((t=D[0])==null?void 0:t.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>Y?this.firstShownIndex=Y-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*D};
_.u.isSlimMediaShelfRenderer=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!!(_.A(Z,_.pXz)||_.A(Z,B7E)||_.A(Z,_.mM)||_.A(Z,S_4))};
_.u.isGameCardShelf=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!!_.A(Z,EOb)};
_.u.isGnomeShelf=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!!_.A(Z,_.Wvz)};
_.u.isMiniGameCardShelf=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!!_.A(Z,av4)||!!_.A(Z,MQL)};
_.u.hasGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.u.hasRoundedGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.u.isShortsShelf=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!!_.A(Z,_.mM)||!!_.A(Z,S_4)};
_.u.isPostShelfRenderer=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!(!_.A(Z,Kcb)&&!_.A(Z,hD_))};
_.u.isLumiereShelf=function(){var D,Y,R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv);return!!_.A(R==null?void 0:R.content,Er1)};
_.u.isLumiereShelfWithPosters=function(){var D,Y,R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv),Z;return((Z=_.A(R==null?void 0:R.content,Er1))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.u.isExpandOnHoverCardShelf=function(){var D,Y,R,Z=(R=_.A((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[0],_.Nv))==null?void 0:R.content;return!!_.A(Z,pj4)};
_.u.computeHasFeaturedBadge=function(){var D,Y,R=_.A((D=this.data)==null?void 0:(Y=D.badges)==null?void 0:Y[0],_.zXb);return R?R.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.u.computeHasPaygatedFeaturedBadge=function(){var D,Y,R=_.A((D=this.data)==null?void 0:(Y=D.badges)==null?void 0:Y[0],_.zXb);return R?(R==null?void 0:R.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.u.computeHeaderHidden=function(){var D,Y,R,Z,t,X;return!((D=this.data)==null?0:D.icon)&&!((Y=this.data)==null?0:Y.title)&&!((R=this.data)==null?0:R.subtitle)&&!((Z=this.data)==null?0:Z.thumbnail)&&!((t=this.data)==null?0:t.badges)&&!((X=this.data)==null?0:X.menu)};
_.u.showCtaButton=function(){var D;return!((D=this.data)==null||!D.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.u.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.u.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.u.computeForce16By9ThumbnailAspectRatio=function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.responsiveContainerConfiguration)==null?void 0:Y.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.u.onSectionReactiveDismissal=function(D,Y,R){var Z,t;var X=(Z=this.data)==null?void 0:(t=Z.targetingContext)==null?void 0:t.targetGroupId;this&&X&&Y.targetGroupId&&X.includes(Y.targetGroupId)?(Z=this.rowIndex,D=Z===void 0?!1:!(Y.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Z<=D)):D=!1;D&&(this.hidden=R)};
_.YF.Object.defineProperties(UA.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var D=this.elementsPerRow;this.isPostShelfRenderer()?D=this.postsPerRow:this.isSlimMediaShelfRenderer()?D=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?D=this.slimItemsPerRow-1:this.isGameCardShelf()?D=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(D=this.miniGameCardsPerRow);return D}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.f("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.previousButton)&&!((Y=this.data)==null||!Y.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 D;return((D=_.DH().resolve(_.Z4).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return!((D=this.data)==null?0:(Y=D.thumbnail)==null?0:(R=Y.accessibility)==null?0:(Z=R.accessibilityData)==null?0:Z.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
UA.prototype.onChildElementFocus=UA.prototype.onChildElementFocus;UA.prototype.handleRerenderDownloadsData=UA.prototype.handleRerenderDownloadsData;UA.prototype.onDataChange=UA.prototype.onDataChange;UA.prototype.onRowIndexChange=UA.prototype.onRowIndexChange;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],UA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.HH),_.x("design:type",Object)],UA.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],UA.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],UA.prototype,"ytdReduxBehavior",void 0);_.q([_.y({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.x("design:type",Object)],UA.prototype,"useResponsiveGrid",void 0);_.q([_.y(),_.x("design:type",Object)],UA.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Number)],UA.prototype,"standardUnitMinWidth",void 0);_.q([_.y({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],UA.prototype,"elementsPerRow",void 0);_.q([_.y({value:3}),_.x("design:type",Number)],UA.prototype,"postsPerRow",void 0);_.q([_.y({value:6}),_.x("design:type",Number)],UA.prototype,"slimItemsPerRow",void 0);_.q([_.y({value:6}),_.x("design:type",Number)],UA.prototype,"gameCardsPerRow",void 0);
_.q([_.y({value:6}),_.x("design:type",Number)],UA.prototype,"miniGameCardsPerRow",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UA.prototype,"hidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UA.prototype,"isShowMoreHidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UA.prototype,"isExpanded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UA.prototype,"isInnerShelf",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.x("design:type",Boolean)],UA.prototype,"isShorts",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.x("design:type",Boolean)],UA.prototype,"isLumiere",void 0);_.q([_.y({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],UA.prototype,"hasBoxArtThumbnailStyle",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],UA.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.x("design:type",Boolean)],UA.prototype,"hasFeaturedBadge",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.x("design:type",Boolean)],UA.prototype,"hasPaygatedFeaturedBadge",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.x("design:type",Boolean)],UA.prototype,"isHeaderHidden",void 0);_.q([_.y({selector:_.d8S}),_.x("design:type",Object)],UA.prototype,"allVideosCount",void 0);_.q([_.y({selector:srn}),_.x("design:type",Object)],UA.prototype,"allPlaylistCount",void 0);_.q([_.y({selector:Xs$}),_.x("design:type",Object)],UA.prototype,"haveSmartDownloadsCompleted",void 0);
_.q([_.y({selectorArgs:["entitySelectorType"],selector:function(D,Y){if(_.f("kevlar_modern_downloads_page")&&Y&&Y!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var R=D.entities;switch(Y){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":Y=_.Nw(R);D=eV(Y);var Z=_.wL(Y);R=_.Ju(R);R=_.tu(iQn(Z,R,Y.length));return{contents:D,subtitle:R};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return R=_.Nw(R),{contents:eV(R)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return R=
_.l0(R),{contents:eV(R)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return R=_.$89(R),{contents:eV(R)};default:_.Jk(new _.AT("Error: entitySelectorType defined but not matched in selector.",D,Y))}}}}),
_.x("design:type",Object)],UA.prototype,"entityDrivenRichShelfData",void 0);_.q([_.y({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],UA.prototype,"hasTopCtaButton",void 0);_.q([_.y({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],UA.prototype,"hasBottomCtaButton",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.x("design:type",Boolean)],UA.prototype,"force16By9ThumbnailAspectRatio",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UA.prototype,"isShowLessHidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UA.prototype,"restrictContentsOverflow",void 0);_.q([_.y({selector:_.Qin}),_.x("design:type",Boolean)],UA.prototype,"inlinePreviewIsEnabled",void 0);
_.q([_.y({computed:"computeSizing(data)"}),_.x("design:type",String)],UA.prototype,"sizing",void 0);_.q([_.y(),_.x("design:type",Boolean)],UA.prototype,"typographyBump",void 0);_.q([_.y(),_.x("design:type",Number)],UA.prototype,"itemWidth",void 0);_.q([_.y(),_.x("design:type",Object)],UA.prototype,"firstShownIndex",void 0);_.q([_.y(),_.x("design:type",Object)],UA.prototype,"horizontalOffset",void 0);_.q([_.y(),_.x("design:type",Object)],UA.prototype,"atEnd",void 0);
_.q([_.fr("#contents"),_.x("design:type",HTMLElement)],UA.prototype,"contents",void 0);_.q([_.Gm("data.rowIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UA.prototype,"onRowIndexChange",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UA.prototype,"onDataChange",null);
_.q([_.Gm("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UA.prototype,"handleRerenderDownloadsData",null);_.q([_.Fv("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],UA.prototype,"onChildElementFocus",null);_.q([_.y({reflectToAttribute:!0}),_.b("data","isHomePage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UA.prototype,"isTruncated",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UA.prototype,"hideBottomDivider",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],UA.prototype,"hasChevronButtons",null);_.q([_.b("firstShownIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],UA.prototype,"previousButtonOverride",null);
_.q([_.b("atEnd"),_.x("design:type",Object),_.x("design:paramtypes",[])],UA.prototype,"nextButtonOverride",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UA.prototype,"isHomePage",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UA.prototype,"thumbnailAriaHidden",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UA.prototype,"initiallyIsExpanded",null);
_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],UA.prototype,"entitySelectorType",null);_.q([_.h({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],UA);
_.ADz=_.WL()(UA,"ytd-rich-shelf-renderer",function(){if(e_L===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);e_L=D}D=e_L;return D},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var n14;_.at(_.sq,"yt-badge-view-model",{props:{data:_.cs,class:_.cs,workaroundShortsIsThumbnailBadge:_.cs,modern:_.cs}});_.at(YCL,"yt-slimline-survey-view-model",{props:{data:_.cs}});var K1=function(){var D=_.N.apply(this,arguments)||this;D.tileLottieAnimationRef={};D.backgroundLottieAnimationRef={};D.isOnHoverBehaviorForLottieEnabled=!0;D.useBiggerShowcaseImage=_.f("enable_desktop_search_bigger_thumbs");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return D};
_.n(K1,_.N);_.u=K1.prototype;_.u.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.u.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",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"}}}};
_.u.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var D=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);D!==this.hasTile&&this.set("hasTile",D);D=this.hasLogo(this.data)||!!this.data.badgeText;D!==this.hasMetadata&&this.set("hasMetadata",D);D=this.data.overflowButton?!1:D;D!==this.showLogoImage&&this.set("showLogoImage",D);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.u.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.u.currentColorChanged=function(){this.updateButtonPalette()};
_.u.computeBackgroundStyle=function(D){if(D&&this.data){var Y=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var R=_.CB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);R&&Y.push('background-image: url("'+R+'");')}var Z;((Z=D.basicColorData)==null?void 0:Z.backgroundColor)!==void 0&&Y.push("background-color: "+_.xI(D.basicColorData.backgroundColor)+";");return Y.join("")}};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
_.u.getCurrentLogo=function(D,Y){if(D)return Y?D.darkLogoImage:D.lightLogoImage};
_.u.getCurrentStaticTileImage=function(D,Y){if(this.hasStaticTile(D))return D.darkTileImage?Y?D.darkTileImage:D.tileImage:D.tileImage};
_.u.computeTitleStyle=function(D){if(this.data&&this.data.title&&D&&D.basicColorData&&D.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.HG(D.basicColorData.foregroundTitleColor)+";"};
_.u.computeSubtitleStyle=function(D){if(this.data&&this.data.subtitle&&D&&D.basicColorData&&D.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.HG(D.basicColorData.foregroundBodyColor)+";"};
_.u.computeSupplementalStyle=function(D){if(this.data&&this.data.supplementalText&&D&&D.supplementalTextColor!==void 0)return D=_.HG(D.supplementalTextColor),"color:"+D+";--yt-endpoint-color:"+D+";--yt-endpoint-hover-color:"+D+";--yt-endpoint-visited-color:"+D+";--yt-formatted-string-bold-font-weight:700;"};
_.u.computeDismissIconStyle=function(D){var Y,R;if((D==null?0:(Y=D.dismissButtonColorData)==null?0:Y.foregroundTitleColor)&&(D==null?0:(R=D.dismissButtonColorData)==null?0:R.backgroundColor))return"--yt-button-color:"+_.xI(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.xI(D.dismissButtonColorData.backgroundColor)+";"};
_.u.computeOverflowIconStyle=function(D){var Y,R;if((D==null?0:(Y=D.dismissButtonColorData)==null?0:Y.foregroundTitleColor)&&(D==null?0:(R=D.dismissButtonColorData)==null?0:R.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.xI(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.xI(D.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.xI(D.dismissButtonColorData.foregroundTitleColor)+";"};
_.u.computeBannerStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeLocation=function(D){switch(D==null?void 0:D.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.u.shouldShowTileSection=function(D,Y,R){return!this.shouldExpandLogo(D,Y,R)&&Y};
_.u.shouldShowExpandedLogoSection=function(D,Y,R){return this.shouldExpandLogo(D,Y,R)&&D!==void 0&&this.hasLogo(D)};
_.u.shouldExpandLogo=function(D,Y,R){return D&&Y?!1:R>=2};
_.u.hasStaticTile=function(D){return!(D==null||!D.tileImage)};
_.u.hasTileLottie=function(D){var Y;return!!(D==null?0:(Y=D.tileLottie)==null?0:Y.url)};
_.u.hasLogo=function(D){return this.getCurrentLogo(D,this.isDarkTheme)!==void 0};
_.u.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.u.getExpandedLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.u.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.u.getMaxTitleFontSize=function(D){return D.overrideTitleMaxFontSize?String(D.overrideTitleMaxFontSize):"36"};
_.u.hasBackgroundLottie=function(D){var Y;return!!(D==null?0:(Y=D.backgroundLottie)==null?0:Y.url)};
_.u.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,Y;(D=this.tileLottieAnimationRef)==null||(Y=D.lottieEl)==null||Y.play();var R,Z;(R=this.backgroundLottieAnimationRef)==null||(Z=R.lottieEl)==null||Z.play()}};
_.u.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,Y;(D=this.tileLottieAnimationRef)==null||(Y=D.lottieEl)==null||Y.pause();var R,Z;(R=this.backgroundLottieAnimationRef)==null||(Z=R.lottieEl)==null||Z.pause()}};
_.u.pauseLottie=function(){var D,Y;(D=this.tileLottieAnimationRef)==null||(Y=D.lottieEl)==null||Y.pause();var R,Z;(R=this.backgroundLottieAnimationRef)==null||(Z=R.lottieEl)==null||Z.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.u.performPrimaryButtonAction=function(){var D,Y,R;((D=this.data)==null?0:(Y=D.primaryButton)==null?0:(R=Y.buttonRenderer)==null?0:R.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
_.u.updateButtonPalette=function(){if(this.data&&this.currentColorData){var D;((D=this.data.dismissButton)==null?0:D.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 Y;if((Y=this.data.primaryButton)==null?0:Y.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 R;if((R=this.data.secondaryButton)==
null?0:R.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 Z;((Z=this.data.primaryButton)==null?0:Z.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var t;((t=this.data.secondaryButton)==null?0:t.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var X;((X=this.data.primaryButton)==null?0:X.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.u.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var D=this.getTileLottieDataBasedOnTheme(),Y,R;if(D.url!==((Y=this.tileLottiePlayerProps)==null?void 0:(R=Y.animationConfig)==null?void 0:R.path)){var Z,t;(Z=this.tileLottieAnimationRef)==null||(t=Z.lottieEl)==null||t.destroy();var X;this.isOnHoverBehaviorForLottieEnabled=!((X=D.settings)==null?0:X.autoplay);var M,W;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(W=(M=D.settings)==null?void 0:M.autoplay)!=null?W:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.tileLottiePlayerProps.animationConfig.path=D.url:this.tileLottiePlayerProps.animationConfig.animationData=D.url}}};
_.u.getOverflowButton=function(D){return _.A(D.overflowButton,GBE)};
_.u.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var D=this.getBackgroundLottieDataBasedOnTheme(),Y,R;if(D.url!==((Y=this.backgroundLottiePlayerProps)==null?void 0:(R=Y.animationConfig)==null?void 0:R.path)){var Z,t;(Z=this.backgroundLottieAnimationRef)==null||(t=Z.lottieEl)==null||t.destroy();var X;this.isOnHoverBehaviorForLottieEnabled=!((X=D.settings)==null?0:X.autoplay);var M,W;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(W=(M=D.settings)==null?void 0:M.autoplay)!=null?W:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=D.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
D.url}}};
_.u.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var D;((D=this.tileLottieAnimationRef)==null?void 0:D.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var Y;((Y=this.backgroundLottieAnimationRef)==null?void 0:Y.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.u.getTileLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeTileLottie))return this.data.darkThemeTileLottie;var Y;return((Y=this.data)==null?0:Y.tileLottie)?this.data.tileLottie:{}};
_.u.getBackgroundLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var Y;return((Y=this.data)==null?0:Y.backgroundLottie)?this.data.backgroundLottie:{}};
_.u.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.u.getLottieLoopValue=function(D){return D?D.loop!==void 0?D.loop:D.loopCount?D.loopCount-1:!0:!0};
_.u.logoWithPadding=function(D){var Y,R,Z;return(D=(Y=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(R=Y.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.height)&&D%31===0?!0:!1};
K1.prototype.currentColorChanged=K1.prototype.currentColorChanged;K1.prototype.themeChanged=K1.prototype.themeChanged;K1.prototype.dataChanged=K1.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],K1.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],K1.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"primaryButton",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"secondaryButton",void 0);
_.q([_.y({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],K1.prototype,"elementsPerRow",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],K1.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],K1.prototype,"hasTile",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],K1.prototype,"hasMetadata",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],K1.prototype,"showLogoImage",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"currentColorData",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.x("design:type",String)],K1.prototype,"bannerStyle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.x("design:type",String)],K1.prototype,"location",void 0);
_.q([_.y(),_.x("design:type",Object)],K1.prototype,"tileLottiePlayerProps",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"tileLottieAnimationRef",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"backgroundLottiePlayerProps",void 0);_.q([_.y(),_.x("design:type",Object)],K1.prototype,"backgroundLottieAnimationRef",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],K1.prototype,"useBiggerShowcaseImage",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],K1.prototype,"isHideEnclosingAction",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"dataChanged",null);_.q([_.rd("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"themeChanged",null);
_.q([_.rd("currentColorData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"currentColorChanged",null);_.q([_.h({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],K1);
_.L(K1,"ytd-statement-banner-renderer",function(){if(n14!==void 0)return n14;var D=document.createElement("template");_.w(D,'\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="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return n14=D},{mode:1});var rD4;var hX=function(){var D=_.N.apply(this,arguments)||this;D.isSearch=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.disableMouseScroll=!0;D.useFloorScrolling=!0;D.modernTypography=_.f("web_modern_typography");return D};
_.n(hX,_.N);hX.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.fX("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.fX("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
hX.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
hX.prototype.onDataChanged=hX.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hX.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],hX.prototype,"hideShelfHeader",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],hX.prototype,"engagementPanel",void 0);_.q([_.y(),_.x("design:type",Object)],hX.prototype,"disableMouseScroll",void 0);_.q([_.y(),_.x("design:type",Object)],hX.prototype,"useFloorScrolling",void 0);_.q([_.y(),_.x("design:type",Object)],hX.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],hX.prototype,"modernTypography",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hX.prototype,"onDataChanged",null);_.q([_.h({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],hX);
_.L(hX,"ytd-reel-shelf-renderer",function(){if(rD4!==void 0)return rD4;var D=document.createElement("template");_.w(D,'\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="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\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    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rD4=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var w2E;var $5z;$5z=_.gY(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.v17=_.tZ($5z);var o1V=_.RT(function(D){var Y=D.data;D=D.useSmallFont;var R={},Z={};return _.S("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.S(_.T,{cond:function(){return Y().favicon},
then:function(t){return _.S(_.Rt,{data:t,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.S("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.S(_.y_,{text:function(){return Y().title},
className:_.e7("yt-channel-external-link-view-model-wiz__title",(R["yt-channel-external-link-view-model-wiz__title--title-small-font"]=D,R)),ellipsisTruncate:!0,userInput:!0}),_.S(_.y_,{text:function(){return Y().link},
className:_.e7("yt-channel-external-link-view-model-wiz__link",(Z["yt-channel-external-link-view-model-wiz__link--link-small-font"]=D,Z)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Tb");
o1V.idomCompat=!0;_.at(o1V,"yt-channel-external-link-view-model",{props:{data:_.cs,useSmallFont:_.cs}});_.UD("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var L1=function(){var D=_.N.apply(this,arguments)||this;D.revealButtonClass="button";D.businessEmailDisplayState="HIDE_SECTION";return D};
_.n(L1,_.N);_.u=L1.prototype;_.u.refit=function(){var D=this;_.BE(function(){_.WC(D.hostElement,"yt-refit-popups-action")});
_.cy(this,function(){_.WC(D.hostElement,"yt-refit-popups-action")})};
_.u.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.PO(_.v17),this.businessEmailDisplayState="CAPTCHA")};
_.u.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"};
_.u.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.u.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"}}}};
_.u.computeEmailHref=function(D){return"mailto:"+D};
_.u.computeSafeUrl=function(D){if(D)return _.Jf(D)};
_.u.linkEndpoint=function(D){return _.A(D.onTap,_.mQ)};
_.u.linkEndpointToHref=function(D){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(D))};
_.u.onYtServiceRequestCompleted=function(D){var Y;if((Y=D.detail.data)==null?0:Y.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var R;if((R=D.detail.data)==null?0:R.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.u.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var D=this.JSC$16151_captchaTextarea.value;if(D){D={recaptcha_response_token:D,channel_id:this.metadata.channelId};var Y=_.A(this.metadata.onBusinessEmailRevealClickCommand,_.mQ);Y&&this.ytComponentBehavior.resolveCommand(Y,{form:D})}}};
_.u.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.YF.Object.defineProperties(L1.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var D;return _.A((D=this.data)==null?void 0:D.metadata,OCY)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.A(this.metadata.businessEmailRevealButton,_.QX)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var D=new URL(this.metadata.canonicalChannelUrl);return D.host+D.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 _.A(this.metadata.learnMoreOnTap,_.mQ)}}});
L1.prototype.onYtServiceRequestCompleted=L1.prototype.onYtServiceRequestCompleted;L1.prototype.businessEmailMetadataChanged=L1.prototype.businessEmailMetadataChanged;L1.prototype.refit=L1.prototype.refit;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],L1.prototype,"JSC$16151_captchaTextarea",void 0);_.q([_.y(),_.x("design:type",Object)],L1.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],L1.prototype,"revealButtonClass",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],L1.prototype,"metadata",null);
_.q([_.b("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],L1.prototype,"revealButton",null);_.q([_.b("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],L1.prototype,"channelDisplayUrl",null);_.q([_.rd("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L1.prototype,"refit",null);_.q([_.b("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],L1.prototype,"formattedDescription",null);
_.q([_.b("metadata","learnMoreCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],L1.prototype,"shouldRendereVerifiedPhoneStatus",null);_.q([_.b("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],L1.prototype,"learnMoreCommand",null);_.q([_.y(),_.x("design:type",String)],L1.prototype,"businessEmailDisplayState",void 0);_.q([_.y(),_.x("design:type",String)],L1.prototype,"businessEmail",void 0);
_.q([_.y(),_.x("design:type",String)],L1.prototype,"businessEmailErrorMessage",void 0);_.q([_.rd("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L1.prototype,"businessEmailMetadataChanged",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],L1.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],L1);
_.L(L1,"ytd-about-channel-renderer",function(){if(w2E!==void 0)return w2E;var D=document.createElement("template");_.w(D,'\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">\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return w2E=D},{mode:1});var b5L;var m9=function(){return _.N.apply(this,arguments)||this};
_.n(m9,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],m9.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],m9);
_.L(m9,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(b5L!==void 0)return b5L;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return b5L=D},{mode:1});var yDL;var qu=function(){return _.N.apply(this,arguments)||this};
_.n(qu,_.N);qu.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qu.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],qu.prototype,"aligment",void 0);_.q([_.h({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],qu);
_.L(qu,"ytd-channel-list-sub-menu-renderer",function(){if(yDL!==void 0)return yDL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return yDL=
D},{mode:1});var NWb;var H7=function(){return _.N.apply(this,arguments)||this};
_.n(H7,_.N);H7.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],H7.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],H7);
_.L(H7,"ytd-channel-sub-menu-renderer",function(){if(NWb!==void 0)return NWb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return NWb=D},{mode:1});var lRz;var JDD;var xq=function(){var D=_.N.apply(this,arguments)||this;D.isCompact=!1;return D};
_.n(xq,_.N);_.YF.Object.defineProperties(xq.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((Y=_.A((D=this.data)==null?void 0:D.endpoint,_.Qj))==null?void 0:Y.target)==="TARGET_NEW_WINDOW"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],xq.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xq.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xq.prototype,"isCompact",void 0);_.q([_.b("isCompact"),_.x("design:type",Number),_.x("design:paramtypes",[])],xq.prototype,"thumbnailWidth",null);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xq.prototype,"openNewWindow",null);_.q([_.h({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],xq);
_.L(xq,"ytd-media-lockup-renderer",function(){if(JDD!==void 0)return JDD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return JDD=D},{mode:1});var k4E;var P7=function(){return _.N.apply(this,arguments)||this};
_.n(P7,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],P7.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],P7.prototype,"data",void 0);_.q([_.h({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],P7);
_.L(P7,"ytd-structured-description-channel-lockup-renderer",function(){if(k4E!==void 0)return k4E;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return k4E=D},{mode:1});var U54;var QD=function(){var D=_.N.apply(this,arguments)||this;D.isCompact=!1;D.collections=_.f("web_modern_collections_v2");D.collectionsStackColor=_.f("modernize_structured_description_playlist_lockups_v2");return D};
_.n(QD,_.N);QD.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:_.f("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.YF.Object.defineProperties(QD.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t,X;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(D=this.data)==null?void 0:(Y=D.thumbnail)==null?void 0:Y.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(R=this.data)==null?void 0:(Z=R.thumbnail)==null?void 0:Z.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(t=this.data)==null?void 0:(X=t.thumbnail)==
null?void 0:X.vibrantColorPalette:void 0}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],QD.prototype,"componentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QD.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],QD.prototype,"showSidePanelThumbnailOverlay",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],QD.prototype,"isCompact",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],QD.prototype,"collections",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],QD.prototype,"collectionsStackColor",void 0);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],QD.prototype,"twoLineTitle",null);
_.q([_.b("data","collections","collectionsStackColor"),_.x("design:type",Object),_.x("design:paramtypes",[])],QD.prototype,"collectionStack",null);_.q([_.h({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],QD);
_.L(QD,"ytd-structured-description-playlist-lockup-renderer",function(){if(U54!==void 0)return U54;var D=document.createElement("template");_.w(D,'\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)]]">\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return U54=D},{mode:1});var KxD;var B7=function(){return _.N.apply(this,arguments)||this};
_.n(B7,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],B7.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],B7.prototype,"data",void 0);_.q([_.h({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],B7);
_.L(B7,"ytd-structured-description-video-lockup-renderer",function(){if(KxD!==void 0)return KxD;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return KxD=D},{mode:2});var p1=function(){return _.N.apply(this,arguments)||this};
_.n(p1,_.N);
p1.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],p1.prototype,"data",void 0);_.q([_.h({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],p1);
_.L(p1,"ytd-compact-infocard-renderer",function(){if(lRz!==void 0)return lRz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return lRz=D},{mode:1});var h_U;var EA=function(){var D=_.N.apply(this,arguments)||this;D.useModernCollectionsV2=_.f("web_modern_collections_v2");return D};
_.n(EA,_.N);EA.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.YF.Object.defineProperties(EA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],EA.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],EA.prototype,"ytdReduxBehavior",void 0);_.q([_.y({selector:_.mI}),_.x("design:type",Object)],EA.prototype,"isGridViewEnabled",void 0);
_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],EA.prototype,"watchFeedBigThumbs",null);_.q([_.b("isGridViewEnabled","data"),_.y({reflectToAttribute:!0,value:"168"}),_.x("design:type",String),_.x("design:paramtypes",[])],EA.prototype,"thumbnailWidth",null);_.q([_.b("isGridViewEnabled","data"),_.y({reflectToAttribute:!0,value:"94"}),_.x("design:type",String),_.x("design:paramtypes",[])],EA.prototype,"customThumbnailSize",null);
_.q([_.y(),_.x("design:type",Object)],EA.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EA.prototype,"useModernCollectionsV2",void 0);_.q([_.h({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],EA);
_.L(EA,"ytd-compact-playlist-renderer",function(){if(h_U!==void 0)return h_U;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return h_U=D},{mode:1});var LxU;var gn=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.roundedContainer=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.n(gn,_.N);_.u=gn.prototype;_.u.attached=function(){this.requestElementsPerRow()};
_.u.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"}}}};
_.u.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.u.computeViewStyle=function(D){return D.style?D.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.u.onUpdateElementsPerRowAction=function(D){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&D===1};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
gn.prototype.dataChanged=gn.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],gn.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],gn.prototype,"actionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],gn.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],gn.prototype,"hideThumbnail",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.x("design:type",String)],gn.prototype,"viewStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],gn.prototype,"darkerDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],gn.prototype,"roundedContainer",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gn.prototype,"dataChanged",null);_.q([_.h({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],gn);
_.L(gn,"ytd-compact-promoted-item-renderer",function(){if(LxU!==void 0)return LxU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return LxU=D},{mode:1});var m5V;var dn=function(){var D=_.N.apply(this,arguments)||this;D.collections=_.f("web_modern_collections_v2");return D};
_.n(dn,_.N);dn.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
dn.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
dn.prototype.onYtNavigate=function(D,Y){var R=this;if(Y.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",Y)){var Z=this.get("watchEndpoint.videoId",Y.endpoint),t=_.WC(this.hostElement,"yt-get-current-video-id-action")[0];_.f("kevlar_mix_handle_first_endpoint_different")&&Z&&t&&Z!==t||(D.stopPropagation(),_.XU().getPlayerPromise().then(function(X){if(X.getPlayerState()===0&&R.data.secondaryNavigationEndpoint)var M=R.data.secondaryNavigationEndpoint;else{M=
Object.assign({},Y.endpoint);var W=_.A(M.commandMetadata,_.GA);W&&(X=Math.floor(X.getCurrentTime()),W.url=_.pb(W.url,{t:X}),!_.f("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(W=_.A(M,_.Od)))&&(W.startTimeSeconds=X)}_.MX(R.hostElement,"yt-navigate",{endpoint:M})}))}};
_.YF.Object.defineProperties(dn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t,X;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(Y=D.thumbnail)==null?void 0:Y.sampledThumbnailColor,vibrantColorPalette:(R=this.data)==null?void 0:(Z=R.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(t=this.data)==null?void 0:(X=t.thumbnail)==null?void 0:X.darkColorPalette,experimentEnabled:this.collections}}}});
dn.prototype.onYtNavigate=dn.prototype.onYtNavigate;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],dn.prototype,"ytEndpointBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],dn.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.gM),_.x("design:type",Object)],dn.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.q([_.y({selector:_.mI}),_.x("design:type",Object)],dn.prototype,"isGridViewEnabled",void 0);_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],dn.prototype,"watchFeedBigThumbs",null);
_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],dn.prototype,"thumbnailWidth",null);_.q([_.y(),_.x("design:type",Object)],dn.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],dn.prototype,"collections",void 0);_.q([_.b("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],dn.prototype,"collectionStack",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],dn.prototype,"onYtNavigate",null);_.q([_.h({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],dn);
_.L(dn,"ytd-compact-radio-renderer",function(){if(m5V!==void 0)return m5V;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return m5V=D},{mode:1});var qsD;var i5=function(){return _.N.apply(this,arguments)||this};
_.n(i5,_.N);i5.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
i5.prototype.computeRendererStyle=function(D){return D.style?D.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.q([_.y(),_.x("design:type",Object)],i5.prototype,"data",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],i5.prototype,"rendererBehavior",void 0);_.q([_.y({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],i5.prototype,"rendererStyle",void 0);_.q([_.h({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],i5);
_.L(i5,"ytd-compact-text-promo-renderer",function(){if(qsD!==void 0)return qsD;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return qsD=D},{mode:1});var H5U;var OA=function(){var D=_.N.apply(this,arguments)||this;D.isShortsStyle=!1;return D};
_.n(OA,_.N);_.u=OA.prototype;_.u.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"}}}};
_.u.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.MX(this.hostElement,"yt-disable-lockup-interaction"):_.MX(this.hostElement,"yt-enable-lockup-interaction"))};
_.u.isMetaBlockEmpty=function(D){return!D||!D.longBylineText&&!D.shortBylineText&&!D.shortViewCountText&&!D.viewCountText};
_.u.computeHasOneLineTitle=function(D){return this.forceOneLineTitle||!(D==null||!D.buttons)};
_.u.computeDisableInteraction=function(){var D;return!((D=this.data)==null?0:D.navigationEndpoint)};
_.u.hasSingularTopStandaloneBadge=function(){var D;return!((D=this.data)==null||!D.topStandaloneBadge)};
_.YF.Object.defineProperties(OA.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("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 D;return this.hasSingularTopStandaloneBadge()?[(D=this.data)==null?void 0:D.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var D;return this.shouldShowTopBadges?((D=this.data)==null?void 0:D.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
OA.prototype.disableInteractionChanged=OA.prototype.disableInteractionChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],OA.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],OA.prototype,"ytdLockupBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],OA.prototype,"ytdReduxBehavior",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.x("design:type",Boolean)],OA.prototype,"metaBlockEmpty",void 0);_.q([_.y({selector:_.mI}),_.x("design:type",Object)],OA.prototype,"isGridViewEnabled",void 0);_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OA.prototype,"watchFeedBigThumbs",null);
_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],OA.prototype,"thumbnailWidth",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],OA.prototype,"isShortsStyle",void 0);_.q([_.y(),_.x("design:type",Object)],OA.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.x("design:type",Boolean)],OA.prototype,"hasOneLineTitle",void 0);
_.q([_.y(),_.x("design:type",Boolean)],OA.prototype,"hideThumbnail",void 0);_.q([_.y(),_.x("design:type",Boolean)],OA.prototype,"forceOneLineTitle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.x("design:type",Boolean)],OA.prototype,"disableInteraction",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],OA.prototype,"musicMetadataVideoLockup",void 0);
_.q([_.Gm("disableInteraction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OA.prototype,"disableInteractionChanged",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OA.prototype,"shouldShowTopBadges",null);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],OA.prototype,"topBadges",null);
_.q([_.b("shouldShowTopBadges","data"),_.x("design:type",Array),_.x("design:paramtypes",[])],OA.prototype,"inlineMetadataBadges",null);_.q([_.b("shouldShowTopBadges"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OA.prototype,"shouldShowBadgesBelowMetadata",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],OA.prototype,"compactTitleClass",null);_.q([_.h({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],OA);
_.L(OA,"ytd-compact-video-renderer",function(){if(H5U!==void 0)return H5U;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return H5U=D},{mode:_.zD("kevlar_poly_si_batch_j067")?1:2});var x5z;_.UD("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var c7=function(){return _.N.apply(this,arguments)||this};
_.n(c7,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],c7.prototype,"data",void 0);_.q([_.h({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],c7);
_.L(c7,"ytd-counterfactual-renderer",function(){if(x5z!==void 0)return x5z;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return x5z=D},{mode:1});var Pd4;var Df=function(){var D=_.N.apply(this,arguments)||this;D.hidden=!1;return D};
_.n(Df,_.N);Df.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.DH().resolve(_.Yw).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Df.prototype.computeHidden=function(D){return!!D};
_.YF.Object.defineProperties(Df.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}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Df.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.x("design:type",Object)],Df.prototype,"hidden",void 0);_.q([_.b("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],Df.prototype,"label",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Df.prototype,"value",null);
_.q([_.h({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Df);
_.L(Df,"ytd-dropdown-item-renderer",function(){if(Pd4!==void 0)return Pd4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Pd4=D},{mode:1});var QNz;var BWV;var Yj=function(){return _.N.apply(this,arguments)||this};
_.n(Yj,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yj.prototype,"data",void 0);_.q([_.y({computed:"getSimpleString(data.label)"}),_.x("design:type",String)],Yj.prototype,"label",void 0);_.q([_.h({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Yj);
_.L(Yj,"ytd-navigation-dropdown-item-renderer",function(){if(BWV!==void 0)return BWV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return BWV=D},{mode:1});var RH=function(){var D=_.N.apply(this,arguments)||this;D.disabled=!1;D.value="";D.noLabelFloat=!1;D.noUnderline=!1;D.usePrimaryColor=!1;D.hasBackground=!1;D.verticalAlign="top";D.autosize=!1;D.minAutosizeWidth=100;D.autosizeFont="14px Roboto";return D};
_.n(RH,_.N);_.u=RH.prototype;_.u.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"}}}};
_.u.open=function(){this.inputEl.open()};
_.u.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.u.dataChanged=function(){this.reset()};
_.u.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("value-changed",this.value))};
_.u.stopPropagation=function(D){D.stopPropagation()};
_.u.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var D=this.canvas.getContext("2d");D&&(D.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(D.measureText(this.inputEl.value).width)+24)+"px")}};
_.u.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var D=0,Y=this.data.entries.length;D<Y;D++){var R=this.data.entries[D],Z;for(Z in R)if(R.hasOwnProperty(Z)){var t=R[Z];if("isSelected"in t&&t.isSelected)return"stringValue"in t?t.stringValue||"":"int32Value"in t?t.int32Value||0:0}}return null};
_.u.updateValueFromBinding=function(D){this.value=D.detail.value};
_.YF.Object.defineProperties(RH.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 D=0,Y=this.data.entries.length;D<Y;D++){var R=this.data.entries[D],Z;for(Z in R)if(R.hasOwnProperty(Z)){var t=R[Z];if("isSelected"in t&&t.isSelected&&"label"in t)return this.ytRendererBehavior.getSimpleString(t.label)}}return null}}});
RH.prototype.autoSizeLabel=RH.prototype.autoSizeLabel;RH.prototype.stopPropagation=RH.prototype.stopPropagation;RH.prototype.valueChangedForBinding=RH.prototype.valueChangedForBinding;RH.prototype.dataChanged=RH.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],RH.prototype,"ytRendererStamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],RH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],RH.prototype,"disabled",void 0);_.q([_.y(),_.x("design:type",Object)],RH.prototype,"value",void 0);_.q([_.y(),_.x("design:type",Object)],RH.prototype,"noLabelFloat",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],RH.prototype,"noUnderline",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],RH.prototype,"theme",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],RH.prototype,"usePrimaryColor",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],RH.prototype,"hasBackground",void 0);_.q([_.y(),_.x("design:type",Object)],RH.prototype,"verticalAlign",void 0);_.q([_.y(),_.x("design:type",Object)],RH.prototype,"autosize",void 0);_.q([_.y(),_.x("design:type",Object)],RH.prototype,"minAutosizeWidth",void 0);_.q([_.y(),_.x("design:type",Object)],RH.prototype,"autosizeFont",void 0);
_.q([_.fr("#entries"),_.x("design:type",Object)],RH.prototype,"entries",void 0);_.q([_.fr("#input"),_.x("design:type",Object)],RH.prototype,"inputEl",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RH.prototype,"dataChanged",null);_.q([_.rd("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RH.prototype,"valueChangedForBinding",null);
_.q([_.Fv("iron-overlay-opened"),_.Fv("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],RH.prototype,"stopPropagation",null);_.q([_.Fv("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RH.prototype,"autoSizeLabel",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],RH.prototype,"label",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],RH);
_.L(RH,"ytd-dropdown-renderer",function(){if(QNz!==void 0)return QNz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return QNz=D},{mode:1});var p2V;var Zf=function(){var D=_.N.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.n(Zf,_.N);Zf.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"}}}};
Zf.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Zf.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Zf.prototype.computeViewAllHidden=function(D,Y){return D||!Y.viewAllEndpoint};
Zf.prototype.fillRestIfNoShowMore=Zf.prototype.fillRestIfNoShowMore;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],Zf.prototype,"ytLazyListBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zf.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Zf.prototype,"isConstrainedList",void 0);_.q([_.rd("data","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zf.prototype,"fillRestIfNoShowMore",null);_.q([_.h({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Zf);
_.L(Zf,"ytd-expanded-shelf-contents-renderer",function(){if(p2V!==void 0)return p2V;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return p2V=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var E1V;var to=function(){return _.N.apply(this,arguments)||this};
_.n(to,_.N);to.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],to.prototype,"data",void 0);_.q([_.h({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],to);
_.L(to,"ytd-feed-channel-filter-header-renderer",function(){if(E1V!==void 0)return E1V;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return E1V=D},{mode:1});var g1_;var d5L;var i5b;var sf=function(){return _.N.apply(this,arguments)||this};
_.n(sf,_.N);_.u=sf.prototype;_.u.onClick=function(D){var Y,R=(Y=this.data)==null?void 0:Y.sectionEndpoint;!_.Yc(_.O$(D),this.hostElement,["A".toString()])&&R&&_.MX(this.hostElement,"yt-navigate",{endpoint:R})};
_.u.computeHasSectionEndpoint=function(D){return(D==null?void 0:D.sectionEndpoint)!==void 0};
_.u.computeShowHeaderAsLink=function(D){return(D==null?void 0:D.header)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0};
_.u.computeShowSubheaderAsLink=function(D){return(D==null?void 0:D.subheader)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0&&(D==null?void 0:D.header)===void 0};
_.u.getHeaderAsLinkClass=function(D){var Y=[],R;(D==null?0:(R=D.headerIcon)==null?0:R.iconType)&&Y.push("header-link-active");return Y.join(" ")};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],sf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sf.prototype,"data",void 0);
_.q([_.y({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],sf.prototype,"hasSectionEndpoint",void 0);_.q([_.y({computed:"computeShowHeaderAsLink(data)"}),_.x("design:type",Boolean)],sf.prototype,"showHeaderAsLink",void 0);_.q([_.y({computed:"computeShowSubheaderAsLink(data)"}),_.x("design:type",Boolean)],sf.prototype,"showSubheaderAsLink",void 0);_.q([_.h({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],sf);
_.L(sf,"ytd-medical-panel-section-renderer",function(){if(i5b!==void 0)return i5b;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return i5b=D},{mode:1});var Xp=function(){var D=_.N.apply(this,arguments)||this;D.isExpanded=!1;D.roundedContainer=!0;D.skipRoundingTop=!1;D.toggleExpandableSection=function(){D.isExpanded=!D.isExpanded};
return D};
_.n(Xp,_.N);
Xp.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]]"}}}}}};
Xp.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Xp.prototype.dataChanged=Xp.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Xp.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Xp.prototype,"isExpanded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Xp.prototype,"roundedContainer",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Xp.prototype,"skipRoundingTop",void 0);_.q([_.y(),_.x("design:type",Object)],Xp.prototype,"toggleExpandableSection",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xp.prototype,"dataChanged",null);_.q([_.h({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Xp);
_.L(Xp,"ytd-medical-panel-content-renderer",function(){if(d5L!==void 0)return d5L;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return d5L=D},{mode:1});_.UD("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ub=function(){var D=_.N.apply(this,arguments)||this;D.roundedContainer=!0;D.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");D.hasTitle=!1;D.linkIcon="OPEN_IN_NEW";D.isDismissed=!1;return D};
_.n(ub,_.N);
ub.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]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
ub.prototype.computeHasTitle=function(D){return!(D==null||!D.title)};
ub.prototype.onClick=function(D){var Y,R=(Y=this.data)==null?void 0:Y.headerEndpoint;!_.Yc(_.O$(D),this.hostElement,["BUTTON".toString()])&&R&&this.ytComponentBehavior.resolveCommand(R)};
_.YF.Object.defineProperties(ub.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 D;return((D=this.data)==null?void 0:D.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.disableBottomDivider)||!((Y=this.data)==null?0:Y.title)}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ub.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],ub.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ub.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ub.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],ub.prototype,"amsterdamEnabled",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Object)],ub.prototype,"hasTitle",void 0);
_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.b("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],ub.prototype,"background",null);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.b("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ub.prototype,"titleStyle",null);
_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.b("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ub.prototype,"showLinkIcon",null);_.q([_.y(),_.x("design:type",String)],ub.prototype,"linkIcon",void 0);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ub.prototype,"hideDivider",null);
_.q([_.y({selectorArgs:["data.dismissStateEntityKey"],selector:function(D,Y){D=_.jC(D.entities,"dismissState",Y);return(D==null?void 0:D.isDismissed)||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.x("design:type",Object)],ub.prototype,"isDismissed",void 0);_.q([_.h({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ub);
_.L(ub,"ytd-info-panel-container-renderer",function(){if(g1_!==void 0)return g1_;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return g1_=D},{mode:1});var O5L;_.UD("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var aH=function(){var D=_.N.apply(this,arguments)||this;D.modernTypography=_.f("web_modern_typography");return D};
_.n(aH,_.N);aH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
aH.prototype.computeStyle=function(D){return D?D:""};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.x("design:type",String)],aH.prototype,"titleStyle",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],aH.prototype,"modernTypography",void 0);_.q([_.h({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],aH);
_.L(aH,"ytd-item-section-header-renderer",function(){if(O5L!==void 0)return O5L;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return O5L=D},{mode:1});var cDL;var DMz,YlL=function(){return DMz!==void 0?DMz:DMz=document.createElement("template")};
document.head.appendChild(YlL().content);var R6U;_.M9=new _.R6("VOTING_ANIMATION_CONTROLLER_TOKEN");var tSE=_.RT(function(D){var Y=D.data;var R=_.dI("div"),Z=_.dI("div");D=_.a(_.ae("VOTE_STATUS_NONE",void 0,"FVF7mc"));var t=D.next().value,X=D.next().value,M=_.Ax(uOn,function(){var V;return(V=Y())==null?void 0:V.entityKey}),W=_.f("web_enable_voting_animation")||_.f("enable_music_web_cairo_voting_animation");
_.$s(function(){var V;((V=Y().initialState)==null?0:V.status)&&X(Y().initialState.status)});
var z=function(){var V,e,r=(e=(V=Y().initialState)==null?void 0:V.votes)!=null?e:0,l;V=(l=Y().initialState)==null?void 0:l.status;return V==="VOTE_STATUS_UPVOTED"?r-1:V==="VOTE_STATUS_DOWNVOTED"?r+1:r},I=function(){return t()==="VOTE_STATUS_UPVOTED"?z()+1:t()==="VOTE_STATUS_DOWNVOTED"?z()-1:z()},F=function(V){var e=V?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
X(e);var r=I(),l=_.DH().resolve(_.cD(_.M9)),U=M();U&&(V&&(U==null?0:U.upvoteDefaultButtonOnTap)?_.BL(U.upvoteDefaultButtonOnTap,{form:{element:R.value},disableClickTracking:!0}):(U==null?0:U.upvoteToggledButtonOnTap)&&_.BL(U.upvoteToggledButtonOnTap,{form:{element:R.value},disableClickTracking:!0}));var K;V=(K=U==null?void 0:U.enableOptimisticReordering)!=null?K:Y().enableOptimisticReordering;W&&l&&Y().itemId&&V&&ZUz(l,Y().itemId,r,e)},G=function(V){var e=V?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
X(e);var r=I(),l=_.DH().resolve(_.cD(_.M9)),U=M();U&&(V&&(U==null?0:U.downvoteDefaultButtonOnTap)?_.BL(U.downvoteDefaultButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}):(U==null?0:U.downvoteToggledButtonOnTap)&&_.BL(U.downvoteToggledButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}));var K;V=(K=U==null?void 0:U.enableOptimisticReordering)!=null?K:Y().enableOptimisticReordering;W&&l&&Y().itemId&&V&&ZUz(l,Y().itemId,r,e)};
D={};D=_.e7("ytVotingViewModelVoteCount",(D.ytVotingViewModelVoteCountDisabled=function(){return Y().isDisabled},D));
return _.S("voting-view-model",{class:"ytVotingViewModelHost"},_.S("div",{el:R},_.S(_.vK,{data:function(){var V=_.A(Y().upvoteButton,_.py);return{toggleButtonViewModel:Object.assign({},V,{isToggled:t()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(V){return _.S(_.JV,{data:V.data,
onToggle:F})}})),_.S("div",{class:D},function(){var V,e,r;
return t()==="VOTE_STATUS_UPVOTED"?(V=Y().initialState)==null?void 0:V.compactVotesUpvoted:t()==="VOTE_STATUS_DOWNVOTED"?(e=Y().initialState)==null?void 0:e.compactVotesDownvoted:(r=Y().initialState)==null?void 0:r.compactVotes}),_.S("div",{el:Z},_.S(_.vK,{data:function(){var V=_.A(Y().downvoteButton,_.py);
return{toggleButtonViewModel:Object.assign({},V,{isToggled:t()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(V){return _.S(_.JV,{data:V.data,
onToggle:G})}})))},"Ub");_.at(_.RT(function(D){var Y=D.data;return _.S("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.S("div",{class:_.e7("ytEngagementBarViewModelEngagementBarWrapper",D.className)},_.S(_.vK,{data:function(){return Y().actions}},{votingViewModel:tSE})))},"Vb"),"engagement-bar-view-model",{props:{data:_.cs,
className:_.cs}});var CW=function(){var D=_.N.apply(this,arguments)||this;D.playlistVotingAnimationEnabled=_.f("web_enable_voting_animation");D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;return D};
_.n(CW,_.N);_.u=CW.prototype;_.u.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"}}}};
_.u.canReorderChanged=function(){this.persistentDragHandle=_.f("kevlar_playlist_drag_handles")&&this.canReorder};
_.u.onDrag=function(){if(this.thumbnail){var D=_.aU(this.thumbnail).querySelector("yt-image");D&&(D.shouldRenderLazy=!1)}};
_.u.onMenuOverlayChanged=function(D,Y){this.menuOpened=Y};
_.u.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.u.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.u.onContentsTap=function(D){var Y,R=(Y=this.data)==null?void 0:Y.serviceEndpoints;if(R&&R.length===1&&_.A(R[0],jOS)&&!_.Yc(_.O$(D),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(R[0]);else{var Z;(Y=(Z=this.data)==null?void 0:Z.navigationEndpoint)&&_.f("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?sME(_.DH().resolve(_.mL),Y):(_.AG().playlistSuggestionsShelfActivation=
!0,_.X$E(_.DH().resolve(_.mL),Y)):Y&&!_.Yc(_.O$(D),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.f("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.MX(this.hostElement,"yt-navigate",{endpoint:Y}):this.ytComponentBehavior.resolveCommand(Y))}};
_.u.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeThumbnailWidth=function(D){return D==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.u.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=mxU(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))}};
_.u.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.u.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.u.dataChanged=function(){if(this.data){var D,Y,R,Z=((D=this.downloadRenderData)==null?void 0:D.badges)&&((Y=this.downloadRenderData)==null?void 0:Y.badges)!==((R=this.data)==null?void 0:R.badges),t,X,M;D=((t=this.downloadRenderData)==null?void 0:t.thumbnailOverlays)&&((X=this.downloadRenderData)==null?void 0:X.thumbnailOverlays)!==((M=this.data)==null?void 0:M.thumbnailOverlays);(!this.downloadRenderData||Z||D)&&this.downloadStateChanged()}};
_.u.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var D,Y,R=(D=this.data.menu)==null?void 0:(Y=D.menuRenderer)==null?void 0:Y.items;if(R)for(D=_.a(R),Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,R=void 0,_.A((R=Y.menuServiceItemRenderer)==null?void 0:R.serviceEndpoint,_.hh)){var Z=R=void 0,t=void 0;Y=(R=Y)==null?void 0:(Z=R.menuServiceItemRenderer)==null?void 0:(t=Z.serviceEndpoint)==null?void 0:t.playlistEditEndpoint;t=Z=void 0;if(R=(Z=Y)==null?void 0:(t=Z.actions)==null?void 0:
t[0])Z=void 0,R.setVideoId=(Z=this.data)==null?void 0:Z.setVideoId;t=Z=R=void 0;if(Y=(R=Y)==null?void 0:(Z=R.clientActions)==null?void 0:(t=Z[0])==null?void 0:t.playlistRemoveVideosAction)R=void 0,Y.setVideoIds=[(R=this.data)==null?void 0:R.setVideoId]}}};
_.YF.Object.defineProperties(CW.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
CW.prototype.setVideoIdChanged=CW.prototype.setVideoIdChanged;CW.prototype.dataChanged=CW.prototype.dataChanged;CW.prototype.downloadStateChanged=CW.prototype.downloadStateChanged;CW.prototype.onMenuOverlayChanged=CW.prototype.onMenuOverlayChanged;CW.prototype.canReorderChanged=CW.prototype.canReorderChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],CW.prototype,"ytdReduxBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],CW.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],CW.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],CW.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],CW.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CW.prototype,"canReorder",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CW.prototype,"menuOpened",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CW.prototype,"handleIsHovered",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CW.prototype,"persistentDragHandle",void 0);_.q([_.y(),_.x("design:type",Object)],CW.prototype,"downloadRenderData",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],CW.prototype,"styleType",void 0);_.q([_.y({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],CW.prototype,"thumbnailWidth",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],CW.prototype,"isDownloads",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CW.prototype,"playlistVotingAnimationEnabled",void 0);
_.q([_.y({selector:HU,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],CW.prototype,"downloadProgress",void 0);_.q([_.y(),_.x("design:type",Number)],CW.prototype,"relativeDateReference",void 0);_.q([_.y({selector:_.mW,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],CW.prototype,"transferState",void 0);_.q([_.y({selector:M8y,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],CW.prototype,"downloadState",void 0);
_.q([_.y({selector:EWo,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],CW.prototype,"offlinePolicyAction",void 0);_.q([_.y({selector:gWM,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],CW.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.q([_.y({selector:iN9,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],CW.prototype,"entityInfo",void 0);_.q([_.y({selector:_.Kh}),_.x("design:type",Boolean)],CW.prototype,"miniplayerIsActive",void 0);
_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],CW.prototype,"playlistVideoId",null);_.q([_.fr("#thumbnail"),_.x("design:type",Object)],CW.prototype,"thumbnail",void 0);_.q([_.rd("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CW.prototype,"canReorderChanged",null);
_.q([_.Fv("yt-menu-overlay-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Boolean]),_.x("design:returntype")],CW.prototype,"onMenuOverlayChanged",null);_.q([_.rd("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CW.prototype,"downloadStateChanged",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CW.prototype,"dataChanged",null);_.q([_.rd("data.setVideoId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CW.prototype,"setVideoIdChanged",null);_.q([_.h({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],CW);
_.L(CW,"ytd-playlist-video-renderer",function(){if(R6U!==void 0)return R6U;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);D.content.insertBefore(YlL().content.cloneNode(!0),D.content.firstChild);return R6U=D},{mode:1});var umL;var WS=function(){return _.N.apply(this,arguments)||this};
_.n(WS,_.N);_.q([_.y(),_.x("design:type",Object)],WS.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],WS.prototype,"rendererBehavior",void 0);_.q([_.h({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],WS);
_.L(WS,"ytd-premium-browse-footer-renderer",function(){if(umL!==void 0)return umL;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return umL=D},{mode:1});var ajY;var zj=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.n(zj,_.N);_.u=zj.prototype;_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.handleDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.computeHeaderLogoThumbnail=function(D,Y){if(D)return Y?D.darkLogo:D.lightLogo};
_.u.computeHeaderLogoHeight=function(D,Y){var R,Z,t;return(D=(R=this.computeHeaderLogoThumbnail(D,Y))==null?void 0:(Z=R.thumbnails)==null?void 0:(t=Z[0])==null?void 0:t.height)&&D%31===0?"31":"24"};
_.u.computeHeaderLogoMarginBottom=function(D,Y){return this.computeHeaderLogoHeight(D,Y)==="24"?"0":"-7"};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],zj.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],zj.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],zj.prototype,"isDarkTheme",void 0);_.q([_.y({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.x("design:type",Object)],zj.prototype,"themeLogo",void 0);
_.q([_.y({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.x("design:type",String)],zj.prototype,"logoHeight",void 0);_.q([_.y({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.x("design:type",String)],zj.prototype,"logoMarginBottom",void 0);_.q([_.h({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],zj);
_.L(zj,"ytd-primetime-promo-header-renderer",function(){if(ajY!==void 0)return ajY;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ajY=D},{mode:1});var MSY;var WAE=_.RT(function(D){var Y=_.F4(function(t){var X;(X=D.onClick)==null||X.call(D,t)}),R={},Z={};
return _.S("yt-shelf-header-layout",{class:_.e7("shelf-header-layout-wiz",(R["shelf-header-layout-wiz--disable-horizontal-padding"]=D.disableHorizontalPadding,R["shelf-header-layout-wiz--disable-vertical-padding"]=D.disableVerticalPadding,R["shelf-header-layout-wiz--responsive"]=D.useResponsiveLayout,R["shelf-header-layout-wiz--narrow"]=function(){var t,X;return((t=D.useResponsiveLayout)==null?void 0:t.call(D))&&((X=D.forceSmallLayout)==null?void 0:X.call(D))},R["shelf-header-layout-wiz--is-overlay"]=
D.isOverlay,R["shelf-header-layout-wiz--tappable"]=!!D.onClick,R)),
"on:click":Y,tabindex:function(){var t;return((t=D.isInteractive)==null?0:t.call(D))?0:void 0}},_.S(_.T,{cond:D.leadingIcon,
then:function(t){return _.S("div",{class:"shelf-header-layout-wiz__leading-icon"},_.S(_.nB,{icon:t}))},
else:function(){return _.S(_.T,{cond:D.hasLeadingImage,then:function(){var t,X={};return _.S("div",{class:_.e7("shelf-header-layout-wiz__leading-image",(X["shelf-header-layout-wiz__leading-image--circular-image"]=D.circularImage,X))},(t=D.leadingImage)==null?void 0:t.call(D))}})}}),_.S("div",{class:"shelf-header-layout-wiz__label-container"},_.S(_.T,{cond:D.hasSuperlabel,
then:function(){var t;return _.S("div",{class:"shelf-header-layout-wiz__superlabel"},(t=D.superlabel)==null?void 0:t.call(D))}}),_.S("div",{class:"shelf-header-layout-wiz__title-row"},_.S(CrE,{text:D.title,
className:_.e7("shelf-header-layout-wiz__title",(Z["shelf-header-layout-wiz__title--small-title"]=D.forceSmallLayout,Z)),tagLevel:D.tagLevel}),_.S(_.T,{cond:D.hasDetail,then:function(){var t;return _.S("div",{class:"shelf-header-layout-wiz__detail"},(t=D.detail)==null?void 0:t.call(D))}})),_.S(_.T,{cond:D.hasSublabel,
then:function(){var t;return _.S("div",{class:"shelf-header-layout-wiz__sublabel"},(t=D.sublabel)==null?void 0:t.call(D))}})),_.S(_.T,{cond:D.hasTrailingActions,
then:function(){var t;return _.S("div",{class:"shelf-header-layout-wiz__trailing-actions"},(t=D.trailingActions)==null?void 0:t.call(D))}}))},"Wb");
WAE.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var CrE=_.RT(function(D){var Y=D.text;var R=D.className;var Z=D.tagLevel;return _.S(_.ej,null,_.S(_.VL,{when:function(){return(Z==null?void 0:Z())===0}},function(){return _.S("h2",{class:R},Y())}),_.S(_.VL,{when:function(){return(Z==null?void 0:Z())===1}},function(){return _.S("h3",{class:R},Y())}),_.S(_.VL,{when:function(){return(Z==null?void 0:Z())===2}},function(){return _.S("h4",{class:R},Y())}),_.S(_.fb,null,function(){return _.S("h2",{class:R},Y())}))},"Xb");var TVb,z6L,SlY;_.Sx=_.RT(function(D){var Y=D.className;var R=D.data;var Z=D.disableHorizontalPadding;var t=D.disableVerticalPadding;var X=D.forceSmallLayout;var M=D.useResponsiveLayout;D=D.isOverlay;return _.S("yt-section-header-view-model",{class:_.e7("ytSectionHeaderViewModelHost",Y),style:_.Ap({"background-color":function(){return ayo(R().backgroundColor)?_.xI(ayo(R().backgroundColor)):void 0}})},_.S(WAE,{hasDetail:!1,
title:function(){return _.S(_.y_,{text:function(){return R().headline}})},
hasTitle:!0,sublabel:function(){return _.S(z6L,{data:R})},
hasSublabel:function(){return!!R().sublabel||!!R().bottomBadge},
superlabel:function(){return _.S(SlY,{data:R})},
hasSuperlabel:function(){return!!R().superlabel||!!R().topBadge},
leadingImage:function(){return _.S(TVb,{leadingAccessory:function(){return R().leadingAccessory}})},
hasLeadingImage:function(){return!!R().leadingAccessory},
trailingActions:function(){return _.S(_.vK,{data:function(){return R().trailingActions}},{flexibleActionsViewModel:_.UX})},
hasTrailingActions:function(){return!!R().trailingActions},
disableHorizontalPadding:Z,disableVerticalPadding:t,forceSmallLayout:X,useResponsiveLayout:M,isOverlay:D,isInteractive:function(){return!!_.hx(R().rendererContext)},
onClick:function(W){if(_.LH(R().rendererContext)){var z=_.hx(R().rendererContext);z&&_.xC(z,{form:{element:W.target,event:W}})}}}))},"Yb");
TVb=_.RT(function(D){var Y=D.leadingAccessory;return _.S(_.c_,null,_.S(_.T,{cond:function(){var R;return(R=Y().image)!=null?R:_.Em(Y().themedImage)},
then:function(R){return _.S(_.Rt,{data:R,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.S(_.T,{cond:function(){return _.A(Y().avatar,_.qP)},
then:function(R){return _.S(_.Jz,{data:R})}}))},"Zb");
z6L=_.RT(function(D){var Y=D.data;return _.S(_.c_,null,_.S(_.T,{cond:function(){return _.A(Y().bottomBadge,GJU)},
then:function(R){var Z={};return _.S(_.sq,{data:R,class:_.e7((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!R()&&!!Y().sublabel},Z))})}}),_.S(_.T,{cond:function(){return Y().sublabel},
then:function(R){return _.S(_.y_,{text:R})}}))},"$b");
SlY=_.RT(function(D){var Y=D.data;return _.S(_.c_,null,_.S(_.T,{cond:function(){return _.A(Y().topBadge,GJU)},
then:function(R){var Z={};return _.S(_.sq,{data:R,class:_.e7((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!R()&&!!Y().superlabel},Z))})}}),_.S(_.T,{cond:function(){return Y().superlabel},
then:function(R){return _.S(_.y_,{text:R})}}))},"ac");_.at(_.Sx,"yt-section-header-view-model",{props:{data:_.cs,className:_.cs,disableHorizontalPadding:_.cs,disableVerticalPadding:_.cs,forceSmallLayout:_.cs,useResponsiveLayout:_.cs,isOverlay:_.cs}});_.UD("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Tj=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.n(Tj,_.N);_.u=Tj.prototype;_.u.attached=function(){this.requestElementsPerRow()};
_.u.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"}}}};
_.u.onDataChange=function(){var D=this;_.cy(this,function(){D.updateItemVisibility()})};
_.u.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D,this.updateItemVisibility())};
_.u.updateItemVisibility=function(){var D=this;this.data&&this.data.panels&&_.aU(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(Y,R){Y.hidden=R>D.elementsPerRow-1})};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
Tj.prototype.onDataChange=Tj.prototype.onDataChange;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Tj.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Tj.prototype,"actionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Tj.prototype,"data",void 0);_.q([_.y({value:3}),_.x("design:type",Number)],Tj.prototype,"elementsPerRow",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tj.prototype,"onDataChange",null);_.q([_.h({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Tj);
_.L(Tj,"ytd-primetime-promo-renderer",function(){if(MSY!==void 0)return MSY;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return MSY=D},{mode:1});var jMb;var jx=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return D};
_.n(jx,_.N);jx.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
jx.prototype.handleButtonRefreshAction=function(D){if(D=_.A(D,VU7))this.set("data.button",D.membershipButton),this.notifyPath("data.button")};
_.YF.Object.defineProperties(jx.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.avatars)==null?void 0:Y.slice(0,8))||[]}}});
_.q([_.y(),_.x("design:type",Object)],jx.prototype,"data",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],jx.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jx.prototype,"rendererBehavior",void 0);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],jx.prototype,"avatars",null);
_.q([_.h({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],jx);
_.L(jx,"ytd-recognition-shelf-renderer",function(){if(jMb!==void 0)return jMb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jMb=D},{mode:1});var Ij1;var FAL;var IH=function(){var D=_.N.apply(this,arguments)||this;D.modernButtons=_.f("web_modern_buttons");return D};
_.n(IH,_.N);_.u=IH.prototype;
_.u.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]]"}}}}}};
_.u.dataChanged=function(){this.collapsed=!0};
_.u.computeVisibleItems=function(D,Y){return D!==void 0&&D.items?Y?D.items.slice(0,this.data.collapsedItemCount):D.items:[]};
_.u.computeHideShowMore=function(D,Y,R){return D>=Y||!R};
_.u.computeHideShowAll=function(D,Y,R){return!(D&&Y)||R};
_.u.onMoreClick=function(){this.collapsed=!1};
_.YF.Object.defineProperties(IH.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.f("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.XW("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.f("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
IH.prototype.dataChanged=IH.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],IH.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],IH.prototype,"isSearch",void 0);
_.q([_.y({computed:"computeVisibleItems(data,collapsed)"}),_.x("design:type",Array)],IH.prototype,"visibleItems",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],IH.prototype,"collapsed",void 0);_.q([_.y({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.x("design:type",Boolean)],IH.prototype,"hideShowMore",void 0);
_.q([_.y({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.x("design:type",Boolean)],IH.prototype,"hideShowAll",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],IH.prototype,"modernButtons",void 0);_.q([_.b("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],IH.prototype,"typographyBump",null);
_.q([_.b("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],IH.prototype,"lockupExperiments",null);_.q([_.b("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],IH.prototype,"thumbnailWidth",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IH.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],IH);
_.L(IH,"ytd-vertical-list-renderer",function(){if(FAL!==void 0)return FAL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return FAL=D},{mode:1});var G8b=_.gY(["#"]);_.UD("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Fp=function(){var D=_.N.apply(this,arguments)||this;D.isConstrainedList=!1;D.modernTypography=_.f("web_modern_typography");return D};
_.n(Fp,_.N);_.u=Fp.prototype;
_.u.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"}}}};
_.u.computeThumbnailStyle=function(D){return D||""};
_.u.computePlaceAnnotationUnderTitle=function(){var D;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((D=this.data)==null?void 0:D.thumbnailStyle)||"")};
_.u.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.O$$(G8b)};
_.u.computeIsPromoShelf=function(D){var Y;return(D=D==null?void 0:(Y=D[0])==null?void 0:Y.metadataBadgeRenderer)?D.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.u.computePlaceBadgeBesideTitle=function(D){var Y;return(D==null?0:(Y=D[0])==null?0:Y.metadataBadgeRenderer)?!this.computeIsPromoShelf(D):!1};
_.u.computeMenuIcon=function(D){return this.computeIsPromoShelf(D)?"yt-icons:more_vert":"yt-icons:more"};
_.u.onDataChange=function(){var D,Y;((D=this.data)==null?0:(Y=D.content)==null?0:Y.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.u.onLockupRequested=function(D){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&D.detail&&D.detail.videoIds){for(var Y=this.data.content.gridRenderer.items,R=new Set,Z=_.a(D.detail.videoIds),t=Z.next();!t.done;t=Z.next())R.add(t.value);D.detail.returnValue=Y.filter(function(X){return X.gridVideoRenderer&&X.gridVideoRenderer.videoId&&R.has(X.gridVideoRenderer.videoId)}).map(function(X){return X.gridVideoRenderer})}};
_.u.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Fp.prototype.onLockupRequested=Fp.prototype.onLockupRequested;Fp.prototype.onDataChange=Fp.prototype.onDataChange;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Fp.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Fp.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],Fp.prototype,"ironResizableBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fp.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Fp.prototype,"isSearch",void 0);_.q([_.y(),_.x("design:type",Object)],Fp.prototype,"isConstrainedList",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("kevlar_fluid_dismiss")}}),
_.x("design:type",Boolean)],Fp.prototype,"enableFluidDismiss",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.x("design:type",String)],Fp.prototype,"thumbnailStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fp.prototype,"modernTypography",void 0);_.q([_.y({computed:"computeMenuIcon(data.badges)"}),_.x("design:type",String)],Fp.prototype,"menuIcon",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fp.prototype,"onDataChange",null);_.q([_.Fv("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Fp.prototype,"onLockupRequested",null);_.q([_.h({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Fp);
_.L(Fp,"ytd-shelf-renderer",function(){if(Ij1!==void 0)return Ij1;var D=document.createElement("template");_.w(D,'\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          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ij1=D},{mode:1});var VSb;var Gj=function(){return _.N.apply(this,arguments)||this};
_.n(Gj,_.N);Gj.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.YF.Object.defineProperties(Gj.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gj.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Gj.prototype,"isPlaylist",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Gj.prototype,"isClipList",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Gj.prototype,"isPlaylistPageWithFilters",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gj.prototype,"hasTitle",null);_.q([_.y(),_.b("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gj.prototype,"isRightAligned",null);
_.q([_.h({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Gj);
_.L(Gj,"ytd-sort-filter-header-renderer",function(){if(VSb!==void 0)return VSb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return VSb=D},{mode:1});var fjb;var VR=function(){var D=_.N.apply(this,arguments)||this;D.enableRightArrowHidden=_.f("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return D};
_.n(VR,_.N);VR.prototype.attached=function(){var D=this;this.enableRightArrowHidden&&(this.JSC$16280_throttledOnResize=new _.gq(function(){var Y;(Y=D.ytdHorizontalListBehavior)==null||Y.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var Y;
(Y=D.JSC$16280_throttledOnResize)==null||Y.fire()}),this.resizeObserver.observe(this.hostElement))};
VR.prototype.detached=function(){if(this.enableRightArrowHidden){var D;(D=this.resizeObserver)==null||D.disconnect();var Y;(Y=this.JSC$16280_throttledOnResize)==null||Y.dispose()}};
VR.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]]"}}}}}};
VR.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.YF.Object.defineProperties(VR.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.f("enable_creator_details_shelf_m2")){var D=[],Y;((Y=this.data)==null?0:Y.creatorVideosButton)&&D.push(this.data.creatorVideosButton);var R;((R=this.data)==null?0:R.creatorAboutButton)&&D.push(this.data.creatorAboutButton);Y=_.a(this.data.creatorCustomUrlButtons||[]);for(R=Y.next();!R.done;R=Y.next())D.push(R.value);return D}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.f("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],VR.prototype,"ytdHorizontalListBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],VR.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],VR.prototype,"engagementPanel",void 0);
_.q([_.y(),_.x("design:type",Object)],VR.prototype,"enableRightArrowHidden",void 0);_.q([_.b("enableRightArrowHidden","atEnd"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],VR.prototype,"hideRightArrow",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],VR.prototype,"creatorCustomUrlButtons",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data","creatorCustomUrlButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],VR.prototype,"showCreatorCustomUrlButtons",null);_.q([_.b("showCreatorCustomUrlButtons"),_.x("design:type",Number),_.x("design:paramtypes",[])],VR.prototype,"channelAvatarSize",null);_.q([_.h({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],VR);
_.L(VR,"ytd-video-description-infocards-section-renderer",function(){if(fjb!==void 0)return fjb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return fjb=D},{mode:_.zD("kevlar_poly_si_batch_j067")?1:2});var e6U;var fW=function(){return _.N.apply(this,arguments)||this};
_.n(fW,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fW.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],fW.prototype,"infoIcon",void 0);_.q([_.h({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],fW);
_.L(fW,"ytd-eom-settings-disclaimer-renderer",function(){if(e6U!==void 0)return e6U;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return e6U=D},{mode:1});var AJ1;var ex=function(){return _.N.apply(this,arguments)||this};
_.n(ex,_.N);_.YF.Object.defineProperties(ex.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.suppressPaddingDisclaimer)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ex.prototype,"componentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ex.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ex.prototype,"suppressPaddingDisclaimer",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],ex);
_.L(ex,"ytd-product-list-header-renderer",function(){if(AJ1!==void 0)return AJ1;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return AJ1=D},{mode:1});var nHU;var Ao=function(){return _.N.apply(this,arguments)||this};
_.n(Ao,_.N);Ao.prototype.computeThumbnailStyle=function(D){if(D&&(D=_.HG(D)))return"background-color:"+D+";"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ao.prototype,"rendererBehaviors",void 0);_.q([_.y(),_.x("design:type",Object)],Ao.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Ao);
_.L(Ao,"ytd-hashtag-tile-renderer",function(){if(nHU!==void 0)return nHU;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return nHU=D},{mode:1});var rJE;var nW=function(){return _.N.apply(this,arguments)||this};
_.n(nW,_.N);nW.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nW.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],nW);
_.L(nW,"ytd-sponsorships-alert-renderer",function(){if(rJE!==void 0)return rJE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rJE=D},{mode:1});var w$E;var r4=function(){return _.N.apply(this,arguments)||this};
_.n(r4,_.N);r4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.YF.Object.defineProperties(r4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.f("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.f("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.q([_.v(_.HH),_.x("design:type",Object)],r4.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],r4.prototype,"ytdLockupBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.q([_.y({selector:_.mI}),_.x("design:type",Object)],r4.prototype,"isGridViewEnabled",void 0);
_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r4.prototype,"watchFeedBigThumbs",null);_.q([_.b("isGridViewEnabled"),_.y({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],r4.prototype,"thumbnailWidth",null);_.q([_.y(),_.x("design:type",Object)],r4.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],r4);
_.L(r4,"ytd-compact-movie-renderer",function(){if(w$E!==void 0)return w$E;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return w$E=D},{mode:1});var $ME;var vHE;var oH4=_.JQ("HTML_DIR")==="rtl",w4=function(){var D=_.N.apply(this,arguments)||this;D.engagementPanel=!1;D.maxLines=2;D.expandButtonOffset=0;D.showExpandButton=!1;D.isTruncated=!1;D.isExpanded=!1;D.currentSnippetType=2;D.alwaysShowExpandButton=!1;D.JSC$16297_lastWidth=NaN;D.observer=null;D.left=0;D.right=0;D.mid=0;D.longestSnippetLength=0;D.isFinalSnippet=!1;D.isFirstMutation=!1;D.isResetMutation=!1;D.OVERFLOW_THRESHOLD=5;return D};
_.n(w4,_.N);_.u=w4.prototype;_.u.onClick=function(D){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Y;if((Y=window.getSelection())==null||!Y.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.u.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.u.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.u.updateTextOnSnippetTypeChange=function(){_.f("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.u.setUpBinarySearch=function(D){D=D*this.maxLines/8;this.left=0;var Y,R;this.right=Math.min(D*2,(R=(Y=this.simpleText)==null?void 0:Y.length)!=null?R:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.u.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.u.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Jk(new _.AT("AttributedSnippet is empty when the description is not empty",this.text))};
_.u.mutationCallback=function(){if(this.observer!=null){var D=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var Y=Math.floor(D*this.maxLines/8);this.setSnippetText(this.text,Y);Y!==0||this.attributedTextIsEmpty()||_.Jk(new _.AT("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;D=D*this.maxLines/8;this.left=0;var R;this.right=Math.min(D*2,(R=(Y=this.simpleText)==null?void 0:Y.length)!=null?R: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)}}};
_.u.mutationObserve=function(D){var Y=this;this.observer||(this.observer=new MutationObserver(function(){Y.mutationCallback()}));
this.observer.observe(D,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.u.attached=function(){var D=this;_.cy(this,function(){D.resize()})};
_.u.isExpandedChanged=function(){_.MX(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.u.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)};
_.u.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var D="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((oH4?"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",D);this.snippetContainer.style.setProperty("mask-image",
D)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(oH4?"right":"left",this.expandButtonOffset+"px")};
_.u.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.u.setSnippetText=function(D,Y){D||(D={});if(_.cL(D)){var R=ds(D,Y);R.attachmentRuns||R.commandRuns||R.decorationRuns||R.styleRuns||R.alignment||R.lineBreakMode?this.attributedSnippetTextEl?(_.f("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=ds(D,Y),this.attributedSnippetTextEl.headerRuns=Qjo(Y,this.headerRuns)):this.attributedSnippetText={data:ds(D,Y),headerRuns:Qjo(Y,this.headerRuns)},this.currentSnippetType=0):_.Jk(new _.AT("Tried to set snippet text when HTML element was null",
D)):(this.plainSnippetText.textContent=E4(D.content||"",Y),this.currentSnippetType=2)}else{a:{R=MJ$(D,Y);if(R.runs){R=_.a(R.runs);for(var Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.bold||Z.deemphasize||Z.italics||Z.strikethrough||Z.textColor||Z.navigationEndpoint||_.A(Z,hi)){R=!0;break a}}R=!1}R?this.formattedSnippetText?(this.formattedSnippetText.text=MJ$(D,Y),this.currentSnippetType=1):_.Jk(new _.AT("Tried to set snippet text when HTML element was null",D)):(this.plainSnippetText.textContent=
E4(_.OM(D),Y),this.currentSnippetType=2)}};
_.u.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.u.attributedTextIsEmpty=function(){var D=this.text;if(!_.cL(D))return!0;var Y;return((Y=D.content)==null?void 0:Y.length)===0?!0:!1};
_.u.resize=function(D){if(this.snippetText){if(D===void 0?0:D)this.JSC$16297_lastWidth=NaN;var Y=this.hostElement.offsetWidth;if(Y!==this.JSC$16297_lastWidth&&!this.isExpanded)if(this.JSC$16297_lastWidth=Y,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;D=0;var R,Z;Y=Math.min(Y*this.maxLines/8*2,(Z=(R=this.simpleText)==null?void 0:R.length)!=null?Z:0)-1;for(R=0;D<=Y;)Z=Math.floor(D+(Y-D)/2),this.setSnippetText(this.text,Z),this.isOverflowing()?Y=Z-1:(D=Z+1,R=Z);this.setSnippetText(this.text,R);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.u.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.u.onExpandClick=function(){var D=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.f("inline_expander_reset_focus_killswitch")||_.cy(this,function(){var Y;((Y=_.DH().resolve(_.cD(_.MQ)))==null?0:Y.isKeyBoardInUse())&&_.Bg(D.hostElement)});
_.MX(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.u.onCollapseClick=function(){this.collapse();_.MX(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.u.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.u.computeExpandButtonOffset=function(){var D=this.expandSizer;return D?oH4?D.offsetParent?D.offsetParent.offsetWidth-D.offsetWidth-D.offsetLeft:0:D.offsetLeft:0};
_.YF.Object.defineProperties(w4.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.cL(this.text)?this.text.content||"":_.OM(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 _.cL(this.text)?!0:this.text&&_.f("web_replace_formatted_with_attributed_string")&&I8U(this.text)?(this.text=_.K8(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}}});
w4.prototype.onTextChanged=w4.prototype.onTextChanged;w4.prototype.updateMaskAndExpandButtonOffset=w4.prototype.updateMaskAndExpandButtonOffset;w4.prototype.updateSnippetContainerMaxHeight=w4.prototype.updateSnippetContainerMaxHeight;w4.prototype.isExpandedChanged=w4.prototype.isExpandedChanged;w4.prototype.updateTextOnSnippetTypeChange=w4.prototype.updateTextOnSnippetTypeChange;w4.prototype.updateIsFormattedExpanded=w4.prototype.updateIsFormattedExpanded;w4.prototype.updateIsAttributedExpanded=w4.prototype.updateIsAttributedExpanded;
w4.prototype.onClick=w4.prototype.onClick;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],w4.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],w4.prototype,"text",void 0);_.q([_.y(),_.x("design:type",Array)],w4.prototype,"headerRuns",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w4.prototype,"engagementPanel",void 0);_.q([_.y(),_.x("design:type",Object)],w4.prototype,"maxLines",void 0);
_.q([_.y(),_.x("design:type",String)],w4.prototype,"expandLabel",void 0);_.q([_.y(),_.x("design:type",String)],w4.prototype,"collapseLabel",void 0);_.q([_.y(),_.x("design:type",Object)],w4.prototype,"expandCommand",void 0);_.q([_.y(),_.x("design:type",Object)],w4.prototype,"expandButtonOffset",void 0);_.q([_.b("text"),_.x("design:type",String),_.x("design:paramtypes",[])],w4.prototype,"simpleText",null);
_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],w4.prototype,"onClick",null);_.q([_.b("text","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],w4.prototype,"expandedText",null);_.q([_.b("headerRuns","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],w4.prototype,"expandedHeaderRuns",null);
_.q([_.b("text"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],w4.prototype,"hasAttributedStringText",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w4.prototype,"showExpandButton",void 0);_.q([_.b("collapseLabel","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],w4.prototype,"showCollapseButton",null);_.q([_.y(),_.x("design:type",Object)],w4.prototype,"isTruncated",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w4.prototype,"isExpanded",void 0);_.q([_.y(),_.x("design:type",Boolean)],w4.prototype,"isAttributedExpanded",void 0);_.q([_.Gm("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"updateIsAttributedExpanded",null);_.q([_.y(),_.x("design:type",Boolean)],w4.prototype,"isFormattedExpanded",void 0);
_.q([_.Gm("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"updateIsFormattedExpanded",null);_.q([_.y(),_.x("design:type",Number)],w4.prototype,"currentSnippetType",void 0);_.q([_.b("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],w4.prototype,"useAttributedSnippet",null);
_.q([_.b("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],w4.prototype,"useFormattedSnippet",null);_.q([_.b("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],w4.prototype,"usePlainSnippet",null);_.q([_.y(),_.x("design:type",Object)],w4.prototype,"alwaysShowExpandButton",void 0);_.q([_.Gm("currentSnippetType"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"updateTextOnSnippetTypeChange",null);
_.q([_.y(),_.x("design:type",Object)],w4.prototype,"attributedSnippetText",void 0);_.q([_.fr("#snippet"),_.x("design:type",HTMLElement)],w4.prototype,"snippetContainer",void 0);_.q([_.fr("#snippet-text"),_.x("design:type",HTMLElement)],w4.prototype,"snippetText",void 0);_.q([_.fr("#plain-snippet-text"),_.x("design:type",HTMLElement)],w4.prototype,"plainSnippetText",void 0);_.q([_.fr("#formatted-snippet-text"),_.x("design:type",Object)],w4.prototype,"formattedSnippetText",void 0);
_.q([_.fr("#attributed-snippet-text"),_.x("design:type",Object)],w4.prototype,"attributedSnippetTextEl",void 0);_.q([_.fr("#expand"),_.x("design:type",HTMLElement)],w4.prototype,"expandButton",void 0);_.q([_.fr("#expand-sizer"),_.x("design:type",HTMLElement)],w4.prototype,"expandSizer",void 0);_.q([_.rd("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"isExpandedChanged",null);
_.q([_.Gm("isExpanded","maxLines"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"updateSnippetContainerMaxHeight",null);_.q([_.Gm("isTruncated","showExpandButton","expandButtonOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"updateMaskAndExpandButtonOffset",null);
_.q([_.rd("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w4.prototype,"onTextChanged",null);_.q([_.h({is:"ytd-text-inline-expander",disableElementRegistration:!0})],w4);
_.L(w4,"ytd-text-inline-expander",function(){if(vHE===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);vHE=D}D=vHE;return D},{mode:2});var vS=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return D};
_.n(vS,_.N);vS.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
vS.prototype.handleUpdateDescriptionAction=function(D){if(D=_.A(D,_.EZV))if(D.attributedDescription)this.set("data.attributedDescriptionBodyText",D.attributedDescription);else if(D.description){var Y;((Y=this.data)==null?0:Y.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.K8(D.description)):this.set("data.descriptionBodyText",D.description)}};
_.YF.Object.defineProperties(vS.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.attributedDescriptionBodyText)||!((Y=this.data)==null||!Y.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.collapsedLineCount){var Y;return(Y=this.data)==null?void 0:Y.collapsedLineCount}D=_.ZH("web_watch_description_collapsed_default_lines",12);if(_.f("ww_desc_line_page_size_ks"))return D;Y=Math.round(_.w$().height*_.ZH("web_watch_description_screen_height_percentage",.5)/20);return Math.max(Y,D)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return(R=(D=this.data)==null?void 0:D.descriptionBodyText)!=null?R:(Y=this.data)==null?void 0:Y.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.sourceAttributions}}});
vS.prototype.panelContentVisibleChanged=vS.prototype.panelContentVisibleChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],vS.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],vS.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vS.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Boolean)],vS.prototype,"panelContentVisible",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],vS.prototype,"engagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],vS.prototype,"shortsPanel",void 0);_.q([_.fr("#inline-expander"),_.x("design:type",Object)],vS.prototype,"inlineExpander",void 0);
_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vS.prototype,"panelContentVisibleChanged",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vS.prototype,"hasDescriptionText",null);_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],vS.prototype,"collapsedLines",null);
_.q([_.b("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.x("design:type",Object),_.x("design:paramtypes",[])],vS.prototype,"descriptionText",null);_.q([_.b("data","data.headerRuns"),_.x("design:type",Object),_.x("design:paramtypes",[])],vS.prototype,"headerRuns",null);_.q([_.b("data","data.sourceAttributions"),_.x("design:type",Object),_.x("design:paramtypes",[])],vS.prototype,"sourceAttributions",null);
_.q([_.h({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],vS);
_.L(vS,"ytd-expandable-video-description-body-renderer",function(){if($ME!==void 0)return $ME;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $ME=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var bUD;var yJ7=_.RT(function(D){var Y=D.data;return _.S("factoid-renderer",{class:"ytwFactoidRendererHost"},_.S("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return Y().accessibilityText}},_.S("span",{class:"ytwFactoidRendererValue"},_.S(_.y_,{text:function(){return Y().value}})),_.S("span",{class:"ytwFactoidRendererLabel"},_.S(_.y_,{text:function(){return Y().label}}))))},"bc");_.at(yJ7,"factoid-renderer",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;return _.S("upload-time-factoid-renderer",null,_.S(_.vK,{data:function(){return Y().factoid}},{factoidRenderer:yJ7}))},"cc"),"upload-time-factoid-renderer",{props:{data:_.uq}});_.at(_.RT(function(D){var Y=D.data;return _.S("view-count-factoid-renderer",null,_.S(_.vK,{data:function(){return Y().factoid}},{factoidRenderer:yJ7}))},"dc"),"view-count-factoid-renderer",{props:{data:_.uq}});var oH=function(){var D=_.N.apply(this,arguments)||this;D.shortsPanel=!1;D.engagementPanel=!1;D.watchWhileSdp=_.f("shorts_desktop_watch_while_sdp");return D};
_.n(oH,_.N);oH.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"}}}}};
_.YF.Object.defineProperties(oH.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var D;return(D=this.data)==null?void 0:D.channel}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],oH.prototype,"componentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],oH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oH.prototype,"shortsPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oH.prototype,"engagementPanel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oH.prototype,"watchWhileSdp",void 0);_.q([_.b("shortsPanel","engagementPanel","data.channel"),_.x("design:type",Object),_.x("design:paramtypes",[])],oH.prototype,"showChannelInfo",null);_.q([_.h({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],oH);
_.L(oH,"ytd-video-description-header-renderer",function(){if(bUD!==void 0)return bUD;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return bUD=D},{mode:1});var NV_;var bb=function(){return _.N.apply(this,arguments)||this};
_.n(bb,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],bb.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bb.prototype,"noPadding",void 0);_.q([_.y(),_.x("design:type",Object)],bb.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],bb);
_.L(bb,"ytd-list-item-view-model",function(){if(NV_!==void 0)return NV_;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return NV_=D},{mode:1});var ljb;var JJ_;var k8U;var UML;var yR=function(){var D=_.N.apply(this,arguments)||this;D.adaptiveFullWidth=!1;D.modernButtons=_.f("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return D};
_.n(yR,_.N);yR.prototype.handleSetTimestamp_=function(D){this.data&&this.data.shortUrl&&(_.aU(this.hostElement).querySelector("#share-url").value=D.isSet?_.xr(this.data.shortUrl,"t",D.timestamp):this.data.shortUrl)};
yR.prototype.handleSignalActionCopyShareUrl_=function(D,Y){(_.f("killswitch_copy_link_target_check")||_.aU(this.hostElement).querySelector("#copy-button")===Y)&&this.copyUrlToClipboard()};
yR.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.aU(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
yR.prototype.computeStyle_=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],yR.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yR.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.x("design:type",String)],yR.prototype,"rendererStyle",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],yR.prototype,"adaptiveFullWidth",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],yR.prototype,"modernButtons",void 0);_.q([_.y(),_.x("design:type",Object)],yR.prototype,"buttonOverrides",void 0);_.q([_.Lr({is:"yt-copy-link-renderer",disableElementRegistration:!0})],yR);
_.L(yR,"yt-copy-link-renderer",function(){if(UML===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;k8U===void 0&&(k8U=document.createElement("template"));var Z=k8U;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);UML=D}D=UML;return D},{mode:2});_.UD("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var N9=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return D};
_.n(N9,_.N);_.u=N9.prototype;_.u.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.u.attached=function(){this.keyboardFocused=!1};
_.u.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var D=_.DH().resolve(_.cD(_.MQ));D&&(this.keyboardFocused=D.isKeyBoardInUse())}};
_.u.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.u.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}};
_.u.onChange_=function(){if(this.data){var D=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;D&&this.ytComponentBehavior.resolveCommand(D);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.u.handleUpdateToggleAction_=function(D){(D=_.A(D,PQz))&&this.data&&D.targetId==this.data.targetId&&this.set("data.toggled",D.toggled)};
_.u.toBoolean_=function(D){return!!D};
_.u.reset=function(){};
_.u.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("data-changed",this.data))};
_.u.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
N9.prototype.dataChangedForBinding=N9.prototype.dataChangedForBinding;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],N9.prototype,"data",void 0);_.q([_.y({computed:"computeDescription_(data.*)"}),_.x("design:type",Object)],N9.prototype,"description_",void 0);_.q([_.y({value:function(){return!!_.DH().resolve(_.cD(_.MQ))&&_.f("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],N9.prototype,"useKeyboardFocused",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],N9.prototype,"keyboardFocused",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N9.prototype,"dataChangedForBinding",null);_.q([_.Lr({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],N9);
_.L(N9,"yt-toggle-form-field-renderer",function(){if(JJ_===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;ljb===void 0&&(ljb=document.createElement("template"));var Z=ljb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);JJ_=D}D=JJ_;return D},{mode:2});var KAU;var h6U;var lb=function(){var D=_.N.apply(this,arguments)||this;D.isDarkTheme=!1;D.isSearch=!1;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.noTopMargin=_.f("kevlar_watch_no_top_margin");D.maskFade=_.f("web_watch_chips_mask_fade");D.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 D};
_.n(lb,_.N);_.u=lb.prototype;_.u.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}}}}}};
_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.u.dataChanged=function(){var D=this.getSelectedIndex();if(D>0)this.selected=D;else{this.selected=0;var Y,R;(Y=this.ytScrollableChipCloudBehavior)==null||(R=Y.reset)==null||R.call(Y)}};
_.u.getSelectedIndex=function(){var D;if((D=this.data)==null||!D.chips)return-1;D=-1;for(var Y,R=0;R<((Y=this.data)==null?void 0:Y.chips.length);R++){var Z=void 0,t=void 0;if((Z=this.data)==null?0:(t=Z.chips[R].chipCloudChipRenderer)==null?0:t.isSelected){D=R;break}}return D};
_.u.onResize=function(){var D=this.ytScrollableChipCloudBehavior;_.cy(D,D.setContainerWidthDiff);Tr(this.ytScrollableChipCloudBehavior)};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.handleRelatedChipCommand=function(D,Y){D=this.JSC$16324_chipsSelector.indexOf(Y);D!==-1&&this.JSC$16324_chipsSelector.selectIndex(D)};
_.u.handleChipCloudChipSelectAction=function(D){D=this.JSC$16324_chipsSelector.indexOf(D);D>-1&&this.JSC$16324_chipsSelector.selectIndex(D)};
_.u.handleChipCloudChipDeselectAction=function(){var D=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16324_chipsSelector&&((D==null?0:D.continuationCommand)?_.zA(this.hostElement,[D]):(D==null?0:D.searchEndpoint)?this.ytComponentBehavior.resolveCommand(D):D&&_.Se(this.hostElement,[D],this.hostElement),this.JSC$16324_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.u.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
lb.prototype.onResize=lb.prototype.onResize;lb.prototype.dataChanged=lb.prototype.dataChanged;lb.prototype.isSearchChanged=lb.prototype.isSearchChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],lb.prototype,"actionHandlerBehavior",void 0);
_.q([_.v(_.l_),_.x("design:type",Object)],lb.prototype,"ironResizableBehavior",void 0);_.q([_.v(),_.x("design:type",Sy)],lb.prototype,"ytScrollableChipCloudBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lb.prototype,"data",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],lb.prototype,"selected",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lb.prototype,"isDarkTheme",void 0);_.q([_.y({value:160}),_.x("design:type",Number)],lb.prototype,"scrollDistance",void 0);_.q([_.y(),_.x("design:type",Object)],lb.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lb.prototype,"darkerDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lb.prototype,"noTopMargin",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lb.prototype,"maskFade",void 0);_.q([_.fr("#chips"),_.x("design:type",Object)],lb.prototype,"JSC$16324_chipsSelector",void 0);_.q([_.Gm("isSearch"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lb.prototype,"isSearchChanged",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lb.prototype,"dataChanged",null);
_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lb.prototype,"onResize",null);_.q([_.Lr({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],lb);
_.L(lb,"yt-chip-cloud-renderer",function(){if(h6U===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;KAU===void 0&&(KAU=document.createElement("template"));var Z=KAU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);h6U=D}D=h6U;return D},{mode:2});var LA4,mM1=function(){return LA4!==void 0?LA4:LA4=document.createElement("template")};
document.head.appendChild(mM1().content);var qlb;var HU1=document.head,xMD=HU1.appendChild,Pr1;if(qlb===void 0){var QMD=document.createElement("template");_.w(QMD,"");QMD.content.insertBefore(mM1().content.cloneNode(!0),QMD.content.firstChild);qlb=QMD}Pr1=qlb;xMD.call(HU1,Pr1.content);var BVD=_.RT(function(D){var Y=D.data;return _.S("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.S("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.S("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.S(_.T,{cond:function(){return _.Em(Y().image)},
then:function(R){return _.S("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.S(_.Rt,{data:R,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.S("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.S(_.y_,{text:function(){return Y().subtitle}})))),_.S(_.T,{cond:function(){var R;
return(R=Y())==null?void 0:R.hasBottomDivider},
then:function(){return _.S("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ec");var p$D=_.RT(function(D){var Y=D.data;return _.S("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.S("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.S(_.vK,{data:function(){var R;return(R=Y().offerPlanDetailsItem)!=null?R:[]}},{offerPlanDetailsItemViewModel:function(R){return _.S("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.S(BVD,{data:R.data}))}})),_.S("div",null,_.S(_.T,{cond:function(){return Y().hasBottomDivider},
then:function(){return _.S("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.S("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.S("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.S("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.S("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fc");var EHb=_.RT(function(D){var Y=D.data;D=_.a(_.ae(!1,void 0,"SpEGQd"));var R=D.next().value,Z=D.next().value,t=_.F4(function(){Z(!R());return!1}),X=function(){var M;
return(M=Y().offerPlanDetailsContainer)!=null?M:[]};
return _.S("lp-complex-offer-card-details-view-model",null,_.S("div",null,_.S(_.T,{cond:function(){return R()},
then:function(){return _.S("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.S("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":t,"aria-expanded":R},_.S(_.y_,{text:function(){return Y().expandedTitle}})),_.S("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.S(_.vK,{data:X},{offerPlanDetailsContainerViewModel:function(M){return _.S("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.S(p$D,{data:M.data}))}})),_.S("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.S(_.y_,{text:function(){return Y().legalText}})))},
else:function(){return _.S("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":t,"aria-expanded":R},_.S(_.y_,{text:function(){return Y().collapsedTitle}}),_.S("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.S(_.nB,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gc");var gHL=_.RT(function(D){var Y=D.data;return _.S("lp-complex-offer-card-option-view-model",null,_.S("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.S(_.T,{cond:function(){return Y().topDividerText},
then:function(){return _.S("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.S("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.S("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.S("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.S(_.y_,{text:function(){return Y().topDividerText}}))))}}),_.S(_.T,{cond:function(){return Y().description},
then:function(){return _.S("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.S(_.y_,{text:function(){return Y().description}}))}}),_.S(_.T,{cond:function(){return Y().planPricingPrimary},
then:function(){return _.S("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.S(_.y_,{text:function(){return Y().planPricingPrimary}}))}}),_.S(_.T,{cond:function(){return Y().planPricingSecondary},
then:function(){return _.S("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.S(_.y_,{text:function(){return Y().planPricingSecondary}}))}}),_.S(_.T,{cond:function(){return Y().primaryButton},
then:function(){return _.S("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.S(_.vK,{data:function(){return Y().primaryButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hc");var dML=_.RT(function(D){var Y=D.data;var R=function(){var X;return((X=Y())==null?void 0:X.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var Z={},t={};return _.S("ytm-lp-complex-offer-card-view-model",null,_.S("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.S("div",{class:_.e7((D.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=R,D),"ytmLpComplexOfferCardViewModelCardContainer")},_.S(_.T,{cond:function(){var X;return(X=Y())==null?void 0:X.bannerText},
then:function(){return _.S("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.S("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.S(_.y_,{text:function(){return Y().bannerText}})))}}),_.S(_.T,{cond:function(){return _.Em(Y().logo)},
then:function(X){var M={};return _.S("div",{class:_.e7((M.ytmLpComplexOfferCardViewModelLogoAlignLeft=R,M),"ytmLpComplexOfferCardViewModelLogo")},_.S(_.Rt,{data:X,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.S("div",{class:_.e7((Z.ytmLpComplexOfferCardViewModelTitleAlignLeft=R,Z),"ytmLpComplexOfferCardViewModelTitle")},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.T,{cond:function(){var X;
return(X=Y())==null?void 0:X.subtitle},
then:function(){var X={};return _.S("div",{class:_.e7((X.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=R,X),"ytmLpComplexOfferCardViewModelSubtitle")},_.S(_.y_,{text:function(){return Y().subtitle}}))}}),_.S(_.T,{cond:function(){return Y().planPricingPrimary},
then:function(){return _.S("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.S(_.y_,{text:function(){return Y().planPricingPrimary}}))}}),_.S(_.T,{cond:function(){return Y().planPricingSecondary},
then:function(){return _.S("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.S(_.y_,{text:function(){return Y().planPricingSecondary}}))}}),_.S(_.T,{cond:function(){return Y().purchaseButton},
then:function(){return _.S("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.S(_.vK,{data:function(){return Y().purchaseButton}},{buttonViewModel:function(X){return _.S(_.TV,{data:X.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.S(_.T,{cond:function(){var X;
return(X=Y())==null?void 0:X.offerOptions},
then:function(){return _.S("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.S(_.vK,{data:function(){return Y().offerOptions}},{lpComplexOfferCardOptionViewModel:gHL}))}}),_.S("div",{class:_.e7((t.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=R,t),"ytmLpComplexOfferCardViewModelLegalText")},_.S(_.y_,{text:function(){return Y().legalText}})),_.S(_.T,{cond:function(){var X;
return(X=Y())==null?void 0:X.offerCardDetails},
then:function(){return _.S("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.S(_.vK,{data:function(){return Y().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:EHb}))}}))))},"ic");var iUL=_.RT(function(D){var Y=D.data;var R=function(){var M;return((M=Y())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var Z={},t={},X={};return _.S("ytm-lp-complex-offer-card-section-view-model",null,_.S("div",{class:_.e7("ytmLpComplexOfferCardSectionViewModelHost")},_.S("div",{class:_.e7((D.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=R,D),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.S("div",{class:_.e7((Z.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=R,Z),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.S("h2",{class:_.e7((t.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
R,t),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.S(_.y_,{text:function(){return Y().title}}))),_.S(_.T,{cond:function(){var M;
return(M=Y())==null?void 0:M.subtitle},
then:function(){var M={},W={};return _.S("div",{class:_.e7((M.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=R,M),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.S("div",{class:_.e7((W.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=R,W),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.S(_.y_,{text:function(){return Y().subtitle}})))}}),_.S("div",{class:_.e7((X.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=R,X),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.S(_.vK,{data:function(){var M;
return(M=Y().offerPlans)!=null?M:[]}},{lpComplexOfferCardViewModel:function(M){return _.S("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.S(dML,{data:M.data}))}})))))},"jc");var OUb=_.RT(function(D){return _.S("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.S("div",{class:"ytLpCouponBannerViewModelIcon"},_.S(_.nB,{icon:function(){return"price_tag"}})),_.S("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.S("div",{class:"ytLpCouponBannerViewModelContent"},_.S("div",{class:"ytLpCouponBannerViewModelHeading"},_.S(_.y_,{text:function(){var Y;
return(Y=D.data())==null?void 0:Y.title}})),_.S("div",{class:"ytLpCouponBannerViewModelBody"},_.S(_.y_,{text:function(){var Y;
return(Y=D.data())==null?void 0:Y.subtitle}})))))},"kc");
OUb.idomCompat=!0;_.Jo=Px7.getInstance();var cJ4;cJ4=_.RT(function(D){return _.S("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":D.shouldAriaHideContent},_.S("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:D.questionId},_.S(_.y_,{text:D.question})))},"lc");
_.Dtz=_.RT(function(D){var Y=D.data;var R=D.themeOverride;D=_.a(_.ae(!1,void 0,"ljTVPd"));var Z=D.next().value,t=D.next().value;D=_.F4(function(){t(!Z());return!1});
var X=function(){return Z()?"EXPAND_LESS":"EXPAND_MORE"},M=("faq-container"+_.kO(_.Jo)).toString(),W="faq-question-and-answers-section-question"+_.kO(_.Jo),z={},I={};
return _.S("faq-entry-view-model-c3",null,_.S("div",{class:_.e7("yt-lp-faq-entry-view-model",(z["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return R==null?void 0:R().useDarkTheme},z))},_.S("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":D,role:"button","aria-expanded":Z,"aria-labelledby":W.toString(),"tab-index":"0"},_.S(cJ4,{question:function(){return Y().question},
questionId:W,shouldAriaHideContent:!0}),_.S(_.T,{cond:function(){return Z()!==void 0},
then:function(){return _.S("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.S(_.nB,{icon:X,ariaHidden:!0}),_.S("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.S("div",{class:_.e7("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(I["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!Z()},I))},_.S("div",{id:M},_.S(_.G6,{each:function(){return Y().answers||[]}},function(F){return _.S("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.S(_.y_,{text:F}))})))))},"mc");
_.Dtz.idomCompat=!0;var Y8E=_.RT(function(D){var Y=D.data;var R=D.themeOverride;D={};return _.S("lp-faq-section-view-model-c3",null,_.S("div",{class:_.e7("yt-lp-faq-section-view-model",(D["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return Y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(R==null||!R().useDarkTheme)},D))},_.S("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.S(_.T,{cond:function(){return Y().header},
then:function(Z){return _.S("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.S(_.y_,{text:Z}))}}),_.S("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.S(_.vK,{data:function(){return Y().faqs}},{faqEntryViewModel:function(Z){return _.S(_.Dtz,{data:Z.data,
themeOverride:R})}})),_.S("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.S(_.G6,{each:function(){return Y().footers||[]}},function(Z){return _.S(_.y_,{text:Z})})),_.S(_.T,{cond:function(){return Y().legal},
then:function(Z){return _.S("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.S(_.y_,{text:Z}))}}))))},"nc");
Y8E.idomCompat=!0;var RBE=_.RT(function(D){var Y=D.data;var R=D.themeOverride;_.$s(function(){var M=Y().gtmId;M&&_.J$(M,_.JQ("GL",""))});
var Z={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,W,z;return(z=(M=Y().logo)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)!=null?z:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},t=_.DH().resolve(_.cD(_.O4)),X=function(){return t&&t()||(R==null?void 0:R().useDarkTheme)};
return _.S("lp-header-section-view-model",null,_.S("div",{class:function(){var M=Y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",W=Y().marginType==="LP_SECTION_MARGIN_TYPE_TOP",z=R==null?void 0:R().useDarkTheme,I=["lp-header-section-view-model"];M&&I.push("lp-header-section-view-model--ptc-layout-type");W&&I.push("lp-header-section-view-model__lp-header-section-margin");z&&I.push("lp-header-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.S(_.T,{cond:function(){return Y().logo},
then:function(){return _.S("div",null,_.S(_.T,{cond:X,then:function(){return _.S(_.T,{cond:function(){var M;return(M=Y().logo)==null?void 0:M.imageDark},
then:function(M){return _.S(_.Rt,Object.assign({},{data:M},Z))}})},
else:function(){return _.S(_.T,{cond:function(){var M;return(M=Y().logo)==null?void 0:M.imageLight},
then:function(M){return _.S(_.Rt,Object.assign({},{data:M},Z))}})}}))}}),_.S(_.T,{cond:function(){return Y().title},
then:function(M){return _.S("div",{class:"lp-header-section-view-model__lp-header-title"},_.S(_.y_,{text:M}))}}),_.S("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.S(_.T,{cond:function(){return Y().subtitles},
then:function(M){return _.S(_.G6,{each:M},function(W){return _.S("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.S(_.y_,{text:W}))})}})),_.S(_.T,{cond:function(){return Y().additionalInfo},
then:function(M){return _.S("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.S(_.y_,{text:M}))}}),_.S("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.S(_.T,{cond:function(){return Y().primaryButton},
then:function(M){return _.S("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.S(_.vK,{data:M},{buttonViewModel:_.TV}))}}),_.S(_.T,{cond:function(){return Y().secondaryButton},
then:function(M){return _.S("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.S(_.vK,{data:M},{buttonViewModel:_.TV}))}})),_.S(_.T,{cond:function(){return Y().otherOffersInfo},
then:function(M){return _.S("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.S(_.y_,{text:M}))}}),_.S("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.S(_.T,{cond:function(){return Y().billingInfo},
then:function(M){return _.S(_.G6,{each:M},function(W){return _.S("div",null,_.S(_.y_,{text:W}))})}}))))},"oc");
RBE.idomCompat=!0;var Z_z=_.RT(function(D){var Y=D.data;var R=_.DX(D.themeOverride,{useDarkTheme:!1});D={};D=_.e7("ytm-lp-headline-section-view-model",(D["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return R().useDarkTheme},D));
return _.S("lp-headline-section-view-model",null,_.S("div",{class:D},_.S("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(Z){return _.S("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.S(_.y_,{text:Z}))}})))},"pc");var tLU=_.RT(function(D){var Y=D.data;var R=D.themeOverride;var Z=_.DH().resolve(_.cD(_.O4)),t=function(){return Z&&Z()||(R==null?void 0:R().useDarkTheme)},X=function(){var I,F;
var G=t()?(I=Y().textBackgroundImage)==null?void 0:I.imageDark:(F=Y().textBackgroundImage)==null?void 0:F.imageLight;return SEy((G==null?void 0:G.sources)||[])},M=function(){var I,F;
return t()?(I=Y().featureImage)==null?void 0:I.imageDark:(F=Y().featureImage)==null?void 0:F.imageLight},W=function(){return Y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},z=function(){var I,F;
return t()?(I=Y().logo)==null?void 0:I.imageDark:(F=Y().logo)==null?void 0:F.imageLight};
return _.S("ytm-lp-large-feature-section-view-model",null,_.S("div",{class:function(){var I=Y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",F=Y().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",G=(Y().index||0)%2===1,V=R==null?void 0:R().useDarkTheme,e=["yt-lp-large-feature-section-view-model"];I?e.push("yt-lp-large-feature-section-view-model--music-feature-type"):F?e.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):G||e.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
V&&e.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return e.join(" ")}},_.S("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.S(_.T,{cond:M,
then:function(){return _.S(_.Rt,{data:function(){return M()},
alt:function(){var I,F,G;return(G=(I=Y().featureImage)==null?void 0:(F=I.accessibilityData)==null?void 0:F.label)!=null?G:""},
contentMode:W})}})),_.S("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var I;return((I=X())==null?0:I.url)?"background-image: url("+_.Jf(X().url)+");":""}},_.S("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.S(_.T,{cond:z,
then:function(){return _.S(_.Rt,{data:function(){return z()},
alt:function(){var I,F,G;return(G=(I=Y().logo)==null?void 0:(F=I.accessibilityData)==null?void 0:F.label)!=null?G:""},
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"})}}),_.S(_.T,{cond:function(){return Y().eyebrowText},
then:function(){return _.S("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.S(_.y_,{text:function(){return Y().eyebrowText}}))}}),_.S(_.T,{cond:function(){return Y().title},
then:function(){return _.S("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.S(_.y_,{text:function(){return Y().title}}))}}),_.S(_.T,{cond:function(){return Y().subtitles},
then:function(){return _.S("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.S(_.G6,{each:function(){return Y().subtitles||[]}},function(I){return _.S(_.y_,{text:I})}))}})))))},"qc");
tLU.idomCompat=!0;var s_E=_.RT(function(D){return _.S("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.S("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.S(_.nB,{icon:function(){var Y;return(Y=D.data())==null?void 0:Y.iconType},
className:function(){var Y;switch((Y=D.data())==null?void 0:Y.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 Y;return((Y=D.data())==null?void 0:Y.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.S("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.S(_.y_,{text:function(){var Y;
return(Y=D.data())==null?void 0:Y.text},
className:function(){var Y;return((Y=D.data())==null?void 0:Y.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"rc");var XR7=_.RT(function(D){D=_.YC(D,{config:void 0,themeOverride:void 0});var Y=D.data,R=D.config,Z=D.themeOverride;D={};D=_.e7("ytm-lp-offer-card-option-view-model",(D["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var W;return(W=Z())==null?void 0:W.useDarkTheme},D));
var t=_.F4(function(){var W,z;(W=R())==null||(z=W.handleRadioButtonClick)==null||z.call(W,Y());return!1}),X=function(){var W;
return(W=R())==null?void 0:W.shouldDisplayRadioButton},M=function(){var W;
return(W=Y().featureListItems)!=null?W:[]};
return _.S("ytm-lp-offer-card-option-view-model",null,_.S("div",{class:D,"on:click":_.F4(function(){if(X()){var W,z;(W=R())==null||(z=W.handleRadioButtonClick)==null||z.call(W,Y())}return!1})},_.S(_.T,{cond:X,
then:function(){return _.S("div",null,_.S("input",{type:"radio","on:click":t,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var W;return!((W=R())==null||!W.isOptionSelected)}}))}}),_.S("div",null,_.S("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.S(_.y_,{text:function(){return Y().eyebrowText}})),_.S("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.S(_.y_,{text:function(){return Y().subtitle}})),_.S(_.T,{cond:function(){return M().length>0},
then:function(){return _.S("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.S(_.vK,{data:M},{lpFeatureListItemViewModel:s_E}))}}),_.S("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.S(_.y_,{text:function(){return Y().description}})))))},"sc");
XR7.idomCompat=!0;var u7L=_.RT(function(D){var Y=D.data;var R=D.themeOverride;D=_.a(_.fB(function(){var X,M=(X=Y().offerOptions)==null?void 0:X[0];return _.A(M,uAL)||{}}));
var Z=D.next().value,t=D.next().value;D={};return _.S("ytm-lp-offer-card-view-model",null,_.S("div",{class:_.e7("ytm-lp-offer-card-view-model",(D["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(R==null||!R().useDarkTheme)},D))},_.S("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.S(_.T,{cond:function(){return Y().titleIconType},
then:function(){return _.S("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.S(_.nB,{icon:function(){var X;return((X=Y().titleIconType)==null?void 0:X.toString())||""}}))}}),_.S("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.vK,{data:function(){return Y().titleBadge}},{badgeViewModel:function(X){return _.S("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.S(_.sq,{data:X.data}))}})),_.S("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.S(_.vK,{data:function(){return Y().offerOptions}},{lpOfferCardOptionViewModel:function(X){var M=X.data;
return _.S(_.c_,null,_.S("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.S(XR7,{data:M,config:function(){var W;return{shouldDisplayRadioButton:(Y().offerOptions||[]).length>1,isOptionSelected:M().id===((W=Z())==null?void 0:W.id),handleRadioButtonClick:function(z){return void t(z)}}},
themeOverride:R}))}})),_.S("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.S(_.vK,{data:function(){var X;
return(X=Z())==null?void 0:X.purchaseButtonOverride}},{buttonViewModel:_.TV}))))},"tc");
u7L.idomCompat=!0;var a0L=_.RT(function(D){var Y=D.data;var R=D.themeOverride;D={};D=_.e7("ytm-lp-offer-card-section-view-model",(D["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var Z;return R==null?void 0:(Z=R())==null?void 0:Z.useDarkTheme},D));
return _.S("ytm-lp-offer-card-section-view-model",null,_.S("div",{class:D},_.S(_.T,{cond:function(){return Y().title!==void 0},
then:function(){return _.S("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.S("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(){return _.S("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.S(_.y_,{text:function(){return Y().subtitle}}))}}))}}),_.S("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.S(_.vK,{data:function(){return Y().offerCards}},{lpOfferCardViewModel:function(Z){return _.S("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.S(u7L,{data:Z.data,
themeOverride:R}))}})),_.S(_.T,{cond:function(){return Y().footer},
then:function(){return _.S("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.S(_.y_,{text:function(){return Y().footer}}))}})))},"uc");var MLE=_.RT(function(D){var Y=D.data;return _.S("lp-offer-table-cell-content-view-model",null,_.S("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.S(_.ej,null,_.S(_.VL,{when:function(){return Y().title}},function(){return _.S(_.y_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return Y().title}})}),_.S(_.VL,{when:function(){return Y().subTitle}},function(){return _.S(_.y_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return Y().subTitle}})}),_.S(_.VL,{when:function(){return Y().featureDescription}},function(){return _.S(_.y_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return Y().featureDescription}})}),_.S(_.VL,{when:function(){return Y().description}},function(){return _.S(_.y_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return Y().description}})}),_.S(_.VL,{when:function(){return Y().iconType}},function(){return _.S("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.S(_.nB,{icon:function(){return Y().iconType.toString()}}))}),_.S(_.VL,{when:function(){return Y().purchaseButton}},function(){return _.S(_.vK,{data:function(){return Y().purchaseButton}},{buttonViewModel:function(R){return _.S("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.S(_.TV,{data:R.data}))}})}),_.S(_.VL,{when:function(){return Y().note}},function(){return _.S(_.y_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return Y().note}})}),_.S(_.VL,{when:function(){return Y().featureDetail}},function(){return _.S(_.y_,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return Y().featureDetail}})}),_.S(_.VL,{when:function(){return Y().badge}},function(){return _.S(_.vK,{data:function(){return Y().badge}},{badgeViewModel:_.sq})}))))},"vc");
MLE.idomCompat=!0;var CKD=_.RT(function(D){var Y=D.data;return _.S("lp-offer-table-cell-view-model",null,_.S("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(Y().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;"}}},_.S(_.vK,{data:function(){return Y().contents}},{lpOfferTableCellContentViewModel:MLE})))},
"wc");
CKD.idomCompat=!0;var WDz=_.RT(function(D){var Y=D.data;var R=D.lpTableIsFirstRow;var Z=D.lpTableIsLastRow;var t=function(){return(R==null?0:R())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},X=function(){return(R==null?0:R())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(Z==null?0:Z())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.S("ytm-lp-offer-table-row-view-model",null,_.S("div",{class:"yt-lp-offer-table-row-view-model"},_.S(_.vK,{data:function(){return Y().rowHeaderCell}},{lpOfferTableCellViewModel:function(M){return _.S("div",{class:t},_.S(CKD,{data:M.data}))}}),_.S(_.vK,{data:function(){return Y().contentCells}},{lpOfferTableCellViewModel:function(M){return _.S("div",{class:X},_.S(CKD,{data:M.data}))}})))},"xc");
WDz.idomCompat=!0;var zBL=_.RT(function(D){var Y=D.data;var R=D.themeOverride;var Z=_.DH().resolve(_.cD(_.O4)),t=function(){return _.A(Y().logo,rVL)||{}};
D={};return _.S("ytm-lp-offer-table-section-view-model",null,_.S("div",{class:"yt-lp-offer-table-view-model"},_.S(_.T,{cond:function(){var X,M;return Z&&Z()||(R==null?0:R().useDarkTheme)?(X=t())==null?void 0:X.imageDark:(M=t())==null?void 0:M.imageLight},
then:function(X){return _.S(_.Rt,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,W,z;return(z=(M=t())==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)!=null?z:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.S(_.y_,{text:function(){return Y().subtitle}})),_.S(_.T,{cond:function(){return Y().disclaimers},
then:function(X){return _.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.S(_.G6,{each:X},function(M){return _.S("div",null,_.S(_.y_,{text:M}))}))}}),_.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.S(_.vK,{data:function(){return Y().rows}},{lpOfferTableRowViewModel:function(X,M){return _.S(WDz,{data:X.data,
lpTableIsFirstRow:function(){return M()===0},
lpTableIsLastRow:function(){return M()===Y().rows.length-1}})}})),_.S("div",{class:_.e7((D["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return Y().hasFooterBackground},D))},_.S(_.T,{cond:function(){return Y().footer},
then:function(){return _.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.S(_.y_,{text:function(){return Y().footer}}))}}),_.S(_.T,{cond:function(){return Y().footerTitle},
then:function(){return _.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.S(_.y_,{text:function(){return Y().footerTitle}}))}}),_.S(_.T,{cond:function(){return Y().footerDescription},
then:function(){return _.S("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.S(_.y_,{text:function(){return Y().footerDescription}}))}}))))},"yc");
zBL.idomCompat=!0;var S8U=_.RT(function(D){var Y=D.data;var R=D.themeOverride;var Z=_.DH().resolve(_.cD(_.O4)),t=function(){var W;return R==null?void 0:(W=R())==null?void 0:W.useDarkTheme},X=function(){var W,z;
return Z&&Z()||t()?(W=Y().image)==null?void 0:W.imageDark:(z=Y().image)==null?void 0:z.imageLight};
D={};D=_.e7("ytm-lp-small-feature-section-view-model",(D["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=t,D));var M=function(){var W,z,I;return(I=(W=Y().image)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)!=null?I:""};
return _.S("ytm-lp-small-feature-section-view-model",{class:D},_.S(_.T,{cond:function(){return X()&&!YCy},
then:function(){return _.S("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.S(_.Rt,{data:function(){return X()},
alt:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.S("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.S("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.S(_.T,{cond:function(){return Y().title},
then:function(W){return _.S(_.y_,{text:W})}})),_.S("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.S(_.y_,{text:function(){return Y().description}}))))},"zc");
S8U.idomCompat=!0;var TD_=_.RT(function(D){var Y=D.data;var R=D.themeOverride;D={};return _.S("ytm-lp-small-feature-section-group-view-model",null,_.S("div",{class:_.e7("ytm-lp-small-feature-section-group-view-model",(D["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(R==null||!R().useDarkTheme)},D))},_.S("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.S(_.vK,{data:function(){return Y().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Z){return _.S("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.S(S8U,{data:Z.data,
themeOverride:R}))}}))))},"Ac");
TD_.idomCompat=!0;_.at(_.RT(function(D){var Y=D.data;var R=function(){return Y().forcedTheme==="USER_INTERFACE_THEME_DARK"},Z=function(){return Y().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},t=function(){var M="",W,z;
var I=_.DH().resolve(_.cD(_.O4));I=R()||(I==null?0:I())?(W=Y().themedImageViewModel)==null?void 0:W.imageDark:(z=Y().themedImageViewModel)==null?void 0:z.imageLight;(W=SEy((I==null?void 0:I.sources)||[]))&&W.url&&(M=Z()?"background-image: linear-gradient(to bottom, transparent, "+(Y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Jf(W.url)+");":"background-image: url("+_.Jf(W.url)+");");return M},X=function(){return{useDarkTheme:R()}};
D={};return _.S("yt-section-group-view-model",null,_.S("div",{class:_.e7("yt-lp-section-group-view-model",(D["yt-lp-section-group-view-model--premium-force-dark-mode"]=R,D["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return Y().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D))},_.S(_.T,{cond:function(){return t().length},
then:function(){var M={};return _.S("div",{class:_.e7("yt-lp-section-group-view-model__bg-image",(M["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Z,M)),style:t})}}),_.S("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.S(_.vK,{data:function(){return Y().sections}},{lpFaqSectionViewModel:function(M){return _.S(Y8E,{data:M.data,
themeOverride:X})},
lpHeaderSectionViewModel:function(M){return _.S(RBE,{data:M.data,themeOverride:X})},
lpHeadlineSectionViewModel:function(M){return _.S(Z_z,{data:M.data,themeOverride:X})},
lpLargeFeatureSectionViewModel:function(M){return _.S(tLU,{data:M.data,themeOverride:X})},
lpOfferCardSectionViewModel:function(M){return _.S(a0L,{data:M.data,themeOverride:X})},
lpComplexOfferCardSectionViewModel:function(M){return _.S(iUL,{data:M.data})},
lpOfferTableSectionViewModel:function(M){return _.S(zBL,{data:M.data,themeOverride:X})},
lpSmallFeatureSectionGroupViewModel:function(M){return _.S(TD_,{data:M.data,themeOverride:X})},
lpCouponBannerViewModel:function(M){return _.S(OUb,{data:M.data})}}))))},"Bc"),"yt-section-group-view-model",{props:{data:_.cs}});var zPb=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.j_D=_.RT(function(D){function Y(){if(zPb.has(D.data().displayType)){var I=!Z(),F;if((F=D.disableDeselection)==null||!F.call(D)||I){D.data().selected=I;F=Object.assign({},M(),{selected:I});W(F);var G;(G=D.callback)==null||G.call(D,F,I)}}}
var R=_.dI("chip-view-model"),Z=function(){var I,F;return!!(((I=D.selected)==null?void 0:I.call(D))!==void 0?(F=D.selected)==null?0:F.call(D):M().selected)},t=_.a(_.fB(D.data)),X=t.next().value;
t=t.next().value;var M=X,W=t,z=_.Ax(W8r,function(){return D.data().chipEntityKey||""});
return _.S("chip-view-model",{class:"ytChipViewModelHost",el:R},_.S(gpL,{data:function(){var I,F=Object.assign({},M(),{selected:Z()}),G=z(),V=(I=D.disableDeselection)==null?void 0:I.call(D);a:switch(F.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":I=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":I=3;break a;default:I=0}return{text:(G==null?void 0:G.text)||F.text,state:F.disabled?1:F.selected?0:2,type:I,onTap:Sjb(F,R,Y,V),
accessibilityLabel:F.accessibilityLabel||F.text}}}))},"Cc");
_.j_D.idomCompat={callbacks:{callback:!0}};_.I0D=_.RT(function(D){var Y=_.Ax(CJS,function(){var M;return(M=D.data())==null?void 0:M.chipBarStateEntityKey}),R=function(){return D.data().disableDeselection},Z=_.a(_.fB(function(){var M;
if(((M=Y())==null?void 0:M.selectedIndex)!=void 0)return Y().selectedIndex;var W,z;M=_.a(((W=D.data())==null?void 0:(z=W.chips)==null?void 0:z.entries())||[]);for(W=M.next();!W.done;W=M.next()){W=_.a(W.value);z=W.next().value;W=W.next().value;var I=void 0;if((I=_.A(W,_.Bx))==null?0:I.selected)return z}return-1})),t=Z.next().value,X=Z.next().value;
return _.S("chip-bar-view-model",{class:_.e7("ytChipBarViewModelHost",D.className),role:"tablist"},_.S(_.vK,{data:function(){return D.data().chips}},{chipViewModel:function(M,W){return _.S("div",{class:"ytChipBarViewModelChipWrapper"},_.S(_.j_D,{data:M.data,
selected:function(){return W()===t()},
callback:function(z,I){z=!!I;I=W();X(z?I:-1);var F,G=(F=D.data())==null?void 0:F.chipBarStateEntityKey;G&&z&&_.cE(_.oP("chipBarStateEntity",G,{key:G,selectedIndex:I}))},
disableDeselection:D.disableDeselection||R}))}}))},"Dc");_.at(_.I0D,"chip-bar-view-model",{props:{data:_.uq,className:_.uq,disableDeselection:_.uq}});_.FDE=_.RT(function(D){var Y=D.data;D={};return _.S("divider-view-model",{class:_.e7("divider-view-model-wiz",(D["divider-view-model-wiz__inset-thin-padding"]=function(){return Y().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},D))},_.S("div",{class:_.e7("divider-view-model-wiz__base-divider",function(){return ToS(Y().dividerStyle)}),
style:_.Ap({"background-color":function(){return Y().backgroundColor?_.HG(Y().backgroundColor):void 0}})}))},"Ec");
_.FDE.idomCompat=!0;_.at(_.FDE,"divider-view-model",{props:{data:_.cs}});var n9=new Map,AR=new Map,F8b=0,rK;var rIU=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],vUU={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var GiY,VLY;GiY=function(D){return function(Y){return function(){return(Y==null?void 0:Y())!==void 0?String(Y())+D:void 0}}};
_.kj=GiY("px");VLY=GiY("s");var f0Y=Vpl(function(D){return D.targetGroupId}).useUpdatableData;var ABE=_.RT(function(D){function Y(O){return function(){var Wo=l().numItemsPerGridRow,Sb=O()*Wo;Wo=Sb+Wo;var VU,AS;return(AS=(VU=Z().contents)==null?void 0:VU.slice(Sb,Wo))!=null?AS:[]}}
var R=_.YC(D,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),Z=R.data,t=R.layoutContainerWidth,X=R.shouldUseOwnContainerSize,M=R.marginSettings,W=_.$P(),z=_.a(f0Y(function(){var O,Wo;return{targetGroupId:(O=Z().targetingContext)==null?void 0:(Wo=O.targetGroupId)==null?void 0:Wo[0]}})).next().value;
R=_.a(_.ae(!0,void 0,"f25nob"));var I=R.next().value,F=R.next().value,G=function(){var O,Wo=(O=_.A(Z().showMoreButton,_.QX))==null?void 0:O.trackingParams;Wo&&_.GJ(_.n8(),Wo);F(!1)},V=function(){var O,Wo=(O=_.A(Z().showLessButton,_.QX))==null?void 0:O.trackingParams;
Wo&&_.GJ(_.n8(),Wo);F(!0)};
R=_.dI("grid-shelf-view-model");var e=_.bx5(R,{canHaveZeroSize:!1}),r=function(){var O;return(O=Z().contentAspectRatio)!=null?O:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},l=_.Si(function(){var O=_.pH({containerWidth:X()&&e.width()>0?e.width()||t():t(),
sizing:"EXTRA_COMPACT",marginSettings:M(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:O.maxContainerWidth,numItemsPerGridRow:O.numItems,contentPadding:X()?O.margin:O.contentMargin,itemWidth:O.itemWidth,itemMargin:O.gutter/2}},void 0,"b3gcJf"),U=function(){if(Z().enableVerticalExpansion){if(I())return K();
var O,Wo,Sb=(Wo=(O=Z().contents)==null?void 0:O.length)!=null?Wo:0;return Math.ceil(Sb/l().numItemsPerGridRow)}return l().numItemsPerGridRow<=2?2:1},K=function(){var O;
return Math.ceil(((O=Z().minCollapsedItemCount)!=null?O:1)/l().numItemsPerGridRow)},H=function(){return Z().enableVerticalExpansion&&Z().showLessButton&&!I()&&U()>K()},c=function(){var O,Wo;
return Z().enableVerticalExpansion&&Z().showMoreButton&&I()&&((Wo=(O=Z().contents)==null?void 0:O.length)!=null?Wo:0)>l().numItemsPerGridRow*K()},Q=function(){return!H()},E=function(){return!c()},B={};
return _.S("grid-shelf-view-model",{class:_.e7("ytGridShelfViewModelHost",D.className,(B.ytGridShelfViewModelHostHasBottomButton=function(){return H()||c()},B.ytGridShelfViewModelHostIsDismissed=function(){var O,Wo=(O=z())!=null?O:{};
O=Wo.behavior;var Sb=Wo.isDismissed,VU=Wo.stamperContextTargetId;Wo=Wo.stamperIndex;if(!(_.f("mweb_see_fewer_shorts_group_dismissal")&&Sb&&O&&VU))return!1;var AS;Sb=W;for(var nM,Ho,KM=((nM=Sb)==null?0:nM.targetId)?_.v_((Ho=Sb)==null?void 0:Ho.targetId):void 0;((AS=Sb)==null?0:AS.parent)&&KM!==VU;)Sb=Sb.parent,Ho=nM=void 0,KM=((nM=Sb)==null?0:nM.targetId)?_.v_((Ho=Sb)==null?void 0:Ho.targetId):void 0;AS=KM===VU?Sb:void 0;if(!AS)return!1;var Xb;VU=AS==null?void 0:(Xb=AS.stamperIndex)==null?void 0:Xb.call(AS);
return O==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||O==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&VU!=null&&Wo!=null&&VU>Wo},B)),
el:R,style:_.Ap({"margin-left":(0,_.kj)(function(){return l().contentPadding}),
"margin-right":(0,_.kj)(function(){return l().contentPadding})})},_.S(_.T,{cond:function(){return _.A(Z().header,K0z)},
then:function(O){return _.S(_.Sx,{data:O,disableHorizontalPadding:!0})}}),_.S("div",null,_.S(_.G6,{each:function(){return Array(U())}},function(O,Wo){return _.S(eBL,{className:D.className,
items:Y(Wo),responsiveGridShelfLayout:l,contentAspectRatio:r})})),_.S("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.S(_.vK,{data:function(){return Z().showMoreButton}},{buttonViewModel:function(O){return _.S("div",{hidden:E},_.S(_.TV,{data:O.data,
onClick:G}))}}),_.S(_.vK,{data:function(){return Z().showLessButton}},{buttonViewModel:function(O){return _.S("div",{hidden:Q},_.S(_.TV,{data:O.data,
onClick:V}))}})))},"Fc");
ABE.idomCompat=!0;var eBL=_.RT(function(D){var Y=D.items;var R=D.responsiveGridShelfLayout;var Z=D.contentAspectRatio;D=D.className;var t=_.dI("div");Iyy(t,function(){a:{var M=t.value;for(var W=Y(),z=[],I=0;I<W.length;I++){var F=_.A(W[I],S_4);if(!F||F==null||!F.inlinePlayerData){M=null;break a}var G=M.children.item(I);if(!G){M=null;break a}z.push({thumbnailElement:G,videoData:F})}M={gridVideoPreviewData:{gridItems:z}}}return M});
var X=(0,_.kj)(function(){return-R().itemMargin});
return _.S("div",{el:t,class:_.e7("ytGridShelfViewModelGridShelfRow",D),style:_.Ap({"margin-left":X,"margin-right":X})},_.S(_.vK,{data:Y,replacementWrapper:function(M){return _.S(nTL,{responsiveGridShelfLayout:R},M)}},{shortsLockupViewModel:function(M){return _.S(nTL,{responsiveGridShelfLayout:R},_.S(ZQL,{data:M.data,
aspectRatio:function(){return Z()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Gc"),nTL=_.RT(function(D){return _.S("div",{style:_.Ap({width:(0,_.kj)(function(){return D.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+D.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},D.children)},"Hc");
ABE.idomCompat=!0;_.at(ABE,"grid-shelf-view-model",{props:{data:_.cs,layoutContainerWidth:_.cs,shouldUseOwnContainerSize:_.cs,marginSettings:_.cs,className:_.cs}});_.rBz=_.RT(function(D){var Y=_.a(_.ae(!1,void 0,"YYtxR")),R=Y.next().value,Z=Y.next().value;Y={};return _.S("yt-alert-banner-view-model",{class:_.e7("ytAlertBannerViewModelHost",D.className,function(){var t;a:switch((t=D.data())==null?void 0:t.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":t="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":t="ytAlertBannerViewModelWarning";break a;default:t="ytAlertBannerViewModelInformational"}return t},(Y.ytAlertBannerViewModelDismissed=
R,Y.ytAlertBannerViewModelFullbleed=D.fullbleed,Y.ytAlertBannerViewModelNarrow=D.narrow,Y.ytAlertBannerViewModelIsInRichGrid=D.isInRichGrid,Y))},_.S(_.T,{cond:function(){var t;
return!((t=D.data())==null?0:t.hideIcon)},
then:function(){return _.S("div",{class:"ytAlertBannerViewModelIcon"},_.S(_.nB,{icon:function(){return"info_circle"}}))}}),_.S("div",{class:"ytAlertBannerViewModelOuterContainer"},_.S("div",{class:"ytAlertBannerViewModelContainer"},_.S("div",{class:"ytAlertBannerViewModelContent"},_.S("div",{class:"ytAlertBannerViewModelHeading"},_.S(_.y_,{text:function(){var t;
return(t=D.data())==null?void 0:t.heading}})),_.S("div",{class:"ytAlertBannerViewModelBody"},_.S(_.y_,{text:function(){var t;
return(t=D.data())==null?void 0:t.body}})))),_.S(_.vK,{data:function(){var t;
return(t=D.data())==null?void 0:t.actionButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.S(_.vK,{data:function(){var t;
return(t=D.data())==null?void 0:t.dismissButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var X;((X=D.data())==null?0:X.disableLocalDismissBehavior)||Z(!0)}})}}))},"Ic");_.at(_.rBz,"yt-alert-banner-view-model",{props:{data:_.cs,fullbleed:_.cs,narrow:_.cs,isInRichGrid:_.cs,className:_.cs}});_.Uf=_.RT(function(D){var Y=D.data;var R=D.callback;var Z=D.enableSingleChipSelection;var t=D.disableChipsScrollAnimation;var X=_.io("div");D=_.a(_.ae(!0,void 0,"SPw5zc"));var M=D.next().value,W=D.next().value;D=_.a(_.ae(!1,void 0,"gLFsSb"));var z=D.next().value,I=D.next().value,F=!1,G=0;_.rf(function(){W(r());I(l())});
D=_.a(_.fB(function(){var O={};return Y().autoselectedChipIndex!=null?(O[Y().autoselectedChipIndex]=!0,O):{}}));
var V=D.next().value,e=D.next().value,r=function(){var O=X.value;return O==null||O.scrollLeft-1<=0},l=function(){var O=X.value;
return O==null?!1:O.scrollLeft+1>=(O==null?NaN:O.scrollWidth)-(O==null?NaN:O.clientWidth)},U=function(){return Y().isHorizontallyScrollable},K=function(O){X.value!=null&&(_.JQ("HTML_DIR")==="rtl"&&(O=-O),X.value.scrollBy({left:O,
behavior:(t==null?0:t())?"instant":"smooth"}))},H=function(){K(-320)},c=function(){K(320)},Q=_.F4(function(O){F=!0;
G=O.clientX}),E=_.F4(function(O){if(F){O=O.clientX;
var Wo=O-G;G=O;var Sb;(Sb=X.value)==null||Sb.scrollBy({left:-Wo})}}),B=_.F4(function(){var O=r(),Wo=l();
O!==M()&&W(O);Wo!==z()&&I(Wo)});
YM("pointerup",function(){F&&(F=!1)});
return _.S("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.S(_.a4,{contentId:function(){return Y().contentId},
useModernStyle:!0},function(){var O={},Wo={};return _.S("div",null,_.S(_.T,{cond:function(){return Y().title},
then:function(){return _.S("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.S("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return Y().title}),_.S(_.vK,{data:function(){return Y().overflowButton}},{buttonViewModel:_.TV}))}}),_.S("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.S(_.T,{cond:function(){return Y().previousButton},
then:function(){var Sb={};return _.S("div",{class:_.e7("ytChipsShelfViewModelLeftArrowContainer",(Sb.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return M()},Sb))},_.S(_.vK,{data:function(){return Y().previousButton}},{buttonViewModel:function(VU){return _.S(_.TV,{data:VU.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:H})}}))}}),_.S("div",{el:X,
"on:pointerdown":Q,"on:pointermove":E,"on:scroll":B,class:_.e7("ytChipsShelfViewModelChipsScrollContainer",(O.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=U,O))},_.S("div",{class:_.e7("ytChipsShelfViewModelChipsContainer",(Wo.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=U,Wo.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Wo)),role:"tablist"},_.S(_.vK,{data:function(){return Y().contents}},{chipViewModel:function(Sb,VU){return _.S("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.S(_.j_D,{data:Sb.data,
callback:function(AS,nM){var Ho=VU();if(Z==null?0:Z()){var KM={};e((KM[Ho]=nM,KM))}else KM={},e(Object.assign({},V(),(KM[Ho]=nM,KM)));R==null||R(AS,nM,Ho)},
disableDeselection:Z,selected:function(){return!!V()[VU()]}}))}}))),_.S(_.T,{cond:function(){return Y().nextButton},
then:function(){var Sb={};return _.S("div",{class:_.e7("ytChipsShelfViewModelRightArrowContainer",(Sb.ytChipsShelfViewModelRightArrowContainerIsHidden=z,Sb))},_.S(_.vK,{data:function(){return Y().nextButton}},{buttonViewModel:function(VU){return _.S(_.TV,{data:VU.data,
className:"ytChipsShelfViewModelRightArrow",onClick:c})}}))}})))}))},"Jc");
_.Uf.idomCompat={callbacks:{callback:!0}};_.at(_.Uf,"chips-shelf-view-model",{props:{data:_.cs,callback:_.uq,enableSingleChipSelection:_.cs,disableChipsScrollAnimation:_.cs}});var wRY=_.RT(function(D){D=_.YC(D,{disabled:!1});var Y=D.active,R=D.disabled;D={};D=_.e7("ytSwitchShapeTrack",(D.ytSwitchShapeTrackActive=function(){return Y()},D.ytSwitchShapeTrackDisabled=function(){return R()},D));
var Z={};Z=_.e7("ytSwitchShapeKnob",(Z.ytSwitchShapeKnobActive=function(){return Y()},Z));
return _.S("switch-shape",{class:"ytSwitchShapeHost"},_.S("div",{class:D}),_.S("div",{class:Z}))},"Kc");var $tY=_.RT(function(D){var Y=_.YC(D,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),R=Y.data;D=Y.className;var Z=Y.handleOnTapEventInParent,t=Y.parentActive;Y=_.a(_.fB(function(){var G;return(G=t())!=null?G:R().switchedOnByDefault||!1}));
var X=Y.next().value,M=Y.next().value,W=function(){return R().isDisabled},z=_.dI("button");
Y=_.F4(function(G){return G.key==="Enter"?(G.preventDefault(),z.value.click(),!1):!0});
var I=_.F4(function(G){if(R().handleOnTapEventInParent||Z())return!0;if(W())return!1;Nol(R(),X(),G);M(!X());return!1}),F={};
F=_.e7("ytSwitchButtonViewModelButton",(F.ytSwitchButtonViewModelTappable=function(){return!W()},F));
return _.S("switch-button-view-model",{class:_.e7("ytSwitchButtonViewModelHost",D)},_.S("button",{el:z,class:F,"on:click":I,"on:keydown":Y,"aria-label":function(){return X()?R().a11yLabelSwitchedOn:R().a11yLabelSwitchedOff},
"aria-checked":X,"aria-disabled":W,role:"switch"},_.S(wRY,{active:X,disabled:W})))},"Lc");var vT4=_.RT(function(D){var Y=D.data;var R=D.isLeading;var Z=D.hideSelectionTextChevron;var t=D.isToggled;var X=function(){return R()?Y().leadingImage:Y().trailingImage},M=function(){a:switch(Y().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var F="expand_more";
break a;default:F="chevron_right"}return F};
D={};var W=_.e7("yt-list-item-view-model-wiz__image-container",(D["yt-list-item-view-model-wiz__leading"]=R,D["yt-list-item-view-model-wiz__trailing"]=function(){return!R()},D)),z=_.e7("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
D={};var I=_.e7("yt-list-item-view-model-wiz__accessory",(D["yt-list-item-view-model-wiz__leading"]=R,D["yt-list-item-view-model-wiz__trailing"]=function(){return!R()},D));
return _.S(_.T,{cond:function(){var F=Y(),G=R();return!!(G&&(F.leadingImage||F.leadingAccessory)||!G&&(F.trailingImage||F.trailingButton||F.trailingButtons||F.selectionText))},
then:function(){return _.S(_.c_,null,_.S(_.T,{cond:X,then:function(F){return _.S("div",{class:W,"aria-hidden":"true"},_.S(_.Rt,{data:F,alt:"",preserveWidth:!0,preserveHeight:!0,className:z,isToggled:t}))}}),_.S(_.T,{cond:function(){return R()&&Y().leadingAccessory},
then:function(){return _.S("div",{class:W},_.S(_.vK,{data:function(){return Y().leadingAccessory}},{avatarViewModel:function(F){return _.S(_.Jz,{data:F.data,
avatarButtonCustomClassName:z})},
collectionThumbnailViewModel:function(F){return _.S(i34,{data:F.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.S(_.T,{cond:function(){return!R()&&Y().trailingButton},
then:function(){return _.S("div",{class:"yt-list-item-view-model-wiz__button-container"},_.S(_.vK,{data:function(){return Y().trailingButton}},{buttonViewModel:function(F){return _.S(_.TV,{data:F.data,
className:I})}}))}}),_.S(_.T,{cond:function(){var F;
return!R()&&((F=Y().trailingButtons)==null?void 0:F.buttons)},
then:function(){return _.S("div",{class:"yt-list-item-view-model-wiz__button-container"},_.S(_.vK,{data:function(){var F;return(F=Y().trailingButtons)==null?void 0:F.buttons}},{buttonViewModel:function(F){return _.S(_.TV,{data:F.data,
className:I})},
accountLinkButtonViewModel:function(F){return _.S(mmD,{data:F.data,className:I})},
switchButtonViewModel:function(F){return _.S($tY,{data:F.data,className:I})},
subscribeButtonViewModel:function(F){return _.S(_.J7,{data:F.data,isOverlay:!1,animateWidth:!1,className:I})},
toggleButtonViewModel:function(F){return _.S(_.JV,{data:F.data,className:I})}}))}}),_.S(_.T,{cond:function(){return!R()&&!!Y().selectionText},
then:function(){return _.S(_.c_,null,_.S(_.y_,{text:function(){return Y().selectionText},
className:_.e7("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.S(_.T,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.S(_.nB,{icon:M,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Mc");var oTV=_.RT(function(D){var Y=D.data;return _.S(_.T,{cond:function(){return Y().title||Y().subtitle},
then:function(){return _.S("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.S(_.T,{cond:function(){return Y().title},
then:function(R){return _.S("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.S(_.y_,{text:R,className:"yt-list-item-view-model-wiz__title"}))}}),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(R){return _.S(_.y_,{text:R,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Nc");var KW=_.RT(function(D){var Y=D.data;var R=D.hideSelectionTextChevron;var Z=D.TrailingAccessory;var t=D.isToggled;var X=D.disabled;var M=D.isSelectItem;var W=D.isCompact;var z=D.inPopup;var I=D.disableHorizontalPadding;D=D.isTappableWithoutSelect;var F={};return _.S("div",{class:_.e7("yt-list-item-view-model-wiz__label",(F["yt-list-item-view-model-wiz__container"]=function(){return!(M==null?0:M())},F["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!Y().isDisabled||!(X==null||
!X())},F["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!Y().subtitle},F["yt-list-item-view-model-wiz__container--compact"]=W,F["yt-list-item-view-model-wiz__container--tappable"]=D,F["yt-list-item-view-model-wiz__container--in-popup"]=z,F["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(I==null?void 0:I())&&!(M==null?0:M())},F))},_.S(vT4,{data:Y,
isLeading:!0,hideSelectionTextChevron:R,isToggled:t}),_.S(oTV,{data:Y}),_.S(_.T,{cond:function(){return!!Z},
then:function(){return _.S("div",{class:"yt-list-item-view-model-wiz__trailing"},Z&&_.S(Z,null))},
else:function(){return _.S(vT4,{data:Y,isLeading:!1,hideSelectionTextChevron:R,isToggled:t})}}))},"Oc");var yBV=_.RT(function(D){var Y=_.YC(D,{checked:!1});D=Y.name;var R=Y.onChange,Z=Y.onClick,t=Y.checked,X=Y.labelRenderable,M=Y.hasLeadingLabel,W=Y.labelClass,z=Y.isCompact,I=Y.selectElementClass;Y=Y.disableHorizontalPadding;var F="checkbox"+_.kO(_.Jo),G=_.F4(function(r){Z==null||Z(r);return!1}),V=_.F4(function(r){R==null||R(r);
return!1}),e={};
return _.S("checkbox-shape",null,_.S("label",{class:_.e7("checkbox-shape-wiz",W,(e["checkbox-shape-wiz--compact"]=z,e["checkbox-shape-wiz--disable-horizontal-padding"]=Y,e))},_.S("input",{class:"checkbox-shape-wiz__input",id:F,checked:t,name:D,type:"checkbox","prop:checked":t,"on:change":V,"on:click":G}),_.S(_.T,{cond:function(){return!(M==null?0:M())},
then:function(){return _.S(b_z,{isLeading:!0,selectElementClass:I})}}),_.S(_.T,{cond:function(){return!!X},
then:function(){return _.S("div",{class:"checkbox-shape-wiz__label"},X==null?void 0:X())}}),_.S(_.T,{cond:M,
then:function(){return _.S(b_z,{isLeading:!1,selectElementClass:I})}})))},"Pc");
yBV.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var b_z=_.RT(function(D){var Y=D.selectElementClass;D={};return _.S("div",{class:_.e7("checkbox-shape-wiz__checkbox",Y,(D["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(Y==null?0:Y())},D)),
"aria-hidden":"true"},_.S(_.nB,{icon:_.f("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.S(_.nB,{icon:_.f("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Qc");_.ho=_.RT(function(D){var Y=D.name;var R=D.onChange;var Z=D.onClick;var t=D.checked;var X=D.labelRenderable;var M=D.useCheckIcon;var W=D.hasLeadingLabel;var z=D.labelClass;var I=D.isCompact;var F=D.selectElementClass;var G=D.ariaLabel;D=D.className;var V="radio"+_.kO(_.Jo),e=_.dI("input"),r=_.F4(function(B){e.value.checked=!(t==null||!t());R==null||R(B);return!1}),l=_.F4(function(B){Z==null||Z(B);
return!1}),U=_.F4(function(B){_.f("enable_ios_webview_radio_button_responsiveness")&&(B.preventDefault(),e.value.click())}),K=_.a(_.ae(!1,void 0,"nXiHX")),H=K.next().value,c=K.next().value;
K=_.F4(function(){var B;((B=_.DH().resolve(_.cD(_.MQ)))==null?0:B.isKeyBoardInUse())&&c(!0)});
var Q=_.F4(function(){c(!1)}),E={};
return _.S("radio-shape",{class:_.e7("radio-shape-wiz",D)},_.S("input",{el:e,class:"radio-shape-wiz__input",id:V,"prop:checked":t,name:Y,type:"radio","on:change":r,"on:click":l,"aria-label":G,"on:focusin":K,"on:focusout":Q}),_.S("label",{class:_.e7("radio-shape-wiz__label-container",z,(E["radio-shape-wiz--compact"]=I,E["radio-shape-wiz__label-container--keyboard-focused"]=H,E)),for:V,"on:click":U},_.S(_.T,{cond:function(){return!(W==null?0:W())},
then:function(){return _.S(ND7,{checked:t,useCheckIcon:M,isLeading:!0,selectElementClass:F})}}),_.S(_.T,{cond:function(){return!!X},
then:function(){return _.S("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(G==null?0:G())?"true":"false"}},X==null?void 0:X())}}),_.S(_.T,{cond:W,
then:function(){return _.S(ND7,{checked:t,useCheckIcon:M,isLeading:!1,selectElementClass:F})}})))},"Rc");
_.ho.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var ND7=_.RT(function(D){var Y=D.useCheckIcon;var R=D.selectElementClass;D=function(){return(Y==null?0:Y())?"CHECK":_.f("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var Z={};return _.S("div",{class:_.e7("radio-shape-wiz__radio",R,(Z["radio-shape-wiz__radio--check-icon"]=Y,Z["radio-shape-wiz__radio--radio-default-style"]=function(){return!(R==null?0:R())},Z)),
"aria-hidden":"true"},_.S(_.nB,{icon:D}),_.S(_.nB,{icon:D,active:function(){return!(Y==null?0:Y())}}))},"Sc");_.LW=_.RT(function(D){var Y=D.data;var R=D.isMenuItem;var Z=D.isCompact;var t=D.onTap;var X=D.trailingAccessory;var M=D.hideSelectionTextChevron;var W=D.disabled;var z=D.inPopup;var I=D.disableHorizontalPadding;var F=D.isOverlay;D=D.isToggled;var G=_.qW(function(Wo){return kci(Wo,Y())}),V=function(){return _.f("enable_web_shorts_captions_language_command")?Object.assign({},Y(),G()):Y()},e=function(){return!(V().isSelected===void 0||!V().selectionStyle||V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
r=function(){return(_.LH(V().rendererContext)||t)&&!e()},l={},U=_.e7("yt-list-item-view-model-wiz__container",(l["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.LH(V().rendererContext)||e()},l["yt-list-item-view-model-wiz__container--compact"]=Z,l["yt-list-item-view-model-wiz__container--in-popup"]=z,l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(I==null?void 0:I())&&e()},l)),K=function(){return V().leadingImage||V().leadingAccessory},
H=_.e7("yt-list-item-view-model-wiz__image-container",function(){return K()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
l=_.F4(function(Wo){return void(t==null?void 0:t(Wo))});
var c=_.bsM(),Q=_.a(_.ae(!1,void 0,"iQppzc")),E=Q.next().value,B=Q.next().value,O={data:V,hideSelectionTextChevron:M,TrailingAccessory:X,isToggled:D,disabled:W,isSelectItem:e,isCompact:Z,inPopup:z,disableHorizontalPadding:I,isTappableWithoutSelect:r};X={};return _.S("yt-list-item-view-model",{el:_.tp(_.mp(function(){return V().rendererContext}),P2M(function(){return r==null?void 0:r()},{focusin:function(){var Wo;
((Wo=_.DH().resolve(_.cD(_.MQ)))==null?0:Wo.isKeyBoardInUse())&&B(!0)},
focusout:function(){B(!1)}})),
class:_.e7("yt-list-item-view-model-wiz",(X["yt-list-item-view-model-wiz--is-overlay"]=F,X["yt-list-item-view-model-wiz--keyboard-focused"]=E,X)),role:function(){return(R==null?0:R())?"menuitem":"listitem"},
tabindex:function(){var Wo=r();return t||Wo?0:void 0},
"on:keydown":c,"on:click":l},_.S(_.T,{cond:e,then:function(){return _.S(_.ej,null,_.S(_.VL,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.S(yBV,{labelRenderable:function(){return _.S(KW,Object.assign({},O))},
isCompact:Z,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!K()},
labelClass:U,selectElementClass:H,disableHorizontalPadding:I})}),_.S(_.VL,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.S(_.ho,{labelRenderable:function(){return _.S(KW,Object.assign({},O))},
isCompact:Z,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!K()},
labelClass:U,selectElementClass:H})}),_.S(_.VL,{when:function(){return V().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.S(_.ho,{labelRenderable:function(){return _.S(KW,Object.assign({},O))},
isCompact:Z,checked:function(){return V().isSelected},
hasLeadingLabel:function(){return!!K()},
labelClass:U,selectElementClass:H,useCheckIcon:!0})}),_.S(_.fb,null,function(){return _.S(KW,Object.assign({},O))}))},
else:function(){return _.S(KW,Object.assign({},O))}}))},"Tc");
_.LW.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.l0b=_.RT(function(D){var Y=D.data;var R=D.onTap;var Z=D.onSwitch;var t=D.overrideDisabled;D=D.disableHorizontalPadding;var X=_.a(_.fB(function(){var G;return((G=JIU(F()))==null?void 0:G.switchedOnByDefault)||!1})),M=X.next().value,W=X.next().value;
X=_.a(_.ae(!1,void 0,"ZHBkbb"));var z=X.next().value,I=X.next().value,F=function(){var G;if(!(G=Y().switchButton)){var V=Y();G=t==null?void 0:t();V={switchOnCommand:V.switchOnCommand,switchOffCommand:V.switchOffCommand,switchedOnByDefault:V.switchedOnByDefault,isDisabled:V.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:V.a11yLabelSwitchedOn,a11yLabelSwitchedOff:V.a11yLabelSwitchedOff};G!==void 0&&(V.isDisabled=G);G={switchButtonViewModel:V}}return G};
return _.S("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.S(_.LW,{data:function(){return{title:Y().title,subtitle:Y().attributedSubtitle,leadingImage:Y().leadingImage,leadingAccessory:Y().leadingAccessory,isDisabled:Y().isDisabled}},
onTap:function(G){var V=JIU(F());!V||V.isDisabled||Y().ignoreTapUntilCommandCompletes&&z()||(R==null||R(G),Nol(V,M(),G,Y().ignoreTapUntilCommandCompletes,I),W(!M()),Z==null||Z(M()))},
trailingAccessory:function(){return _.S(_.vK,{data:F},{switchButtonViewModel:function(G){return _.S($tY,{data:G.data,parentActive:M,handleOnTapEventInParent:!!R})}})},
disableHorizontalPadding:D}))},"Uc");var JBL=_.RT(function(D){var Y=_.a(_.fB(function(){var t,X;return!!((t=D.data())==null?0:(X=t.initialState)==null?0:X.isToggled)})),R=Y.next().value,Z=Y.next().value;
Y=_.F4(function(){Z(!R())});
return _.S("toggleable-list-item-view-model",{el:_.tp(_.mp(function(){return D.data().rendererContext})),
class:_.e7("toggleableListItemViewModelHost",D.className),"on:click":Y},_.S(_.T,{cond:function(){if(R()){var t=D.data().toggledListItem;t=_.A(t,_.yi)}else t=D.data().defaultListItem,t=_.A(t,_.yi);return t},
then:function(t){return _.S(_.LW,{data:t,isToggled:R,ariaLabel:function(){var X=R()?D.data().toggledListItem:D.data().defaultListItem,M;X=(M=_.A(X,_.yi))==null?void 0:M.rendererContext;var W;return(W=_.A(X,_.ny))==null?void 0:W.label},
ariaPressed:function(){return R()}})}}))},"Vc");var kiL=_.fX("DOWNLOAD",{},"Download"),UtY=_.fX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),KD_=_.fX("RETRY",{},"Retry"),hB7=_.fX("PAUSE_DOWNLOADING",{},"Pause downloading"),LD4=_.fX("RESUME_DOWNLOAD",{},"Resume download"),Ury={text:kiL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},wK={text:UtY,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},L8n={text:KD_,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
K8y={text:hB7,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},hPU={text:LD4,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var mtU=_.RT(function(D){var Y=function(){var W=D.data();W=_.hx(W.rendererContext);var z;return(z=_.A(W,_.Vi))==null?void 0:z.videoId},R=_.qW(function(W){var z=Y(),I=Hxr(D.data());
return z?_.mW(W,z):I?_.qw(W,I):"TRANSFER_STATE_UNKNOWN"}),Z=_.Ax(_.akr,Y),t=_.qW(function(W){return _.Ynj(W,Y(),Hxr(D.data()))}),X=function(){return qji(R(),Z(),_.hx(D.data().rendererContext),!!Hxr(D.data()))},M=function(){return t()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.S("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:M},_.S(_.T,{cond:function(){return!M()},
then:function(){return _.S(_.T,{cond:X,then:function(W){return _.S(_.G6,{each:W},function(z){return _.S(_.LW,{data:z,isCompact:D.isCompact,isMenuItem:D.isMenuItem,inPopup:D.inPopup,disableHorizontalPadding:D.disableHorizontalPadding})})}})}}))},"Wc");
mtU.idomCompat=!0;_.q8z=_.RT(function(D){var Y=D.data;var R=D.isCompact;var Z=D.hideSelectionTextChevron;var t=D.inPopup;var X=D.isOverlay;var M=D.disableHorizontalPadding;var W=function(){return xrM(Y())&&(t==null?void 0:t())};
D={};return _.S("yt-list-view-model",{class:_.e7("yt-list-view-model-wiz",(D["yt-list-view-model-wiz--kaios-spat-nav"]=YCy&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",D["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return BoM(Y())},D)),
role:function(){return W()?"menu":"list"},
style:_.Ap({"max-height":function(){var z,I=(z=Y())==null?void 0:z.visibleElementCount;if(I)return BoM(Y())?(I+.5)*48+"px":(I+.5)*40+"px"}})},_.S(_.vK,{data:function(){return Y().listItems}},{listItemViewModel:function(z){return _.S(_.LW,{data:z.data,
isMenuItem:W,isCompact:R,hideSelectionTextChevron:Z,inPopup:t,isOverlay:X,disableHorizontalPadding:M})},
toggleableListItemViewModel:function(z){return _.S(JBL,{data:z.data})},
downloadListItemViewModel:function(z){return _.S(mtU,{data:z.data,isMenuItem:W,isCompact:R,inPopup:t,disableHorizontalPadding:M})},
switchListItemViewModel:function(z){return _.S(_.l0b,{data:z.data,disableHorizontalPadding:M})}}))},"Xc");
_.q8z.idomCompat=!0;var H_D=_.RT(function(D){var Y=D.data;var R=D.isOverlay;D={};return _.S("yt-course-perks-view-model",{class:_.e7("ytwCoursePerksViewModelHost",(D.ytwCoursePerksViewModelHostOverlay=R,D))},_.S("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",null,_.S(_.T,{cond:function(){return Y().perks},
then:function(Z){return _.S(_.q8z,{data:function(){return{listItems:Z()}},
isCompact:!0,isOverlay:R})}})))},"Yc");_.at(H_D,"yt-course-perks-view-model",{props:{data:_.uq,isOverlay:_.uq}});_.at(_.RT(function(D){var Y=D.data;return _.S("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.S("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.S(_.y_,{text:function(){return Y().title}})),_.S("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.S(_.y_,{text:function(){return Y().progressSummary}})),_.S("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.S("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Ap({width:function(){return Y().progressPercentage*100+"%"}})})))},"Zc"),"yt-course-progress-view-model",{props:{data:_.cs}});var xtY=_.RT(function(D){var Y={};return _.S("yt-progress-view-model",{class:_.e7("ytwProgressViewModelHost",(Y.ytwProgressViewModelHostOverlay=_.DX(D.isOverlay,!1),Y))},_.S(_.T,{cond:function(){return D.data().progressSummary},
then:function(R){return _.S("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.S(_.y_,{text:R}))}}),_.S("div",{class:"ytwProgressViewModelHostProgressContainer"},_.S(_.T,{cond:function(){return D.data().leadingLabel},
then:function(R){return _.S("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.S(_.y_,{text:R}))}}),_.S("div",{class:"ytwProgressViewModelHostProgressBar"},_.S("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(D.data().progressPercentage||0)*100+"%"}}))))},"$c");var md=_.RT(function(D){var Y=D.starNumber;var R=D.data;var Z=function(){var t;return((t=R())==null?void 0:t.rating)||0};
return _.S(_.T,{cond:function(){return Y()},
then:function(t){return _.S(_.ej,null,_.S(_.VL,{when:function(){return Z()>=t()-.25}},function(){return _.S("div",{class:"ytStarRatingViewModelHostStar"},_.S(_.nB,{icon:"STAR_FILLED"}))}),_.S(_.VL,{when:function(){return Z()>=t()-.75}},function(){return _.S("div",{class:"ytStarRatingViewModelHostStar"},_.S(_.nB,{icon:"STAR_HALF"}))}),_.S(_.fb,null,function(){return _.S("div",{class:"ytStarRatingViewModelHostStar"},_.S(_.nB,{icon:"STAR_BORDER"}))}))}})},"ad"),PKE=_.RT(function(D){D=D.data;
return _.S("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.S(md,{starNumber:1,data:D}),_.S(md,{starNumber:2,data:D}),_.S(md,{starNumber:3,data:D}),_.S(md,{starNumber:4,data:D}),_.S(md,{starNumber:5,data:D}))},"bd");_.at(_.RT(function(D){var Y=_.YC(D,{}).data;return _.S("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.S("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.S(_.y_,{text:function(){var R;return(R=Y())==null?void 0:R.title}})),_.S("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.S(_.T,{cond:function(){return Y().starProgressViewModels},
then:function(R){return _.S("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.S(_.vK,{data:R},{progressViewModel:xtY}))}}),_.S("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.S("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.S(_.y_,{text:function(){var R;
return(R=Y())==null?void 0:R.averageRatingLabel}})),_.S(_.T,{cond:function(){return Y().zeroStateText},
then:function(R){return _.S("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.S(_.y_,{text:R}))}}),_.S(_.T,{cond:function(){return Y().starRatingViewModel},
then:function(R){return _.S("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.S(_.vK,{data:R},{starRatingViewModel:PKE}))}}),_.S("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.S(_.y_,{text:function(){var R;
return(R=Y())==null?void 0:R.totalRatingsCountLabel}})))))},"cd"),"yt-course-ratings-view-model",{props:{data:_.uq}});var Q__;Q__={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"}};_.BDV=_.RT(function(D){var Y=_.dI("yt-learning-journey-loader-view-model"),R=_.FU();_.rf(function(){requestAnimationFrame(function(){var t;(t=R.lottieEl)==null||t.addEventListener("DOMLoaded",function(){var X;(X=D.onLottieLoaded)==null||X.call(D)})});
var Z=D.data().browseEndpoint;Z&&_.BL(Z)});
return _.S("yt-learning-journey-loader-view-model",{class:_.e7("learningJourneyLoaderViewModelHost",D.className),"data-target-id":function(){var Z;return((Z=D.data)==null?void 0:Z.call(D).targetId)||""},
el:Y},_.S(_.fO,{className:_.e7("learningJourneyLoaderViewModelLoader",D.className),animationName:function(){return Q__.animationConfig.name},
data:Q__,animationRef:R}))},"dd");_.at(_.BDV,"yt-learning-journey-loader-view-model",{props:{data:_.cs,className:_.uq,onLottieLoaded:_.uq}});var EU5=new Set,peb=null;var ETV=_.RT(function(D){var Y=null,R=null,Z=function(){return D.data()},t=function(){var e=Z();
var r=_.DH().resolve(_.cD(_.O4));e=r!=null&&r()?e.darkThemeColorPalette:e.lightThemeColorPalette;return{primaryTextColor:vl(e,0),secondaryTextColor:vl(e,1),optionColor:vl(e,2),backgroundColor:vl(e,3),videoBackgroundColor:vl(e,4)}},X=function(){return!!t().optionColor},M=_.a(_.ae(-1,void 0,"Wnp7o")),W=M.next().value,z=M.next().value,I=function(e){return Z().correctAnswerIndex===e},F=function(){return W()!==-1},G=function(){var e=F(),r=W()===Z().correctAnswerIndex;
return e?r?264685:264684:264683},V=function(e){return W()===Z().correctAnswerIndex&&I(e)};
return _.S("learning-journey-quiz-view-model",{class:_.e7("learningJourneyQuizViewModelHost",D.className),style:_.Ap({background:function(){return t().backgroundColor}})},_.S(_.T,{cond:function(){return!!Z().video},
then:function(){return _.S("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Ap({background:function(){return t().videoBackgroundColor}})},_.S(_.vK,{data:function(){return Z().video}},{lockupViewModel:function(e){return _.S(_.Wz,{data:e.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.S("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.S("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.S("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.S(_.T,{cond:function(){return!!Z().aiGeneratedQuizLabel},
then:function(){return _.S("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.S(_.y_,{text:function(){return Z().aiGeneratedQuizLabel}}))}}),_.S("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Ap({"align-items":function(){return Z().overflowMenu?"start":"center"}})},_.S("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Ap({"min-height":function(){return Z().overflowMenu?"48px":"26px"}})},_.S("div",{class:"learningJourneyQuizYoututorText",
el:_.tp(function(e){_.$6(G(),e,Y,function(r){Y=r})}),
style:_.Ap({color:function(){return t().primaryTextColor}}),
"client-ve-type":G},_.S(_.y_,{text:function(){return Z().questionHeaderText}})))),_.S("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.tp(function(e){_.$6(264688,e,R,function(r){R=r})}),
style:_.Ap({color:function(){return t().secondaryTextColor}}),
"client-ve-type":264688},_.S(_.y_,{text:function(){var e=Z();return F()?e.explanationText:e.questionSubheaderText}}))),_.S("div",{role:"group",
class:_.e7("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.S(_.G6,{each:function(){return Z().optionsData||[]}},function(e,r){var l={};
return _.S("button",{class:_.e7("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(l.learningJourneyQuizViewModelHostQuizHover=function(){return!F()},l.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=X,l.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return F()&&I(r())},l.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var U;
if(U=W()!==Z().correctAnswerIndex)U=r(),U=W()===U;return U},l)),
"on:click":_.F4(function(){if(F())return!1;z(r());return!1}),
style:_.Ap({background:"transparent"}),"aria-disabled":F,"client-ve-type":264686},_.S("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.S(_.y_,{text:e.optionText}),_.S(_.T,{cond:function(){var U=r(),K;if(K=F())K=W()===U||I(U);return K},
then:function(){return _.S(pRL,{isOptionCorrect:I,optionIndex:r,isOptionSelectedAndCorrect:V,colors:t})}})))}),_.S(_.T,{cond:F,
then:function(){return _.S("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.S("div",{class:"learningJourneyQuizYoututorExplanationText"},_.S(_.y_,{text:function(){return Z().explanationHeaderText}})),_.S(_.y_,{text:function(){return Z().optionsData[W()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ed"),pRL=_.RT(function(D){var Y={};
return _.S("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.e7("learningJourneyQuizYoututorOptionIconTrailing",(Y.learningJourneyQuizViewModelHostQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},Y.learningJourneyQuizYoututorIconIncorrectFill=function(){return!D.isOptionSelectedAndCorrect(D.optionIndex())&&!D.isOptionCorrect(D.optionIndex())},Y.learningJourneyQuizYoututorIconCorrectFill=function(){return D.isOptionCorrect(D.optionIndex())},
Y))},_.S("path",{d:function(){var R=D.optionIndex();
return D.isOptionCorrect(R)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"fd");
ETV.idomCompat=!0;var gTz;_.dt_=_.RT(function(D){var Y=null,R=null,Z=null,t=function(){return D.data()},X=function(){var Q=t();
var E=_.DH().resolve(_.cD(_.O4));Q=E!=null&&E()?Q.darkThemeColorPalette:Q.lightThemeColorPalette;return{primaryTextColor:oZ(Q,0),secondaryTextColor:oZ(Q,1),optionColor:oZ(Q,2),backgroundColor:oZ(Q,3),videoBackgroundColor:oZ(Q,4)}},M=function(){return!!X().optionColor},W=_.a(_.ae(-1,void 0,"oGWitb")),z=W.next().value,I=W.next().value,F=function(Q){return z()===Q},G=function(Q){return t().correctAnswerIndex===Q},V=function(){return z()!==-1},e=function(){return z()===t().correctAnswerIndex},r=function(){var Q=
t(),E=V(),B=e();
return E?B?Q.successTitle:Q.failureTitle:Q.questionHeaderText},l=function(){var Q=V(),E=e();
return Q?E?264685:264684:264683},U=function(){var Q=t();
return V()?Q.explanationText:Q.questionSubheaderText},K=function(){return!!t().video},H=function(Q){return e()&&G(Q)},c=_.F4(function(){I(-1);
return!1});
return _.S(_.T,{cond:function(){return t().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.S(ETV,{data:function(){return t()}})},
else:function(){return _.S("learning-journey-quiz-view-model",{class:_.e7("learningJourneyQuizViewModelHost",D.className),style:_.Ap({background:function(){return X().backgroundColor}})},_.S(_.T,{cond:K,
then:function(){return _.S("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Ap({background:function(){return X().videoBackgroundColor}})},_.S(_.vK,{data:function(){return t().video}},{lockupViewModel:function(Q){return _.S(_.Wz,{data:Q.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.S("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.S("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.S("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.S(_.T,{cond:function(){return!!t().aiGeneratedQuizLabel},
then:function(){return _.S("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.S(_.y_,{text:function(){return t().aiGeneratedQuizLabel}}))}}),_.S("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Ap({"align-items":function(){return t().overflowMenu?"start":"center"}})},_.S("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Ap({"min-height":function(){return t().overflowMenu?"48px":"26px"}})},_.S("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.tp(function(Q){_.$6(l(),Q,Y,function(E){Y=E})}),
style:_.Ap({color:function(){return X().primaryTextColor}}),
"client-ve-type":l},_.S(_.y_,{text:r}))),_.S("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.S(_.T,{cond:V,then:function(){return _.S("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.tp(function(Q){_.$6(264687,Q,R,function(E){R=E})}),
"on:click":c,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.S("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Ap({fill:function(){return X().primaryTextColor}})},_.S("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"})))}}),
_.S(_.vK,{data:function(){return t().overflowMenu}},{buttonViewModel:function(Q){return _.S(_.TV,{data:Q.data})}}))),_.S("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.tp(function(Q){_.$6(264688,Q,Z,function(E){Z=E})}),
style:_.Ap({color:function(){return X().secondaryTextColor}}),
"client-ve-type":264688},_.S(_.y_,{text:U}))),_.S("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.S(_.G6,{each:function(){return t().optionsData||[]}},function(Q,E){var B={};
return _.S("button",{class:_.e7("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(B.learningJourneyQuizViewModelHostQuizHover=function(){return!V()},B.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=M,B.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return H(E())},B.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!e()&&F(E())},B.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return V()&&
!F(E())},B)),
"on:click":_.F4(function(){if(V())return!1;I(E());return!1}),
style:_.Ap({background:function(){var O=E();return V()&&F(O)?"":M()?X().optionColor:"transparent"}}),
"aria-disabled":V,"client-ve-type":264686},_.S("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.S(_.T,{cond:V,then:function(){return _.S(gTz,{isOptionCorrect:G,optionIndex:E,isOptionSelectedAndCorrect:H,colors:X})}}),_.S(_.y_,{text:Q.optionText})))})))))}})},"gd");
gTz=_.RT(function(D){var Y={};return _.S("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var R=D.optionIndex();return D.isOptionCorrect(R)?"0 0 24 24":"0 -960 960 960"},
class:_.e7("learningJourneyQuizViewModelHostQuizOptionIconLeading",(Y.learningJourneyQuizViewModelHostQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},Y)),
style:_.Ap({fill:function(){return D.colors().primaryTextColor}})},_.S("path",{d:function(){var R=D.optionIndex();
return D.isOptionCorrect(R)?"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"}}))},"hd");
_.dt_.idomCompat=!0;_.at(_.dt_,"learning-journey-quiz-view-model",{props:{data:_.cs,className:_.cs}});var i_E=_.RT(function(D){var Y=D.data;return _.S("yt-suspense-view-model",{class:_.e7("ytSuspenseViewModelHost")},_.S(_.vK,{data:function(){var R;return(R=Y().config)==null?void 0:R.contents}},{lockupViewModel:_.Wz}))},"id");var O_z=_.RT(function(D){var Y=_.YC(D,{palette:void 0,isLastItem:!1}),R=Y.palette,Z=Y.isLastItem,t=function(){return D.data().isHighlighted},X=function(){var z;
return drj((z=R())==null?void 0:z.iconDisabledColor)},M=function(){var z;
return drj((z=R())==null?void 0:z.primaryTitleColor)},W=function(){var z;
return drj((z=R())==null?void 0:z.secondaryTitleColor)};
Y={};return _.S("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.tp(_.mp(function(){return D.data().rendererContext}))},_.S(_.vK,{data:function(){return D.data().thumbnail}},{thumbnailViewModel:_.Yo}),_.S("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.S("div",{class:_.e7("ytMacroMarkerListItemViewModelTimeDescription",(Y.ytMacroMarkerListItemViewModelHighlighted=t,Y)),
style:_.Ap({"background-color":function(){return t()?M():X()},
color:function(){return t()?"":W()}})},_.S(_.y_,{text:function(){return D.data().timestamp}})),_.S("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Ap({"background-color":function(){return Z()?"transparent":X()}})}),_.S("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(t()?M():W())}},_.S(_.y_,{text:function(){return D.data().title}}))))},"jd");_.q9=_.RT(function(D){function Y(sy){H("transform:translateX("+(_.JQ("HTML_DIR")==="rtl"?"":"-")+sy+"px)")}
function R(sy){return Math.min(Math.max(sy,0),K()-O())}
function Z(){var sy=E()+AS();return t()?(Math.round(O()/sy)||1)*sy:0}
var t=function(){return D.data().items||[]},X=function(){return D.data().previousButton},M=function(){return D.data().nextButton},W=function(){var sy,D_;
return(D_=(sy=D.disableArrows)==null?void 0:sy.call(D))!=null?D_:!1},z=function(){var sy;
return!((sy=D.forceNarrowLayout)==null||!sy.call(D))},I=_.Si(function(){var sy;
return!((sy=D.centerAlignItems)==null||!sy.call(D))&&K()<=O()},void 0,"DL81uf"),F=_.dI("horizontal-shelf-view-model"),G=_.dI("div"),V=_.a(_.ae(0,void 0,"xZFppf")),e=V.next().value,r=V.next().value;
V=_.a(_.ae(0,void 0,"pH9gvd"));var l=V.next().value,U=V.next().value,K=l;l=_.a(_.ae("",void 0,"oYcWy"));V=l.next().value;var H=l.next().value;l=_.a(_.ae(0,void 0,"lI6NJb"));var c=l.next().value,Q=l.next().value,E=c;l=_.a(_.ae(0,void 0,"yPqhW"));c=l.next().value;var B=l.next().value,O=c;l=_.a(_.ae(!1,void 0,"u4CvOe"));var Wo=l.next().value,Sb=l.next().value;l=_.a(_.ae(0,void 0,"oQOBbe"));c=l.next().value;var VU=l.next().value,AS=c;l=_.a(_.ae(0,void 0,"fCqgxd"));var nM=l.next().value,Ho=l.next().value;
l=_.a(_.ae("50%",void 0,"kjP5ke"));var KM=l.next().value,Xb=l.next().value,kE=function(){var sy,D_=(sy=D.data())==null?void 0:sy.responsiveContainerConfiguration,fL,zT;return D_?b3j(D_==null?void 0:D_.responsiveSize):(zT=(fL=D.sizing)==null?void 0:fL.call(D))!=null?zT:"STANDARD"};
l=_.Si(function(){return!W()&&e()>0},void 0,"oVCO3d");
c=_.Si(function(){return!W()&&e()<K()-O()},void 0,"MQ6Gb");
var SD=function(){r(R(e()-Z()));Y(e())},co=function(){r(R(e()+Z()));
Y(e())},GE=function(){F.value!==null&&yV()},TE;
_.$s(function(){yV();window.ResizeObserver?(TE=new ResizeObserver(_.eU(GE,0)),TE.observe(F.value)):window.addEventListener("resize",GE)});
_.w2(function(){if(window.ResizeObserver){var sy;(sy=TE)==null||sy.disconnect()}else window.removeEventListener("resize",GE)});
var yV=function(){var sy=F.value.clientWidth,D_=D.includeMargin!==void 0?D.includeMargin():!1,fL;var zT=D.hasPeek!==void 0?D.hasPeek():!((fL=D.data())==null||!fL.hasPeek);sy=_.pH({containerWidth:sy,hasPeek:zT,sizing:kE(),marginSettings:D_?z()?4:1:0});VU(sy.gutter);Ho(sy.margin);Q(sy.itemWidth);Sb(sy.maxContainerWidth<528||z());B(sy.maxContainerWidth);t()&&U((sy.itemWidth+sy.gutter)*t().length-sy.gutter);if(t()){var eD;if(((eD=D.thumbnailAspectRatio)==null?void 0:eD.call(D))!==void 0){var YK;Xb(E()/
mgi((YK=D.thumbnailAspectRatio)==null?void 0:YK.call(D))/2+"px")}else Xb("50%")}},vu={},dz={};
return _.S("horizontal-shelf-view-model",{class:_.e7("ytwHorizontalShelfViewModelHost",D.className),el:F},_.S(_.T,{cond:function(){var sy;return D.data().header&&!((sy=D.horizontalShelfExperiments)==null?0:sy.call(D).hideHeader)},
then:function(){return _.S("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Ap({width:function(){return O()+"px"},
padding:function(){return"0 "+nM()+"px"}})},_.S(_.vK,{data:function(){return D.data().header}},{sectionHeaderViewModel:function(sy){return _.S(_.Sx,{data:sy.data,
disableHorizontalPadding:!0,forceSmallLayout:Wo,useResponsiveLayout:!0})}}))}}),_.S("div",{class:_.e7("ytwHorizontalShelfViewModelOuterContainer",(vu.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return I()},vu)),
style:_.Ap({"margin-top":function(){var sy,D_=D.data().header&&!((sy=D.horizontalShelfExperiments)==null?0:sy.call(D).hideHeader),fL;return(((fL=D.ensureMarginTop)==null?0:fL.call(D))&&!D_?12:0)+"px"}})},_.S("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Ap({width:function(){return O()+"px"},
padding:function(){return"0 "+nM()+"px"},
overflow:function(){return W()?"auto":"hidden"}})},_.S("div",{class:_.e7("ytwHorizontalShelfViewModelItems",(dz.ytwHorizontalShelfViewModelCenterAlignItems=function(){return I()},dz)),
el:G,style:V},_.S(_.vK,{data:t},{macroMarkerListItemViewModel:function(sy,D_){return _.S("div",{style:_.Ap({width:function(){return E()+"px"},
"margin-right":function(){return(D_()===t().length-1?0:AS())+"px"}})},_.S(O_z,{data:sy.data,
palette:_.DX(D.palette),isLastItem:function(){return D_()===t().length-1}}))},
lockupViewModel:function(sy,D_){var fL=sy.data;return _.S("div",{style:_.Ap({width:function(){return E()+"px"},
"margin-right":function(){return(D_()===t().length-1?0:AS())+"px"}})},_.S(_.Wz,{data:fL,
containerType:4,sizing:kE,protectBackground:D.protectBackground,thumbnailFixedWidth:function(){return ixr(fL())+"px"},
thumbnailTargetWidth:function(){return ixr(fL())}}))},
suspenseViewModel:function(sy,D_){return _.S("div",{style:_.Ap({width:function(){return E()+"px"},
"margin-right":function(){return(D_()===t().length-1?0:AS())+"px"}})},_.S(i_E,{data:sy.data}))}}))),_.S(_.T,{cond:l,
then:function(){return _.S("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Ap({top:function(){return KM()}})},_.S(_.vK,{data:X},{buttonViewModel:function(sy){return _.S(_.TV,{data:sy.data,
onClick:SD})}}))}}),_.S(_.T,{cond:c,
then:function(){return _.S("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Ap({top:function(){return KM()}})},_.S(_.vK,{data:M},{buttonViewModel:function(sy){return _.S(_.TV,{data:sy.data,
onClick:co})}}))}})))},"kd");
_.q9.idomCompat=!0;var cBU=_.RT(function(D){var Y=function(){return D.data().targetId||""},R=function(){var l;
return((l=D.data())==null?void 0:l.expansionEntityKey)||""},Z=_.Ax(_.xP,R),t=!0,X=function(){var l;
return((l=Z())==null?void 0:l.value)===Y()},M=function(l){_.cE(_.oP("stringEntity",R(),{key:R(),
value:l?Y():""}))};
_.rf(function(){t=!1;D.data().isExpanded&&M(!0)});
var W=function(){if(X()){var l=!0;D.onCollapse!==void 0&&(l=D.onCollapse());l&&M(!1)}else M(!0)},z=_.F4(W),I=function(){var l;
return(((l=D.accordionStyle)==null?void 0:l.call(D))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},F=_.dI("div"),G=function(){var l,U;
return(U=(l=_.A(D.data().rendererContext,_.ny))==null?void 0:l.label)!=null?U:""},V=function(){var l,U;
return{disabled:(l=D.hideIfNotExpanded)==null?void 0:l.call(D),ariaHidden:(U=D.hideIfNotExpanded)==null?void 0:U.call(D)}},e={},r={};
return _.S("yt-accordion-item-view-model",{class:_.e7("ytAccordionItemViewModelHost",D.className,(e.ytAccordionItemViewModelExpanded=function(){return X()},e.ytAccordionItemViewModelHidden=function(){var l;
return(l=D.hideIfNotExpanded)==null?void 0:l.call(D)},e.ytAccordionItemViewModelMini=I,e)),
"data-target-id":Y},_.S("div",{class:"ytAccordionItemViewModelContainer"},_.S("div",{class:"ytAccordionItemViewModelLeftSection","on:click":z,title:G,"aria-hidden":function(){var l;return(l=D.hideIfNotExpanded)==null?void 0:l.call(D)}},_.S(_.y_,{text:function(){return D.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:G})),_.S("div",{class:"ytAccordionItemViewModelRightSection"},_.S(_.vK,{data:function(){return X()?D.data().expandButton:D.data().collapseButton}},{buttonViewModel:function(l){return _.S(_.TV,{data:l.data,
className:"ytAccordionItemViewModelToggleButton",onClick:W,buttonOverrides:V})}}))),_.S("div",{class:"ytAccordionItemViewModelContainer"},_.S("div",{class:_.e7("ytAccordionItemViewModelContent",(r.ytAccordionItemViewModelExpandedSubtitle=function(){return X()},r)),
el:F,style:_.Ap({"max-height":function(){return t?"auto":X()?F.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!X()}},_.S(_.T,{cond:function(){return!I()},
then:function(){return _.S(_.y_,{text:function(){return D.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.S(_.vK,{data:function(){return D.data().content}},{horizontalShelfViewModel:function(l){return _.S(_.q9,{data:l.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ld");_.DR4=_.RT(function(D){var Y=_.a((0,_.f91)(D.data)).next().value,R=function(){return D.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Z=function(){return R()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t=_.a(_.ae(!0,void 0,"FVec2e")),X=t.next().value,M=t.next().value,W=function(){return Z()&&X()},z=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){M(!X())}}},I=_.F4(function(){Y().onTitleTap&&_.BL(Y().onTitleTap||{})});
t={};return _.S("yt-accordion-view-model",{class:_.e7("ytAccordionViewModelHost",(t.ytAccordionViewModelMinimized=function(){return W()},t)),
"data-target-id":function(){return D.data().targetId||""}},_.S(_.T,{cond:function(){return Z()||!!Y().title},
then:function(){return _.S("div",{class:"ytAccordionViewModelHeader"},_.S("div",{class:"ytAccordionViewModelTitleSection"},_.S("div",{class:"ytAccordionViewModelTitleWrapper"},_.S(_.T,{cond:function(){return!!D.data().headerIcon},
then:function(){return _.S(_.nB,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var F;return(F=D.data().headerIcon)==null?void 0:F.iconType}})}}),_.S("div",{class:"ytAccordionViewModelTitle",
"on:click":I},_.S(_.y_,{className:"ytAccordionViewModelTitleText",text:function(){return Y().title}})))),_.S("div",{class:"ytAccordionViewModelButtonSection"},_.S(_.T,{cond:Z,
then:function(){return _.S(_.Sn,{data:z,iconName:function(){return W()?"chevron_down":"chevron_collapse"}})}})))}}),_.S("div",{class:"ytAccordionViewModelContent"},_.S(_.vK,{data:function(){return Y().contents}},{accordionItemViewModel:function(F){return _.S(cBU,{data:F.data,
className:"ytAccordionViewModelRow",accordionStyle:R,hideIfNotExpanded:W,onCollapse:function(){return Z()?(M(!0),!1):!0}})}})),_.S("div",null,_.S(_.T,{cond:function(){return!Z()&&(!!Y().disclaimerFooter||!!Y().footer)},
then:function(){return _.S("div",{class:"ytAccordionViewModelFooter"},_.S(_.y_,{text:function(){return Y().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.S(_.vK,{data:function(){return D.data().footer}},{flexibleActionsViewModel:function(F){return _.S(_.UX,{data:F.data,
layout:0})}}))}})))},"md");_.at(_.DR4,"yt-accordion-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=null,R=null,Z,t=(Z=_.DH().resolve(_.cD(_.O4)))==null?void 0:Z(),X=_.a(_.ae(!1,void 0,"EVXQGb"));Z=X.next().value;var M=X.next().value;X=_.a(_.ae(!0,void 0,"W9FIJf"));var W=X.next().value,z=X.next().value,I=_.dI("textarea",function(U){_.$6(264503,U,Y,function(K){Y=K})}),F=function(U){M(!0);
U={learningJourneyFormData:{query:U}};_.BL(D.data().searchEndpoint||{},{form:{formData:U}});return!1},G=_.F4(function(U){U.target.closest("button-view-model")&&M(!0)});
X=_.F4(function(){z(I.value.value.length===0)});
var V=_.F4(function(U){if(U.key==="Enter"&&!U.shiftKey&&!W()){var K=U.target;U.preventDefault();F(K.value)}}),e={},r={},l={};
return _.S("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.S("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.S(_.Rt,{data:function(){return D.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.S("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.S("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.S("div",{class:_.e7("ytLearningJourneyZeroStateSearchBar",(e.ytLearningJourneyZeroStateSearchBarDark=t,e))},_.S("textarea",{class:_.e7("ytLearningJourneyZeroStateTextInput",(r.ytLearningJourneyZeroStateTextInputDark=t,r)),el:I,"on:keyup":X,"on:keydown":V,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.S("div",{class:_.e7("ytLearningJourneyZeroStateSearchButtonContainer",(l.ytLearningJourneyZeroStateSearchButtonContainerDark=t,l))},_.S(_.TV,{data:function(){return _.A(D.data().searchButton,_.QX)},
className:"search-button",onClick:function(){return F(I.value.value)},
buttonOverrides:function(){return{disabled:W(),style:t?"mono-inverse":"mono",size:"XL"}}}))),_.S(_.T,{cond:function(){return!!D.data().errorBanner},
then:function(){return _.S("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.tp(function(U){_.$6(264617,U,R,function(K){R=K})})},_.S(_.vK,{data:function(){return D.data().errorBanner}},{alertBannerViewModel:function(U){return _.S(_.rBz,{data:U.data,
"client-ve-type":264617})}}))}})),_.S(_.T,{cond:Z,
then:function(){return _.S("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.S(_.vK,{data:function(){return D.data().loader}},{learningJourneyLoaderViewModel:function(U){return _.S(_.BDV,{data:U.data})}}))},
else:function(){return _.S("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.S(_.T,{cond:function(){return!!D.data().learningJourneyShelf},
then:function(){return _.S("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.S("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().learningJourneySectionTitle}),_.S(_.vK,{data:function(){return D.data().learningJourneyShelf}},{horizontalShelfViewModel:function(U){return _.S(_.q9,{data:U.data,
centerAlignItems:!0})}}))}}),_.S("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.S("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().suggestedJourneySectionTitle}),_.S("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":G},_.S(_.vK,{data:function(){return D.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(U){return _.S(_.UX,{data:U.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"nd"),"yt-learning-journey-zero-state",{props:{data:_.cs}});var Yub=_.RT(function(D){var Y=D.data;return _.S("ytvl-live-leaderboard-item-action-content-view-model",{class:_.e7("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.S(_.y_,{text:function(){var R;return(R=Y())==null?void 0:R.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.S(_.vK,{data:function(){return Y().actionButton}},{buttonViewModel:function(R){return _.S(_.TV,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:R.data})}}))},"od");var RhY=_.RT(function(D){var Y=D.data;return _.S("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.e7("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.S(_.y_,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var R;return(R=Y())==null?void 0:R.displayName},
ellipsisTruncate:!0}),_.S(_.vK,{data:function(){return Y().badge}},{buttonViewModel:function(R){return _.S(_.TV,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:R.data})}}))},"pd");_.at(_.RT(function(D){var Y=D.data;return _.S("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.S("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.S(_.y_,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var R;return(R=Y())==null?void 0:R.rank}})),_.S("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz})),_.S("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.S(_.vK,{data:function(){return Y().content}},{liveLeaderboardItemChannelContentViewModel:RhY,
liveLeaderboardItemActionContentViewModel:Yub})),_.S(_.y_,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var R;return(R=Y())==null?void 0:R.points}}))},"qd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;return _.S("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.S(_.y_,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var R,Z;return(R=Y())==null?void 0:(Z=R.ranking)==null?void 0:Z.rank}}),_.S("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz})),_.S(_.y_,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var R,Z;return(R=Y())==null?void 0:(Z=R.channelContent)==null?void 0:Z.channelName}}),_.S(_.y_,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var R;return(R=Y())==null?void 0:R.points}}))},"rd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.cs}});var ZzU=_.RT(function(D){D=_.YC(D,{wrapper:!1}).wrapper;return _.S(_.T,{cond:D,then:function(){return _.S("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.S("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.S("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"sd");
ZzU.idomCompat=!0;var tKY=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],sd1=_.RT(function(D){var Y=D.data;var R=_.tp(),Z=_.Si(function(){return Y().command},void 0,"o6t5Yb");
_.r2(function(){Z()&&_.xC(Z(),{form:{element:R.value}})},"qIHWLc");
return _.S("div",{el:R,class:"YtQrCodeRendererHostContainer"},_.S(_.T,{cond:function(){return Y().qrCodeImage},
then:function(t){return _.S(_.Rt,{data:t,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.S(_.T,{cond:function(){return Y().spinner},
then:function(){return _.S(ZzU,null)}})}}),_.S(_.T,{cond:function(){return Y().label},
then:function(t){return _.S(_.y_,{text:t,className:"YtQrCodeRendererHostLabel"})}}),_.S(_.T,{cond:function(){return Y().labels},
then:function(t){return _.S("div",{class:"YtQrCodeRendererHostLabels"},_.S(_.G6,{each:t},function(X){return _.S(_.y_,{text:X})}))}}))},"ud");_.at(_.RT(function(D){var Y=D.data;var R=_.Si(function(){return Y().qrEntityKey},void 0,"joYCxd"),Z=_.Si(function(){return Y().deleteEntityOnDismiss},void 0,"x3yAde"),t=_.Si(function(){return Y().command},void 0,"dJe1Re"),X=_.Ax(JKU,R);
D=_.Si(function(){return Y().qrCodeImage},void 0,"qM5dZe");
var M=_.Si(function(){return Y().style&&tKY.includes(Y().style)},void 0,"CaNEkf"),W=_.Zq({visibilityCallback:function(z){z&&t()&&_.xC(t())},
showOption:{calledOnce:!0,state:"visible"}});_.$s(function(){_.w2(function(){Z()&&R()&&_.Og().dispatch(_.oP("qrCodeEntity",R()))})});
return _.S("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.tp(W)},_.S(_.T,{cond:M,then:function(){return _.S(_.T,{cond:X,then:function(z){return _.S(sd1,{data:z})}})}}),_.S(_.T,{cond:D,
then:function(z){return _.S(_.Rt,{data:z,alt:""})}}))},"td"),"yt-qr-code-renderer",{props:{data:_.cs}});_.XqE=_.RT(function(D){var Y=D.data;var R=D.topbarOffset;var Z,t=((Z=_.DH().resolve(_.cD(_.O4)))==null?void 0:Z())||!1;return _.S("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var X=Y();var M,W,z=t?(M=X.config)==null?void 0:M.darkThemeBackgroundColor:(W=X.config)==null?void 0:W.lightThemeBackgroundColor;X=z?_.HG(z):void 0;X="background-color: "+X+";";R!==void 0&&(X+="top: -"+R()+"px;");return X},
"aria-hidden":!0},_.S(_.T,{cond:function(){var X,M,W;return!!((X=Y().backgroundImageConfig)==null?0:(M=X.image)==null?0:(W=M.sources)==null?0:W.length)},
then:function(){return _.S(_.Rt,{data:function(){var X;return(X=Y().backgroundImageConfig)==null?void 0:X.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.S("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+OxU(t,Y().gradientColorConfig)+";"}}))},"vd");
_.XqE.idomCompat=!0;var HS=_.RT(function(D){var Y=D.className;var R=D.data;var Z=D.isOverlay;var t=D.maxLinesOverride;var X=D.useMediumText;var M=function(){return R().alwaysShowTruncationText},W=function(){return R().truncationText},z=function(){return X!==void 0&&X()?"medium":"small"},I=function(){return Z!==void 0&&Z()?"overlay":"default"},F=function(){var r,l;
return(l=(r=_.A(R().rendererContext,_.ny))==null?void 0:r.label)!=null?l:""};
D=_.a(_.ae(!1,void 0,"xVwzHf"));var G=D.next().value,V=D.next().value;D=_.F4(function(){R().expandOnTap&&V(!G());return!1});
var e={};return _.S("yt-description-preview-view-model",{el:_.tp(_.mp(function(){return R().rendererContext})),
class:_.e7("yt-description-preview-view-model-wiz",Y,(e["yt-description-preview-view-model-wiz--clickable"]=function(){var r;return!((r=_.A(R().rendererContext,qtU))==null||!r.onTap)},e["yt-description-preview-view-model-wiz--is-overlay"]=Z,e)),
"on:click":D},_.S(_.T,{cond:function(){return R().description},
then:function(r){return _.S(_.T,{cond:G,then:function(){var l={};return _.S("div",{class:_.e7("yt-description-preview-view-model-wiz__description",(l["yt-description-preview-view-model-wiz__description--medium-text"]=X,l))},_.S(_.y_,{text:r}))},
else:function(){return _.S(f2V,{text:r,alwaysShowTruncationText:M,truncationText:W,maxLines:function(){var l;return(l=t==null?void 0:t())!=null?l:R().maxLines},
textStyle:I,accessibilityLabel:F,textSize:z})}})}}))},"wd");
HS.idomCompat=!0;var uZE=_.RT(function(D){var Y=D.data;var R=D.isOverlay;return _.S("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.S("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.S(_.vK,{data:function(){return Y().header}},{sectionHeaderViewModel:function(Z){return _.S(_.Sx,{data:Z.data,
isOverlay:R})}})),_.S("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.S(_.vK,{data:function(){return Y().channelInfoButtons}},{flexibleActionsViewModel:_.UX})),_.S("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.S(_.vK,{data:function(){return Y().description}},{descriptionPreviewViewModel:function(Z){return _.S(HS,{data:Z.data,
isOverlay:R})}})))},"xd");
uZE.idomCompat=!0;var a3L=_.RT(function(D){var Y=D.data;var R={};return _.S("factoid-view-model",{class:_.e7("ytwFactoidViewModelHost",(R.ytwFactoidViewModelHostOverlay=D.isOverlay,R))},_.S(_.y_,{text:function(){return Y().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.S(_.y_,{text:function(){return Y().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"yd");
a3L.idomCompat=!0;var MKV=_.RT(function(D){var Y=D.data;var R=D.isOverlay;return _.S("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.S(_.vK,{data:function(){return Y().factoids}},{factoidViewModel:function(Z){return _.S(a3L,{data:Z.data,
isOverlay:R})}}))},"zd");
MKV.idomCompat=!0;_.CwD=_.RT(function(D){var Y=D.data;var R=D.isOverlay;return _.S("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.S(_.vK,{data:function(){return Y().items}},{channelInfoViewModel:function(Z){return _.S("div",{class:"ytwCourseMetadataViewModelHostItem"},_.S(uZE,{data:Z.data,
isOverlay:R}))},
coursePerksViewModel:function(Z){return _.S("div",{class:"ytwCourseMetadataViewModelHostItem"},_.S(H_D,{data:Z.data,isOverlay:R}))},
descriptionPreviewViewModel:function(Z){return _.S("div",{class:"ytwCourseMetadataViewModelHostItem"},_.S(HS,{data:Z.data,isOverlay:R}))},
factoidsRowViewModel:function(Z){return _.S("div",{class:"ytwCourseMetadataViewModelHostItem"},_.S(MKV,{data:Z.data,isOverlay:R}))},
progressViewModel:function(Z){return _.S("div",{class:"ytwCourseMetadataViewModelHostItem"},_.S(xtY,{data:Z.data,isOverlay:R}))}}))},"Ad");var W6L=_.RT(function(D){return _.S("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.S(_.vK,{data:function(){return D.data().content}},{courseMetadataViewModel:function(Y){return _.S(_.CwD,{data:Y.data,
isOverlay:D.isOverlay})},
progressViewModel:function(Y){return _.S(xtY,{data:Y.data})}}))},"Bd");var zh1=_.RT(function(D){var Y=D.data;D=D.className;var R=function(){var t;return _.LH((t=Y())==null?void 0:t.rendererContext)},Z={};
Z=(Z["dynamic-text-view-model-wiz"]=!0,Z["dynamic-text-view-model-wiz--tappable"]=function(){return R()},Z);
return _.S("yt-dynamic-text-view-model",{el:_.tp(_.mp(function(){var t;return(t=Y())==null?void 0:t.rendererContext})),
role:function(){return R()?"link":void 0},
tabindex:function(){return R()?0:void 0},
class:_.e7(D,Z)},_.S("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var t,X,M;return(M=(X=_.A((t=Y())==null?void 0:t.rendererContext,_.ny))==null?void 0:X.label)!=null?M:""}},_.S(_.y_,{text:function(){return Y().text},
userInput:!0})))},"Cd");
zh1.idomCompat=!0;_.xj=_.RT(function(D){var Y=D.data;var R=D.isPositionRelative;var Z=_.DzU("(max-width: 527.9px)"),t=function(){var X,M;return(M=(X=Y())==null?void 0:X.style)!=null?M:"IMAGE_BANNER_STYLE_FULL_BLEED"};
D={};return _.S("yt-image-banner-view-model",{el:_.tp(_.mp(function(){var X;return(X=Y())==null?void 0:X.rendererContext})),
class:_.e7((D["yt-image-banner-view-model-wiz"]=!0,D["yt-image-banner-view-model-wiz--inset"]=function(){return Y5o(t())},D["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.v_(!0)&&!(R==null?0:R())},D["yt-image-banner-view-model-wiz--small-inset"]=function(){return Y5o(t())&&Z()},D["yt-image-banner-view-model-wiz--tappable"]=function(){var X;
return _.LH((X=Y())==null?void 0:X.rendererContext)},D))},_.S(_.T,{cond:function(){var X;
return(X=Y())==null?void 0:X.image},
then:function(){return _.S(_.Rt,{data:function(){return Y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.S(_.vK,{data:function(){var X;
return(X=Y())==null?void 0:X.overlays}},{thumbnailHoverOverlayViewModel:lY}))},"Dd");
_.xj.idomCompat=!0;var SuU;SuU=_.RT(function(D){var Y=D.condition;var R=D.content;return _.S(_.T,{cond:Y,then:function(){return _.S("div",{class:"page-header-view-model-wiz__scroll-container"},R())},
else:function(){return R()}})},"Ed");
_.TFz=_.RT(function(D){var Y=D.data;var R=D.noPadding;var Z=D.enableBanner;var t=D.cinematicContainerTopbarOffset;var X=D.allowCinematicContainerOverflow;var M=D.displayAsSidebar;var W=D.displayAsPanel;var z=D.alwaysUseMediumTextDescription;var I=Rei(),F=function(){return!!Y().image||!!Y().animatedImage},G=function(){return!!Y().background},V=function(){return(M==null?0:M())||(W==null?0:W())?1:I()},e=function(){return V()===1},r=function(){return e()||V()===2},l=function(){return V()===4},U=function(){var nM=
Y();
var Ho=!!Y().heroImage;var KM=V(),Xb=ZTb(Y()),kE=M==null?void 0:M(),SD=!nM.metadata,co;if(co=Ho?_.A(nM.heroImage,VF7):_.A(nM.animatedImage||nM.image,VF7)){nM=co.style;var GE=co.layoutMode;if(GE!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(co=PFi(xYU(co)),Ho)Ho=cIU(KM,nM,GE,co,kE);else b:if(SD)Ho=KM===1?{size:48}:{size:72};else switch(KM){case 1:Ho={size:72};break b;case 2:Ho={size:120};break b;default:Ho=Xb<4?{size:120}:{size:160}}else Ho=void 0}else Ho={size:0};return Ho};
D={};D=_.e7((D["page-header-view-model-wiz"]=!0,D["page-header-view-model-wiz--no-padding"]=function(){return!(R==null||!R())},D["page-header-view-model-wiz--small-top-padding"]=function(){return e()&&!Y().actions&&!(W==null?0:W())||V()===2&&!(F()||Y().heroImage)},D["page-header-view-model-wiz--small-bottom-padding"]=function(){return r()&&!Y().actions&&!(W==null?0:W())},D["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(X==null?0:X())},D["page-header-view-model-wiz--display-as-sidebar"]=
M,D));
var K={},H=_.e7((K["page-header-view-model-wiz__page-header-headline"]=!0,K["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var nM;return(nM=U())==null?void 0:nM.allowFullWidth},K)),c=function(){var nM;
return r()&&!((nM=U())==null?0:nM.allowFullWidth)},Q=function(){return e()&&(!!Y().heroImage||F())&&ZTb(Y())>0},E=function(){return Q()&&(W==null?void 0:W())};
K={};var B=_.e7((K["page-header-view-model-wiz__page-header-title"]=!0,K["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!Q()},K["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return Q()&&!E()},K["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=E,K["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=G,K));
K={};var O=_.e7((K["page-header-view-model-wiz__page-header-headline-image"]=!0,K["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!Y().heroImage&&r()},K));
K={};var Wo=_.e7((K["page-header-view-model-wiz__page-header-banner-container"]=Z,K["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var nM;return(Z==null?void 0:Z())&&((nM=_.A(Y().banner,_.e4L))==null?void 0:nM.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},K));
K={};var Sb=_.e7((K["page-header-view-model-wiz__page-header-content-metadata"]=!0,K["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=G,K));K={};var VU=_.e7((K["page-header-view-model-wiz__page-header-flexible-actions"]=!0,K["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!Y().metadata||r()},K["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!r()},K));
K={};var AS=_.e7((K["page-header-view-model-wiz__page-header-attribution"]=!0,K["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=G,K));return _.S("yt-page-header-view-model",{class:D},_.S(_.T,{cond:G,then:function(){return _.S("div",{class:"page-header-view-model-wiz__page-header-background"},_.S(_.vK,{data:function(){return Y().background}},{cinematicContainerViewModel:function(nM){return _.S(_.XqE,{data:nM.data,
topbarOffset:t})}}))}}),_.S(SuU,{condition:function(){return!(M==null||!M())},
content:function(){return _.S("div",{class:"page-header-view-model-wiz__page-header-content"},_.S(_.T,{cond:function(){return(Z==null?void 0:Z())&&Y().banner},
then:function(){return _.S("div",{class:Wo},_.S(_.vK,{data:function(){return Y().banner}},{imageBannerViewModel:_.xj}))}}),_.S("div",{class:H},_.S(_.T,{cond:F,
then:function(){return _.S(_.vK,{data:function(){var nM;if(!(nM=Y().animatedImage)){nM=Y();if(F()){var Ho=nM=Object.assign({},nM),KM=V(),Xb=ZTb(Y()),kE=Ho.image,SD=_.A(kE,fYb),co=SD==null?void 0:SD.avatar,GE=_.A(co,_.qP);if(kE&&co&&GE){switch(KM){case 1:GE.avatarImageSize="AVATAR_SIZE_XL";break;case 2:GE.avatarImageSize="AVATAR_SIZE_XXL";break;default:Xb<4?GE.avatarImageSize="AVATAR_SIZE_XXL":GE.avatarImageSize="AVATAR_SIZE_XXXL"}_.f("web_enable_sink_page_header_view_model")&&(_.U4(co,_.qP,Object.assign({},
GE)),SD.avatar=Object.assign({},co),_.U4(kE,fYb,Object.assign({},SD)),Ho.image=Object.assign({},kE))}}nM=nM.image}return nM}},{contentPreviewImageViewModel:function(nM){return _.S(_.X2,{data:nM.data,
className:O,imageSizeConfig:U})},
decoratedAvatarViewModel:function(nM){return _.S(_.kk,{data:nM.data,className:O})}})}}),_.S(_.T,{cond:function(){return!!Y().heroImage&&!c()},
then:function(){return _.S(_.vK,{data:function(){return Y().heroImage}},{contentPreviewImageViewModel:function(nM){return _.S(_.X2,{data:nM.data,
className:O,imageSizeConfig:U})}})}}),_.S("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.S(_.T,{cond:function(){return!!Y().heroImage&&c()},
then:function(){return _.S("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.S(_.vK,{data:function(){return Y().heroImage}},{contentPreviewImageViewModel:function(nM){return _.S(_.X2,{data:nM.data,
className:O,imageSizeConfig:U})}}))}}),_.S(_.vK,{data:function(){return Y().title}},{dynamicTextViewModel:function(nM){return _.S(zh1,{data:nM.data,
className:B})}}),_.S(_.vK,{data:function(){return Y().metadata}},{contentMetadataViewModel:function(nM){return _.S(_.un,{data:nM.data,
layout:function(){return e()?1:0},
className:Sb,isOverlay:G,useMediumText:l})}}),_.S(_.T,{cond:function(){return Y().description&&!e()},
then:function(){return _.S(_.vK,{data:function(){return Y().description}},{descriptionPreviewViewModel:function(nM){return _.S(HS,{data:nM.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:G,maxLinesOverride:function(){return e()?void 0:1},
useMediumText:function(){return(z==null?void 0:z())||l()}})}})}}),_.S(_.T,{cond:function(){return Y().attribution&&!r()},
then:function(){return _.S(_.vK,{data:function(){return Y().attribution}},{attributionViewModel:function(nM){return _.S(sOY,{data:nM.data,
className:AS,useMediumText:l})}})}}),_.S(_.T,{cond:function(){return Y().actions&&!r()},
then:function(){return _.S(_.vK,{data:function(){return Y().actions}},{flexibleActionsViewModel:function(nM){return _.S(_.UX,{data:nM.data,
layout:function(){return tAl(V())},
className:VU})}})}}))),_.S("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.S(_.T,{cond:function(){return Y().description&&e()},
then:function(){return _.S(_.vK,{data:function(){return Y().description}},{descriptionPreviewViewModel:function(nM){return _.S(HS,{data:nM.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:G,maxLinesOverride:function(){return e()?void 0:1},
useMediumText:function(){return(z==null?void 0:z())||l()}})}})}}),_.S(_.T,{cond:function(){return Y().attribution&&r()},
then:function(){return _.S(_.vK,{data:function(){return Y().attribution}},{attributionViewModel:function(nM){return _.S(sOY,{data:nM.data,
className:AS,useMediumText:l})}})}}),_.S(_.T,{cond:function(){return Y().actions&&r()},
then:function(){return _.S(_.vK,{data:function(){return Y().actions}},{flexibleActionsViewModel:function(nM){return _.S(_.UX,{data:nM.data,
layout:function(){return tAl(V())},
className:VU})}})}})),_.S("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.S(_.vK,{data:function(){return Y().bottomMetadataFlexibleContainer}},{flexibleContainer:function(nM){return _.S(W6L,{data:nM.data,
isOverlay:G})}})))}}))},"Fd");
_.TFz.idomCompat=!0;_.at(_.RT(function(D){var Y=_.a(_.ae(!1,void 0,"j5qbkc")),R=Y.next().value,Z=Y.next().value;return _.S("yt-official-card-view-model",{class:_.e7("ytOfficialCardViewModelHost",D.className),style:_.Ap({"background-color":function(){var t,X=ayo((t=D.data())==null?void 0:t.backgroundColor);return X?_.xI(X):void 0}})},_.S(_.vK,{data:function(){return D.data().header}},{pageHeaderViewModel:function(t){return _.S(_.TFz,{data:t.data,
noPadding:!0})}}),_.S(_.vK,{data:function(){return D.data().contents}},{horizontalShelfViewModel:function(t){return _.S(_.q9,{data:t.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.S(_.T,{cond:R,
then:function(){return _.S("div",{class:"ytOfficialCardViewModelExpandedContent"},_.S(_.vK,{data:function(){return D.data().expandedContents}},{horizontalShelfViewModel:function(t){return _.S(_.q9,{data:t.data,
sizing:"MINI"})}}),_.S("div",{class:"ytOfficialCardViewModelCollapseButton"},_.S(_.vK,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
onClick:function(){Z(!R())}})}})))},
else:function(){return _.S("div",{class:"ytOfficialCardViewModelExpandButton"},_.S(_.vK,{data:function(){return D.data().expandButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
onClick:function(){Z(!R())}})}}))}}))},"Gd"),"yt-official-card-view-model",{props:{data:_.cs,
className:_.cs}});var WlM=_.bE({buttonViewModel:_.TV});_.tN(ze9);var jdU=_.RT(function(D){var Y,R=(Y=_.DH().resolve(_.cD(_.O4)))==null?void 0:Y();return _.S("ytw-search-friction-view-model",{class:_.e7("ytwSearchFrictionViewModelHost",D.className)},_.S("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.S("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.S(_.T,{cond:function(){return R&&D.data().darkThemeImage?D.data().darkThemeImage:D.data().image},
then:function(Z){return _.S(_.Rt,{data:Z,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.S(_.vK,{data:function(){return D.data().overflowMenuButton}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.S(_.y_,{text:function(){return D.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.S(_.G6,{each:function(){return D.data().bodyText||[]}},function(Z){return _.S(_.y_,{text:Z,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.S(_.vK,{data:function(){return D.data().actions}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.S(_.y_,{text:function(){return D.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.S(_.y_,{text:function(){return D.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Hd"),I3z=_.f("web_enable_sink_search_friction_view_model_ks")?ze9:jdU,F6b=_.f("web_enable_sink_search_friction_view_model_ks")?_.Vv(ze9):jdU;
jdU.idomCompat=!0;_.f("web_enable_sink_search_friction_view_model_ks")?_.It(I3z,"ytw-search-friction-view-model",{propNames:["data"]}):_.at(F6b,"ytw-search-friction-view-model",{props:{data:_.cs,className:_.cs}});_.PS=_.RT(function(D){var Y=_.dI("markdown-div"),R,Z=(R=_.DH().resolve(_.cD(_.O4)))==null?void 0:R();_.r2(function(){var t=Y.value;var X=new F7U,M=new Map(X.JSC$9270_sanitizerTable.globalAttributePolicies);M.set("style",{policyAction:4});X.JSC$9270_sanitizerTable=new A0(X.JSC$9270_sanitizerTable.allowedElements,X.JSC$9270_sanitizerTable.elementPolicies,X.JSC$9270_sanitizerTable.allowedGlobalAttributes,M,X.JSC$9270_sanitizerTable.globallyAllowedAttributePrefixes);var W=["data-time"];if(W===void 0)M=
new Set(X.JSC$9270_sanitizerTable.globallyAllowedAttributePrefixes),M.add("data-"),X.JSC$9270_sanitizerTable=new A0(X.JSC$9270_sanitizerTable.allowedElements,X.JSC$9270_sanitizerTable.elementPolicies,X.JSC$9270_sanitizerTable.allowedGlobalAttributes,X.JSC$9270_sanitizerTable.globalAttributePolicies,M);else{M=new Set(X.JSC$9270_sanitizerTable.allowedGlobalAttributes);W=_.a(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;if(z.indexOf("data-")!==0)throw Error("ma`"+z);M.add(z)}X.JSC$9270_sanitizerTable=
new A0(X.JSC$9270_sanitizerTable.allowedElements,X.JSC$9270_sanitizerTable.elementPolicies,M,X.JSC$9270_sanitizerTable.globalAttributePolicies,X.JSC$9270_sanitizerTable.globallyAllowedAttributePrefixes)}M=new Set(X.JSC$9270_sanitizerTable.allowedGlobalAttributes);M.add("class");X.JSC$9270_sanitizerTable=new A0(X.JSC$9270_sanitizerTable.allowedElements,X.JSC$9270_sanitizerTable.elementPolicies,M,X.JSC$9270_sanitizerTable.globalAttributePolicies,X.JSC$9270_sanitizerTable.globallyAllowedAttributePrefixes);
_.iT(t,_.zY1(X.build(),TUb(D.text())));jGo(Y.value)},"nk5Hce");
R={};return _.S("div",null,_.S("markdown-div",{class:_.e7("ytwMarkdownDivHost",(R.ytwMarkdownDivDark=Z,R.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var t;return((t=D.isSmallText)==null?void 0:t.call(D))||!1},R.ytwMarkdownDivHostWrapCodeBlocks=function(){var t;
return((t=D.wrapCodeBlocks)==null?void 0:t.call(D))||!1},R.ytwMarkdownDivHostEnableDefaultStyling=function(){var t;
return!((t=D.disableDefaultStyling)==null?0:t.call(D))},R)),
el:Y}))},"Id");
_.PS.idomCompat=!0;var G17=_.RT(function(D){var Y=D.imageData;var R=_.DX(D.isInList,!1),Z=function(){return R()?{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 _.S("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.S(_.T,{cond:function(){return Y().image},
then:function(t){return _.S(_.Rt,{data:t,alt:function(){return Z().alt},
contentMode:function(){return Z().contentMode},
targetWidth:function(){return Z().targetWidth},
targetHeight:function(){return Z().targetHeight},
className:function(){return Z().className}})}}),_.S("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.S("div",{class:_.e7("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.G6,{each:function(){var t;
return(t=Y().description)!=null?t:[]}},function(t){return _.S("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.S(QR,{content:t}))})))},"Jd"),VKz=_.RT(function(D){var Y=D.list;
var R=function(){var Z;return(Z=Y().items)!=null?Z:[]};
return _.S("div",{class:"ytwGenAiRichTextViewModelListContent"},_.S(_.T,{cond:function(){return Y().title},
then:function(Z){return _.S("div",{class:_.e7("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.S(_.y_,{text:Z}))}}),_.S(_.T,{cond:function(){return Y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.S("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.S(_.G6,{each:R},function(Z){return _.S("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.S(QR,{content:Z,isInList:!0}))}))}}),_.S(_.T,{cond:function(){return Y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.S("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.S(_.G6,{each:R},function(Z){return _.S("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.S(QR,{content:Z,isInList:!0}))}))}}),_.S(_.T,{cond:function(){return Y().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.S("div",{class:"ytwGenAiRichTextViewModelImageList"},_.S(_.G6,{each:R},function(Z){return _.S("div",{class:"ytwGenAiRichTextViewModelListItem"},_.S(QR,{content:Z,isInList:!0}))}))}}))},"Kd"),f3L=_.RT(function(D){var Y=D.table;
return _.S("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.S("thead",null,_.S("tr",null,_.S(_.G6,{each:function(){var R,Z;return(Z=(R=Y().header)==null?void 0:R.cells)!=null?Z:[]}},function(R){return _.S("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.S(_.G6,{each:function(){return R.contents}},function(Z){return _.S(QR,{content:Z})}))}))),_.S("tbody",null,_.S(_.G6,{each:function(){var R;
return(R=Y().rows)!=null?R:[]}},function(R){return _.S("tr",null,_.S(_.G6,{each:function(){return R.cells}},function(Z){return _.S("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.S(_.G6,{each:function(){return Z.contents}},function(t){return _.S(QR,{content:t})}))}))})))},"Ld"),QR=_.RT(function(D){var Y=D.content;
var R=_.DX(D.isInList,!1),Z=function(){var t,X;return(X=(t=Y().contentBlock)==null?void 0:t.contents)!=null?X:[]};
return _.S("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.S(_.T,{cond:function(){return Y().text},
then:function(t){return _.S(_.y_,{className:"ytwGenAiRichTextViewModelText",text:t})}}),_.S(_.T,{cond:function(){return Y().image},
then:function(t){return _.S(G17,{imageData:t,isInList:R})}}),_.S(_.T,{cond:function(){return Y().list},
then:function(t){return _.S(VKz,{list:t})}}),_.S(_.T,{cond:function(){return Y().contentBlock},
then:function(){return _.S("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.S(_.G6,{each:Z},function(t){return _.S(QR,{content:t,isInList:!1})}))}}),_.S(_.T,{cond:function(){return Y().table},
then:function(t){return _.S(f3L,{table:t})}}))},"Md"),ehU=_.RT(function(D){var Y={};
Y=_.kc("ytwGenAiRichTextViewModelHost",(Y.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.XW("search_overview_link_style")),Y));return _.S("gen-ai-rich-text-view-model",{class:Y},_.S(QR,{content:function(){return D.data().content}}))},"Nd");_.AdD=_.RT(function(D){var Y=D.data;var R=function(){var l;return((l=Y().loadingUi)!=null?l:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Z=function(){return Y().isLoading&&(R()==="UNSPECIFIED"||R()==="GHOST_CARD")},t=function(){return!Y().isLoading},X=function(){return!!Y().content&&!Y().contents},M=function(){return!!Y().contents},W=function(){return!!Y().nextQueryButtons},z=function(){return Y().isLoading&&R()==="INVISIBLE"},I=function(){var l,U;
return(U=(l=Y().headerIcon)==null?void 0:l.iconType)!=null?U:""},F=function(){var l;
return(l=Y().content)!=null?l:""},G=function(){return!!Y().sourcesSection},V,e=!((V=_.DH().resolve(_.cD(_.O4)))==null||!V()),r=_.Si(function(){var l=[],U=Y().contents;
if(U)for(var K=0;K<U.length;K++){var H=_.A(U&&U[K],lVL);H&&l.push(H)}return l},void 0,"ycU97e");
_.$s(function(){Y().isLoading||_.KX("so_re",void 0,"search_overview_answer")});
return _.S("ytd-overview-answer-view-model",{class:function(){var l={};l=(l.ytdOverviewAnswerViewModelHost=!0,l.ytdOverviewAnswerViewModelDarkBackground=e&&!z(),l.ytdOverviewAnswerViewModelLightBackground=!e&&!z(),l);return _.kc(l)}},_.S(_.T,{cond:function(){return!z()},
then:function(){return _.S(_.c_,null,_.S("h2",null,_.S("div",{class:"ytdOverviewAnswerViewModelHeader"},_.S(_.T,{cond:I,then:function(l){return _.S("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.S(_.nB,{icon:l}))}}),_.S("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.S("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return Y().headerText}),_.S("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.S(_.y_,{text:function(){return Y().headerSubtext}}))))),_.S(_.T,{cond:Z,
then:function(){return _.S(IJb,null)}}),_.S(_.T,{cond:t,
then:function(){return _.S(_.c_,null,_.S(_.T,{cond:X,then:function(){return _.S("div",{class:"ytdOverviewAnswerViewModelText"},_.S(_.PS,{text:F,isSmallText:!0}))}}),_.S(_.T,{cond:M,
then:function(){return _.S("div",{class:"ytdOverviewAnswerViewModelRichText"},_.S(_.G6,{each:r},function(l){return _.S(ehU,{data:l})}))}}),_.S(_.T,{cond:W,
then:function(){return _.S("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.S(_.vK,{data:function(){return Y().nextQueryButtons}},{buttonViewModel:function(l){return _.S(_.TV,{data:l.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.q9}))}}),_.S("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.S("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.S(_.T,{cond:function(){return!!_.A(Y().likeButtonViewModel,_.U_)&&!!_.A(Y().dislikeButtonViewModel,_.kG)},
then:function(){return _.S("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.S(_.h7,{data:function(){return _.A(Y().likeButtonViewModel,_.U_)},
disableIconAnimation:!0}),_.S(_.KV,{data:function(){return _.A(Y().dislikeButtonViewModel,_.kG)}}))}})),_.S(_.T,{cond:function(){var l;
return(l=Y().sourcesSection)==null?void 0:l.headerText},
then:function(l){return _.S("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.S(_.y_,{text:l}))}})),_.S(_.T,{cond:G,
then:function(){return _.S("div",{class:"ytdOverviewAnswerViewModelSources"},_.S(_.vK,{data:function(){var l;return(l=Y().sourcesSection)==null?void 0:l.sourcesShelf}},{buttonViewModel:_.TV,
horizontalShelfViewModel:function(l){return _.S(_.q9,{data:l.data,includeMargin:!0,hasPeek:!0})}}))}}),_.S(_.T,{cond:function(){return Y().disclaimerText},
then:function(){return _.S("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.S(_.y_,{text:function(){return Y().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Od");var n9L=_.RT(function(D){var Y=D.data;var R=D.active;var Z=_.dI("transcript-segment-view-model");_.r2(function(){var t,X,M,W=((t=_.DH().resolve(_.cD(_.O4)))==null?0:t())?(X=Y())==null?void 0:X.darkThemeColorPalette:(M=Y())==null?void 0:M.lightThemeColorPalette;W&&(W.additiveBackground&&Z.value.style.setProperty("--timestamp-active-background-color",_.xI(W.additiveBackground)),W.textSecondary&&Z.value.style.setProperty("--timestamp-active-color",_.HG(W.textSecondary)))},"KHcbwb");
D={};return _.S("transcript-segment-view-model",{class:_.e7("ytwTranscriptSegmentViewModelHost",(D.ytwTranscriptSegmentViewModelHostActive=R,D.ytwTranscriptSegmentViewModelHostModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),D)),el:Z},_.S(_.T,{cond:function(){var t;return(t=Y())==null?void 0:t.timestamp},
then:function(t){var X={};return _.S("div",{class:_.e7("ytwTranscriptSegmentViewModelTimestamp",(X.ytwTranscriptSegmentViewModelTimestampActive=R,X))},t)}}),_.S(_.y_,{text:function(){var t,X,M;
return(M=(t=Y())==null?void 0:t.attributedText)!=null?M:{content:(X=Y())==null?void 0:X.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Pd");var rdz=_.RT(function(D){var Y=D.data;return _.S("div",{class:"yt-video-attributes-section-view-model__header"},_.S("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return Y().headerTitle}),_.S(_.T,{cond:function(){return Y().headerSubtitle},
then:function(){return _.S("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return Y().headerSubtitle})}}))},"Qd"),wqU=_.RT(function(D){function Y(l){return Math.max(Math.min(l,0),I()-W())}
var R=D.data;var Z;D=_.dI("div",function(l){var U=function(){F(l.clientWidth)};
U();window.ResizeObserver&&(Z=new ResizeObserver(U),Z.observe(l))});
var t=_.dI("div",function(l){z(l.scrollWidth)}),X=_.a(_.ae(0,void 0,"Y8rd0c")),M=X.next().value;
X=X.next().value;var W=M,z=X;X=_.a(_.ae(0,void 0,"kDvR6b"));M=X.next().value;X=X.next().value;var I=M,F=X;M=_.a(_.ae(0,void 0,"Kit3De"));var G=M.next().value,V=M.next().value;_.w2(function(){var l;(l=Z)==null||l.disconnect()});
var e=function(){V(Y(G()+I()))},r=function(){V(Y(G()-I()))};
return _.S("yt-video-attributes-section-view-model",null,_.S("div",{class:"yt-video-attributes-section-view-model"},_.S(_.T,{cond:function(){return R().headerTitle},
then:function(){return _.S(rdz,{data:R})}}),_.S("div",{class:_.e7("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:D},_.S("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Ap({transform:function(){var l=G();_.JQ("HTML_DIR")==="rtl"&&(l*=-1);return"translateX("+l+"px)"}}),
el:t},_.S(_.vK,{data:function(){return R().videoAttributeViewModels}},{videoAttributeViewModel:nu_}))),_.S(_.vK,{data:function(){return R().footerButton}},{buttonViewModel:function(l){return _.S(_.TV,{data:l.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.S(_.T,{cond:function(){return G()<0&&R().previousButton},
then:function(){return _.S("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.S(_.vK,{data:function(){return R().previousButton}},{buttonViewModel:function(l){return _.S(_.TV,{data:l.data,
onClick:e})}}))}}),_.S(_.T,{cond:function(){return G()>I()-W()&&R().nextButton},
then:function(){return _.S("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.S(_.vK,{data:function(){return R().nextButton}},{buttonViewModel:function(l){return _.S(_.TV,{data:l.data,
onClick:r})}}))}})))},"Rd");
wqU.idomCompat=!0;var $R1=_.RT(function(D){var Y=D.data;var R=D.active;var Z={},t={};return _.S("timeline-item-view-model",{class:_.e7("ytwTimelineItemViewModelHost",(Z.ytwTimelineItemViewModelHostChapterChild=D.chapterChild,Z.ytwTimelineItemViewModelModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),Z))},_.S("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.S("div",{class:_.e7("ytwTimelineItemViewModelTimestamp",(t.ytwTimelineItemViewModelTimestampActive=
R,t))},function(){return Y().timestamp})),_.S("div",{class:"ytwTimelineItemViewModelContentItems"},_.S(_.vK,{data:function(){return Y().contentItems}},{transcriptSegmentViewModel:function(X){return _.S(n9L,{data:X.data,
active:R})},
videoAttributesSectionViewModel:wqU})))},"Sd");var v9E=_.RT(function(D){var Y=D.data;D={};return _.S("timeline-chapter-view-model",{class:_.e7("ytwTimelineChapterViewModelHost")},_.S("div",{class:_.e7("ytwTimelineChapterViewModelTitle",(D.ytwTimelineChapterViewModelModern=_.f("enable_timeline_view_modern_transcript")||_.f("enable_timeline_view_modern_transcript_fe"),D))},function(){return Y().title}),_.S(_.vK,{data:function(){return Y().contents}},{timelineItemViewModel:function(R){return _.S($R1,{data:R.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(R){return _.S(wqU,{data:R.data})}}))},"Td");var o9V=_.RT(function(D){var Y=D.data;var R=_.dI("macro-markers-panel-item-view-model"),Z=_.Ax(_.oXi,function(){var X;return(X=Y().markersEngagementPanelSyncEntityKey)!=null?X:""}),t=function(){var X;
return((X=Z())==null?void 0:X.activeItemIndex)===Y().index};
D=_.F4(function(X){var M,W,z,I,F;return _.C(function(G){if(G.nextAddress==1)return X.stopPropagation(),_.KH(_.Um(X),R.value,["A".toString(),"BUTTON".toString()])?G.return():(M=_.HL(Y().onTap))?G.yield(_.jG(),2):G.return();W=G.yieldResult;I=(z=_.A(M,_.Od))==null?void 0:z.startTimeSeconds;I===void 0||(F=W)!=null&&F.seekTo(I,!0);_.V9(G)})});
return _.S("macro-markers-panel-item-view-model",{class:_.e7("ytwMacroMarkersPanelItemViewModelHost",{"is-active":t}),el:R,"on:click":D,tabindex:0},_.S(_.vK,{data:function(){var X;return(X=Y())==null?void 0:X.item}},{timelineChapterViewModel:function(X){return _.S(v9E,{data:X.data,
active:t})},
timelineItemViewModel:function(X){return _.S($R1,{data:X.data,active:t})},
videoAttributeViewModel:nu_}))},"Ud");
o9V.idomCompat=!0;_.at(o9V,"macro-markers-panel-item-view-model",{props:{data:_.cs}});_.at(wqU,"yt-video-attributes-section-view-model",{props:{data:_.cs}});var bzL=_.RT(function(D){var Y=function(){var R,Z,t;return(t=(R=D.data().leadingLogoAccessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)!=null?t:""};
return _.S("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.S(_.T,{cond:function(){return D.data().leadingLogo},
then:function(R){return _.S(_.Rt,{className:"ytwFantasySectionHeaderViewModelLogo",data:R,alt:Y})}}),_.S("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.S(_.y_,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return D.data().title}}),_.S(_.y_,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return D.data().subtitle}})),_.S(_.vK,{data:function(){return D.data().trailingButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Vd");var ydE=_.RT(function(D){var Y={};Y=_.e7("ytwFantasyTeamViewModelHost",(Y.ytwFantasyTeamViewModelCompact=function(){var t;return!((t=D.compact)==null||!t.call(D))},Y.ytwFantasyTeamViewModelUser=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},Y.ytwFantasyTeamViewModelOpponent=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},Y));
var R=function(){var t,X,M;return(M=(t=D.data().teamLogoAccessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label)!=null?M:""},Z=_.Ax(yKl,function(){return D.data().teamEntityKey});
return _.S("ytw-fantasy-team-view-model",{class:Y},_.S(_.T,{cond:function(){return D.data().teamLogo},
then:function(t){return _.S(_.Rt,{className:"ytwFantasyTeamViewModelLogo",data:t,alt:R})}}),_.S("div",{class:"ytwFantasyTeamViewModelMetadata"},_.S("div",{class:"ytwFantasyTeamViewModelHeader"},_.S(_.y_,{className:"ytwFantasyTeamViewModelScore",
text:function(){var t;return(t=Z())==null?void 0:t.score}}),_.S(_.nB,{icon:function(){var t;
return(t=Z())==null?void 0:t.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.S(_.y_,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var t;return(t=Z())==null?void 0:t.projectedScore}})),_.S(_.y_,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return D.data().primaryText}}),_.S(_.y_,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return D.data().secondaryText}}),_.S(_.y_,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return D.data().tertiaryText}})),_.S(_.y_,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var t;return(t=Z())==null?void 0:t.score}}))},"Wd");_.at(_.RT(function(D){return _.S("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.S("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.S(_.vK,{data:function(){return D.data().summaryHeader}},{fantasySectionHeaderViewModel:bzL})),_.S(_.vK,{data:function(){return D.data().userTeam}},{fantasyTeamViewModel:ydE}),_.S(_.vK,{data:function(){return D.data().opponentTeam}},{fantasyTeamViewModel:ydE}))},"Xd"),"fantasy-league-summary-view-model",{props:{data:_.cs}});var NFD=_.RT(function(D){var Y=_.YC(D,{shape:{},useCustomTabRenderable:!1}),R=Y.shape;Y=Y.useCustomTabRenderable;var Z=D.customTabRenderable,t=function(){return R().disabled},X=function(){return R().selected},M=function(){return R().title},W=function(){return R().icon},z=_.dI("yt-tab-shape");
D=_.F4(function(G){var V;if(!t()&&((V=R().aTagConfig)==null?0:V.onclick))R().aTagConfig.onclick(G);return!1});
var I=_.F4(function(G){if(G.key==="Enter"||G.key==="ArrowUp"||G.key==="ArrowDown")G.preventDefault(),z.value.click();return!1}),F={};
return _.S("yt-tab-shape",{class:_.e7("yt-tab-shape-wiz",function(){return R().className},(F["yt-tab-shape-wiz__tab--last-tab"]=function(){return R().isLastTab},F["yt-tab-shape-wiz--host-disabled"]=t,F["yt-tab-shape-wiz--host-clickable"]=!Z,F)),
role:Z?void 0:"tab","aria-selected":X!=null?X:!1,"aria-disabled":t,tabindex:Z?void 0:0,"on:click":D,"on:keydown":I,el:z,"tab-identifier":function(){return R().identifier},
"tab-title":M},_.S(_.T,{cond:Y,then:function(){return Z()},
else:function(){var G={},V={};return _.S(_.c_,null,_.S("div",{class:_.e7("yt-tab-shape-wiz__tab",(G["yt-tab-shape-wiz__tab--tab-selected"]=X,G))},_.S(_.T,{cond:W,then:function(e){return _.S(_.nB,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return e().iconType}})}}),M),_.S("div",{class:_.e7("yt-tab-shape-wiz__tab-bar",(V["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=X,V))}))}}))},"Yd");
NFD.idomCompat={callbacks:{customTabRenderable:!0}};_.JdE=_.RT(function(D){var Y=D.shape;D=_.a(_.ae(48,void 0,"r9IBlb"));var R=D.next().value,Z=D.next().value;D=_.a(_.ae(0,void 0,"Bd7rmd"));var t=D.next().value,X=D.next().value,M=function(){return Y().tabs},W=_.dI("yt-tab-group-shape"),z=function(){var I,F;
return(F=(I=M())==null?void 0:I.findIndex(function(G){return G.selected}))!=null?F:-1};
_.$s(function(){var I=W.value.querySelectorAll("yt-tab-shape"),F=z()>-1?I[z()]:void 0;_.yc.addJob(function(){Z((F==null?void 0:F.getBoundingClientRect().width)||0)},8,0)});
_.r2(function(){var I=z(),F=_.yc.addJob(function(){var G,V=((G=W.value)==null?void 0:G.querySelectorAll("yt-tab-shape"))||[],e;Z(((e=I>-1?V[I]:void 0)==null?void 0:e.getBoundingClientRect().width)||0);for(e=G=0;e<I;e++)G+=V[e].offsetWidth+24;_.JQ("HTML_DIR")==="rtl"&&(G=-G);X(G)},8,0);
_.w2(function(){_.yc.cancelJob(F)})},"EHixkc");
D={};return _.S("yt-tab-group-shape",{class:_.e7("yt-tab-group-shape-wiz",(D["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return Y().isOverflowHidden},D)),
el:W},_.S(_.T,{cond:M,then:function(I){return _.S(_.c_,null,_.S("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.S(_.G6,{each:I},function(F,G){return _.S(NFD,{shape:function(){return Object.assign({},F,{isLastTab:G()===I().length-1})},
customTabRenderable:F.customTabRenderable,useCustomTabRenderable:!!F.customTabRenderable})})),_.S(l3E,{width:R,
sliderOffset:t}))}}))},"Zd");
_.JdE.idomCompat=!0;var l3E=_.RT(function(D){var Y=_.DX(D.sliderOffset,0),R=D.width;return _.S("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Ap({width:function(){return R()+"px"},
transform:function(){return"translateX("+Y()+"px)"}})})},"$d");var k11=_.RT(function(D){var Y=function(){var X,M,W;return(W=(X=D.data().playerLogoAccessibility)==null?void 0:(M=X.accessibilityData)==null?void 0:M.label)!=null?W:""},R=_.Ax(NJS,function(){return D.data().playerEntityKey}),Z={};
Z=_.e7("ytwFantasyPlayerViewModelHost",(Z.ytwFantasyPlayerViewModelPlaying=function(){var X;return!((X=R())==null||!X.isPlayerPlaying)},Z.ytwFantasyPlayerViewModelOnField=function(){var X;
return((X=R())==null?void 0:X.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Z.ytwFantasyPlayerViewModelRedZone=function(){var X;
return((X=R())==null?void 0:X.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Z));
var t=function(){var X,M,W,z=((X=_.DH().resolve(_.cD(_.O4)))==null?0:X())?(M=D.data().playerLogoBackgroundColor)==null?void 0:M.darkTheme:(W=D.data().playerLogoBackgroundColor)==null?void 0:W.lightTheme;return z===void 0?"":_.xI(z)};
return _.S("ytw-fantasy-player-view-model",{class:Z},_.S(_.T,{cond:function(){return D.data().playerLogo},
then:function(X){return _.S("div",{class:"ytwFantasyPlayerViewModelLogo"},_.S("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.S(_.Rt,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Ap({"background-color":t}),data:X,alt:Y})),_.S("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.S(_.nB,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.S("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.S("div",{class:"ytwFantasyPlayerViewModelHeader"},_.S(_.y_,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var X;return(X=D.data())==null?void 0:X.playerNameText}}),_.S(_.y_,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var X;return(X=D.data())==null?void 0:X.playerDescriptionText}})),_.S("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.S(_.y_,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var X;return(X=R())==null?void 0:X.gamePeriodText}}),_.S(_.y_,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var X;return(X=D.data())==null?void 0:X.opponentTeamText}}),_.S(_.y_,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var X;return(X=R())==null?void 0:X.gameStatusText}}),_.S(_.y_,{className:_.e7("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var X;return(X=R())==null?void 0:X.playerStatusText}})),_.S("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.S(_.y_,{text:function(){var X;
return(X=R())==null?void 0:X.playerStatsText}}))),_.S(_.y_,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var X;return(X=R())==null?void 0:X.fantasyScore}}))},"ae");var UR4=_.RT(function(D){return _.S("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.S(_.T,{cond:function(){return D.data().players},
then:function(Y){return _.S(_.vK,{data:Y},{fantasyPlayerViewModel:k11})}}))},"be");var K6b=_.RT(function(D){var Y=_.a(_.fB(function(){var t;return(t=D.data().selectedTabIdentifierKey)!=null?t:""})),R=Y.next().value,Z=Y.next().value;
_.rf(function(){var t;(t=D.setSelectedTabSignal)==null||t.call(D,R)});
return _.S("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.S("div",{class:"ytTabbedViewModelTabGroup"},_.S(_.JdE,{shape:function(){var t=D.data(),X=[],M={tabs:X};if(!t.tabs)return M;t=_.a(t.tabs);for(var W=t.next(),z={};!W.done;z={tabViewModel:void 0},W=t.next())if(z.tabViewModel=_.A(W.value,Q8U),z.tabViewModel){var I=W=void 0;X.push({aTagConfig:{onclick:function(F){return function(){var G;Z((G=F.tabViewModel.tabIdentifier)!=null?G:"")}}(z)},
identifier:z.tabViewModel.tabIdentifier,selected:R()===z.tabViewModel.tabIdentifier,title:(I=(W=z.tabViewModel.title)==null?void 0:W.content)!=null?I:""})}return M}})),_.S(_.vK,{data:function(){var t,X=_.a((t=D.data().tabs)!=null?t:[]);
for(t=X.next();!t.done;t=X.next())if((t=_.A(t.value,Q8U))&&t.tabIdentifier===R())return t.content}},{fantasyRosterViewModel:UR4}))},"ce");_.at(_.RT(function(D){var Y=_.a(Fl9()),R=Y.next().value,Z=Y.next().value;return _.S("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.S(_.y_,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return D.data().title}}),_.S(_.T,{cond:function(){return D.data().tabbedViewModel},
then:function(t){return _.S(_.vK,{data:t},{tabbedViewModel:function(X){return _.S(K6b,{data:X.data,setSelectedTabSignal:Z})}})}}),_.S(_.T,{cond:function(){var t,X=(t=_.A(D.data().tabbedViewModel,BtU))==null?void 0:t.tabs;
t=_.A(X==null?void 0:X[0],Q8U);X=_.A(X==null?void 0:X[1],Q8U);var M=t==null?void 0:t.tabIdentifier;if(R()===M){var W,z;if(!((W=_.A(t==null?void 0:t.content,Ulz))==null?0:(z=W.players)==null?0:z.length))return D.data().noUserTeamPlayersText}else{var I,F;if(!((I=_.A(X==null?void 0:X.content,Ulz))==null?0:(F=I.players)==null?0:F.length))return D.data().noOpponentTeamPlayersText}},
then:function(t){return _.S(_.y_,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:t})}}))},"de"),"ytw-fantasy-matchup-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){return _.S("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.S(_.y_,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return D.data().title}}),_.S(_.T,{cond:function(){return D.data().matchupTeamPairs},
then:function(Y){return _.S(_.G6,{each:Y,keyBy:"INDEX"},function(R){return _.S("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.S(_.vK,{data:function(){return[R().firstTeam,R().secondTeam]}},{fantasyTeamViewModel:function(Z){return _.S(ydE,{data:Z.data,
compact:!0})}}))})}}))},"ee"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=function(){var t,X,M;return(M=(t=D.data().userLogoAccessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label)!=null?M:""},R=function(){var t,X,M;
return(M=(t=D.data().opponentLogoAccessibility)==null?void 0:(X=t.accessibilityData)==null?void 0:X.label)!=null?M:""},Z=_.Ax(bZy,function(){return D.data().entityKey});
return _.S("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.S("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.S(_.T,{cond:function(){return D.data().userLogo},
then:function(t){return _.S(_.Rt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:Y})}}),_.S("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.S(_.y_,{text:function(){return D.data().title}})),_.S(_.T,{cond:function(){return D.data().opponentLogo},
then:function(t){return _.S(_.Rt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:t,alt:R})}})),_.S("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.S("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.S(_.y_,{text:function(){var t;
return(t=Z())==null?void 0:t.userWinNumberLabel}})),_.S("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.S("div",{class:_.e7("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Ap({flex:function(){var t,X;return(X=(t=Z())==null?void 0:t.userWinNumber)!=null?X:50}})}),_.S("div",{class:_.e7("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Ap({flex:function(){var t,X;return(X=(t=Z())==null?void 0:t.opponentWinNumber)!=null?X:50}})})),_.S("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.S(_.y_,{text:function(){var t;
return(t=Z())==null?void 0:t.opponentWinNumberLabel}}))))},"fe"),"fantasy-win-probability-view-model",{props:{data:_.cs}});var hhE={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},L6Y=_.RT(function(D){return _.S(_.vK,{data:D.button},{buttonViewModel:function(Y){return _.S(_.TV,{data:Y.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ge"),mRz=_.RT(function(D){return _.S("ytd-backstage-locked-post-view-model",{class:_.e7("ytdBackstageLockedPostViewModelHost",D.className)},_.S("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.S("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.S(_.vK,
{data:function(){return D.data().authorAvatar}},{decoratedAvatarViewModel:_.kk})),_.S("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.S("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.S(_.y_,{text:function(){return D.data().authorText}})),_.S("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.S(_.y_,{text:function(){return D.data().publishedTimeText}}),_.S(_.vK,{data:function(){return D.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(Y){return _.S(Zsz,
{data:Y.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.S("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.S(_.y_,{text:function(){return D.data().contentText}})),_.S(_.ej,null,_.S(_.VL,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.S("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.S(_.Rt,{data:hhE,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.S(_.y_,{text:function(){return D.data().lockedText}}))}),_.S(_.VL,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.S("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.S("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.S(_.Rt,{data:hhE,
alt:""})),_.S(_.y_,{text:function(){return D.data().lockedText}}))})),_.S("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.S(L6Y,{button:function(){return D.data().likeButton}}),_.S("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().voteCountA11y}},_.S(_.y_,{text:function(){return D.data().voteCount}})),_.S(L6Y,{button:function(){return D.data().dislikeButton}}),_.S(L6Y,{button:function(){return D.data().commentButton}}),_.S("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().commentCountA11y}},_.S(_.y_,{text:function(){return D.data().commentCount}}))))},"he");
mRz.idomCompat=!0;_.at(mRz,"ytd-backstage-locked-post-view-model",{props:{data:_.cs,className:_.cs}});_.UD("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var BS=function(){var D=_.N.apply(this,arguments)||this;D.darkerPanels=_.f("web_watch_darker_panels");D.commentsHidePanelButton=!1;D.isWatchGrid=!1;D.continuationShowButton=!1;D.isSearch=!1;D.isConstrainedList=!1;D.isWatch=!1;D.eligibleToSwitchToGrid=!1;D.useBigThumbs=!1;D.notSticky=!1;D.epRestyle=!1;D.isCarouselInFeed=!0;D.topSpacingZero=!1;D.continuationIsInitialLoad=!0;D.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");
D.mastheadHeight=0;D.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};D.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return D};
_.n(BS,_.N);_.u=BS.prototype;_.u.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var Y;(Y=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||Y.forEach(function(R){R.containerType=D})}};
_.u.getItemsPath=function(){return"data.contents"};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.u.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]]"}},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",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",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",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:_.f("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.f("kevlar_low_priority_continuation")}}};
_.u.created=function(){};
_.u.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.u.handleIntersect=function(D){this.notSticky=D[0].intersectionRatio===1};
_.u.attached=function(){var D=this;document.addEventListener("scroll",_.jN(this,this.updateHeaderState));var Y;this.mastheadHeight=((Y=document.querySelector("ytd-masthead"))==null?void 0:Y.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(R){D.handleIntersect(R)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.u.detached=function(){document.removeEventListener("scroll",_.jN(this,this.updateHeaderState));var D;(D=this.intersectionObserver)==null||D.disconnect();var Y;(Y=this.resizeObserver)==null||Y.disconnect()};
_.u.updated=function(D){D.has("data")&&this.updateHeaderState()};
_.u.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Xzb(!this.notSticky))};
_.u.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var D=_.aU(this.hostElement).querySelector("ytd-comments-header-renderer");D&&(D.hidePanelButton=this.commentsHidePanelButton)}};
_.u.onRetrieveLocation=function(D,Y){this.containsComments()&&(this.firstCommentsLoaded=Y.hasComments=!0)};
_.u.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.u.onLoadReloadContinuation=function(D,Y){var R=this;D.stopPropagation();this.isReloading=!0;_.MX(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Z){var t=_.DH().resolve(_.Kn);Z=Y(Z);t.postData(Z).then(function(X){R.onReloadContinuationData(X)})}})};
_.u.onReloadContinuationData=function(D){if(D=this.get("response.continuationContents.itemSectionContinuation",D)||this.get("response.contents.itemSectionRenderer",D)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",D)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",D))this.set("data.contents",D.contents||D.results),D.header&&this.set("data.header",D.header),this.set("data.continuations",
D.continuations||[]);this.isReloading=!1};
_.u.computeContentsClass=function(D){return D?"reloading":""};
_.u.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.u.computeSectionIdentifier=function(D){return D==null?void 0:D.sectionIdentifier};
_.u.computeFitContainer=function(D){return(D==null?void 0:D.sectionIdentifier)==="youchat-item-section"};
_.u.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.f("kevlar_disable_comments_auto_load")};
_.u.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.u.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.u.computeHasDestinationShelfRenderer=function(D){var Y,R;return!!(D==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:R.destinationShelfRenderer)};
_.u.computeHasSectionGroupViewModel=function(D){var Y,R;return!!(D==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:R.sectionGroupViewModel)};
_.u.computeHasQrCodeRenderer=function(D){var Y,R;return!!(D==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:R.qrCodeRenderer)};
_.u.computeStaticCommentsHeader=function(D){return D&&this.containsComments()};
_.u.computeEpRestyle=function(D){return _.f("web_ep_restyling")&&D&&this.containsComments()};
_.u.computeIsContinuationCommentSection=function(D){return(D==null?void 0:D.targetId)==="shorts-engagement-panel-comments-section"||(D==null?void 0:D.targetId)==="comments-section"||(D==null?void 0:D.targetId)==="engagement-panel-comments-section"};
_.u.computeSuppressPaddingDisclaimer=function(){var D,Y,R,Z;return!!((D=this.data)==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:(Z=R.productListHeaderRenderer)==null?0:Z.suppressPaddingDisclaimer)};
_.u.computeHeaderStyle=function(D){switch(D==null?void 0:D.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.u.dataChanged=function(){this.firstCommentsLoaded=!1};
_.u.observeDataContentsLength=function(){var D,Y;((D=this.data)==null?0:(Y=D.contents)==null?0:Y.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.u.onYtDismissibleItemDismissedChange=function(D){this._setItemDismissed(D.type==="yt-dismissible-item-dismissed")};
_.u.triggerContinuations=function(){for(var D=_.aU(this.hostElement).querySelector("#continuations").children,Y=0;Y<D.length;Y++)D[Y].trigger()};
_.u.triggerInitialContinuations=function(){for(var D=_.aU(this.hostElement).querySelector("#continuations").children,Y=0;Y<D.length;Y++)D[Y].triggerIfNotPreviouslyTriggered()};
_.u.handleYtItemSectionContinuation=function(D,Y){var R;Y&&((R=this.data)==null?void 0:R.sectionIdentifier)!==Y||(this.set("data.continuations",[D]),this.triggerContinuations())};
_.u.handleYtItemSectionReplace=function(D,Y){var R;Y&&((R=this.data)==null?void 0:R.sectionIdentifier)!==Y||(this.set("data.contents",D),this.set("data.continuations",[]))};
_.u.computeUseHeightHack=function(D){return D&&!_.f("kevlar_disable_height_hack")};
_.u.computeTopSpacingZero=function(D){return D};
_.u.continuationShowButtonChanged=function(){var D=_.aU(this.hostElement).querySelector("ytd-continuation-item-renderer");D&&(D.showButton=this.continuationShowButton)};
_.u.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("data-changed",this.data))};
_.YF.Object.defineProperties(BS.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.f("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.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 D,Y,R;return!!((D=this.data)==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:R.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z,t,X,M;return!!((D=this.data)==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:(Z=R.shelfRenderer)==null?0:(t=Z.content)==null?0:(X=t.gridRenderer)==null?0:(M=X.targetId)==null?0:M.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!((D=this.data)==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:R.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!((D=this.data)==null?0:(Y=D.contents)==null?0:(R=Y[0])==null?0:R.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.XW("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.f("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.f("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
BS.prototype.dataChangedForBinding=BS.prototype.dataChangedForBinding;BS.prototype.continuationShowButtonChanged=BS.prototype.continuationShowButtonChanged;BS.prototype.onYtDismissibleItemDismissedChange=BS.prototype.onYtDismissibleItemDismissedChange;BS.prototype.observeDataContentsLength=BS.prototype.observeDataContentsLength;BS.prototype.dataChanged=BS.prototype.dataChanged;BS.prototype.onServiceRequestCompleted=BS.prototype.onServiceRequestCompleted;BS.prototype.onLoadReloadContinuation=BS.prototype.onLoadReloadContinuation;
BS.prototype.onRetrieveLocation=BS.prototype.onRetrieveLocation;BS.prototype.commentsHidePanelButtonChanged=BS.prototype.commentsHidePanelButtonChanged;BS.prototype.dispatchChipBarIsSticky=BS.prototype.dispatchChipBarIsSticky;BS.prototype.updateLockupContainerTypes=BS.prototype.updateLockupContainerTypes;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],BS.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],BS.prototype,"ytLazyListBehavior",void 0);_.q([_.v(_.Bz.YtNextContinuationBehavior),_.x("design:type",Object)],BS.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.v(_.Qw),_.x("design:type",Object)],BS.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],BS.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BS.prototype,"darkerPanels",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Boolean)],BS.prototype,"engagementPanel",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"commentsHidePanelButton",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"isWatchGrid",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"continuationShowButton",void 0);_.q([_.y({computed:"computeIsContinuationCommentSection(data)"}),_.x("design:type",Boolean)],BS.prototype,"continuationIsCommentsSection",void 0);
_.q([_.y({value:!0}),_.x("design:type",Boolean)],BS.prototype,"autoFill",void 0);_.q([_.y(),_.x("design:type",Boolean)],BS.prototype,"continuationDisablePrescanVisibility",void 0);_.q([_.y(),_.x("design:type",Boolean)],BS.prototype,"isReloading",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"isSearch",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"isConstrainedList",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"isWatch",void 0);
_.q([_.y(),_.x("design:type",Object)],BS.prototype,"eligibleToSwitchToGrid",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"useBigThumbs",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BS.prototype,"notSticky",void 0);_.q([_.y({selector:_.mI}),_.x("design:type",Object)],BS.prototype,"isGridViewEnabled",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Object)],BS.prototype,"epRestyle",void 0);_.q([_.b("isWatch"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BS.prototype,"hideShortsShelfHeader",null);_.q([_.b("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],BS.prototype,"thumbnailWidth",null);
_.q([_.b("isSearch","containerWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],BS.prototype,"thumbnailTargetWidth",null);_.q([_.b("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],BS.prototype,"sizing",null);_.q([_.b("isWatch","isGridViewEnabled","useBigThumbs","data"),_.y({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],BS.prototype,"lockupContainerType",null);
_.q([_.Gm("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],BS.prototype,"updateLockupContainerTypes",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],BS.prototype,"pageSubtype",void 0);_.q([_.y({computed:"computeContainerWidth()"}),_.x("design:type",Number)],BS.prototype,"containerWidth",void 0);_.q([_.y(),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BS.prototype,"isPlaylist",null);
_.q([_.y(),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BS.prototype,"isClipList",null);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"isCarouselInFeed",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BS.prototype,"isPlaylistVideoContainer",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BS.prototype,"isSearchFrictionPage",null);
_.q([_.y({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.x("design:type",Boolean)],BS.prototype,"useHeightHack",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.x("design:type",Object)],BS.prototype,"topSpacingZero",void 0);_.q([_.y({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.x("design:type",Boolean)],BS.prototype,"showButton",void 0);
_.q([_.y(),_.x("design:type",Boolean)],BS.prototype,"firstCommentsLoaded",void 0);_.q([_.y(),_.x("design:type",Object)],BS.prototype,"continuationIsInitialLoad",void 0);_.q([_.y({reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],BS.prototype,"itemDismissed",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.x("design:type",String)],BS.prototype,"sectionIdentifier",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.x("design:type",String)],BS.prototype,"fitContainer",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.x("design:type",Boolean)],BS.prototype,"hasDestinationShelfRenderer",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Boolean)],BS.prototype,"staticCommentsHeader",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BS.prototype,"enableSqueezebackPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BS.prototype,"enableAnchoredPanel",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.x("design:type",Boolean)],BS.prototype,"hasSectionGroupViewModel",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.x("design:type",Boolean)],BS.prototype,"hasQrCodeRenderer",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.x("design:type",Boolean)],BS.prototype,"suppressDisclaimerSeparator",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.x("design:type",String)],BS.prototype,"headerStyle",void 0);
_.q([_.b("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],BS.prototype,"lockupExperiments",null);_.q([_.b("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BS.prototype,"typographyBump",null);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],BS.prototype,"header",void 0);_.q([_.Gm("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"dispatchChipBarIsSticky",null);
_.q([_.Gm("commentsHidePanelButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"commentsHidePanelButtonChanged",null);_.q([_.Fv("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BS.prototype,"onRetrieveLocation",null);
_.q([_.Fv("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Function]),_.x("design:returntype")],BS.prototype,"onLoadReloadContinuation",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"onServiceRequestCompleted",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"dataChanged",null);
_.q([_.rd("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"observeDataContentsLength",null);_.q([_.Fv("yt-dismissible-item-dismissed"),_.Fv("yt-dismissible-item-undismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],BS.prototype,"onYtDismissibleItemDismissedChange",null);
_.q([_.Gm("continuationShowButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"continuationShowButtonChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"dataChangedForBinding",null);_.q([_.h({is:"ytd-item-section-renderer",disableElementRegistration:!0})],BS);
_.L(BS,"ytd-item-section-renderer",function(){if(cDL!==void 0)return cDL;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return cDL=D},{mode:1});var quV;var fJb=_.i0(_.fX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Hz1={},VA5=(Hz1[0]={title:_.tu(_.fX("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tu(_.fX("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Rk("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Hz1[1]={title:_.tu(_.fX("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Rk("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Hz1);_.UD("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var pW=function(){var D=_.N.apply(this,arguments)||this;D.allVideosCount=0;D.allPlaylistCount=0;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;D.areAllSmartDownloadsDeleted=!1;D.smartDownloadsCompleted=!1;return D};
_.n(pW,_.N);pW.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
pW.prototype.attached=function(){this.downloadsToRenderChanged()};
pW.prototype.detached=function(){this.set("renderableData",{})};
pW.prototype.downloadsToRenderChanged=function(){var D=_.Dl().getState().entities,Y=_.Nw(D),R=_.f("kevlar_playlist_dl_page_killswitch")?KOo(D):_.l0(D),Z=_.bNb(D),t=_.JG9(D),X=_.wL(Y);D=_.Ju(D);this.set("renderableData",AvU(R,Y,Z,t,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,X,D))};
pW.prototype.downloadsToRenderChanged=pW.prototype.downloadsToRenderChanged;_.q([_.v(_.mb),_.x("design:type",Object)],pW.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],pW.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],pW.prototype,"renderableData",void 0);_.q([_.y({selector:_.d8S}),_.x("design:type",Object)],pW.prototype,"allVideosCount",void 0);_.q([_.y({selector:srn}),_.x("design:type",Object)],pW.prototype,"allPlaylistCount",void 0);_.q([_.y({selector:_.Lh}),_.x("design:type",Object)],pW.prototype,"isOnline",void 0);_.q([_.y({selector:_.Zcr}),_.x("design:type",Object)],pW.prototype,"shouldRenderDownloadsBanner",void 0);
_.q([_.y({selector:_.uJr}),_.x("design:type",Object)],pW.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.q([_.y({selector:_.t8i}),_.x("design:type",Object)],pW.prototype,"hasOptedIntoSmartDownloads",void 0);_.q([_.y({selector:_.s8r}),_.x("design:type",Object)],pW.prototype,"areAllSmartDownloadsDeleted",void 0);_.q([_.y({selector:Xs$}),_.x("design:type",Object)],pW.prototype,"smartDownloadsCompleted",void 0);
_.q([_.rd("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pW.prototype,"downloadsToRenderChanged",null);_.q([_.h({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],pW);
_.L(pW,"ytd-offline-item-section-renderer",function(){if(quV!==void 0)return quV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return quV=D},
{mode:1});var xR7;var PwU;var Ef=function(){return _.N.apply(this,arguments)||this};
_.n(Ef,_.N);
Ef.prototype.onDataChanged=function(){if(this.JSC$16569_lastData){var D=this.getFilterClass(this.JSC$16569_lastData.status);D&&this.hostElement.classList.remove(D)}var Y;(D=this.getFilterClass((Y=this.data)==null?void 0:Y.status))&&this.hostElement.classList.add(D);D==="selected"?_.aU(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.aU(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");D==="disabled"?_.aU(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.aU(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16569_lastData=this.data};
Ef.prototype.getFilterClass=function(D){switch(D){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Ef.prototype.onDataChanged=Ef.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ef.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ef.prototype,"onDataChanged",null);_.q([_.h({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Ef);
_.L(Ef,"ytd-search-filter-renderer",function(){if(PwU!==void 0)return PwU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return PwU=D},{mode:_.zD("kevlar_poly_si_batch_j075")?1:2});var g4=function(){return _.N.apply(this,arguments)||this};
_.n(g4,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],g4.prototype,"data",void 0);_.q([_.h({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],g4);
_.L(g4,"ytd-search-filter-group-renderer",function(){if(xR7!==void 0)return xR7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xR7=D},{mode:_.zD("kevlar_poly_si_batch_j075")?1:2});var Qd7;var d4=function(){return _.N.apply(this,arguments)||this};
_.n(d4,_.N);d4.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.jR());this.isCollapsed=!this.isCollapsed};
d4.prototype.navigateToAboutTheseResultsPage=function(){var D=_.Ny("https://www.youtube.com/howyoutubeworks/product-features/search/");D?_.QB(window,D,"_blank"):_.hQ(Error("Rh"))};
d4.prototype.dataChanged=function(){this.isCollapsed=!0};
d4.prototype.computeShowBottomBorder=function(){var D,Y,R;return!!((D=this.data)==null?0:(Y=D.button)==null?0:Y.toggleButtonRenderer)||!((R=this.data)==null||!R.aboutTheseResultsButton)};
d4.prototype.dataChanged=d4.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],d4.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.x("design:type",Boolean)],d4.prototype,"showBottomBorder",void 0);_.q([_.y(),_.x("design:type",Boolean)],d4.prototype,"renderCollapsibleMenu",void 0);
_.q([_.y(),_.x("design:type",Boolean)],d4.prototype,"isCollapsed",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d4.prototype,"dataChanged",null);_.q([_.h({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],d4);
_.L(d4,"ytd-search-sub-menu-renderer",function(){if(Qd7!==void 0)return Qd7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Qd7=D},{mode:1});var BFL;var pqL=new _.R6("SECTION_LIST_RENDERER_TOKEN");var E9E;var ib=function(){return _.N.apply(this,arguments)||this};
_.n(ib,_.N);ib.prototype.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ib.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],ib.prototype,"headerStyle",void 0);_.q([_.h({is:"ytd-text-header-renderer",disableElementRegistration:!0})],ib);
_.L(ib,"ytd-text-header-renderer",function(){if(E9E!==void 0)return E9E;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return E9E=D},{mode:1});var g91;var Of=function(){return _.N.apply(this,arguments)||this};
_.n(Of,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Of.prototype,"data",void 0);_.q([_.h({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Of);
_.L(Of,"ytd-minor-moment-header-renderer",function(){if(g91!==void 0)return g91;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return g91=D},{mode:1});var dRV;var cS=function(){return _.N.apply(this,arguments)||this};
_.n(cS,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cS.prototype,"data",void 0);_.q([_.h({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],cS);
_.L(cS,"ytd-minor-moment-setting-alert-renderer",function(){if(dRV!==void 0)return dRV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dRV=D},{mode:1});var iz7;var Oz1;var D8=function(){var D=_.N.apply(this,arguments)||this;D.booleanSettingById=!1;D.smartDownloadsEnabledVE=_.TP(128287);D.smartDownloadsDisabledVE=_.TP(128286);D.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return D};
_.n(D8,_.N);_.u=D8.prototype;_.u.attachSmartDownloadsSettingVes=function(){var D;this.activeVeForLogging||((D=this.data)==null?void 0:D.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.jF(_.n8(),this.smartDownloadsEnabledVE),_.jF(_.n8(),this.smartDownloadsDisabledVE))};
_.u.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.MX(this.hostElement,"yt-settings-switch-ready")};
_.u.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.u.onSwitchChange=function(D){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(D=_.cG(D).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.f("kevlar_settings_switch_resolve_command_killswitch")?_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(D)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.u.handleUpdateSettingsSwitch=function(D){(D=_.A(D,RXz))&&this.data&&this.data.id===D.id&&this.set("data.enabled",!!D.enabled)};
_.u.onToggleSettingsSwitch=function(D,Y){this.data&&this.data.id===D&&this.set("data.enabled",Y!=null?Y:!this.data.enabled)};
_.u.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.tG.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.u.maybeLogSmartDownloadsSettingVisibility=function(){var D=_.K2(),Y;D&&((Y=this.data)==null?void 0:Y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.E7(D,[this.smartDownloadsEnabledVE]),_.gC(D,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.E7(D,[this.smartDownloadsDisabledVE]),_.gC(D,[this.smartDownloadsEnabledVE])))};
_.u.maybeLogSmartDownloadsSettingClick=function(){var D;((D=this.data)==null?void 0:D.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Fq(_.n8(),this.activeVeForLogging)};
_.u.updateDataEnabledFromBinding=function(D){this.set("data.enabled",D.detail.value)};
_.YF.Object.defineProperties(D8.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!D&&(D=this.ytRendererBehavior.getSimpleString(this.data.title));return D}}});
D8.prototype.dataChanged=D8.prototype.dataChanged;_.q([_.v(_.mb),_.x("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],D8.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],D8.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],D8.prototype,"data",void 0);_.q([_.y({selector:function(D,Y){if(Object.keys(D==null?void 0:D.entities).length)switch(Y){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return h4U(D.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.x("design:type",Object)],D8.prototype,"booleanSettingById",void 0);_.q([_.y(),_.x("design:type",kF)],D8.prototype,"activeVeForLogging",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],D8.prototype,"toggleAriaLabel",null);_.q([_.rd("data"),_.rd("booleanSettingById"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D8.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],D8);
_.L(D8,"ytd-settings-switch-renderer",function(){if(Oz1!==void 0)return Oz1;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Oz1=D},{mode:1});var Yf=function(){return _.N.apply(this,arguments)||this};
_.n(Yf,_.N);Yf.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}}}}};
_.YF.Object.defineProperties(Yf.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var D=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(D+=" remove-left-margin");this.data.extraBottomSpace&&(D+=" extra-bottom-space");return D}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yf.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Yf.prototype,"contentsClassName",null);_.q([_.h({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Yf);
_.L(Yf,"ytd-minor-moment-setting-section-renderer",function(){if(iz7!==void 0)return iz7;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return iz7=D},{mode:1});var cdU;var Rj=function(){return _.N.apply(this,arguments)||this};
_.n(Rj,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Rj.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Rj.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Rj);
_.L(Rj,"ytd-empty-product-details-renderer",function(){if(cdU!==void 0)return cdU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return cdU=D},{mode:1});var D24;var Y27;var Z8=function(){var D=_.N.apply(this,arguments)||this;D.expanded=!0;return D};
_.n(Z8,_.N);Z8.prototype.getBadgeRowClass=function(D,Y,R){for(var Z=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),t=Z.next();!t.done;t=Z.next())t.value.onShow();D=D.selected;return R?D!==-1?D===Y?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(D!==void 0?D:0)===Y?"badge-line":"badge-hidden"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Z8.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Z8.prototype,"expanded",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Z8);
_.L(Z8,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Y27!==void 0)return Y27;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Y27=D},{mode:1});var RTb;var ts=function(){var D=_.N.apply(this,arguments)||this;D.expanded=!0;return D};
_.n(ts,_.N);ts.prototype.getContainerClasses=function(D,Y){D=D?"expanded":"collapsed";Y&&(D+=" item");return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ts.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],ts.prototype,"expanded",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],ts);
_.L(ts,"ytd-sponsorships-perk-renderer",function(){if(RTb!==void 0)return RTb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return RTb=D},{mode:1});var ZPV;var se=function(){var D=_.N.apply(this,arguments)||this;D.expanded=!0;return D};
_.n(se,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],se.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],se.prototype,"expanded",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],se);
_.L(se,"ytd-sponsorships-perks-renderer",function(){if(ZPV!==void 0)return ZPV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ZPV=D},{mode:1});var XY=function(){var D=_.N.apply(this,arguments)||this;D.isCollapsed=!1;return D};
_.n(XY,_.N);XY.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
XY.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
XY.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var D;this.expandCollapseButton=_.A((D=this.data)==null?void 0:D.expandButton,_.qv)}else{var Y;this.expandCollapseButton=_.A((Y=this.data)==null?void 0:Y.collapseButton,_.qv)}};
XY.prototype.updateExpandCollapseButton=XY.prototype.updateExpandCollapseButton;XY.prototype.onDataChanged=XY.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],XY.prototype,"isCollapsed",void 0);_.q([_.y(),_.x("design:type",Object)],XY.prototype,"expandCollapseButton",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XY.prototype,"onDataChanged",null);_.q([_.rd("data","isCollapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XY.prototype,"updateExpandCollapseButton",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],XY);
_.L(XY,"ytd-sponsorships-expandable-perks-renderer",function(){if(D24!==void 0)return D24;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return D24=D},{mode:1});var tMb;var ut=function(){return _.N.apply(this,arguments)||this};
_.n(ut,_.N);ut.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ut.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ut.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],ut);
_.L(ut,"ytd-sponsorships-actionable-message-renderer",function(){if(tMb!==void 0)return tMb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return tMb=D},{mode:1});var sLE;var aj=function(){return _.N.apply(this,arguments)||this};
_.n(aj,_.N);_.u=aj.prototype;_.u.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.u.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.u.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.u.computeMessageContainerStyle=function(D){var Y=D.expandableItems?" style-clickable":"";return D.messageContainerStyle?D.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+Y:"style-unspecified"+Y};
_.u.isSinglePerk=function(D){return!!D.messageContainerStyle&&(D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.u.onExpandedChanged=function(){var D=this;if(this.expanded)for(var Y=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),R=Y.next();!R.done;R=Y.next())R.value.onShow();_.cy(this,function(){_.MX(D.hostElement,"yt-refit")})};
_.u.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
aj.prototype.onDataChanged=aj.prototype.onDataChanged;aj.prototype.onExpandedChanged=aj.prototype.onExpandedChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aj.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],aj.prototype,"expanded",void 0);
_.q([_.Gm("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aj.prototype,"onExpandedChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aj.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],aj);
_.L(aj,"ytd-sponsorships-expandable-message-renderer",function(){if(sLE!==void 0)return sLE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return sLE=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var X0L;var MT=function(){return _.N.apply(this,arguments)||this};
_.n(MT,_.N);MT.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"}}}}};
MT.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.A(this.data.endButton,_.qv).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
MT.prototype.onDataChanged=MT.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],MT.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MT.prototype,"onDataChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],MT);
_.L(MT,"ytd-sponsorships-heading-renderer",function(){if(X0L!==void 0)return X0L;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return X0L=D},{mode:1});var urV;var Cp=function(){return _.N.apply(this,arguments)||this};
_.n(Cp,_.N);_.q([_.y(),_.x("design:type",Object)],Cp.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Cp);
_.L(Cp,"ytd-sponsorships-links-renderer",function(){if(urV!==void 0)return urV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return urV=D},{mode:1});var aw7;var Wi=function(){return _.N.apply(this,arguments)||this};
_.n(Wi,_.N);_.u=Wi.prototype;_.u.onDataChanged=function(){if(this.data&&this.data.expandableItems){var D;(D=_.aU(this.hostElement).querySelector("tp-yt-paper-button"))==null||D.setAttribute("role","button")}else{var Y;(Y=_.aU(this.hostElement).querySelector("tp-yt-paper-button"))==null||Y.removeAttribute("role")}};
_.u.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.u.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.u.getTileClasses=function(D){return D?"tile expandable-tile":"tile"};
_.u.getButtonDisabled=function(D){return D?void 0:""};
Wi.prototype.onDataChanged=Wi.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Wi.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Wi.prototype,"expanded",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"onDataChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Wi);
_.L(Wi,"ytd-sponsorships-list-tile-renderer",function(){if(aw7!==void 0)return aw7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return aw7=D},{mode:1});var MMz;var Ccb;var z$=function(){return _.N.apply(this,arguments)||this};
_.n(z$,_.N);z$.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],z$.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],z$);
_.L(z$,"ytd-sponsorships-promotion-renderer",function(){if(Ccb!==void 0)return Ccb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Ccb=D},{mode:1});var Wj4;var S2=function(){return _.N.apply(this,arguments)||this};
_.n(S2,_.N);S2.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],S2.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],S2);
_.L(S2,"ytd-sponsorships-purchase-option-renderer",function(){if(Wj4!==void 0)return Wj4;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Wj4=D},{mode:1});var zTV;var S2E;var T_z=function(){return _.N.apply(this,arguments)||this};
_.n(T_z,_.N);_.q([_.y(),_.x("design:type",Object)],T_z.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],T_z);
_.L(T_z,"ytd-ypc-offer-promo-renderer",function(){if(S2E!==void 0)return S2E;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return S2E=D},{mode:1});var T$=function(){return _.N.apply(this,arguments)||this};
_.n(T$,_.N);_.u=T$.prototype;
_.u.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"}}}}};
_.u.expansionCTA=function(D,Y){return D&&(Y?D.collapseCallToAction:D.expansionCallToAction)};
_.u.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.u.expansionCallToActionTap=function(){var D=this;this.expanded=!this.expanded;_.cy(this,function(){_.MX(D.hostElement,"yt-refit")})};
_.u.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var D,Y=(D=this.data)==null?void 0:D.onVisible;Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.u.computeDisplayTitle=function(D){return!(!D||this.titledisplaystatus!=="show")};
_.u.computeDisplaySeparator=function(){return!1};
_.u.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
T$.prototype.onDataChanged=T$.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],T$.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],T$.prototype,"data",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],T$.prototype,"expanded",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],T$.prototype,"purchaseButtonClicked",void 0);_.q([_.y({reflectToAttribute:!0,value:"show"}),_.x("design:type",String)],T$.prototype,"titledisplaystatus",void 0);_.q([_.y({computed:"computeDisplayTitle(data.title)"}),_.x("design:type",Boolean)],T$.prototype,"displayTitle",void 0);
_.q([_.y({computed:"computeDisplaySeparator(data)"}),_.x("design:type",Boolean)],T$.prototype,"displaySeparator",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T$.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],T$);
_.L(T$,"ytd-sponsorships-tier-renderer",function(){if(zTV!==void 0)return zTV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return zTV=D},{mode:2});var j2=function(){return _.N.apply(this,arguments)||this};
_.n(j2,_.N);
j2.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],j2.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],j2);
_.L(j2,"ytd-sponsorships-management-renderer",function(){if(MMz!==void 0)return MMz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return MMz=D},{mode:1});var jLV;var Ij=function(){return _.N.apply(this,arguments)||this};
_.n(Ij,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ij.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Ij);
_.L(Ij,"ytd-open-in-native-app-view-model",function(){if(jLV!==void 0)return jLV;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jLV=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var IwU;var FjV;var Gd4=_.gY(["top-"]),VMU=_.gY(["bottom-"]),fwV=_.gY(["left-"]),eTb=_.gY(["right-"]),ALz={},ne7=function(D,Y,R){D.removeAttribute("top-"+R);D.removeAttribute("bottom-"+R);D.removeAttribute("left-"+R);D.removeAttribute("right-"+R);Y&&(Y.top&&_.ON([_.RI(Gd4)],D,"top-"+R,Y.top),Y.bottom&&_.ON([_.RI(VMU)],D,"bottom-"+R,Y.bottom),Y.left&&_.ON([_.RI(fwV)],D,"left-"+R,Y.left),Y.right&&_.ON([_.RI(eTb)],D,"right-"+R,Y.right))};
ALz.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(D){var Y,R=_.aU((Y=this.hostElement)!=null?Y:this),Z;Y=this.cardItemBoxBehaviorMarginTargetId&&R?R.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Z=this.hostElement)!=null?Z:this;ne7(Y,D,"margin")},
cardItemContainerPaddingChanged_:function(D){var Y,R=_.aU((Y=this.hostElement)!=null?Y:this),Z;Y=this.cardItemBoxBehaviorPaddingTargetId&&R?R.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Z=this.hostElement)!=null?Z:this;ne7(Y,D,"padding")}}];var FY={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-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",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 rLL;var w0E;var G$=function(){return _.N.apply(this,arguments)||this};
_.n(G$,_.N);G$.prototype.textColorChanged_=function(){this.hostElement.style.color=FY[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
G$.prototype.textColorChanged_=G$.prototype.textColorChanged_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.q([_.v(ALz.YtCardItemBoxBehavior),_.x("design:type",Object)],G$.prototype,"ytCardItemBoxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],G$.prototype,"data",void 0);_.q([_.Gm("data.textColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G$.prototype,"textColorChanged_",null);
_.q([_.Lr({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],G$);
_.L(G$,"yt-card-item-text-renderer",function(){if(w0E===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;rLL===void 0&&(rLL=document.createElement("template"));var Z=rLL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);w0E=D}D=w0E;return D},{mode:2});var $21;var veU;var VO=function(){return _.N.apply(this,arguments)||this};
_.n(VO,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],VO.prototype,"data",void 0);_.q([_.Lr({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],VO);
_.L(VO,"yt-card-item-badge-renderer",function(){if(veU===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;$21===void 0&&($21=document.createElement("template"));var Z=$21;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);veU=D}D=veU;return D},{mode:2});var oeL;var bP7;var fp=function(){return _.N.apply(this,arguments)||this};
_.n(fp,_.N);fp.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fp.prototype,"data",void 0);_.q([_.Lr({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],fp);
_.L(fp,"yt-card-item-text-collection-renderer",function(){if(bP7===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;oeL===void 0&&(oeL=document.createElement("template"));var Z=oeL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);bP7=D}D=bP7;return D},{mode:2});var yL_;var N_b;var e2=function(){return _.N.apply(this,arguments)||this};
_.n(e2,_.N);e2.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]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],e2.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Number)],e2.prototype,"iconSize",void 0);_.q([_.Lr({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],e2);
_.L(e2,"yt-card-item-text-with-button-renderer",function(){if(N_b===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;yL_===void 0&&(yL_=document.createElement("template"));var Z=yL_;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);N_b=D}D=N_b;return D},{mode:2});var As=function(){return _.N.apply(this,arguments)||this};
_.n(As,_.N);As.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],As.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],As.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],As);
_.L(As,"ytd-commerce-cart-summary-line-item-renderer",function(){if(FjV!==void 0)return FjV;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return FjV=D},{mode:1});_.UD("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var np=function(){var D=_.N.apply(this,arguments)||this;D.hidden=!1;return D};
_.n(np,_.N);_.u=np.prototype;_.u.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"}}}}};
_.u.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.u.updateSummary=function(){var D=this.commerceCartCheckoutButtonEntity,Y;if(((Y=this.data)==null?0:Y.cartButton)&&D.checkoutSummaryText){var R,Z=lE((R=this.data)==null?void 0:R.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",JR(D.checkoutSummaryText));if(D.checkoutDetailText){var t;R=lE((t=this.data)==null?void 0:t.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",JR(D.checkoutDetailText))}if(D.checkoutAdditionalMetadataText){var X;
t=lE((X=this.data)==null?void 0:X.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+t+".cardItemTextRenderer.text",JR(D.checkoutAdditionalMetadataText))}}else D.estimatedTotalPrice&&(X=lE((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",JR(D.estimatedTotalPrice)))};
_.u.updateIsHidden=function(){var D,Y=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;Y!==void 0&&(this.hidden=Y)};
_.u.updateCheckoutButton=function(){var D,Y=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isDisabled;Y!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",Y);var R;D=(R=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:R.innertubeCommand;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",D);var Z;R=(Z=this.commerceCartCheckoutButtonEntity)==null?void 0:Z.checkoutButtonText;R!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:R})};
np.prototype.entityChanged=np.prototype.entityChanged;_.q([_.v(_.mb),_.x("design:type",Object)],np.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],np.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],np.prototype,"fullWidth",void 0);_.q([_.y(),_.x("design:type",Object)],np.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],np.prototype,"compact",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],np.prototype,"hidden",void 0);
_.q([_.y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:UOS}),_.x("design:type",Object)],np.prototype,"commerceCartCheckoutButtonEntity",void 0);_.q([_.Gm("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],np.prototype,"entityChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],np);
_.L(np,"ytd-commerce-cart-checkout-button-renderer",function(){if(IwU!==void 0)return IwU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return IwU=D},{mode:2});var lw4;_.JLL={};
_.JLL.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",_.jN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.jN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(D){!this.tappableItemBehaviorTapEnabled||D.keyCode!==13&&D.keyCode!==32||D.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var D=this.data.onTap;D.ypcGetCartEndpoint?(_.zA(this.hostElement,[D]),this.tappableItemBehaviorTapEnabled=!1):D.ypcOffersEndpoint?_.zA(this.hostElement,[D]):_.Se(this.hostElement,[D],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(D){this.tappableItemBehaviorTapEnabled=!!D},
tappableItemBehaviorOnTapEnabledChanged_:function(){var D=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(D.setAttribute("tabIndex",0),D.setAttribute("role","button")):(D.removeAttribute("tabIndex"),D.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(D){D.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var kdD;var U2U;var rB=function(){return _.N.apply(this,arguments)||this};
_.n(rB,_.N);rB.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.KB("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.KB("sharingToggleButtonAndDefaultButton")}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rB.prototype,"data",void 0);_.q([_.Lr({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],rB);
_.L(rB,"yt-card-item-actions-renderer",function(){if(U2U===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;kdD===void 0&&(kdD=document.createElement("template"));var Z=kdD;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);U2U=D}D=U2U;return D},{mode:2});var KjU;var hT7;var LjD;var m2U;var q2z;var HPE;var wB=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return D};
_.n(wB,_.N);wB.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
wB.prototype.handleDarkModeToggledAction_=function(D){this.isDarkTheme_=D};
wB.prototype.computeThemeImage_=function(D,Y){if(!D||!D.imageLight)return!1;this.isCircular_=D.isCircular;D.imageWidth&&(this.hostElement.style.width=D.imageWidth+"px");D.imageHeight&&(this.hostElement.style.height=D.imageHeight+"px");D.borderWidth&&(this.image.style.borderWidth=D.borderWidth+"px",this.image.style.borderStyle="solid");D.borderColor&&(this.image.style.borderColor=_.xI(D.borderColor));return Y&&D.imageDark?D.imageDark:D.imageLight};
wB.prototype.computeThemeIcon_=function(D){var Y,R;if(!(D==null?0:(Y=D.themedIcon)==null?0:(R=Y.icon)==null?0:R.iconType))return!1;this.icon.style.color=FY[D.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(D.imageWidth||18)+"px";this.icon.style.height=(D.imageHeight||18)+"px";return _.IT(D.themedIcon.icon.iconType)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(ALz.YtCardItemBoxBehavior),_.x("design:type",Object)],wB.prototype,"ytCardItemBoxBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],wB.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wB.prototype,"data",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],wB.prototype,"fit",void 0);_.q([_.y(),_.x("design:type",Boolean)],wB.prototype,"isDarkTheme_",void 0);_.q([_.y({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.x("design:type",Object)],wB.prototype,"themeImage_",void 0);_.q([_.y({computed:"computeThemeIcon_(data)"}),_.x("design:type",Object)],wB.prototype,"themeIcon_",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],wB.prototype,"isCircular_",void 0);
_.q([_.fr("#image"),_.x("design:type",Object)],wB.prototype,"image",void 0);_.q([_.fr("#icon"),_.x("design:type",Object)],wB.prototype,"icon",void 0);_.q([_.Lr({is:"yt-themed-image-renderer",disableElementRegistration:!0})],wB);
_.L(wB,"yt-themed-image-renderer",function(){if(HPE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;q2z===void 0&&(q2z=document.createElement("template"));var Z=q2z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);HPE=D}D=HPE;return D},{mode:2});var $f=function(){return _.N.apply(this,arguments)||this};
_.n($f,_.N);$f.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"}}}}};
$f.prototype.computeImagePlacement_=function(D){return D||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$f.prototype,"data",void 0);_.q([_.y({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.x("design:type",String)],$f.prototype,"imagePlacement",void 0);
_.q([_.Lr({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],$f);
_.L($f,"yt-card-item-text-with-image-renderer",function(){if(m2U===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;LjD===void 0&&(LjD=document.createElement("template"));var Z=LjD;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);m2U=D}D=m2U;return D},{mode:2});var vi=function(){return _.N.apply(this,arguments)||this};
_.n(vi,_.N);vi.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"}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vi.prototype,"data",void 0);_.q([_.Lr({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],vi);
_.L(vi,"yt-card-item-error-renderer",function(){if(hT7===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;KjU===void 0&&(KjU=document.createElement("template"));var Z=KjU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);hT7=D}D=hT7;return D},{mode:2});var x2L;var Pcz;_.UD("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var oj=function(){return _.N.apply(this,arguments)||this};
_.n(oj,_.N);_.u=oj.prototype;
_.u.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"}}}}};
_.u.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.u.backgroundColorChanged_=function(){var D,Y=(D=this.data)==null?void 0:D.backgroundColor;D=FY[Y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.aU(this.hostElement).querySelector("#main-content").style.backgroundColor=D};
_.u.headerPromoBackgroundColorChanged_=function(){var D,Y=(D=this.data)==null?void 0:D.headerPromoBackgroundColor;D=FY[Y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.aU(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=D};
_.u.errorRendererVisibilityChanged_=function(){var D=this.isExpanded_,Y;this.isErrorRendererVisible_=!((Y=this.data)==null||!Y.errorRenderer)&&!D};
_.u.onYtToggleButton_=function(D,Y){this.isExpanded_=Y.toggled};
oj.prototype.onYtToggleButton_=oj.prototype.onYtToggleButton_;oj.prototype.errorRendererVisibilityChanged_=oj.prototype.errorRendererVisibilityChanged_;oj.prototype.headerPromoBackgroundColorChanged_=oj.prototype.headerPromoBackgroundColorChanged_;oj.prototype.backgroundColorChanged_=oj.prototype.backgroundColorChanged_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(ALz.YtCardItemBoxBehavior),_.x("design:type",Object)],oj.prototype,"ytCardItemBoxBehavior",void 0);_.q([_.v(_.JLL.YtTappableItemBehavior),_.x("design:type",Object)],oj.prototype,"ytTappableItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],oj.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],oj.prototype,"isExpanded_",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],oj.prototype,"isErrorRendererVisible_",void 0);_.q([_.Gm("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oj.prototype,"backgroundColorChanged_",null);_.q([_.Gm("data.headerPromoBackgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oj.prototype,"headerPromoBackgroundColorChanged_",null);
_.q([_.Gm("data.errorRenderer","isExpanded_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oj.prototype,"errorRendererVisibilityChanged_",null);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],oj.prototype,"onYtToggleButton_",null);_.q([_.Lr({is:"yt-card-item-renderer",disableElementRegistration:!0})],oj);
_.L(oj,"yt-card-item-renderer",function(){if(Pcz===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;x2L===void 0&&(x2L=document.createElement("template"));var Z=x2L;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Pcz=D}D=Pcz;return D},{mode:2});_.UD("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var bt=function(){var D=_.N.apply(this,arguments)||this;D.hidden=!1;return D};
_.n(bt,_.N);_.u=bt.prototype;_.u.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.u.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.u.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,Y=(D=this.commerceCartHeaderEntity)==null?void 0:D.isHidden;Y!==void 0&&(this.hidden=Y)}};
_.u.updateTitle=function(){var D=this.commerceCartHeaderEntity.isDisabled,Y,R,Z=(R=_.A((Y=this.data)==null?void 0:Y.item,VnU))==null?void 0:R.headingRenderer;Z&&(Y=lE(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Y+".0.cardItemTextRenderer.textColor",D?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.u.updateSummaryText=function(){var D=this.commerceCartHeaderEntity;if(this.compact){var Y,R,Z=(R=_.A((Y=this.data)==null?void 0:Y.item,VnU))==null?void 0:R.headingRenderer;Z&&(Y=lE(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Y+".1.cardItemTextRenderer.text",D.shortHeaderSummaryText?JR(D.shortHeaderSummaryText):D.headerSummaryText?JR(D.headerSummaryText):""))}else{var t;if(Y=(t=_.A((Z=this.data)==null?void 0:Z.item,VnU))==null?void 0:t.additionalInfoRenderer)Y=lE(Y,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Y+".text",D.headerSummaryText?JR(D.headerSummaryText):"")}};
_.u.updateCheckoutButton=function(){var D=this.commerceCartHeaderEntity,Y,R,Z=(R=_.A((Y=this.data)==null?void 0:Y.item,VnU))==null?void 0:R.additionalInfoRenderer;Y=lE(Z,"buttonRenderer");var t;R=(t=this.commerceCartHeaderEntity)==null?void 0:t.isButtonDisabled;var X;t=(X=this.commerceCartHeaderEntity)==null?void 0:X.isButtonHidden;R!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Y+".buttonRenderer.isDisabled",R);t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
t);var M;D=(M=D.checkoutButtonCommand)==null?void 0:M.innertubeCommand;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Y+".buttonRenderer.command",D)};
bt.prototype.entityChanged=bt.prototype.entityChanged;_.q([_.v(_.mb),_.x("design:type",Object)],bt.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bt.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bt.prototype,"compact",void 0);_.q([_.y({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(D,Y){return _.jC(D.entities,"commerceCartHeaderEntity",Y)}}),
_.x("design:type",Object)],bt.prototype,"commerceCartHeaderEntity",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],bt.prototype,"hidden",void 0);_.q([_.Gm("commerceCartHeaderEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bt.prototype,"entityChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],bt);
_.L(bt,"ytd-commerce-cart-header-renderer",function(){if(lw4!==void 0)return lw4;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return lw4=D},{mode:1});var QL1;var B_z=_.eU(function(D,Y){var R;return(R=D.onChangeCallback)==null?void 0:R.call(D,Y)},1E3),p0E=_.RT(function(D){var Y=D.data;
var R=D.iconMinus;D=D.iconPlus;var Z=function(){return!!Y().disabled},t=_.a(_.ae(0,void 0,"r56zNb")),X=t.next().value,M=t.next().value;
t={};t=_.e7("yt-spec-quantity-incrementer-shape__icon",(t["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return Z()||X()===(Y().onRemoveCommand?0:1)},t));
var W={};W=_.e7("yt-spec-quantity-incrementer-shape__icon",(W["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return X()>=Y().maxValue||Z()},W));
var z={};z=_.e7("yt-spec-quantity-incrementer-shape__text",(z["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return X()>Y().maxValue},z["yt-spec-quantity-incrementer-shape__text--text-disabled"]=Z,z));
var I=_.F4(function(){if(X()===1){var G,V;(V=(G=Y()).onRemoveCommand)==null||V.call(G)}G=X()>Y().maxValue?Y().maxValue:X()-1;M(G);B_z(Y(),G);return!1}),F=_.F4(function(){if(X()===Y().maxValue)return!1;
var G=X()+1;M(G);B_z(Y(),G);return!1});
_.rf(function(){M(Y().value)});
return _.S("quantity-incrementer-shape",null,_.S("div",{class:"yt-spec-quantity-incrementer-shape"},_.S("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return X()===(Y().onRemoveCommand?0:1)||Z()},
"aria-label":function(){return X()!==1?Y().minusLabel:Y().minimumReachedLabel},
"on:click":I},_.S(_.CO,{model:{circular:!0}}),_.S("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.S("div",{class:t},R()))),_.S("div",{class:z},X),_.S("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return X()>=Y().maxValue||Z()},
"aria-label":function(){return X()!==Y().maxValue?Y().plusLabel:Y().maximumReachedLabel},
"on:click":F},_.S(_.CO,{model:{circular:!0}}),_.S("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.S("div",{class:W},D())))))},"ie");_.at(_.RT(function(D){function Y(){R().onRemoveCommand&&_.BL(R().onRemoveCommand)}
var R=D.data;var Z=_.Ax(zLo,function(){return R().quantityIncrementerEntityKey});
return _.S("yt-quantity-incrementer-view-model",null,_.S(p0E,{data:function(){var t=R(),X;var M=Z()?!((X=Z())==null||!X.disabled):!1;var W;X=Z()?(W=Z())==null?void 0:W.quantity:R().quantity;return wnn(t,M,Y,X)},
iconMinus:function(){return _.S(_.nB,{icon:"BAR_HORIZONTAL",className:_.kc("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.S(_.nB,{icon:"ADD",className:_.kc("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"je"),"yt-quantity-incrementer-view-model",{props:{data:_.cs}});var yO=function(){var D=_.N.apply(this,arguments)||this;D.compact=!1;D.hasQuantityIncrementer=!1;return D};
_.n(yO,_.N);yO.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"}}}};
yO.prototype.computeHasQuantityIncrementer=function(){var D;return!!_.A((D=this.data)==null?void 0:D.picker,ntE)};
yO.prototype.onLabelClick=function(){var D;(D=this.dropdownEl)==null||D.open()};
_.q([_.fr("ytd-dropdown-renderer"),_.x("design:type",Object)],yO.prototype,"dropdownEl",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yO.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],yO.prototype,"quantityColor",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],yO.prototype,"compact",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.x("design:type",Object)],yO.prototype,"hasQuantityIncrementer",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],yO);
_.L(yO,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(QL1!==void 0)return QL1;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return QL1=D},{mode:1});var Ee1;var geb;var NT=function(){return _.N.apply(this,arguments)||this};
_.n(NT,_.N);NT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
NT.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
NT.prototype.updateTitle=function(){var D=this.disabledCartItemEntity;D.disableActionName&&this.set("data.title",JR(D.disableActionName))};
NT.prototype.updateButton=function(){var D,Y=(D=this.disabledCartItemEntity.undoCommand)==null?void 0:D.innertubeCommand;Y!==void 0&&(this.set("data.actionButton.buttonRenderer.command",Y),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
NT.prototype.entityChanged=NT.prototype.entityChanged;_.q([_.v(_.mb),_.x("design:type",Object)],NT.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(D,Y){return _.jC(D.entities,"disabledCartItemEntity",Y)}}),
_.x("design:type",Object)],NT.prototype,"disabledCartItemEntity",void 0);_.q([_.y(),_.x("design:type",Object)],NT.prototype,"data",void 0);_.q([_.Gm("disabledCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NT.prototype,"entityChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],NT);
_.L(NT,"ytd-disabled-cart-item-renderer",function(){if(geb!==void 0)return geb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return geb=D},{mode:1});_.UD("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var lt=function(){var D=_.N.apply(this,arguments)||this;D.compact=!1;D.hidden=!1;D.errorHidden=!1;D.noOnTap=!1;return D};
_.n(lt,_.N);_.u=lt.prototype;
_.u.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"}}}};
_.u.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.u.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var D=this.firstButtonElement;D.alignByText=!0;D.iconAlignByText=!0}};
_.u.computeNoOnTap=function(D){return!D};
_.u.updateQuantityColor=function(){if(this.pickerElement){var D,Y=(D=this.commerceCartItemEntity)==null?void 0:D.quantityColor;this.pickerElement.quantityColor=Y}};
_.u.updateTotalPriceColor=function(){var D,Y=(D=this.commerceCartItemEntity)==null?void 0:D.totalPriceColor;if(Y){var R;D=_.A((R=this.data)==null?void 0:R.quantityPicker,euE);if(R=_.A(D==null?void 0:D.price,fbL))R.textColor=Y}};
_.u.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,Y=(D=this.commerceCartItemEntity)==null?void 0:D.isHidden;Y!==void 0&&(this.hidden=Y)}};
_.u.updateHideErrorMessage=function(){var D,Y=(D=this.commerceCartItemEntity)==null?void 0:D.hideErrorMessage;Y!==void 0&&(this.errorHidden=Y)};
_.u.updateQuantity=function(){var D=this,Y,R=(Y=this.commerceCartItemEntity)==null?void 0:Y.quantity,Z;Y=(Z=this.commerceCartItemEntity)==null?void 0:Z.totalPrice;if(R){this.updateTotalPriceColor();this.updateQuantityColor();var t;Z=_.A((t=this.data)==null?void 0:t.quantityPicker,euE);if(t=_.A(Z==null?void 0:Z.price,fbL))t.text=Y?{simpleText:Y.content}:void 0;if(Y=_.A(Z==null?void 0:Z.picker,ntE))Y.quantity=R;var X;if(t=(X=_.A(Z==null?void 0:Z.picker,rhY))==null?void 0:X.entries){X=!1;Y=void 0;t=
_.a(t);for(Z=t.next();!Z.done;Z=t.next())Z=Z.value,Z.dropdownItemRenderer&&(Y||(Y=Z.dropdownItemRenderer),Z.dropdownItemRenderer.isSelected=!1,R===Z.dropdownItemRenderer.int32Value&&(X=!0,Z.dropdownItemRenderer.isSelected=!0));!X&&Y&&(Y.isSelected=!0)}_.cy(this,function(){var M;D.set("data.quantityPicker",_.y7.unsafeClone((M=D.data)==null?void 0:M.quantityPicker))})}};
lt.prototype.onYtRendererstamperFinished=lt.prototype.onYtRendererstamperFinished;lt.prototype.entityChanged=lt.prototype.entityChanged;_.q([_.y(),_.x("design:type",Object)],lt.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lt.prototype,"compact",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],lt.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(D,Y){return _.jC(D.entities,"commerceCartItemEntity",Y)}}),
_.x("design:type",Object)],lt.prototype,"commerceCartItemEntity",void 0);_.q([_.y(),_.x("design:type",Object)],lt.prototype,"quantityPicker",void 0);_.q([_.y(),_.x("design:type",Object)],lt.prototype,"compactQuantityPicker",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lt.prototype,"hidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lt.prototype,"errorHidden",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.x("design:type",Object)],lt.prototype,"noOnTap",void 0);_.q([_.fr("ytd-commerce-cart-item-quantity-picker-renderer"),_.x("design:type",Object)],lt.prototype,"pickerElement",void 0);_.q([_.fr("yt-button-renderer"),_.x("design:type",Element)],lt.prototype,"firstButtonElement",void 0);
_.q([_.Gm("commerceCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lt.prototype,"entityChanged",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lt.prototype,"onYtRendererstamperFinished",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],lt);
_.L(lt,"ytd-commerce-cart-item-renderer",function(){if(Ee1!==void 0)return Ee1;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Ee1=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var d2b;var iP7;var Js=function(){return _.N.apply(this,arguments)||this};
_.n(Js,_.N);Js.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}}}}}};
Js.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Js.prototype.updateCheckoutLineItems=function(){var D,Y=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.checkoutLineItems;Y&&(D=Y.map(function(R){a:{var Z=R.price,t=R.description;switch(R.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":R={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:JR(t),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:JR(Z),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:R={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:JR(t),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:JR(Z),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 R}),this.set("data.summaryLineItems",D))};
Js.prototype.updateIsHidden=function(){var D,Y=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;Y!==void 0&&(this.hostElement.hidden=Y)};
Js.prototype.entityChanged=Js.prototype.entityChanged;_.q([_.v(_.mb),_.x("design:type",Object)],Js.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Js.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Js.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:UOS}),_.x("design:type",Object)],Js.prototype,"commerceCartCheckoutButtonEntity",void 0);_.q([_.Gm("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Js.prototype,"entityChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Js);
_.L(Js,"ytd-commerce-cart-summary-renderer",function(){if(iP7!==void 0)return iP7;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return iP7=D},{mode:1});var OPE={};OPE.InjectBehavior=[sm9.InjectBehavior];var cLU;var DhU;var kf=function(){return _.N.apply(this,arguments)||this};
_.n(kf,_.N);
kf.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:_.KB("menuRenderer")}}};
kf.prototype.onMenuTap=function(D){D.stopPropagation()};
_.YF.Object.defineProperties(kf.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 D,Y;return!(((D=this.data)==null||!D.sectionHeading)&&((Y=this.data)==null?void 0:Y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!(((D=this.data)==null||!D.image)&&((Y=this.data)==null?void 0:Y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!(((D=this.data)==null||!D.menu)&&((Y=this.data)==null?void 0:Y.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.JLL.YtTappableItemBehavior),_.x("design:type",Object)],kf.prototype,"ytTappableItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kf.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.accessibilityData"),_.x("design:type",String),_.x("design:paramtypes",[])],kf.prototype,"ariaLabel",null);_.q([_.b("data.sectionHeading","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kf.prototype,"sectionHeadingVisible",null);_.q([_.b("data.image","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kf.prototype,"imageVisible",null);
_.q([_.b("data.menu","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kf.prototype,"menuVisible",null);_.q([_.Lr({is:"yt-activity-item-renderer",disableElementRegistration:!0})],kf);
_.L(kf,"yt-activity-item-renderer",function(){if(DhU===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;cLU===void 0&&(cLU=document.createElement("template"));var Z=cLU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);DhU=D}D=DhU;return D},{mode:2});var YOU;var RCD;var ZRU;var tWL;var Ue=function(){return _.N.apply(this,arguments)||this};
_.n(Ue,_.N);
Ue.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"}}}}};
Ue.prototype.backgroundColorChanged_=function(){var D,Y=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=FY[Y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Ue.prototype.backgroundColorChanged_=Ue.prototype.backgroundColorChanged_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ue.prototype,"data",void 0);
_.q([_.Gm("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ue.prototype,"backgroundColorChanged_",null);_.q([_.Lr({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Ue);
_.L(Ue,"yt-offer-item-upsell-renderer",function(){if(tWL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;ZRU===void 0&&(ZRU=document.createElement("template"));var Z=ZRU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);tWL=D}D=tWL;return D},{mode:2});_.UD("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Kp=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};D.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return D};
_.n(Kp,_.N);_.u=Kp.prototype;
_.u.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:_.KB("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.u.computeContainerStyle_=function(D){return D};
_.u.computeContainerIsHidden_=function(D){return D&&!!D.isHidden};
_.u.computeShowSpinner_=function(D,Y){return D&&Y==="in-progress"};
_.u.computeShowMoreContentsButton_=function(D,Y,R,Z,t){return!(!(Z&&Z.length||t&&t.length&&R)||!D||Y)};
_.u.onToggleButton_=function(D){var Y=this;D.stopPropagation();this.isExpanded_=D.detail&&D.detail.toggled;var R,Z;this.isExpanded_&&!this.data.continuationSection.length&&((R=this.data)==null?0:(Z=R.continuation)==null?0:Z.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.MX(this.hostElement,"yt-load-next-continuation",function(t){return Y.getContinuationUrl_(Y.data.continuation.onClickContinuationData,t)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.zA(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.u.onShowMoreContentsButtonClicked_=function(D){var Y=this;D.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.MX(this.hostElement,"yt-load-next-continuation",function(R){return Y.getContinuationUrl_(Y.data.continuations[0].nextContinuationData,R)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.zA(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.u.getContinuationUrl_=function(D,Y){var R=D.continuation;D=D.clickTrackingParams;var Z=_.K2();D&&Z&&_.dC(Z,_.oT(D));return _.pb(Y,{continuation:R})};
_.u.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var D=_.aU(this.hostElement).querySelector("#continuation-section");D&&(D=D.querySelectorAll("ytmusic-item-section-renderer"))&&D.forEach(function(Y){return Y.classList.add("memberships-and-purchases")})};
_.u.dataChanged_=function(){var D;this.isExpanded_=!((D=this.data)==null||!D.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.u.updateCardOnClickCommand_=function(D){D=_.A(D,W$V);var Y,R;this.data&&((Y=this.data)==null?0:Y.targetId)&&D&&D.targetId===((R=this.data)==null?void 0:R.targetId)&&D.onClickCommand&&(this.data.onClickCommand=D.onClickCommand,this.isOnClickCommand_=!0)};
_.u.backgroundColorChanged_=function(){var D,Y=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=FY[Y||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Kp.prototype.backgroundColorChanged_=Kp.prototype.backgroundColorChanged_;Kp.prototype.dataChanged_=Kp.prototype.dataChanged_;Kp.prototype.nextContinuationDataUpdated_=Kp.prototype.nextContinuationDataUpdated_;Kp.prototype.onToggleButton_=Kp.prototype.onToggleButton_;_.q([_.v(_.Qw),_.x("design:type",Object)],Kp.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Kp.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bz.YtNextContinuationBehavior),_.x("design:type",Object)],Kp.prototype,"ytNextContinuationBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.q([_.v(OPE.InjectBehavior),_.x("design:type",Object)],Kp.prototype,"injectBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Kp.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Kp.prototype,"compact",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Kp.prototype,"isExpanded_",void 0);_.q([_.y({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.x("design:type",String)],Kp.prototype,"containerStyle_",void 0);_.q([_.y({value:"not-started"}),_.x("design:type",String)],Kp.prototype,"continuationStatus_",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.x("design:type",Boolean)],Kp.prototype,"showSpinner_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Kp.prototype,"isOnClickCommand_",void 0);_.q([_.y({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.x("design:type",Boolean)],Kp.prototype,"showMoreContentsButton_",void 0);
_.q([_.y({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(D,Y){return!Y||D.entities?null:_.jC(D.entities,"cardItemContainerEntity",Y)}}),
_.x("design:type",Object)],Kp.prototype,"cardItemContainerEntity_",void 0);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Kp.prototype,"onToggleButton_",null);_.q([_.Fv("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kp.prototype,"nextContinuationDataUpdated_",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kp.prototype,"dataChanged_",null);_.q([_.Gm("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kp.prototype,"backgroundColorChanged_",null);_.q([_.Lr({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Kp);
_.L(Kp,"yt-card-item-container-renderer",function(){if(RCD===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;YOU===void 0&&(YOU=document.createElement("template"));var Z=YOU;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);RCD=D}D=RCD;return D},{mode:2});var hs=function(){return _.N.apply(this,arguments)||this};
_.n(hs,_.N);hs.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"}}}};
hs.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
hs.prototype.computeLoadingHidden=function(){var D;return!((D=this.commerceCartPageStateEntity)==null?0:D.cartActionInProgress)};
hs.prototype.updateNotification=function(){var D,Y=(D=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:D.summaryText;Y&&this.set("data.cartNotification",JR(Y))};
hs.prototype.notificationEntityChanged=hs.prototype.notificationEntityChanged;_.q([_.v(_.mb),_.x("design:type",Object)],hs.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],hs.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],hs.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(D,Y){return _.jC(D.entities,"commerceCartExpandableNotificationEntity",Y)}}),
_.x("design:type",Object)],hs.prototype,"commerceCartExpandableNotificationEntity",void 0);_.q([_.y({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(D,Y){return _.jC(D.entities,"commerceCartPageStateEntity",Y)}}),
_.x("design:type",Object)],hs.prototype,"commerceCartPageStateEntity",void 0);_.q([_.fr("#spinner"),_.x("design:type",HTMLElement)],hs.prototype,"spinner",void 0);_.q([_.Gm("commerceCartExpandableNotificationEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hs.prototype,"notificationEntityChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],hs);
_.L(hs,"ytd-commerce-cart-renderer",function(){if(d2b!==void 0)return d2b;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return d2b=D},{mode:1});var swU;var Lp=function(){var D=_.N.apply(this,arguments)||this;D.bigImage=!1;return D};
_.n(Lp,_.N);_.YF.Object.defineProperties(Lp.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.placeholderImageUrl}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Lp.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Lp.prototype,"bigImage",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Lp.prototype,"placeholderImageUrl",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Lp);
_.L(Lp,"ytd-empty-product-shelf-renderer",function(){if(swU!==void 0)return swU;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return swU=D},{mode:1});var XYb;var mF=function(){var D=_.N.apply(this,arguments)||this;D.itemStyle="link-item";D.watchMetadataRefresh=!1;D.skinnyMode=!1;D.metaPanel=!1;D.inStructuredDescription=!1;D.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};D.updateOnResizeDebouncer=null;return D};
_.n(mF,_.N);_.u=mF.prototype;_.u.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.u.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"}}}}};
_.u.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.u.attachVEs=function(D){D.trackingParams&&_.n8().graftServerVe(D.trackingParams)};
_.u.handleUpdateMerchShelfAction=function(D){var Y=this,R=_.A(D.updateMerchandiseShelfAction.merchandiseShelf,_.QhL);R&&(R.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){Y.attachVEs(R);Y.data=R},Number(R.renderDelayMs))):(this.attachVEs(R),this.data=R))};
_.u.updateOnResize=function(){if(this.JSC$16737_scrollContainer!==void 0&&this.JSC$16737_scrollContainer.clientWidth!==0&&this.items!==void 0){var D=this.JSC$16737_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_();var Y;switch((Y=this.data)==null?void 0:Y.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var R,
Z;((R=this.data)==null?void 0:(Z=R.items)==null?void 0:Z.length)===1?this.itemStyle="cta-item":this.itemStyle=D>=740?"large-item":"small-item"}}};
_.u.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.CD(this.updateOnResizeDebouncer,_.OF.after(100),this.updateOnResize)};
mF.prototype.debouncedUpdateOnResize=mF.prototype.debouncedUpdateOnResize;mF.prototype.dataChanged=mF.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],mF.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mF.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mF.prototype,"itemStyle",void 0);_.q([_.y({value:6}),_.x("design:type",Number)],mF.prototype,"initialCount",void 0);
_.q([_.y({value:"data.items"}),_.x("design:type",String)],mF.prototype,"itemsPath",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mF.prototype,"watchMetadataRefresh",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mF.prototype,"skinnyMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mF.prototype,"metaPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mF.prototype,"inStructuredDescription",void 0);
_.q([_.fr("#items"),_.x("design:type",HTMLDivElement)],mF.prototype,"items",void 0);_.q([_.fr("#scroll-container"),_.x("design:type",HTMLDivElement)],mF.prototype,"JSC$16737_scrollContainer",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mF.prototype,"dataChanged",null);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mF.prototype,"debouncedUpdateOnResize",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],mF);
_.L(mF,"ytd-merch-shelf-renderer",function(){if(XYb!==void 0)return XYb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return XYb=D},{mode:2});var uzU;var qT=function(){var D=_.N.apply(this,arguments)||this;D.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 D};
_.n(qT,_.N);_.u=qT.prototype;
_.u.addBackstagePostAction=function(D){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(D=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",D))&&(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:D}):this.set("data.contents",[{backstagePostThreadRenderer:D}]))};
_.u.addBackstageCommentAction=function(D){var Y=this.get("addBackstageCommentAction.parentId",D);D=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",D);if(Y&&D){Y=this.postIdToIndices(Y);for(var R=0;R<Y.length;R++){var Z=Y[R];if(Z<0)break;Z="data.contents."+Z+".backstagePostThreadRenderer.comments";this.get(Z)&&(this.get(Z+".backstageCommentsRenderer.contents")&&this.push(Z+".backstageCommentsRenderer.contents",{commentThreadRenderer:D}),this.get(Z+".backstageCommentsRenderer.teaserContents")?
this.push(Z+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:D}):this.set(Z+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:D}]))}}};
_.u.addBackstageReplyAction=function(D){var Y=this.get("addBackstageReplyAction.parentId",D);D=this.get("addBackstageReplyAction.renderer.commentRenderer",D);Y&&D&&this.setCreatorReply(Y,D)};
_.u.banAuthorAction=function(D){var Y=this.get("banAuthorAction.commentId",D);Y&&(D=this.get("banAuthorAction.parentCommentId",D)||this.getParentPostId(Y),this.removeFromStream(Y,D))};
_.u.hideReportedCommentAction=function(D){var Y=this.get("hideReportedCommentAction.commentId",D);Y&&((D=this.get("hideReportedCommentAction.parentCommentId",D))||(D=this.getParentPostId(Y)),this.removeFromStream(Y,D))};
_.u.replaceBackstageCommentAction=function(D){var Y=this.get("replaceBackstageCommentAction.commentId",D),R=this.get("replaceBackstageCommentAction.parentId",D);D=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",D);if(Y&&R&&D){R=this.postIdToIndices(R);for(var Z=0;Z<R.length;Z++){var t=R[Z];if(t<0)break;var X=this.commentIdToIndex(Y,t,!1);if(X>=0){var M=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+X+".commentThreadRenderer.replies.commentRepliesRenderer");
M&&(D.replies={commentRepliesRenderer:M});this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",X,1,{commentThreadRenderer:D})}X=this.commentIdToIndex(Y,t,!0);if(X>=0){if(M=this.get("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(X+".commentThreadRenderer.replies.commentRepliesRenderer")))D.replies={commentRepliesRenderer:M};this.splice("data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
X,1,{commentThreadRenderer:D})}}}};
_.u.replaceBackstagePostAction=function(D){var Y=this.get("replaceBackstagePostAction.itemId",D);if(Y){Y=this.postIdToIndices(Y);for(var R=0;R<Y.length;R++){var Z=Y[R];if(Z<0)break;var t=this.getPostRendererType(Z),X=this.get("replaceBackstagePostAction.renderer."+t,D);if(!X&&t!=="sharedPostRenderer")break;var M=!1;X||(M=!0,X=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",D));if(!X)break;var W={};M?(_.U4(W,ktD,X),this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
W)):(_.U4(W,new _.Dv(t),X),this.set("data.contents."+Z+".backstagePostThreadRenderer.post",W))}}};
_.u.replaceBackstageReplyAction=function(D){var Y=this.get("replaceBackstageReplyAction.replyId",D),R=this.get("replaceBackstageReplyAction.parentId",D);D=this.get("replaceBackstageReplyAction.renderer.commentRenderer",D);Y&&D&&R&&this.setCreatorReply(R,D)};
_.u.removeCommentAction=function(D){var Y=this.get("removeCommentAction.commentId",D);if(Y){var R=this.get("removeCommentAction.parentCommentId",D);R&&this.get("removeCommentAction.isCreatorReply",D)?this.setCreatorReply(R,void 0):(R||(R=this.getParentPostId(Y)),this.removeFromStream(Y,R))}};
_.u.setCreatorReply=function(D,Y){var R=this.getParentPostId(D);if(R){R=this.postIdToIndices(R);for(var Z=0;Z<R.length;Z++){var t=R[Z];if(t<0)break;var X=this.commentIdToIndex(D,t,!1);if(X>=0){var M="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+X;X=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";M+=".commentThreadRenderer.replies";Y==void 0?(this.set(M,{}),this.set(X,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Y}]}}),
this.set(M+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(X,!0))}X=this.commentIdToIndex(D,t,!0);X>=0&&(X="data.contents."+t+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+X,t=X+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",X+=".commentThreadRenderer.replies",Y==void 0?(this.set(X,{}),this.set(t,!1)):(this.set(X,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Y}]}}),this.set(t,!0)))}}};
_.u.removeFromStream=function(D,Y){if(Y){Y=this.postIdToIndices(Y);for(var R=0;R<Y.length;R++){var Z=Y[R];if(Z<0)break;var t=this.commentIdToIndex(D,Z,!1);t>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",t,1);t=this.commentIdToIndex(D,Z,!0);t>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",t,1);Z="data.contents."+Z+".backstagePostThreadRenderer.post.backstagePostRenderer";
t=Z+".backstageAttachment.pollRenderer.votedCommentId";this.get(t)===D&&(this.set(t,null),this.set(Z+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(Y=this.postIdToIndices(D).reverse(),R=0;R<Y.length;R++){Z=Y[R];if(Z<0)break;t=this.getPostRendererType(Z);var X=this.get("backstagePostThreadRenderer.post."+t,this.data.contents[Z]);X.postId===D?this.splice("data.contents",Z,1):t==="sharedPostRenderer"&&this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);X.scheduledPublishTimeSec&&_.CX(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.u.postIdToIndices=function(D){for(var Y=[],R=0;R<this.data.contents.length;R++){var Z=this.getPostRendererType(R);this.get("backstagePostThreadRenderer.post."+Z+".postId",this.data.contents[R])===D&&Y.push(R);if(Z==="sharedPostRenderer"){var t=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.backstagePostRenderer.postId",this.data.contents[R]);Z=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.postRenderer.postId",this.data.contents[R]);t!==D&&Z!==D||Y.push(R)}}return Y};
_.u.commentIdToIndex=function(D,Y,R){if(Y<0)return-1;var Z,t,X,M,W=_.A((Z=this.data)==null?void 0:(t=Z.contents)==null?void 0:(X=t[Y])==null?void 0:(M=X.backstagePostThreadRenderer)==null?void 0:M.comments,loV);return(Y=R?W==null?void 0:W.teaserContents:W==null?void 0:W.contents)&&Y.length?Y.findIndex(function(z){return _.A(z,T3b).comment.commentRenderer.commentId===D}):-1};
_.u.getParentPostId=function(D){D=D.split(".");if(D[1])return D[0]};
_.u.getPostRendererType=function(D){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[D])?"sharedPostRenderer":"backstagePostRenderer"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],qT.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qT.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-backstage-items"})],qT);
_.L(qT,"ytd-backstage-items",function(){if(uzU!==void 0)return uzU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return uzU=
D},{mode:1});var aP1;var MWL={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Hi=function(){var D=_.N.apply(this,arguments)||this;D.disablePrescanVisibility=!0;D.canScheduleJobs=!0;D.engagementPanel=!1;D.hidePanelButton=!1;D.isWatchGrid=!1;D.hasShownSubscribersOnlyDisclaimer=!1;D.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_"};return D};
_.n(Hi,_.N);_.u=Hi.prototype;_.u.created=function(){this.initCommentsCsi_();_.f("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.u.contentsChanged_=function(){var D;(D=this.data)!=null&&D.contents&&this.tickForCommentsTimer_("cml")};
_.u.headerChanged_=function(){var D;(D=this.data)!=null&&D.header&&this.tickForCommentsTimer_("cmhl")};
_.u.initCommentsCsi_=function(){_.U7("wn_comments");var D=_.K2();D&&_.k8({clientScreenNonce:D},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.u.createCommentAction_=function(D){D=_.y7.unsafeClone(D);var Y,R;if(D=(Y=_.A(D,sFY))==null?void 0:(R=Y.contents)==null?void 0:R.commentThreadRenderer){var Z,t,X,M,W,z;!this.isBackstage&&((Z=this.data)==null?0:(t=Z.header)==null?0:(X=t.commentsHeaderRenderer)==null?0:(M=X.createRenderer)==null?0:(W=M.commentSimpleboxRenderer)==null?0:(z=W.zeroStep)==null?0:z.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var I,
F,G;this.isBackstage&&_.A((I=this.data)==null?void 0:(F=I.header)==null?void 0:(G=F.commentsHeaderRenderer)==null?void 0:G.zeroStateMessage,Uq1)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(D)}};
_.u.doReplyInsert_=function(D,Y,R,Z){Z?this.splice(D,Z,0,Y):this.push(D,Y)};
_.u.getRepliesPath_=function(D){return"data.contents."+D+".commentThreadRenderer.replies"};
_.u.getRepliesContentsPath_=function(D,Y){D=this.getRepliesPath_(D);return Y?D+".commentRepliesRenderer.teaserContents":D+".commentRepliesRenderer.contents"};
_.u.showSubscribersOnlyDisclaimer_=function(D){(D=D.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&(_.CX(this.hostElement,"yt-open-popup-action",[D,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.u.createCommentReplyAction_=function(D){D=_.y7.unsafeClone(D);var Y=_.A(D,XP1);if(D=Y==null?void 0:Y.contents){var R=this.commentIdToIndex_(Y==null?void 0:Y.parentCommentId);if(!(R<0)){var Z=this.getRepliesPath_(R);if(this.get(Z)){Y=Y.replyToCommentId;Z=this.getRepliesContentsPath_(R,!1);if(this.get(Z)){var t=this.get(Z).length,X=Z+"."+(t-1)+".continuationItemRenderer";this.get(X+".button")?(X=this.replyIdToIndex_(Y,R,!1),this.doReplyInsert_(Z,D,X,t-1)):this.get(X)||(t=this.replyIdToIndex_(Y,R,
!1),this.doReplyInsert_(Z,D,t,null))}Z=this.getRepliesContentsPath_(R,!0);this.get(Z)?(R=this.replyIdToIndex_(Y,R,!0),(!Y||R>=0)&&this.doReplyInsert_(Z,D,R,null)):this.set(Z,[D])}else this.set(Z,{commentRepliesRenderer:{teaserContents:[D]}})}}};
_.u.hideReportedCommentAction_=function(D){var Y=_.A(D,$ZY);if(D=Y==null?void 0:Y.commentId)(Y=this.get("parentCommentId",Y))||(Y=this.getParentCommentId_(D)),this.remove_(D,Y)};
_.u.getParentCommentId_=function(D){D=D.split(".");if(D[1])return D[0]};
_.u.removeCommentAction_=function(D){var Y=_.A(D,WPz);if(D=Y==null?void 0:Y.commentId)Y=(Y==null?void 0:Y.parentCommentId)||this.getParentCommentId_(D),this.remove_(D,Y)};
_.u.pinCommentAction_=function(D){D=_.y7.unsafeClone(D);var Y=_.A(D,CQz);Y!=null&&Y.commentId&&(D=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",D))&&(this.remove_(Y.commentId),this.insert_(D,!0))};
_.u.unpinCommentAction_=function(D){D=_.y7.unsafeClone(D);D=_.A(D,zcY);if(D!=null&&D.commentId){var Y,R,Z=(Y=D.actionResult)==null?void 0:(R=Y.update)==null?void 0:R.commentThreadRenderer;Z&&(this.remove_(D.commentId),this.insert_(Z))}};
_.u.banAuthorAction_=function(D){var Y=_.A(D,tEU);Y!=null&&Y.commentId&&(D=Y.commentId,Y=Y.parentCommentId||this.getParentCommentId_(D),this.remove_(D,Y))};
_.u.commentIdToIndex_=function(D){var Y;return D&&(Y=this.data)!=null&&Y.contents?this.data.contents.findIndex(function(R){R=R.commentThreadRenderer;var Z;return D===((R==null?void 0:R.commentViewModel)&&((Z=_.A(R.commentViewModel,fWY))==null?void 0:Z.commentId))}):-1};
_.u.insert_=function(D,Y){Y=Y===void 0?!1:Y;var R,Z;if((R=this.data)==null?0:(Z=R.contents)==null?0:Z.some(function(X){return!!X.commentThreadRenderer}))for(R=0,Z=this.data.contents.length;R<Z;R++){var t=this.data.contents[R].commentThreadRenderer;
if(MWL[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=MWL[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){Y&&MWL[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===MWL[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",R,1,{commentThreadRenderer:D}):this.splice("data.contents",R,0,{commentThreadRenderer:D});break}}else this.set("data.contents",[{commentThreadRenderer:D}])};
_.u.doReplyRemove_=function(D,Y,R){D=this.replyIdToIndex_(D,Y,R);D<0||(Y=this.getRepliesContentsPath_(Y,R),this.splice(Y,D,1))};
_.u.remove_=function(D,Y){Y=this.commentIdToIndex_(Y);Y<0?(Y=this.commentIdToIndex_(D),Y<0||this.splice("data.contents",Y,1)):_.f("web_delhi_comment_threads")||(this.doReplyRemove_(D,Y,!1),this.doReplyRemove_(D,Y,!0))};
_.u.replyIdToIndex_=function(D,Y,R){if(Y<0)return-1;Y=this.getRepliesContentsPath_(Y,R);Y=this.get(Y);if(!Y||!Y.length)return-1;R=0;for(var Z=Y.length;R<Z;R++){var t=void 0,X=void 0;if(((t=Y[R])==null?void 0:(X=t.commentViewModel)==null?void 0:X.commentId)===D)return R}return-1};
_.u.tickForCommentsTimer_=function(D){_.h4(D,void 0,"wn_comments")};
_.u.reloadComments_=function(D){D=_.A(D,GgY);_.A(D==null?void 0:D.command,_.PN)&&_.zA(this.hostElement,[D==null?void 0:D.command])};
_.YF.Object.defineProperties(Hi.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!((D=this.data)==null?0:(Y=D.header)==null?0:(R=Y.commentsHeaderRenderer)==null?0:R.isBackstageContent)}}});
_.YF.Object.defineProperties(Hi,{template:{configurable:!0,enumerable:!0,get:function(){if(aP1===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);aP1=D}D=aP1;return D}}});
Hi.prototype.showSubscribersOnlyDisclaimer_=Hi.prototype.showSubscribersOnlyDisclaimer_;Hi.prototype.headerChanged_=Hi.prototype.headerChanged_;Hi.prototype.contentsChanged_=Hi.prototype.contentsChanged_;_.q([_.v(_.Rv),_.x("design:type",Object)],Hi.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.acl.YtHostElementBehavior),_.x("design:type",Object)],Hi.prototype,"ytHostElementBehavior",void 0);
_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",Function)],Hi.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Hi.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Hi.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.header.commentsHeaderRenderer.isBackstageContent"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hi.prototype,"isBackstage",null);_.q([_.y(),_.x("design:type",Object)],Hi.prototype,"disablePrescanVisibility",void 0);_.q([_.y(),_.x("design:type",Object)],Hi.prototype,"canScheduleJobs",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Hi.prototype,"engagementPanel",void 0);
_.q([_.y(),_.x("design:type",Object)],Hi.prototype,"hidePanelButton",void 0);_.q([_.y(),_.x("design:type",Object)],Hi.prototype,"isWatchGrid",void 0);_.q([_.y(),_.x("design:type",Object)],Hi.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.q([_.Gm("data.contents"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hi.prototype,"contentsChanged_",null);
_.q([_.Gm("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hi.prototype,"headerChanged_",null);_.q([_.Fv("yt-show-subscribers-only-disclaimer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hi.prototype,"showSubscribersOnlyDisclaimer_",null);_.q([_.h({is:"ytd-comments"})],Hi);var xf=function(){return _.Aj.apply(this,arguments)||this};
_.n(xf,_.Aj);_.u=xf.prototype;_.u.bindIf=function(D,Y,R){return D?Y:R};
_.u.bindIfDefined=function(D,Y){return D!==void 0?D:Y};
_.u.booleanString=function(D){return(!!D).toString()};
_.u.equals=function(){for(var D=_.UN.apply(0,arguments),Y=D[0],R=1;R<D.length;R++)if(Y!=D[R])return!1;return!0};
_.u.isGreaterThan=function(D,Y){return D>Y};
_.u.isLessThan=function(D,Y){return D<Y};
_.u.logicalAND=function(){for(var D=_.UN.apply(0,arguments),Y=!!D[0],R=1;R<D.length;R++)Y=Y&&!!D[R];return Y};
_.u.logicalOR=function(){for(var D=_.UN.apply(0,arguments),Y=!!D[0],R=1;R<D.length;R++)Y=Y||!!D[R];return Y};
_.u.toBool=function(D){return!!D};
xf.prototype.toBool=xf.prototype.toBool;xf.prototype.logicalOR=xf.prototype.logicalOR;xf.prototype.logicalAND=xf.prototype.logicalAND;xf.prototype.isLessThan=xf.prototype.isLessThan;xf.prototype.isGreaterThan=xf.prototype.isGreaterThan;xf.prototype.equals=xf.prototype.equals;xf.prototype.booleanString=xf.prototype.booleanString;xf.prototype.bindIfDefined=xf.prototype.bindIfDefined;xf.prototype.bindIf=xf.prototype.bindIf;_.q([_.nr()],xf);_.CLU=[xf.prototype];var WND;var zCL;var Pi=function(){return _.N.apply(this,arguments)||this};
_.n(Pi,_.N);Pi.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Pi.prototype.onBackIconTap_=function(){window.history.back()};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Pi.prototype,"data",void 0);_.q([_.Lr({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Pi);
_.L(Pi,"yt-header-with-back-renderer",function(){if(zCL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;WND===void 0&&(WND=document.createElement("template"));var Z=WND;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);zCL=D}D=zCL;return D},{mode:2});var SOE;var TEE;var QO=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(QO,_.N);_.u=QO.prototype;_.u.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D,this.setUrl())};
_.u.dataChanged=function(){var D=this;if(this.data){var Y=this.setUrl();Y&&_.Do({destination:window,iframe:this.iframe,origin:_.A97(Y.toString()),channelName:"yt-iframe",onMessage:function(R){(R=D.getCommunicationCommand(R.data))&&D.ytComponentBehavior.resolveCommand(R)},
onEstablished:function(){}})}};
_.u.setUrl=function(){if(this.data&&this.data.iframeUrl){var D=_.Ns(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(D)return _.x7(this.iframe,D),D}};
_.u.getCommunicationCommand=function(D){var Y;if((Y=this.data)!=null&&Y.onCommunicationCommandsMap){Y=this.data.onCommunicationCommandsMap.find(function(t){return t.key===D});
if(Y==null?0:Y.value)return Y==null?void 0:Y.value;try{var R=RuL(_.dr(D)),Z=this.data.onCommunicationCommandsMap.find(function(t){return t.key===(R==null?void 0:R.getMethodName())});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value}catch(t){}}};
QO.prototype.dataChanged=QO.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],QO.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QO.prototype,"data",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],QO.prototype,"isDarkTheme",void 0);_.q([_.fr("#iframe"),_.x("design:type",HTMLIFrameElement)],QO.prototype,"iframe",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QO.prototype,"dataChanged",null);_.q([_.Lr({is:"yt-iframe-renderer",disableElementRegistration:!0})],QO);
_.L(QO,"yt-iframe-renderer",function(){if(TEE===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;SOE===void 0&&(SOE=document.createElement("template"));var Z=SOE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);TEE=D}D=TEE;return D},{mode:2});_.Bi=function(D){_.AE.call(this);this.callback=D;this.bezier=new TsL(0,0,.4,0,.2,1,1,1);this.delay=new _.t5(this.next,window,this);this.JSC$16776_animating=!1;_.WB(this,this.delay)};
_.n(_.Bi,_.AE);_.Bi.prototype.isAnimating=function(){return this.JSC$16776_animating};
_.Bi.prototype.start=function(D,Y,R){this.config={from:D,to:Y,duration:R,startTime:(0,_.DO)()};this.JSC$16776_animating=!0;this.next()};
_.Bi.prototype.stop=function(){this.delay.stop();this.JSC$16776_animating=!1;this.config=void 0};
_.Bi.prototype.next=function(){if(this.config){var D=this.config,Y=D.from,R=D.to,Z=D.duration;D=D.startTime;var t=(0,_.DO)()-D;D=this.bezier;Z=IX_(D,t/Z);if(Z==0)D=D.y0;else if(Z==1)D=D.y3;else{t=nC(D.y0,D.y1,Z);var X=nC(D.y1,D.y2,Z);D=nC(D.y2,D.y3,Z);t=nC(t,X,Z);X=nC(X,D,Z);D=nC(t,X,Z)}D=_.UR(D,0,1);this.callback(Y+(R-Y)*D);D<1?this.delay.start():this.JSC$16776_animating=!1}};_.pp=new _.R6("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var jwV={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},FNU=function(D,Y,R,Z){_.AE.call(this);this.JSC$16787_miniAppId=D;this.localReleaseId=Y;this.derivedDeviceInterface=R;this.isForeground=Z;this.JSC$16787_playNonceResolver=new _.Ta;this.playPingTimerId=NaN;this.playPingIntervalMs=_.ZH("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.ZH("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.f("enable_displaying_ppn");this.JSC$16787_miniAppClientDataProvider=_.DH().resolve(_.pp);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;IPE(this);var t=setTimeout(function(){_.Jk(new _.AT("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16787_playNonceResolver.promise.then(function(){clearTimeout(t)})};
_.n(FNU,_.AE);var VWU=function(D,Y){D.JSC$16787_playNonceResolver.resolve(Y!=null?Y:J5(8));D.enableDisplayingPpn&&GhU(D).then(function(R){D.JSC$16787_miniAppClientDataProvider.clientData.set("post_play_nonce",R)})},GhU=function(D){return _.C(function(Y){return Y.nextAddress==1?Y.yield(D.JSC$16787_playNonceResolver.promise,2):Y.return(Y.yieldResult)})},IPE=function(D){var Y,R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$16787_playNonceResolver.promise,2);Y=Z.yieldResult;R={miniAppInfo:{externalPostId:D.JSC$16787_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:Y,derivedDeviceInterface:D.derivedDeviceInterface}};_.k8(R);_.V9(Z)})},eCD=function(D){D.state!==0?_.Jk(new _.AT("[MiniAppPlayLogger] recordPlayStart failed with state "+jwV[D.state])):(D.state=1,Ee(D,"ma_cl"),gB(D,"PLAY_EVENT_TYPE_PLAY_START"),fPY(D))},A_z=function(D){D.isForeground=!1;
gB(D,"PLAY_EVENT_TYPE_PLAY_PAUSE")},nJ1=function(D){D.state!==1&&D.state!==2?_.Jk(new _.AT("[MiniAppPlayLogger] recordPlayEnd failed with state "+jwV[D.state])):(D.state=3,window.clearInterval(D.playPingTimerId),D.playPingTimerId=NaN,X6j(),gB(D,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},r_V=function(D,Y){D.state===2&&D.gameReady&&(D.firstClickRecorded?Date.now()-D.clickRecordedMs<D.playClickIntervalMs||(D.clickRecordedMs=Date.now(),gB(D,"PLAY_EVENT_TYPE_PLAY_CLICK")):Y&&(Ee(D,"ma_fua"),gB(D,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),D.firstClickRecorded=!0,D.clickRecordedMs=Date.now()))};
FNU.prototype.logError=function(D){var Y=this,R;_.C(function(Z){if(Z.nextAddress==1)return D.metadata.externalPostId=Y.JSC$16787_miniAppId,R=D.metadata,Z.yield(Promise.race([Y.JSC$16787_playNonceResolver.promise,new Promise(function(t){setTimeout(function(){t("")},3E4)})]),2);
R.postPlayNonce=Z.yieldResult;D.metadata.localReleaseId=Y.localReleaseId;D.loggingError.level="WARNING";_.Nb(D.loggingError,D.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:D.metadata});_.V9(Z)})};
var wY4=function(D,Y,R,Z){var t,X,M,W,z,I;_.C(function(F){if(F.nextAddress==1)return F.yield(D.JSC$16787_playNonceResolver.promise,2);t=F.yieldResult;X={externalPostId:D.JSC$16787_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:t,sdkVersion:R,api:Y};Z!==void 0&&(X.networkRequestsMeasurement={networkRequests:_.ZC(Z,1),cachedRequests:_.ZC(Z,2),transferredBytes:_.ZC(Z,3)},(M=Z)==null?0:_.fw(M,DV,6))&&(X.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((W=_.tP(Z,
DV,6))==null?void 0:Jr(W,1))||"0",cacheHits:((z=_.tP(Z,DV,6))==null?void 0:Jr(z,2))||"0",cachedBytes:((I=_.tP(Z,DV,6))==null?void 0:Jr(I,3))||"0"});_.bo("miniAppSdkUsage",X);_.V9(F)})},vJz=function(D,Y,R){var Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H;
_.C(function(c){if(c.nextAddress==1)return c.yield(D.JSC$16787_playNonceResolver.promise,2);Z=c.yieldResult;t={externalPostId:D.JSC$16787_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:Z,sdkVersion:R,measurementWindow:{startTimestampMs:String(bh(Y,1)),endTimestampMs:String(bh(Y,2))},frameRate:{averageFrameTimeDeltaMs:yn(Y,3),averageFrameIdleTimeMs:yn(Y,4)}};_.fw(Y,YG,5)&&(t.networkRequests={networkRequests:(X=a5(Y))==null?void 0:_.ZC(X,1),cachedRequests:(M=a5(Y))==null?void 0:_.ZC(M,2),transferredBytes:(W=
a5(Y))==null?void 0:_.ZC(W,3),sameOriginStatusCodeToCounts:$hb((z=a5(Y))==null?void 0:vKU(z,4)),crossOriginStatusCodeToCounts:$hb((I=a5(Y))==null?void 0:vKU(I,5))},(F=a5(Y))==null?0:_.fw(F,DV,6))&&(t.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((G=a5(Y))==null?void 0:(V=_.tP(G,DV,6))==null?void 0:Jr(V,1))||"0",cacheHits:((e=a5(Y))==null?void 0:(r=_.tP(e,DV,6))==null?void 0:Jr(r,2))||"0",cachedBytes:((l=a5(Y))==null?void 0:(U=_.tP(l,DV,6))==null?void 0:Jr(U,3))||"0"});_.fw(Y,
bwz,7)&&(t.gameCapture={averageFrameTimeDeltaMs:(K=_.tP(Y,bwz,7))==null?void 0:yn(K,1),averageFrameIdleTimeMs:(H=_.tP(Y,bwz,7))==null?void 0:yn(H,2)});_.bo("miniAppPerformanceMetrics",t);_.V9(c)})},oJD=function(D,Y){var R,Z;
return _.C(function(t){if(t.nextAddress==1)return t.yield(D.JSC$16787_playNonceResolver.promise,2);R=t.yieldResult;Z={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:D.JSC$16787_miniAppId,postPlayNonce:R,miniAppReleaseId:D.localReleaseId},derivedDeviceInterface:D.derivedDeviceInterface,adTriggerType:Y,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.bo("miniAppAdEvent",Z);_.V9(t)})};
FNU.prototype.disposeInternal=function(){_.AE.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var gB=function(D,Y,R,Z){R=R===void 0?{}:R;Z=Z===void 0?!1:Z;var t,X,M,W;_.C(function(z){if(z.nextAddress==1)return t=D.isForeground,X=D.beforeReady,z.yield(D.JSC$16787_playNonceResolver.promise,2);M=z.yieldResult;W={externalPostId:D.JSC$16787_miniAppId,localReleaseId:D.localReleaseId,derivedDeviceInterface:D.derivedDeviceInterface,postPlayNonce:M,type:Y};R.sequenceGroup=M;W.playState=X?"PLAY_STATE_NOT_READY":t?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.bo("miniAppPlayEvent",W,
R);Z&&_.yj();_.V9(z)})},Ee=function(D,Y){var R;
_.C(function(Z){if(Z.nextAddress==1)return R=(0,_.DO)(),Z.yield(D.JSC$16787_playNonceResolver.promise,2);_.KX(Y,R);_.V9(Z)})},fPY=function(D){isNaN(D.playPingTimerId)&&(D.playPingTimerId=_.Cv(function(){D.state!==1&&D.state!==2?_.Jk(new _.AT("[MiniAppPlayLogger] reportPlayPing failed with state "+jwV[D.state])):gB(D,"PLAY_EVENT_TYPE_PLAY_PING")},D.playPingIntervalMs))},$hb=function(D){return Array.from(D.entries()).map(function(Y){var R=_.a(Y);
Y=R.next().value;R=R.next().value;return{key:Y,value:R}})};var bRL=function(){},y_z=function(D,Y){D.showMiniAppAdCommand=Y.showMiniAppAdCommand;
D.isEmbeddedInWebview=Y.isEmbeddedInWebview;D.playLogger=Y.playLogger},lPz=function(D,Y){var R;
return _.C(function(Z){if(Z.nextAddress==1){if(!D.showMiniAppAdCommand||!D.isEmbeddedInWebview)return Z.return(NEz(D,Y));D.adResolver=new _.Ta;var t=new Jh;R=_.s1(t,3,Y);hR(D.showMiniAppAdCommand,XAY(R));return Z.yield(D.adResolver.promise,2)}return Z.return(Z.yieldResult)})};
bRL.prototype.onAdFinished=function(D){D=uNE(D);var Y;(Y=this.adResolver)==null||Y.resolve(D)};
var NEz=function(D,Y){var R;return _.C(function(Z){if(Z.nextAddress==1)Z=Z.yield((R=D.playLogger)==null?void 0:oJD(R,lJn(Y)),2);else{var t=Z.return;var X=new XQU;X=_.s1(X,1,2);Z=t.call(Z,X)}return Z})};var J_E=new _.R6("INNERTUBE_MANAGER_TOKEN");var kh7=function(){this.callbacks={}};
kh7.prototype.initialize=function(D){var Y=this;this.callbacks=D;window.youtubewebview?window.youtubewebview.onmessage=function(R){UhV(Y,R)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(R){UhV(Y,R)})};
var UhV=function(D,Y){if(Y.data)try{var R=RuL(Y.data);if(_.TT(_.Vn(R,1))!=null){var Z=DFU(_.Np(R,2));switch(R.getMethodName()){case "yt-mini-app-load-audio-state":var t,X;(X=(t=D.callbacks).onAudioStateLoaded)==null||X.call(t,_.oc(Z,Gz(Z,lS,1)));break;case "yt-mute-mini-app":var M,W;(W=(M=D.callbacks).onMuteMiniApp)==null||W.call(M);break;case "yt-unmute-mini-app":var z,I;(I=(z=D.callbacks).onUnmuteMiniApp)==null||I.call(z);break;case "yt-playable-exit":var F,G;(G=(F=D.callbacks).onExit)==null||G.call(F);
break;case "yt-post-play-nonce":var V,e;(e=(V=D.callbacks).onPostPlayNonceReceived)==null||e.call(V,k0(Z,2,lS));break;case "yt-confirm-exit-mini-app":var r,l;(l=(r=D.callbacks).confirmExitMiniApp)==null||l.call(r);break;case "yt-confirm-exit-mini-app-edu":var U,K;(K=(U=D.callbacks).confirmExitMiniAppEdu)==null||K.call(U);break;case "yt-benchmarking-response":var H,c;(c=(H=D.callbacks).onNativeBenchmarkingMessageReceived)==null||c.call(H,k0(Z,2,lS));break;case "yt-mini-app-load-3p-consent-state":var Q,
E;(E=(Q=D.callbacks).multiplayer3pAckStateLoaded)==null||E.call(Q,_.oc(Z,Gz(Z,lS,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var B,O;(O=(B=D.callbacks).exitMiniAppSeenStateLoaded)==null||O.call(B,_.oc(Z,Gz(Z,lS,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Wo,Sb;(Sb=(Wo=D.callbacks).onNavigateToNewMiniApp)==null||Sb.call(Wo);break;case "yt-game-data-available":var VU,AS;(AS=(VU=D.callbacks).onGameDataAvailable)==null||AS.call(VU,k0(Z,2,lS));break;case "yt-pause-mini-app":var nM,
Ho;(Ho=(nM=D.callbacks).onPauseMiniApp)==null||Ho.call(nM);break;case "yt-resume-mini-app":var KM,Xb;(Xb=(KM=D.callbacks).onResumeMiniApp)==null||Xb.call(KM);break;case "yt-playable-ad-finished":var kE,SD;(SD=(kE=D.callbacks).onAdFinished)==null||SD.call(kE,k0(Z,2,lS))}}else _.Jk(Error("Sh"))}catch(co){_.Nb(Error("Th"))}else _.Jk(Error("Uh"))};var ke9=function(D){this.rpcErrorCode=D};var dB=function(D,Y,R){this.intervalMs=D;this.apiFunc=Y;this.type=R;this.schedulerReady=!0};
dB.prototype.call=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1){if(Y.type!==1&&D===Y.cachedValue)return Z.return();Y.pendingApiRequestResolver||(Y.pendingApiRequestResolver=new _.Ta);R=Y.pendingApiRequestResolver.promise;Y.cachedValue=D;return Z.yield(KNL(Y),2)}return Z.return(R)})};
dB.prototype.flush=function(D){D=D===void 0?!1:D;var Y=this;return _.C(function(R){return Y.cachedValue===void 0?R.return():R.yield(Y.apiFunc(Y.cachedValue,D),0)})};
var KNL=function(D){var Y,R,Z;return _.C(function(t){switch(t.nextAddress){case 1:if(!D.schedulerReady||!D.pendingApiRequestResolver)return t.return();D.schedulerReady=!1;Y=D.pendingApiRequestResolver;D.pendingApiRequestResolver=void 0;_.SX(t,2);if(D.cachedValue===void 0){t.jumpTo(4);break}return t.yield(D.apiFunc(D.cachedValue),5);case 5:R=t.yieldResult,Y.resolve(R);case 4:_.xw(t,3);break;case 2:Z=_.Gl(t),Y.reject(Z);case 3:setTimeout(function(){return _.C(function(X){D.schedulerReady=!0;return X.yield(KNL(D),
0)})},D.intervalMs),_.V9(t)}})};var hel=window.location.origin+"/miniapp_cloudsaves",Uz9=[400,401],hCU=_.ZH("cloud_save_game_data_rate_limit_ms",3E3),qOU=function(D){var Y=this;this.JSC$16831_miniAppId=D;this.loadAttempts=0;this.cloudSaveIntervalMs=hCU;this.initialDownloadDataSucceeded=!1;this.JSC$16831_playNonceResolver=new _.Ta;this.scottyUploadRateLimiter=new dB(this.cloudSaveIntervalMs,function(R,Z){return LNz(Y,R,Z)},2);
this.downloadDataPromise=mhL(this);this.downloadDataPromise.then(function(){Y.initialDownloadDataSucceeded=!0}).catch(function(){})},HRz=function(D,Y){Y.then(function(R){return D.JSC$16831_playNonceResolver.resolve(R)})},xhE=function(D){return _.C(function(Y){return D.cachedData===void 0?Y.return(D.downloadDataPromise):Y.return(D.cachedData)})},PLz=function(D,Y){return _.C(function(R){D.cachedData=Y;
if(!D.initialDownloadDataSucceeded)throw Error("Vh");return R.yield(D.scottyUploadRateLimiter.call(Y),0)})},QwU=function(){return new Promise(function(D){setTimeout(D,1E3,"")})},BEE=function(D,Y){var R,Z;
return _.C(function(t){if(t.nextAddress==1)return R=D.JSC$16831_miniAppId,t.yield(Promise.race([D.JSC$16831_playNonceResolver.promise,QwU()]),2);Z={"X-YouTube-MiniAppId":R,"X-YouTube-PostPlayNonce":t.yieldResult};"DELEGATED_SESSION_ID"in _.NJ&&L39(Y,Z);return t.return(Z)})},LNz=function(D,Y,R){R=R===void 0?!1:R;
return _.C(function(Z){return Jvo()?_.f("enable_cloud_save_error_popup_after_retry")?Z.return(new Promise(function(t,X){var M,W,z,I,F;return _.C(function(G){switch(G.nextAddress){case 1:M=0,W=!0,I=z=null;case 2:if(!(W&&M++<2)){G.jumpTo(4);break}_.SX(G,5);return G.yield(pY4(D,Y,R),7);case 7:z=G.yieldResult;W=z.ok?!1:!Uz9.includes(z.status);_.xw(G,2);break;case 5:I=F=_.Gl(G);W=KlS(I);G.jumpTo(2);break;case 4:z?z.ok?(Oe(D,hCU),t()):(Oe(D,D.cloudSaveIntervalMs*2),X(Error("Wh`"+String(z.status),{cause:{rpcErrorCode:z.status}}))):
(Oe(D,D.cloudSaveIntervalMs*2),X(I||Error("Xh"))),_.V9(G)}})})):Z.return(new Promise(function(t,X){var M,W;
return _.C(function(z){if(z.nextAddress==1){if(D.JSC$16831_miniAppId==="")return X(Error("Yh")),z.return();_.SX(z,2);return z.yield(pY4(D,Y,R),4)}if(z.nextAddress!=2)return M=z.yieldResult,M.ok?(Oe(D,hCU),t()):(Oe(D,D.cloudSaveIntervalMs*2),X(Error("Wh`"+String(M.status),{cause:{rpcErrorCode:M.status}}))),_.xw(z,0);W=_.Gl(z);Oe(D,D.cloudSaveIntervalMs*2);X(W);_.V9(z)})})):Z.return()})},pY4=function(D,Y,R){R=R===void 0?!1:R;
var Z,t,X;return _.C(function(M){if(M.nextAddress==1)return Z=_.rb((new TextEncoder).encode(Y)),t=Lln(),M.yield(BEE(D,t),2);X=M.yieldResult;return M.return(fetch(t,{method:"POST",body:new Blob([Z]),headers:X,keepalive:R}))})},mhL=function(D){var Y,R;
return _.C(function(Z){if(Z.nextAddress==1){if(!Jvo())return Z.return("");if(D.JSC$16831_miniAppId==="")throw Error("Yh");if(D.loadAttempts>2)return Z.return(D.downloadDataPromise);_.SX(Z,2);return Z.yield(EJY(D),4)}if(Z.nextAddress!=2)return Y=Z.yieldResult,Z.return(Y);R=_.Gl(Z);if(KlS(R)&&++D.loadAttempts<2)return Z.return(mhL(D));throw R;})},EJY=function(D){var Y,R,Z,t,X;
return _.C(function(M){switch(M.nextAddress){case 1:return _.SX(M,2),Y=Lln(),M.yield(BEE(D,Y),4);case 4:return R=M.yieldResult,M.yield(fetch(Y,{method:"GET",headers:R}),5);case 5:return Z=M.yieldResult,Z.ok?M.yield(Z.text(),6):M.return(Promise.reject(Error("Zh`"+String(Z.status),{cause:new ke9(Z.status)})));case 6:return t=M.yieldResult,M.return((new TextDecoder).decode(_.dr(t)));case 2:return X=_.Gl(M),M.return(Promise.reject(X))}})},Oe=function(D,Y){D.cloudSaveIntervalMs=Y;
D.scottyUploadRateLimiter.intervalMs=D.cloudSaveIntervalMs};
qOU.prototype.flush=function(){var D=this;return _.C(function(Y){return D.initialDownloadDataSucceeded?Y.yield(D.scottyUploadRateLimiter.flush(!0),0):Y.return()})};var gJ_=XA(s_(1),ZV(1)),dh4=XA(s_(1),ZV(3)),ci=function(D){this.callbacks=D};
_.u=ci.prototype;_.u.onAudioToggled=function(D,Y){(Y===void 0||Y)&&_.I8("yt-mini-app-is-audio-enabled",D,2592E3)};
_.u.onPause=function(){this.onAudioToggled(!1,!1)};
_.u.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.u.returnNativeBenchmarkingMessage=function(){};
_.u.sendGameData=function(){};
_.u.sendStartGameFrameCapture=function(){};
var mzU=function(D,Y,R){this.callbacks=D;var Z=this;this.sdkVersion=new _.Ta;this.channel=new $eb(_.Do({destination:window,iframe:Y,origin:(new URL(R.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var t=Dt;var X=s_(5);var M=new IDb;M=_.Kw(M,1,1E4);X=_.jf(X,4,rr4,M);t(Z,X);Z.onAudioToggled(Z.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Z.sdkVersion.resolve("")},1E4)};
_.n(mzU,ci);_.u=mzU.prototype;_.u.onAudioToggled=function(D,Y){ci.prototype.onAudioToggled.call(this,D,Y===void 0?!0:Y);Y=Dt;var R=s_(2),Z=new T0D;D=_.ug(Z,1,D);D=_.jf(R,3,rr4,D);Y(this,D)};
_.u.onPause=function(){ci.prototype.onPause.call(this);Dt(this,s_(3))};
_.u.onResume=function(){ci.prototype.onResume.call(this);Dt(this,s_(4))};
_.u.returnNativeBenchmarkingMessage=function(D){var Y=Dt,R=s_(6);var Z=ZV(_.fw(D,pC,1)?1:2);D=_.fw(D,pC,1)?D:null;Z=_.jf(Z,5,th,D);Y(this,XA(R,Z))};
_.u.sendGameData=function(D){var Y=Dt,R=s_(7);D=_.jf(R,5,rr4,D);Y(this,D)};
_.u.sendStartGameFrameCapture=function(){Dt(this,s_(9))};
var YR=function(D,Y,R){var Z,t,X;return _.C(function(M){if(M.nextAddress==1)return Z=D.callbacks,t=Z.onSdkCalled,X=Y,M.yield(D.sdkVersion.promise,2);t.call(Z,X,M.yieldResult,R);_.V9(M)})};
mzU.prototype.onMessage=function(){var D=this;return bEU(Mv,function(Y){var R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O,Wo,Sb,VU,AS,nM,Ho,KM,Xb,kE,SD,co,GE,TE,yV,vu,dz,sy,D_,fL,zT,eD,YK,RK,Dp;return _.C(function(az){switch(az.nextAddress){case 1:if(!JrL(Y.data))return _.Jk(Error("$h")),az.return();R=_.lh(Y.data,1);_.f("enable_iframe_message_get_type_via_fields")&&(Z=Y.data,R=t=_.lh(Z,1));switch(R){case 8:if(Y.data.hasMetadata()){var EL=D.sdkVersion,FE=EL.resolve;var v4=Y.data.getMetadata();v4=_.Np(v4,
1);FE.call(EL,v4);clearTimeout(D.sdkVersionTimeoutId)}break;case 6:return az.jumpTo(2);case 16:if(!_.es(Y.data,v0_,14,Cy))return az.return();X=_.Ub(Y.data,v0_,14,Cy);(W=(M=D.callbacks).onGameFrameReceived)==null||W.call(M,X);return az.return();case 17:if(!_.es(Y.data,$pU,15,Cy))return az.return();(I=(z=D.callbacks).onGameAudioReceived)==null||I.call(z,_.Ub(Y.data,$pU,15,Cy));return az.return();case 1:if(EL=_.Ub(Y.data,Vsz,2,Cy))switch(_.lh(EL,1)){case 1:D.callbacks.onFirstFrameReady();if(_.f("enable_network_request_logging_on_game_events")&&
_.fw(EL,YG,4)){YR(D,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.tP(EL,YG,4));break}YR(D,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(v4=(FE=D.callbacks).onGameReady)==null||v4.call(FE);if(_.f("enable_network_request_logging_on_game_events")&&_.fw(EL,YG,4)){YR(D,"MINI_APP_SDK_API_GAME_READY",_.tP(EL,YG,4));break}YR(D,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.es(EL,R5,3,fDL))D.callbacks.onResourceLoaded(_.Ub(EL,R5,3,fDL))}return az.return();case 3:return az.jumpTo(3);case 4:return az.jumpTo(4);
case 2:return az.jumpTo(5);case 9:return az.jumpTo(6);case 10:return D.callbacks.onClick(),az.return();case 5:return az.jumpTo(7);case 11:if(!_.es(Y.data,OP,9,Cy))return az.return();F=_.Ub(Y.data,OP,9,Cy);(V=(G=D.callbacks).onBenchmarkingMessageReceived)==null||V.call(G,F);EL=Y.reply;FE=s_(1);v4=ZV(1);var oz=new OP;var e0=new Uint8Array(iRo(F,Gz(F,Msz,6))|0);oz=Sq(oz,5,Msz,_.$E(e0,!1));v4=_.jf(v4,5,th,oz);EL.call(Y,XA(FE,v4));return az.return();case 12:return az.jumpTo(8);case 13:return az.jumpTo(9);
case 15:if(!_.f("enable_open_yt_content"))return Y.reply(dh4),az.return();if(!_.es(Y.data,wQz,12,Cy))return Y.reply(XA(s_(1),ZV(2))),az.return();EL=_.Ub(Y.data,wQz,12,Cy);e=_.Np(EL,1);D.callbacks.onOpenYTContent(e);Y.reply(gJ_);return az.return();case 14:return az.jumpTo(10);default:return az.return()}az.jumpTo(0);break;case 2:if(!_.es(Y.data,uS,5,Cy))return az.return();FE=Y.data;EL=Gz(FE,Cy,5);FE=FE.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;r=lpn(FE,FE[_.sL]|0,uS,EL)||uS[kES]||(uS[kES]=
UUU(uS));EL=_.Yh(r,c6,1,_.R0());l=_.a(EL);U=l.next();case 12:if(U.done){az.jumpTo(14);break}K=U.value;H=new _.AT;H.level=_.lh(K,2)===1?"WARNING":"ERROR";c=HTo(K.getSource());return az.yield(D.sdkVersion.promise,15);case 15:Q={source:c,sdkVersion:az.yieldResult};_.iU(_.Vn(K,6))!=null?(H.message=K.getMessage(),H.stack=_.Np(K,5),Q.sdkErrorType=xzr(_.lh(K,6)),_.iU(_.Vn(K,7))!=null&&(Q.sdkApi=P7y(_.lh(K,7)))):H.stack=void 0;B=E=void 0;(B=(E=D.callbacks).onError)==null||B.call(E,{loggingError:H,metadata:Q});
U=l.next();az.jumpTo(12);break;case 14:return az.return();case 3:return _.SX(az,16),EL=az.yield,FE=D.callbacks,v4=FE.onSave,oz=_.Ub(Y.data,jc1,4,Cy),oz=_.Np(oz,1),EL.call(az,v4.call(FE,oz),18);case 18:Y.reply(gJ_);_.xw(az,17);break;case 16:return O=_.Gl(az),Wo=L9,Sb=O,VU=D.callbacks,AS="MINI_APP_SDK_API_SAVE_DATA",az.yield(D.sdkVersion.promise,19);case 19:Wo(Sb,VU,AS,az.yieldResult),Y.reply(dh4);case 17:return az.yield(YR(D,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return az.return();case 4:return _.SX(az,
21),az.yield(D.callbacks.onLoad(),23);case 23:nM=az.yieldResult;EL=Y.reply;FE=s_(1);v4=ZV(1);oz=new jc1;oz=_.ew(oz,1,nM);v4=_.jf(v4,3,th,oz);EL.call(Y,XA(FE,v4));_.xw(az,22);break;case 21:return Ho=_.Gl(az),KM=L9,Xb=Ho,kE=D.callbacks,SD="MINI_APP_SDK_API_LOAD_DATA",az.yield(D.sdkVersion.promise,24);case 24:KM(Xb,kE,SD,az.yieldResult),Y.reply(dh4);case 22:return az.yield(YR(D,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return az.return();case 5:_.SX(az,26);D.callbacks.onSendHighScore(NC(_.Ub(Y.data,
N07,3,Cy).getValue()));Y.reply(XA(s_(1),ZV(1)));_.xw(az,27);break;case 26:return co=_.Gl(az),GE=L9,TE=co,yV=D.callbacks,vu="MINI_APP_SDK_API_SEND_SCORE",az.yield(D.sdkVersion.promise,28);case 28:GE(TE,yV,vu,az.yieldResult),Y.reply(dh4);case 27:return az.yield(YR(D,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return az.return();case 6:if(!_.es(Y.data,lDU,8,Cy)){az.jumpTo(30);break}EL=az.yield;FE=_.Ub(Y.data,lDU,8,Cy);FE=_.lh(FE,1);return EL.call(az,YR(D,P7y(FE)),30);case 30:return az.return();case 7:return EL=
Y.reply,FE=s_(1),v4=ZV(1),oz=D.callbacks.getLanguage(),v4=Sq(v4,4,th,Wu(oz)),EL.call(Y,XA(FE,v4)),az.yield(YR(D,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return az.return();case 8:if(!_.es(Y.data,yrb,10,Cy))return az.return();dz=_.Ub(Y.data,yrb,10,Cy);sy=D.callbacks;D_=sy.onSdkPerformanceUpdate;return az.yield(D.sdkVersion.promise,33);case 33:return D_.call(sy,dz,az.yieldResult),az.return();case 9:EL=Y.data;FE=Gz(EL,Cy,11);if(_.TT(_.Vn(EL,FE))==null)return Y.reply(XA(s_(1),ZV(2))),az.return();
fL=k0(Y.data,11,Cy);D.callbacks.onShareInviteCode(fL);Y.reply(gJ_);return az.yield(YR(D,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return az.return();case 10:if(_.es(Y.data,Sb_,13,Cy)){az.jumpTo(35);break}return az.yield(D.callbacks.onShowMiniAppAd(2),36);case 36:return zT=az.yieldResult,Y.reply(XA(s_(1),ArE(zT))),az.yield(YR(D,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return az.return();case 35:EL=_.Ub(Y.data,Sb_,13,Cy);a:switch(_.lh(EL,1)){case 1:EL={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:EL={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:EL={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}eD=EL;YK=eD.adType;RK=eD.sdkApi;EL=az.yield;FE=D.callbacks;v4=FE.onShowMiniAppAd;oz=_.Ub(Y.data,Sb_,13,Cy);oz=_.Np(oz,2);return EL.call(az,v4.call(FE,YK,oz||void 0),38);case 38:return Dp=az.yieldResult,Y.reply(XA(s_(1),ArE(Dp))),az.yield(YR(D,RK),39);case 39:return az.return()}})})};
var Dt=function(D,Y){_.C(function(R){D.channel.send(Y);_.V9(R)})},mu=function(D,Y,R){this.callbacks=D;
var Z=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;D=xyl(Y,(new URL(R.toString())).origin);this.gameSnacks=new xer(D);this.gameSnacks.page.onReady(function(){Z.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Z.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var t,X;(X=(t=Z.callbacks).onGameReady)==null||X.call(t)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(t,X){try{Z.callbacks.onSendHighScore(X)}catch(M){L9(M,Z.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(t,X){var M;return _.C(function(W){if(W.nextAddress==1)return _.SX(W,2),W.yield(Z.callbacks.onSave(Z.decoder.decode(X)),4);if(W.nextAddress!=2)return _.xw(W,0);M=_.Gl(W);L9(M,Z.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return W.return()})});
this.gameSnacks.storage.onLoad(function(){var t,X;return _.C(function(M){if(M.nextAddress==1)return _.SX(M,2),M.yield(Z.callbacks.onLoad(),4);if(M.nextAddress!=2)return t=M.yieldResult,M.return(Z.encoder.encode(t));X=_.Gl(M);L9(X,Z.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return M.return(Z.encoder.encode(""))})});
this.gameSnacks.init()};
_.n(mu,ci);mu.prototype.onAudioToggled=function(D,Y){ci.prototype.onAudioToggled.call(this,D,Y===void 0?!0:Y);var R;(R=this.gameSnacks)==null||R.audio.update(D)};
mu.prototype.onPause=function(){ci.prototype.onPause.call(this);var D;(D=this.gameSnacks)==null||D.game.pause()};
mu.prototype.onResume=function(){ci.prototype.onResume.call(this);var D;(D=this.gameSnacks)==null||D.game.resume()};var iR4=QGo,ORD=_.RT(function(D){var Y=D.data;var R=D.loadingProgress;var Z=D.forPaused;D=_.a(_.ae("",void 0,"H20Jvc"));var t=D.next().value,X=D.next().value;D=_.a(_.ae(!1,void 0,"wB49T"));var M=D.next().value,W=D.next().value,z=[],I=function(){return"transform: scaleX("+(_.v_(R)||0)+")"},F=null,G=function(){return Y()&&F!==null&&F!==void 0?F:F=Y().showAnniversaryAnimation?6:iR4()};
_.r2(function(){var l;if(Y().timeOutMessages&&((l=Y().timeOutMessages)==null?0:l.length)){F=null;l=_.a(z);for(var U=l.next();!U.done;U=l.next())clearTimeout(U.value);z.length=0;BUr(Y().timeOutMessages,z,X,W)}},"BsN3G");
var V=function(){return!!Y().persistentErrorMessageTitle},e=function(){return R!==void 0},r=function(){return Y().title};
return _.S("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.S("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.S("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.S("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var l,U=(l=Y().backgroundImage)==null?void 0:l.sources,K;return(U==null?0:U.length)?"background-image: url("+((K=U[0])==null?void 0:K.url)+")":
""}}),_.S("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.S(_.T,{cond:function(){return!V()&&!(Z==null?0:Z())},
then:function(){var l={};return _.S("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.S("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.S(_.fO,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+G()},
data:function(){var U="loading_animation_"+G();return{animationConfig:{name:U,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+U+".json",loop:!0,autoplay:!0}}}})),_.S("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.S(_.T,{cond:r,
then:function(){return _.S("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},r)}}),_.S("p",{class:_.e7("mini-app-splash-screen-view-model-wiz__timeout-message",(l["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return M()},l)),
"aria-live":"polite"},t),_.S(_.T,{cond:e,then:function(){return _.S("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.S("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:I}))}})))}}),_.S(_.T,{cond:V,
then:function(){return _.S("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.S("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return Y().persistentErrorMessageTitle}),_.S(_.T,{cond:function(){return!!Y().persistentErrorMessageDescription},
then:function(){return _.S("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return Y().persistentErrorMessageDescription})}}))}}),_.S(_.T,{cond:Z,
then:function(){return _.S("div",{class:"mini-app-splash-screen-view-model-wiz__pause-content"},_.S("img",{class:"mini-app-splash-screen-view-model-wiz__pause-icon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.S("h3",{class:"mini-app-splash-screen-view-model-wiz__pause-message"},r))}})))},"ke");var c_4=new _.R6("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var DnY=p4;p4=function(D){function Y(R){if(R){var Z,t;(Z=R.__spec)==null||(t=Z.didUnmount)==null||t.call(Z);for(Z=0;Z<R.childNodes.length;Z++)Y(R.childNodes[Z])}}
DnY==null||DnY(D);Ji(function(){for(var R=0;R<D.length;R++)Y(D[R])})};var YV7=_.RT(function(D){var Y=D.data;var R=D.score;var Z=D.formattedScore;var t=D.onScoreChanged;var X=D.isEmbeddedInWebview;var M=_.io("yt-mini-app-score-button-view-model"),W=function(){var e;return _.A(Y==null?void 0:(e=Y())==null?void 0:e.buttonViewModel,_.QX)},z=function(){var e;
return(R==null?void 0:R())||Number(Y==null?void 0:(e=Y())==null?void 0:e.lastScore)||0},I=function(){var e;
return(Z==null?void 0:Z())||((e=W())==null?void 0:e.title)||""},F,G=1;
if(D=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))D=Number(D),G=isNaN(D)?1:D/100;_.r2(function(){t==null||t(z());var e;var r=_.HL((e=W())==null?void 0:e.onTap);if(r){e=_.A(r,Tmz);var l,U,K;e=_.A(e==null?void 0:(l=e.panelLoadingStrategy)==null?void 0:(U=l.inlineContent)==null?void 0:(K=U.dialogViewModel)==null?void 0:K.customContent,ulz)}else e=void 0;if(l=e)l.score=I()},"KZFi5e");
D=_.F4(function(){var e,r,l=Y==null?void 0:(e=Y())==null?void 0:(r=e.loggingDirectives)==null?void 0:r.trackingParams;l&&_.GJ(_.DH().resolve(_.ya),l);return!1});
_.$s(function(){if(M.value){var e=M.value.querySelector("button"),r=W();e&&r&&pn9(e,r);YM("yt-share-playable-with-high-score",function(){var l=z().toString(),U=Y==null?void 0:Y().onShareHighScoreCommand,K=Y==null?void 0:Y().highScoreShareClientParamIdentifier,H=X==null?void 0:X();U&&(H?(K=new R4U,l=_.ew(K,2,l),hR(U,l.JSC$12279_serializeBinary())):K&&(_.DH().resolve(c_4).clientParams.set(K,{miniAppClientParams:{highScore:l}}),oYj(U,!1)))})}});
var V=function(){var e=W();e&&(R==null?0:R())&&e.accessibilityText&&(e.accessibilityText=e.accessibilityText.replace(F,I()));F=I();return{numberValue:z(),numberText:I(),heightPx:36,fontSizeMultiplier:G,shouldAnimate:!(R==null||!R())&&!0}};
return _.S("yt-mini-app-score-button-view-model",{class:function(){var e={};return _.kc("mini-app-score-button-view-model-wiz",(e["mini-app-score-button-view-model-wiz--is-visible"]=z()!==0,e))},
el:M,"on:click":D},FiU(!1,function(){return _.S("span",{style:"display:none;"},z)}),_.S(_.vK,{data:function(){var e;
return Y==null?void 0:(e=Y())==null?void 0:e.buttonViewModel}},{buttonViewModel:function(e){return _.S(_.TV,{data:e.data,
animatedTextProps:V})}}))},"le");var XTE=_.RT(function(D){var Y,R=(Y=_.FJ("yt-mini-app-is-theater-mode-enabled"))!=null?Y:!1,Z=_.f("enable_playable_container_save_button"),t=_.f("enable_play_next_destination_page_in_toolbar");Y={};return _.S("ytm-mini-app-top-bar-view-model",null,_.S("div",{class:_.e7("yt-mini-app-top-bar-view-model",(Y["yt-mini-app-top-bar-view-model--mobile"]=!1,Y["yt-mini-app-top-bar-view-model--desktop"]=!0,Y))},_.S("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.S(_.T,{cond:function(){var X;
return!!D.data().backButtonEdu&&!((X=D.isExitMiniAppSeen)==null?0:X.call(D))},
then:function(){return _.S(_.vK,{data:function(){return D.data().backButtonEdu}},{buttonViewModel:_.TV})},
else:function(){return _.S(_.vK,{data:function(){return D.data().backButton}},{buttonViewModel:_.TV})}}),_.S(_.T,{cond:function(){return D.data().viewAllButton&&!0},
then:function(){return _.S(_.vK,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.TV})}}),_.S(_.T,{cond:function(){return D.data().title&&!0},
then:function(){return _.S("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return D.data().title})}})),_.S("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.S(_.T,{cond:function(){var X;
return(X=D.isDesktopPlayPage)==null?void 0:X.call(D)},
then:function(){return _.S(_.c_,null,_.S(RZb,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview}),_.S(Z7D,{enableSaveButton:function(){return _.v_(Z)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.S(to4,{menuButton:function(){return D.data().menuButton}}))},
else:function(){return _.S(_.T,{cond:function(){return!1},
then:function(){return _.S(_.vK,{data:function(){return D.data().playPageButton}},{buttonViewModel:function(X){return _.S(_.TV,{data:X.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.S(RZb,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview})}})}})),_.S("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.S(_.vK,{data:function(){return D.data().muteButton}},{toggleButtonViewModel:function(X){var M=X.data;
return _.S(_.JV,{data:function(){var W,z;return Object.assign({},M(),{isToggled:(z=(W=D.isAudioEnabled)==null?void 0:W.call(D))!=null?z:!0})},
onToggle:D.onAudioToggled,useOutlinedIcon:!0})}}),_.S(_.vK,{data:function(){return D.data().theatreModeButton}},{toggleButtonViewModel:function(X){var M=X.data;
return _.S("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.S(_.JV,{data:function(){return Object.assign({},M(),{isToggled:R})},
useOutlinedIcon:!0}))}}),_.S(sBU,{fullscreenButton:function(){return D.data().fullscreenButton}}),_.S(_.T,{cond:function(){return _.v_(t)&&D.data().viewAllButton&&!1},
then:function(){return _.S(_.vK,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.TV})}}),_.S(_.T,{cond:function(){var X;
return!((X=D.isDesktopPlayPage)==null?0:X.call(D))},
then:function(){return _.S(_.c_,null,_.S(Z7D,{enableSaveButton:function(){return _.v_(Z)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.S(to4,{menuButton:function(){return D.data().menuButton}}))}}))))},"me");
XTE.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var to4=_.RT(function(D){return _.S(_.vK,{data:D.menuButton},{buttonViewModel:_.TV})},"ne"),Z7D=_.RT(function(D){var Y=D.enableSaveButton;
var R=D.saveButton;var Z=D.isSaved;var t=D.onSaveToggled;return _.S(_.T,{cond:function(){return Y()&&!(R==null||!R())},
then:function(){return _.S(_.vK,{data:function(){var X=_.A(R==null?void 0:R(),_.py),M;return{toggleButtonViewModel:Object.assign({},X,{isToggled:(M=Z==null?void 0:Z())!=null?M:!(X==null||!X.isToggled)})}}},{toggleButtonViewModel:function(X){return _.S(_.JV,{data:X.data,
onToggle:t})}})}})},"oe"),RZb=_.RT(function(D){var Y=D.highScoreButton;
var R=D.score;var Z=D.formattedScore;var t=D.onScoreChanged;var X=D.isEmbeddedInWebview;return _.S(_.vK,{data:Y},{miniAppScoreButtonViewModel:function(M){return _.S(YV7,{data:M.data,score:R,formattedScore:Z,onScoreChanged:t,isEmbeddedInWebview:X})}})},"pe"),sBU=_.RT(function(D){D=D.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.S(_.c_,null):_.S(_.vK,{data:D},{buttonViewModel:_.TV})},"qe");_.ukb=new _.R6("DESKTOP_CURRENT_PAGE");var SV_=_.RT(function(D){var Y=D.data;var R=_.f("force_active_time_logging_webview"),Z=!1,t=new kh7,X=void 0,M=void 0,W=_.DH().resolve(J_E),z=new bRL,I=void 0,F=void 0,G=[],V=void 0,e=void 0,r=!1,l=!1,U=!1,K=!1,H=new _.Ta,c=_.DH().resolve(c_4),Q=_.DH().resolve(_.pp),E=_.DH().resolve(_.cD(em)),B,O=(B=_.DH().resolve(_.cD(_.ukb)))==null?void 0:B.getCurrentPage(),Wo=!1,Sb=0,VU=function(pM){pM.preventDefault();return pM.returnValue=""},AS;
D=_.a(_.ae(!((AS=_.FJ("yt-mini-app-is-audio-enabled"))!=null&&!AS),void 0,"cGaEvf"));var nM=D.next().value,Ho=D.next().value,KM;AS=_.a(_.ae(!((KM=_.FJ("exit-mini-app-seen-state"))==null||!KM),void 0,"DctXGe"));var Xb=AS.next().value,kE=AS.next().value;KM=_.a(_.ae(!1,void 0,"pU1jdd"));var SD=KM.next().value,co=KM.next().value;KM=_.a(_.ae(void 0,void 0,"ldLqDf"));var GE=KM.next().value,TE=KM.next().value;KM=_.a(_.ae(void 0,void 0,"mdofE"));var yV=KM.next().value,vu=KM.next().value;KM=_.a(_.ae(!0,void 0,
"T1gxCf"));var dz=KM.next().value,sy=KM.next().value;KM=_.a(_.ae(!1,void 0,"Dp92Vb"));var D_=KM.next().value,fL=KM.next().value;KM=_.a(_.ae(!1,void 0,"AsJEvf"));var zT=KM.next().value,eD=KM.next().value;KM=_.a(_.ae(void 0,void 0,"c55ogf"));var YK=KM.next().value,RK=KM.next().value;KM=_.a(_.ae(0,void 0,"UuaLqf"));var Dp=KM.next().value,az=KM.next().value,EL=_.dI("mini-app-container-view-model"),FE=function(){return Y().isEmbeddedInWebview},v4=function(){return Y().hasPlayNextShelf};
YM("yt-page-type-changed",function(pM){if(_.f("enable_is_mini_app_page_active_bugfix"))pM.detail.newPageSubtype==="mini_app"&&pM.detail.newPageType==="ytd-browse"||!dz()||Cj();else if(pM=_.I2o()==="mini_app",pM!==dz())if(sy(pM),pM){var GT;pM=(GT=Y().playableId)==null?void 0:GT.toString();pM!==void 0&&window.location.href.includes(pM)&&!l&&(K=!0,oz(),IJ.value&&AZ(IJ.value))}else pM||Cj()});
YM("yt-action",function(pM){pM.detail.actionName==="yt-engagement-panel-visible-changed"&&pM.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&pM.detail.args[2]==="PAmini_app_panel"&&Cj();_.f("enable_is_mini_app_page_active_bugfix")?pM.detail.actionName==="yt-history-load"&&!dz()&&(O==null?0:O.active)?(sy(!0),oz(),IJ.value&&AZ(IJ.value)):pM.detail.actionName==="yt-history-load"&&dz()&&!Y().isEmbeddedInWebview&&H4():dz()&&pM.detail.actionName==="yt-history-load"&&(K?K=!1:Y().isEmbeddedInWebview||
H4())});
_.w2(function(){e0()});
_.r2(function(){oz()},"gpydpe");
var oz=function(){var pM=Y().playableId,GT=Y().localReleaseId,lk=Y().derivedDeviceInterface;if(l)_.Jk(new _.AT("[MiniAppContainerViewModel] onEnter was called more than once"));else{l=!0;X=new FNU(pM,GT,lk,document.visibilityState==="visible");eCD(X);M=new qOU(pM);aZU(W,pM);y_z(z,{showMiniAppAdCommand:Y().showMiniAppAdCommand,isEmbeddedInWebview:Y().isEmbeddedInWebview,playLogger:X});ru$()&&(e=document.body.style.backgroundColor,_.KC(document.body,"background-color","black"));KI();kK();H=new _.Ta;
if(Y().isEmbeddedInWebview){if(pM=(new URLSearchParams(window.location.search)).get("postPlayNonce"))VWU(X,pM),Wo=!0;t.initialize({onAudioStateLoaded:function(uk){eY(uk)},
onMuteMiniApp:function(){eY(!1)},
onUnmuteMiniApp:function(){eY(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(uk){Wo||(VWU(X,uk),Wo=!0)},
confirmExitMiniApp:function(){var uk,M1,Q7;return _.C(function(kh){if(kh.nextAddress==1)return Y().confirmExitMiniAppCommand?kh.yield(Promise.race([H.promise,Promise.resolve(!1)]),2):kh.return();(uk=kh.yieldResult)?!Y().confirmExitMiniAppCommandEdu||(Q7=(M1=Xb)==null?void 0:M1())!=null&&Q7?aI(Y().confirmExitMiniAppCommand):(aI(Y().confirmExitMiniAppCommandEdu),_.I8("exit-mini-app-seen-state","true",2592E6)):aI(Y().closeMiniAppCommand);_.V9(kh)})},
onNativeBenchmarkingMessageReceived:function(uk){uk=Wob(_.opb(uk));if(_.es(uk,_.U0,3,aDD)){var M1=_.Ub(uk,_.U0,3,aDD),Q7=bTy();var kh=NC(Q7.getSeconds())-NC(M1.getSeconds());M1=_.ZC(Q7,2)-_.ZC(M1,2);kh<0&&M1>0?(kh+=1,M1-=1E9):kh>0&&M1<0&&(--kh,M1+=1E9);kh=(new pC).setSeconds(kh);kh=_.gb(kh,2,_.OL(M1),0);_.To(uk,1,kh)}var qI;(qI=F)==null||qI.returnNativeBenchmarkingMessage(uk)},
multiplayer3pAckStateLoaded:function(uk){H4(uk)},
exitMiniAppSeenStateLoaded:function(uk){Y().confirmExitMiniAppCommandEdu&&kE(uk)},
onNavigateToNewMiniApp:function(){aI(Y().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(uk){uk=new URLSearchParams(uk);var M1=void 0;uk.has("invite_code")&&(M1=new GXD,uk=uk.get("invite_code"),M1=_.ew(M1,1,uk));if(uk=M1){var Q7;(Q7=F)==null||Q7.sendGameData(uk)}},
onPauseMiniApp:function(){Z=!0;j0()},
onResumeMiniApp:function(){Z=!0;oI()},
onAdFinished:function(uk){z.onAdFinished(uk)}});
Y().showMultiplayer3pConsentDialogCommand||H.resolve(!0);aI(Y().onContainerReadyCommand)}else VWU(X),H.resolve(!0);HRz(M,GhU(X));GhU(X).then(function(uk){uk={miniAppPlayData:{postPlayNonce:uk}};var M1,Q7=(M1=Y().loggingDirectives)==null?void 0:M1.trackingParams;Q7&&_.n8().stateChanged(Q7,uk)});
pM=Y().showSignInDialogCommand;!Jvo()&&pM&&(_.I8("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),aI(pM));Y().confirmExitMiniAppCommand&&E&&(pM=$zn(Y().confirmExitMiniAppCommand))&&(E.customConfirmationCommand=pM)}},e0=function(){e&&_.KC(document.body,"background-color",e);
r=!1;V&&V.release();M.flush().catch(function(pM){_.Jk(pM)});
W.flush().catch(function(pM){_.Jk(pM)});
nJ1(X);il();F=void 0;MoY(c)},Cj=function(){sy(!1);
e0();co(!1);RK(void 0);TE(void 0);vu(void 0);Sb=0;az(0);l=!1},j0=function(){var pM;
(pM=F)==null||pM.onPause();V&&V.release();M.flush().catch(function(GT){_.Jk(GT)});
W.flush().catch(function(GT){_.Jk(GT)});
A_z(X);fL(!0)},oI=function(){var pM;
(pM=F)==null||pM.onResume();kK();pM=X;pM.isForeground=!0;gB(pM,"PLAY_EVENT_TYPE_PLAY_RESUME");fL(!1)},eY=function(pM){var GT;
(GT=F)==null||GT.onAudioToggled(pM);Ho(pM)},H4=function(pM){Y().showMultiplayer3pConsentDialogCommand&&(Y().isEmbeddedInWebview&&pM!==void 0&&H.resolve(pM),!pM&&_.I2o()==="mini_app"&&aI(Y().showMultiplayer3pConsentDialogCommand))},mh=function(){var pM,GT,lk,uk;
return _.C(function(M1){if(M1.nextAddress==1){!Y().isLivestream||Y().disableVideoCapture||(pM=F)!=null&&pM.sendStartGameFrameCapture();GT=(new URL(window.location.href)).searchParams;if(GT.has("invite_code")){var Q7=new GXD,kh=GT.get("invite_code");lk=_.ew(Q7,1,kh);(uk=F)==null||uk.sendGameData(lk)}SD()||(co(!0),Q7=X,Q7.state!==1?_.Jk(new _.AT("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+jwV[Q7.state])):(_.ux("mini_app_ids_without_game_ready").includes(Q7.JSC$16787_miniAppId)&&(Q7.gameReady=
!0),Q7.state=2,Q7.beforeReady=!1,Ee(Q7,"ma_ffr"),gB(Q7,"PLAY_EVENT_TYPE_PLAY_READY")));return M1.yield(H.promise,2)}aI(Y().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();Y().isEmbeddedInWebview||H4();_.V9(M1)})},QI=function(){var pM=X;
pM.gameReady=!0;Ee(pM,"ma_gr")},aJ=function(pM){var GT;
return _.C(function(lk){if(lk.nextAddress==1)return _.SX(lk,2),lk.yield(PLz(M,pM),4);if(lk.nextAddress!=2)return _.xw(lk,0);GT=_.Gl(lk);aI(Y().showSavingErrorPopupCommand);throw GT;})},ZO=function(){var pM,GT;
return _.C(function(lk){if(lk.nextAddress==1)return _.SX(lk,2),lk.yield(xhE(M),4);if(lk.nextAddress!=2)return pM=lk.yieldResult,lk.return(pM);GT=_.Gl(lk);aI(Y().showLoadingErrorDialogCommand);throw GT;})},TI=function(pM){X.logError(pM)},E1=function(pM,GT,lk){wY4(X,pM,GT,lk)},vD=function(pM,GT){vJz(X,pM,GT)},ch=function(){!R&&Y().isEmbeddedInWebview||_.YN();
r_V(X,!0);r||(window.addEventListener("beforeunload",VU,{capture:!0}),r=!0)},U9=function(pM){var GT,lk,uk,M1,Q7,kh,qI;
return _.C(function(fH){if(fH.nextAddress==1)return W&&(!I||I<pM)&&pM>0?fH.yield(CW1(W,pM),3):fH.jumpTo(0);GT=fH.yieldResult;lk=_.a(GT);uk=lk.next().value;M1=lk.next().value;Q7=uk;kh=M1;((qI=Q7)==null?0:qI.displayString)&&kh&&(TE(kh),vu(Q7.displayString));_.V9(fH)})},ol=function(pM){var GT=Y().onBenchmarkingMessageReceivedCommand;
if(GT){var lk=bTy();_.jf(pM,3,aDD,lk);hR(GT,z9b(pM))}},hS=function(pM){var GT=Y().onGameFrameReceivedCommand;
if(GT){var lk=new Jh;var uk=new RA7;var M1=bh(pM,1);uk=_.fI(uk,1,M1);pM=_.Np(pM,2);pM=_.ew(uk,2,pM);lk=_.To(lk,2,pM);hR(GT,XAY(lk))}},QU=function(pM){var GT=Y().onGameAudioDataReceivedCommand;
if(GT){var lk=new Jh;var uk=new tQ1;pM=_.Np(pM,1);uk=_.ew(uk,1,pM);lk=_.To(lk,4,uk);hR(GT,XAY(lk))}},Iz=function(){var pM=new URLSearchParams(window.location.search);
if(Y().isEmbeddedInWebview&&pM&&pM.get("override_hl")==="true"&&pM.get("hl"))return pM.get("hl");pM=document.documentElement.lang;return pM!==""?pM:_.PU},S0=function(pM){var GT=Y().onShareInviteCodeCommand;
if(GT)if(Y().isEmbeddedInWebview){var lk=new R4U;pM=_.ew(lk,1,pM);hR(GT,tFU(pM))}else lk=Y().inviteCodeShareClientParamIdentifier,c.clientParams.set(lk,{miniAppClientParams:{inviteCode:pM}}),aI(GT)},yB=function(pM){var GT,lk,uk;
return _.C(function(M1){if(M1.nextAddress==1)return GT=Y().onMiniAppOpenYtContentRequested,W&&_.f("enable_open_yt_content")&&GT?M1.yield(WH7(W,pM),3):M1.jumpTo(0);lk=M1.yieldResult;if(lk==="OK")if(Y().isEmbeddedInWebview){var Q7=new OfL;uk=Sq(Q7,2,lS,Wu(pM));hR(GT,YFD(uk))}else Q.clientData.set("video_id",pM),aI(GT);_.V9(M1)})},wb=function(pM){Sb+=_.ZC(pM,3);
pM=Math.min(Math.log(1+Sb/15E6*9)/Math.log(10),.99);az(pM);nL(pM)},nL=_.eU(function(pM){var GT=Y().updateLoadingProgressCommand;
if(GT){var lk=new OfL;pM=Sq(lk,3,lS,_.xE(pM));hR(GT,YFD(pM))}},100),A1=function(pM){return lPz(z,pM)},kK=function(){var pM,GT;
((pM=_.ajj())==null?void 0:(GT=pM.wakeLock)==null?void 0:GT.request)!=null&&_.ajj().wakeLock.request("screen").then(function(lk){V=lk}).catch(function(){})},IJ=_.io("iframe");
_.r2(function(){Y().isSupportedCountry&&(Jvo()||_.f("enable_sign_in_promo")||!Y().showSignInDialogCommand?IJ.value&&AZ(IJ.value):aI(Y().onMiniAppReadyCommand))},"HPyXid");
var Fb=function(){return _.S("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return SD()?0:-1},
el:IJ})},AZ=function(pM,GT){GT=GT===void 0?!1:GT;
var lk=tT();lk&&(GT||lk.toString()!==pM.getAttribute("src"))&&(F=q5U(Y().source,{isAudioEnabled:nM,onFirstFrameReady:mh,onGameReady:QI,onSave:aJ,onLoad:ZO,onError:TI,onSdkCalled:E1,onSdkPerformanceUpdate:vD,onClick:ch,onSendHighScore:U9,onBenchmarkingMessageReceived:ol,getLanguage:Iz,onShareInviteCode:S0,onResourceLoaded:wb,onOpenYTContent:yB,onShowMiniAppAd:A1,onGameFrameReceived:hS,onGameAudioReceived:QU},pM,lk),$C(pM,"load",function(){Ee(X,"ma_il");$C(pM,"load",function(){AZ(pM,!0)})}),_.x7(pM,
lk))},tT=function(){var pM=Y().url;
if(pM&&(pM=_.Ns(pM),pM!==null)){if(Y().source&&Y().source==="MINI_APP_SOURCE_GAMESNACKS")pM=_.sG(pM,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.f("enable_origin_query_parameter_bugfix")){var GT=_.oa(_.jqo(pM.toString()));GT=new URLSearchParams(GT||"");GT.set("origin",window.location.origin);GT=GT.toString();pM=_.n$(pM).toString();pM=_.Af(GEE.exec(pM)[0]+(GT.trim()?"#"+GT:""))}return pM}},hf=function(){var pM={};
pM=_.e7("yt-mini-app-container-view-model__loading-screen",(pM["yt-mini-app-container-view-model__loading-screen--fade-out"]=SD,pM));var GT=function(){return SD()?1:Dp()};
return _.S("div",{class:pM},_.S(_.vK,{data:function(){return Y().splashScreen}},{miniAppSplashScreenViewModel:function(lk){return _.S(ORD,{data:lk.data,
loadingProgress:GT})}}))},lM=function(){var pM={};
return _.S("div",{class:_.e7("yt-mini-app-container-view-model__pause-interstitial",(pM["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!D_()},pM["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=D_,pM))},_.S(_.vK,{data:function(){return Y().splashScreen}},{miniAppSplashScreenViewModel:function(GT){return _.S(ORD,{data:GT.data,
forPaused:!0})}}))},KI=function(){G=[];
G.push(_.yu(window,"visibilitychange",function(){U||Z&&FE()||(document.visibilityState==="visible"?oI():j0())}));
G.push(_.yu(window,"pagehide",function(){e0()}));
G.push(_.yu(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&EL.value.dispatchEvent(new Event("tap"))},0)}));
G.push(_.yu(EL.value,"pointerdown",function(){r_V(X,!1)},!0));
G.push(_.yu(EL.value,"pause",function(){U=!0;j0()}));
G.push(_.yu(EL.value,"play",function(){U=!1;oI()}));
G.push(_.yu(EL.value,"exit",function(){e0()}));
var pM=navigator.keyboard,GT=pM&&pM.lock;G.push(_.yu(window,llz,function(){eD(ka1());ka1()?(Y().hasPlayNextShelf&&Bc("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),IU("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),GT&&pM.lock(["Escape"])):(Y().hasPlayNextShelf&&IU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Bc("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),GT&&pM.unlock())}));
Y().showMultiplayer3pConsentDialogCommand&&G.push(_.yu(window,"yt-playables-ack-3p-data-usage",function(){zZV(W)}));
Y().confirmExitMiniAppCommandEdu&&G.push(_.yu(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.I8("exit-mini-app-seen-state","true",2592E6)}));
Y().onGameAudioDataReceivedCommand&&G.push(_.yu(window,"message",function(lk){lk=lk.event_;var uk,M1=(uk=IJ.value)==null?void 0:uk.src;if(M1&&lk.origin===(new URL(M1)).origin&&lk.data&&lk.data.type==="GAME_AUDIO"&&lk.data.audio&&lk.data.audio.length>0)if(_.f("enable_sending_unwrapped_game_audio_as_serialized_metadata"))NUb(Y().onGameAudioDataReceivedCommand,lk.data.audio);else{var Q7=new FileReader;Q7.onload=function(){var kh=new Jh;var qI=new tQ1;qI=_.ew(qI,1,Q7.result);kh=_.To(kh,4,qI);hR(Y().onGameAudioDataReceivedCommand,
XAY(kh))};
Q7.readAsDataURL(new Blob([lk.data.audio]))}}))},il=function(){G.forEach(function(pM){vL(pM)});
window.removeEventListener("beforeunload",VU,{capture:!0})},aI=function(pM){pM&&oYj(pM,Y().isEmbeddedInWebview||!1)},IU=function(pM,GT){pM=_.a(EL.value.getElementsByClassName(pM));
for(var lk=pM.next();!lk.done;lk=pM.next())lk.value.classList.add(GT)},Bc=function(pM,GT){pM=_.a(EL.value.getElementsByClassName(pM));
for(var lk=pM.next();!lk.done;lk=pM.next())lk.value.classList.remove(GT)};
return function(){var pM={};pM=_.e7("yt-mini-app-container-view-model",(pM["yt-mini-app-container-view-model--desktop"]=!0,pM["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return Y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},pM["yt-mini-app-container-view-model--ios-web-view"]=ru$(),pM["yt-mini-app-container-view-model--no-top-bar"]=function(){return!Y().topBar},pM["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return Y().hasPlayNextShelf},pM["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return Y().hasPlayNextShelf},pM["yt-mini-app-container-view-model--show-peek-below"]=function(){return!zT()&&Y().hasPlayNextShelf},pM));
var GT={};GT=_.e7("yt-mini-app-container-view-model__content",(GT["yt-mini-app-container-view-model__content--desktop-content"]=!0,GT["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return Y().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},GT["yt-mini-app-container-view-model--desktop-play-page"]=function(){return Y().hasPlayNextShelf},GT));
return _.S("mini-app-container-view-model",{el:EL},_.S("div",{class:pM},_.S(_.T,{cond:function(){return Y().topBar&&!zT()},
then:function(){return _.S(_.vK,{data:function(){return Y().topBar}},{miniAppTopBarViewModel:function(lk){return _.S(XTE,{data:lk.data,
isAudioEnabled:nM,onAudioToggled:function(uk){eY(uk)},
score:GE,formattedScore:yV,onScoreChanged:function(uk){I=uk},
isEmbeddedInWebview:FE,isSaved:YK,onSaveToggled:function(uk){RK(uk)},
isExitMiniAppSeen:Xb,isDesktopPlayPage:v4})}})}}),_.S("div",{class:GT},_.S(_.T,{cond:dz,
then:function(){return Fb()}}),_.S(_.T,{cond:function(){return Y().isLivestream},
then:function(){return lM()}}),_.S(_.T,{cond:function(){return!Y().isEmbeddedInWebview},
then:function(){return hf()}}))))}()},"re");
SV_.idomCompat=!0;_.at(SV_,"mini-app-container-view-model",{props:{data:_.cs}});var TA_=_.RT(function(D){var Y=D.data;return _.S("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.S("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.F4(function(){var R=Y().onTap;R&&_.BL(R)})},_.S(_.T,{cond:function(){return Y().icon},
then:function(R){return _.S(_.nB,{icon:function(){return R().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.S("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return Y().title})))},"se");
TA_.idomCompat=!0;var jB1=_.RT(function(D){var Y=_.dI("div"),R=_.a(_.ae(void 0,void 0,"kFCJ0c")),Z=R.next().value,t=R.next().value;R=_.a(_.ae(void 0,void 0,"PIPgWd"));var X=R.next().value,M=R.next().value;R=_.a(_.ae(void 0,void 0,"rV66ob"));var W=R.next().value,z=R.next().value,I=function(){var K=Z();return K!==void 0?Math.abs(K):void 0},F=function(){var K=I();
return K===void 0||K<=3},G=function(){var K=I();
var H=X(),c=W();K=K!==void 0&&H!==void 0&&c!==void 0?H-c-K:void 0;return K===void 0||K<=3},V=function(K){Y.value&&Y.value.scrollBy({top:0,
left:(_.JQ("HTML_DIR")==="rtl"?-1:1)*K*Y.value.clientWidth,behavior:"smooth"})},e=function(){var K;
t((K=Y.value)==null?void 0:K.scrollLeft);var H;M((H=Y.value)==null?void 0:H.scrollWidth);var c;z((c=Y.value)==null?void 0:c.clientWidth)},r=function(){V(-.5)},l=function(){V(.5)};
R=_.F4(function(){e()});
_.rf(function(){e();if(Y.value&&window.ResizeObserver){var K=new ResizeObserver(e);K.observe(Y.value);_.w2(function(){K.disconnect()})}});
var U={};return _.S("yt-sponsorships-scrollable-shelf",{class:_.e7("ytdSponsorshipsScrollableShelfHost",D.className)},_.S("div",{class:_.e7("ytdSponsorshipsScrollableShelfContent",(U.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return D.data().previousButton&&D.data().nextButton&&!F()&&!G()},U.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return D.data().previousButton&&!F()&&G()},U.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return D.data().nextButton&&
F()&&!G()},U)),
el:Y,"on:scroll":R},D.children),_.S(_.T,{cond:function(){return!F()},
then:function(){return _.S(_.vK,{data:function(){return D.data().previousButton}},{buttonViewModel:function(K){return _.S(_.TV,{data:K.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:r})}})}}),_.S(_.T,{cond:function(){return!G()},
then:function(){return _.S(_.vK,{data:function(){return D.data().nextButton}},{buttonViewModel:function(K){return _.S(_.TV,{data:K.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:l})}})}}))},"te");
jB1.idomCompat=!0;var FHL=_.RT(function(D){var Y=D.data;D={};return _.S("yt-sponsorships-hub",{class:_.e7("ytdSponsorshipsHubHost",(D.ytdSponsorshipsHubHostIndented=function(){return Y().indented},D))},_.S("div",{class:"ytdSponsorshipsHubHeader"},_.S("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.S("div",{class:"ytdSponsorshipsHubAvatar"},_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz})),_.S(_.T,{cond:function(){return Y().badgeImage},
then:function(R){return _.S("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.S("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.S("div",{class:"ytdSponsorshipsHubBadge"},_.S(_.Rt,{data:R,targetWidth:24,targetHeight:24,alt:""}))))}})),_.S("div",{class:"ytdSponsorshipsHubDetails"},_.S("div",{class:"ytdSponsorshipsHubTierName"},function(){return Y().tierName}),_.S("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return Y().membershipType}),_.S("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return Y().membershipDurationOrExpiry})),_.S("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.S(_.vK,{data:function(){return Y().manageButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.S(_.vK,{data:function(){return Y().actionMenuButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.S("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return Y().perksTitle}),_.S(jB1,{data:function(){return{previousButton:Y().previousPerkButton,
nextButton:Y().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.S("div",{class:"ytdSponsorshipsHubPerkCards"},_.S(_.vK,{data:function(){return Y().perkCards}},{sponsorshipsHubPerkCardViewModel:TA_}),_.S(_.T,{cond:function(){return Y().viewAllPerksButton},
then:function(R){return _.S(IZE,{data:R})}}))))},"ue");
FHL.idomCompat=!0;var IZE=_.RT(function(D){var Y=D.data;return _.S("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.S(_.vK,{data:function(){return Y().button}},{buttonViewModel:_.TV}),_.S("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.S("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return Y().title}),_.S("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return Y().subtitle})))},"ve");
IZE.idomCompat=!0;_.at(FHL,"yt-sponsorships-hub",{props:{data:_.cs}});_.Gu4=_.RT(function(D){var Y=D.data;return _.S("yt-dual-avatar-view-model",{class:_.e7("ytDualAvatarViewModelHost",D.className),style:_.Ap({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var R;return((R=Y().badgeCutoutRadius)!=null?R:14)+"px"}})},_.S("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.S(_.vK,{data:function(){return Y().startAvatar}},{avatarViewModel:_.Jz}),_.S(_.vK,{data:function(){return Y().endAvatar}},{avatarViewModel:_.Jz})),_.S(_.vK,{data:function(){return Y().badge}},
{contentPreviewImageViewModel:function(R){return _.S("div",{class:"ytDualAvatarViewModelBadge"},_.S(_.X2,{data:R.data}))}}))},"we");
_.Gu4.idomCompat=!0;var fZE=_.RT(function(D){var Y=D.data;var R,Z=!((R=_.DH().resolve(_.cD(_.O4)))==null||!R());D=_.Si(function(){var F,G,V=Z?(F=Y().header)==null?void 0:F.backgroundColorDarkMode:(G=Y().header)==null?void 0:G.backgroundColorLightMode;if(V!==void 0)return _.xI(V)},void 0,"UX2G6c");
R=_.Si(function(){var F,G;return Z?(F=Y().header)==null?void 0:F.backgroundImagePart1Dark:(G=Y().header)==null?void 0:G.backgroundImagePart1Light},void 0,"GPAi1d");
var t=_.Si(function(){var F,G;return Z?(F=Y().header)==null?void 0:F.backgroundImagePart2Dark:(G=Y().header)==null?void 0:G.backgroundImagePart2Light},void 0,"nboJld"),X=_.Si(function(){return _.JQ("HTML_DIR")==="rtl"},void 0,"LGJceb"),M=_.dI("yt-sponsorships-perks-list"),W=!1,z=function(){var F=M.value;
if(F&&!W){var G,V=(G=F.parentElement)==null?void 0:G.parentElement;if(V)for(F=F.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),G=0;G<F.length;++G){var e=F[G];if(e instanceof HTMLElement){V.scrollTo({top:e.offsetTop+e.clientHeight/2-V.clientHeight/2,behavior:"smooth"});W=!0;break}}}};
_.$s(function(){var F=M.value;if(F&&window.ResizeObserver){var G=new ResizeObserver(z);G.observe(F);_.w2(function(){G.disconnect()})}});
var I={};return _.S("yt-sponsorships-perks-list",{el:M,class:_.e7("ytdSponsorshipsPerksListHost",(I.ytdSponsorshipsPerksListHorizontalPadding=function(){return Y().horizontalPaddingEnabled},I))},_.S("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.S("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Ap({"background-color":D})},_.S("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.S(_.T,{cond:R,then:function(F){var G={};return _.S("div",{class:_.e7((G.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,G.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,G.ytdSponsorshipsPerksListFlipped=X,G))},_.S(_.Rt,{data:F,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.S("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.S(_.T,{cond:t,
then:function(F){var G={};return _.S("div",{class:_.e7((G.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,G.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,G.ytdSponsorshipsPerksListFlipped=X,G))},_.S(_.Rt,{data:F,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.S("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.S(_.vK,{data:function(){var F;
return(F=Y().header)==null?void 0:F.dualAvatar}},{dualAvatarViewModel:_.Gu4})))),_.S("div",{class:"ytdSponsorshipsPerksListBody"},_.S("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return Y().title}),_.S(_.T,{cond:function(){return Y().perks},
then:function(F){return _.S(_.G6,{each:F},function(G,V){var e={};return _.S("div",{class:_.e7("ytdSponsorshipsPerksListPerkContainer",(e.ytdSponsorshipsPerksListSelectedPerk=function(){var r=V(),l=Y().selectedPerkIndex;return r===l},e))},_.S(_.T,{cond:function(){return V()>0},
then:function(){return _.S("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.S("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.S(_.T,{cond:function(){return G.icon},
then:function(r){return _.S(_.nB,{icon:function(){return r().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.S("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.S("div",{class:"ytdSponsorshipsPerksListPerkTitle"},G.title),_.S("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.S(_.y_,{text:G.description})),_.S(_.T,{cond:function(){return G.instructions},
then:function(){var r,l;return _.S("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.S("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(r=G.instructions)==null?void 0:r.title),_.S("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.S(_.y_,{text:(l=G.instructions)==null?void 0:l.text})))}}))),_.S(_.T,{cond:function(){return G.emoji},
then:function(r){return _.S("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.S(_.G6,{each:function(){return r()}},function(l){return _.S(_.Rt,{data:l,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.S(Vo7,{data:G}))})}})))},"xe");
fZE.idomCompat=!0;var Vo7=_.RT(function(D){var Y=D.data;var R=function(M,W){return M===W},Z=function(){var M=Y();
M=_.A(M==null?void 0:M.badgesShelf,aYU);return M!==void 0&&M!==null?M:{previousButton:{},nextButton:{}}},t=_.io("div"),X=function(){var M=t.value;
if(M){var W=M.parentElement;if(W){M=M.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var z=0;z<M.length;++z){var I=M[z];if(I instanceof HTMLElement){W.scrollTo({left:I.offsetLeft+I.clientWidth/2-W.clientWidth/2,behavior:"instant"});break}}}}};
_.$s(function(){var M=t.value;if(M){var W=new ResizeObserver(X);W.observe(M);_.w2(function(){W.disconnect()})}});
return _.S("div",null,_.S(_.T,{cond:function(){return Y().badges},
then:function(M){return _.S(jB1,{data:Z},_.S("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:t},_.S(_.G6,{each:function(){return M()}},function(W,z){var I={},F={},G={};
return _.S("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.S(_.T,{cond:function(){return z()>0},
then:function(){return _.S("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.S("div",{class:_.e7("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(I.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return R(z(),Y().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!R(z(),Y().currentBadgeIndex)},I))},_.S("div",{class:_.e7("ytdSponsorshipsPerksListLoyaltyBadge",(F.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return R(z(),
Y().currentBadgeIndex)},F.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!R(z(),Y().currentBadgeIndex)},F))},_.S(_.T,{cond:function(){return W.image},
then:function(V){var e={};return _.S("div",{class:_.e7((e.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return R(z(),Y().currentBadgeIndex)},e.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!R(z(),Y().currentBadgeIndex)},e))},_.S(_.Rt,{data:V,
alt:""}))}})),_.S("div",{class:_.e7("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(G.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return R(z(),Y().currentBadgeIndex)},G))},W.title)))})))}}))},"ye");
Vo7.idomCompat=!0;_.at(fZE,"yt-sponsorships-perks-list",{props:{data:_.cs}});_.at(_.RT(function(D){return _.S("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.S(_.T,{cond:function(){return D.data().image},
then:function(Y){return _.S(_.Rt,{className:"ytwFantasyEmptyStateViewModelImage",data:Y,ariaHidden:!0,alt:""})}}),_.S(_.y_,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return D.data().title}}),_.S(_.y_,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return D.data().subtitle}}),_.S(_.vK,{data:function(){return D.data().primaryButton}},{buttonViewModel:function(Y){return _.S(_.TV,{data:Y.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ze"),"ytw-fantasy-empty-state-view-model",{props:{data:_.cs}});var eZL;var EYU=_.bE({buttonRenderer:_.dO});_.tN(gYo);var AMU=_.RT(function(D){var Y=D.data;var R=D.uniqueId;var Z=D.overrides;D=_.Si(function(){var t,X=((t=Y().timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:R(),timings:X,experimentEnabled:X.length>0,enabled:X.length>0}},void 0,"xqyfv");
return _.S("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.S(qV,{settings:D},_.S(_.vK,{data:function(){return Y().buttonRenderer}},{buttonRenderer:function(t){return _.S(_.dO,{data:t.data,
buttonOverrides:Z})}})))},"Ae"),niL=_.f("web_enable_sink_timed_animation_button_renderer_ks")?gYo:AMU,rM_=_.f("web_enable_sink_timed_animation_button_renderer_ks")?_.Vv(gYo):AMU;
AMU.idomCompat=!0;_.f("web_enable_sink_timed_animation_button_renderer_ks")?_.It(niL,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]}):_.at(rM_,"timed-animation-button-renderer",{props:{data:_.cs,uniqueId:_.cs,overrides:_.cs}});var RV=function(){var D=_.N.apply(this,arguments)||this;D.hideJoinButtonBeforeSubscribed=_.f("hide_join_button_before_subscribed");D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return D};
_.n(RV,_.N);_.u=RV.prototype;_.u.hasShowDialogCommand=function(D){return!!_.A(D,Tmz)};
_.u.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"}}}};
_.u.updateJoinButtonOverrides=function(){var D,Y;(D=_.aU(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(Y=D.polymerController)==null||Y.set("overrides",this.joinButtonOverrides);if(D=_.aU(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))D.overrides=this.joinButtonOverrides};
_.u.handleButtonRefreshAction=function(D){if(D=_.A(D,VU7))this.set("data.membershipButton",D.membershipButton),this.notifyPath("data.membershipButton")};
_.u.onYtServiceRequestError=function(D){_.iI(this.hostElement,D.detail.error.message)};
_.u.onKeydown=function(D){if(D.key==="Enter"){var Y;(Y=this.data)!=null&&Y.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.u.handleUnsubscribeAction=function(){var D,Y,R;((D=this.data)==null?void 0:(Y=D.membershipButton)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.style)==="STYLE_PRIMARY"&&_.aU(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.YF.Object.defineProperties(RV.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.subscriptionStateEntity)==null||!D.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var D,Y=(D=this.data)==null?void 0:D.membershipButton,R;D=(Y==null?void 0:Y.buttonRenderer)||_.A(Y==null?void 0:(R=Y.timedAnimationButtonRenderer)==null?void 0:R.buttonRenderer,_.qv);return(D==null?void 0:D.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(D==null?void 0:D.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(D==null?void 0:D.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return"button"}}});
RV.prototype.onYtServiceRequestError=RV.prototype.onYtServiceRequestError;RV.prototype.updateJoinButtonOverrides=RV.prototype.updateJoinButtonOverrides;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],RV.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],RV.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.kl),_.x("design:type",Object)],RV.prototype,"ironButtonState",void 0);_.q([_.y(),_.x("design:type",Object)],RV.prototype,"data",void 0);_.q([_.b("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],RV.prototype,"hideJoin",null);
_.q([_.y(),_.x("design:type",String)],RV.prototype,"subscribeKey",void 0);_.q([_.y({selectorArgs:["subscribeKey"],selector:yAU}),_.x("design:type",Object)],RV.prototype,"subscriptionStateEntity",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],RV.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.q([_.b("subscriptionStateEntity"),_.y({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],RV.prototype,"subscribed",null);
_.q([_.b("subscribed","data.membershipButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],RV.prototype,"joinButtonOverrides",null);_.q([_.b("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],RV.prototype,"channelNameTabIndex",null);_.q([_.b("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],RV.prototype,"channelNameRole",null);
_.q([_.Gm("joinButtonOverrides"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RV.prototype,"updateJoinButtonOverrides",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],RV.prototype,"onYtServiceRequestError",null);_.q([_.h({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],RV);
var wTU=_.WL()(RV,"ytd-video-owner-renderer",function(){if(eZL===void 0){var D=document.createElement("template");_.w(D,'\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"><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><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"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" 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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);eZL=D}D=eZL;return D},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.at(_.RT(function(D){var Y=D.data;var R;D=_.a(_.ae(!((R=_.FJ("yt-mini-app-is-theater-mode-enabled"))==null||!R),void 0,"CtFFDf"));var Z=D.next().value,t=D.next().value;R=_.a(_.ae(!1,void 0,"pRgDfb"));var X=R.next().value,M=R.next().value;_.$s(function(){var I=_.yu(window,llz,function(){M(ka1())});
_.w2(function(){vL(I)})});
var W;R=(W=_.DH().resolve(_.cD(pqL)))!=null?W:function(){return _.S("div",null)};
_.gI("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){t(!0);_.I8("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.gI("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){t(!1);_.I8("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
W={};D={};var z={};return _.S("mini-app-play-page-renderer",{class:_.e7("miniAppPlayPageRendererHost",(W.miniAppPlayPageRendererHostDetailsView=function(){return!Z()},W))},_.S("div",{class:_.e7("miniAppPlayPageRendererGameContainer",(D.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Z()},D))},_.S(_.vK,{data:function(){return Y().containerViewModel}},{miniAppContainerViewModel:SV_}),_.S(_.T,{cond:function(){return Y().channel&&Y().subscribeButton},
then:function(){var I={};return _.S("div",{class:_.e7("miniAppPlayPageRendererChannelContainer",(I.miniAppPlayPageRendererHideVisibility=function(){return X()},I))},_.S(_.vK,{data:function(){return Y().channel}},{videoOwnerRenderer:function(F){return _.S(wTU,{data:F.data})}}),_.S(_.vK,{data:function(){return Y().subscribeButton}},{subscribeButtonViewModel:function(F){return _.S(_.J7,{data:F.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.S(_.T,{cond:function(){return!Z()&&Y().description},
then:function(){var I={};return _.S("div",{class:_.e7("miniAppPlayPageRendererMiniAppDescriptionWrapper",(I.miniAppPlayPageRendererHideVisibility=function(){return X()},I))},_.S("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return Y().description}))}})),_.S("div",{class:_.e7("miniAppPlayPageRendererPlayNextContainer",(z.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Z()},z.miniAppPlayPageRendererHideVisibility=function(){return X()},z))},_.S(_.vK,{data:function(){return Y().sectionList}},
{sectionListRenderer:R})))},"Be"),"mini-app-play-page-renderer",{props:{data:_.cs}});var Zt=function(){var D=_.N.apply(this,arguments)||this;D.isSearch=!1;D.isConstrainedList=!1;D.hasChipsBar=!1;D.inReplyPanel=!1;D.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"}};D.monitorScroll=!0;D.SCROLL_ANIMATION_DURATION_MS=300;D.nextContinuation={continuationType:"sectionListContinuation"};return D};
_.n(Zt,_.N);_.u=Zt.prototype;
_.u.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(D){switch(D.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:_.f("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.f("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.u.created=function(){var D=this;this.JSC$16929_scrollAnimation=new _.Bi(function(Y){D.hostElement.scrollTop=Y})};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.u.getItemsPath=function(){return"data.contents"};
_.u.replacePrimaryContent=function(D){this.set("data.contents",D)};
_.u.computeHasSortFilter=function(D){return!!D&&!!D.sortFilterSubMenuRenderer};
_.u.computeShouldScrollInPanel=function(D){var Y;return!!(D==null?0:(Y=D.scrollPaneStyle)==null?0:Y.scrollable)};
_.u.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Cr(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.u.scrollToTop=function(){this.hostElement.scrollTop=0};
_.u.scrollToItemSection=function(D){if(D=this.getItemByIdentifier(D))D=this.getScrollPositionForItem(D),this.hostElement.scrollTop!==D&&this.JSC$16929_scrollAnimation.start(this.hostElement.scrollTop,D,this.SCROLL_ANIMATION_DURATION_MS)};
_.u.getItemByIdentifier=function(D){var Y=this.contents.querySelectorAll("ytd-item-section-renderer");if(Y&&Y.length!==0){var R=Array.from(Y).findIndex(function(Z){return Z.sectionIdentifier===D});
return Y[R===-1?0:R]}};
_.u.getScrollPositionForItem=function(D){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===D)return 0;D=_.UG(D).y+this.hostElement.scrollTop-_.UG(this.hostElement).y;return Math.min(D,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.YF.Object.defineProperties(Zt.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.targetId)==="browse-feedFEclips"}}});
Zt.prototype.onScroll=Zt.prototype.onScroll;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],Zt.prototype,"ytLazyListBehavior",void 0);_.q([_.v(_.Bz.YtNextContinuationBehavior),_.x("design:type",Object)],Zt.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.v(_.CLU),_.x("design:type",Object)],Zt.prototype,"ytBooleanLogicBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],Zt.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zt.prototype,"data",void 0);_.q([_.y({value:2}),_.x("design:type",Number)],Zt.prototype,"initialCount",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],Zt.prototype,"autoFill",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.x("design:type",Boolean)],Zt.prototype,"hasSortFilter",void 0);_.q([_.y({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.x("design:type",Boolean)],Zt.prototype,"hideBottomSeparator",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.x("design:type",Boolean)],Zt.prototype,"shouldScrollInPanel",void 0);
_.q([_.y(),_.x("design:type",Object)],Zt.prototype,"isSearch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Zt.prototype,"isConstrainedList",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Zt.prototype,"responsiveSizing",void 0);_.q([_.y(),_.x("design:type",Object)],Zt.prototype,"hasChipsBar",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Zt.prototype,"pageSubtype",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zt.prototype,"engagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zt.prototype,"liveChatEngagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Zt.prototype,"inReplyPanel",void 0);_.q([_.fr("#action-button"),_.x("design:type",HTMLElement)],Zt.prototype,"actionButton",void 0);_.q([_.y(),_.x("design:type",Object)],Zt.prototype,"scrollUpButtonData",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zt.prototype,"engagementPanelDropdown",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Zt.prototype,"engagementPanelDialog",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zt.prototype,"isClipList",null);_.q([_.fr("#contents"),_.x("design:type",HTMLElement)],Zt.prototype,"monitorScrollElement",void 0);_.q([_.fr("#contents"),_.x("design:type",HTMLElement)],Zt.prototype,"contents",void 0);
_.q([_.Fv("scroll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zt.prototype,"onScroll",null);_.q([_.h({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Zt);
var $nE=_.WL()(Zt,"ytd-section-list-renderer",function(){if(BFL===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);BFL=D}D=BFL;return D},{mode:1});var viz;var oiU;var b7U;var yM7;var ty=function(){return _.N.apply(this,arguments)||this};
_.n(ty,_.N);ty.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ty.prototype.onLikeButtonClick=function(D){D.stopPropagation();D.preventDefault()};
_.YF.Object.defineProperties(ty.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.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)})}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ty.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],ty.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ty.prototype,"ytRendererStamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ty.prototype,"data",void 0);
_.q([_.y({selectorArgs:["data.likeStatusEntityKey"],selector:HN}),_.x("design:type",Object)],ty.prototype,"likeStatusEntity",void 0);_.q([_.b("data","likeStatusEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],ty.prototype,"likeButtonRenderer",null);_.q([_.h({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ty);
_.L(ty,"ytd-slim-metadata-toggle-button-renderer",function(){if(yM7!==void 0)return yM7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return yM7=D},{mode:1});var sE=function(){var D=_.N.apply(this,arguments)||this;D.minimizePipBreakages=_.f("web_pip_minimize_breakages");D.showEqualizer=_.f("web_enable_playlist_video_lockup_equalizer");D.watchColorUpdate=_.f("kevlar_watch_color_update");D.actionMap={};return D};
_.n(sE,_.N);_.u=sE.prototype;_.u.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.u.computeEditableClass=function(D){return D&&D.menu?"editable":""};
_.u.computeSelected=function(D){return!(D==null||!D.selected)};
_.u.computeUseColorPalette=function(D){return!!((D==null?0:D.lightColorPalette)&&(D==null?0:D.darkColorPalette))};
_.u.computeLargerPlaylistThumbs=function(D,Y){return _.f("web_enable_playlist_bigger_thumbnails")&&!Y};
_.u.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.u.onYtServiceRequestSent=function(D,Y){Y.endpoint&&this.isHideEnclosingAction(Y.endpoint)&&!this.selected&&LCL(_.EH(),this.data.videoId)};
_.u.isHideEnclosingAction=function(D){var Y=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",D);D=this.get("likeEndpoint.status",D)==="INDIFFERENT";return Y||D};
_.u.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.u.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.YF.Object.defineProperties(sE.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.withinMiniplayer&&((D=this.data)==null?0:D.actionButtons))}}});
sE.prototype.onYtServiceRequestSent=sE.prototype.onYtServiceRequestSent;sE.prototype.canReorderChanged=sE.prototype.canReorderChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],sE.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.gM),_.x("design:type",Object)],sE.prototype,"ytdLockupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sE.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"withinMiniplayer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],sE.prototype,"minimizePipBreakages",void 0);_.q([_.y({computed:"computeSelected(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"selected",void 0);
_.q([_.y({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"useColorPalette",void 0);_.q([_.y({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"largerPlaylistThumbs",void 0);_.q([_.y(),_.x("design:type",Object)],sE.prototype,"showEqualizer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"canReorder",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"touchPersistentDragHandle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],sE.prototype,"handleIsHovered",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],sE.prototype,"watchColorUpdate",void 0);_.q([_.y(),_.x("design:type",String),_.x("design:paramtypes",[])],sE.prototype,"reorderIcon",null);
_.q([_.b("largerPlaylistThumbs"),_.x("design:type",Number),_.x("design:paramtypes",[])],sE.prototype,"thumbnailWidth",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sE.prototype,"showActionButtons",null);_.q([_.rd("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sE.prototype,"canReorderChanged",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],sE.prototype,"onYtServiceRequestSent",null);_.q([_.h({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],sE);
_.L(sE,"ytd-playlist-panel-video-renderer",function(){if(b7U!==void 0)return b7U;var D=document.createElement("template");_.w(D,'\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    </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="" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return b7U=D},{mode:2});var XX=function(){return _.N.apply(this,arguments)||this};
_.n(XX,_.N);XX.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XX.prototype,"data",void 0);_.q([_.h({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],XX);
_.L(XX,"ytd-playlist-panel-supported-items",function(){if(oiU!==void 0)return oiU;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return oiU=
D},{mode:1});JjE=!0;dPU("\\P{N}");var dzS;var NAE=_.fX("END_OF_PLAYLIST",void 0,"End of playlist"),lZ1=_.fX("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),uV=function(){var D=_.N.apply(this,arguments)||this;D.minimizePipBreakages=_.f("web_pip_minimize_breakages");D.updatedCoursePanel=_.f("move_three_dot_menu_to_playlist_panel_header_for_courses");D.hideHeaderText=!1;D.useColorPalette=!1;D.collapsed=!1;D.collapsedPreServerOverride="not_tracked";D.isHovered=!1;D.modernPanels=_.f("kevlar_watch_modern_panels");
D.expandLabel=_.fX("MINIPLAYER_EXPAND_LABEL");D.collapseLabel=_.fX("MINIPLAYER_COLLAPSE_LABEL");D.isFloating=!1;D.metaPanel=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};D.currentIndex=void 0;return D};
_.n(uV,_.N);_.u=uV.prototype;
_.u.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"}}}};
_.u.created=function(){this.scrollThrottle=new _.gq(this.onThrottledScroll,1E3,this)};
_.u.onMouseEnter=function(){this.isHovered=!0};
_.u.onMouseLeave=function(){this.isHovered=!1};
_.u.computeOverflowMenuData=function(D){return D&&D.menu?D.menu:null};
_.u.computeCollapsible=function(D){return!D};
_.u.computeHasPlaylistButtons=function(D){return!(!D||!D.playlistButtons)};
_.u.computeHasSeparateSaveButton=function(D){return!(!D||!D.saveButton)};
_.u.computeHasToolbarButton=function(D,Y){return!(!D||!(Y||D.saveButton||D.menu))};
_.u.computePlaylistType=function(D){if(D&&D.playlistId)return D.playlistId.substring(0,4)};
_.u.computeCanReorder=function(D){return D?D.playlistId&&D.playlistId.startsWith("TLPQ")?!0:!!D.isEditable&&!D.isInfinite:!1};
_.u.attached=function(){var D=this;try{_.DH().resolve(_.xW).setPlaylistComponent(this.hostElement)}catch(Y){if(_.f("kevlar_park_on_playlist_token_killswitch"))throw Y;_.Q0().parkOrScheduleJob(function(){_.DH().resolve(_.xW).setPlaylistComponent(D.hostElement)},2,"ci")}_.Xa(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.u.detached=function(){_.ui(this.hostElement)};
_.u.computeTrailingIcon=function(D,Y,R){return R?Y?"yt-icons:collapse":"yt-icons:close":Y?"yt-icons:expand":_.f("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.u.computeIndexMessage=function(D,Y){return cvi(D+1)+" / "+cvi(Y)};
_.u.onRenderStamperFinished=function(){if(this.scrollForStampDom){var D=!0;this.isHovered&&(D=!1);if(this.collapsed||this.hidden)D=!1;D&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.u.collapseChanged=function(){var D=this;this.collapsed||(_.$c(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.u.hiddenChanged=function(){var D=this;this.hidden||_.$c(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()})};
_.u.setupReordering=function(){var D=_.aU(this.hostElement).querySelector("#items");Inz?_.COV(this.ytReorderableBehavior,D,D,"playlist-drag-handle"):_.COV(this.ytReorderableBehavior,D,D)};
_.u.scrollToCurrentVideo=function(){var D=this;_.yc.addJob(function(){var Y=_.aU(D.hostElement).querySelector("#items");if(Y){Y.style.setProperty("padding-bottom","");var R=_.aU(D.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(R){Y=R.parentElement||_.$r(document);var Z=Y||_.$r(document);var t=_.UG(R),X=_.UG(Z),M=_.M0_(Z);if(Z==_.$r(document)){var W=t.x-Z.scrollLeft;t=t.y-Z.scrollTop}else W=t.x-X.x-M.left,t=t.y-X.y-M.top;R=s9z(R);X=Z.clientHeight-
R.height;M=Z.scrollLeft;var z=Z.scrollTop;M+=W-(Z.clientWidth-R.width)/2;Z=new _.lm(M,z+(t-X/2));Y.scrollLeft=Z.x;Y.scrollTop=Z.y}}},8)};
_.u.dataChanged=function(){var D=this;_.MaL(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.cy(this,function(){_.Ak(D.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty();D.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.u.onFullBleedPlayerChanged=function(){_.f("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.u.onFullscreenChanged=function(){_.f("web_watch_imax_theater_mode")||_.f("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.u.updateNowPlayingOverlay=function(){_.f("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.u.onPlaylistLockupNowPlaying=function(D,Y){Y&&(this.activeNowPlayingRenderer=Y);this.updateNowPlayingOverlay()};
_.u.onScroll=function(){this.scrollThrottle.fire()};
_.u.onThrottledScroll=function(){var D=this;_.Ak(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty()})};
_.u.onToggleExpanded=function(D){!this.collapsible||D&&(_.cG(D).tagName==="A"||_.Yc(_.O$(D),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.u.setCollapsed=function(D){this.collapsible&&(this.collapsed=D,_.WC(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.u.handleCollapsedFromData=function(D){if(D){var Y=D.playlistPanelCollapseState;Y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||Y==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),Y=Y==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==Y&&this.setCollapsed(Y)):this.currentPlaylistId!==D.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(Y=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==Y&&this.setCollapsed(Y),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=D.playlistId}};
_.u.handleDrop=function(D){var Y=D.currDragItem;D=Y.data.playlistSetVideoId;var R=_.Uy(Y.parentNode.childNodes,Y),Z=void 0;R>0&&(Z=Y.parentNode.childNodes[R-1].data.playlistSetVideoId);Y=_.EH();if(Y.responsePlaylistData&&Y.responsePlaylistData.contents){var t=RNU(D,Y.responsePlaylistData);Y.responsePlaylistData=(0,_.y7.unsafeClone)(Y.responsePlaylistData);ySi(Y.responsePlaylistData.contents,t,R);Y.queueProxy?TSL(Y.queueProxy,t,R,D,Z):Y.playlistProxy&&TSL(Y.playlistProxy,t,R,D,Z);_.gm(Y,_.dm(Y,Y.response?
Y.response.autoplayRenderer:void 0))}};
_.u.handleDarkModeChange=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.u.colorPaletteChanged=function(){var D,Y=((D=this.data)==null?void 0:D.contents)||[],R;D=_.a(Y);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var Z=void 0;if((Z=Y.playlistPanelVideoRenderer)==null?0:Z.selected){D=Y.playlistPanelVideoRenderer;Z=Y=void 0;(R=this.isDarkTheme?(Y=D)==null?void 0:Y.darkColorPalette:(Z=D)==null?void 0:Z.lightColorPalette)&&_.Jp(this.hostElement,R);break}}this.useColorPalette=!!R};
_.YF.Object.defineProperties(uV.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.playlistId)&&!((Y=this.data)==null||!Y.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var D=_.DH().resolve(_.cD(_.xW)),Y;if(((Y=this.data)==null?0:Y.contents)&&(D==null?0:D.hasAutoplayData())){var R;if(((R=this.playlistLoopStateEntity)==null?void 0:R.state)==="PLAYLIST_LOOP_STATE_ONE"){if(D=this.data.currentIndex,D!==void 0){var Z,t;var X=(Z=this.data.contents[D])==null?void 0:(t=Z.playlistPanelVideoRenderer)==null?void 0:t.title}}else{var M,W=(M=_.A(D.getAutoplayEndpoint(),_.Od))==null?void 0:M.videoId,z,I;X=(z=this.data.contents.find(function(F){var G;
return((G=F.playlistPanelVideoRenderer)==null?void 0:G.videoId)===W}))==null?void 0:(I=z.playlistPanelVideoRenderer)==null?void 0:I.title}return X}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.nextVideoLabel?this.nextVideoTitle?_.OM(this.data.nextVideoLabel)+":":NAE:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.f("web_mix_long_byline_from_data"))return _.i0(lZ1);var Y;return(Y=this.data)==null?void 0:Y.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.playlistButtons)==null?void 0:(R=Y.menuRenderer)==null?void 0:R.topLevelButtons;if(Z)for(D=_.a(Z),Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.playlistLoopButtonRenderer)return Y.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.collapsed&&((D=this.data)==null?0:D.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
uV.prototype.colorPaletteChanged=uV.prototype.colorPaletteChanged;uV.prototype.onPlaylistLockupNowPlaying=uV.prototype.onPlaylistLockupNowPlaying;uV.prototype.updateNowPlayingOverlay=uV.prototype.updateNowPlayingOverlay;uV.prototype.onFullscreenChanged=uV.prototype.onFullscreenChanged;uV.prototype.onFullBleedPlayerChanged=uV.prototype.onFullBleedPlayerChanged;uV.prototype.dataChanged=uV.prototype.dataChanged;uV.prototype.hiddenChanged=uV.prototype.hiddenChanged;uV.prototype.collapseChanged=uV.prototype.collapseChanged;
uV.prototype.onRenderStamperFinished=uV.prototype.onRenderStamperFinished;uV.prototype.onMouseLeave=uV.prototype.onMouseLeave;uV.prototype.onMouseEnter=uV.prototype.onMouseEnter;_.q([_.v(_.l_),_.x("design:type",Object)],uV.prototype,"ironResizableBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(ufY.YtPlaylistPanelBehavior),_.x("design:type",Object)],uV.prototype,"ytPlaylistPanelBehavior",void 0);_.q([_.v(_.tV.YtTaskEmitterBehavior),_.x("design:type",Object)],uV.prototype,"ytTaskEmitterBehavior",void 0);_.q([_.v(_.WG1),_.x("design:type",Object)],uV.prototype,"ytReorderableBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],uV.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],uV.prototype,"ytdReduxBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],uV.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],uV.prototype,"autoplayData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],uV.prototype,"withinMiniplayer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"minimizePipBreakages",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"updatedCoursePanel",void 0);_.q([_.y({computed:"setMenuData_(data)"}),_.x("design:type",Object)],uV.prototype,"menuRendererData",void 0);_.q([_.y({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],uV.prototype,"overflowMenuDataTopRow",void 0);_.q([_.y({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],uV.prototype,"overflowMenuData",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"hideHeaderText",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"useColorPalette",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.x("design:type",Boolean)],uV.prototype,"collapsible",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"collapsed",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],uV.prototype,"hidden",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.x("design:type",Boolean)],uV.prototype,"hasPlaylistButtons",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.x("design:type",Boolean)],uV.prototype,"hasSeparateSaveButton",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.x("design:type",Boolean)],uV.prototype,"hasToolbar",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.x("design:type",String)],uV.prototype,"playlistType",void 0);_.q([_.y(),_.x("design:type",Object)],uV.prototype,"isHovered",void 0);_.q([_.y({selectorArgs:["playlistLoopStateEntityKey"],selector:_.KGM}),_.x("design:type",Object)],uV.prototype,"playlistLoopStateEntity",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"modernPanels",void 0);_.q([_.y({value:56}),_.x("design:type",Number)],uV.prototype,"scrollMargin",void 0);_.q([_.y({computed:"computeCanReorder(data)"}),_.x("design:type",Boolean)],uV.prototype,"canReorder",void 0);_.q([_.y(),_.x("design:type",Object)],uV.prototype,"expandLabel",void 0);_.q([_.y(),_.x("design:type",Object)],uV.prototype,"collapseLabel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"isFloating",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uV.prototype,"metaPanel",void 0);_.q([_.y({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.x("design:type",String)],uV.prototype,"trailingIcon",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],uV.prototype,"isDarkTheme",void 0);
_.q([_.y({selector:_.Kh}),_.x("design:type",Boolean)],uV.prototype,"miniplayerIsActive",void 0);_.q([_.y({selector:function(D){return D.watch.playerState}}),
_.x("design:type",Number)],uV.prototype,"playerState",void 0);_.q([_.y({selector:_.LB}),_.x("design:type",Boolean)],uV.prototype,"isFullscreen",void 0);_.q([_.y({selector:_.hp}),_.x("design:type",Boolean)],uV.prototype,"isTheaterMode",void 0);_.q([_.y(),_.x("design:type",Object)],uV.prototype,"activeNowPlayingRenderer",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uV.prototype,"moveThreeDotMenuToTopRow",null);
_.q([_.b("data","autoplayData","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],uV.prototype,"nextVideoTitle",null);_.q([_.b("data","nextVideoTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],uV.prototype,"nextVideoLabel",null);_.q([_.b("collapsed"),_.x("design:type",String),_.x("design:paramtypes",[])],uV.prototype,"buttonAriaLabel",null);
_.q([_.b("data","playlistId","longBylineText"),_.x("design:type",Object),_.x("design:paramtypes",[])],uV.prototype,"mixLongByLine",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uV.prototype,"playlistLoopStateEntityKey",null);_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"onMouseEnter",null);
_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"onMouseLeave",null);_.q([_.y({reflectToAttribute:!0}),_.b("data","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uV.prototype,"showNextVideoHeader",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"onRenderStamperFinished",null);
_.q([_.Gm("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"collapseChanged",null);_.q([_.Gm("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"hiddenChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"dataChanged",null);
_.q([_.b("isTheaterMode","isFullscreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uV.prototype,"isFullBleedPlayer",null);_.q([_.Gm("isTheaterMode","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"onFullBleedPlayerChanged",null);_.q([_.Gm("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"onFullscreenChanged",null);
_.q([_.Gm("playerState","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"updateNowPlayingOverlay",null);_.q([_.Fv("yt-playlist-lockup-now-playing-active"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],uV.prototype,"onPlaylistLockupNowPlaying",null);
_.q([_.Gm("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uV.prototype,"colorPaletteChanged",null);_.q([_.h({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],uV);
_.JME=_.WL()(uV,"ytd-playlist-panel-renderer",function(){if(viz===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);viz=D}D=viz;return D},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var kuU;var aV=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_button_rework");return D};
_.n(aV,_.N);aV.prototype.computeShouldButtonBeVertical=function(D,Y){return D||Y};
aV.prototype.onYtServiceRequestSent=function(D,Y){(D=_.A(Y.endpoint,_.Hl))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.oP("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:D.status})):this.handleLikeEndpoint(D))};
aV.prototype.computelikeStatusEntityKey=function(D){return D==null?void 0:D.likeStatusEntityKey};
aV.prototype.handleLikeEndpoint=function(D){D.status==="LIKE"?this.JSC$16954_ytdDislikeToggleButtonRenderer.toggle(!1):D.status==="DISLIKE"?this.JSC$16954_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16954_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16954_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.YF.Object.defineProperties(aV.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var D;return Z6U(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(D=this.likeStatusEntity)==null?void 0:D.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var D;if(this.data&&((D=this.data)==null||!D.hideDislikeButton)){var Y;return Z6U(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(Y=this.likeStatusEntity)==null?void 0:Y.likeStatus)}}}});
aV.prototype.onYtServiceRequestSent=aV.prototype.onYtServiceRequestSent;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],aV.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aV.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],aV.prototype,"vertical",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],aV.prototype,"textTransform",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],aV.prototype,"useShortsIcon",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],aV.prototype,"underIconLabel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],aV.prototype,"modern",void 0);_.q([_.y({value:"left"}),_.x("design:type",String)],aV.prototype,"buttonTooltipPosition",void 0);
_.q([_.y(),_.x("design:type",Object)],aV.prototype,"overrides",void 0);_.q([_.fr("#like-button"),_.x("design:type",Object)],aV.prototype,"JSC$16954_ytdLikeToggleButtonRenderer",void 0);_.q([_.fr("#dislike-button"),_.x("design:type",Object)],aV.prototype,"JSC$16954_ytdDislikeToggleButtonRenderer",void 0);_.q([_.b("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],aV.prototype,"likeButton",null);
_.q([_.b("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],aV.prototype,"dislikeButton",null);_.q([_.y({computed:"computelikeStatusEntityKey(data)"}),_.x("design:type",String)],aV.prototype,"likeStatusEntityKey",void 0);_.q([_.y({selectorArgs:["likeStatusEntityKey"],selector:HN}),_.x("design:type",Object)],aV.prototype,"likeStatusEntity",void 0);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],aV.prototype,"onYtServiceRequestSent",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],aV);
var Unb=_.WL()(aV,"ytd-like-button-renderer",function(){if(kuU===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);kuU=D}D=kuU;return D},{mode:1});_.KH7={};
_.KH7.YtConditionalRendererBehavior=[_.p.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(D,Y){var R=this,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:if(!Y)return R.hidden=!0,R.showSpinner=!1,X.return();if((Z=D)==null?0:(t=Z.visibilityCondition)==null?0:t.mode)switch(D.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return X.jumpTo(5);default:return X.jumpTo(6)}R.showSpinner=
!1;R.hidden=!0;return X.yield(R.shouldShow_(D),4);case 4:R.hidden=!X.yieldResult;X.jumpTo(0);break;case 5:return X.yield(R.shouldShow_(D),8);case 8:R.showSpinner=X.yieldResult;R.hidden=!1;X.jumpTo(0);break;case 6:return R.showSpinner=!1,X.yield(R.shouldShow_(D),9);case 9:R.hidden=!X.yieldResult,_.V9(X)}})},
shouldShow_:function(D){return D&&D.supportedDatas&&D.supportedDatas.rendererVisibilityConditionData&&D.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(D.supportedDatas.rendererVisibilityConditionData.showIf):D&&D.visibilityCondition&&D.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(D.visibilityCondition.showIf):D&&D.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(D.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(D){switch(D){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(D){switch(D){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var D=_.CX(this.hostElement,"yt-get-mdx-status");return D.length==1&&D[0].connected},
isLocationPermissionGranted_:function(){var D;return _.C(function(Y){return Y.nextAddress==1?navigator.permissions?Y.yield(navigator.permissions.query({name:"geolocation"}),3):Y.jumpTo(2):Y.nextAddress!=2?(D=Y.yieldResult,Y.return(Promise.resolve(D.state==="granted"))):Y.return(Promise.resolve(!1))})}}];var hZz=function(D,Y){Y=Y===void 0?{}:Y;var R=function(Z){var t=document.createElement(D),X;var M=(X=t.polymerController)!=null?X:t;i1S(t,M,Z,Y);return t};
R.debugName=D+" (CoW wrapped)";return R}("yt-icon",{callbackProps:["onKeydown"]}),LHz=_.f("web_bypass_polymer_yt_icon")&&_.f("kevlar_use_wil_icons")?_.RT(function(D){var Y=D.icon;
var R=D.active;var Z=D.className;var t=D.style;var X=D.dataSelected;var M=D.dataDisabled;var W=D.role;var z=D.themeOverride;var I=D.animateIcon;var F=D.ariaHidden;var G=D.ariaExpanded;var V=D.ariaLabel;var e=D.tabindex;var r=D.id;var l=D.iconFilter;var U=D.onKeydown;var K=function(){var Q=Y==null?void 0:Y(),E=null,B=void 0;Q&&(Q=mTz(Q),Q=$9U(Q),Q.length&&(E=Q[1],B=Q[0]));return{iconName:E,iconSetName:B}},H=function(){return qeU(K().iconName,R==null?void 0:R(),void 0,void 0,K().iconSetName,_.DH().resolve(_.FK))},
c=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:l==null?void 0:l()}};
return _.S(_.T,{cond:I,then:function(){return _.S(hZz,{icon:Y,active:R,className:Z,style:t,dataSelected:X,dataDisabled:M,role:W,themeOverride:z,ariaHidden:F,ariaExpanded:G,ariaLabel:V,tabindex:e,id:r,iconFilter:l,onKeydown:U})},
else:function(){return _.S(_.T,{cond:H,then:function(Q){return _.S("span",{class:_.e7("ytIconWrapperHost",Z),role:W,"aria-label":V,"aria-hidden":F,tabindex:function(){return isNaN(Number(e==null?void 0:e()))?void 0:Number(e==null?void 0:e())},
id:r,style:t,"on:keydown":_.F4(function(E){return void(U==null?void 0:U(E))})},_.S(pIn,{data:Q,
options:c}))}})}})},"Ce"):hZz;var mnb=function(D){var Y=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];BsM();_.ix("ytglobal.ytUtilActivityCallback_",function(){_.WC(D,"yt-user-activity")});
new DL(function(){return Y.JSC$16970_onMouseMove});
document.addEventListener("scroll",function(){return Y.onScroll});
window.addEventListener("resize",function(){return Y.onResize})},qV4=function(D,Y,R){Y in D.eventJobIds||(R=_.b$().addLowPriorityJob(function(){_.YN();
delete D.eventJobIds[Y]},R),D.eventJobIds[Y]=R)};
mnb.prototype.onScroll=function(D){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):D.target===document&&qV4(this,"scroll",200)};
mnb.prototype.onResize=function(){qV4(this,"resize",200)};
mnb.prototype.JSC$16970_onMouseMove=function(){qV4(this,"mousemove",100)};
_.t7=function(D){D.scrollEventsToIgnore+=1;D.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){D.scrollEventsToIgnore--},500))};var H7V=function(D){this.element=D;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
H7V.prototype.showFeedbackDialog=function(D,Y,R,Z){var t=xnV();if(!t)return!1;var X=T8i();X.productId=t;Y&&(X.flow="submit",X.report={description:Y});R&&(xnV()==="59"?X.callback=_.Lb(function(){_.bo("userFeedbackEvent",{});R()}):X.callback=_.Lb(R));
X.bucket=Z||_.JQ("GOOGLE_FEEDBACK_BUCKET","Other");PW_(X);D=QBz(this,"GFEEDBACK",D);try{_.aoD(X,D)}catch(M){return _.hQ(M),!1}return!0};
H7V.prototype.showHelpDialog=function(D,Y,R){var Z=this,t=xnV();if(!t)return!1;var X={helpCenterPath:"/youtube",productData:QBz(this,"GUIDED_HELP",R)};PW_(X);var M=T8i();M.context=D||X.productData.context||"default";M.defaultHelpArticleId=Y;M.enableSendFeedback=!0;(_.mf("gapi.load")||function(W,z){return z()})("client",function(){try{var W=mCU(t,X);
if(_.f("web_always_load_chat_support")&&!Z.chatSupportLoaded)try{W.JSC$9944_loadChatSupport(M),Z.chatSupportLoaded=!0}catch(z){}W.startHelp(M)}catch(z){_.hQ(z)}})};
var xnV=function(){var D=_.JQ("GOOGLE_FEEDBACK_PRODUCT_ID");D||_.hQ(Error("di"));return D},PW_=function(D){D&&(D.locale=_.f("kevlar_help_use_locale")?_.JQ("INNERTUBE_CONTEXT_HL","en"):_.JQ("HTML_LANG","en"))},QBz=function(D,Y,R){var Z=D.productData;
delete Z.origin;Z.device=_.Il();var t;a:{if(t=document.createElement("canvas")){var X=t.getContext("experimental-webgl",{stencil:!0});if(X){var M=X.getExtension("WEBGL_debug_renderer_info");if(M){t=X.getParameter(M.UNMASKED_RENDERER_WEBGL);break a}}if(X=t.getContext("webgl")){t=X.getParameter(X.RENDERER);break a}}t=null}Z.gpu=t;Z.isSDC=!!_.JQ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(t=_.JQ("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.y7.extend(Z,t);_.zfS(Y,Z);_.SIo(Z);(D=_.WC(D.element,"yt-get-autonav-pause-debug-state"))&&
D.length&&(Z.autonav_pause_state=D[0]);D=_.GI();Z.browser_resolution=D.width+"\u00d7"+D.height+"@"+(window.devicePixelRatio||1)+"x";R&&_.y7.extend(Z,R);return Z};
H7V.prototype.resetProductData=function(){this.productData={}};var BAD=function(D){this.feedbackManager=new H7V(D)};
BAD.prototype.showFeedbackDialog=function(D,Y,R,Z){return this.feedbackManager.showFeedbackDialog(D,Y,R,Z)};
BAD.prototype.showHelpDialog=function(D,Y,R){return this.feedbackManager.showHelpDialog(D,Y,R)};var pTb=function(){this.baseUrl="";this.aTag=document.createElement("a")},TaU=function(D,Y,R){R=R===void 0?{}:R;
R.pbj||(R.pbj=1);R=_.bHS(Y,R);D.baseUrl&&R&&!_.E3(R)[1]&&!_.gf(R)&&(Y=D.baseUrl,u9(Y,"/")&&(Y=Y.slice(0,-1)),_.Xi(R,"/")&&(R=R.slice(1)),R=Y+"/"+R);_.L$(D.aTag,_.Ny(R||""));return D.aTag.href};
pTb.prototype.fetchData=function(D){return _.Xtb(D)};
pTb.prototype.postData=function(D,Y){var R={method:"POST"};if(Y){for(var Z=_.a(Object.keys(Y)),t=Z.next();!t.done;t=Z.next()){t=t.value;var X=Y[t];_.Bo(X)&&(Y[t]=JSON.stringify(X))}R.postParams=Y}return _.Xtb(D,R)};
_.jS4=function(D,Y,R,Z,t){D=TaU(D,Y,R);if(!D)throw Z=Error("ei"),Object.assign(Z,{params:Y}),Z;return _.Xtb(D,t,Z)};
pTb.prototype.requestDataForServiceEndpoint=function(D,Y){if(_.A(D,_.r3o))return this.fetchData("/getAccountSwitcherEndpoint");Y=Y||{};var R=_.A(D,KML);R?Y.se=R.base64EncodedServiceEndpoint:Y.sej=JSON.stringify(D);(R=_.K2())&&_.f("enable_service_ajax_csn")&&(Y.csn=R);Y.theme=_.N3();_.A(D,A3U)&&_.JQ("DELEGATION_CONTEXT")&&(Y.delegation_context=JSON.stringify(_.JQ("DELEGATION_CONTEXT")));R=null;for(var Z in D)if(u9(Z,"Endpoint")||u9(Z,"Command")){R=Z;break}if(!R){var t=Error("fi");Object.assign(t,{params:D});
_.$Pr(t,"WARNING");return new _.zz(function(M,W){W(t)})}Z={name:R};
var X;(R=(X=_.A(D,_.Fa))==null?void 0:X.signal)&&(Z.signal=R);(X=_.QL(window.location.href))&&X.internalcountrycode&&(Z.internalcountrycode=X.internalcountrycode);X="/service_ajax";_.f("debug_forward_web_query_parameters")&&(X=_.xXl(X,window.location.search));X=_.pb(X,Z);D.clickTrackingParams&&_.Rb(X,{itct:D.clickTrackingParams});return this.postData(X,Y)};_.Ei4=new _.R6("GFEEDBACK_TOKEN");var giL;var dn7;var i7z;var O7_;var M4=function(){var D=_.N.apply(this,arguments)||this;D.compact=!1;return D};
_.n(M4,_.N);M4.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
M4.prototype.computeHasIcon_=function(D){return!!D};
M4.prototype.isSignInIcon_=function(D){return D=="yt-icons:prompted_sign_in"};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.KH7.YtConditionalRendererBehavior),_.x("design:type",Object)],M4.prototype,"ytConditionalRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],M4.prototype,"data",void 0);
_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],M4.prototype,"icon_",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.x("design:type",Boolean)],M4.prototype,"hasIcon_",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.x("design:type",Boolean)],M4.prototype,"signInIcon_",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],M4.prototype,"compact",void 0);
_.q([_.Lr({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],M4);
_.L(M4,"yt-player-error-message-renderer",function(){if(O7_===void 0){var D=document.createElement("template");_.w(D,'\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<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    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\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      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;i7z===void 0&&(i7z=document.createElement("template"));var Z=i7z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);O7_=D}D=O7_;return D},{mode:2});var cM_;var DeE;var Cm=function(){return _.N.apply(this,arguments)||this};
_.n(Cm,_.N);Cm.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Cm.prototype.computeIcon_=function(D){return D?"yt-icons:"+D.iconType.toLowerCase():"error_outline"};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Cm.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],Cm.prototype,"icon_",void 0);_.q([_.Lr({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Cm);
_.L(Cm,"yt-player-kav-renderer",function(){if(DeE===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;cM_===void 0&&(cM_=document.createElement("template"));var Z=cM_;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);DeE=D}D=DeE;return D},{mode:2});var Fqj=_.gY(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.at(_.RT(function(D){var Y=_.dI("div"),R=_.a(_.ae(0,void 0,"yt0wE")),Z=R.next().value,t=R.next().value;R=_.a(_.ae(null,void 0,"CnFp5"));var X=R.next().value,M=R.next().value;_.$s(function(){GOU(Y.value,t,M);Y.value.scrollIntoView()});
R=VZS.bind(null,D.data,Z);YM("resize",function(){var W=X();if(Z()===1&&W!==null){var z;(z=window.grecaptcha)==null||z.reset(W)}});
return _.S("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.S("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.S("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var W,z;return(W=D.data().accessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label}),_.S(_.y_,{text:R,
className:_.e7("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.S("div",{el:Y,class:"ytwPlayerCaptchaViewModelGridItem"})))},"De"),"yt-player-captcha-view-model",{props:{data:_.uq}});var fK$=!1;_.YpL=_.RT(function(D){var Y=D.data;return _.S("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.S(_.T,{cond:function(){return Y().icon},
then:function(R){return _.S("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.S(_.Rt,{data:R,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.S(_.T,{cond:function(){return Y().title},
then:function(R){return _.S("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.S(_.y_,{text:R}))}}),_.S(_.T,{cond:function(){return Y().description},
then:function(R){return _.S("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.S(_.y_,{text:R}))}}),_.S(_.vK,{data:function(){return Y().primaryButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.S(_.vK,{data:function(){return Y().secondaryButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Ee");
_.YpL.idomCompat=!0;var RWz=_.RT(function(D){var Y=D.data;_.Bl();return _.S("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.S("div",{class:"player-interstitial-renderer-wiz__scrim"},_.S(_.vK,{data:function(){return Y().content}},{interstitialViewModel:_.YpL})))},"Fe");
RWz.idomCompat=!0;_.at(RWz,"yt-player-interstitial-renderer",{props:{data:_.cs}});var Wc=function(){var D=_.N.apply(this,arguments)||this;D.noBackground=!1;D.compact=!1;D.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return D};
_.n(Wc,_.N);Wc.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"}}}};
Wc.prototype.onUpdatePlayerErrorMessageCommand_=function(D){if(_.A(D,iJz)){var Y;if(D=(Y=_.A(D,iJz))==null?void 0:Y.newPlayerErrorMessageRenderer)this.data=D}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Wc.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Wc.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Wc.prototype,"status",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Wc.prototype,"noBackground",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Wc.prototype,"compact",void 0);_.q([_.Lr({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Wc);
var ZE_=_.WL()(Wc,"yt-playability-error-supported-renderers",function(){if(dn7===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;giL===void 0&&(giL=document.createElement("template"));var Z=giL;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);dn7=D}D=dn7;return D},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var efS=void 0,npn=void 0;var $dn=new rE7;var trz=function(D){this.store=D;this.bbf=new _.vhE},RTi=function(D,Y,R){var Z,t;
if(!(t=((Z=Y.playabilityStatus)==null?void 0:Z.status)!=="OK")){D=D.store;var X;t=Y.offlineState&&((X=Y.videoDetails)==null?0:X.videoId)?_.f("enable_pl_r_c_cd")?D8n(D.getState().entities,Y.videoDetails.videoId):!!vWU(D.getState().entities,Y.videoDetails.videoId):!1}if(t)return!0;t=N8o(Y);if(t===1){if(_.f("ab_v_vid_sig")){var M,W=(M=Y.videoDetails)==null?void 0:M.videoId;if(!W||!R||W!==R){var z;Y=new _.AT("282054944_vid",{qTz:R,oOd:(z=Y.videoDetails)==null?void 0:z.videoId});_.Nb(Y)}}return!0}hNM=
0;var I,F;z=(W=Y.auxiliaryUi)==null?void 0:(I=W.messageRenderers)==null?void 0:(F=I.bkaEnforcementMessageViewModel)==null?void 0:F.displayType;if(t!==3&&(z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||z==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;z={reason:_.tu(_.fX("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.f("ks_something_wrong_learn_more")?m_S("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.tu(_.fX("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:_.tu("282054944")};sxz(Y,{playerErrorMessageRenderer:z});return!1},ZPU=function(D,Y){if(YXj(Y)){_.Vb(1,!0);
var R=(R=YXj(Y))&&_.AOj()?R:void 0;R?(sxz(Y,{enforcementMessageViewModel:R}),D.bbf.increment("IN_PLAYER"),_.Vb(5)):(D.bbf.increment("SKIP_DISPLAY"),_.Vb(2))}},sxz=function(D,Y){D.playabilityStatus=Object.assign({},D.playabilityStatus,{status:"ERROR",
errorScreen:Y});D.videoDetails=void 0};
trz.prototype.handleResponse=function(D,Y){if(D.playabilityStatus){var R,Z,t,X=(Y==null?void 0:(R=Y.innerTubeRequest)==null?void 0:R.videoId)||(Y==null?void 0:(Z=Y.innerTubeRequest)==null?void 0:(t=Z.playerRequest)==null?void 0:t.videoId);RTi(this,D,X)&&ZPU(this,D)}};
trz[YS]=[Xc];var D2o=new _.R6("ADBLOCK_DETECTION_SERVICE_TOKEN");var dK=function(D){this.bYg=D};
dK.prototype.bindInnertubeChallengeFetcher=function(D){this.bYg.bicf(D)};
dK.prototype.registerChallengeFetchedCallback=function(D){this.bYg.bcr(D)};
dK.prototype.getLatestChallengeResponse=function(){return this.bYg.blc()};var XvY;XvY=_.gY(["https://static.doubleclick.net/instream/ad_status.js"]);_.uyU=_.tZ(XvY);var WXb;_.z0=function(D,Y,R){var Z=this;this.network=D;this.options=Y;this.networkStatusManager=R;this.a1=null;if(Y.useBotguardEverywhere){var t=new _.Ta;this.a1=t.promise;_.ZU.ytAtRC&&_.NP(_.yc,function(){var X,M;return _.C(function(W){if(W.nextAddress==1){if(!_.ZU.ytAtRC)return W.return();X=arU(null);return W.yield(Z.gh(X),2)}M=W.yieldResult;_.ZU.ytAtRC&&_.ZU.ytAtRC(JSON.stringify(M));_.V9(W)})});
Kqr().then(function(X){var M,W,z,I;return _.C(function(F){if(F.nextAddress==1)return X.bindInnertubeChallengeFetcher(function(G){return Z.gh(arU(G))}),F.yield(osS(),2);
M=F.yieldResult;W=X.getLatestChallengeResponse();z=W.challenge;if(!z)throw Error("gi");I={challenge:z,hx:gK(z),vm:M,bgChallenge:new p9};t.resolve(I);X.registerChallengeFetchedCallback(function(G){G=G.challenge;if(!G)throw Error("hi");G={challenge:G,hx:gK(G),vm:M,bgChallenge:new p9};Z.a1=Promise.resolve(G)});
_.V9(F)})})}else Y.preload&&MrU(this,new Promise(function(X){_.Ak(_.yc,function(){X(CNU(Z))},0)}))};
WXb=function(D){var Y={preload:!0,useBotguardEverywhere:!0},R=!1;if(typeof Y==="boolean")var Z={preload:Y};else typeof Y==="undefined"?Z={preload:!0}:(Z=Y,R=!!Y.w2K);Y=R?void 0:new _.xQ;_.z0.instance=new _.z0(D,Z,Y);return _.z0.instance};
_.z0.prototype.lsN=function(){var D=this;return _.C(function(Y){return Y.nextAddress==1?Y.yield(Promise.race([D.a1,null]),2):Y.return(!!Y.yieldResult)})};
_.z0.prototype.xlU=function(D,Y,R){var Z=this,t,X,M;return _.C(function(W){Z.a1===null&&MrU(Z,CNU(Z));t=!1;X={};M=function(){var z,I,F;return _.C(function(G){switch(G.nextAddress){case 1:return G.yield(Z.a1,2);case 2:z=G.yieldResult;X.challenge=z.challenge;if(!z.vm){"c1a"in z.hx&&(X.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");G.jumpTo(3);break}I=Object.assign({},{c:z.challenge,e:D},Y);_.SX(G,4);t=!0;return G.yield(z.vm.snapshot({lp:I}),6);case 6:(F=G.yieldResult)?X.webResponse=F:X.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.xw(G,3);break;case 4:_.Gl(G),X.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(D==="ENGAGEMENT_TYPE_PLAYBACK"){var V=z.hx,e={};if(V.c6a){var r=Number(_.JQ("DCLKSTAT",0));e.reportingStatus=String(Number(V.c)^(isNaN(r)?0:r))}V.c6b&&(e.broadSpectrumDetectionResult=String(Number(V.c)^Number(_.JQ("CATSTAT",0))));X.adblockReporting=e}return G.return(X)}})};
return W.return(Promise.race([M(),zW_(R,function(){var z=Object.assign({},X);t&&(z.error="ATTESTATION_ERROR_VM_TIMEOUT");return z})]))})};
var arU=function(D){var Y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};D&&(Y.interpreterHash=D);return Y},CNU=function(D,Y){Y=Y===void 0?0:Y;
var R,Z,t,X,M,W,z,I,F,G,V,e;return _.C(function(r){switch(r.nextAddress){case 1:R=arU(o2V().kVf);if(_.f("att_fet_ks"))return _.SX(r,7),r.yield(D.gh(R),9);_.SX(r,4);return r.yield(SpV(D,R),6);case 6:M=r.yieldResult;t=M.yFA;X=M.jxz;Z=M;_.xw(r,3);break;case 4:return _.Gl(r),_.Jk(Error("ii`"+Y)),T5V(D,864E5),r.return({challenge:"",hx:{},vm:void 0,bgChallenge:void 0});case 9:Z=r.yieldResult;if(!Z)throw Error("ji");if(!Z.challenge)throw Error("ki");t=Z.challenge;X=gK(t);if("c1a"in X&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("li");
_.xw(r,3);break;case 7:W=_.Gl(r);_.Jk(W);Y++;if(Y>=5)return _.Jk(Error("ii`"+Y)),T5V(D,864E5),r.return({challenge:"",hx:{},vm:void 0,bgChallenge:void 0});z=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return r.return(new Promise(function(l){_.Ak(_.yc,function(){l(CNU(D,Y))},z)}));
case 3:I=Udl(X);T5V(D,I*1E3);F=void 0;if(!("c1a"in X&&Z.bgChallenge)){r.jumpTo(10);break}G=kO$(Z.bgChallenge);_.SX(r,11);return r.yield(yZb(o2V(),G),13);case 13:_.xw(r,12);break;case 11:return V=_.Gl(r),_.Jk(V),r.return({challenge:t,hx:X,vm:F,bgChallenge:G});case 12:return _.SX(r,14),F=new _.kB({challenge:G,gl6:{yz:"aGIf"}}),r.yield(F.mIM,16);case 16:_.xw(r,10);break;case 14:e=_.Gl(r),_.Jk(e),F=void 0;case 10:return r.return({challenge:t,hx:X,vm:F,bgChallenge:G})}})};
_.z0.prototype.gh=function(D){var Y=this,R;return _.C(function(Z){R=Y.networkStatusManager;if(!R||R.isNetworkAvailable())return Z.return(Y.network.gh(D));_.LX("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(t){R.listenOnce("publicytnetworkstatus-online",function(){Y.network.gh(D).then(t)})}))})};
var jx7=function(D){if(!D)throw Error("ji");if(!D.challenge)throw Error("ki");var Y=D.challenge,R=gK(Y);if("c1a"in R&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("li");return Object.assign({},D,{yFA:Y,jxz:R})},SpV=function(D,Y){var R,Z,t,X,M;
return _.C(function(W){switch(W.nextAddress){case 1:R=void 0,Z=0,t={};case 2:if(!(Z<5)){W.jumpTo(4);break}if(!(Z>0)){W.jumpTo(5);break}t.uZN=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return W.yield(new Promise(function(z){return function(I){_.Ak(_.yc,function(){I(void 0)},z.uZN)}}(t)),5);
case 5:return _.SX(W,7),W.yield(D.gh(Y),9);case 9:return X=W.yieldResult,W.return(jx7(X));case 7:R=M=_.Gl(W),M instanceof Error&&_.Jk(M);case 8:Z++;t={uZN:void 0};W.jumpTo(2);break;case 4:throw R;}})},MrU=function(D,Y){D.a1=Y},IrE=function(D){var Y,R,Z;
return _.C(function(t){if(t.nextAddress==1)return t.yield(Promise.race([D.a1,null]),2);Y=t.yieldResult;var X=CNU(D);D.a1=X;(R=Y)==null||(Z=R.vm)==null||Z.dispose();_.V9(t)})},T5V=function(D,Y){var R=Date.now()+Y,Z=function(){var t;
return _.C(function(X){t=R-Date.now();return t<1E3?X.yield(IrE(D),0):(_.Ak(_.yc,Z,Math.min(t,6E4)),X.jumpTo(0))})};
Z()},zW_=function(D,Y){return new Promise(function(R){_.Ak(_.yc,function(){R(Y())},D)})};var FXE=function(){};
FXE.prototype.processContext=function(D){var Y=_.z0.instance;if(!Y)return _.O_();var R=xdi(D);return R?new iS(Y.xlU(R,mdy(D),500).then(function(Z){var t;(D==null?0:(t=D.innerTubeRequest)==null?0:t.context)||(D.innerTubeRequest.context={});t=D.innerTubeRequest.context;t.request||(t.request={});t.request.attestationResponseData=Z})):_.O_()};var GQE=function(D){this.innertubeTransportService=D};
GQE.prototype.gh=function(D){_.LX("att_fsr",void 0,"attestation_challenge_fetch");return _.Hk(this.innertubeTransportService,D,_.YI(_.OOL)).then(function(Y){_.LX("att_frr",void 0,"attestation_challenge_fetch");return Y})};_.Vr7=function(D){this.innertubeTransportService=D};var frz=new _.R6("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var eWL=function(){},nAU=function(D,Y,R,Z,t){var X=_.JQ("YPC_MB_URL");
_.v15(X).then(function(){AeL(X,D,Y,R,Z,t)})},AeL=function(D,Y,R,Z,t,X){try{var M=payments.business.integration,W=payments.business.integration.Style.create().withMaterialDesignStyle(),z=M.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.f("enable_window_constrained_buy_flow_dialog")&&(z=z.usingPopupStyle("windowConstrained"));X&&(z=z.usingCloseCallback(X));var I=R?R:_.JQ("YPC_GB_LANGUAGE"),F=_.JQ("SESSION_INDEX");M.bootstrap.fromPaymentsUrl(D);M.bootstrap.asMashupMode(z).usingGaiaIndex(F).usingLocale(I).usingStyle(W).usingDefaultActivityStatusChangeHandler().inStandaloneContext(M.standaloneContextAuthId.forGaia()).purchaseManager(Y,function(G){Z&&Z(G)}).load(void 0,t)}catch(G){throw t&&t(G),_.Nb(G),G;
}};var re7=new _.R6("PURCHASE_MANAGER_TOKEN");var wvb=function(){var D=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return D.videos},
getContinuationsPresent:function(){return D.continuationsPresent},
setVideos:function(Y){D.videos=Y},
getRecommendedVideos:function(){return D.recommendedVideos},
setRecommendedVideos:function(Y){D.recommendedVideos=Y}}};
wvb.prototype.addVideos=function(D){D&&(this.videos=D.filter(function(Y){return!!_.QWj(Y)}).map(function(Y){var R=_.QWj(Y);
a:{var Z;if(Y.playlistVideoRenderer&&((Z=Y.playlistVideoRenderer)==null?0:Z.voteSortTiebreaker))var t=Y.playlistVideoRenderer.voteSortTiebreaker;else{if(_.A(Y,O0)){var X;if(Z=(t=_.A(Y,O0))==null?void 0:(X=t.playlistItemData)==null?void 0:X.voteSortTiebreaker){t=Z;break a}}t=""}}return{itemId:R,videoId:_.Epj(Y),voteCount:_.gpy(Y),voteSortTiebreaker:t}}),this.continuationsPresent=!!_.A(D[D.length-1],_.Y5))};
var $eD=function(D,Y){return D.videos.findIndex(function(R){return R.itemId===Y})},vAV=function(D,Y){return D.recommendedVideos.findIndex(function(R){return R.itemId===Y})},oAL=function(D){D={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:D}}}}};_.DH().resolve(_.Yw).resolveCommand(D)};var bE_=function(){wvb.apply(this,arguments)};
_.n(bE_,wvb);
var ZUz=function(D,Y,R,Z){if(!D.parentElem)throw Error("qi");var t=$eD(D,Y);t===-1&&(t=vAV(D,Y),t=t!==-1?t+D.videos.length:-1);if(t===-1)throw Error("ri");var X=t>=D.videos.length?D.recommendedVideos[t-D.videos.length]:D.videos[t];X.voteCount=R;X.voteSortTiebreaker=Date.now().toString();t>=D.videos.length?D.recommendedVideos.splice(t-D.videos.length,1):D.videos.splice(t,1);var M=D.videos;for(var W=0,z=M.length-1;W<=z;){var I=Math.floor((W+z)/2);if(M[I].voteCount<X.voteCount)z=I-1;else if(M[I].voteCount>X.voteCount)W=
I+1;else{a:{var F=X.voteSortTiebreaker;var G=M[I].voteSortTiebreaker;if(F.length!==G.length)F=F.length>G.length;else{for(var V=0;V<F.length;V++){var e=F.charCodeAt(V),r=G.charCodeAt(V);if(e>r){F=!0;break a}if(e<r)break}F=!1}}F?z=I-1:W=I+1}}M=W;if(M===-1)throw Error("si");D.videos.splice(M,0,X);t!==M&&ye1(D,t,M,Y,R,Z)},ye1=function(D,Y,R,Z,t,X){var M,W=(M=D.parentElem)==null?void 0:M.children,z=Math.min(Y,R),I=Math.max(Y,R);
if(W)for(M=z;M<=I;M++)W[M].style.viewTransitionName="item-"+String(M);document.startViewTransition(function(){if(D.parentElem){var F=D.parentElem.children;if(!(!F||Y<0||Y>=F.length||R<0||R>=F.length)){var G=F[Y];if(G){G.remove();D.showRefreshPill=R>=D.videos.length-1&&D.continuationsPresent;if(!D.showRefreshPill){F=F[R]||null;var V;(V=D.parentElem)==null||V.insertBefore(G,F)}_.MX(D.parentElem,"yt-update-video-data-voting-animation",{toIdx:R,itemId:Z,newVoteCount:t,voteStatus:X,hideItem:D.showRefreshPill})}}}}).finished.then(function(){if(W)for(var F=
z;F<=I;F++)W[F].style.viewTransitionName="";
if(D.showRefreshPill)oAL(_.fX("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var G;if(G=F=(G=D.parentElem)==null?void 0:G.children[R])G=F.getBoundingClientRect(),F=G.bottom,G=!(G.top>=0&&F<=D.clientHeight);G&&(G=_.ee(Y>R?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(Y-R)),oAL(G))}})};var Je_=function(D,Y){var R=this;D?this.innertubeTransportServicePromise=Promise.resolve(D):Y&&(this.innertubeTransportServicePromise=Y(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new dB(3E3,function(Z){return N5z(R,Z)},0);
this.validateMiniAppVideoIdRateLimiter=new dB(3E3,function(Z){return lrE(R,Z)},1)},aZU=function(D,Y){D.JSC$17082_miniAppId=Y;
D.reportMiniAppValueRateLimiter=new dB(3E3,function(R){return N5z(D,R)},0);
D.validateMiniAppVideoIdRateLimiter=new dB(3E3,function(R){return lrE(D,R)},1)},CW1=function(D,Y){var R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.reportMiniAppValueRateLimiter.call(Y),2);R=Z.yieldResult;return Z.return([R,Y])})},N5z=function(D,Y){var R,Z,t,X,M,W,z;
return _.C(function(I){switch(I.nextAddress){case 1:return I.yield(D.innertubeTransportServicePromise,2);case 2:return R=I.yieldResult,Z=_.YI(tmY),t=Date.now(),X={externalPostId:D.JSC$17082_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(t/1E3),nanos:Math.round(t%1E3*1E6)},intValue:""+Y}},_.SX(I,3),I.yield(_.Hk(R,X,Z),5);case 5:M=I.yieldResult;_.xw(I,4);break;case 3:throw W=_.Gl(I),W;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("ti`"+
M.errorMetadata.status);if(z=M.userStatResult)return I.return(z);throw Error("ui");}throw Error("vi");}})},zZV=function(D){var Y,R,Z,t,X;
_.C(function(M){switch(M.nextAddress){case 1:return M.yield(D.innertubeTransportServicePromise,2);case 2:return Y=M.yieldResult,R=_.YI(tmY),Z={externalPostId:D.JSC$17082_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.SX(M,3),M.yield(_.Hk(Y,Z,R),5);case 5:t=M.yieldResult;_.xw(M,4);break;case 3:throw X=_.Gl(M),X;case 4:if(t==null)throw Error("vi");if("error"in t&&t.error)throw t.error;if(t.errorMetadata)throw Error("ti`"+t.errorMetadata.status);_.V9(M)}})};
Je_.prototype.flush=function(){var D=this;return _.C(function(Y){return Y.nextAddress==1?Y.yield(D.reportMiniAppValueRateLimiter.flush(),2):Y.yield(D.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var WH7=function(D,Y){return _.C(function(R){return R.nextAddress==1?R.yield(D.validateMiniAppVideoIdRateLimiter.call(Y),2):R.return(R.yieldResult)})},lrE=function(D,Y){var R,Z,t,X,M,W;
return _.C(function(z){switch(z.nextAddress){case 1:return z.yield(D.innertubeTransportServicePromise,2);case 2:return R=z.yieldResult,Z=_.YI(dDE),t={videoId:Y},_.SX(z,3),z.yield(_.Hk(R,t,Z),5);case 5:X=z.yieldResult;_.xw(z,4);break;case 3:throw M=_.Gl(z),M;case 4:if(X){if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("ti`"+X.errorMetadata.status);if(W=X.playabilityStatus)return z.return(W.status);throw Error("wi");}throw Error("vi");}})};
Je_[YS]=[_.cD(_.h6),_.cD(bAz)];var kQL=function(){this.clientData=new Map};
kQL.prototype.getData=function(D){return this.clientData.get(D)};var UeV=function(D){this.store=D};
UeV.prototype.handleResponse=function(D){(D=_.A(D.frameworkUpdates,cN))&&_.fh(D,this.store)};
UeV[YS]=[_.xZ];var KX4=new _.R6("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var hWE={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]],"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 LXz=new _.R6("ICON_SET_TOKEN"),meD=new _.R6("ICON_URL_PROVIDER_TOKEN"),qpz=new _.R6("PREFETCH_ICONS_TOKEN"),HEV=new _.R6("ICON_MAP_FN_TOKEN");var Sc={},xez=(Sc.ACCESS_TIME="clock",Sc.ACCOUNT_BOX="person_account",Sc.ACCOUNT_BOX_CAIRO="person_account_cairo",Sc.ACCOUNT_CIRCLE="person_circle",Sc.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Sc.ACCOUNT_LINKED="account_link_success",Sc.ACCOUNT_UNLINKED="account_link",Sc.ADD_FRIEND="people",Sc.ADD_MODERATOR="shield_add",Sc.ADD_TO_LIBRARY="bookmark",Sc.ADD_TO_PLAYLIST="add",Sc.ADD_TO_QUEUE_TAIL="list_queue",Sc.ADD_TO_REMOTE_QUEUE="list_music",Sc.ADD_TO_WATCH_LATER="clock",Sc.ADD_VIDEO_LINK="film_strip_add",
Sc.ALERT_WARN_RED="alert_triangle",Sc.ARROW_BACK="arrow_left",Sc.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Sc.ARROW_DROP_DOWN="chevron_down",Sc.ARROW_DROP_UP="chevron_up",Sc.ARROW_FORWARD="arrow_right",Sc.AUDIOTRACK="audio",Sc.AUTO_AWESOME="sparkle",Sc.AVATAR_ANONYMOUS="person_circle",Sc.AVATAR_LOGGED_OUT="person_circle",Sc.BACK="arrow_left",Sc.BAR_CHART="bar_graph",Sc.BLOCK="slash_circle_left",Sc.BLOCK_USER="slash_circle_left",Sc.BOOKMARK_BORDER="bookmark",Sc.BREAKING_NEWS_ALT_1="article_alert",
Sc.BROADCAST_CAIRO="podcast_cairo",Sc.BUG_REPORT="bug",Sc.CAMERA_ALT="camera",Sc.CAMPAIGN="megaphone",Sc.CANCEL="x_circle",Sc.CAPTIONS="closed_caption",Sc.CAST_OUTLINE="chromecast",Sc.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Sc.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Sc.CHAT="message_bubble_left",Sc.CHAT_BUBBLE="message_bubble_empty",Sc.CHAT_SPARK="spark_message_bubble_left",Sc.CHECK_BOX_OUTLINE_BLANK="box_empty",Sc.CHECK_CIRCLE_OUTLINE="check_circle",Sc.CHECK_CIRCLE_THICK="check_circle",Sc.CLARIFY=
"article_clarify",Sc.CLOSED_CAPTION_SELECTED="closed_caption",Sc.CLOSE="x_mark",Sc.CLOUD_UPLOAD="cloud_arrow_up",Sc.COLLAPSE="chevron_up",Sc.COLLAPSE_CAIRO="chevron_up_cairo",Sc.COLLECTION="layers",Sc.COLOR_LENS="palette",Sc.COMMENT="message_bubble_right",Sc.CONSENT_SHIELD="person_shield",Sc.CONTENT_CUT="scissors",Sc.CONTENT_CUT_CAIRO="scissors_cairo",Sc.COURSE=_.f("web_enable_course_icon_update")?"creator_academy":"lightbulb",Sc.COURSE_CAIRO=_.f("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",Sc.CREATION_LIVE="radar_live",Sc.CREATION_POST="box_pencil",Sc.CREATION_UPLOAD="my_videos",Sc.CREATION_UPLOAD_RED="upload",Sc.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Sc.CREATOR_STUDIO="youtube_studio",Sc.DASHBOARD="grid_asymmetrical",Sc.DELETE="trash_can",Sc.DELETE_SWEEP="trash_can",Sc.DESKTOP="laptop",Sc.DISLIKE="thumb_down",Sc.DISLIKE_SELECTED="thumb_down",Sc.DISMISSAL="x_mark",Sc.DISMISS_QUEUE="list_remove",Sc.DONE_ALL="check_double",Sc.DOWN_ARROW="arrow_down",Sc.DO_NOT_DISTURB=
"slash_circle_left",Sc.DRAFT="paper_corner_folded",Sc.DRAG_HANDLE="bars_2",Sc.EDIT="pencil",Sc.EMOJI="face_very_happy",Sc.EMOJI_FLAGS="flag",Sc.EMOJI_OBJECTS="lightbulb",Sc.EMOJI_PEOPLE="face_very_happy",Sc.EMOJI_RECENT="clock",Sc.EMPTY_HEART="heart",Sc.EMPTY_LIKE="thumb_up",Sc.ERROR_BLACK="alert_circle",Sc.ERROR_OUTLINE="alert_circle",Sc.EXIT_APP="arrow_in",Sc.EXIT_TO_APP="arrow_in",Sc.EXPAND="chevron_down",Sc.EXPAND_ALL="chevron_expand",Sc.EXPAND_CAIRO="chevron_down_cairo",Sc.EXPAND_LESS="chevron_up",
Sc.EXPAND_MORE="chevron_down",Sc.EXPLORE="compass",Sc.EXPLORE_DESTINATION="compass",Sc.EXTERNAL_LINK="open_new",Sc.FAB_UPLOAD="upload",Sc.FACE_HAPPY_OUTLINE="face_happy",Sc.FACT_CHECK="article_check",Sc.FASHION_LOGO="fashion",Sc.FASHION_LOGO_CAIRO="fashion_cairo",Sc.FAVORITE="heart",Sc.FEEDBACK="message_bubble_alert",Sc.FEEDBACK_CAIRO="message_bubble_alert_cairo",Sc.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Sc.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Sc.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
Sc.FILTER="menu_filter",Sc.FIRST_PAGE="chevron_first",Sc.FLAG="flag",Sc.FULL_HEART="heart",Sc.GAME_CONSOLE_DPAD="game_console_dpad",Sc.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Sc.GAMING_LOGO="gaming",Sc.GAMING_LOGO_CAIRO="gaming_cairo",Sc.GO_TO_PAGE="arrow_right",Sc.GROUPS="people_group",Sc.HAPPY="face_happy",Sc.HEALTH_AND_SAFETY="shield_plus",Sc.HELP="question_circle",Sc.HELP_CAIRO="question_circle_cairo",Sc.HELP_OUTLINE="question_circle",Sc.HIDE="slash_circle_left",Sc.IMAGE="image",
Sc.INFINITY_ICON="infinity",Sc.INFO="info_circle",Sc.INFO_OUTLINE="info_circle",Sc.INSERT_CHART="bar_graph_box_vertical",Sc.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Sc.INSERT_PHOTO="image",Sc.KEEP="pin",Sc.KEEP_OFF="pin_off",Sc.KEYBOARD="keyboard",Sc.KEYBOARD_ARROW_DOWN="chevron_down",Sc.KEYBOARD_ARROW_UP="chevron_up",Sc.KIDS_BLOCK="slash_circle_left",Sc.LANGUAGE="globe",Sc.LAST_PAGE="chevron_last",Sc.LAUNCH="open_new",Sc.LEARNING="lightbulb",Sc.LEARNING_CAIRO="lightbulb_cairo",Sc.LIBRARY_ADD=
cOy("library_add"),Sc.LIBRARY_OUTLINE="library",Sc.LIBRARY_REMOVE=cOy(),Sc.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Sc.LIKES_PLAYLIST="thumb_up",Sc.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Sc.LIKE="thumb_up",Sc.LIKE_SELECTED="thumb_up",Sc.LIVE="radar_live",Sc.LIVE_CAIRO="radar_live_cairo",Sc.LIVE_UNLISTED="link",Sc.LOCATION_ON="location_point",Sc.LOCATION_PIN="location_point",Sc.LOOP="arrow_repeat",Sc.LOOP_ACTIVE="arrow_repeat",Sc.LOOP_ONE="arrow_repeat_1",Sc.LOOP_ONE_ACTIVE="arrow_repeat_1",Sc.MEH=
"face_meh",Sc.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Sc.MESSAGE="message_bubble_left",Sc.MICROPHONE_ON="mic",Sc.MIX="youtube_mix",Sc.MONETIZATION_ON="dollar_sign_circle",Sc.MONEY_FILL="dollar_sign_container",Sc.MONEY_FILL_JPY="yen_sign_container",Sc.MONEY_HEART="dollar_sign_heart",Sc.MORE_HORIZ="overflow_horizontal",Sc.MORE_VERT="overflow_vertical",Sc.MUSIC="audio",Sc.MUSIC_CAIRO="audio_cairo",Sc.MUSIC_NOTE_SYMBOL="music",Sc.MUSIC_SHUFFLE="arrow_shuffle",Sc.MY_CHANNEL="person_circle",Sc.MY_LOCATION=
"location_point",Sc.NEWS_STORY="news",Sc.NEXT="chevron_right",Sc.NOTIFICATIONS="bell",Sc.NOTIFICATIONS_ACTIVE="bell_on",Sc.NOTIFICATIONS_CAIRO="bell_cairo",Sc.NOTIFICATIONS_DONE_CHECKMARK="check",Sc.NOTIFICATIONS_INBOX="bell",Sc.NOTIFICATIONS_NONE="bell",Sc.NOTIFICATIONS_OFF="bell_off",Sc.NOT_INTERESTED="slash_circle_left",Sc.OFFICIAL_ARTIST_BADGE="audio",Sc.OFFLINE_CLOUD="cloud_off",Sc.OFFLINE_DOWNLOAD="download",Sc.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Sc.OFFLINE_PAUSE="pause",Sc.OPEN_IN_NEW=
"open_new",Sc.OUTLINE_ADJUST="adjust",Sc.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Sc.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Sc.OUTLINE_BAG="bag",Sc.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Sc.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Sc.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Sc.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Sc.PAID="dollar_sign",Sc.PAUSE_OUTLINED="pause",Sc.PAYMENT="credit_card",Sc.PERSON_RADAR_FILLED="person_radar",Sc.PHONE_DOWNLOAD="mobile_download",
Sc.PLAYABLES_LOGO="tic_tac_toe",Sc.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Sc.PLAYLISTS="list_play_arrow",Sc.PLAYLISTS_CAIRO="list_play_arrow_cairo",Sc.PLAYLIST_ADD=cOy("list_add"),Sc.PLAYLIST_ADD_CHECK=cOy("list_check"),Sc.PLAYLIST_PLAY="list_play_arrow",Sc.PLAY_ALL="play_arrow",Sc.PLAY_CIRCLE="play_arrow_circle",Sc.PLAY_OUTLINED="play_arrow_circle",Sc.PRIVACY_INFO="shield",Sc.PRIVACY_PRIVATE="lock",Sc.PRIVACY_PUBLIC="earth",Sc.PRIVACY_UNLISTED="link",Sc.PROMOTE="megaphone",Sc.PURCHASES="price_tag",
Sc.PURCHASE_SUPER_CHAT="super_chat",Sc.PURCHASE_SUPER_STICKER="super_sticker",Sc.QUESTION_ANSWER="message_bubble_question",Sc.QUEUE_PLAY_LAST="list_queue_last",Sc.QUEUE_PLAY_NEXT="list_play_arrow",Sc.REMIX_FILLED="youtube_shorts_remix",Sc.REMOVE="bar_circle",Sc.REMOVE_CIRCLE="bar_circle",Sc.REMOVE_CIRCLE_OUTLINE="bar_circle",Sc.REMOVE_DONE="check_double_off",Sc.REMOVE_FROM_HISTORY="bar_circle",Sc.REMOVE_FROM_PLAYLIST="bar_circle",Sc.REMOVE_MODERATOR="shield_off",Sc.REPLAY="arrow_circle",Sc.REPLAY_10=
"skip_back_10",Sc.REPORT_PROBLEM="alert_triangle",Sc.SAD="face_sad",Sc.SAVE_PLAYLIST="bookmark",Sc.SCHEDULE="clock",Sc.SCHOOL="creator_academy",Sc.SCREEN_FULLSCREEN="screen_full",Sc.SEARCH_HISTORY="arrow_time",Sc.SELL="price_tag",Sc.SETTINGS="gear",Sc.SETTINGS_CAIRO="gear_cairo",Sc.SETTINGS_LIGHT="gear",Sc.SETTINGS_MATERIAL="gear",Sc.SHARE_ARROW="share",Sc.SHIELD_WITH_AVATAR="person_shield",Sc.SHOPPING_BAG="bag",Sc.SHOPPING_BAG_CAIRO="bag_cairo",Sc.SHOPPING_CART="cart",Sc.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
Sc.SHORTS_DISLIKE="youtube_shorts_thumb_down",Sc.SHORTS_LIKE="youtube_shorts_thumb_up",Sc.SHORTS_SHARE="youtube_shorts_share",Sc.SHUFFLE="arrow_shuffle",Sc.SLOW_MODE_OFF="message_bubble_left",Sc.SOCIAL="people",Sc.SORT="menu_sort",Sc.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Sc.SPEED_1X="1x",Sc.SPEED_1_POINT_2X="1_point_2x",Sc.SPEED_1_POINT_5X="1_point_5x",Sc.SPEED_1_POINT_8X="1_point_8x",Sc.SPEED_2X="2x",Sc.SPEED_POINT_2X="point_2x",Sc.SPEED_POINT_8X="point_8x",Sc.SPONSORSHIP_STAR="star_circle",
Sc.STAFF_PICK="spotlight",Sc.START_DVR="add",Sc.STAR_BORDER="star",Sc.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Sc.STICKER_EMOTICON="face_happy",Sc.STOP_DVR="stop",Sc.SUBSCRIBE="youtube_logo_icon",Sc.SUBSCRIBE_PLUS="add_cairo",Sc.SUBSCRIPTION_MANAGER="gear",Sc.SUPERVISOR_ACCOUNT="people",Sc.SUPER_CHAT_FOR_GOOD="hands_heart",Sc.SWAP_HORIZ="arrow_swap_horizontal",Sc.SWITCH_ACCOUNTS="person_account",Sc.TAB_ACCOUNT="person",Sc.TAB_ACTIVITY="bell",Sc.TAB_BOOKMARK="bookmark",Sc.TAB_EXPLORE="compass",
Sc.TAB_HOME="home",Sc.TAB_HOME_CAIRO="home_cairo",Sc.TAB_INBOX="mail",Sc.TAB_LIKED="thumb_up",Sc.TAB_MUSIC_PREMIUM="youtube_music",Sc.TAB_SHORTS="youtube_shorts",Sc.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Sc.TAB_SUBSCRIPTIONS="subscriptions",Sc.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Sc.TAB_TRENDING="fire",Sc.TIMER="stopwatch",Sc.TRAILER="youtube_originals",Sc.TRENDING="fire",Sc.TRENDING_CAIRO="fire_cairo",Sc.TRENDING_UP="rating_up",Sc.TROPHY="trophy",Sc.TROPHY_CELEBRATIONS="fireworks",Sc.TUNE=
"adjust",Sc.UNBLOCK_USER="bar_circle",Sc.UNLIMITED="youtube_logo_icon",Sc.UNPLUGGED_LIVE_GUIDE="radar_live",Sc.UNPLUGGED_SPORTS="eye_off",Sc.UPLOADS="library",Sc.UP_ARROW="arrow_up",Sc.VERTICAL_ALIGN_BOTTOM="download",Sc.VERY_HAPPY="face_very_happy",Sc.VERY_SAD="face_very_sad",Sc.VIDEOGAME_ASSET="gaming",Sc.VIDEOS="play_arrow_circle",Sc.VIDEO_CALL="video_camera_add",Sc.VIDEO_LIBRARY_WHITE="library",Sc.VIDEO_YOUTUBE="youtube_logo_icon",Sc.VIEW_LIST="list_view",Sc.VIEW_LIST_CAIRO="list_view_cairo",
Sc.VISIBILITY="eye",Sc.VISIBILITY_OFF="eye_off",Sc.VOLUME_MUTE="volume_off",Sc.VOLUME_UP="volume_on",Sc.WALLPAPER="image",Sc.WARNING="alert_triangle",Sc.WATCH_HISTORY="arrow_time",Sc.WATCH_HISTORY_CAIRO="arrow_time_cairo",Sc.WATCH_LATER="clock",Sc.WATCH_LATER_CAIRO="clock_cairo",Sc.WATCH_RELATED_MIX="youtube_mix",Sc.WHAT_TO_WATCH="home",Sc.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Sc.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Sc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
Sc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Sc.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Sc.YT_OUTLINE_MUSIC_24="music",Sc);var T0={},PND=(T0.ACCESS_TIME="clock",T0.ACCOUNT_BOX="person_square",T0.ACCOUNT_BOX_CAIRO="person_square",T0.ACCOUNT_CIRCLE="person_circle",T0.ACCOUNT_CIRCLE_CAIRO="person_circle",T0.ACCOUNT_LINKED="account_link",T0.ACCOUNT_UNLINKED="account_link",T0.ADD_CIRCLE="add_circle",T0.ADD_CIRCLE_OUTLINE="add_circle",T0.ADD_FRIEND="person_child",T0.ADD_MODERATOR="shield_add",T0.ADD_TO_LIBRARY="bookmark",T0.ADD_TO_PLAYLIST="add",T0.ADD_TO_QUEUE_TAIL="queue",T0.ADD_TO_REMOTE_QUEUE="playlist_audio",T0.ADD_TO_WATCH_LATER=
"clock",T0.ADD_VIDEO_LINK="film_strip_add",T0.ADMIN_PANEL_SETTINGS="person_gear",T0.ALERT_WARN_RED="alert_triangle",T0.ALIGN_LEFT="text_align_left",T0.ARROWS_ALERT="arrow_split_alert",T0.ARROW_BACK="arrow_left",T0.ARROW_CIRCLE="arrow_counterclockwise",T0.ARROW_CIRCLE_PLAY="replay",T0.ARROW_CIRCLE_RIGHT="arrow_clockwise",T0.ARROW_DIAGONAL="arrow_up_left",T0.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",T0.ARROW_DROP_DOWN="triangle_down",T0.ARROW_DROP_UP="triangle_up",T0.ARROW_FORWARD="arrow_right",T0.ARROW_PAUSE=
"pause_history",T0.ARROW_UNDO="undo",T0.ARTICLE="text_page",T0.ARTICLE_ALERT="text_page_alert",T0.ARTICLE_CHECK="text_page_check",T0.ARTICLE_CLARIFY="text_page_info",T0.AUDIOTRACK="audio",T0.AUDIO_BADGE="audio_badge",T0.AUDIO_SURROUND="surround_sound",T0.AUTO_AWESOME="sparkles",T0.AVATAR_ANONYMOUS="person_circle",T0.AVATAR_LOGGED_OUT="person_circle",T0.BACK="arrow_left",T0.BAR_CHART="chart_bar",T0.BAR_CIRCLE="minus_circle",T0.BAR_HORIZONTAL="minus",T0.BLOCK="circle_slash",T0.BLOCK_USER="circle_slash",
T0.BOOKMARK_BORDER="bookmark",T0.BOX_OPEN_CHECK="quiz",T0.BOX_PENCIL="square_pencil",T0.BOX_STACK_3="square3_stack",T0.BREAKING_NEWS_ALT_1="text_page_alert",T0.BROADCAST="podcast",T0.BROADCAST_CAIRO="podcast",T0.BUG_REPORT="bug",T0.CAMERA_ALT="camera",T0.CAMPAIGN="megaphone",T0.CANCEL="x_circle",T0.CAPTIONS="closed_captions",T0.CAST_ICON="chromecast",T0.CAST_OUTLINE="chromecast",T0.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",T0.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",T0.CHAT="text_bubble",
T0.CHAT_BUBBLE="bubble",T0.CHECK_BOX="check_square",T0.CHECK_BOX_OUTLINE_BLANK="square",T0.CHECK_CIRCLE_FILLED="check_circle",T0.CHECK_CIRCLE_OUTLINE="check_circle",T0.CHECK_CIRCLE_THICK="check_circle",T0.CHECK_DOUBLE="check_done",T0.CHECK_DOUBLE_OFF="check_done_slash",T0.CHEVRON_LEFT="chevron_left",T0.CHEVRON_RIGHT="chevron_right",T0.CHEVRON_RIGHT_CAIRO="chevron_right",T0.CIRCLES_OVERLAP="account_link",T0.CLAPPERBOARD_CAIRO="clapperboard",T0.CLARIFY="text_page_info",T0.CLOCK_ARROWS="clock_split",
T0.CLOCK_ARROWS_ALERT="clock_split_alert",T0.CLOSED_CAPTION="closed_captions",T0.CLOSED_CAPTION_SELECTED="closed_captions",T0.CLOSE="x",T0.CLOUD_UPLOAD="cloud_arrow_up",T0.COLLAPSE="chevron_up",T0.COLLAPSE_CAIRO="chevron_up",T0.COLLECTION="square3d_stack",T0.COLOR_LENS="paint_palette",T0.COMMENT="text_bubble",T0.CONSENT_SHIELD="person_shield",T0.CONTENT_CUT="scissors",T0.CONTENT_CUT_CAIRO="scissors",T0.COURSE="graduation_cap",T0.COURSE_CAIRO="graduation_cap",T0.CREATION_LIVE="live",T0.CREATION_POST=
"square_pencil",T0.CREATION_UPLOAD="video",T0.CREATION_UPLOAD_RED="upload",T0.CREATOR_ACADEMY="graduation_cap",T0.CREATOR_STUDIO="youtube_studio",T0.DARK_THEME="theme",T0.DELETE="trash_can",T0.DELETE_SWEEP="trash_can",T0.DESKTOP="laptop",T0.DISLIKE="thumb_down",T0.DISLIKE_SELECTED="thumb_down",T0.DISMISSAL="x",T0.DISMISS_QUEUE="playlist_x",T0.DOGFOOD="pawprint",T0.DOLLAR_SIGN="dollar_sign_circle",T0.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",T0.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",T0.DOWN_ARROW=
"arrow_down",T0.DO_NOT_DISTURB="circle_slash",T0.DRAFT="document",T0.DRAG_HANDLE="equal",T0.EARTH="globe",T0.EDIT="pencil",T0.EMOJI="face_very_happy",T0.EMOJI_FLAGS="flag",T0.EMOJI_OBJECTS="lightbulb",T0.EMOJI_PEOPLE="face_very_happy",T0.EMOJI_RECENT="clock",T0.EMPTY_HEART="heart",T0.EMPTY_LIKE="thumb_up",T0.ERROR_BLACK="alert_circle",T0.ERROR_OUTLINE="alert_circle",T0.ERROR_WHITE="alert_circle",T0.EXIT_APP="arrow_in",T0.EXIT_TO_APP="arrow_in",T0.EXPAND="chevron_down",T0.EXPAND_ALL="chevron_expand",
T0.EXPAND_CAIRO="chevron_down",T0.EXPAND_LESS="chevron_up",T0.EXPAND_MORE="chevron_down",T0.EXPLORE="compass",T0.EXPLORE_DESTINATION="compass",T0.EXTERNAL_LINK="arrow_up_right",T0.EYE_OFF="eye_slash",T0.FAB_UPLOAD="upload",T0.FACE_HAPPY_OUTLINE="face_happy",T0.FACE_MEH="face_neutral",T0.FACT_CHECK="text_page_check",T0.FASHION_LOGO="fashion",T0.FASHION_LOGO_CAIRO="fashion",T0.FAVORITE="thumb_up",T0.FEEDBACK="alert_bubble",T0.FEEDBACK_CAIRO="alert_bubble",T0.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
T0.FILL_ARROW_SOLID_UP_16="arrow_solid_up",T0.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",T0.FLAG_CAIRO="flag",T0.FLASH_OFF="flash_slash",T0.FLASH_ON="flash",T0.FULL_HEART="heart",T0.GAMING_LOGO="gaming",T0.GAMING_LOGO_CAIRO="gaming",T0.GO_TO_PAGE="arrow_right",T0.GROUPS="person3",T0.HAND_SWIPE_LEFT="gesture_swipe_left",T0.HAND_SWIPE_RIGHT="gesture_swipe_right",T0.HAPPY="face_happy",T0.HEALTH_AND_SAFETY="shield_health",T0.HEART_BOX="heart_cube",T0.HELP="help_circle",T0.HELP_CAIRO="help_circle",
T0.HELP_OUTLINE="help_circle",T0.HIDE="circle_slash",T0.INCOGNITO_CAIRO="incognito",T0.INFINITY_ICON="infinity",T0.INFO="info_circle",T0.INFO_OUTLINE="info_circle",T0.INSERT_CHART="chart_bar_square",T0.INSERT_CHART_OUTLINED="chart_bar_square",T0.INSERT_PHOTO="image",T0.KEEP="pin",T0.KEEP_OFF="pin_slash",T0.KEYBOARD="keyboard",T0.KEYBOARD_ARROW_DOWN="chevron_down",T0.KEYBOARD_ARROW_UP="chevron_up",T0.KIDS_BLOCK="circle_slash",T0.LANGUAGE="globe",T0.LAUNCH="arrow_up_right",T0.LEARNING="lightbulb",T0.LEARNING_CAIRO=
"lightbulb",T0.LIBRARY_ADD="bookmark",T0.LIBRARY_IMAGE="image_stack",T0.LIBRARY_MUSIC="audio_square_stack",T0.LIBRARY_OUTLINE="play_square_stack",T0.LIBRARY_REMOVE="bookmark",T0.LIBRARY_SAVED="check_square_stack",T0.LIKES_PLAYLIST="thumb_up",T0.LIKES_PLAYLIST_CAIRO="thumb_up",T0.LIKE="thumb_up",T0.LIKE_SELECTED="thumb_up",T0.LIST_QUEUE="queue",T0.LIVE_CAIRO="live",T0.LIVE_UNLISTED="link",T0.LOCATION_ON="location_pin",T0.LOCATION_PIN="location_pin",T0.LOCATION_POINT="location_pin",T0.LOOP="repeat",
T0.LOOP_ACTIVE="repeat",T0.LOOP_ONE="repeat1",T0.LOOP_ONE_ACTIVE="repeat1",T0.MEET="google_meet",T0.MEH="face_neutral",T0.MEMBERSHIPS="memberships",T0.MEMBERS_ONLY_MODE_OFF="text_bubble",T0.MENU_FILTER="filter",T0.MESSAGE="text_bubble",T0.MESSAGE_BUBBLE_GEAR="bubble_gear",T0.MESSAGE_BUBBLE_LEFT="text_bubble",T0.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",T0.MESSAGE_BUBBLE_OVERLAP="bubble_stack",T0.MESSAGE_BUBBLE_QUESTION="help_bubble",T0.MICROPHONE_ON="mic",T0.MONETIZATION_ON="dollar_sign_circle",
T0.MONEY_FILL="dollar_sign_rectangle",T0.MONEY_FILL_JPY="yen_sign_rectangle",T0.MONEY_HAND="dollar_sign_circle_hand",T0.MONEY_HEART="dollar_sign_heart",T0.MOON_Z="sleep_timer",T0.MORE_HORIZ="overflow_horizontal",T0.MORE_VERT="overflow_vertical",T0.MUSIC="audio",T0.MUSIC_CAIRO="audio",T0.MUSIC_EXPLICIT_BADGE="explicit",T0.MUSIC_NEW_RELEASE="audio_badge",T0.MUSIC_NOTE_SYMBOL="audio",T0.MUSIC_SCISSORS="audio_scissors",T0.MUSIC_SHUFFLE="shuffle",T0.MY_CHANNEL="person_circle",T0.MY_LOCATION="location_pin",
T0.MY_VIDEOS="video",T0.MY_VIDEOS_CAIRO="video",T0.NEWS_CAIRO="news",T0.NEWS_STORY="news",T0.NEXT="chevron_right",T0.NOTE_ADD="bubble_pencil",T0.NOTIFICATIONS="bell",T0.NOTIFICATIONS_ACTIVE="bell_waves",T0.NOTIFICATIONS_CAIRO="bell",T0.NOTIFICATIONS_DONE_CHECKMARK="check",T0.NOTIFICATIONS_INBOX="bell",T0.NOTIFICATIONS_NONE="bell",T0.NOTIFICATIONS_OFF="bell_slash",T0.NOT_INTERESTED="circle_slash",T0.OFFICIAL_ARTIST_BADGE="audio",T0.OFFLINE_CLOUD="cloud_slash",T0.OFFLINE_DOWNLOAD="download",T0.OFFLINE_DOWNLOAD_CAIRO=
"download",T0.OFFLINE_PAUSE="pause",T0.OPEN_IN_NEW="arrow_up_right",T0.OUTLINE_ADJUST="adjust",T0.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",T0.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",T0.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",T0.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",T0.OUTLINE_BAG="bag",T0.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",T0.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",T0.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",T0.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",T0.PAID=
"dollar_sign_circle",T0.PAUSE_OUTLINED="pause",T0.PAYMENT="credit_card",T0.PEOPLE="person_child",T0.PEOPLE_2="person2_rectangle",T0.PEOPLE_GROUP="person3",T0.PEOPLE_NOTE="bubble_asterisk",T0.PERSON_2="person2",T0.PERSON_ACCOUNT="person_square_stack",T0.PERSON_MINUS="person_x",T0.PERSON_MUSIC="person_audio",T0.PERSON_RADAR="person_waves",T0.PERSON_RADAR_FILLED="person_waves",T0.PERSON_SETTING="person_gear",T0.PHONE="phone",T0.PHONE_DOWNLOAD="mobile_arrow_down",T0.PICTURE_IN_PICTURE="picture_in_picture",
T0.PLAYABLES_LOGO="playables",T0.PLAYABLES_LOGO_CAIRO="playables",T0.PLAYLISTS="playlist",T0.PLAYLISTS_CAIRO="playlist",T0.PLAYLIST_ADD_CHECK="bookmark",T0.PLAY_ALL="play",T0.PLAY_ARROW="play",T0.PLAY_ARROW_CIRCLE="play_circle",T0.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",T0.PLAY_CIRCLE="play_circle",T0.PLAY_OUTLINED="play_circle",T0.PODCAST_ADD="podcast_add",T0.PODCAST_CHECK="podcast_check",T0.PRIVACY_INFO="shield_x",T0.PRIVACY_PRIVATE="lock",T0.PRIVACY_PUBLIC="globe",T0.PRIVACY_UNLISTED=
"link",T0.PROMOTE="megaphone",T0.PURCHASES="price_tag",T0.PURCHASE_SUPER_CHAT="super_chat",T0.PURCHASE_SUPER_STICKER="super_sticker",T0.QUESTION_ANSWER="help_bubble",T0.QUESTION_CIRCLE="help_circle",T0.QUEUE_PLAY_LAST="queue_last",T0.QUEUE_PLAY_NEXT="playlist",T0.QUOTATION_MARK="quote",T0.RADAR_LIVE="live",T0.REMOVE="minus_circle",T0.REMOVE_CIRCLE="minus_circle",T0.REMOVE_CIRCLE_OUTLINE="minus_circle",T0.REMOVE_FROM_HISTORY="minus_circle",T0.REMOVE_FROM_PLAYLIST="minus_circle",T0.REMOVE_MODERATOR=
"shield_slash",T0.REPLAY="arrow_counterclockwise",T0.REPLAY_10="skip10_back",T0.REPLAY_ARROW="replay",T0.REPORT_PROBLEM="alert_triangle",T0.RSS_OFF="rss_slash",T0.SAD="face_sad",T0.SAVE_PLAYLIST="bookmark",T0.SCHEDULE="clock",T0.SCHOOL="graduation_cap",T0.SCREEN_DEFAULT="player_default",T0.SCREEN_FULLSCREEN="player_full_enter",T0.SCREEN_LIGHT="ambient_mode",T0.SCREEN_ROTATION="rotate_portrait",T0.SCREEN_SWITCH="player_switch",T0.SCREEN_THEATRE="player_theater",T0.SEARCH_CAIRO="search",T0.SEARCH_HISTORY=
"history",T0.SELL="price_tag",T0.SETTINGS="gear",T0.SETTINGS_CAIRO="gear",T0.SETTINGS_LIGHT="gear",T0.SETTINGS_MATERIAL="gear",T0.SETTINGS_REMOTE="remote_waves",T0.SHARE="share",T0.SHARE_ARROW="share",T0.SHARE_CAIRO="share",T0.SHIELD="shield_x",T0.SHIELD_OFF="shield_slash",T0.SHIELD_WITH_AVATAR="person_shield",T0.SHOPPING_BAG="bag",T0.SHOPPING_BAG_CAIRO="bag",T0.SHOPPING_CART="cart",T0.SHORTS_COMMENT="text_bubble",T0.SHORTS_DISLIKE="thumb_down",T0.SHORTS_LIKE="thumb_up",T0.SHORTS_SHARE="share",T0.SKIP_FORWARD_30=
"skip30_forward",T0.SLASH_CIRCLE_RIGHT="circle_slash",T0.SLOW_MODE="bubble_slow",T0.SLOW_MODE_OFF="text_bubble",T0.SOCIAL="person_child",T0.SPARKLE="sparkles",T0.SPARK_IMAGE="image_spark",T0.SPARK_RADAR="spark_waves",T0.SPARK_VIDEO="video_spark",T0.SPEAKER_GROUP="speaker_stack",T0.SPEAKER_OFF="speaker_slash",T0.SPEED_1X="n1x",T0.SPEED_1_POINT_2X="n1point2x",T0.SPEED_1_POINT_5X="n1point5x",T0.SPEED_1_POINT_8X="n1point8x",T0.SPEED_2X="n2x",T0.SPONSORSHIP_STAR="star_circle",T0.SPORTS="basketball",T0.SPOTLIGHT=
"spotlight",T0.STAFF_PICK="spotlight",T0.START_DVR="add",T0.STAR_BORDER="star",T0.STAR_CIRCLE_RIBBON="memberships_gift",T0.STAR_HALF="star_half_filled",T0.STAR_SHOOTING="hype",T0.STICKER="sticker",T0.STICKER_EMOTICON="face_happy",T0.STOP_DVR="stop",T0.SUBSCRIBE="youtube",T0.SUBSCRIBE_PLUS="add",T0.SUBSCRIPTION_MANAGER="gear",T0.SUPERSTAR="super_star",T0.SUPERVISOR_ACCOUNT="person_child",T0.SUPER_CHAT_FOR_GOOD="hands_heart",T0.SWAP_HORIZ="arrow_swap_horizontal",T0.SWITCH_ACCOUNTS="person_square_stack",
T0.TAB_ACCOUNT="person",T0.TAB_ACTIVITY="bell",T0.TAB_BOOKMARK="bookmark",T0.TAB_EXPLORE="compass",T0.TAB_HOME="home",T0.TAB_HOME_CAIRO="home",T0.TAB_INBOX="mail",T0.TAB_LIKED="thumb_up",T0.TAB_MUSIC_PREMIUM="youtube_music",T0.TAB_SHORTS="shorts",T0.TAB_SHORTS_CAIRO="shorts",T0.TAB_SUBSCRIPTIONS="subscriptions",T0.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",T0.TAB_TRENDING="trending",T0.TARGET="target",T0.TARGET_ADD="target_add",T0.TEMPLATE_ADD="template_add",T0.TEXT="font",T0.TIMER="stopwatch",T0.TRENDING_CAIRO=
"trending",T0.TRENDING_UP="arrow_trend_up",T0.TROPHY_CAIRO="trophy",T0.TROPHY_CELEBRATIONS="fireworks",T0.TROPHY_STAR="star_trophy",T0.TUNE="adjust",T0.TV_OFF="tv_slash",T0.UNBLOCK_USER="minus_circle",T0.UNFAVORITE="thumb_down",T0.UNLIMITED="youtube",T0.UNPLUGGED_LIVE_GUIDE="live",T0.UNPLUGGED_SPORTS="eye_slash",T0.UPLOADS="play_square_stack",T0.UP_ARROW="arrow_up",T0.VERTICAL_ALIGN_BOTTOM="chevron_down_end",T0.VERTICAL_ALIGN_TOP="chevron_up_end",T0.VERY_HAPPY="face_very_happy",T0.VERY_SAD="face_very_sad",
T0.VIDEOS="play_circle",T0.VIDEO_CALL="video_camera_add",T0.VIDEO_LIBRARY_WHITE="play_square_stack",T0.VIDEO_QUALITY_4K="n4k",T0.VIDEO_QUALITY_8K="n8k",T0.VIDEO_YOUTUBE="youtube",T0.VIEW_LIST_CAIRO="view_list",T0.VIEW_MODULE="view_column3_row2",T0.VISIBILITY="eye",T0.VISIBILITY_OFF="eye_slash",T0.VOLUME_DOWN="volume_min",T0.VOLUME_MUTE="volume_mute",T0.VOLUME_OFF="volume_mute",T0.VOLUME_STABLE="stable_volume",T0.VOLUME_UP="volume_max",T0.WALLPAPER="image",T0.WARNING="alert_triangle",T0.WATCH_HISTORY=
"history",T0.WATCH_HISTORY_CAIRO="history",T0.WATCH_LATER="clock",T0.WATCH_LATER_CAIRO="clock",T0.WATCH_RELATED_MIX="mix",T0.WHAT_TO_WATCH="home",T0.YOUTUBE_LINKED_TV="tv_mobile",T0.YOUTUBE_MUSIC_MONOCHROME="youtube_music",T0.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",T0.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",T0.YOUTUBE_SHORTS_ARROW_UP="arrow_up",T0.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",T0.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",T0.YOUTUBE_SHORTS_OUTLINE_24="shorts",
T0);var QxY={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,2,24],[1,2,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,7,24],[1,7,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,7,24],[1,7,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,8,24],[1,8,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,8,16],[1,8,18],[1,8,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,7,24],[1,7,24]],circle_full:[[0,2,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,
5,24],[1,5,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,10,16],[0,10,24],[1,10,16],[1,10,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]],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_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,8,24],[1,8,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]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,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,4,16],[1,4,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,13,24],[1,13,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,12,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,8,16],[1,8,18],[1,8,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,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,6,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_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,
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,2,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,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,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,9,12],[0,9,16],[0,9,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,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,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,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,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,3,24],[1,3,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,9,16],[1,9,18],[1,9,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_stitch:[[1,2,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:[[1,8,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,1,24],[1,1,24]]};var B57={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,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,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,7,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,8,24],[1,8,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,2,24],[1,2,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,2,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,8,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,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,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,5,24],[1,5,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,1,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,10,24],[1,10,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,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,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_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,8,24],[1,8,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_strikethrough:[[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,8,24],[1,8,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:[[1,4,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,1,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,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,
2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,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,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,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:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,2,24],[1,2,24],[1,2,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,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,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,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,3,24],[0,3,36],[0,3,48],[1,3,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,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,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,2,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,1,24],[1,1,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,13,24],[1,13,24],[1,13,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,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[1,11,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,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,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,9,12],[0,9,24],[1,9,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:[[1,
1,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,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,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,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,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]],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,3,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,9,24],[1,9,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_spark:[[1,1,24]],video_stitch:[[1,2,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]],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,8,24],[1,8,18],[1,8,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_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var pvU={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"},jc=function(D){this.iconUrlProvider=D};
jc.prototype.resolveIcon=function(D,Y){var R=pvU[D.iconName.toUpperCase()];R&&(D.iconName=R);var Z=D.iconName;Z=Z.replace(/-/g,"_");D=Object.assign({},D,{iconName:this.mapIconTypeToStandardName(Z,!!R)||Z.toLowerCase()});if(_.f("enable_web_delhi_icons")||R){var t;return i6i(B57,D,((t=this.iconUrlProvider)==null?void 0:t.getYtStandardUrl)||Ysj,Y)}var X;return i6i(QxY,D,((X=this.iconUrlProvider)==null?void 0:X.getYtStandardUrl)||D5b,Y)};
jc.prototype.mapIconTypeToStandardName=function(D,Y){return _.f("enable_web_delhi_icons")||Y?PND[D.toUpperCase()]:xez[D.toUpperCase()]};
jc[YS]=[_.cD(meD)];var EAz=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),gAU=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),deU=function(D){this.urlProvider=this.iconUrlProvider=D};
_.n(deU,jc);
deU.prototype.resolveIcon=function(D,Y){D.iconName==="youtube_logo"&&(D.iconName="yt-logo-updated");if(D.iconName==="youtube_premium_logo"||D.iconName==="youtube_red_logo")D.iconName="yt-logo-red-updated";var R=Object.assign({},D);D.iconName==="menu"&&(_.f("enable_web_delhi_icons")||(R.iconName="bars_3"),R.iconStyle="youtube_outline");D.iconSetName==="socialNetworksRound"&&(D.iconName==="mail"&&(R.iconName="email"),D.iconName==="embed"&&(R.iconSize=60));D.iconName==="more"&&(R.iconName="overflow_horizontal");
D.iconName==="fullscreen"&&(R.iconName="screen_full");D.iconName==="premium_standalone"&&(R.iconName="premium_standalone_cairo");_.f("enable_connect_icon_update_web")&&D.iconName==="account_linked"&&(R.iconName="circles_overlap_check",R.iconStyle="youtube_fill");_.f("enable_connect_icon_update_web")&&D.iconName==="account_unlinked"&&(R.iconName="circles_overlap",R.iconStyle="youtube_outline");EAz.has(D.iconName)&&(R.iconStyle="youtube_fill");_.f("enable_web_delhi_icons")&&(D.iconName==="playlist_add"&&
(R.iconName="bookmark"),D.iconName==="offline_pin"&&(R.iconName="arrow_down_circle",R.iconStyle="youtube_fill"),gAU.has(D.iconName)&&(R.iconName+="_updated"));D=Object.assign({},R,{iconName:(jc.prototype.mapIconTypeToStandardName.call(this,R.iconName)||R.iconName).toLowerCase()});var Z;return(D=i6i(hWE,D,((Z=this.urlProvider)==null?void 0:Z.getUrl)||R_j,Y))?D:jc.prototype.resolveIcon.call(this,R,Y)};
deU[YS]=[_.cD(meD)];_.iEz=1;var IV=function(D,Y){this.JSC$17113_commandHandler=D;this.innertubeTransportService=Y};
_.n(IV,q6);IV.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X;return _.C(function(M){return(Z=_.A(D,zD4))?M.return(OEz(R,Z,(t=Y)==null?void 0:(X=t.form)==null?void 0:X.element)):M.return()})};
var OEz=function(D,Y,R){Y={profileCardContext:Y.profileCardContext,profileOwnerExternalChannelId:Y.profileOwnerExternalChannelId};var Z=_.YI(JUY);return _.Hk(D.innertubeTransportService,Y,Z).then(function(t){if(!t)throw new _.AT("GetProfileCard failed");if(t=t.popupCommand){D.JSC$17113_commandHandler.resolveCommand(t,{form:{element:R}});_.TJ(_.n8(),66557);t=t==null?void 0:t.clickTrackingParams;var X=_.Ud();t&&X&&_.n8().graftServerVe(t,X)}})};
IV[YS]=[_.Yw,_.h6];var FX=function(){};
_.n(FX,q6);FX.prototype.resolveCommand=function(D){var Y,R;return _.C(function(Z){Y=_.A(D,fo1);if(!Y)return Z.return();R=Number(Y.enableDelayedPacfLoggingTvMs);if(isNaN(R)){var t=T7();XeV(t,Y,0)}else XeV(T7(),Y,R);_.V9(Z)})};_.G0=function(){};
_.n(_.G0,q6);
_.G0.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I;return _.C(function(F){Z=_.A(D,eDE);X=(t=Y.form)==null?void 0:t.element;W=(M=X)==null?void 0:M.closest("ytd-enforcement-message-view-model");if(!Z||!W)return F.return();R.allowAdsAction||(z=Z.fundingChoiceInstructionPageUrl,R.allowAdsAction=new xa1(window,_.Ns(z)));var G=R.allowAdsAction;G.wallElement=W;G.allowAdsPopup.style.setProperty("display","flex","important");var V=G.scrollManager;V.originalBodyOverflow=V.JSC$9968_domHelper.JSC$9295_document_.body.style.overflow;V.JSC$9968_domHelper.JSC$9295_document_.body.style.overflow=
"hidden";G.wallElement.style.setProperty("display","none","important");Daz(G.accessibilityManager,G.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((I=R.allowAdsAction.allowAdsPopup)&&I instanceof HTMLElement)for(G=_.a(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),V=G.next();!V.done;V=G.next()){var e=_.a(V.value);V=e.next().value;e=e.next().value;I.style.setProperty(V,e)}_.V9(F)})};
_.G0.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Vo=function(){};
_.n(Vo,q6);Vo.prototype.resolveCommand=function(D){var Y;return _.C(function(R){Y=_.A(D,Biz);if(!Y)return R.return();_.JsU(D);_.V9(R)})};var fm=function(D){this.JSC$17128_commandHandler=D};
_.n(fm,q6);
fm.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I;return _.C(function(F){if(F.nextAddress==1){R=_.A(D,em7);if((Z=R)==null||!Z.text||!navigator.clipboard)return F.return();_.SX(F,2);return F.yield(navigator.clipboard.writeText(R.text),4)}if(F.nextAddress!=2){if(!R.successActions||R.successActions.length===0)return F.return();t=_.a(R.successActions);for(X=t.next();!X.done;X=t.next())M=X.value,Y.JSC$17128_commandHandler.resolveCommand(M);return _.xw(F,0)}_.Gl(F);if(!R.failureActions||R.failureActions.length===
0)return F.return();W=_.a(R.failureActions);for(z=W.next();!z.done;z=W.next())I=z.value,Y.JSC$17128_commandHandler.resolveCommand(I);_.V9(F)})};
fm[YS]=[_.Yw];var ec=function(D){this.JSC$17132_commandHandler=D};
_.n(ec,q6);
ec.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V;return _.C(function(e){switch(e.nextAddress){case 1:Z=_.A(D,ch1);if(!Z)return e.return();_.SX(e,2);if(!Z.imageBytes&&!Z.imageUrl)throw Error("xi");if(!Z.imageUrl){if(Z.imageBytes){X=Z.imageBytes;M=X.replace(/-/g,"+").replace(/_/g,"/");var r=sNo(M);t=_.k7(r)}e.jumpTo(4);break}return e.yield(fetch(Z.imageUrl),5);case 5:return W=e.yieldResult,e.yield(W.blob(),6);case 6:z=e.yieldResult,t=_.k7(z);case 4:G=(I=Y)==null?void 0:(F=I.form)==
null?void 0:F.element;V=document.createElement("a");_.L$(V,t);G.appendChild(V);V.download="";V.click();G.removeChild(V);URL.revokeObjectURL(_.oJ(t));Z.successCommand&&R.JSC$17132_commandHandler.resolveCommand(Z.successCommand);_.xw(e,0);break;case 2:_.Gl(e),Z.errorCommand&&R.JSC$17132_commandHandler.resolveCommand(Z.errorCommand),_.V9(e)}})};
ec[YS]=[_.Yw];var Ay=function(D){this.store=D};
_.n(Ay,q6);Ay.prototype.resolveCommand=function(D){var Y=this,R,Z,t;return _.C(function(X){Z=(R=_.A(D,_.oOU))==null?void 0:R.entityBatchUpdate;if(!Z)return X.jumpTo(0);t=Object.assign({},Z,{mutations:[].concat(_.oK(Z.mutations||[]))});return X.yield(_.fh(t,Y.store),0)})};var ceE=function(D){this.JSC$17139_commandHandler=D;this.feedbackDialogMap=new Map};
ceE.prototype.openDialog=function(D,Y){(D=this.feedbackDialogMap.get(D))&&this.JSC$17139_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:D}},Y)};
ceE[YS]=[_.Yw];var nm=new _.R6("FEEDBACK_CONTROLLER_TOKEN");var rw=new _.R6("APP_STORE_TOKEN");var ww=function(D,Y){this.store=D;this.controller=Y};
_.n(ww,q6);ww.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q;return _.C(function(E){if(E.nextAddress==1){Z=_.A(D,_.Jn);if(X=(t=Z)==null?void 0:t.contentId)for(W=_.a(((M=Z)==null?void 0:M.actions)||[]),z=W.next();!z.done;z=W.next())I=z.value,D$b(R,I,X);V=(F=Y)==null?void 0:(G=F.form)==null?void 0:G.element;return E.yield(_.zA(V,[D,{impression:(e=Y)==null?void 0:e.disableClickTracking}]).catch(function(){}),2)}r=E.yieldResult;
((l=r)==null?0:(U=l.data)==null?0:(K=U.feedbackResponses)==null?0:K.length)&&(c=(H=r.data.feedbackResponses[0])==null?void 0:H.followUpDialog)&&X&&(Q=R.controller)!=null&&Q.feedbackDialogMap.set(X,c);_.V9(E)})};
var D$b=function(D,Y,R){var Z=_.A(Y,_.je);if(Z){Z=_.a(Z.commands||[]);for(var t=Z.next();!t.done;t=Z.next())D$b(D,t.value,R)}_.A(Y,_.wi)&&D.store.dispatch(_.oP("commandEntity",EDU(R),{key:R,command:Y}));_.A(Y,GtU)&&D.store.dispatch(_.oP("commandEntity",EDU(R),{key:R,command:Y}))};
ww[YS]=[rw,nm];var $R=function(D){this.controller=D};
_.n($R,q6);$R.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M;return _.C(function(W){Z=_.A(D,_.qb);X=(t=Z)==null?void 0:t.targetId;if(((M=Z)==null?void 0:M.signal)!=="TELL_US_WHY"||!X)return W.return();R.controller.openDialog(X,Y);_.V9(W)})};
$R[YS]=[nm];var vc=function(D){this.store=D};
_.n(vc,q6);vc.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I;return _.C(function(F){Z=_.A(D,xtj);X=(t=Z)==null?void 0:t.contentId;z=(M=Y)==null?void 0:(W=M.form)==null?void 0:W.element;I=_.zA(z,[D]);X&&R.undo(X);return F.yield(I,0)})};
vc.prototype.undo=function(D){this.store.dispatch(_.oP("commandEntity",EDU(D),{key:D,command:void 0}))};
vc[YS]=[rw];var oV=function(D){this.JSC$17154_commandHandler=D};
_.n(oV,q6);oV.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I;return _.C(function(F){R=_.A(D,Qs7);Z=R.flowStateKey;t=R.validationFailureCommand;X=R.submitValidFormCommand;M=aMb(_.cl,[Z||""]);W=_.A(M,pF1);((z=W)==null?0:z.isValid)&&X&&Y.JSC$17154_commandHandler.resolveCommand(X);((I=W)==null?0:I.isValid)||!t||Y.JSC$17154_commandHandler.resolveCommand(t);_.V9(F)})};
oV[YS]=[_.Yw];var bV=function(D){this.innertubeTransportService=D};
_.n(bV,q6);bV.prototype.resolveCommand=function(D,Y){var R=this,Z;return _.C(function(t){return t.yield(_.d1(R.innertubeTransportService,D,(Z=Y)==null?void 0:Z.form).then(function(X){var M,W;Y==null||(M=Y.commandController)==null||(W=M.onSuccess)==null||W.call(M,D,X)},function(X){var M,W;
Y==null||(M=Y.commandController)==null||(W=M.onServerError)==null||W.call(M,D,X)}),0)})};
bV[YS]=[_.h6];var yo=function(){};
_.n(yo,q6);yo.prototype.resolveCommand=function(D){var Y,R,Z,t;return _.C(function(X){if(Y=_.A(D,_.CuL)){if(R=Y.gtmId)Z=_.JQ("GL",""),_.J$(R,Z);(t=Y.gtmData)&&_.kZ(t)}_.V9(X)})};var N4=function(D,Y){this.innertubeTransportService=D;this.JSC$17165_actionRouter=Y};
_.n(N4,q6);N4.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){R=_.A(D,xq1);if(!R)return t.return();Z=R.command;if(!Z)return t.return();Y.JSC$17165_actionRouter.triggerAction("yt-insert-rich-section-action",R);return t.yield(_.d1(Y.innertubeTransportService,Z,{disableCache:!0}),0)})};
N4[YS]=[_.h6,ZY];uVr.bind(null,Hz);var Yyk=uVr.bind(null,ACD);Mul.bind(null,Hz);var Rj0=Mul.bind(null,ACD);Wxi.bind(null,Hz);var ZMI=Wxi.bind(null,ACD);var lV=function(){};
_.n(lV,q6);
lV.prototype.resolveCommand=function(D){var Y,R,Z,t,X,M,W,z,I,F;return _.C(function(G){Y=_.A(D,vBE);if(!Y)return G.return();Z=((R=Y.operations)==null?void 0:R.operations)||[];t=_.a(Z);for(X=t.next();!X.done;X=t.next())if(M=X.value,M.insertItemSectionContent){var V=M.insertItemSectionContent,e=V.contents||[];V.insertByPositionInSection?Yyk(V.insertByPositionInSection.sectionTargetId,e,V.insertByPositionInSection.position):V.insertByRelativePositionInSection&&V.insertByRelativePositionInSection.sectionTargetId&&V.insertByRelativePositionInSection.itemTargetId&&
Rj0(V.insertByRelativePositionInSection.sectionTargetId,V.insertByRelativePositionInSection.itemTargetId,e,V.insertByRelativePositionInSection.relativePosition)}else M.replaceSection?(V=M.replaceSection,e={},V.replaceByTargetId?e=V.replaceByTargetId:V.replaceByGroupId&&(e={targetId:V.replaceByGroupId.groupId,newContent:V.replaceByGroupId.newContent,undoKey:""}),e.newContent&&wJU(e.targetId,{continuationItems:[e.newContent]})):M.removeItem?(V=M.removeItem,V.removeByTargetId&&V.sectionTargetId&&ZMI(V.sectionTargetId,
V.removeByTargetId.targetIds||[])):M.removeSection&&(M.removeSection.removeByTargetId?(W=void 0,tbu(((W=M.removeSection)==null?void 0:W.removeByTargetId.targetIds)||[])):M.removeSection.removeByGroupId&&(z=void 0,tbu(((z=M.removeSection)==null?void 0:z.removeByGroupId.groupIds)||[])));F=((I=Y.operations)==null?void 0:I.scrollConfig)||{};slK(F);_.V9(G)})};
var tbu=function(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())wJU(Y.value,{continuationItems:[]})},slK=function(D){if(D.scrollToItem){var Y=D.scrollToItem.item||{},R=Y.itemTargetId;
Y=Y.sectionTargetId;if(R&&Y){var Z=document.querySelector("[data-target-id="+Y+"]"),t=Z==null?void 0:Z.querySelector("[data-target-id="+R+"]");Z&&t&&setTimeout(function(){var X=t.offsetTop-Z.offsetTop,M;if(((M=D.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_CENTER")X-=Z.offsetHeight/2,X+=t.offsetHeight/2;else{var W;((W=D.scrollToItem)==null?void 0:W.scrollPosition)==="SCROLL_POSITION_END"&&(X-=Z.offsetHeight,X+=t.offsetHeight)}Z.scroll({top:X,behavior:"smooth"})},100)}}};var Jy=new _.R6("CLIENT_NAME_TOKEN");var XoT=new _.R6("DEFAULT_STORE_EXPIRATION_TOKEN");var Y25=new _.R6("CLIENT_LOCATION_SERVICE_TOKEN");var kR=function(D,Y,R){this.clientName=D||_.JQ("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=Y||_.kI.getInstance();this.JSC$17193_commandHandler=R||_.GD.instance};
_.n(kR,q6);kR.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){Z=(R=_.A(D,KvU))==null?void 0:R.onComplete;Y.clientLocationService.clearLocationPlayabilityToken(Y.clientName);Z&&Y.JSC$17193_commandHandler.resolveCommand(Z);_.V9(t)})};
kR[YS]=[Jy,Y25,_.Yw];var UE=function(D){this.innertubeTransportService=D};
_.n(UE,q6);UE.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M;return _.C(function(W){X=(Z=Y)==null?void 0:(t=Z.form)==null?void 0:t.element;return W.yield(_.d1(R.innertubeTransportService,D,(M=Y)==null?void 0:M.form).then(function(z){FEo(X,new CustomEvent("yt-service-request-completed"),{data:z},_.JQ("openPopupConfig"))}),0)})};
UE[YS]=[_.h6];var Km=function(){};
_.n(Km,q6);Km.prototype.resolveCommand=function(D){var Y,R;return _.C(function(Z){Y=_.A(D,ifz);R=document.querySelector("mini-app-container-view-model");if(!Y||!R)return Z.return();Y.isPlaying?R.dispatchEvent(new Event("play")):R.dispatchEvent(new Event("pause"));_.V9(Z)})};var hy=function(){};
_.n(hy,q6);hy.prototype.resolveCommand=function(D){var Y,R,Z,t,X,M,W;return _.C(function(z){Y=_.A(D,tnz);if((R=Y)==null||!R.paramKeys)return z.return();Z=Y.paramKeys;t=_.qC(window.location.href);X=_.a(Z);for(M=X.next();!M.done;M=X.next())W=M.value,t.JSC$10000_queryData_.remove(W);window.history.replaceState(window.history.state,document.title,t.toString());_.V9(z)})};var uiI=function(){this.dropdownMap=new Map};_.aUK=new _.R6("DROPDOWN_CONTROLLER_TOKEN");var Lm=function(D){this.controller=D};
_.n(Lm,q6);Lm.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X;return _.C(function(M){R=_.A(D,hxL);if(!R)return M.return();Z=R;t=Z.dropdownId;X=Z.selectedOptionIndex;if(t===void 0||X===void 0)return M.return();var W=Y.controller.dropdownMap.get(t);W&&W(X);_.V9(M)})};
Lm[YS]=[_.aUK];var mK=function(D){this.controller=D};
_.n(mK,q6);mK.prototype.resolveCommand=function(D){var Y=this,R;return _.C(function(Z){return(R=_.A(D,iKD))?Z.yield(Y.controller.closeDialog(),0):Z.return()})};
mK[YS]=[_.Nf];var q4=function(D){this.controller=D};
_.n(q4,q6);q4.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){R=_.A(D,JwU);if(!R)return t.return();var X,M=R.panelIdentifier||((X=R.identifier)==null?void 0:X.tag);if(!M)throw Error("yi");return(Z=M)?t.yield(Y.controller.hidePanel(Z),0):t.jumpTo(0)})};
q4[YS]=[_.b6];var Hc=function(D,Y){this.innertubeTransportService=D;this.controller=Y};
_.n(Hc,q6);Hc.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return R=_.A(D,kpU),(Z=R)!=null&&Z.panelId?M.yield(Y.controller.getReloadContinuation(R.panelId),2):M.return();if(M.nextAddress!=3)return(t=M.yieldResult)?M.yield(_.d1(Y.innertubeTransportService,D,{continuation:t}),3):M.return();X=M.yieldResult;return M.yield(Y.controller.updatePanel(R.panelId,X.content,!1),0)})};
Hc[YS]=[_.h6,_.b6];var xR=function(D,Y,R){this.innertubeTransportService=D;this.JSC$17229_screenManager=Y;this.JSC$17229_commandHandler=R};
_.n(xR,q6);
xR.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1){R=_.A(D,_.r2U);if(!R)return z.return();if(R.commands)for(Z=_.a(R.commands),t=Z.next();!t.done;t=Z.next())X=t.value,Y.JSC$17229_commandHandler.resolveCommand(X,{disableClickTracking:!0});M=_.oT(D.clickTrackingParams);_.TJ(Y.JSC$17229_screenManager,21760,M,{layer:7,parentLayer:0});return z.yield(_.d1(Y.innertubeTransportService,D),2)}W=z.yieldResult;if(!W)return z.return();Y.JSC$17229_screenManager.graftServerVe(W.trackingParams,M,
7);_.V9(z)})};
xR[YS]=[_.h6,_.ya,_.Yw];var Pc=new _.R6("PANEL_LOADING_STRATEGY_TOKEN");var Qo=function(D,Y){this.controller=D;this.panelLoadingStrategy=Y};
_.n(Qo,q6);
Qo.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X;return _.C(function(M){Z=_.A(D,Tmz);if((t=Z)==null||!t.panelLoadingStrategy)return M.return();X=function(W){var z,I,F,G,V,e,r,l,U,K;return _.C(function(H){I=_.A((z=W.dialogViewModel)==null?void 0:z.header,L01);F={viewModel:W.dialogViewModel};G={};if(r=_.f("web_enable_dialog_header_label")?(V=I)==null?void 0:(e=V.headline)==null?void 0:e.content:void 0)G.ariaLabel=r;Z.dismissOnBackgroundTap===!1&&(G.isModal=!0);return W.dialogViewModel?H.yield(R.controller.openDialog(F,
(K=(l=Y)==null?void 0:(U=l.form)==null?void 0:U.element)!=null?K:document.body,G),0):H.return()})};
return M.yield(R.panelLoadingStrategy.execute({command:D,data:Z.panelLoadingStrategy,renderFn:X,createScreenConfig:{layer:4}}),0)})};
Qo[YS]=[_.Nf,Pc];var pm=function(D,Y,R){this.innertubeTransportService=D;this.controller=Y;this.JSC$17249_screenManager=R};
_.n(pm,q6);
pm.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V,e,r;return _.C(function(l){switch(l.nextAddress){case 1:Z=_.A(D,_.l$);if(!Z)return l.return();var U,K=Z.panelIdentifier||((U=Z.identifier)==null?void 0:U.tag);if(!K)throw Error("yi");t=K;return l.yield(R.controller.isVisible(t,!0),2);case 2:if((X=l.yieldResult)&&Z.blockIfPanelOpen)return l.return();z=(W=(M=R.controller).getPanelContent)==null?void 0:W.call(M,t);if(!(U=z))if(Z){var H;U=((H=Z.globalConfiguration)==null?void 0:
H.initialState)||Z.engagementPanel;if(H=!U)H=!!(Z==null?0:(K=Z.engagementPanelPresentationConfigs)==null?0:K.engagementPanelPopupPresentationConfig);H&&(U=_.z_M(Z.panelIdentifier,Z.identifier))}else U=void 0;I=U;F=Z.engagementPanelPresentationConfigs;G=Z.engagementPanelExtras;return l.yield(R.controller.showPanel(t,I,F,G,(V=Y)==null?void 0:(e=V.form)==null?void 0:e.element),3);case 3:if(!Z.globalConfiguration){l.jumpTo(0);break}_.TJ(R.JSC$17249_screenManager,32633);return l.yield(_.d1(R.innertubeTransportService,
D),5);case 5:return r=l.yieldResult,R.JSC$17249_screenManager.graftServerVe(r.trackingParams),l.yield(R.controller.updatePanel(t,r.content,!0,G,void 0,r.updatePanelContinuationData),0)}})};
pm[YS]=[_.h6,_.b6,_.ya];var EE=function(D,Y){this.controller=D;this.panelLoadingStrategy=Y};
_.n(EE,q6);EE.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z;return _.C(function(I){Z=_.A(D,_.bI);if((t=Z)==null||!t.panelLoadingStrategy)return I.return();W=Mb0(R.controller,(X=Y)==null?void 0:(M=X.form)==null?void 0:M.element);z=function(F){return _.C(function(G){return F.sheetViewModel?G.yield(R.controller.openSheet({viewModel:F.sheetViewModel},W),0):G.return()})};
return I.yield(R.panelLoadingStrategy.execute({command:D,data:Z.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:0}}),0)})};
EE[YS]=[_.y$,Pc];var gw=function(D,Y){this.controller=D;this.JSC$17257_commandHandler=Y};
_.n(gw,q6);gw.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X;return _.C(function(M){if(M.nextAddress==1){Z=_.A(D,Lw4);var W=_.A(Z.showCommand,_.l$),z,I,F=(I=W==null?void 0:W.panelIdentifier)!=null?I:W==null?void 0:(z=W.identifier)==null?void 0:z.tag;if(!F)throw Error("zi");t=F;return M.yield(R.controller.isVisible(t),2)}return(X=M.yieldResult)?M.yield(R.controller.hidePanel(t),0):M.yield(R.JSC$17257_commandHandler.resolveCommand(Z.showCommand,Y),0)})};
gw[YS]=[_.b6,_.Yw];var dw=function(D,Y,R){this.innertubeTransportService=D;this.controller=Y;this.JSC$17260_screenManager=R};
_.n(dw,q6);
dw.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O;return _.C(function(Wo){switch(Wo.nextAddress){case 1:return Z=R=_.A(D,mKY),t=Z.targetPanelIdentifier,X=Z.contentSourcePanelIdentifier,M=Z.globalConfiguration,((W=t)==null?0:W.tag)&&((z=X)==null?0:z.tag)?M?Wo.yield(Y.controller.showPanel(t.tag,_.z_M(t.tag,t),void 0,void 0,void 0),5):Wo.yield((V=(G=Y.controller).getPanel)==null?void 0:V.call(G,X.tag),4):Wo.return();case 4:e=Wo.yieldResult;I=(r=e)==null?void 0:
(U=(l=r).getPanelContent)==null?void 0:U.call(l);Wo.jumpTo(3);break;case 5:return Wo.yield(_.d1(Y.innertubeTransportService,D),6);case 6:K=Wo.yieldResult,((H=K)==null?0:H.trackingParams)&&Y.JSC$17260_screenManager.graftServerVe(K.trackingParams),I=(c=K)==null?void 0:c.content,F=(Q=K)==null?void 0:Q.updatePanelContinuationData;case 3:if(B=(E=I)==null?void 0:E.engagementPanelSectionListRenderer)return Wo.yield(Y.controller.showPanel(t.tag,void 0,void 0,void 0,void 0,{content:B.content,secondaryHeaderContent:(O=
B.header)!=null?O:{},targetId:B.targetId},F),0);Wo.jumpTo(0)}})};
dw[YS]=[_.h6,_.b6,_.ya];var C9k=function(){};
_.n(C9k,q6);C9k.prototype.resolveCommand=function(D){var Y,R,Z;return _.C(function(t){if(t.nextAddress==1)return(Y=_.A(D,pAL))?t.yield(_.jG(),2):t.return();R=t.yieldResult;if(!R)return t.return();var X=R,M=(Z=Y)==null?void 0:Z.languageCode,W;(X==null?0:(W=X.isReady)==null?0:W.call(X))&&(M=Sso(X,M))&&X.setAudioTrack(M);_.V9(t)})};var iV=function(){};
_.n(iV,q6);var W5p=function(D){var Y;return _.C(function(R){Y=_.JQ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;D.JSC$17271_mainAppPlayer=new cH(Y);document.addEventListener("yt-page-data-updated",D.JSC$17271_pauseOnNavigation.bind(D));_.V9(R)})};
iV.prototype.JSC$17271_pauseOnNavigation=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Y=D.JSC$17271_mainAppPlayer,Z.yield(Y.api,2);R=Z.yieldResult;R.pauseVideo();_.V9(Z)})};
var zjp=function(D,Y,R){var Z;return _.C(function(t){Z=D.JSC$17271_mainAppPlayer;return t.yield(Z.loadVideoWithPlayerVars({videoId:Y,audio_only:"1",player_params:R}),0)})};
iV.prototype.pauseVideo=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Y=D.JSC$17271_mainAppPlayer,Z.yield(Y.api,2);R=Z.yieldResult;R.pauseVideo();_.V9(Z)})};
iV.prototype.playVideo=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Y=D.JSC$17271_mainAppPlayer,Z.yield(Y.api,2);R=Z.yieldResult;R.playVideo();_.V9(Z)})};
var Syb=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Y=D.JSC$17271_mainAppPlayer,Z.yield(Y.api,2);R=Z.yieldResult;R.mute();_.V9(Z)})},Trz=function(D){var Y,R;
return _.C(function(Z){if(Z.nextAddress==1)return Y=D.JSC$17271_mainAppPlayer,Z.yield(Y.api,2);R=Z.yieldResult;R.unMute();_.V9(Z)})},jlt=function(D,Y){return _.C(function(R){switch(R.nextAddress){case 1:switch(Y){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return R.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return R.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return R.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return R.jumpTo(5)}R.jumpTo(0);break;case 2:return R.yield(D.playVideo(),7);case 7:R.jumpTo(0);break;case 3:return R.yield(D.pauseVideo(),8);case 8:R.jumpTo(0);break;case 4:return R.yield(Syb(D),9);case 9:R.jumpTo(0);break;case 5:return R.yield(Trz(D),10);case 10:R.jumpTo(0)}})};
iV.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G,V;return _.C(function(e){return e.nextAddress==1?(R=_.A(D,B3U),((Z=R)==null?0:Z.newPlaybackParams)||((t=R)==null?0:t.controlAction)?Y.JSC$17271_mainAppPlayer?e.jumpTo(2):e.yield(W5p(Y),2):e.return()):((X=R)==null?0:X.newPlaybackParams)?(z=(M=R)==null?void 0:(W=M.newPlaybackParams)==null?void 0:W.externalVideoId,V=(G=(I=R)==null?void 0:(F=I.newPlaybackParams)==null?void 0:F.playerParams)!=null?G:"",z?e.yield(zjp(Y,z,V),0):e.return()):
e.yield(jlt(Y,R.controlAction),0)})};var OE=function(D){this.JSC$17278_commandHandler=D};
_.n(OE,q6);
OE.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return(R=_.A(D,ESV))?z.yield(_.jG(),2):z.return();Z=z.yieldResult;if(!Z)return z.return();var I=Z,F=(t=R)==null?void 0:t.languageCode,G=(X=R)==null?void 0:X.isAutoTranslated;I.getVideoData&&_.jNU(I).length&&((F=FxU(I,F,G))?I.setOption("captions","track",F):(I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{})));M=Z.isSubtitlesOn()?_.fX("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.fX("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");W=_.Zl(M);Y.JSC$17278_commandHandler.resolveCommand(W);_.V9(z)})};
OE[YS]=[_.Yw];var cc=function(D,Y){this.shortsPlayerPromise=D;this.JSC$17282_commandHandler=Y};
_.n(cc,q6);
cc.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I;return _.C(function(F){if(F.nextAddress==1)return(R=_.A(D,zmz))?F.yield(Y.shortsPlayerPromise,2):F.return();Z=F.yieldResult;var G=G45(Z);G!=null&&G.length||(Z.loadModule("captions"),G=G45(Z));t=G;if((X=t)==null||!X.length)return M=_.fX("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),W=_.Zl(M),Y.JSC$17282_commandHandler.resolveCommand(W),F.return();Z.toggleSubtitles();z=Z.isSubtitlesOn()?_.fX("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.fX("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");I=_.Zl(z);Y.JSC$17282_commandHandler.resolveCommand(I);_.V9(F)})};
cc[YS]=[_.czU,_.Yw];var DE=function(D){this.JSC$17285_actionRouter=D;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(Y,R){Y.triggerAction("yt-dismiss-shopping-timely-shelf-action",R)}]])};
_.n(DE,q6);DE.prototype.resolveCommand=function(D){var Y=this,R,Z,t;return _.C(function(X){R=_.A(D,OKL);if((Z=R)==null||!Z.overlayId)return X.return();t=Y.dismissPlayerOverlayActions.get(R.overlayId);if(!t)throw Error("Ai`"+R.overlayId);t(Y.JSC$17285_actionRouter,R);_.V9(X)})};
DE[YS]=[ZY];var Yz=function(D){this.JSC$17289_playerPromise=D};
_.n(Yz,q6);Yz.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return(R=_.A(D,KwL))?M.yield(Y.JSC$17289_playerPromise,2):M.return();Z=M.yieldResult;t=Z.getVideoData().video_id;R.videoId===t&&(X=Number(R.offsetFromVideoStartMilliseconds),X>=0&&Z.seekTo(X/1E3));_.V9(M)})};
Yz[YS]=[_.CH];var IUz=_.TL("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),RS=function(D){this.store=D};
_.n(RS,q6);
var F59=function(D){var Y,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return Y=_.JQ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,R=_.JQ("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Z=Y||R,D.JSC$17293_mainAppPlayer=new cH(Z),X.yield(D.JSC$17293_mainAppPlayer.api,2);t=X.yieldResult;t.addEventListener("onStateChange",D.JSC$17293_playerStateChangeListener.bind(D));document.addEventListener("yt-page-data-updated",D.JSC$17293_pauseOnNavigation.bind(D));window.addEventListener("state-navigatestart",
D.JSC$17293_pauseOnNavigation.bind(D));_.V9(X)})};
RS.prototype.JSC$17293_playerStateChangeListener=function(D){switch(D){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"}GUp(this)};
var GUp=function(D){D.store.dispatch(_.oP("sfvAudioItemCurrentlyPlayingEntity",IUz,{key:IUz,externalVideoId:D.externalVideoId,sfvAudioItemPlaybackState:D.playbackState,nowPlayingEntityValue:D.nowPlayingEntityValue}))};
RS.prototype.JSC$17293_pauseOnNavigation=function(){var D=this,Y,R,Z,t;return _.C(function(X){if(X.nextAddress==1){if(!D.JSC$17293_mainAppPlayer){var M=new _.AT("Error: mainAppPlayer is unavailable",D.JSC$17293_mainAppPlayer);_.Nb(M);return X.return()}return X.yield(D.JSC$17293_mainAppPlayer.api,2)}Y=X.yieldResult;Z=(R=Y)==null?void 0:R.getPlayerState();Z!==1||(t=Y)!=null&&t.pauseVideo();_.V9(X)})};
RS.prototype.playVideo=function(D,Y,R){var Z=this,t,X;return _.C(function(M){if(M.nextAddress==1)return M.yield((t=Z.JSC$17293_mainAppPlayer)==null?void 0:t.api,2);X=M.yieldResult;if(!Z.JSC$17293_mainAppPlayer||!X){var W=new _.AT("Error: mainAppPlayer is unavailable",Z.JSC$17293_mainAppPlayer);_.Nb(W);return M.return()}return M.yield(Z.JSC$17293_mainAppPlayer.loadVideoWithPlayerVars({videoId:Z.externalVideoId,audio_only:"1",start:D/1E3,end:D/1E3+Y,player_params:R}),0)})};
RS.prototype.pauseVideo=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1){if(!D.JSC$17293_mainAppPlayer){var t=new _.AT("Error: mainAppPlayer is unavailable",D.JSC$17293_mainAppPlayer);_.Nb(t);return Z.return()}return Z.yield(D.JSC$17293_mainAppPlayer.api,2)}Y=Z.yieldResult;(R=Y)==null||R.pauseVideo();_.V9(Z)})};
RS.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q;return _.C(function(E){if(E.nextAddress==1)return R=_.A(D,aVY),t=(Z=R)==null?void 0:Z.nowPlayingEntityValue,M=(X=R)==null?void 0:X.externalVideoId,G=Number((F=(W=R)==null?void 0:(z=W.defaultStartPoints)==null?void 0:(I=z[0])==null?void 0:I.offsetMs)!=null?F:"0"),K=Number((U=(V=R)==null?void 0:(e=V.defaultStartPoints)==null?void 0:(r=e[0])==null?void 0:(l=r.duration)==null?void 0:l.seconds)!=null?U:"15"),Q=(c=
(H=R)==null?void 0:H.playerParams)!=null?c:"",t&&M?Y.JSC$17293_mainAppPlayer?E.jumpTo(2):E.yield(F59(Y),2):E.return();if(E.nextAddress!=6){if(Y.nowPlayingEntityValue&&t===Y.nowPlayingEntityValue)return Y.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?E.yield(Y.pauseVideo(),0):E.yield(Y.playVideo(G,K,Q),0);Y.externalVideoId=M;Y.nowPlayingEntityValue=t;Y.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return E.yield(Y.playVideo(G,K,Q),6)}GUp(Y);return E.jumpTo(0)})};
RS[YS]=[Xc];var VbE=function(D){this.JSC$17311_commandHandler=D};
_.n(VbE,q6);VbE.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return(Z=_.A(D,gSL))?M.yield(_.jG(),2):M.return();t=M.yieldResult;if(!t)return M.return();(X=VuU(t))&&R.JSC$17311_commandHandler.resolveCommand(X,Y);_.V9(M)})};
VbE[YS]=[_.Yw];var ZE=function(D){this.JSC$17317_commandHandler=D};
_.n(ZE,q6);ZE.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return(Z=_.A(D,dFV))?z.yield(_.jG(),2):z.return();t=z.yieldResult;if(!t)return z.return();(X=rDo(t))?R.JSC$17317_commandHandler.resolveCommand(X,Y):(M=_.fX("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),W=_.Zl(M),R.JSC$17317_commandHandler.resolveCommand(W));_.V9(z)})};
ZE[YS]=[_.Yw];var tg=function(D){this.JSC$17320_playerPromise=D};
_.n(tg,q6);tg.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M;return _.C(function(W){if(W.nextAddress==1){R=_.A(D,hRV);if(!R)return W.return();Z=R.overlayRenderer;return Z?(t=_.A(Z,c$L))?W.yield(Y.JSC$17320_playerPromise,3):W.jumpTo(0):W.return()}X=W.yieldResult;X.renderChapterSeekingAnimation(1,_.OM(t.text),(M=t.icon)==null?void 0:M.iconType);_.V9(W)})};
tg[YS]=[_.CH];var si=function(D){this.store=D};
_.n(si,q6);
si.prototype.resolveCommand=function(D){var Y=this,R,Z,t;return _.C(function(X){if(X.nextAddress==1){R=_.A(D,pPV);if(!R)return X.return();Z="";(t=Y.store.getState().collabInviteLink)&&R.id===t.playlistId?Z=t.inviteLinkURL:R.shortUrl&&(Z=R.shortUrl);return Z?X.yield(navigator.clipboard.writeText(Z),3):X.jumpTo(0)}var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.fX("COPY_LINK_SUCCESS_TOAST")}}}}};_.DH().resolve(_.Yw).resolveCommand(M);_.V9(X)})};
si[YS]=[rw];var XH=function(D,Y){this.innertubeTransportService=D;this.JSC$17330_commandHandler=Y};
_.n(XH,q6);XH.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V;return _.C(function(e){if(e.nextAddress==1)return(Z=_.A(D,_.Px))?e.yield(_.d1(R.innertubeTransportService,D,(t=Y)==null?void 0:t.form),2):e.return();(X=e.yieldResult)&&X.errorMetadata&&(M=X,W=_.Zl(M.error.message),R.JSC$17330_commandHandler.resolveCommand(W));z=X;if((I=z)==null?0:I.actions)for(F=_.a(z.actions),G=F.next();!G.done;G=F.next())V=G.value,R.JSC$17330_commandHandler.resolveCommand(V);_.V9(e)})};
XH[YS]=[_.h6,_.Yw];var ue=function(){};
_.n(ue,q6);ue.prototype.resolveCommand=function(D){var Y;return _.C(function(R){Y=_.A(D,KPL);if(!Y)return R.return();(new DN_(Y)).show();_.V9(R)})};_.aS=new _.R6("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Mo=function(D,Y,R,Z){this.store=D;this.innertubeTransportService=Y;this.controller=R;this.JSC$17338_commandHandler=Z};
_.n(Mo,q6);
Mo.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O,Wo,Sb,VU,AS,nM;return _.C(function(Ho){if(Ho.nextAddress==1){Z=_.A(D,_.hh);if(!Z)return Ho.return();if(Z.clientActions){t=_.a(Z.clientActions);for(X=t.next();!X.done;X=t.next())M=X.value,R.JSC$17338_commandHandler.resolveCommand(M);var KM,Xb=Y==null?void 0:(KM=Y.form)==null?void 0:KM.element;Xb&&_.MX(Xb,"yt-dismissible-item-action",Z.clientActions)}return Ho.yield(_.d1(R.innertubeTransportService,D,(W=Y)==
null?void 0:W.form),2)}if(z=Ho.yieldResult)z.errorMetadata?(I=z,F=_.Zl(I.error.message),R.JSC$17338_commandHandler.resolveCommand(F),"error"in z&&((G=Y)==null?0:(V=G.commandController)==null?0:V.onServerError)&&((e=Y)==null||(r=e.commandController)==null||r.onServerError(D,z))):(l=Y)==null||(U=l.commandController)==null||(H=(K=U).onSuccess)==null||H.call(K,D,z);c=z;((Q=c)==null?0:Q.collaborationInviteLink)&&Z.playlistId&&(_.f("web_enable_invite_collaborators_link")||_.f("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
R.store.dispatch(_.u0({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Z.playlistId,inviteLinkUrl:c.collaborationInviteLink}}));((E=c)==null?0:E.redirectEndpoint)&&R.JSC$17338_commandHandler.resolveCommand(c.redirectEndpoint);((B=c)==null?0:(O=B.newHeader)==null?0:O.playlistHeaderRenderer)?fUT(R.controller,c.newHeader.playlistHeaderRenderer):((Wo=c)==null?0:(Sb=Wo.newHeader)==null?0:Sb.musicEditablePlaylistDetailHeaderRenderer)&&fUT(R.controller,c.newHeader.musicEditablePlaylistDetailHeaderRenderer);
R.controller.playlistVideoListElement&&((VU=c)==null?0:(AS=VU.playlistEditResults)==null?0:(nM=AS[0])==null?0:nM.playlistEditVideoAddedResultData)&&((Xb=R.controller.playlistVideoListElement)==null||Xb.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:c.playlistEditResults[0].playlistEditVideoAddedResultData})));_.V9(Ho)})};
Mo[YS]=[rw,_.h6,_.aS,_.Yw];var Cd=function(D,Y){this.controller=D;this.JSC$17348_commandHandler=Y};
_.n(Cd,q6);Cd.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X;return _.C(function(M){Z=_.A(D,EBz);R.controller.showRefreshPill&&((t=Z)==null?0:t.command)&&(R.JSC$17348_commandHandler.resolveCommand((X=Z)==null?void 0:X.command,Y),R.controller.showRefreshPill=!1);_.V9(M)})};
Cd[YS]=[_.M9,_.Yw];var Wa=function(D,Y){this.store=D;this.JSC$17352_commandHandler=Y||_.GD.instance};
_.n(Wa,q6);Wa.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V;return _.C(function(e){Z=_.A(D,u$z);t=R.store.getState().radioButtonGroup;if((X=Z)==null?0:X.command)R.JSC$17352_commandHandler.resolveCommand((M=Z)==null?void 0:M.command,Y);else if(t&&((W=Z)==null?void 0:W.formId)===t.currentFormId)for(z=Object.values(t.commandsMap),I=_.a(z),F=I.next();!F.done;F=I.next())G=F.value,(V=_.HL(G))&&R.JSC$17352_commandHandler.resolveCommand(V,Y);_.V9(e)})};
Wa[YS]=[_.xZ];var zH=new _.R6("USER_PREFS");var ST=function(D){this.JSC$17357_prefCookie=D};
_.n(ST,q6);ST.prototype.resolveCommand=function(D){var Y=this,R;return _.C(function(Z){(R=_.A(D,oBz))&&typeof R.useListView==="boolean"&&(_.rC(0,155,R.useListView),Y.JSC$17357_prefCookie.save());_.V9(Z)})};
ST[YS]=[zH];var TH=function(D){this.JSC$17361_prefCookie=D};
_.n(TH,q6);TH.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M;return _.C(function(W){R=_.A(D,LP4);if((Z=R)==null||!Z.gl)return W.return();t=R.gl;X={persist_gl:"1",gl:t};Y.JSC$17361_prefCookie.set("gl",t);Y.JSC$17361_prefCookie.save();M=bt7(X);_.pn(M);_.V9(W)})};
TH[YS]=[zH];var jT=function(D){this.JSC$17365_prefCookie=D};
_.n(jT,q6);jT.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){R=_.A(D,dZ_);if(!R)return t.return();Z=!1;R.flagNum&&typeof R.value==="boolean"?(_.rC(0,R.flagNum,R.value),Z=!0):R.key&&typeof R.stringValue==="string"&&(Y.JSC$17365_prefCookie.set(R.key,R.stringValue),Z=!0);Z&&Y.JSC$17365_prefCookie.save();_.V9(t)})};
jT[YS]=[zH];var IS=new _.R6("PREF_STORAGE_PROMISE_TOKEN");var FH=function(D){this.JSC$17369_prefStoragePromise=D};
_.n(FH,q6);FH.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1)return(R=_.A(D,OgE))?t.yield(Y.JSC$17369_prefStoragePromise,2):t.return();Z=t.yieldResult;return Z===void 0||R.key===void 0||R.value===void 0?t.return():t.yield(Z.set(R.key,R.value),0)})};
FH[YS]=[IS];var ejz=function(D){this.innertubeTransportService=D};
_.n(ejz,q6);ejz.prototype.resolveCommand=function(D,Y){var R=this,Z,t;return _.C(function(X){(Z=_.A(D,_.Ni7))&&Z&&Z.isFirstRequest&&(_.U7("search_overview_answer"),_.KX("so_rq",void 0,"search_overview_answer"));return X.yield(_.d1(R.innertubeTransportService,D,(t=Y)==null?void 0:t.form),0)})};
ejz[YS]=[_.h6];var ASk=function(){};
_.n(ASk,q6);
ASk.prototype.resolveCommand=function(D){var Y,R,Z,t,X,M,W,z,I;return _.C(function(F){Y=_.A(D,U04);if((R=Y)==null?0:R.sectionIdentifier){if(Y.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(t=(Z=document.getElementsByTagName(Y.sectionIdentifier))==null?void 0:Z.item(0))t.scrollIntoView({behavior:"smooth"}),(X=hU$(t))&&X.focus({preventScroll:!0});return F.return()}M=document.querySelector("[section-identifier="+Y.sectionIdentifier+"]");W=document.querySelector("[section-identifier="+Y.referenceSectionIdentifier+
"]");if(!M)return F.return();z=Y.verticalScrollOffsetDp?Y.verticalScrollOffsetDp:0;W&&(z-=W.offsetTop);window.scrollTo({top:M.offsetTop+z,behavior:"smooth"});(I=hU$(M))&&I.focus({preventScroll:!0})}_.V9(F)})};var GH=function(D){this.JSC$17381_commandHandler=D};
_.n(GH,q6);
GH.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z;return _.C(function(I){if(I.nextAddress==1){R=_.A(D,D8E);if(!R||!R.imageBytes||!navigator.clipboard)return I.return();if(R.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Nb(Error("Ci")),I.return();_.SX(I,2);t=(Z=R)==null?void 0:Z.imageBytes;X=t.replace(/-/g,"+").replace(/_/g,"/");M=sNo(X);W={};z=[new ClipboardItem((W[M.type]=M,W))];return I.yield(navigator.clipboard.write(z),4)}if(I.nextAddress!=2)return R.successCommand&&
Y.JSC$17381_commandHandler.resolveCommand(R.successCommand),_.xw(I,0);_.Gl(I);R.errorCommand&&Y.JSC$17381_commandHandler.resolveCommand(R.errorCommand);_.V9(I)})};
GH[YS]=[_.Yw];var Ve=function(D,Y){this.innertubeTransportService=D;this.JSC$17385_commandHandler=Y};
_.n(Ve,q6);Ve.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return(Z=_.A(D,YHU))?z.yield(_.d1(R.innertubeTransportService,D,(t=Y)==null?void 0:t.form),2):z.return();(X=z.yieldResult)&&X.errorMetadata&&Z.onFailureCommand&&R.JSC$17385_commandHandler.resolveCommand(Z.onFailureCommand);M=X;((W=M)==null?0:W.shareCommand)&&R.JSC$17385_commandHandler.resolveCommand(M.shareCommand,Y);_.V9(z)})};
Ve[YS]=[_.h6,_.Yw];var fd=function(){};
_.n(fd,q6);fd.prototype.resolveCommand=function(D){var Y,R;return _.C(function(Z){Y=_.A(D,QFL);if(!Y||!navigator.share)return Z.return();R={url:Y.url};try{return Z.return(navigator.share(R))}catch(t){}_.V9(Z)})};var eT=function(){};
_.n(eT,q6);eT.prototype.resolveCommand=function(){return _.C(function(D){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.V9(D)})};var Ag=function(D){this.JSC$17395_navigationConfirmationService=D};
_.n(Ag,q6);Ag.prototype.resolveCommand=function(){var D=this;return _.C(function(Y){D.JSC$17395_navigationConfirmationService.cancelPendingNavigation();_.V9(Y)})};
Ag[YS]=[em];var nd=function(D){this.JSC$17398_screenManager=D};
_.n(nd,q6);nd.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I;return _.C(function(F){t=(Z=Y.form)==null?void 0:Z.event;M=(X=Y.form)==null?void 0:X.element;if(!t)throw new _.AT("Event not passed in when resolving command");W=_.a(t.composedPath());for(z=W.next();!z.done;z=W.next())if(I=z.value,I.tagName==="YT-COPY-LINK-RENDERER")return I.copyUrlToClipboard(),M&&_.pB(R.JSC$17398_screenManager,M),F.return();_.V9(F)})};
nd[YS]=[_.ya];var ra=function(){this.JSC$17402_miniAppClientDataProvider=_.DH().resolve(_.pp)};
_.n(ra,q6);ra.prototype.resolveCommand=function(){var D=this,Y,R;return _.C(function(Z){if(D.JSC$17402_miniAppClientDataProvider.clientData.has("video_id")){var t=D.JSC$17402_miniAppClientDataProvider,X=t.clientData.get("video_id");X&&t.clientData.delete("video_id");Y="https://youtube.com/watch?v="+X;R=_.Ny(Y);if(R===void 0)throw Error("Di`"+Y);_.QB(window,R)}_.V9(Z)})};var wa=function(){};
_.n(wa,q6);wa.prototype.resolveCommand=function(){return _.C(function(D){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.V9(D)})};var $z=function(){};
_.n($z,q6);$z.prototype.resolveCommand=function(){var D;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.MRM(window.document.documentElement),2);(D=document.querySelector("mini-app-container-view-model iframe"))&&D.focus();_.V9(Y)})};var va=function(D){this.JSC$17409_navigationConfirmationService=D};
_.n(va,q6);
va.prototype.resolveCommand=function(){var D=this;return _.C(function(Y){var R=D.JSC$17409_navigationConfirmationService,Z=_.DH().resolve(_.o8),t;if(((t=R.navigateParams)==null?void 0:t.data)!==void 0){var X;_.tpE(Z,R.navigateParams.endpoint,R.navigateParams.data,(X=R.navigateParams.navigationType)!=null?X:1,R.navigateParams.tempData,R.navigateParams.isMiniplayer,void 0,!0);R.navigateParams=void 0;R.customConfirmationCommand=void 0}else R.navigateParams&&(Z.navigate(R.navigateParams.endpoint,R.navigateParams.reload,
R.navigateParams.params,R.navigateParams.tempData,R.navigateParams.requestType,R.navigateParams.createScreenConfig,!0),R.navigateParams=void 0,R.customConfirmationCommand=void 0);_.V9(Y)})};
va[YS]=[em];var oS=function(){};
_.n(oS,q6);oS.prototype.resolveCommand=function(){return _.C(function(D){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.V9(D)})};var be=function(D){this.JSC$17414_prefStorage=D};
_.n(be,q6);be.prototype.resolveCommand=function(){var D=this,Y,R;return _.C(function(Z){switch(Z.nextAddress){case 1:return Z.yield(D.JSC$17414_prefStorage,2);case 2:return(Y=Z.yieldResult)?Z.yield(Y.set("sfvle",!1),3):Z.return();case 3:return Z.yield(Y.set("sfvles",!0),4);case 4:R=_.nX(),_.rC(0,203,!1),_.rC(0,204,!0),R.save(),_.V9(Z)}})};
be[YS]=[IS];var ye=function(D){this.JSC$17417_prefStorage=D};
_.n(ye,q6);ye.prototype.resolveCommand=function(){var D=this,Y,R;return _.C(function(Z){switch(Z.nextAddress){case 1:return Z.yield(D.JSC$17417_prefStorage,2);case 2:return(Y=Z.yieldResult)?Z.yield(Y.set("sfvle",!0),3):Z.return();case 3:return Z.yield(Y.set("sfvles",!0),4);case 4:R=_.nX(),_.rC(0,203,!0),_.rC(0,204,!0),R.save(),_.V9(Z)}})};
ye[YS]=[IS];_.nnp=new _.R6("SNACKBAR_CONTROLLER_TOKEN");_.rSE=new _.R6("SHOULD_SHOW_PIVOT_BAR_TOKEN");var No=function(D){this.controller=D};
_.n(No,q6);No.prototype.resolveCommand=function(D){var Y=this,R;return _.C(function(Z){R=_.A(D,SHU);if(!R)return Z.return();var t=Y.controller;t.closeSnackbarFn&&t.closeSnackbarFn();_.V9(Z)})};
No[YS]=[_.nnp];var le=function(D,Y){this.controller=D;this.sheetController=Y};
_.n(le,q6);le.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z;return _.C(function(I){Z=_.A(D,jiD);if(!Z)return I.return();M=Mb0(R.sheetController,(t=Y)==null?void 0:(X=t.form)==null?void 0:X.element);W=_.A(Z.content,J$D);if(!W)return I.return();var F=R.controller,G=W,V=(z=Z.animationStyle)!=null?z:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(F.showSnackbarFn)F.showSnackbarFn({snackbarViewModel:G,animationStyle:V,durationMs:Z.durationSeconds*1E3,target:M});else throw Error("nj");_.V9(I)})};
le[YS]=[_.nnp,_.y$];var Jg=function(){};
_.n(Jg,q6);Jg.prototype.resolveCommand=function(D){var Y;return _.C(function(R){Y=_.A(D,igL);if(!Y||typeof Y.key!=="string"||typeof Y.value!=="string")return R.return();window.localStorage.setItem(Y.key,Y.value);_.V9(R)})};var kz=function(D){this.store=D};
_.n(kz,q6);kz.prototype.resolveCommand=function(D){var Y=this,R;return _.C(function(Z){R=_.A(D,H_b);if(!R||!R.stepId||!R.token)return Z.return();Y.store.dispatch(YqV({stepId:R.stepId,token:R.token,isSelected:!1}));_.V9(Z)})};
kz[YS]=[rw];var Ui=function(D,Y,R){this.innertubeTransportService=D;this.store=Y;this.JSC$17436_screenManager=R};
_.n(Ui,q6);
Ui.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E,B,O,Wo;return _.C(function(Sb){R=_.A(D,P3_);if(!R||(Z=R.stepIds)==null||!Z.length)return Sb.return();t=Y.store.getState().talkToRecs;X=[];M=[];W=_.a(R.stepIds);for(z=W.next();!z.done;z=W.next())for(I=z.value,F=void 0,(G=(F=t.stepStates[I])==null?void 0:F.userQuery)&&M.push({userQuery:G.userQuery,userQueryToken:G.token}),V=void 0,e=(V=t.stepStates[I])==null?void 0:V.selectionStates,r=_.a(Object.entries(e)),l=
r.next();!l.done;l=r.next())U=l.value,K=_.a(U),H=K.next().value,c=K.next().value,Q=H,E=c,E.isSelected&&X.push(Q);B={selectedChipTokens:X,userQueries:M,submittedStepIds:R.stepIds};O={browseTalk2recsFormData:B};R.browseEndpoint?(Wo=D,_.U4(Wo,_.A6,R.browseEndpoint)):R.command&&(Wo=R.command);return Wo?Sb.yield(_.d1(Y.innertubeTransportService,Wo,{formData:O,disableCache:!0}).then(function(VU){(VU==null?0:VU.trackingParams)&&Y.JSC$17436_screenManager.graftServerVe(VU==null?void 0:VU.trackingParams)}),
0):Sb.return()})};
Ui[YS]=[_.h6,rw,_.ya];var Kd=function(D){this.store=D};
_.n(Kd,q6);Kd.prototype.resolveCommand=function(D){var Y=this,R;return _.C(function(Z){R=_.A(D,q8l);if(!R||!R.stepId||!R.token)return Z.return();Y.store.dispatch(YqV({stepId:R.stepId,token:R.token,isSelected:!0}));_.V9(Z)})};
Kd[YS]=[rw];var hg=function(D){this.store=D};
_.n(hg,q6);hg.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W;return _.C(function(z){Z=_.A(D,QgU);if(!Z||!Z.stepId||!Z.userQueryToken)return z.return();W=(M=(t=Y)==null?void 0:(X=t.form)==null?void 0:X.userQuery)!=null?M:"";R.store.dispatch(_.u0({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:Z.stepId,userQueryToken:Z.userQueryToken,userQuery:W}}));_.V9(z)})};
hg[YS]=[rw];_.wob=new _.R6("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Ld=function(D){this.controller=D};
_.n(Ld,q6);Ld.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X;return _.C(function(M){R=_.A(D,lBz);if(!R)return M.return();Z=R;t=Z.id;X=Z.isVisible;if(t===void 0||X===void 0)return M.return();var W;(W=Y.controller.timelyActionsMap.get(t))==null||W(t,X);_.V9(M)})};
Ld[YS]=[_.wob];var $$K=function(){this.timelyActionsMap=new Map};var mZ=function(D){this.JSC$17463_commandHandler=D};
_.n(mZ,q6);mZ.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M;return _.C(function(W){R=_.A(D,_.ri);if(!R)return W.return();X=(Z=R.item)==null?void 0:(t=Z.notificationTextRenderer)==null?void 0:t.successResponseText;if(!X)return W.return();M=_.RQ(X);Y.JSC$17463_commandHandler.resolveCommand(M);_.V9(W)})};
mZ[YS]=[_.Yw];var qo=function(D,Y){this.innertubeTransportService=D;this.JSC$17468_playerApiPromise=Y};
_.n(qo,q6);
qo.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F;return _.C(function(G){if(G.nextAddress==1)return G.yield(Y.JSC$17468_playerApiPromise,2);R=G.yieldResult;Z=R.getOption("captions","track");t=Object.assign({},_.A(D,_.GRz));(M=(X=R.getVideoData())==null?void 0:X.video_id)?t.externalVideoId=M:_.qJ(Error("Ei"));if((W=Z)==null?0:W.languageCode)t.languageCode=Z.languageCode;if((z=Z)==null?0:z.kind)t.kind=Z.kind;if((I=Z)==null?0:I.name)t.name=Z.name;F=Object.assign({},D,{getTranscriptEndpoint:t});return G.yield(_.d1(Y.innertubeTransportService,
F),0)})};
qo[YS]=[_.h6,_.CH];var Ha=function(){};
_.n(Ha,q6);Ha.prototype.resolveCommand=function(D){var Y,R,Z,t,X,M,W,z;return _.C(function(I){Y=_.A(D,XFL);if((R=Y)==null||!R.paramKeyValuePairs)return I.return();Z=window.location.href;t=_.a(Y.paramKeyValuePairs);for(X=t.next();!X.done;X=t.next())M=X.value,M.key&&M.value&&(W={},Z=_.BD(Z,(W[M.key]=M.value,W)));z=_.DH().resolve(_.Gx);_.F1(z,Z);_.V9(I)})};var xz=function(D,Y){this.JSC$17475_commandHandler=D;this.innertubeTransportService=Y};
_.n(xz,q6);
xz.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c;return _.C(function(Q){switch(Q.nextAddress){case 1:return(X=(Z=Y)==null?void 0:(t=Z.form)==null?void 0:t.element)&&_.Pl(X),M=_.nX().get("hl"),W="",_.SX(Q,2),Q.yield(o1U(M),4);case 4:W=Q.yieldResult;_.xw(Q,3);break;case 2:return _.Gl(Q),X&&_.Q_(X),_.Nb(Error("Gi"),"ERROR"),Q.return();case 3:z=_.A(D,uhb);if(!z)return X&&_.Q_(X),Q.return();(G=(I=z.commerceActionConfig)==null?void 0:(F=I.commandLifeCycleConfig)==null?
void 0:F.onStartCommand)&&R.JSC$17475_commandHandler.resolveCommand(G);return Q.yield(_.d1(R.innertubeTransportService,D,{client_data:{paymentsClientToken:{token:W}}}),5);case 5:(V=Q.yieldResult)?(X&&_.Q_(X),((U=V)==null?0:U.command)&&R.JSC$17475_commandHandler.resolveCommand(V.command),(c=(K=z.commerceActionConfig)==null?void 0:(H=K.commandLifeCycleConfig)==null?void 0:H.onSuccessCommand)&&R.JSC$17475_commandHandler.resolveCommand(c)):(X&&_.Q_(X),_.Nb(Error("Hi")),(l=(e=z.commerceActionConfig)==
null?void 0:(r=e.commandLifeCycleConfig)==null?void 0:r.onFailureCommand)&&R.JSC$17475_commandHandler.resolveCommand(l)),_.V9(Q)}})};
xz[YS]=[_.Yw,_.h6];var Pa=function(D,Y,R){this.store=D;this.JSC$17491_commandHandler=Y;this.innertubeTransportService=R};
_.n(Pa,q6);
Pa.prototype.resolveCommand=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G;return _.C(function(V){Z=_.A(D,ab7);t=Z.googlePaymentPayload;Z.onStartCommand&&R.JSC$17491_commandHandler.resolveCommand(Z.onStartCommand);X=t.encryptedPurchaseParams;M=t.ypcLogWalletAnalyticDataEndpoint;W=Z.serializedTransactionFlowLoggingParams;z=t.serializedPaymentsClientParams;I=Z.ypcCujContext;G=NWi(R.innertubeTransportService,(F=Y)==null?void 0:F.form,X,M,W,z,I);return V.return(G.then(function(e){b5M(Y==null?void 0:Y.form,
!1);var r=R.store,l=R.JSC$17491_commandHandler,U=e.integratorData;U==null||U===""||e.error!=null?(String(e.error)==="-1"&&Z.onDismissCommand?l.resolveCommand(Z.onDismissCommand):String(e.error)!=="-1"&&Z.onFailureCommand&&l.resolveCommand(Z.onFailureCommand),String(e.error)!=="-1"&&String(e.error)!=="132"&&_.Nb(Error("Ii"),"ERROR")):(Z.googlePaymentEntityKey&&r.dispatch(_.oP("commerceAcquisitionClientPayloadEntity",Z.googlePaymentEntityKey,{key:Z.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:U,
fundsGuaranteeCallbackClientData:e.integratorClientCallbackData}}})),Z.onSuccessCommand&&l.resolveCommand(Z.onSuccessCommand));_.TA()},function(e){b5M(Y==null?void 0:Y.form,!1);
_.Nb(e,"ERROR");Z.onFailureCommand&&R.JSC$17491_commandHandler.resolveCommand(Z.onFailureCommand)}))})};
Pa[YS]=[Xc,_.Yw,_.h6];var Qe=function(D,Y){this.JSC$17495_commandHandler=D;this.purchaseManager=Y};
_.n(Qe,q6);
Qe.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F;return _.C(function(G){R=_.A(D,Mnb);((Z=R)==null?0:(t=Z.commandLifeCycleConfig)==null?0:t.onStartCommand)&&Y.JSC$17495_commandHandler.resolveCommand(R.commandLifeCycleConfig.onStartCommand);if(!((X=R)==null?0:(M=X.googlePaymentPurchaseManagerPayload)==null?0:M.securePayloadBytes))return _.Nb(Error("Ji"),"ERROR"),G.return();W=u9D(_.dr(R.googlePaymentPurchaseManagerPayload.securePayloadBytes));z=_.nX().get("hl");I=_.iq();nAU(W.serialize(),
z,function(V){I.resolve(V)},function(V){I.reject(V)},I.resolve);
F=I.promise;return G.return(F.then(function(V){if(V)if(V==null?0:V.errorCode){_.Nb(Error("Ki`"+V.errorCode),"ERROR");var e,r;((e=R)==null?0:(r=e.commandLifeCycleConfig)==null?0:r.onFailureCommand)&&Y.JSC$17495_commandHandler.resolveCommand(R.commandLifeCycleConfig.onFailureCommand)}else if(V==null?0:V.isCancelled){var l,U;((l=R)==null?0:(U=l.commandLifeCycleConfig)==null?0:U.onCancelCommand)&&Y.JSC$17495_commandHandler.resolveCommand(R.commandLifeCycleConfig.onCancelCommand)}else{var K,H;((K=R)==
null?0:(H=K.commandLifeCycleConfig)==null?0:H.onSuccessCommand)&&Y.JSC$17495_commandHandler.resolveCommand(R.commandLifeCycleConfig.onSuccessCommand)}},function(V){_.Nb(V,"ERROR");
var e,r;((e=R)==null?0:(r=e.commandLifeCycleConfig)==null?0:r.onFailureCommand)&&Y.JSC$17495_commandHandler.resolveCommand(R.commandLifeCycleConfig.onFailureCommand)}))})};
Qe[YS]=[_.Yw,re7];var vnK=function(D,Y){this.JSC$17503_commandHandler=D;this.commandAllowlistOverride=Y;var R;this.commandAllowlist=(R=this.commandAllowlistOverride)!=null?R:OD};
vnK.prototype.handleResponse=function(D,Y,R){var Z,t=Y==null?void 0:(Z=Y.config)==null?void 0:Z.command;if(!t||this.commandAllowlist.some(function(X){return!!_.A(t,X)})){Y=void 0;
R!==void 0&&(Y={form:{element:R}});D.onResponseReceivedCommand&&this.JSC$17503_commandHandler.resolveCommand(D.onResponseReceivedCommand,Y);D.onResponseReceivedAction&&this.JSC$17503_commandHandler.resolveCommand(D.onResponseReceivedAction,Y);D.onResponseReceivedEndpoint&&this.JSC$17503_commandHandler.resolveCommand(D.onResponseReceivedEndpoint,Y);D.command&&this.JSC$17503_commandHandler.resolveCommand(D.command,Y);if(D.onResponseReceivedCommands)for(R=_.a(D.onResponseReceivedCommands),Z=R.next();!Z.done;Z=
R.next())this.JSC$17503_commandHandler.resolveCommand(Z.value,Y);if(D.onResponseReceivedActions)for(R=_.a(D.onResponseReceivedActions),Z=R.next();!Z.done;Z=R.next())this.JSC$17503_commandHandler.resolveCommand(Z.value,Y);if(D.onResponseReceivedEndpoints)for(R=_.a(D.onResponseReceivedEndpoints),Z=R.next();!Z.done;Z=R.next())this.JSC$17503_commandHandler.resolveCommand(Z.value,Y);if(D.actions)for(D=_.a(D.actions),R=D.next();!R.done;R=D.next())this.JSC$17503_commandHandler.resolveCommand(R.value,Y)}};
vnK[YS]=[_.Yw,_.cD(o_i)];var onb=new _.R6("INNERTUBE_TOKEN_SERVICE");var bMb=new _.R6("SCHEDULER_TOKEN");var ySE=function(D){this.scheduler=D;D={};this.tokenMap=(D.app={},D.user={},D)};
ySE.prototype.handleResponse=function(D,Y){if(!Y)throw Error("Li");var R;if(D=(R=D.responseContext)==null?void 0:R.innertubeTokenJar){if(D.appTokens){var Z,t,X;R=(Z=Y.innerTubeRequest.context)==null?void 0:(t=Z.request)==null?void 0:(X=t.innertubeTokenJar)==null?void 0:X.appTokens;NrE(this,D.appTokens,this.tokenMap.app,R)}if(D.userTokens){var M,W,z;Y=(M=Y.innerTubeRequest.context)==null?void 0:(W=M.request)==null?void 0:(z=W.innertubeTokenJar)==null?void 0:z.userTokens;NrE(this,D.userTokens,this.tokenMap.user,
Y)}}};
ySE.prototype.processContext=function(D){D.request||(D.request={});var Y=Object.keys(this.tokenMap.app).length,R=Object.keys(this.tokenMap.user).length;if(Y||R)D.request.innertubeTokenJar={},Y&&(D.request.innertubeTokenJar.appTokens=[].concat(_.oK(Object.values(this.tokenMap.app).flat()))),R&&(D.request.innertubeTokenJar.userTokens=[].concat(_.oK(Object.values(this.tokenMap.user).flat())))};
var NrE=function(D,Y,R,Z){Y=_.a(Y);for(var t=Y.next(),X={};!t.done;X={token$jscomp$138:void 0},t=Y.next()){X.token$jscomp$138=t.value;if(X.token$jscomp$138.type===void 0)throw new _.AT("InnerTube token has no type",X.token$jscomp$138);if(X.token$jscomp$138.clearTokens)R[X.token$jscomp$138.type]=[];else if(X.token$jscomp$138.value!==void 0){R[X.token$jscomp$138.type]||(R[X.token$jscomp$138.type]=[]);if(Z!==void 0&&Z.length){t=_.a(Z);for(var M=t.next(),W={};!M.done;W={requestToken:void 0},M=t.next())W.requestToken=
M.value,M=R[X.token$jscomp$138.type].findIndex(function(z){return function(I){return I===z.requestToken||(0,_.y7.equals)(I,z.requestToken)}}(W)),M>-1&&R[X.token$jscomp$138.type].splice(M,1)}R[X.token$jscomp$138.type].push(X.token$jscomp$138);
X.token$jscomp$138.maxAgeSeconds&&Number(X.token$jscomp$138.maxAgeSeconds)>0&&D.scheduler.addLowPriorityJob(function(z){return function(){var I=R[z.token$jscomp$138.type].indexOf(z.token$jscomp$138);I>-1&&R[z.token$jscomp$138.type].splice(I,1)}}(X),Number(X.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.AT("InnerTube token has no value",X.token$jscomp$138);
}};
ySE[YS]=[bMb];var lUb=new _.R6("LOCAL_INNERTUBE_ROUTER_TOKEN"),JSb=new _.R6("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ba=function(D){this.serviceMap=D};
Ba.prototype.shouldPreferLocalResponse=function(D,Y){return(D=kU9(this,D))?D.shouldPreferLocalResponse(Y):!1};
Ba.prototype.localInnertubeResponse=function(D,Y){var R=this,Z;return _.C(function(t){return(Z=kU9(R,D))?t.return(Z.localInnertubeResponse(Y)):t.return(Promise.reject(Error("Mi")))})};
Ba.prototype.canProvideFallbackResponse=function(D,Y){return(D=kU9(this,D))?D.canProvideFallbackResponse(Y):!1};
Ba.prototype.localFallbackInnertubeResponse=function(D,Y){var R=this,Z;return _.C(function(t){return(Z=kU9(R,D))?t.return(Z.localFallbackInnertubeResponse(Y)):t.return(Promise.reject(Error("Mi")))})};
var kU9=function(D,Y){Y=_.zZ(Y);return Y?(D=D.serviceMap[Y])?D:null:null};
Ba[YS]=[JSb];var e3=function(){};
e3.prototype.shouldPreferLocalResponse=function(){return!1};
e3.prototype.localInnertubeResponse=function(){return _.C(function(D){return D.return(Promise.reject(Error("Ni")))})};
e3.prototype.canProvideFallbackResponse=function(){return!0};
e3.prototype.localFallbackInnertubeResponse=function(){var D,Y,R;return _.C(function(Z){D=f9("CLOSE_POPUP");Y={openPopupAction:JDb()};R={actions:[D,Y]};return Z.return(R)})};var ND5=function(D,Y){this.JSC$17553_upliftPromise=D;this.store=Y};
_.u=ND5.prototype;_.u.shouldPreferLocalResponse=function(D){var Y=D.videoId,R;if(R=Y)R=D8n(this.store.getState().entities,D.videoId);return R&&YH$(this.store.getState().entities,Y)?U5o(this.store.getState().entities,D.playlistId):!1};
_.u.localInnertubeResponse=function(D){var Y=this,R;return _.C(function(Z){return(R=Y.getPlayerResponse(D))?Z.return(Promise.resolve(R)):Z.return(Promise.reject(Error("Oi")))})};
_.u.canProvideFallbackResponse=function(D){return!!D.videoId};
_.u.localFallbackInnertubeResponse=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.JSC$17553_upliftPromise,2);R=Y.getPlayerResponse(D);var t;R?t=Z.return(Promise.resolve(R)):t=vU(Y.store.getState().entities,D.videoId)?Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.tu(_.fX("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:qab()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.tu(_.fX("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:m_S()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return t})};
_.u.getPlayerResponse=function(D){return vWU(this.store.getState().entities,D.videoId)};var fo=function(D,Y){this.localPlayerService=D;this.localWatchNextService=Y};
fo.prototype.shouldPreferLocalResponse=function(D){var Y=D.playerRequest;D=D.watchNextRequest;return!!(Y&&this.localPlayerService.shouldPreferLocalResponse(Y)&&D&&this.localWatchNextService.shouldPreferLocalResponse(D))};
fo.prototype.localInnertubeResponse=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1){R=D.playerRequest;Z=D.watchNextRequest;if(!R||!Z)throw new _.AT("Missing streaming request",D);return M.yield(Y.localPlayerService.localInnertubeResponse(R),2)}if(M.nextAddress!=3)return t=M.yieldResult,M.yield(Y.localWatchNextService.localInnertubeResponse(Z),3);X=M.yieldResult;return M.return({playerResponse:t,watchNextResponse:X})})};
fo.prototype.canProvideFallbackResponse=function(D){var Y=D.playerRequest;D=D.watchNextRequest;return!!(Y&&this.localPlayerService.canProvideFallbackResponse(Y)&&D&&this.localWatchNextService.canProvideFallbackResponse(D))};
fo.prototype.localFallbackInnertubeResponse=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return R=D.playerRequest,Z=D.watchNextRequest,R&&Z?M.yield(Y.localPlayerService.localFallbackInnertubeResponse(R),2):M.return(Promise.reject(new _.AT("Missing streaming request",D)));if(M.nextAddress!=3)return t=M.yieldResult,M.yield(Y.localWatchNextService.localFallbackInnertubeResponse(Z),3);X=M.yieldResult;return M.return({playerResponse:t,watchNextResponse:X})})};var Fc=function(D){this.JSC$17563_persistentStorePromiseAccessor=D};
Fc.prototype.shouldPreferLocalResponse=function(){return!1};
Fc.prototype.localInnertubeResponse=function(){return _.C(function(D){return D.return(Promise.reject(Error("Pi")))})};
Fc.prototype.canProvideFallbackResponse=function(){return!0};
Fc.prototype.localFallbackInnertubeResponse=function(){var D=this,Y,R;return _.C(function(Z){return Z.nextAddress==1?Z.yield(D.JSC$17563_persistentStorePromiseAccessor(),2):Z.nextAddress!=3?(Y=Z.yieldResult)?Z.yield(Y.get("service:guide:fallback"),3):Z.return(Promise.reject(Error("Qi"))):(R=Z.yieldResult)&&_.tn(R)?Z.return(Kxb(_.tn(R))):Z.return(Promise.reject(Error("Ri")))})};var An=function(){};
An.prototype.shouldPreferLocalResponse=function(){return!1};
An.prototype.localInnertubeResponse=function(){return _.C(function(D){return D.return(Promise.reject(Error("Si")))})};
An.prototype.canProvideFallbackResponse=function(){return!0};
An.prototype.localFallbackInnertubeResponse=function(){var D,Y,R;return _.C(function(Z){D=f9("CLOSE_POPUP");Y={openPopupAction:JDb()};R={actions:[D,Y]};return Z.return(R)})};var Ia=function(){this.urlMap=U$0;this.fallbackCommand=_.nN};
Ia.prototype.shouldPreferLocalResponse=function(D){return(D=D.url)?!!K50(this,D):!1};
Ia.prototype.localInnertubeResponse=function(D){var Y=this,R;return _.C(function(Z){return(R=D.url)?Z.return(hjt(D,K50(Y,R))):Z.return(Promise.reject(Error("Ti")))})};
Ia.prototype.canProvideFallbackResponse=function(){return!0};
Ia.prototype.localFallbackInnertubeResponse=function(D){var Y=this,R,Z,t,X,M,W,z;return _.C(function(I){R=D.url;if(!R)return I.return(hjt(D,Y.fallbackCommand));if(Z=K50(Y,R))return I.return(hjt(D,Z));t=void 0;X=_.zZ(R);X==="/watch"&&(M=_.LG(R,"v"))&&(z=(W=_.LG(R,"list"))!=null?W:void 0,t=_.ZQ(M,z));t||(t=Y.fallbackCommand);return I.return(hjt(D,t))})};
var K50=function(D,Y){if(Y)return D.urlMap[_.BO(Y)]},hjt=function(D,Y){Y&&D.parentTrackingParams&&(Y.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:D.parentTrackingParams}},Y.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:Y})};var G3=function(D,Y,R){this.JSC$17573_upliftPromise=D;this.store=Y;this.JSC$17573_persistentStorePromiseAccessor=R};
G3.prototype.shouldPreferLocalResponse=function(){return!1};
G3.prototype.localInnertubeResponse=function(){return _.C(function(D){return D.return(Promise.reject(Error("Ui")))})};
G3.prototype.canProvideFallbackResponse=function(){return!0};
G3.prototype.localFallbackInnertubeResponse=function(){var D=this;return _.C(function(Y){return Y.return(L5h(D))})};
var L5h=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(ZF(D.JSC$17573_upliftPromise,D.store),2);Y=Z.yieldResult;R={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[k4n(Y)]}}}};return Z.return(m$h(D,R))})},m$h=function(D,Y){var R,Z;
return _.C(function(t){if(t.nextAddress==1)return t.yield(D.JSC$17573_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return R=t.yieldResult,t.yield(sR(R),3);Z=t.yieldResult;return t.return({responseContext:{},contents:Y,topbar:Z})})};var T3=function(D,Y,R){this.JSC$17580_upliftPromise=D;this.store=Y;this.JSC$17580_persistentStorePromiseAccessor=R};
T3.prototype.shouldPreferLocalResponse=function(D){var Y=D.videoId;return Y&&D8n(this.store.getState().entities,Y)&&YH$(this.store.getState().entities,Y)?U5o(this.store.getState().entities,D.playlistId):!1};
T3.prototype.localInnertubeResponse=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1)return(R=D.videoId)?t.yield(Y.JSC$17580_upliftPromise,2):t.return(Promise.reject(Error("Vi")));if(t.nextAddress!=3)return t.yield(qyI(Y,D,R),3);Z=t.yieldResult;return t.return(HMt(Y,Z,R))})};
T3.prototype.canProvideFallbackResponse=function(D){return D.videoId?!0:!1};
T3.prototype.localFallbackInnertubeResponse=function(D){var Y=this,R,Z,t,X;return _.C(function(M){switch(M.nextAddress){case 1:return(R=D.videoId)?M.yield(Y.JSC$17580_upliftPromise,2):M.return(Promise.reject(Error("Vi")));case 2:return M.yield(qyI(Y,D,R),3);case 3:Z=M.yieldResult;if(vU(Y.store.getState().entities,R)){M.jumpTo(4);break}return M.yield(ZF(Y.JSC$17580_upliftPromise,Y.store),5);case 5:return t=M.yieldResult,M.return(x$u(Z,t));case 4:return D8n(Y.store.getState().entities,R)&&YH$(Y.store.getState().entities,
R)?M.return(HMt(Y,Z,R)):(X={title:_.tu(_.fX("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:qab()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},M.return(x$u(Z,X)))}})};
var qyI=function(D,Y,R){var Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return Z=Y.playlistId,t=_.ZQ(R,Z),z.yield(D.JSC$17580_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return X=z.yieldResult,z.yield(sR(X),3);M=z.yieldResult;W={responseContext:{},currentVideoEndpoint:t,topbar:M};return z.return(W)})},HMt=function(D,Y,R){if(D=vU(D.store.getState().entities,R)){var Z;
R=D.videoEntity;var t,X={title:sM(R.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Xs((Z=R.localizedStrings)==null?void 0:Z.viewCount),viewCount:_.Xs((t=R.localizedStrings)==null?void 0:t.viewCount)}}};R.publishedTimestampMillis&&(X.dateText=_.Xs(F0j(new Date(Number(R.publishedTimestampMillis)))));Z={videoPrimaryInfoRenderer:X};t=D.videoEntity;D=D.channelEntity;D={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:sM(_.fX("SHOW_MORE",void 0,"Show more")),
showLessText:sM(_.fX("SHOW_LESS",void 0,"Show less")),description:t.formattedDescription,owner:{videoOwnerRenderer:{title:sM(D.title),thumbnail:D.avatar}}}};Y.contents={twoColumnWatchNextResults:{results:{results:{contents:[Z,D]}}}}}return Y},x$u=function(D,Y){D.contents={singleColumnWatchNextResults:{results:{results:{contents:[k4n(Y)]}}}};
return D};var V4=function(D,Y,R){this.JSC$17585_upliftPromise=D;this.store=Y;this.JSC$17585_persistentStorePromiseAccessor=R};
V4.prototype.shouldPreferLocalResponse=function(){return!1};
V4.prototype.localInnertubeResponse=function(){return _.C(function(D){return D.return(Promise.reject(Error("Wi")))})};
V4.prototype.canProvideFallbackResponse=function(){return!0};
V4.prototype.localFallbackInnertubeResponse=function(){var D=this,Y,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return X.yield(D.JSC$17585_persistentStorePromiseAccessor(),2);case 2:return Y=X.yieldResult,X.yield(sR(Y),3);case 3:return R=X.yieldResult,Z={responseContext:{},topbar:R},X.yield(D.JSC$17585_upliftPromise,4);case 4:return X.yield(ZF(D.JSC$17585_upliftPromise,D.store),5);case 5:return t=X.yieldResult,Z.watchStatus={backgroundPromoRenderer:t},X.return(Z)}})};_.P90=new _.R6("ENDPOINT_MAP");var Qlz=function(){var D=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return D.sequenceMap}}},DoE=function(D,Y,R){var Z,t=(Z=Y.config)==null?void 0:Z.sequenceStrategy;
if(!t)return R();D.sequenceMap.has(t.sequenceKey)||D.sequenceMap.set(t.sequenceKey,[]);D=D.sequenceMap.get(t.sequenceKey);switch(t.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return BrE(D,Y,R);case "REQUEST_SEQUENCE_TYPE_REPLACE":return pok(D,Y,R);default:throw new _.AT("Request could not be sequenced",Y);}},BrE=function(D,Y,R){var Z,t,X;
return _.C(function(M){D.length>0?(t=D[D.length-1],Z=t.responsePromise.then(function(){return R()})):Z=R();
X={request:Y,responsePromise:Z};D.push(X);EnK(D,X);return M.return(X.responsePromise)})},pok=function(D,Y,R){R=R();
if(D.length>0)for(var Z=_.a(D),t=Z.next();!t.done;t=Z.next())t.value.responsePromise=R;var X={request:Y,responsePromise:R};D.push(X);EnK(D,X);return Promise.resolve().then(function(){return D.indexOf(X)>0?X.responsePromise.then(function(M){return Object.assign({},M,{sequenceMetaData:{skipProcessing:!0}})}):X.responsePromise})},EnK=function(D,Y){Y.responsePromise.then(function(){var R=D.indexOf(Y);
R>-1&&D.splice(R,1)})};var gnu=new _.R6("REQUEST_SEQUENCING");var pd=function(){};
_.n(pd,j8);pd.prototype.getApiPaths=function(){return[]};
pd.prototype.getExtension=function(D){return _.A(D,C3z)};
pd.prototype.JSC$13015_buildRequest=function(D,Y){D.recaptchaToken=Y.recaptchaToken};
pd.prototype.getApiUrl=function(){return"/das_captcha"};var Ei=function(){};
_.n(Ei,j8);Ei.prototype.getApiPaths=function(){return svE};
Ei.prototype.getExtension=function(D){return _.A(D,LcL)};
Ei.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.createBackstagePostParams&&(D.createBackstagePostParams=Y.createBackstagePostParams);R.comment_text&&(D.commentText=R.comment_text);if(R.attached_video_id)D.videoAttachment={videoId:R.attached_video_id};else if(R.image_poll_options)D.pollAttachmentData={options:R.image_poll_options};else if(R.poll_options)D.pollAttachment={choices:R.poll_options};else if(R.quiz_options)D.quizAttachmentData={options:R.quiz_options};else if(R.image_blob_id)D.imageAttachment=
{encryptedBlobId:R.image_blob_id},R.source_video_id&&(D.imageAttachment.sourceExternalVideoId=R.source_video_id),R.image_preview_coordinates&&(D.imageAttachment.previewCoordinates=JSON.parse(R.image_preview_coordinates));else if(R.images_data)D.imagesAttachment={imagesData:R.images_data};else if(R.clip_external_video_id!==void 0||R.clip_offset_ms!==void 0||R.clip_duration_ms!==void 0){var Z,t,X,M,W;D.clipAttachment={externalVideoId:(X=R.clip_external_video_id)!=null?X:"",offsetMs:(M=(Z=R.clip_offset_ms)==
null?void 0:Z.toString())!=null?M:"",durationMs:(W=(t=R.clip_duration_ms)==null?void 0:t.toString())!=null?W:""}}else R.shared_post_id&&(D.sharedPostAttachment={postId:R.shared_post_id});R.tagged_video_id&&(D.postCreationData={taggedVideoId:R.tagged_video_id});R.access_restrictions&&(typeof R.access_restrictions==="number"&&(Y=R.access_restrictions,D.accessRestrictions={restriction:Y!==1&&Y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof R.access_restrictions==="string"&&
(D.accessRestrictionsParams=R.access_restrictions));R.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=R.scheduled_publish_time_sec.toString())};var da=function(){};
_.n(da,j8);da.prototype.getApiPaths=function(){return zNE};
da.prototype.getExtension=function(D){return _.A(D,XxL)};
da.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.decorateMessageParams&&(D.params=Y.decorateMessageParams);R.text&&(D.text=R.text)};var ie=function(){};
_.n(ie,j8);ie.prototype.getApiPaths=function(){return l6z};
ie.prototype.getExtension=function(D){return _.A(D,mqE)};
ie.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;R.video_id&&(D.videoId=R.video_id)};var Oi=function(){};
_.n(Oi,j8);Oi.prototype.getApiPaths=function(){return hNL};
Oi.prototype.getExtension=function(D){return _.A(D,_.Fa)};
Oi.prototype.JSC$13015_buildRequest=function(D,Y,R){R.suggestions_query&&(D.input=R.suggestions_query)};var ca=function(){};
_.n(ca,j8);ca.prototype.getApiPaths=function(){return FTL};
ca.prototype.getExtension=function(D){return _.A(D,qrL)};
ca.prototype.JSC$13015_buildRequest=function(D,Y,R){R.comment_text!==void 0&&(D.commentText=R.comment_text);R.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=R.scheduled_publish_time_sec.toString());D.updateBackstagePostParams=Y.updateBackstagePostParams};var Dg=function(){};
_.n(Dg,j8);Dg.prototype.getApiPaths=function(){return iE};
Dg.prototype.getExtension=function(D){return _.A(D,_.PN)};
Dg.prototype.JSC$13015_buildRequest=function(D,Y,R){R.formData&&(D.formData=R.formData);Y.token?D.continuation=Y.token:Y.continuationTokenKey&&(R=_.Dl().getState(),Y=_.jC(R.entities,"continuationTokenEntity",Y.continuationTokenKey))&&(D.continuation=String(Y.continuationToken))};
var d$h=function(){};
_.n(d$h,j8);_.u=d$h.prototype;_.u.getApiPaths=function(){return iE};
_.u.getExtension=function(D){return _.A(D,_.A6)};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$13022_getStoreKey=function(D){if((D=this.getExtension(D))&&D.browseId){var Y={browseId:D.browseId};D.browseEndpointContextSupportedConfigs&&(Y.browseEndpointContextSupportedConfigs=JSON.stringify(D.browseEndpointContextSupportedConfigs));D.params&&(Y.params=D.params);D.query&&(Y.query=D.query);return _.dZ("browse",Y)}};
_.u.JSC$13015_buildRequest=function(D,Y,R){Y.browseId&&(D.browseId=Y.browseId);Y.params&&(D.params=Y.params);Y.query&&(D.query=Y.query);R.formData?D.formData=R.formData:Y.formData&&(D.formData=Y.formData);Y.browseId==="FEsubscriptions"&&_.nX().getFlag(155)&&(D.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");Y.browseId==="SPaccount_playback"&&(R=_.nX(),D.formData||(D.formData={}),D.formData.accountSettingsFormData={flagCaptionsDefaultOff:R.getFlag(65),flagAutoCaptionsDefaultOn:R.getFlag(66),
flagDisableInlinePreview:R.getFlag(186),flagAudioDescriptionDefaultOn:R.getFlag(198)});if(Y.browseId==="FEwhat_to_watch"){R=_.nX();var Z=R.getFlag(196);R.getFlag(197)&&(D.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Z}}})}Y.browseId==="FEwhat_to_watch"&&(Y=_.nX().getFlag(186),D.inlineSettingStatus=Y?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.u.getRequestConfig=function(D,Y){Y=Y===void 0?{}:Y;var R={};if(D=this.JSC$13022_getStoreKey(D,Y))R.storeStrategy={storeKey:D,disableCache:Y.disableCache};_.f("web_log_browse_ticks_ks")||(R.requestTick="br_s",R.responseTick="br_r");return R};var YX=function(){};
_.n(YX,j8);YX.prototype.getApiPaths=function(){return cVz};
YX.prototype.getExtension=function(D){return _.A(D,js4)};
YX.prototype.JSC$13015_buildRequest=function(D,Y,R){D.legacyYoutubeChannelUsername=R.legacyYouTubeChannelUsername||"";D.legacyYoutubeChannelPassword=R.legacyYouTubeChannelPassword||""};var RA=function(){};
_.n(RA,j8);RA.prototype.getApiPaths=function(){return XV_};
RA.prototype.getExtension=function(D){return _.A(D,grz)};
RA.prototype.JSC$13015_buildRequest=function(D,Y,R){R.recaptcha_response_token&&(D.recaptchaResponseToken=R.recaptcha_response_token);R.channel_id&&(D.channelId=R.channel_id)};var Zg=function(){};
_.n(Zg,j8);Zg.prototype.getApiPaths=function(){return GxL};
Zg.prototype.getExtension=function(D){return _.A(D,Yk7)};
Zg.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.externalChannelId&&(D.externalChannelId=Y.externalChannelId);R.handle&&(D.handleUpdate={handle:R.handle},Y.handleEditSource&&(D.handleUpdate.handleEditSource=Y.handleEditSource))};var tK=function(){};
_.n(tK,j8);tK.prototype.getApiPaths=function(){return A7U};
tK.prototype.getExtension=function(D){return _.A(D,nBz)};
tK.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.request&&(D.channelId=Y.request.channelId);var Z;if(R==null?0:(Z=R.uploadDefaults)==null?0:Z.emojiReactionSet)D.uploadDefaultsRequest||(D.uploadDefaultsRequest={}),D.uploadDefaultsRequest.emojiReactionSet=R.uploadDefaults.emojiReactionSet};var sh=function(){};
_.n(sh,j8);sh.prototype.getApiPaths=function(){return wV4};
sh.prototype.getExtension=function(D){return _.A(D,dqL)};
sh.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.externalChannelId&&(D.externalChannelId=Y.externalChannelId);Y.channelHandleEntityKey&&(D.channelHandleEntityKey=Y.channelHandleEntityKey);Y.handleEditSource&&(D.handleEditSource=Y.handleEditSource);R.handle?D.handle=R.handle:R.name&&(D.name=R.name)};var uZ=function(){};
_.n(uZ,j8);uZ.prototype.getApiPaths=function(){return RNE};
uZ.prototype.getExtension=function(D){return _.A(D,mvV)};
uZ.prototype.JSC$13015_buildRequest=function(D,Y){Y.actions?D.actions=Y.actions:Y.action&&(D.actions=[Y.action])};var aA=function(){};
_.n(aA,j8);aA.prototype.getApiPaths=function(){return ZSE};
aA.prototype.getExtension=function(D){return _.A(D,_.PN)};
aA.prototype.JSC$13015_buildRequest=function(D,Y){Y.token&&(D.continuation=Y.token)};var Mj=function(){};
_.n(Mj,j8);Mj.prototype.getApiPaths=function(){return yUE};
Mj.prototype.getExtension=function(D){return _.A(D,_.PN)};
Mj.prototype.JSC$13015_buildRequest=function(D,Y){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Y.token&&(D.fetchCommentsParams={continuation:Y.token})};var CZ=function(){};
_.n(CZ,j8);CZ.prototype.getApiPaths=function(){return a6L};
CZ.prototype.getExtension=function(D){return _.A(D,LML)};
CZ.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.createReplyParams&&(D.createReplyParams=Y.createReplyParams);Y.commentText&&(D.commentText=_.OM(Y.commentText));R.comment_text&&(D.commentText=R.comment_text);R.image_blob_id&&(D.imageAttachment={encryptedBlobId:R.image_blob_id});R.botguard_response&&(D.botguardResponse=R.botguard_response)};
_.YF.Object.defineProperties(CZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WI=function(){};
_.n(WI,j8);WI.prototype.getApiPaths=function(){return M5U};
WI.prototype.getExtension=function(D){return _.A(D,_.hOL)};
WI.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.createCommentParams&&(D.createCommentParams=Y.createCommentParams);Y.commentText&&(D.commentText=_.OM(Y.commentText));Y.videoPositionMention&&(D.videoPositionMention=Y.videoPositionMention);Y.sources&&(D.sources=Y.sources);R.comment_text&&(D.commentText=R.comment_text);R.attached_video_id?D.videoAttachment={videoId:R.attached_video_id}:R.poll_options?D.pollAttachment={choices:R.poll_options}:R.image_blob_id?D.imageAttachment=
{encryptedBlobId:R.image_blob_id}:R.shared_post_id&&(D.sharedPostAttachment={postId:R.shared_post_id});R.access_restrictions&&typeof R.access_restrictions==="number"&&(Y=R.access_restrictions,D.accessRestrictions={restriction:Y!==1&&Y===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});R.botguard_response&&(D.botguardResponse=R.botguard_response)};
_.YF.Object.defineProperties(WI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zW=function(){};
_.n(zW,j8);zW.prototype.getApiPaths=function(){return VmL};
zW.prototype.getExtension=function(D){return _.A(D,HyD)};
zW.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.commentText&&(D.replyText=_.OM(Y.commentText));R.comment_text&&(D.replyText=R.comment_text);D.updateReplyParams=Y.updateReplyParams};
_.YF.Object.defineProperties(zW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Sg=function(){};
_.n(Sg,j8);Sg.prototype.getApiPaths=function(){return fuE};
Sg.prototype.getExtension=function(D){return _.A(D,q_E)};
Sg.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.commentText&&(D.commentText=_.OM(Y.commentText));R.comment_text&&(D.commentText=R.comment_text);D.updateCommentParams=Y.updateCommentParams};
_.YF.Object.defineProperties(Sg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TW=function(){};
_.n(TW,j8);TW.prototype.getApiPaths=function(){return e8L};
TW.prototype.getExtension=function(D){return _.A(D,VEE)};
TW.prototype.JSC$13015_buildRequest=function(D,Y){Y.settings&&(D.settings=Y.settings)};var jg=function(){};
_.n(jg,j8);jg.prototype.getApiPaths=function(){return n$Y};
jg.prototype.getExtension=function(D){return _.A(D,iCz)};
jg.prototype.JSC$13015_buildRequest=function(D,Y){Y.channelCreationToken&&(D.channelCreationToken=Y.channelCreationToken);Y.source&&(D.source=Y.source)};var IA=function(){};
_.n(IA,j8);IA.prototype.getApiPaths=function(){return u8E};
IA.prototype.getExtension=function(D){return _.A(D,DZz)};
IA.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;if(R.name&&(R.given_name||R.family_name))D=new _.AT("channel creation cannot set both GAIA and YouTube names",Y),_.Nb(D);else{if(Y.zeroStepChannelCreationParams){if(!R.comment_text){D=new _.AT("zero_step_create_comment_params but no zero_step_texts",Y);_.Nb(D);return}D.zeroStepChannelCreationParams=Y.zeroStepChannelCreationParams;D.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
R.comment_text,R.botguard_response&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=R.botguard_response))}D.channelCreationToken=Y.channelCreationToken;R.given_name&&(D.givenName=R.given_name);R.family_name&&(D.familyName=R.family_name);Y.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(D.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(R.name||R.handle||R.avatar_url||R.encryptedBlobId||R.isNameChanged!==void 0||R.isHandleChanged!==void 0||R.isDefaultProfilePhoto!==
void 0||R.obakeImageSource)D.overrideChannelCreationParams={},R.name&&(D.overrideChannelCreationParams.name=R.name),R.handle&&(D.overrideChannelCreationParams.handle=R.handle),R.avatar_url&&(D.overrideChannelCreationParams.avatarUrl=R.avatar_url),R.encryptedBlobId&&(D.overrideChannelCreationParams.blobEncryptionId=R.encryptedBlobId),R.enableIdentityForAllChannelCreationDialog&&(R.encryptedBlobId?D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
R.isDefaultProfilePhoto!==void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=R.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),R.isNameChanged!==void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationNameTag=R.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),R.isHandleChanged!==
void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=R.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),R.obakeImageSource&&(D.overrideChannelCreationParams.obakeImageSourceType=R.obakeImageSource))}};var FR=function(){};
_.n(FR,j8);FR.prototype.getApiPaths=function(D){return(D=this.getExtension(D))&&D.status==="DISLIKE"?I64:D&&D.status==="INDIFFERENT"?YXY:xD4};
FR.prototype.getExtension=function(D){return _.A(D,_.Hl)};
FR.prototype.JSC$13015_buildRequest=function(D,Y){Y.target&&(D.target=Y.target);if(Y=this.getParams(Y))D.params=Y};
FR.prototype.getParams=function(D){switch(D==null?void 0:D.status){case "DISLIKE":return D.dislikeParams;case "INDIFFERENT":return D.removeLikeParams;default:return D==null?void 0:D.likeParams}};var GW=function(){};
_.n(GW,j8);GW.prototype.getApiPaths=function(){return WTb};
GW.prototype.getExtension=function(D){return _.A(D,EGz)};
GW.prototype.JSC$13015_buildRequest=function(D,Y){Y.settingItemId&&(D.settingItemId=Y.settingItemId);Y.stringValue!=null&&Y.stringValue!==void 0?D.newValue={stringValue:Y.stringValue}:Y.intValue?D.newValue={intValue:Y.intValue}:Y.boolValue!==null&&Y.boolValue!==void 0?D.newValue={boolValue:Y.boolValue}:(D=new _.AT("Unknown value type for SetSettingEndpoint.",Y),_.Nb(D))};var V8=function(){};
_.n(V8,j8);V8.prototype.getApiPaths=function(){return TGb};
V8.prototype.getExtension=function(D){return _.A(D,WOY)||void 0};
V8.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.channelIds&&(D.channelIds=Y.channelIds);Y.siloName&&(D.siloName=Y.siloName);Y.params&&(D.params=Y.params);R.botguardResponse&&(D.botguardResponse=R.botguardResponse);R.feature&&(D.clientFeature=R.feature)};
_.YF.Object.defineProperties(V8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fZ=function(){};
_.n(fZ,j8);fZ.prototype.getApiPaths=function(){return Iuz};
fZ.prototype.getExtension=function(D){return _.A(D,gGz)||void 0};
fZ.prototype.JSC$13015_buildRequest=function(D,Y){Y.channelIds&&(D.channelIds=Y.channelIds);Y.siloName&&(D.siloName=Y.siloName);Y.params&&(D.params=Y.params)};
_.YF.Object.defineProperties(fZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eg=function(D){this.shareClientParamsProvider=D};
_.n(eg,j8);eg.prototype.getApiPaths=function(){return qIy};
eg.prototype.getExtension=function(D){return _.A(D,nl_)||_.A(D,_.r2U)||_.A(D,A2z)};
eg.prototype.JSC$13015_buildRequest=function(D,Y){Y.serializedShareEntity&&(D.serializedSharedEntity=Y.serializedShareEntity);if(Y.clientParamIdentifier){var R;if((R=this.shareClientParamsProvider)==null?0:R.clientParams.has(Y.clientParamIdentifier)){R=this.shareClientParamsProvider;Y=Y.clientParamIdentifier;var Z=R.clientParams.get(Y);Z&&R.clientParams.delete(Y);D.clientParams=Z}}};
eg[YS]=[c_4];var AK=function(){};
_.n(AK,j8);AK.prototype.getApiPaths=function(){return dQ4};
AK.prototype.getExtension=function(D){return _.A(D,wF4)};
AK.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var nZ=function(){};
_.n(nZ,j8);nZ.prototype.getApiPaths=function(){return FbE};
nZ.prototype.getExtension=function(D){return _.A(D,AmL)};
nZ.prototype.JSC$13015_buildRequest=function(D,Y){Y.dismissal&&(D.items=[Y.dismissal])};
_.YF.Object.defineProperties(nZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rJ=function(){};
_.n(rJ,j8);rJ.prototype.getApiPaths=function(){return qY7};
rJ.prototype.getExtension=function(D){return _.A(D,_.Jn)||void 0};
rJ.prototype.JSC$13015_buildRequest=function(D,Y,R){D.feedbackTokens=[];Y.feedbackToken&&D.feedbackTokens.push(Y.feedbackToken);if(Y=Y.cpn||R.cpn)D.feedbackContext={cpn:Y};D.isFeedbackTokenUnencrypted=!!R.is_feedback_token_unencrypted;D.shouldMerge=!1;R.extra_feedback_tokens&&(D.shouldMerge=!0,D.feedbackTokens=D.feedbackTokens.concat(R.extra_feedback_tokens))};
_.YF.Object.defineProperties(rJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wJ=function(){};
_.n(wJ,j8);wJ.prototype.getApiPaths=function(){return qY7};
wJ.prototype.getExtension=function(D){return _.A(D,_.Fa)};
wJ.prototype.JSC$13015_buildRequest=function(D,Y,R){R.feedback_tokens&&(D.feedbackTokens=R.feedback_tokens,D.shouldMerge=!0)};
_.YF.Object.defineProperties(wJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $X=function(){};
_.n($X,j8);$X.prototype.getApiPaths=function(){return qY7};
$X.prototype.getExtension=function(D){return _.A(D,xtj)};
$X.prototype.JSC$13015_buildRequest=function(D,Y){Y.undoToken&&(D.feedbackTokens=[Y.undoToken]);Y.isUndoTokenUnencrypted&&(D.isFeedbackTokenUnencrypted=Y.isUndoTokenUnencrypted)};
_.YF.Object.defineProperties($X.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vI=function(){};
_.n(vI,j8);vI.prototype.getApiPaths=function(){return $f1};
vI.prototype.getExtension=function(D){return _.A(D,V_E)};
vI.prototype.JSC$13015_buildRequest=function(D,Y){Y.nextEndpoint&&_.A(Y.nextEndpoint,_.Qj)?D.nextEndpoint={urlEndpoint:_.A(Y.nextEndpoint,_.Qj)}:Y.nextEndpoint&&_.A(Y.nextEndpoint,_.Od)&&(D.nextEndpoint={watchEndpoint:_.A(Y.nextEndpoint,_.Od)});Y.setRacy&&(D.setRacy=Y.setRacy);Y.setControvercy&&(D.setControvercy=Y.setControvercy)};var oA=function(D){this.JSC$17766_storeWithEntities=D};
_.n(oA,j8);oA.prototype.getApiPaths=function(){return V5b};
oA.prototype.getExtension=function(D){return _.A(D,PCE)};
oA.prototype.JSC$13015_buildRequest=function(D,Y){Y.flowId&&(D.flowId=Y.flowId);Y.targetId&&(D.targetId=Y.targetId);Y.continuation&&(D.continuation=Y.continuation);var R=Y.flowStateEntityKey;if(Y.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&R&&this.JSC$17766_storeWithEntities){var Z;if(Y=(Z=this.JSC$17766_storeWithEntities.getState())==null?void 0:Z.entities)if(Z=_.Mw(R).entityType,Z=_.jC(Y,Z,R))D.flowState=Z,D.flowStateEntityKey=R}};
_.YF.Object.defineProperties(oA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
oA[YS]=[Xc];var iMk=function(){};
_.n(iMk,j8);_.u=iMk.prototype;_.u.getApiPaths=function(){return mDb};
_.u.JSC$13022_getStoreKey=function(){return _.dZ("guide")};
_.u.getRequestConfig=function(){var D=this.JSC$13022_getStoreKey(),Y;D&&(Y={storeStrategy:{storeKey:D}});return Y};
_.u.isNavigationCommand=function(){return!0};
_.u.getExtension=function(D){return _.A(D,_.Fa)};
_.u.JSC$13015_buildRequest=function(D){D.fetchLiveState=!0};var bZ=function(){};
_.n(bZ,j8);bZ.prototype.getApiPaths=function(){return DD4};
bZ.prototype.getExtension=function(D){return _.A(D,kBb)};
bZ.prototype.JSC$13015_buildRequest=function(){};var y8=function(){};
_.n(y8,j8);y8.prototype.getApiPaths=function(){return YYz};
y8.prototype.getExtension=function(D){return _.A(D,UvE)};
y8.prototype.JSC$13015_buildRequest=function(){};var Nj=function(){};
_.n(Nj,j8);Nj.prototype.getApiPaths=function(){return gtV};
Nj.prototype.getExtension=function(D){return _.A(D,_.PN)};
Nj.prototype.JSC$13015_buildRequest=function(D,Y){Y.token&&(D.continuation=Y.token);var R,Z;D==null||(R=D.context)==null||(Z=R.user)==null||delete Z.onBehalfOfUser};
Nj.prototype.getRequestConfig=function(D){var Y={},R;if(((R=this.getExtension(D))==null?void 0:R.sessionIndex)!==void 0){var Z;Y={authStrategy:{sessionIndex:(Z=this.getExtension(D))==null?void 0:Z.sessionIndex}}}return Y};var lZ=function(){};
_.n(lZ,j8);lZ.prototype.JSC$13015_getRequest=function(D){var Y=this.getExtension(D),R=D="";if(Y==null?0:Y.popup)D="true";if(Y==null?0:Y.disableSignout)R="true";Y={};return{input:"/getAccountSwitcherEndpoint",requestShell:gZ("/getAccountSwitcherEndpoint","GET",(Y["X-YouTube-Delegation-Context"]=_.JQ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),Y["X-YouTube-Account-Switcher-Popup"]=D,Y["X-YouTube-Account-Switcher-Disable-Signout"]=R,Y)),innerTubeRequest:{}}};
lZ.prototype.getApiPaths=function(){return[]};
lZ.prototype.getExtension=function(D){return _.A(D,_.r3o)};
lZ.prototype.JSC$13015_buildRequest=function(){};var JK=function(){};
_.n(JK,j8);JK.prototype.JSC$13015_getRequest=function(D){var Y="/cross_account_channel_transfer";(D=this.getExtension(D))&&(Y=GA5(Y,{target_session:D.targetSessionIndex,source_rapt:D.sourceRapt,rapt:D.targetRapt}));return{input:Y,requestShell:gZ(Y,"GET"),innerTubeRequest:{}}};
JK.prototype.getApiPaths=function(){return[]};
JK.prototype.getExtension=function(D){return _.A(D,IoE)};
JK.prototype.JSC$13015_buildRequest=function(){};var kX=function(){};
_.n(kX,j8);kX.prototype.getApiPaths=function(){return f6b};
kX.prototype.isNavigationCommand=function(){return!0};
kX.prototype.getExtension=function(D){return _.A(D,_.Fa)};
kX.prototype.JSC$13015_buildRequest=function(D){var Y=_.nX().get("gsml","");Y&&(D.safetyModeLockerObfuscatedGaiaId=Y);D.userInterfaceTheme=_.N3(!0);_.lX()?D.deviceTheme="DEVICE_THEME_SELECTED":_.fun()?D.deviceTheme="DEVICE_THEME_SUPPORTED":D.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Uh=function(){};
_.n(Uh,j8);Uh.prototype.getApiPaths=function(){return gtV};
Uh.prototype.getExtension=function(D){return _.A(D,FcE)};
Uh.prototype.JSC$13015_buildRequest=function(D,Y){if(Y&&Y.requestType&&(D.requestType=Y.requestType,Y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||Y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var R=Y.nextUrl;R&&(_.fi9(R)||i1(R))&&(D.nextNavendpoint={urlEndpoint:{url:R}})}Y&&Y.channelSwitcherQuery&&(D.channelSwitcherQuery=Y.channelSwitcherQuery);Y&&Y.triggerChannelCreation&&(D.triggerChannelCreation=Y.triggerChannelCreation);var Z;if(Y==null?0:(Z=Y.contentOwnerConfig)==
null?0:Z.externalContentOwnerId)D.contentOwnerConfig=Y.contentOwnerConfig;D.callCircumstance=Y&&Y.requestType&&Y.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var t,X;Y=D==null?void 0:(t=D.context)==null?void 0:(X=t.user)==null?void 0:X.onBehalfOfUser;if(Y!==void 0){D.obfuscatedSelectedGaiaId=Y;var M,W;D==null||(M=D.context)==null||(W=M.user)==null||delete W.onBehalfOfUser}var z,I;if(t=D==null?void 0:(z=D.context)==null?void 0:(I=z.user)==null?
void 0:I.serializedDelegationContext)D.selectedSerializedDelegationContext=t};var KZ=function(){};
_.n(KZ,j8);KZ.prototype.getApiPaths=function(){return iO_};
KZ.prototype.getExtension=function(D){return _.A(D,w6L)};
KZ.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var hK=function(){};
_.n(hK,j8);hK.prototype.getApiPaths=function(){return XHL};
hK.prototype.getExtension=function(D){return _.A(D,_.m0Y)};
hK.prototype.JSC$13015_buildRequest=function(D,Y){if(Y=Y.createBroadcastRequest)D.useMasks=Y.useMasks,D.broadcastType=Y.broadcastType,D.broadcastSource=Y.broadcastSource,D.broadcastMetadata=Y.broadcastMetadata,D.broadcastMetadataMask=Y.broadcastMetadataMask,D.videoMetadata=Y.videoMetadata,D.videoMetadataMask=Y.videoMetadataMask,D.liveChatSettingsUpdate=Y.liveChatSettingsUpdate,D.liveChatSettingsUpdateMask=Y.liveChatSettingsUpdateMask,D.cloneVideoId=Y.cloneVideoId,D.cloneWithOverrides=Y.cloneWithOverrides,
D.targetEntity=Y.targetEntity,D.scheduledRedirectMetadata=Y.scheduledRedirectMetadata};var LZ=function(){};
_.n(LZ,j8);LZ.prototype.getApiPaths=function(){return CHb};
LZ.prototype.getExtension=function(D){return _.A(D,Nk7)};
LZ.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.params&&(D.params=Y.params);R.questionText&&(D.questionText=R.questionText);R.optionText&&R.optionText.length>0&&(D.optionText=R.optionText)};var mE=function(){};
_.n(mE,j8);mE.prototype.getApiPaths=function(){return SYL};
mE.prototype.getExtension=function(D){return _.A(D,bK4)};
mE.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var qj=function(){};
_.n(qj,j8);qj.prototype.getApiPaths=function(){return wHz};
qj.prototype.getExtension=function(D){return _.A(D,wAU)};
qj.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var HI=function(){};
_.n(HI,j8);HI.prototype.getApiPaths=function(){return v$b};
HI.prototype.getExtension=function(D){return _.A(D,$FE)};
HI.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.params&&(D.params=Y.params);Y.continuation&&(D.continuation=Y.continuation);R.currentPlayerState&&R.currentPlayerState.playerOffsetMs&&(D.currentPlayerState={playerOffsetMs:R.currentPlayerState.playerOffsetMs.toString()})};var xX=function(){};
_.n(xX,j8);xX.prototype.getApiPaths=function(){return o$D};
xX.prototype.getExtension=function(D){return _.A(D,rH1)};
xX.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.params&&(D.params=Y.params);R.continuation&&(D.continuation=R.continuation);"hidden"in R&&(D.webClientInfo={isDocumentHidden:R.hidden});R.isInvalidationTimeoutRequest&&(D.isInvalidationTimeoutRequest=R.isInvalidationTimeoutRequest);R.invalidationPayload&&(Y=nSz(_.dr(O3(R.invalidationPayload))),D.invalidationPayloadLastPublishAtUsec=Jr(Y,2));R.reloadActionPanel&&(D.reloadActionPanel=R.reloadActionPanel);R.fullReload&&(D.fullReload=R.fullReload);
R.currentPlayerState&&(D.currentPlayerState=R.currentPlayerState)};var PI=function(){};
_.n(PI,j8);PI.prototype.getApiPaths=function(){return PHV};
PI.prototype.getExtension=function(D){return _.A(D,yHz)};
PI.prototype.JSC$13015_buildRequest=function(D,Y){D.params=Y.params};var Q8=function(){};
_.n(Q8,j8);Q8.prototype.getApiPaths=function(){return $D_};
Q8.prototype.getExtension=function(D){return _.A(D,HJ4)};
Q8.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var BI=function(){};
_.n(BI,j8);BI.prototype.getApiPaths=function(){return bS7};
BI.prototype.getExtension=function(D){return _.A(D,xK_)};
BI.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var pZ=function(){};
_.n(pZ,j8);pZ.prototype.getApiPaths=function(){return Qv1};
pZ.prototype.getExtension=function(D){return _.A(D,lvL)};
pZ.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var Eh=function(){};
_.n(Eh,j8);Eh.prototype.getApiPaths=function(){return pHz};
Eh.prototype.getExtension=function(D){return _.A(D,JHz)};
Eh.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var gJ=function(){};
_.n(gJ,j8);gJ.prototype.getApiPaths=function(){return R8z};
gJ.prototype.getExtension=function(D){return _.A(D,olL)};
gJ.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var Z5=function(){};
_.n(Z5,j8);Z5.prototype.getApiPaths=function(){return Mmz};
Z5.prototype.getExtension=function(D){return _.A(D,_.kSV)};
Z5.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.params&&(D.params=Y.params);R.client_message_id&&(D.clientMessageId=R.client_message_id);R.recaptcha_token&&(D.recaptchaToken=R.recaptcha_token);R.rich_message&&R.rich_message.text_segments?(Y=R.rich_message.text_segments.map(function(Z){var t={};Z.text&&(t.text=Z.text);Z.emoji_id&&(t.emojiId=Z.emoji_id);return t}),D.richMessage={textSegments:Y}):R.message&&(D.message=R.message);
R.currentPlayerState&&(D.currentPlayerState=R.currentPlayerState)};var t3=function(){};
_.n(t3,j8);t3.prototype.getApiPaths=function(){return C6D};
t3.prototype.getExtension=function(D){return _.A(D,UFb)};
t3.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var sT=function(){};
_.n(sT,j8);sT.prototype.getApiPaths=function(){return jXz};
sT.prototype.getExtension=function(D){return _.A(D,hAU)};
sT.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.isUserInitiated&&(D.isUserInitiated=Y.isUserInitiated);Y.initiationSource&&(D.initiationSource=Y.initiationSource);R.locationInfo&&(D.context.client.locationInfo=R.locationInfo)};var X5=function(){};
_.n(X5,j8);X5.prototype.getApiPaths=function(){return BM4};
X5.prototype.getExtension=function(D){return _.A(D,qoE)};
X5.prototype.JSC$13015_buildRequest=function(D,Y,R){Y.metadataUpdateRequest&&(Y=Y.metadataUpdateRequest,D.encryptedVideoId=Y.encryptedVideoId,Y.liveChat&&(Y=Y.liveChat,D.liveChat||(D.liveChat={}),Y.performAsExternalChannelId&&(D.liveChat.performAsExternalChannelId=Y.performAsExternalChannelId),Y.source&&(D.liveChat.source=Y.source)));var Z;if(R==null?0:(Z=R.liveChat)==null?0:Z.liveChatSettings)D.liveChat||(D.liveChat={}),R=R.liveChat.liveChatSettings,D.liveChat.newLiveChatSettings=R,D.liveChat.newLiveChatSettingsMask||
(D.liveChat.newLiveChatSettingsMask={}),R.emojiReactionSet&&(D.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var uA=function(){};
_.n(uA,j8);uA.prototype.getApiPaths=function(){return r7b};
uA.prototype.getExtension=function(D){return _.A(D,_.dvU)};
uA.prototype.JSC$13015_buildRequest=function(D,Y,R){R.continuation?D.continuation=R.continuation:Y.videoId&&(D.videoId=Y.videoId);R.clientParams&&(D.clientParams=R.clientParams)};var a3=function(){};
_.n(a3,j8);a3.prototype.getApiPaths=function(){return yUE};
a3.prototype.getExtension=function(D){return _.A(D,_.Ky)};
a3.prototype.JSC$13015_buildRequest=function(D,Y){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";D.fetchCommentsParams={};Y.videoId&&(D.fetchCommentsParams.encryptedVideoId=Y.videoId);Y.postId&&(D.fetchCommentsParams.postId=Y.postId);Y.externalChannelId&&(D.fetchCommentsParams.externalChannelId=Y.externalChannelId);Y.linkedCommentId&&(D.fetchCommentsParams.linkedCommentId=Y.linkedCommentId);(0,_.y7.isEmpty)(D.fetchCommentsParams)&&delete D.fetchCommentsParams};var Mg=function(){};
_.n(Mg,j8);Mg.prototype.getApiPaths=function(){return iE};
Mg.prototype.JSC$13015_buildRequest=function(D){D.browseId="FEnotifications_inbox"};
Mg.prototype.getExtension=function(D){return _.A(D,_.Fa)};var Ci=function(){};
_.n(Ci,j8);Ci.prototype.getApiPaths=function(){return yUE};
Ci.prototype.JSC$13015_buildRequest=function(D,Y){Y.signal==="GET_NOTIFICATIONS_MENU"&&(D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");Y.ctoken&&(D.ctoken=Y.ctoken)};
var OMI=function(){};
_.n(OMI,Ci);OMI.prototype.getExtension=function(D){return _.A(D,_.Fa)};
var cSK=function(){};
_.n(cSK,Ci);cSK.prototype.getExtension=function(D){return _.A(D,Isz)};var Wp=function(){};
_.n(Wp,j8);Wp.prototype.getApiPaths=function(){return KbL};
Wp.prototype.getExtension=function(D){return _.A(D,_.Fa)};
Wp.prototype.JSC$13015_buildRequest=function(){};var zn=function(){};
_.n(zn,j8);zn.prototype.getApiPaths=function(){return E$Y};
zn.prototype.getExtension=function(D){return _.A(D,Q5z)||void 0};
zn.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params);Y.secondaryParams&&(D.secondaryParams=Y.secondaryParams)};var Sd=function(){};
_.n(Sd,j8);Sd.prototype.getApiPaths=function(){return g$7};
Sd.prototype.getExtension=function(D){return _.A(D,$KE)};
Sd.prototype.JSC$13015_buildRequest=function(D,Y){Y.undo&&(D.undo=Y.undo);Y.serializedOptOut&&(D.serializedOptOut=Y.serializedOptOut);Y.serializedRecordInteractionsRequest&&(D.serializedRecordInteractionsRequest=Y.serializedRecordInteractionsRequest)};var Tn=function(){};
_.n(Tn,j8);Tn.prototype.getApiPaths=function(){return OSL};
Tn.prototype.getExtension=function(D){return _.A(D,vlz)};
Tn.prototype.JSC$13015_buildRequest=function(D,Y){Y.serializedInteractionsRequest&&(D.serializedRecordNotificationInteractionsRequest=Y.serializedInteractionsRequest)};var jd=function(){};
_.n(jd,j8);jd.prototype.getApiPaths=function(){return H6M};
jd.prototype.getExtension=function(D){return _.A(D,l5b)};
jd.prototype.JSC$13015_buildRequest=function(D,Y,R){Y=Y===void 0?{}:Y;R=R===void 0?{}:R;Y.videoId?D.videoId=Y.videoId:Y.playlistId&&(D.playlistId=Y.playlistId);var Z,t=(Z=Y.offlineWebClientEligibility)!=null?Z:R.offlineWebClientEligibility;t&&(D.offlineWebClientEligibility=t);var X;if(Z=(X=Y.preferredFormatType)!=null?X:R.preferredFormatType)D.preferredFormatType=Z;var M;if(X=(M=Y.lastOfflineQualitySettingsSavedMs)!=null?M:R.lastOfflineQualitySettingsSavedMs)D.lastOfflineQualitySettingsSavedMs=X;
Y.params&&(D.params=Y.params)};var I3=function(){};
_.n(I3,j8);I3.prototype.getApiPaths=function(){return Ri};
I3.prototype.getExtension=function(D){return _.A(D,_.PN)};
I3.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.token&&(D.continuation=Y.token);R.formData&&(D.formData=R.formData)};var F5=function(){};
_.n(F5,j8);F5.prototype.getApiPaths=function(){return Ri};
F5.prototype.getExtension=function(D){return _.A(D,kpU)};
F5.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;D.continuation=R.continuation};var Gn=function(){};
_.n(Gn,j8);Gn.prototype.getApiPaths=function(){return Ri};
Gn.prototype.getExtension=function(D){return _.A(D,_.l$)};
Gn.prototype.JSC$13015_buildRequest=function(D,Y){var R,Z=Y.panelIdentifier||((R=Y.identifier)==null?void 0:R.tag);Z&&(D.panelId=Z);var t;if((t=Y.globalConfiguration)==null?0:t.params){var X;D.params=(X=Y.globalConfiguration)==null?void 0:X.params}};
_.YF.Object.defineProperties(Gn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vl=function(){};
_.n(Vl,j8);Vl.prototype.getApiPaths=function(){return Ri};
Vl.prototype.getExtension=function(D){return _.A(D,Tmz)};
Vl.prototype.JSC$13015_buildRequest=function(D,Y){Y.panelLoadingStrategy&&qsb(D,Y.panelLoadingStrategy)};var fi=function(){};
_.n(fi,j8);fi.prototype.getApiPaths=function(){return Ri};
fi.prototype.getExtension=function(D){return _.A(D,LaU)};
fi.prototype.JSC$13015_buildRequest=function(D,Y){Y.loadingStrategy&&qsb(D,Y.loadingStrategy)};var ed=function(){};
_.n(ed,j8);ed.prototype.getApiPaths=function(){return Ri};
ed.prototype.getExtension=function(D){return _.A(D,_.bI)};
ed.prototype.JSC$13015_buildRequest=function(D,Y){Y.panelLoadingStrategy&&qsb(D,Y.panelLoadingStrategy)};var A3=function(){};
_.n(A3,j8);A3.prototype.getApiPaths=function(){return Ri};
A3.prototype.getExtension=function(D){return _.A(D,mKY)};
A3.prototype.JSC$13015_buildRequest=function(D,Y){var R,Z=(R=Y.contentSourcePanelIdentifier)==null?void 0:R.tag;Z&&(D.panelId=Z);var t;if((t=Y.globalConfiguration)==null?0:t.params){var X;D.params=(X=Y.globalConfiguration)==null?void 0:X.params}};var ni=function(){};
_.n(ni,j8);ni.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
ni.prototype.getExtension=function(D){return _.A(D,qPU)};
ni.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var rv=function(){};
_.n(rv,j8);rv.prototype.getApiPaths=function(){return nbU};
rv.prototype.getExtension=function(D){return _.A(D,P_1)};
rv.prototype.JSC$13015_buildRequest=function(D,Y){Y.externalChannelId&&(D.externalChannelId=Y.externalChannelId);Y.superChatAction&&(D.superChatAction=Y.superChatAction);Y.superStickersAction&&(D.superStickersAction=Y.superStickersAction)};var wv=function(){};
_.n(wv,j8);wv.prototype.getApiPaths=function(){return eNL};
wv.prototype.getExtension=function(D){return _.A(D,Jhz)||_.A(D,knr)};
wv.prototype.JSC$13015_buildRequest=function(D,Y){Y.videoIds?D.videoIds=Y.videoIds:Y.videoId&&(D.videoIds=[Y.videoId]);Y.playlistId&&(D.playlistId=Y.playlistId);Y.params&&(D.params=Y.params);D.excludeWatchLater=!1};var $_=function(){};
_.n($_,j8);$_.prototype.getApiPaths=function(){return WbY};
$_.prototype.getExtension=function(D){return _.A(D,_.Px)};
$_.prototype.JSC$13015_buildRequest=function(D,Y,R){R.create_playlist_title?D.title=R.create_playlist_title:Y.title&&(D.title=Y.title);if(R.create_playlist_privacy_status&&typeof R.create_playlist_privacy_status==="number"){a:{var Z=R.create_playlist_privacy_status;if(Z!==0){if(Z===1){Z="PUBLIC";break a}if(Z===2){Z="UNLISTED";break a}}Z="PRIVATE"}D.privacyStatus=Z}else Y.privacyStatus&&(D.privacyStatus=Y.privacyStatus);R.create_playlist_description&&(D.description=R.create_playlist_description);Y.videoIds&&
(D.videoIds=Y.videoIds);Y.params&&(D.params=Y.params);Y.sourcePlaylistId&&(D.sourcePlaylistId=Y.sourcePlaylistId)};var vp=function(){};
_.n(vp,j8);vp.prototype.getApiPaths=function(){return TMz};
vp.prototype.getExtension=function(D){return _.A(D,xvD)};
vp.prototype.JSC$13015_buildRequest=function(D,Y){D.playlistId=Y.playlistId};var o3=function(){};
_.n(o3,j8);o3.prototype.getApiPaths=function(){return NMD};
o3.prototype.getExtension=function(D){return _.A(D,fS_)};
o3.prototype.JSC$13015_buildRequest=function(D,Y){Y.playlistId&&(D.playlistId=Y.playlistId);Y.params&&(D.params=Y.params)};var bA=function(){};
_.n(bA,j8);bA.prototype.getApiPaths=function(){return iS1};
bA.prototype.getExtension=function(D){return _.A(D,_.hh)||void 0};
bA.prototype.JSC$13015_buildRequest=function(D,Y){Y.actions&&(D.actions=Y.actions);Y.params&&(D.params=Y.params);Y.playlistId&&(D.playlistId=Y.playlistId)};var yl=function(){};
_.n(yl,j8);_.u=yl.prototype;_.u.getApiPaths=function(){return cUE};
_.u.getExtension=function(D){return _.A(D,_.$I)};
_.u.JSC$13015_buildRequest=function(D,Y){Y.videoId&&(D.playerRequest={videoId:Y.videoId},Y.playerParams&&(D.playerRequest.params=Y.playerParams),Y.racyCheckOk&&(D.playerRequest.racyCheckOk=!!Y.racyCheckOk),Y.contentCheckOk&&(D.playerRequest.contentCheckOk=!!Y.contentCheckOk));Y.params&&(D.params=Y.params);Y.inputType&&(D.inputType=Y.inputType);D.disablePlayerResponse=!0};
_.u.getRequestConfig=function(D){var Y;(D=this.JSC$13022_getStoreKey(D))&&(Y={storeStrategy:{storeKey:D}});_.f("web_log_reels_ticks")&&(Y=Y||{},Y.requestTick="r_wrs",Y.responseTick="r_wrr");return Y};
_.u.JSC$13022_getStoreKey=function(D){D=this.getExtension(D);if(_.f("shorts_controller_retrieve_seedless_sequence_v2")){if((D==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.dZ("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.f("web_shorts_prefetch_service_enabled")&&D!=null&&D.videoId){var Y={videoId:D.videoId};D.params&&(Y.params=D.params);return _.dZ("reel_item_watch",Y)}};var Ng=function(){};
_.n(Ng,j8);_.u=Ng.prototype;_.u.getApiPaths=function(){return Df7};
_.u.getExtension=function(D){return _.A(D,_.$I)};
_.u.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;D.sequenceParams=Y.sequenceParams;var Z;((Z=R)==null?0:Z.contentPlaybackContext)&&_.f("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:R.contentPlaybackContext})};
_.u.JSC$13022_getStoreKey=function(D){if(_.f("web_enable_delay_shorts_sequence_call")||_.f("shorts_controller_retrieve_seedless_sequence_v2"))if(D=this.getExtension(D),D==null?0:D.sequenceParams)return _.dZ("reel_watch_sequence",{sequenceParams:D.sequenceParams})};
_.u.getRequestConfig=function(D){D=this.JSC$13022_getStoreKey(D);var Y;D&&(Y={storeStrategy:{storeKey:D}});_.f("reel_watch_sequence_request_log_ticks")&&(Y=Y||{},Y.requestTick="r_wsrs",Y.responseTick="r_wsrr",Y.processorTick="r_wsrp");return Y};
var lA=function(){};
_.n(lA,j8);lA.prototype.getApiPaths=function(){return Df7};
lA.prototype.getExtension=function(D){return _.A(D,_.PN)};
lA.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.token&&(D.continuation=Y.token);var Z;((Z=R)==null?0:Z.contentPlaybackContext)&&_.f("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:R.contentPlaybackContext})};
lA.prototype.getRequestConfig=function(D){D=this.JSC$13022_getStoreKey(D);var Y;D&&(Y={storeStrategy:{storeKey:D}});_.f("reel_watch_sequence_request_log_ticks")&&(Y=Y||{},Y.requestTick="r_wsrs",Y.responseTick="r_wsrr",Y.processorTick="r_wsrp");return Y};var J3=function(){};
_.n(J3,j8);J3.prototype.getApiPaths=function(){return G2_};
J3.prototype.getExtension=function(D){return _.A(D,_.xlY)};
J3.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.flagAction&&(D.action=Y.flagAction);Y.flagRequestType&&(D.flagRequestType=Y.flagRequestType);Y.additionalDetailCheckboxChecked&&(D.additionalDetailCheckboxChecked=Y.additionalDetailCheckboxChecked);Y.legalCheckboxChecked&&(D.legalCheckboxChecked=Y.legalCheckboxChecked);Y={};R.flag_issue_type!==void 0&&(Y.issue=R.flag_issue_type);R.flag_affiliation!==void 0&&(Y.affiliation=R.flag_affiliation);R.flag_full_name&&(Y.fullName=R.flag_full_name);
Object.keys(Y).length&&(D.legalReportDetails=Y);if(R.flag_description||R.text)D.userComments=R.flag_description||R.text;Y={};R.minutes!==void 0&&R.seconds!==void 0&&(Y.minutes=R.minutes,Y.seconds=R.seconds);R.vss_id&&(Y.vssId=R.vss_id);Object.keys(Y).length&&(D.videoReportDetails=Y);Y={};R.video_ids&&(Y.videoIds=R.video_ids);R.impersonated_channel_url&&(Y.impersonatedChannelUrl=R.impersonated_channel_url);Object.keys(Y).length&&(D.channelAbuseReportDetails=Y)};
_.YF.Object.defineProperties(J3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var k_=function(){};
_.n(k_,j8);k_.prototype.getApiPaths=function(){return rUU};
k_.prototype.getExtension=function(D){return _.A(D,TkL)};
k_.prototype.JSC$13015_buildRequest=function(D,Y){Y.blockedForKidsContent&&(D.blockedForKidsContent=Y.blockedForKidsContent)};var UT=function(){};
_.n(UT,j8);UT.prototype.getApiPaths=function(){return ZV1};
UT.prototype.getExtension=function(D){return _.A(D,J3S)};
UT.prototype.JSC$13015_buildRequest=function(D,Y,R){D.params=Y.params;R.impersonated_channel_url&&(D.impersonatedChannelUrl=R.impersonated_channel_url)};var Ki=function(){};
_.n(Ki,j8);Ki.prototype.getApiPaths=function(){return HSz};
Ki.prototype.getExtension=function(D){return _.A(D,_.j6U)};
Ki.prototype.JSC$13015_buildRequest=function(D,Y){Y.items&&(D.items=Y.items);Y.kidGaiaId&&(D.kidGaiaId=Y.kidGaiaId)};var h3=function(){};
_.n(h3,j8);h3.prototype.getApiPaths=function(){return AUE};
h3.prototype.getExtension=function(D){return _.A(D,_.Ni7)};
h3.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params);Y.targetId&&(D.targetId=Y.targetId)};var Li=function(){};
_.n(Li,j8);Li.prototype.getApiPaths=function(){return u1z};
Li.prototype.getExtension=function(D){return _.A(D,FkV)};
Li.prototype.JSC$13015_buildRequest=function(D,Y){Y.externalVideoId&&(D.externalVideoId=Y.externalVideoId);Y.query&&(D.query=Y.query);Y.sourceTimelines&&(D.sourceTimelines=Y.sourceTimelines)};var m2=function(){};
_.n(m2,j8);m2.prototype.getApiPaths=function(){return auD};
m2.prototype.getExtension=function(D){return _.A(D,_.PN)||void 0};
m2.prototype.JSC$13015_buildRequest=function(D,Y){Y.token&&(D.continuation=Y.token)};
_.DU9=function(){};
_.n(_.DU9,j8);_.u=_.DU9.prototype;_.u.getApiPaths=function(){return auD};
_.u.getExtension=function(D){return _.A(D,_.nn)||void 0};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$13022_getStoreKey=function(D,Y){Y=Y===void 0?{}:Y;if(!Y.disableCache&&(D=this.getExtension(D))&&D.query)return Y={query:D.query},D.params&&(Y.params=D.params),_.dZ("search",Y)};
_.u.JSC$13015_buildRequest=function(D,Y,R){Y.query&&(D.query=Y.query);Y.params&&(D.params=Y.params);if(!_.f("web_forward_suggest_stats_killswitch")){var Z=_.A(Y,SPY);Z&&(D.suggestStats=Z)}var t;!_.f("kevlar_searchbox_stats_killswitch")&&((t=R.tempData)==null?0:t.gs_l)&&!_.A(Y,SPY)&&(D.webSearchboxStatsUrl="/search?oq="+(R.tempData.oq||"")+"&gs_l="+R.tempData.gs_l);var X;if((X=R.tempData)==null?0:X.entityMid)Y=D.suggestionSearchParams||{},Y.entityMid=R.tempData.entityMid,D.suggestionSearchParams=Y;
if(_.f("enable_desktop_vdcbg_components")||_.f("enable_inline_muted_playback_on_web_search"))R=_.nX().getFlag(186),D.inlineSettingStatus=R?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.u.getRequestConfig=function(D,Y){Y=Y===void 0?{}:Y;D=this.JSC$13022_getStoreKey(D,Y);var R;D&&(R={storeStrategy:{storeKey:D}});_.f("web_log_search_ticks_ks")||(R=R||{},R.requestTick="sr_s",R.responseTick="sr_r");return R};var qg=function(){};
_.n(qg,j8);qg.prototype.getApiPaths=function(){return k2L};
qg.prototype.getExtension=function(D){return _.A(D,YHU)};
qg.prototype.JSC$13015_buildRequest=function(D,Y){Y.serializedGetSharingProviderDataParams&&(D.serializedGetSharingProviderDataParams=Y.serializedGetSharingProviderDataParams)};var Hp=function(){};
_.n(Hp,j8);Hp.prototype.getApiPaths=function(){return UDE};
Hp.prototype.getExtension=function(D){return _.A(D,hXL)};
Hp.prototype.JSC$13015_buildRequest=function(D,Y){Y.endpoint&&(D.endpoint=Y.endpoint);Y.action&&(D.action=Y.action)};var x_=function(){};
_.n(x_,j8);x_.prototype.getApiPaths=function(){return jvY};
x_.prototype.getExtension=function(D){return _.A(D,PSE)};
x_.prototype.JSC$13015_buildRequest=function(D,Y){D.videoId=Y.videoId;Y.scheduledRedirectMetadataSourceVideoId&&(D.scheduledRedirectMetadata={sourceVideoId:Y.scheduledRedirectMetadataSourceVideoId})};var Pp=function(){};
_.n(Pp,j8);Pp.prototype.getApiPaths=function(){return z8E};
Pp.prototype.getExtension=function(D){return _.A(D,_.xxV)};
Pp.prototype.JSC$13015_buildRequest=function(D,Y){D.params=Y.params;D.correctionText=Y.correctionText};var Ql=function(){};
_.n(Ql,j8);Ql.prototype.getApiPaths=function(){return Lql};
Ql.prototype.getExtension=function(D){return _.A(D,_.GRz)};
Ql.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params);D.searchQuery=Y.searchQuery;D.languageCode=Y.languageCode;D.kind=Y.kind;D.name=Y.name;D.externalVideoId=Y.externalVideoId};var Bp=function(){};
_.n(Bp,j8);Bp.prototype.getApiPaths=function(){return obU};
Bp.prototype.getExtension=function(D){return _.A(D,ZO_)};
Bp.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.params=Y.params)};var pi=function(D){this.JSC$18037_storeWithEntities=D};
_.n(pi,j8);pi.prototype.getApiPaths=function(){return t5U};
pi.prototype.getExtension=function(D){return _.A(D,s$E)||_.A(D,uhb)};
pi.prototype.JSC$13015_buildRequest=function(D,Y,R){R.client_data&&(D.clientData=R.client_data);if(Y.commerceActionConfig){var Z=Y.commerceActionConfig;Y=Z.actionId;Z=Z.commerceActionParams;Y&&(D.actionId=Y);Z&&(D.commerceActionParams=Z)}else{var t=Y.actionId,X=Y.commerceActionParams;R=Y.entityKeys;t&&(D.actionId=t);X&&(D.commerceActionParams=X);var M;Y=(Z=this.JSC$18037_storeWithEntities)==null?void 0:(M=Z.getState())==null?void 0:M.entities;if(R&&Y){Z=[];M=_.a(R);for(R=M.next();!R.done;R=M.next())if(t=
R.value,R=_.Mw(t).entityType,t=_.jC(Y,R,t))X={},Z.push((X[R]=t,X));D.entityMutationPayloads=Z}}};
pi.prototype.getRequestConfig=function(D){var Y,R=(Y=_.A(D,s$E))==null?void 0:Y.requestSequenceType;if(R&&D.clickTrackingParams&&R!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:D.clickTrackingParams,sequenceType:R}}};
pi[YS]=[Xc];var ET=function(){};
_.n(ET,j8);ET.prototype.getApiPaths=function(){return bVU};
ET.prototype.getExtension=function(D){return _.A(D,_.wM7)};
ET.prototype.JSC$13015_buildRequest=function(D,Y){Y.feedbackData&&(D.feedbackData=Y.feedbackData);Y.params&&(D.itemParams=Y.params)};
_.YF.Object.defineProperties(ET.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gv=function(){};
_.n(gv,j8);gv.prototype.getApiPaths=function(){return y71};
gv.prototype.getExtension=function(D){return _.A(D,$QU)};
gv.prototype.JSC$13015_buildRequest=function(D,Y,R){R.payments_payload&&(D.paymentsPayload=R.payments_payload);R.offer_params&&(D.offerParams=R.offer_params);Y.transactionParams&&(D.transactionParams=Y.transactionParams)};var dv=function(){};
_.n(dv,j8);dv.prototype.getApiPaths=function(){return NGL};
dv.prototype.getExtension=function(D){return _.A(D,_.vtz)};
dv.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.buybucketParams&&(D.buybucketData={params:Y.buybucketParams},Y.stickerParams?D.buybucketData.stickerParams=Y.stickerParams:(R.rich_chat_message?D.buybucketData.richChatMessage=R.rich_chat_message:R.chat_message_text&&(D.buybucketData.chatMessageText=R.chat_message_text),R.purchase_price_micros&&(D.buybucketData.purchasePriceMicros=R.purchase_price_micros.toString())));Y.donationAmountMicros&&(D.tipAmountMicros=Y.donationAmountMicros,
Y.tipParams&&(D.tipParams=Y.tipParams));Y.offerParams&&(D.offerParams=Y.offerParams);Y.productData&&(D.productData=Y.productData);Y.transactionParams&&(D.transactionParams=Y.transactionParams)};var iA=function(){};
_.n(iA,j8);iA.prototype.getApiPaths=function(){return lu_};
iA.prototype.getExtension=function(D){return _.A(D,yVL)};
iA.prototype.JSC$13015_buildRequest=function(D,Y){Y.updateFopParams&&(D.updateFopParams=Y.updateFopParams)};var OT=function(){};
_.n(OT,j8);OT.prototype.getApiPaths=function(){return J7U};
OT.prototype.getExtension=function(D){return _.A(D,_.Dx)};
OT.prototype.JSC$13015_buildRequest=function(D,Y){Y.couponCode&&(D.couponCode=Y.couponCode);Y.params&&(D.itemParams=Y.params)};var cp=function(){};
_.n(cp,j8);cp.prototype.getApiPaths=function(){return kxb};
cp.prototype.getExtension=function(D){return _.A(D,_.XM1)};
cp.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;Y.params&&(D.params=Y.params);R.ctk&&(D.clientToken=R.ctk)};var DN=function(D){this.JSC$18072_storeWithEntities=D};
_.n(DN,j8);DN.prototype.getApiPaths=function(){return Uf4};
DN.prototype.getExtension=function(D){return _.A(D,_.E_)};
DN.prototype.JSC$13015_buildRequest=function(D,Y,R){R.purchase_price_micros&&(D.productData={pdgData:{purchasePriceMicros:R.purchase_price_micros.toString()}},R.rich_chat_message&&(D.productData.pdgData.richChatMessage=R.rich_chat_message),R.currency_code&&(D.productData.pdgData.currencyCode=R.currency_code));Y.transactionParams&&(D.transactionParams=Y.transactionParams);Y.clientLocationContext&&(D.clientLocationContext=Y.clientLocationContext);R.payments_payload&&(D.paymentsPayload=R.payments_payload);
R.funds_guarantee_callback_client_data&&(D.fundsGuaranteeCallbackClientData=R.funds_guarantee_callback_client_data);var Z,t;R=(Z=this.JSC$18072_storeWithEntities)==null?void 0:(t=Z.getState())==null?void 0:t.entities;if(Y.entityKeys&&R){Z=[];Y=_.a(Y.entityKeys);for(t=Y.next();!t.done;t=Y.next()){var X=t.value;t=_.Mw(X).entityType;if(X=_.jC(R,t,X)){var M={};Z.push((M[t]=X,M))}}D.entityMutationPayloads=Z}};
DN[YS]=[Xc];var Y4=function(){};
_.n(Y4,j8);Y4.prototype.getApiPaths=function(){return KTU};
Y4.prototype.getExtension=function(D){return _.A(D,otL)};
Y4.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;R.backend_analytics&&(D.serializedBackendAnalyticsEvent=R.backend_analytics);Y.offerParams&&(D.offerParams=Y.offerParams)};var Rq=function(){};
_.n(Rq,j8);Rq.prototype.getApiPaths=function(){return J7U};
Rq.prototype.getExtension=function(D){return _.A(D,jOS)};
Rq.prototype.JSC$13015_buildRequest=function(D,Y){Y.params&&(D.itemParams=Y.params)};var ZN=function(){};
_.n(ZN,j8);ZN.prototype.getApiPaths=function(){return h8Y};
ZN.prototype.getExtension=function(D){return _.A(D,_.zuU)};
ZN.prototype.JSC$13015_buildRequest=function(D,Y,R){R.resume_time_ms&&(D.resumeTimeMs=R.resume_time_ms);Y.pauseParams&&(D.pauseParams=Y.pauseParams)};var tA=function(){};
_.n(tA,j8);tA.prototype.getApiPaths=function(){return LTE};
tA.prototype.getExtension=function(D){return _.A(D,_.bOz)};
tA.prototype.JSC$13015_buildRequest=function(D,Y,R){R=R===void 0?{}:R;R.c&&(D.redeemCode=R.c);R.rd&&(D.riskData=R.rd);R.ctk&&(D.clientToken=R.ctk)};var sZ=function(){};
_.n(sZ,j8);sZ.prototype.getApiPaths=function(){return mf7};
sZ.prototype.getExtension=function(D){return _.A(D,_.ScL)};
sZ.prototype.JSC$13015_buildRequest=function(D,Y){Y.resumeParams&&(D.resumeParams=Y.resumeParams)};var Xf=function(D,Y){this.clientName=D;this.defaultExpirationDelayMs=Y};
Xf.prototype.put=function(D,Y){var R=this,Z;return _.C(function(t){Z=Object.assign({},Y.data);Z.key=D;Z.clientName=R.clientName;Z.expireTimestampMs===void 0&&(Z.expireTimestampMs=(Math.round((0,_.DO)())+R.defaultExpirationDelayMs).toString());return t.return(R.putInternal(D,Z))})};
Xf[YS]=[Jy,XoT];var YLI=function(){Xf.apply(this,arguments);this.JSC$18102_responseStore=new Map};
_.n(YLI,Xf);_.u=YLI.prototype;_.u.get=function(D){var Y=this;return _.C(function(R){return R.return(jm(Y,D))})};
_.u.putInternal=function(D,Y){var R=this,Z,t,X;return _.C(function(M){Z=R.defaultExpirationDelayMs;Y.expireTimestampMs&&(Z=Number(Y.expireTimestampMs)-Math.round((0,_.DO)()),t=_.ZH("mweb_override_response_store_expiration_ms"),t>0&&t<Z&&(Z=t));X=setTimeout(function(){R.remove(D)},Z);
R.JSC$18102_responseStore.set(D,{entryData:Y,timer:X});_.V9(M)})};
_.u.remove=function(D){var Y=this;return _.C(function(R){RYz(Y,D);_.V9(R)})};
_.u.removeAll=function(){var D=this;return _.C(function(Y){D.JSC$18102_responseStore.forEach(function(R){clearTimeout(R.timer)});
D.JSC$18102_responseStore.clear();_.V9(Y)})};
_.u.has=function(D){return!!this.JSC$18102_responseStore.get(D)};
_.u.getKeys=function(){return this.JSC$18102_responseStore.keys()};
var jm=function(D,Y){if(D=D.JSC$18102_responseStore.get(Y))return new _.Tx(D.entryData)},RYz=function(D,Y){var R=D.JSC$18102_responseStore.get(Y);
R&&(clearTimeout(R.timer),D.JSC$18102_responseStore.delete(Y))};var H59;var QNl=function(D,Y,R){Xf.call(this,D,Y);this.token=R};
_.n(QNl,Xf);_.u=QNl.prototype;_.u.get=function(D){var Y=this,R,Z;return _.C(function(t){return t.nextAddress==1?t.yield(Pdo(Y.token),2):t.nextAddress!=3?(R=t.yieldResult,t.yield(R.get("ResponseStore",[D,Y.clientName]),3)):(Z=t.yieldResult)?t.return(new _.Tx(Z)):t.return(void 0)})};
_.u.putInternal=function(D,Y){var R=this,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(Pdo(R.token),2);Z=t.yieldResult;return t.yield(Z.put("ResponseStore",Y),0)})};
_.u.remove=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Pdo(Y.token),2);R=Z.yieldResult;return Z.return(R.delete("ResponseStore",[D,Y.clientName]))})};
_.u.removeAll=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(Pdo(D.token),2);Y=R.yieldResult;return R.yield(aqE(Y,IDBKeyRange.only(D.clientName)),0)})};
_.u.has=function(){throw Error("Xi");};_.uO=new _.R6("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var ZLb=function(D){var Y;this.stateTagsData=(Y=D.responseContext)==null?void 0:Y.stateTags},tDK=function(D){var Y;
return((Y=D.stateTagsData)==null?void 0:Y.stateTagsModified)||[]};var szh;szh=function(D){this.JSC$18115_responseStore=D};
_.Pf=function(D,Y,R){if(!_.f("state_tags_killswitch")){var Z=new ZLb(Y);if(tDK(Z).length>0){var t=D.JSC$18115_responseStore.getKeys();t=_.a(t);for(var X=t.next();!X.done;X=t.next()){X=X.value;var M=jm(D.JSC$18115_responseStore,X);if(M){var W=_.tn(M);a:{var z=void 0;M=tDK(Z);W=((z=(new ZLb(W)).stateTagsData)==null?void 0:z.relevantStateTags)||[];z=_.a(W);for(W=z.next();!W.done;W=z.next())if(W=W.value,W.stateTag!=null&&M.includes(W.stateTag)&&W.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){M=
!0;break a}M=!1}M&&RYz(D.JSC$18115_responseStore,X)}}}}var I;Z=(I=Y.responseContext)==null?void 0:I.maxAgeSeconds;R&&Z&&Number(Z)>0&&(Y=zP(Y,Z),D.JSC$18115_responseStore.put(R,new _.Tx(Y)))};
szh.prototype.handleResponse=function(D,Y){if(!Y)throw Error("Yi");var R,Z;Y=(R=Y.config)==null?void 0:(Z=R.storeStrategy)==null?void 0:Z.storeKey;_.Pf(this,D,Y)};
szh[YS]=[_.Sm];_.iz5=new _.R6("STORE_RESPONSE_PROCESSOR_TOKEN");var X4u=function(D){this.JSC$18118_responseStore=D};
X4u.prototype.handleResponse=function(D,Y){if(Y.input.match(_.YI(Df7))){var R;if(D==null?0:(R=D.entries)==null?0:R.length)for(D=_.a(D.entries),Y=D.next();!Y.done;Y=D.next()){R=Y.value.command;var Z=void 0;Y=(Z=_.A(R,_.$I))==null?void 0:Z.unserializedPrefetchData;if(!R||!Y)break;Z=(new yl).JSC$13022_getStoreKey(R);var t=_.A(Y,j5U),X=void 0,M=void 0,W=void 0,z=_.ZH("web_shorts_prefetch_service_ttl_seconds")>0?_.ZH("web_shorts_prefetch_service_ttl_seconds"):Number((W=(X=t)==null?void 0:(M=X.responseContext)==
null?void 0:M.maxAgeSeconds)!=null?W:3600);Z&&z>0&&(t=zP(t,z),this.JSC$18118_responseStore.put(Z,new _.Tx(t)));R=(new fc).JSC$13022_getStoreKey(R);Y=_.A(Y,c2D);X=t=Z=void 0;M=_.ZH("web_shorts_prefetch_service_ttl_seconds")>0?_.ZH("web_shorts_prefetch_service_ttl_seconds"):Number((X=(Z=Y)==null?void 0:(t=Z.responseContext)==null?void 0:t.maxAgeSeconds)!=null?X:3600);R&&M>0&&(Y=zP(Y,M),this.JSC$18118_responseStore.put(R,new _.Tx(Y)))}}};
X4u[YS]=[_.Sm];var ub9=function(D){this.innertubeTransportService=D};
ub9.prototype.submitForm=function(D,Y,R,Z,t){var X=this,M,W,z;return _.C(function(I){M={submitId:D,formData:Y,submitBehavior:R,params:Z};W=_.YI(SXL);z=_.Hk(X.innertubeTransportService,M,W,t);return I.return(z)})};
ub9[YS]=[_.h6];var a_I=new _.R6("SUBMIT_API_SERVICE_TOKEN");var aq=function(){this.scheduler=_.b$()},MDI;
aq.prototype.pause=function(){throw Error("Zi");};
aq.prototype.resume=function(){throw Error("Zi");};
aq.prototype.queue=function(D){var Y=this,R=_.iq(),Z=_.Ak(this.scheduler,function(){try{var t;if(_.GD.instance)var X=_.GD.instance;else{var M=new _.AT("Error: Unexpected uninitialized CommandHandler.");_.Nb(M);X=void 0}(t=X)==null||t.resolveCommand(D.command);R.resolve()}catch(W){R.reject(W)}});
R.promise.thenCatch(function(t){t instanceof _.x6&&Y.scheduler.cancelJob(Z)});
return R.promise};
aq.prototype.queueAll=function(D){var Y=new Map;D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,Y.set(R.id,this.queue(R));return Y};var W70=function(D,Y){var R=this;this.taskModel=D;this.onTaskCancelledCallback=Y;this.resolver=_.iq();D=D.proto.prefetchConfig;if(!D)throw Error("$i");if(!D.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Z){Z instanceof _.x6&&(CUK(R,R.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),R.onTaskCancelledCallback(R.taskModel.id,R.jobId),R.tick("pcc"));
throw Z;});
this.timerName=this.taskModel.id;_.U7(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
W70.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 CUK=function(D,Y){_.k8({prefetchInfo:{cancellationReason:Y}},D.timerName)};
W70.prototype.tick=function(D){_.KX(D,void 0,this.timerName)};var CY=function(){var D=this;this.scheduler=_.b$();this.maxInflightTasks=_.ZH("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.ZH("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new yiL;this.onTaskCancelled=function(Y,R){R&&D.scheduler.cancelJob(R);zY9(D,Y);MO(D,3)}},SLI=function(){CY.instance||(CY.instance=new CY);
return CY.instance};
CY.prototype.pause=function(){this.prefetchCoordinatorState=0};
CY.prototype.resume=function(){MO(this,0)};
CY.prototype.queue=function(D){D=Tzb(this,D);MO(this,1);return D};
CY.prototype.queueAll=function(D){var Y=new Map;D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,Y.set(R.id,Tzb(this,R));MO(this,1);return Y};
var Tzb=function(D,Y){var R=D.allPrefetchTasks.get(Y.id);if(R)return R.cancellablePromise;try{var Z=new W70(Y,D.onTaskCancelled)}catch(X){return _.lf(X)}R=Z;R.tick("pcq");var t={prefetchInfo:{taskId:R.taskModel.id,isPrefetch:!0,fetchAction:R.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:R.taskModel.command.clickTrackingParams}};R.taskModel.csn&&(t.clientScreenNonce=R.taskModel.csn);_.k8(t,R.timerName);D.allPrefetchTasks.set(Y.id,Z);D.drainingHeap.insert(-Z.getPriority(),Z);return Z.cancellablePromise},
MO=function(D,Y){D.prefetchCoordinatorState===Y&&(D.prefetchCoordinatorState=2,jzu(D))},jzu=function(D){for(var Y={};D.prefetchCoordinatorState!==0;Y={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(D.inflightPrefetchTasks.size>=D.maxInflightTasks){D.prefetchCoordinatorState=3;break}Y.prefetchTask$jscomp$1=D.drainingHeap.remove();if(!Y.prefetchTask$jscomp$1){D.prefetchCoordinatorState=1;break}Y.taskId$jscomp$3=Y.prefetchTask$jscomp$1.taskModel.id;if(D.allPrefetchTasks.has(Y.taskId$jscomp$3)){var R=-1;D.coordinatorTimeoutMs>0&&(R=_.Ak(D.scheduler,function(Z){return function(){WW(D,Z.taskId$jscomp$3,Error("bj"))}}(Y),D.coordinatorTimeoutMs));
D.inflightPrefetchTasks.set(Y.taskId$jscomp$3,R);if(!D.JSC$18138_commandHandler){if(!_.GD.instance){WW(D,Y.taskId$jscomp$3,Error("cj"));continue}D.JSC$18138_commandHandler=_.GD.instance}a:switch(Y.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":R=1;break a;default:R=0}Y.prefetchTask$jscomp$1.jobId=D.scheduler.addJob(function(Z){return function(){Z.prefetchTask$jscomp$1.tick("pcr");try{D.JSC$18138_commandHandler.resolveCommand(Z.prefetchTask$jscomp$1.taskModel.command)||
WW(D,Z.taskId$jscomp$3,Error("dj"))}catch(t){WW(D,Z.taskId$jscomp$3,t)}}}(Y),R,0)}}},I_z=function(D,Y){(Y=zY9(D,Y))!=null&&(Y.resolver.resolve(),Y.tick("pce"));
MO(D,3)},WW=function(D,Y,R){(Y=zY9(D,Y,R))!=null&&(Y.resolver.reject(R),Y.tick("pcc"),CUK(Y,"CANCELLATION_REASON_ERROR"),Math.random()<=_.ZH("prefetch_coordinator_error_logging_sampling_rate")&&(R=new _.AT("Prefetch Command failed.",Y.taskModel.id,R.message),_.Nb(R)));
MO(D,3)},zY9=function(D,Y,R){var Z=D.allPrefetchTasks.get(Y);
Z?((R=D.inflightPrefetchTasks.get(Y))&&R!==-1&&D.scheduler.cancelJob(R),D.inflightPrefetchTasks.delete(Y),D.allPrefetchTasks.delete(Y)):_.Jk(new _.AT("Unexpected missing prefetch task when deleting task.",Y,R==null?void 0:R.message));return Z};var F7k=function(D,Y,R,Z,t){this.id=D;this.triggerOn=Y;this.cancelOn=R;this.command=Z;this.proto=t};
_.YF.Object.defineProperties(F7k.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var GEK=function(){this.JSC$18143_prefetchCoordinator=SLI();MDI||(MDI=new aq);this.defaultCoordinator=MDI},VDK;
GEK.getInstance=function(){VDK||(VDK=new GEK);return VDK};
GEK.prototype.get=function(D){switch(D){case 0:return this.JSC$18143_prefetchCoordinator;default:return this.defaultCoordinator}};var zC=function(){this.coordinatorSupplier=GEK.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},A1p=function(D){var Y=_.K2()||void 0,R=Object.keys(f_k)[0];
if(R){var Z=D.taskIdByTriggerId.get(R);if(Z!=null){D.taskIdByTriggerId.delete(R);R=[];Z=_.a(Z);for(var t=Z.next();!t.done;t=Z.next())if(t=D.tasks.get(t.value))Y!=="UNDEFINED_CSN"&&(t.csn=Y),R.push(t);R=E1U(R);Y=[];R=_.a(R);for(Z=R.next();!Z.done;Z=R.next()){t=_.a(Z.value);Z=t.next().value;t=t.next().value;Z=D.coordinatorSupplier.get(Z).queueAll(t);Z=_.a(Z);var X=Z.next();for(t={};!X.done;t={taskId$jscomp$9:void 0},X=Z.next()){var M=_.a(X.value);X=M.next().value;M=M.next().value;t.taskId$jscomp$9=
X;X=M;Y.push(t.taskId$jscomp$9);D.queuedPromisesByTask.set(t.taskId$jscomp$9,_.$B(X,function(W){return function(){eYk(D,W.taskId$jscomp$9)}}(t)))}}}}else _.Jk(new _.AT("Unexpected malformed TriggerEvent."))};
zC.prototype.trigger=function(D,Y){var R=this,Z=this.tasks.get(D);if(!Z||this.queuedPromisesByTask.has(D))return!1;nEz(this,D,Z.triggerOn);Y!=="UNDEFINED_CSN"&&(Z.csn=Y);Y=this.coordinatorSupplier.get(Z.taskType).queue(Z);this.queuedPromisesByTask.set(D,_.$B(Y,function(){eYk(R,D)}));
return!0};
zC.prototype.cancel=function(D){var Y=this.queuedPromisesByTask.get(D);if(Y)Y.cancel();else return eYk(this,D)};
var eYk=function(D,Y){D.queuedPromisesByTask.delete(Y);var R=D.tasks.get(Y);if(!R)return!1;D.tasks.delete(Y);nEz(D,Y,R.triggerOn);(R=p2U(R.cancelOn))&&(D=D.taskIdByCancelId.get(R))&&D.delete(Y);return!0},nEz=function(D,Y,R){(R=Object.keys(R)[0])&&(D=D.taskIdByTriggerId.get(R))&&D.delete(Y)};var f_k={taskRegistered:{}},Sa=function(){zC.instance||(zC.instance=new zC);this.JSC$18152_taskManager=zC.instance};
_.n(Sa,q6);
Sa.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){R=_.A(D,z4L);if((Z=R)==null||!Z.tasks){var X=new _.AT("RegisterTasksCommand is missing tasks.");_.Nb(X);return t.return()}X=Y.JSC$18152_taskManager;for(var M=_.a(R.tasks),W=M.next();!W.done;W=M.next())if(W=W.value,W=W.id&&W.triggerOn&&W.cancelOn&&W.command?new F7k(W.id,W.triggerOn,W.cancelOn,W.command,W):void 0,W){var z=Object.keys(W.triggerOn)[0];if(z){var I=p2U(W.cancelOn);I?(X.tasks.set(W.id,W),X.taskIdByTriggerId.has(z)||X.taskIdByTriggerId.set(z,
new Set),X.taskIdByTriggerId.get(z).add(W.id),X.taskIdByCancelId.has(I)||X.taskIdByCancelId.set(I,new Set),X.taskIdByCancelId.get(I).add(W.id)):_.Jk(new _.AT("Unexpected malformed cancelOn field."))}else _.Jk(new _.AT("Unexpected malformed triggerOn field."))}else _.Jk(new _.AT("Unexpected malformed Task proto."));A1p(Y.JSC$18152_taskManager);_.V9(t)})};var r1b={},w4b=(r1b.rendered={priority:_.f("web_adaptive_early_init")?8:0,callback:function(){var D={};D.numCpu=navigator.hardwareConcurrency;var Y={};Y.ramGb=_.ZU.navigator.deviceMemory;var R={staticContext:{}};Y.ramGb&&g1U(Y.ramGb)&&(R.staticContext.memoryTotalKbytes=(Y.ramGb*1048576).toString());D.numCpu&&g1U(D.numCpu)&&(R.staticContext.cpuCores=D.numCpu);if(_.f("web_enable_adaptive_appl_signal")){D={};Y=_.m3("rses_dpj");var Z=_.m3("rsef_dpj");Y&&Y>0&&Z&&Z>0&&(Y=Math.ceil(Z-Y),Y>0&&(D.loadLatency=
Y));D.loadLatency&&g1U(D.loadLatency)&&(R.appL=D.loadLatency.toString())}_.bo("applicationStarted",R)}},r1b);var $UK=new _.R6("WINDOW_ON_ERROR"),vEE=new _.R6("ERROR_WEIGHT_MAPS"),oE9=new _.R6("INIT_ERROR");var bLh={},y1E=(bLh.initialized={priority:10,callback:function(D){D.injector.resolve(oE9)()}},bLh);var Nzb=function(){},l_u=function(){var D=_.mf("meta_logger_impl");
D||(D=new Nzb,_.ix("meta_logger_impl",D));return D},J1u=function(){l_u().csiSubscriptionKey=TdU("meta_logging_csi_event",function(D){var Y=D.timerName;
if(D=D.timelineData){_.U7(Y,{startTime:D.startTime},Y);D.infos&&_.k8(D.infos,Y);for(var R=_.a(Object.keys(D.ticks)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,_.KX(Z,D.ticks[Z],Y)}})};
Nzb.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&F4U(this.csiSubscriptionKey)};var kE9={},UUT=(kE9.initialized={priority:10,callback:function(){J1u()}},kE9);var K7k=function(D,Y){this.innertubeClientName=D;this.JSC$18168_prefCookie=Y};
K7k.prototype.record=function(){if(_.f("web_li_record_binary_eval_tick")){var D=_.m3("rsef_dpj");var Y=_.m3("rses_dpj");D=D!==void 0&&Y!==void 0?Math.round(D-Y):void 0;if(D!==void 0&&D>0){Y=_.FJ(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var R=this.poolSize;if(!(Y.valuesSeen>=1E9)){if(Y.valuesSample.length<R)Y.valuesSample.push(D);else{var Z=Math.floor(Math.random()*(Y.valuesSeen+1));Z<R&&(Y.valuesSample[Z]=D)}Y.valuesSeen+=1}_.I8(this.storagePrefix+"-"+this.innertubeClientName,
Y,2592E3);D=Y.valuesSample;Y=d5y(D);D=D.length<this.poolSize?void 0:Y<400?1:Y<1700?2:3;D!==void 0&&(this.JSC$18168_prefCookie.set(this.cookiePrefix+this.innertubeClientName,D),this.JSC$18168_prefCookie.save())}}else _.G5(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18168_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18168_prefCookie.save()};
K7k[YS]=[Jy,zH];var hYu=function(){K7k.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.n(hYu,K7k);var L79=new _.R6("PAGE_LOAD_TIME_TOKEN");var mUz=function(D){this.signal=D;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;D.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Ak(_.yc,this.disableLoggingAndSendPayload,1E4)};
mUz.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.yc.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),qLz(this))};
var qLz=function(D){var Y=_.Ud();if(Y){var R={webClientComponentsData:{components:Array.from(D.ids,function(Z){return{id:Z}})}};
D.ids.clear();_.n8().visualElementStateChanged(Y,R)}};var HLz=new _.R6("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var TC=function(D,Y){this.JSC$18197_storeWithEntities=D;this.JSC$18197_commandHandler=Y;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
TC.prototype.start=function(){this.JSC$18197_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
TC.prototype.observeDownloadingEntities=function(){var D=_.gGr(this.JSC$18197_storeWithEntities.getState().entities).map(function(Z){return dv$(Z)});
if(D.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var Y={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:HQy()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.tu(_.fX("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18197_commandHandler.resolveCommand(Y)}this.downloadingEntities=D}else if(this.downloadingEntities.length){var R=EGl(this.JSC$18197_storeWithEntities.getState().entities).map(function(Z){return dv$(Z)});
this.downloadingEntities.filter(function(Z){return R.includes(Z)}).length&&(D={openPopupAction:lRl()},this.JSC$18197_commandHandler.resolveCommand(D));
this.downloadingEntities=[]}};
TC[YS]=[Xc,_.Yw];var xUI;_.ja=function(D,Y,R,Z,t,X,M,W){this.JSC$18200_playerApiPromise=D;this.JSC$18200_commandHandler=Y;this.JSC$18200_screenManager=R;this.offlineWebClientEligibility=Z;this.JSC$18200_prefStorage=t;this.JSC$18200_actionRouter=X;this.entityTypeMap=M;this.JSC$18200_persistentStorePromiseAccessor=W;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
xUI=function(){var D=_.DH().resolve(_.ja),Y;_.C(function(R){if(R.nextAddress==1)return D.downloadFailureListenerBound?R.return():R.yield(D.JSC$18200_playerApiPromise,2);Y=R.yieldResult;Y.addEventListener("onOfflineOperationFailure",function(Z){if(Z.failureReason&&Z.entityKey&&Z.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Z.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var t=_.Mw(Z.entityKey).entityId;t&&D.JSC$18200_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
t)}else if(_.f("kevlar_woffle")){t=D.JSC$18200_commandHandler;var X=t.resolveCommand;Z=Z.failureReason;var M=_.fX("TRANSFER_FAILED",void 0,"Download failed");Z==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(M=_.fX("STORAGE_FULL",void 0,"Storage full"));X.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tu(M),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
D.downloadFailureListenerBound=!0;_.V9(R)})};
_.ja.prototype.deleteVideo=function(D,Y){var R=this,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return M.yield(R.JSC$18200_playerApiPromise,2);Z=M.yieldResult;X={offlineLoggingData:{offlineDeleteReason:(t=Y)!=null?t:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return M.yield(Z.queueOfflineAction(D,R.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",X),0)})};
_.ja.prototype.pauseVideoDownload=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.JSC$18200_playerApiPromise,2);R=Z.yieldResult;R.pauseVideoDownload(D);_.V9(Z)})};
_.ja.prototype.resumeVideoDownload=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.JSC$18200_playerApiPromise,2);R=Z.yieldResult;return Z.yield(R.resumeVideoDownload(D),0)})};
_.ja[YS]=[_.CH,_.Yw,_.ya,HLz,IS,ZY,xLL,VA];var PU9=new _.R6("DOWNLOAD_STATE_STORE_TOKEN");var Qzp=function(D,Y){this.JSC$18220_persistentStorePromiseAccessor=D;this.store=Y;this.upliftCompletionResolver=new _.Ta},EEu=function(){var D=_.DH().resolve(Bz9),Y;
_.C(function(R){switch(R.nextAddress){case 1:if(D.upliftImplPromise)return R.return(D.upliftImplPromise);_.SX(R,2);D.upliftImplPromise=p49(D);return R.yield(D.upliftImplPromise,4);case 4:D.upliftCompletionResolver.resolve();_.xw(R,3);break;case 2:throw Y=_.Gl(R),D.upliftCompletionResolver.reject(Y),Y;case 3:return R.return(D.upliftImplPromise)}})},p49=function(D){var Y,R,Z;
return _.C(function(t){switch(t.nextAddress){case 1:return _.ks("LOGGED_IN")?t.yield(D.JSC$18220_persistentStorePromiseAccessor(),2):t.return();case 2:Y=t.yieldResult;if(!Y)return _.KX("vdeur"),t.return();_.KX("vdeus");_.SX(t,3);return t.yield(gEz(Y),5);case 5:R=t.yieldResult;D.store.dispatch(Jhr(R));Y.observe(function(X){kBi(D.store,X)});
_.xw(t,4);break;case 3:throw Z=_.Gl(t),_.KX("vdeur"),Z;case 4:_.KX("vdeuc"),_.V9(t)}})},gEz=function(D){var Y;
return _.C(function(R){if(R.nextAddress==1)return R.yield(ZUr(D),2);Y=R.yieldResult;return R.return(Y.reduce(function(Z,t){if(!t.data||!t.key||!t.entityType)return Z;Z[t.entityType]||(Z[t.entityType]={});Z[t.entityType][t.key]=t.data;return Z},{}))})};
Qzp[YS]=[VA,_.xZ];var Bz9;Bz9=new _.R6("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Iq=new _.R6("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Ff=function(D,Y){this.JSC$18223_persistentStorePromiseAccessor=D;this.transportService=Y};
Ff.prototype.refresh=function(){var D=this,Y,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return _.ks("LOGGED_IN")?X.yield(D.JSC$18223_persistentStorePromiseAccessor(),2):X.return();if(X.nextAddress!=3)return(Y=X.yieldResult)?X.yield(Lx$(Y),3):X.return();if((R=X.yieldResult)&&!(Number(R.data.refreshTimestampMs||0)<(0,_.DO)()))return X.return();Z={browseId:"SPaccount_downloads"};t=_.YI(iE);_.Hk(D.transportService,Z,t).then(function(M){var W;if(Y&&(M==null?void 0:(W=M.responseContext)==null?void 0:
W.maxAgeSeconds)!==0){var z;W=(M==null?void 0:(z=M.responseContext)==null?void 0:z.maxAgeSeconds)||604800;z=String(Math.floor((0,_.DO)())+W*1E3);Y.put("service:downloads_settings:fallback",new _.Tx({innertubeResponse:M,refreshTimestampMs:z}))}});
_.V9(X)})};
Ff[YS]=[_.uO,_.h6];var GC=function(D,Y){this.JSC$18227_playerPromise=D;this.store=Y;this.started=!1};
GC.prototype.start=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return D.started?R.return():R.yield(D.JSC$18227_playerPromise,2);Y=R.yieldResult;Y.addEventListener("onOrchestrationBecameLeader",D.updateIsLeader.bind(D,!0));Y.addEventListener("onOrchestrationLostLeader",D.updateIsLeader.bind(D,!1));if(Y.isOrchestrationLeader)D.updateIsLeader(Y.isOrchestrationLeader());else{var Z=new _.AT("Function isOrchestrationLeader is undefined",{"player.isReady":Y.isReady(),"player.playVideo":Y.playVideo?
"defined":"undefined"});_.Nb(Z);D.updateIsLeader(!1)}D.started=!0;_.V9(R)})};
GC.prototype.updateIsLeader=function(D){this.store.dispatch(_.u0({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:D}}))};
GC[YS]=[_.CH,_.xZ];var dUb=function(D,Y){this.networkStatusManager=D;this.JSC$18230_prefStoragePromise=Y;this.redirectsToPreload=["https://youtube.com"]},iLk=function(){var D=_.DH().resolve(dUb),Y,R,Z,t,X,M;
_.C(function(W){switch(W.nextAddress){case 1:return W.yield(D.JSC$18230_prefStoragePromise,2);case 2:Y=W.yieldResult;if(!(R=Y)){W.jumpTo(3);break}return W.yield(Y.get("yt-redirect-prefetch-id"),4);case 4:R=W.yieldResult;case 3:if(R||!D.networkStatusManager.isNetworkAvailable())return W.return();Z={cache:"reload",redirect:"manual"};t=_.a(D.redirectsToPreload);X=t.next();case 5:if(X.done){if(!Y){W.jumpTo(0);break}return W.yield(Y.set("yt-redirect-prefetch-id",!0,86400),0)}M=X.value;_.SX(W,8);return W.yield(_.ZU.fetch(M,
Z),10);case 10:_.xw(W,6);break;case 8:_.Gl(W);case 6:X=t.next(),W.jumpTo(5)}})};var Vq=function(D){D?(this.container=D,this.containerWasInjected=!0):this.containerWasInjected=!1};
Vq.prototype.openDialog=function(D,Y,R){var Z=this,t;return _.C(function(X){(t=Z.container)==null||t.openDialog(D,Y,R);_.V9(X)})};
Vq.prototype.closeDialog=function(){var D=this,Y;return _.C(function(R){(Y=D.container)==null||Y.closeDialog();_.V9(R)})};
Vq.prototype.isDialogOpen=function(){var D=this,Y,R;return _.C(function(Z){return Z.return((R=(Y=D.container)==null?void 0:Y.isDialogOpen())!=null?R:!1)})};
Vq[YS]=[_.cD($m_)];_.OLt=new _.R6("POPUP_CONTROLLER_TOKEN");var c19=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
c19.prototype.registerPanel=function(D,Y){if(D){this.panelMap.set(D,Y);var R=this.pendingPanelResolvers.get(D);R&&(R.resolve(Y),this.pendingPanelResolvers.delete(D))}};
c19.prototype.getPanel=function(D){var Y=this,R;return _.C(function(Z){return(R=Y.panelMap.get(D))?Z.return(R):Z.return(Dku(Y,D))})};
var Dku=function(D,Y){var R,Z;return _.C(function(t){if(R=D.pendingPanelResolvers.get(Y))return t.return(R.promise);Z=new _.Ta;D.pendingPanelResolvers.set(Y,Z);return t.return(Z.promise)})},Yzk=function(D){c19.call(this);
var Y=this;this.popupController=D;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return Y.panelMap.size}}};
_.n(Yzk,c19);_.u=Yzk.prototype;_.u.getReloadContinuation=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.getPanel(D),2);R=Z.yieldResult;return Z.return(R.getReloadContinuation())})};
_.u.showPanel=function(D,Y,R,Z,t,X,M){var W=this,z,I,F,G;return _.C(function(V){if(V.nextAddress==1){M&&W.updatePanelContinuationDatas.set(D,M);if((z=R)==null?0:(I=z.engagementPanelPopupPresentationConfig)==null?0:I.popupType){F=R.engagementPanelPopupPresentationConfig.popupType;t===void 0&&(t=document.body);var e=V.return,r=W.popupController,l=r.openPopup;a:switch(F){case "PANEL_POPUP_TYPE_DIALOG":var U="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":U="DROPDOWN";break a;default:throw Error("fj`"+
F);}return e.call(V,l.call(r,D,Y,U,t))}return V.yield(W.getPanel(D),2)}G=V.yieldResult;(Y||X)&&G.updatePanel(Y,!1,Z,X);G.showPanel(Z);_.V9(V)})};
_.u.hidePanel=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(Y.getPanel(D),2);R=Z.yieldResult;R.hidePanel();Y.popupController.closePopup(D);_.V9(Z)})};
_.u.isVisible=function(D,Y){var R=this,Z;return _.C(function(t){if(t.nextAddress==1)return Y&&!R.panelMap.has(D)?t.return(!1):t.yield(R.getPanel(D),2);Z=t.yieldResult;return t.return(Z.isVisible())})};
_.u.updatePanel=function(D,Y,R,Z,t,X){R=R===void 0?!1:R;var M=this,W;return _.C(function(z){if(z.nextAddress==1){if(!Y&&!t)return z.return();X&&M.updatePanelContinuationDatas.set(D,X);return z.yield(M.getPanel(D),2)}W=z.yieldResult;W.updatePanel(Y,R,Z,t);_.V9(z)})};
_.u.registerPanelContent=function(D,Y){D&&this.panelContentMap.set(D,Y)};
_.u.unregisterPanelContent=function(D){this.panelContentMap.delete(D)};
_.u.getPanelContent=function(D){return this.panelContentMap.get(D)};
_.u.getUpdatePanelContinuationData=function(D){return this.updatePanelContinuationDatas.get(D)};
Yzk[YS]=[_.OLt];var fY=function(D,Y){this.innertubeTransportService=D;this.JSC$18246_screenManager=Y},RKz=function(D){var Y;
return!((Y=D.panelLoadingStrategy)==null||!Y.requestTemplate)};
fY.prototype.makeRequest=function(D){var Y=this,R,Z;return _.C(function(t){switch(t.nextAddress){case 1:if(!RKz(Y)){t.jumpTo(2);break}_.SX(t,3);return t.yield(_.d1(Y.innertubeTransportService,D),5);case 5:return R=t.yieldResult,R?t.return(R.content):(_.Nb(Error("gj")),t.return(void 0));case 3:Z=_.Gl(t),_.Nb(Z);case 2:return t.return(void 0)}})};
fY.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
fY.prototype.execute=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G;return _.C(function(V){if(V.nextAddress==1){R=D;Z=R.data;t=R.fallbackVe;X=R.parentVe;M=R.createScreenConfig;W=R.renderFn;z=R.command;Y.panelLoadingStrategy=Z;var e,r,l=((e=Y.panelLoadingStrategy)==null?0:e.screenVe)?(r=Y.panelLoadingStrategy)==null?void 0:r.screenVe:t;l&&_.TJ(Y.JSC$18246_screenManager,l,X,M);return(I=Y.getContent())?V.yield(W(I),2):V.jumpTo(2)}return V.nextAddress!=4?RKz(Y)?V.yield(Y.makeRequest(z),4):V.return():(G=F=
V.yieldResult)?V.yield(W(G),0):V.return()})};
fY[YS]=[_.h6,_.ya];var ea=function(){};
ea.prototype.getContainer=function(){return _.t4()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
ea.prototype.openSheet=function(D,Y){var R=this,Z,t,X,M,W,z;return _.C(function(I){switch(I.nextAddress){case 1:return Z={stack:[],error:void 0,hasError:!1},_.SX(I,2,3),t=EW,I.yield(R.isSheetOpen(),5);case 5:X=I.yieldResult;U2$(Z,nQy(t));if(X){if(Y&&R.currentTarget===Y)return(M=R.getContainer())==null||M.closeSheet(),I.return();R.pendingData={data:D,target:Mb0(R,Y)};return I.return()}D.viewModel&&(D={viewModel:D.viewModel});(W=R.getContainer())==null||W.openSheet(D,Y);R.currentTarget=Y;case 3:_.jX(I);
Kj$(Z);_.Fx(I,0);break;case 2:z=_.Gl(I),Z.error=z,Z.hasError=!0,I.jumpTo(3)}})};
ea.prototype.closeSheet=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield((Y=D.getContainer())==null?void 0:Y.closeSheet(),2);if(R.nextAddress!=4)return D.currentTarget=void 0,D.pendingData?R.yield(D.openSheet(D.pendingData.data,D.pendingData.target),4):R.jumpTo(0);D.pendingData=void 0;_.V9(R)})};
ea.prototype.isSheetOpen=function(){var D=this,Y,R;return _.C(function(Z){return Z.return((R=(Y=D.getContainer())==null?void 0:Y.isSheetOpen())!=null?R:!1)})};
var Mb0=function(D,Y){if(!_.f("web_parent_target_for_sheets"))return Y;var R,Z;return(Z=(R=D.getContainer())==null?void 0:R.getParentTarget(Y))!=null?Z:Y};var u$=window.documentPictureInPicture;var jMi=_.gY(["dark"]),IjS=_.gY(["system-icons"]),FAy=_.gY(["typography"]),G8i=_.gY(["lang"]),VSi=_.gY(["style"]),WAU=_.gY(["dir"]),z6y=_.gY(["rounded-container"]),Slj=_.gY(["style"]),e6$=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],AA=function(D){this.JSC$18258_clientRoot=D;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
AA.prototype.openWindow=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1)return window.documentPictureInPicture&&_.vo()&&!Y.currentPipWindow?t.yield((R=u$?u$:null)==null?void 0:R.requestWindow(D),2):t.return(!1);if(t.nextAddress!=3){Z=t.yieldResult;if(!Z)return t.return(!1);Z.addEventListener("pagehide",function(){Ztu(Y)});
Z.addEventListener("resize",Y.handlePipWindowResize);Y.pipWindowResizeDelay=new _.t5(function(){Y.currentPipWindow&&_.CX(Y.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.FL(Y.currentPipWindow.innerWidth,Y.currentPipWindow.innerHeight)])},Z);
fji(Z);nH9(Z);return t.yield(CrU(Z),3)}if(!umM())return t.return(!1);Y.currentPipWindow=Z;Y.JSC$18258_eventForwarder=AJS(Z,Y.JSC$18258_clientRoot);Y.pipWindowResizeDelay.start();return t.return(!0)})};
AA.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Ztu=function(D){if(D.currentPipWindow){var Y,R;(Y=u$?u$:null)==null||(R=Y.window)==null||R.close();D.currentPipWindow.removeEventListener("resize",D.handlePipWindowResize);var Z;(Z=D.pipWindowResizeDelay)==null||Z.dispose();D.pipWindowResizeDelay=void 0;var t;(t=D.JSC$18258_eventForwarder)==null||t.stop();D.JSC$18258_eventForwarder=void 0;Y=_.a(D.onCloseCallbacks);for(R=Y.next();!R.done;R=Y.next())R=R.value,R();D.onCloseCallbacks=[];D.currentPipWindow=null}};
AA.prototype.getWindow=function(){return this.currentPipWindow};
var t0h=function(D,Y){var R;(R=D.onCloseCallbacks)==null||R.push(Y)};
AA.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.vo()};
_.YF.Object.defineProperties(AA.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
AA[YS]=[pWY];var s99=new _.R6("PICTURE_IN_PICTURE_CONTROLLER");var rJU=function(D,Y){this.lengthY=this.lengthX=0;this.lengthX=Y.x-D.x;this.lengthY=Y.y-D.y};var XuI=function(){},fUT=function(D,Y){var R;
(R=D.headerElement)==null||R.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:Y}))};var uEz=function(){};
uEz.prototype.openPopup=function(D,Y,R,Z){var t=this,X;return _.C(function(M){if(!t.container)return M.return();X={openPopupAction:{popup:Y,popupType:R,uniqueId:D}};return M.return(t.container.handleOpenPopupAction(X,Z))})};
uEz.prototype.closePopup=function(D){this.container&&this.container.closePopup(D)};var apk=function(){this.openTunnels=new Map},eHi=function(D,Y,R){if(yJ5(R)){var Z=_.LG(R,"gclid");
R={handleEvent:function(W){Y&&!Y.closed&&typeof Y.postMessage==="function"&&W&&W.origin&&W.source===Y&&W.data&&W.data.action==="gcl_setup"&&Y.postMessage(Object.assign({},{action:"gcl_transfer"},Z&&{gclid:Z},{gadSource:2}),W.origin)}};
for(var t=_.a(D.openTunnels),X=t.next();!X.done;X=t.next()){var M=_.a(X.value);X=M.next().value;M=M.next().value;if(X.closed)try{window.removeEventListener("message",M),D.openTunnels.delete(X)}catch(W){_.Nb(W)}}Y&&D.openTunnels.size<15&&(D.openTunnels.set(Y,R),window.addEventListener("message",R))}};var M0p=function(){this.clientParams=new Map},MoY=function(D){for(var Y=_.a(D.clientParams.keys()),R=Y.next();!R.done;R=Y.next())R=R.value,R.startsWith("yt-mini-app-share")&&D.clientParams.delete(R)};var Ckk=function(D,Y){_.AE.call(this);var R=this;this.shortsController=D;this.storeWithShorts=Y;D=_.rm(this.storeWithShorts,_.qCr,function(Z){if(Z){var t,X=(t=R.shortsController.getRoot())==null?void 0:t.getPlayer(),M;(t=(M=R.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer())&&(X==null||X.appendTo(t))}else{var W;M=(W=R.shortsController.alternativePlayerContainerElement)==null?void 0:W.getPlayerContainer().querySelector("#player");t=R.shortsController.activeIndex;
(W=(X=R.shortsController.getRoot())==null?void 0:X.querySelector('ytd-reel-video-renderer[id="'+t+'"] #player-container'))&&(M==null||M.appendTo(W,void 0,!0))}});
this.addOnDisposeCallback(D)};
_.n(Ckk,_.AE);var nY=function(D,Y,R,Z,t){var X=this;this.storeWithShorts=D;this.ephemeralResponseStore=Y;this.store=R;this.innertubeTransportService=Z;this.innertubeTransportLoader=t;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.qW(_.MV);this.isShortsPipActive=_.qW(_.C9);this.nextReelVe=_.TP(56921);this.prevReelVe=_.TP(56922);this.backButtonVe=_.TP(22156);this.TEST_ONLY={getActiveModules:function(){return X.activeModules}}},Whu=function(D){D.unsubscribeFromStore=
_.rm(D.storeWithShorts,_.mHU,function(Y){D.initOrDisposeActiveModules(Y);
!Y&&D.storeWithShorts.getState().shorts.isFullscreen&&(_.s7(document.documentElement),D.storeWithShorts.dispatch(_.gkY(!1)))});
D.initOrDisposeActiveModules(_.mHU(D.storeWithShorts.getState()))},dSL,ik4,zKT;
nY.prototype.initOrDisposeActiveModules=function(D){D?this.activeModules.push(new Ckk(this,this.storeWithShorts)):(_.c8(this.activeModules),this.activeModules.length=0)};
nY.prototype.registerRootElement=function(D){this.rootElement=D;Whu(this)};
nY.prototype.getRoot=function(){return this.rootElement};
nY.prototype.setActiveIndex=function(D){this.activeIndex=D};
_.P8L=function(D,Y){var R,Z,t,X,M,W,z;return _.C(function(I){switch(I.nextAddress){case 1:return R=new yl,(Z=R.JSC$13022_getStoreKey(Y))&&D.ephemeralResponseStore.has(Z)?I.yield(D.ephemeralResponseStore.get(Z),7):I.yield(zKT(D,Y),4);case 4:t=I.yieldResult;if(!Z){I.jumpTo(3);break}X=zP(t,3600);return I.yield(D.ephemeralResponseStore.put(Z,new _.Tx(X)),3);case 7:t=(M=I.yieldResult)==null?void 0:_.tn(M);case 3:return((W=t)==null?0:W.replacementEndpoint)&&(z=_.A(t.replacementEndpoint,_.$I))&&t.sequenceContinuation&&
(z.sequenceParams=t.sequenceContinuation),I.return(t)}})};
dSL=function(D,Y){Y=(new Ng).JSC$13022_getStoreKey(Y);return!!Y&&D.ephemeralResponseStore.has(Y)};
ik4=function(D,Y,R){var Z,t,X,M,W;_.C(function(z){if(z.nextAddress==1){Z=new Ng;t=Z.JSC$13022_getStoreKey(Y);if(!t)return z.return();if(R.reelWatchSequenceResponse)return X=zP(R.reelWatchSequenceResponse,3600),D.ephemeralResponseStore.put(t,new _.Tx(X)),z.jumpTo(0);if(!D.ephemeralResponseStore.has(t))return z.jumpTo(0);W=R;return z.yield(D.ephemeralResponseStore.get(t),4)}W.reelWatchSequenceResponse=(M=z.yieldResult)==null?void 0:_.tn(M);_.V9(z)})};
zKT=function(D,Y){var R=R===void 0?{}:R;var Z,t,X;return _.C(function(M){switch(M.nextAddress){case 1:if(D.innertubeTransportService){Z=D.innertubeTransportService;M.jumpTo(2);break}if(!D.innertubeTransportLoader){_.hQ(Error("ij"));M.jumpTo(2);break}return M.yield(D.innertubeTransportLoader(),4);case 4:Z=M.yieldResult;case 2:return M.yield((t=Z)==null?void 0:_.d1(t,Y,R),5);case 5:return X=M.yieldResult,M.return(X)}})};
_.YF.Object.defineProperties(nY.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
nY[YS]=[k7z,_.Sm,Xc,_.cD(_.h6),_.cD(bAz)];_.SzK=new _.R6("STORAGE_MANAGER_TOKEN");var UMy=["touchmove","scroll"];var KA$={onSpanEnd:function(D){if(D.parent==null){var Y=D.name;_.U7(Y);k8$(D,Y)}}};var Tbk=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},j99;
Tbk.prototype.enqueue=function(D,Y){Y===1?this.currentPersistentToast=D:this.queue.push(D);this.openToast()};
Tbk.prototype.openToast=function(){var D;(D=this.currentToast)!=null&&D.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.r6=new _.R6("TOAST_MANAGER_TOKEN");var Ip9=new _.R6("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Fhk=new _.R6("VIEW_TRANSITION_COORDINATOR_TOKEN");var GTh=function(D){this.config=D;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;D=_.a(D.transitionConfigs);for(var Y=D.next();!Y.done;Y=D.next())Y=_.a(Y.value).next().value,this.transitionTasksMap.set(Y,[])};
GTh.prototype.registerElement=function(D,Y,R){R=R===void 0?!1:R;for(var Z=_.a(Object.keys(Y)),t=Z.next(),X={};!t.done;X={viewTransitionName:void 0},t=Z.next()){t=t.value;X.viewTransitionName=Y[t];var M=this.elementTasksMap.get(D),W=void 0;if((W=M)==null?0:W.has(t)){_.lo(new _.AT("Element already registered for transition",D.tagName,t));break}M=M||new Map;M.set(t,{beforeTransition:function(z){return function(){D.style.viewTransitionName=z.viewTransitionName}}(X),
afterTransition:function(){D.style.viewTransitionName&&(D.style.viewTransitionName="")},
runOnce:R});this.elementTasksMap.set(D,M)}};
_.Qi=function(D,Y){var R=D.elementTasksMap.get(Y);R&&(R.clear(),R.size===0&&D.elementTasksMap.delete(Y))};
GTh[YS]=[Ip9];var V00;_.fp9=_.RT(function(D){return _.S("basic-content-view-model",{class:_.e7("ytBasicContentViewModelHost",_.DX(D.className))},_.S(_.T,{cond:function(){return D.data().headline},
then:function(Y){return _.S("div",{class:"ytBasicContentViewModelHeadline"},_.S(_.y_,{text:Y}))}}),_.S(_.G6,{each:function(){return D.data().paragraphs||[]},
keyBy:"INDEX"},function(Y){return _.S("div",{class:"ytBasicContentViewModelParagraph"},_.S(_.T,{cond:function(){var R=Y();return!!(R.header||R.customHeader||R.headline)},
then:function(){return _.S(V00,{paragraph:Y})}}),_.S(_.T,{cond:function(){return Y().asset||Y().text},
then:function(){return _.S("div",{class:"ytBasicContentViewModelParagraphContent"},_.S(_.T,{cond:function(){return Y().asset},
then:function(R){return _.S("div",{class:"ytBasicContentViewModelParagraphAsset"},_.S(_.vK,{data:R},{contentPreviewImageViewModel:_.X2}))}}),_.S(_.T,{cond:function(){return Y().text},
then:function(R){return _.S("div",{class:"ytBasicContentViewModelParagraphText"},_.S(_.y_,{text:R}))}}))}}))}))},"Ge");
V00=_.RT(function(D){var Y=D.paragraph;return _.S(_.c_,null,_.S(_.T,{cond:function(){return Y().headline},
then:function(R){return _.S(_.y_,{text:R,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.S(_.vK,{data:function(){return Y().header||Y().customHeader}},{sectionHeaderViewModel:function(R){return _.S(_.Sx,{data:R.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"He");var A9h=_.RT(function(D){var Y=_.dI("yt-expandable-metadata-header-view-model"),R=_.F4(function(Z){if(!_.KH(_.Um(Z),Y.value,["A".toString(),"BUTTON".toString()])){var t;(t=D.expandedCallback)==null||t.call(D,!1)}});
return _.S("yt-expandable-metadata-header-view-model",{el:Y,class:"ytExpandableMetadataHeaderViewModelHost"},_.S(_.T,{cond:function(){return D.expanded()},
then:function(){return _.S("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":R},_.S("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.S(_.T,{cond:function(){return D.data().expandedTitleImage},
then:function(Z){return _.S("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.S(_.Rt,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Z}))}}),_.S("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.S("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.S(_.y_,{text:function(){return D.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.S(_.y_,{text:function(){return D.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.S(_.y_,{text:function(){return D.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.S("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.S(_.vK,{data:function(){return D.data().infoButton}},{buttonViewModel:_.TV}),_.S(_.vK,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
onClick:function(){var t;(t=D.expandedCallback)==null||t.call(D,!1)}})}})))},
else:function(){return _.S(eKK,Object.assign({},D))}}))},"Ie"),nKk=_.RT(function(D){return _.S("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.S(_.T,{cond:function(){return D.data().collapsedLabelImage},
then:function(Y){return _.S("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.S(_.Rt,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Y,alt:""}))}}),_.S(_.y_,{text:function(){return D.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Je"),eKK=_.RT(function(D){return _.S("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.F4(function(){var Y;return void((Y=D.expandedCallback)==null?void 0:Y.call(D,!0))})},_.S("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.S(_.T,{cond:function(){return D.data().collapsedImage},
then:function(Y){return _.S("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.S(_.Rt,{width:16,height:16,data:Y,alt:""}))}}),_.S(_.T,{cond:function(){return D.data().showLeadingCollapsedLabel},
then:function(){return _.S(nKk,Object.assign({},D))}}),_.S("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.S(_.y_,{text:function(){return D.data().collapsedTitle}}))),_.S("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.S(_.T,{cond:function(){return!D.data().showLeadingCollapsedLabel},
then:function(){return _.S(nKk,Object.assign({},D))}}),_.S(_.vK,{data:function(){return D.data().infoButton}},{buttonViewModel:_.TV}),_.S(_.vK,{data:function(){return D.data().expandButton}},{buttonViewModel:function(Y){return _.S(_.TV,{data:Y.data,
onClick:function(){var R;(R=D.expandedCallback)==null||R.call(D,!0)}})}})))},"Ke");_.r9h=_.RT(function(D){var Y=_.a(_.fB(function(){return D.data().initiallyExpanded})),R=Y.next().value,Z=Y.next().value,t,X=(t=_.DH().resolve(_.cD(_.O4)))==null?void 0:t(),M=function(){var W=D.data().colorData;
if(W)return X?W==null?void 0:W.darkColorPalette:W==null?void 0:W.lightColorPalette};
return _.S("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Ap({"background-color":function(){var W=M();return(W==null?0:W.section2Color)?_.xI(W.section2Color):""}})},_.S(_.vK,{data:function(){return D.data().header}},{expandableMetadataHeaderViewModel:function(W){return _.S(A9h,{data:W.data,
expanded:function(){return!!R()},
expandedCallback:function(z){Z(z)}})}}),_.S(_.T,{cond:function(){return R()},
then:function(){return _.S("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.S(_.vK,{data:function(){return D.data().expandedContent}},{horizontalShelfViewModel:function(W){return _.S(_.q9,{data:W.data,
includeMargin:!0,forceNarrowLayout:!0,palette:M})},
videoSummaryContentViewModel:function(W){return _.S(rq4,{data:W.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(W){return _.S(_.Wz,{data:W.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(W){return _.S(_.fp9,{data:W.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.S(_.vK,{data:function(){return D.data().expandedBottomButtons}},{buttonViewModel:function(W){return _.S("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.S(_.TV,{data:W.data}))}}))}}))},"Le");var wuk=_.RT(function(D){var Y=D.text;var R=D.marqueeSpacing;var Z=D.scrollDelay;var t=D.scrollDuration;var X=D.enableMarqueeScroll;D=D.large;var M=_.a(_.ae(!1,void 0,"kfNqfd")),W=M.next().value,z=M.next().value,I=_.a(_.ae(0,void 0,"bYgZbf"));M=I.next().value;var F=I.next().value,G=_.dI("marquee-scroll");I=_.dI("div");var V=_.dI("span"),e=_.DH().resolve(_.DT);_.r2(function(){if(X()){var U=V.value.getBoundingClientRect().width,K=G.value.getBoundingClientRect().width;if(U>K){var H=(e==="ltr"?-1:1)*
(U+(R?R():16));Promise.resolve().then(function(){z(!0);F(H)})}}},"giRlme");
var r={},l={};return _.S("marquee-scroll",{class:_.e7("ytMarqueeScrollHost",(r.ytMarqueeScrollHostLarge=D,r)),el:G},_.S("div",{id:"marquee-scroll-inner-container",class:_.e7("ytMarqueeScrollInnerContainer",(l.ytMarqueeScrollAnimationEnabled=function(){return W()},l)),
el:I,style:_.Ap({gap:R?(0,_.kj)(R):"16px","animation-duration":t?VLY(t):"16s","animation-delay":Z?VLY(Z):"3s","--marquee-translate":(0,_.kj)(M)})},_.S("span",{el:V,dir:"auto"},_.S(_.y_,{text:Y,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.S(_.T,{cond:W,then:function(){return _.S("span",{"aria-hidden":"true",dir:"auto"},_.S(_.y_,{text:Y,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Me");_.$kT=_.RT(function(D){var Y=D.data;var R=D.overlayDensity;D=_.F4(function(){Y().onTapCommand&&_.BL(Y().onTapCommand);return!1});
var Z=_.bsM(),t=function(){return(R==null?void 0:R())===1?22:16},X={};
return _.S("reel-sound-metadata-view-model",{class:_.e7("ytReelSoundMetadataViewModelHost",(X.ytReelSoundMetadataViewModelHostLarge=function(){return(R==null?void 0:R())===1},X)),
"on:click":D,tabindex:0,role:"button","on:keydown":Z},_.S("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.S(_.T,{cond:function(){return Y().musicIcon},
then:function(M){return _.S(_.Rt,{data:M,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:t})}}),_.S("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.S(wuk,{text:function(){return Y().soundMetadata},
enableMarqueeScroll:function(){return!!Y().enableMarqueeScroll},
large:function(){return(R==null?void 0:R())===1}}))))},"Ne");var vKT,oKk,w6,lpK,kTT,NbT,hKb,KhK;vKT=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];oKk=_.ZH("wil_icon_max_concurrent_fetches",Infinity);
w6=function(D,Y,R){var Z=this;this.iconSet=D;this.appDirection=Y;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.ZU.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.f("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.f("wil_icon_network_first");this.renderWhenIdle=_.f("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.f("wil_icon_load_immediately");this.isPurging=!1;D=function(){Z.cacheStorageAvailable&&(Z.cacheStorageAsync=_.ZU.caches.open("yt-icons").then(function(X){return Z.cacheStorageSync=X}).catch(function(){Z.cacheStorageAvailable=!1}))};
R=(R==null?void 0:R())||{};R=_.a(Object.entries(R));for(Y=R.next();!Y.done;Y=R.next()){var t=_.a(Y.value);Y=t.next().value;t=t.next().value;t=z6(t);bth(t);this.iconCache[Y]=t.cloneNode(!0)}this.isPurging=y9t(this);this.isPurging instanceof Promise?this.isPurging.then(D):D()};
_.QAb=function(D,Y){var R=D.resolveIcon(Y);return R?D.renderingMode===1?NbT(D,R,D.renderingMode):(Y=D.iconCache[R.url])?(Y=Y.cloneNode(!0),lpK(D,Y),NbT(D,R,D.renderingMode,Y)):_.J9T(D,R).then(function(Z){var t=Z?0:1;lpK(D,Z);return NbT(D,R,t,Z)}):(_.lo(new _.AT("Icon not found",{iconShape:Y})),function(){})};
lpK=function(D,Y){if(Y){D.counter+=1;D="_yt"+D.counter;Y=[Y].concat(_.oK(Y.getElementsByTagName("*")));Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())if(R=R.value,R.tagName==="style"&&R.textContent)R.textContent=kTT(R.textContent,D,!0);else for(var Z=_.a(R.attributes),t=Z.next();!t.done;t=Z.next()){t=t.value;t.name==="id"&&(t.value+=D);["mask","fill","clip-path"].includes(t.name)&&(t.value=kTT(t.value,D));if(t.name==="style"){var X=R.style;try{X.cssText=kTT(X.cssText,D,!0)}catch(F){var M=void 0,W=
void 0,z=void 0,I=void 0;$4({error:((M=F)==null?void 0:(z=(W=M).toString)==null?void 0:z.call(W))||"",el:R.outerHTML,style:!!X,cssText:(I=X)==null?void 0:I.cssText})}}t.name==="xlink:href"&&(t.value=t.value.replace(/#(.*)/,"#$1"+D))}}};
kTT=function(D,Y,R){var Z=/url\(["']?#(.*?)["']?\)/;(R===void 0?0:R)&&(Z=/url\(["']?#(.*?)["']?\)/g);return D.replace(Z,"url(#$1"+Y+")")};
NbT=function(D,Y,R,Z){return function(t,X){var M=Object.assign({},{iconColor:"currentcolor",iconWidth:Y.size+"px",iconHeight:Y.size+"px",iconDisplay:"block"},X);X=_.I0("DIV");var W=M.iconColor,z=M.iconFilter;M="width: "+M.iconWidth+"; height: "+M.iconHeight+"; display: "+M.iconDisplay+";";z&&(M+=" filter: "+z+";");R===0&&(M+=" fill: "+W+";");R===1&&(z=Y.url,M+=" -webkit-mask: url("+z+") no-repeat center / cover; mask: url("+(z+") no-repeat center / cover; background-color: ")+W);Y.allowMirroring&&
D.appDirection==="rtl"&&(M+=" transform: scale(-1, 1); transform-origin: center center;");X.setAttribute("style",M);R===0&&Z&&X.appendChild(Z);t.appendChild(X)}};
_.J9T=function(D,Y){var R,Z,t;return _.C(function(X){R=function(M){return qy(M)};
Z=Y.url;if(!Ukb(Z))throw Error("lj");t=KhK(D,Z);return X.return(t.then(function(M){return M.clone().text()}).then(function(M){var W=R(M);
M=Y.size;var z=_.I0("DIV");_.iT(z,W);W=_.F_(z.firstElementChild!==void 0?z.firstElementChild:_.L71(z.firstChild,!0));M=bth(W,M);D.iconCache[Z]=M.cloneNode(!0);delete D.responsePromises[Z];return M}).catch(function(){}))})};
hKb=function(D){var Y,R=(Y=D.requestAninmationFrameResolver)==null?void 0:Y.promise;R||(D.requestAninmationFrameResolver=new _.Ta,R=D.requestAninmationFrameResolver.promise,_.ZU.requestAnimationFrame(function(){var Z;(Z=D.requestAninmationFrameResolver)==null||Z.resolve();D.requestAninmationFrameResolver=null}));
return R};
KhK=function(D,Y){var R,Z;return _.C(function(t){if(t.nextAddress==1)return D.waitForAnimationFrame?t.yield(hKb(D),2):t.jumpTo(2);R=D.responsePromises[Y];R||(Z=function(){var X,M,W;return _.C(function(z){switch(z.nextAddress){case 1:if(!D.cacheStorageAvailable){X=void 0;z.jumpTo(2);break}if(M=D.cacheStorageSync){z.jumpTo(3);break}return z.yield(D.cacheStorageAsync,4);case 4:M=z.yieldResult;case 3:X=M;case 2:return W=X,D.isNetworkFirstStrategy?z.return(D.fetchAndUpdateCache(Y,W).catch(D.getCacheStorageResponse.bind(D,
Y,W))):z.return(D.getCacheStorageResponse(Y,W).catch(D.fetchAndUpdateCache.bind(D,Y,W)))}})},R=D.renderWhenIdle?new Promise(function(X,M){_.Ak(_.yc,function(){Z().then(X).catch(M)},10)}):Z(),D.responsePromises[Y]=R);
return t.return(R.catch(function(X){delete D.responsePromises[Y];$4({error:(X==null?0:X.toString)?X.toString():"",url:Y});throw X;}))})};
w6.prototype.fetchAndUpdateCache=function(D,Y){var R=this;return _.C(function(Z){return Z.return(Lht(R,D).then(function(t){mkE(R,D,t,Y);return t}))})};
var Lht=function(D,Y){var R;return _.C(function(Z){if(D.numFetches<oKk)return D.numFetches+=1,Z.return(qzE(D,Y).finally(function(){--D.numFetches;if(Object.keys(D.queuedResponseResolvers).length){var t=Object.keys(D.queuedResponseResolvers)[0],X=D.queuedResponseResolvers[t];delete D.queuedResponseResolvers[t];X.resolve(Lht(D,t))}}));
R=new _.Ta;D.queuedResponseResolvers[Y]=R;return Z.return(R.promise)})},qzE=function(D,Y,R){R=R===void 0?2:R;
var Z;return _.C(function(t){Z={credentials:"same-origin",priority:"low"};return t.return(_.ZU.fetch(Y,Z).then(function(X){return X.ok?X:Promise.reject(Error("mj`"+X.status+"`"+X.statusText))}).catch(function(X){if(R>0)return qzE(D,Y,R-1);
throw X;}))})},mkE=function(D,Y,R,Z){_.C(function(t){return Z?t.return(new Promise(function(X){_.Ak(_.yc,function(){var M,W;
return _.C(function(z){switch(z.nextAddress){case 1:if(!D.isNetworkFirstStrategy){M=void 0;z.jumpTo(2);break}return z.yield(Z.match(Y).catch(function(){}),3);
case 3:M=z.yieldResult;case 2:if(W=M){z.jumpTo(4);break}return z.yield(Z.put(Y,R.clone()).catch(function(I){$4({error:(I==null?0:I.toString)?I.toString():"",url:Y})}),4);
case 4:X(),_.V9(z)}})},50)})):t.return()})};
w6.prototype.getCacheStorageResponse=function(D,Y){return _.C(function(R){return Y?R.return(Y.match(D).then(function(Z){return Z&&Z.ok?Z:Promise.reject()})):R.return(Promise.reject())})};
var bth=function(D,Y){Y===void 0||D.getAttribute("viewBox")||D.setAttribute("viewBox","0 0 "+Y+" "+Y);D.setAttribute("focusable","false");D.setAttribute("aria-hidden","true");try{D.style.pointerEvents="none",D.style.display="inherit",D.style.width="100%",D.style.height="100%"}catch(t){var R;$4({error:((R=t)==null?0:R.toString)?t.toString():""});try{D.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(X){var Z;$4({error:((Z=X)==null?0:Z.toString)?X.toString():
""})}}return D},Ukb=function(D){for(var Y=_.a(vKT),R=Y.next();!R.done;R=Y.next())if(D.startsWith(R.value)&&D.endsWith(".svg"))return!0;
return!1};
w6.prototype.resolveIcon=function(D){return this.iconSet.resolveIcon(D)};
var $4=function(D){_.Jk(new _.AT("Error in IconManager",D))},y9t=function(D){if(_.f("wil_icons_cache_purge_killswitch"))return!1;
try{var Y=_.ZU.localStorage}catch(X){return!1}if(!Y||!D.cacheStorageAvailable)return!1;var R=function(X){try{var M;(M=Y)==null||M.setItem("yt-icons-last-purged",X.toString())}catch(z){var W;$4({error:((W=z)==null?0:W.toString)?z.toString():""})}},Z=Number(Y.getItem("yt-icons-last-purged"));
if(!Z)return Z=new Date,Z=Z.setDate(Z.getDate()-Math.floor(Math.random()*90+1)),R(Z),!1;if(function(X,M){X=new Date(X);M=new Date(M);return M.getMonth()-X.getMonth()+12*(M.getFullYear()-X.getFullYear())}(Z,Date.now())<3)return!1;
try{return _.ZU.caches.delete("yt-icons").then(function(X){X&&R(Date.now());return X}).catch(function(){return!1}).finally(function(){D.isPurging=!1})}catch(X){var t;
$4({error:((t=X)==null?0:t.toString)?X.toString():""});return!1}};
w6[YS]=[LXz,_.DT,_.cD(HEV)];_.vW=function(D,Y){this.iconManager=D;this.iconsToFetch=Y};
_.vW[YS]=[_.FK,_.cD(qpz)];var Ht0=function(){};var xkt=function(D,Y,R){this.requestKey=D;this.pnX=Y;this.yHj=R;this.nSF=function(){return new XMLHttpRequest};
this.i9y=void 0;this.gqf=[]};
xkt.prototype.getLatestChallengeResponse=function(){return this.yHj};
var PmD=function(D,Y,R){var Z,t,X,M;return _.C(function(W){if(W.nextAddress==1){_.U7("attestation_challenge_fetch");_.KX("att_fs",void 0,"attestation_challenge_fetch");if(!D.i9y)throw new _.oF(9,"Missing fetcher");return W.yield(D.i9y(Y,R),2)}Z=W.yieldResult;X=(t=Z)==null?void 0:t.bgChallenge;if(!X)throw new _.oF(15,"Missing field");D.yHj=Z;D.gqf.forEach(function(z){z(Z)});
M=kO$(X);_.KX("att_fc",void 0,"attestation_challenge_fetch");s1r("attestation_challenge_fetch");return W.return(M)})},z7D=function(D,Y){var R,Z,t,X,M;
return _.C(function(W){switch(W.nextAddress){case 1:R=new a0(100,3E5,.25,2),Z=void 0;case 2:if(!(R.currBackoffCount_<10)){W.jumpTo(4);break}_.SX(W,5);if(!(R.currBackoffCount_>0)){W.jumpTo(7);break}return W.yield(LAo(R.getValue()),7);case 7:return W.yield(Pk9(D,Y),9);case 9:return t=W.yieldResult,W.return(t);case 5:X=_.Gl(W);X instanceof _.oF?Z=X:(M=X instanceof Error?X.message:"Unknown",Z=new _.oF(9,M));Dc_(R);W.jumpTo(2);break;case 4:if(Z)throw Z;throw new _.oF(9,"Unknown error");}})},Pk9=function(D,
Y){Y=l7z(JZz(new NXb,Y),D.requestKey);
var R=new _.Ta,Z=D.nSF();Z.open("POST",D.pnX);Z.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Z.setRequestHeader("Content-Type","application/json+protobuf");Z.onload=function(){if(_.kAr(Z)){var t=HGL(Z.responseText);R.resolve(t)}else R.reject(new _.oF(_.gs5(_.an(Z)),Z.statusText))};
Z.onerror=function(){R.reject(new _.oF(_.gs5(_.an(Z)),Z.statusText))};
Z.send(Y.serialize());return R.promise};var BbE=function(D){this.networkStatusManager=D;this.isDownloaded=m5U===void 0?function(){return!1}:m5U;
this.isReady=!1;this.zfb=Q9T(this)},Q9T=function(D){var Y;
return _.C(function(R){if(R.nextAddress==1)return R.yield(osS(),2);if(R.nextAddress!=3)return Y=R.yieldResult,R.yield(Z$1(Y),3);D.di=R.yieldResult;qli(D.di).then(function(){D.isReady=!0});
return R.return(D.di)})},puI=function(D,Y,R){D.di?(D=D.di.skz({lp:R,
oPq:!0,f4C:!0}),Y.serviceIntegrityDimensions={poToken:D}):_.Nb(Error("oj"))};
BbE.prototype.processContext=function(D){var Y=this;if(!D.input.match(_.YI(dDE)))return _.O_();var R=D.innerTubeRequest,Z=R.videoId;return!Z||this.isDownloaded(R)||this.networkStatusManager&&!this.di&&!this.networkStatusManager.isNetworkAvailable()?_.O_():this.di?this.isReady?(puI(this,R,Z),_.O_()):new iS(qli(this.di).then(function(){puI(Y,R,Z)})):new iS(this.zfb.then(function(t){return _.C(function(X){if(X.nextAddress==1)return X.yield(qli(t),2);
puI(Y,R,Z);_.V9(X)})}))};var EK9=new _.R6("WEB_PO_CONTEXT_PROCESSOR");var gKt=function(D,Y){var R=this;this.y1f=0;var Z;this.s9k=(Z=Y==null?void 0:Y.s9k)!=null?Z:window;this.networkStatusManagerPromise=Y==null?void 0:Y.networkStatusManagerPromise;var t;this.requestKey=(t=Y==null?void 0:Y.requestKey)!=null?t:_.XW("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var X;this.s4N=(X=Y==null?void 0:Y.s4N)!=null?X:function(z){return new Uk(z)};
var M;Z=(M=Y==null?void 0:Y.enb)!=null?M:function(z,I,F){return new xkt(z,I,F)};
this.bgChallenge=kO$(D.bgChallenge);this.ttlSeconds=Udl(gK(D.challenge||""));this.cu=Z(this.requestKey,_.f("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.ZU.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",D);mMS(this.cu);var W;this.hPx=(W=Y==null?void 0:Y.hPx)!=null?W:function(z){_.yu(R.s9k.document,"visibilitychange",function(){R.s9k.document.visibilityState===
"visible"&&z()})}},itk=function(D){if(!D.vm){var Y={maxAttempts:5,
sDl:D.ttlSeconds*1E3};HUS(D.s9k);D.vm=D.s4N({cu:D.cu,gl6:{disable:_.f("html5_web_po_disable_remote_logging"),yz:"aGIf",fal:bXM("html5_web_po_experiment_ids"),w8q:_.f("wpo_dis_lfdms")?0:1E3,rbh:function(Z){var t=d6z.get(Z);t||(t=new gob(Z),t=new z_(t),d6z.set(Z,t));return t}},
a77:Y,iYm:D.bgChallenge,jk2:xMb});D.y1f=Date.now();LJY(D.vm,function(){D.y1f=Date.now()});
l1n(D.vm,function(){return _.C(function(Z){return Z.return(dkt(D))})});
var R=D.yHJ.bind(D);D.networkStatusManagerPromise&&D.ttlSeconds>0&&D.networkStatusManagerPromise.then(function(Z){Z.listen("publicytnetworkstatus-online",R)});
D.hPx(R)}};
gKt.prototype.yHJ=function(){if(Date.now()>this.y1f+this.ttlSeconds*1E3){var D;(D=this.vm)==null||h3V(D)}};
var dkt=function(D){if(D.iCj)return D.iCj;if(!D.vm)throw Error("pj");D.iCj=new mP({vm:D.vm,cu:D.cu,o4Q:!0,onError:xMb});return D.iCj},QMb=function(D,Y){D=new gKt(D,Y);
itk(D);dkt(D)};var oq=function(D,Y){this.store=D;this.queue=[];Y==null||Y.addEventListener("yt-navigate-start",this.reset.bind(this))};
oq.prototype.enqueue=function(D){var Y=D.command,R=D.durationMs,Z=D.elementToFocus;var t=D.label;var X=D.elementToFocus;D.command?t=_.fX("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:t,shortcut:_.fX("SHIFT_PLUS_ENTER")}):X&&(D=t+". "+_.fX("SHIFT_PLUS_ENTER")+" for more information.",t=_.fX("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:t,shortcut:_.fX("SHIFT_PLUS_ENTER")},D));R={announcement:t,durationMs:R!=null?R:8E3};Y?R.command=Y:Z&&(Z.classList.add("ephemeral-action-focusable-element"),R.selector=Z.tagName+
".ephemeral-action-focusable-element");this.queue.push(R);Otk(this)};
oq.prototype.activate=function(D){var Y=_.DMr(this.store.getState());if(Y){if(Y==null?0:Y.command)_.xC(Y.command),this.store.dispatch(Q21(null));if(Y==null?0:Y.selector)Y=document.querySelector(Y.selector),_.EwU(Y);D.preventDefault()}};
var Otk=function(D){if(!_.DMr(D.store.getState())&&D.queue.length){var Y=D.queue.shift();Y&&(D.previousAnnouncement===Y.announcement&&(Y.announcement+="\u00a0"),D.store.dispatch(Q21(Y)),D.previousAnnouncement=Y.announcement,D.timeoutId=setTimeout(function(){if(Y.selector){var R;(R=document.querySelector(Y.selector))==null||R.classList.remove("ephemeral-action-focusable-element")}D.store.dispatch(Q21(null));Otk(D)},Y.durationMs))}};
oq.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Q21(null));this.queue.length=0;this.timeoutId=void 0};
oq[YS]=[_.xZ,_.cD(_.o8)];_.bO=new _.R6("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var c9K=window.AbortController||tIL;var Dy9=new _.R6("AUTH_SERVICE_TOKEN");var EHi=_.gY(["about:blank"]),p$b;var yq=new _.R6("API_IFRAME_TOKEN"),YNu=new _.R6("FETCH_FN_TOKEN"),RE9=new _.R6("PARSE_FN_TOKEN"),Z$9=new _.R6("WINDOW_REQUEST_TOKEN"),tfk=new _.R6("TEXT_DECODER_TOKEN");var PgU;PgU=new _.R6("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.sJE=new _.R6("MISC_UI_SHARED_FLAGS_TOKEN");var XZk=function(){};
XZk.prototype.getFlag=function(D){if(D.configType!==2)throw Error("qj");return uB9(D)};
var uB9=function(D){switch(D.flagType){case "bool":return _.f(D.flagName);case "int":return _.J1(_.ZH(D.flagName));case "double":return _.ZH(D.flagName);case "string":return _.XW(D.flagName);case "int32_list":return bXM(D.flagName);case "int64_list":return bXM(D.flagName).map(function(Y){return _.J1(Y)});
case "string_list":return _.ux(D.flagName);default:throw Error("rj");}};var NO=function(D,Y,R){Y=Y===void 0?{}:Y;UF.call(this,R===void 0?"uninitialized":R);this.env=D;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}];Y.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=Y.shouldWaitOnAsyncImmediate)};
_.n(NO,UF);NO.prototype.init=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Y.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(D(Y.env),2):(D(Y.env),Z.jumpTo(2));if(Z.nextAddress!=4)return Y.jobSet?Z.yield(Y.jobSet.completedResolver.promise,4):Z.jumpTo(4);R=_.Q0();R.parkOrScheduleJob(function(){Y.transition("rendering")},10,"ci");
_.V9(Z)})};
NO.prototype.initialRender=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Y.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(D(Y.env),2):(D(Y.env),Z.jumpTo(2));if(Z.nextAddress!=4)return Y.jobSet?Z.yield(Y.jobSet.completedResolver.promise,4):Z.jumpTo(4);R=_.Q0();R.parkOrScheduleJob(function(){Y.transition("rendered")},10,"cr");
_.V9(Z)})};
NO.prototype.afterRenderImmediate=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Y.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(D(Y.env),2):(D(Y.env),Z.jumpTo(2));if(Z.nextAddress!=4)return Y.jobSet?Z.yield(Y.jobSet.completedResolver.promise,4):Z.jumpTo(4);R=_.Q0();R.parkOrScheduleJob(function(){Y.transition("after-render-deferred")},10,"carml");
_.V9(Z)})};
NO.prototype.afterRenderDeferred=function(D){var Y=this;return _.C(function(R){D(Y.env);_.V9(R)})};var aGp;_.l1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});aGp={};_.Mfk=(aGp.CSI=Y8n(),aGp.ECATCHER=Dtl(),aGp);var CTz={},WS9=(CTz.rendered={priority:0,callback:function(D){oMb(D.injector.resolve(nI))}},CTz);var pqM=new _.R6("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),zET=new _.R6("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var SNk=function(D){this.callbackFnMap=D;this.configMap={}};
SNk.prototype.handleResponse=function(D){var Y;if(D=(Y=D.responseContext)==null?void 0:Y.serviceTrackingParams)for(Y=_.a(D),D=Y.next();!D.done;D=Y.next()){D=D.value;var R=D.params,Z=D.service;if(R&&Z){this.configMap[Z]||(this.configMap[Z]=new nvE);D=this.configMap[Z];var t=void 0,X=(t=this.callbackFnMap)==null?void 0:t[Z];R=_.a(R);for(Z=R.next();!Z.done;Z=R.next())t=Z.value,Z=t.key,t=t.value,Z&&t&&(D.set(Z,t),X&&X(Z,t))}}};
SNk[YS]=[_.cD(zET)];var Tg9=!1,XR5=0,RBU=null,s_n=null;var jJu=new _.R6("NETWORK_SLI_TOKEN");var IGz=function(D,Y,R,Z,t){this.networkSli=D;this.fetchFn=Y;this.parseFn=R;this.requestFn=Z;this.JSC$18383_textDecoder=t};
IGz.prototype.fetch=function(D,Y,R){var Z=this,t,X,M;return _.C(function(W){t=FSK(Z,D,Y);M=(X=Z.fetchFn)!=null?X:fetch;return W.return(M(t).then(function(z){return Z.handleResponse(z,R)}).catch(function(z){_.Jk(z);
if((R==null?0:R.expectJsonStrict)&&z instanceof wt&&z.errorType===1)return Promise.reject(z)}))})};
var cy4=function(D,Y,R,Z){var t,X,M,W,z,I,F;return _.C(function(G){switch(G.nextAddress){case 1:return t=FSK(D,Y,R),_.SX(G,2),G.yield(fetch(t),4);case 4:X=G.yieldResult;_.xw(G,3);break;case 2:throw _.Gl(G),new wt(2,"Failed to parse streaming response",t.url);case 3:if(!X.redirected&&!X.ok)throw(M=D.networkSli)==null||M.failure(),new _.AT("Streaming fetch request not ok",t.url);if(!X.body)throw new _.AT("No response body in streaming response",t.url);W={};if(_.f("web_streaming_fast"))return z=X.body.getReader(),
G.return(GoK(D,z,W,Z));I=X.body.pipeThrough(new TextDecoderStream).getReader();F=new _.a1;return G.return(Vf9(D,I,F,STr,W,Z))}})},FSK=function(D,Y,R){if(D.networkSli){var Z=_.zZ(_.Zi(Y,"key"))||"/UNKNOWN_PATH";
D.networkSli.start(Z)}Z=R;_.f("wug_networking_gzip_request")&&(Z=HrU(R));var t;return new ((t=D.requestFn)!=null?t:window.Request)(Y,Z)},GoK=function(D,Y,R,Z){var t,X,M,W,z,I,F,G,V,e,r;
return _.C(function(l){switch(l.nextAddress){case 1:t=D.JSC$18383_textDecoder?new D.JSC$18383_textDecoder("utf-8"):new TextDecoder("utf-8"),X="",M=function(U){U=U.trim();U.length!==0&&U!=="]"&&U!=="["?(U.startsWith("[")&&(U=U.substring(1)),U.endsWith("]")&&(U=U.slice(0,-1)),U.endsWith(",")&&(U=U.slice(0,-1)),U=U.trim()):U=void 0;if(U)try{var K=JSON.parse(U);STr(R,K);Z==null||Z(R,K)}catch(H){throw new wt(1,"Failed to parse streaming response",U);}},_.SX(l,2,3);
case 5:return l.yield(Y.read(),8);case 8:W=l.yieldResult;z=W.value;if(I=W.done)return X.length>0&&M(X),F=void 0,(F=D.networkSli)==null||F.success(),l.return(R);X+=t.decode(z,{stream:!0});G=X.split("\n");X=G.pop()||"";V=_.a(G);for(e=V.next();!e.done;e=V.next())r=e.value,M(r);l.jumpTo(5);break;case 3:_.jX(l);Y.releaseLock();_.Fx(l,0);break;case 2:throw _.Gl(l),new wt(1,"Failed to parse streaming response");}})},Vf9=function(D,Y,R,Z,t,X){var M,W,z,I,F,G,V,e,r;
return _.C(function(l){if(l.nextAddress==1)return l.yield(Y.read(),2);M=l.yieldResult;W=M.value;if(z=M.done)return(I=D.networkSli)==null||I.success(),l.return(t);try{F=R.parse(W)}catch(U){throw new wt(1,"Failed to parse streaming response",W);}if(F!=null)for(G=_.a(F),V=G.next();!V.done;V=G.next())e=V.value,Z(t,e),r=void 0,(r=X)==null||r(t,e);return l.return(Vf9(D,Y,R,Z,t,X))})};
IGz.prototype.handleResponse=function(D,Y){var R,Z=(R=this.parseFn)!=null?R:JSON.parse;R=D.text().then(function(t){if((Y==null?0:Y.jspbResponseCtor)&&D.ok)return LSU(Y.jspbResponseCtor,t);t=t.replace(")]}'","");if((Y==null?0:Y.expectJsonStrict)&&t)try{var X=Z(t)}catch(W){throw new wt(1,"JSON parsing failed after fetch");}var M;return(M=X)!=null?M:Z(t)});
D.redirected||D.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),R=R.then(function(t){_.Jk(new _.AT("Error: API fetch failed",D.status,D.url,t));return Object.assign({},t,{errorMetadata:{status:D.status}})}));
return R};
IGz[YS]=[_.cD(jJu),_.cD(YNu),_.cD(RE9),_.cD(Z$9),_.cD(tfk)];var fGh=new _.R6("NETWORK_MANAGER_TOKEN");var eEk=[1,2,4,8,16,30],n7h=function(D){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=D.maxTimeMs;this.maxFrameCount=D.maxFrameCount===void 0?Math.ceil(60*D.maxTimeMs/1E3):D.maxFrameCount;D=_.a(eEk);for(var Y=D.next();!Y.done;Y=D.next())this.brokenFrameSummarizers.push(new Afh(Y.value/60*1E3))},rfk=function(D){var Y=D.frameCountInternal>=D.maxFrameCount;
return D.elapsedTimeMs>=D.maxTimeMs||Y};
n7h.prototype.summarize=function(){for(var D=[],Y=_.a(this.brokenFrameSummarizers),R=Y.next();!R.done;R=Y.next())R=R.value,R=R.brokenFrameCount!==0?{severityMs:Math.round(R.targetFrameTimeMs),eventCount:R.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(R.averageDurationBetweenEventsMs)}:void 0,R&&D.push(R);return{summaries:D,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.YF.Object.defineProperties(n7h.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 Afh=function(D){this.targetFrameTimeMs=D;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.YF.Object.defineProperties(Afh.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var wZ9=function(){};
wZ9.prototype.start=function(D,Y){var R=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Z=new n7h({maxTimeMs:D});this.monitor=Z;this.lastSummaryInternal=void 0;this.metadataToLog=Y;return new Promise(function(t){var X=function(M){if(M===void 0)R.stop(),t(void 0);else if(R.monitor!==Z)M=Object.assign({},Z.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),t(M);else{var W=R.monitor;if(!rfk(W)){W.frameCountInternal++;if(W.prevTime===
void 0)W.startTime=M;else for(var z=M-W.prevTime,I=_.a(W.brokenFrameSummarizers),F=I.next();!F.done;F=I.next()){F=F.value;var G=F.currTimeMs;F.currTimeMs+=z;z>F.targetFrameTimeMs+2&&(F.brokenFrameCount++,F.timeOfFirstBrokenFrameMs===void 0&&(F.timeOfFirstBrokenFrameMs=G),F.timeOfLastBrokenFrameMs=G)}W.prevTime=M}rfk(R.monitor)?t(R.stop()):_.yc.addJob(X,5,0)}};
_.yc.addJob(X,5,0)})};
wZ9.prototype.stop=function(D){if(!this.monitor)return this.lastSummaryInternal;var Y=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(Y.monitoringDurationMs){D=D!=null?D:this.metadataToLog;var R={droppedFramesSummary:Y,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};D&&(R[D.type]=D.data);_.bo("manualSmoothnessMeasurement",R)}this.monitor=void 0;this.lastSummaryInternal=Y;this.metadataToLog=void 0;return Y};_.$yh=new _.R6("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var v70;v70=function(D){this.JSC$18406_expiringStorage=new rP(D)};
_.o7E=function(D){if(_.u7M()&&(D=_.GLM(_.fv()+"::"+D)))return new v70(D)};
v70.prototype.set=function(D,Y,R){R=R!==void 0?Date.now()+R:void 0;this.JSC$18406_expiringStorage.set(D,Y,R)};
v70.prototype.get=function(D){return this.JSC$18406_expiringStorage.get(D)};
v70.prototype.remove=function(D){this.JSC$18406_expiringStorage.remove(D)};var b$9=new _.R6("SESSION_STORAGE");_.lO=function(){};
_.lO.getInstance=function(){var D=_.mf("ytglobal.storage_");D||(D=new _.lO,_.ix("ytglobal.storage_",D));return D};
_.lO.prototype.estimate=function(){var D,Y,R;return _.C(function(Z){D=navigator;return((Y=D.storage)==null?0:Y.estimate)?Z.return(D.storage.estimate()):((R=D.webkitTemporaryStorage)==null?0:R.queryUsageAndQuota)?Z.return(a0y()):Z.return()})};
_.ix("ytglobal.storageClass_",_.lO);var nTy=!!(Rc[1]>>14&1);var j_b=0;var ABU=!1;var yft=_.gY(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Ngz=_.gY(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var U$0={"/":_.nN,"/?feature=ytca":_.nN,"/feed/downloads":_.hzU};var j3=function(D,Y,R){this.JSC$18422_upliftPromise=D;this.store=Y;this.JSC$18422_persistentStorePromiseAccessor=R};
j3.prototype.shouldPreferLocalResponse=function(D){return D.browseId==="FEdownloads"||D.browseId==="FEsmart_downloads"&&_.f("kevlar_modern_downloads_page")?!0:!1};
j3.prototype.localInnertubeResponse=function(D){var Y=this;return _.C(function(R){return D.browseId==="FEdownloads"?_.f("kevlar_modern_downloads_page")?R.return(lGz(Y)):R.return(JfT(Y)):D.browseId==="FEsmart_downloads"&&_.f("kevlar_modern_downloads_page")?R.return(kob(Y)):R.return(Promise.reject(Error("tj")))})};
j3.prototype.canProvideFallbackResponse=function(){return!0};
j3.prototype.localFallbackInnertubeResponse=function(D){var Y=this,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return X.yield(Y.JSC$18422_persistentStorePromiseAccessor(),2);case 2:R=X.yieldResult;if(D.browseId!=="SPaccount_downloads"||!R){X.jumpTo(3);break}return X.yield(Lx$(R),4);case 4:if(Z=X.yieldResult)return X.return(_.tn(Z));case 3:return D.browseId==="FEwhat_to_watch"?X.return(UyT(Y)):(t=_.f("web_offline_continuation_automatic_retry")||_.f("web_offline_continuation_retry_button"))&&
D.continuation?X.return(KSp(Y)):X.return(hEh(Y))}})};
var UyT=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$18422_upliftPromise,2);Y=_.$89(D.store.getState().entities);return Y.length?R.return(LSp(D,Y)):R.return(hEh(D))})},JfT=function(D){var Y,R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$18422_upliftPromise,2);if(Z.nextAddress!=3)return Y=myK([{offlineItemSectionRenderer:{}}]),Z.yield(qNu(D,Y),3);R=Z.yieldResult;R.onResponseReceivedActions=[f9("REFRESH_DOWNLOADS")];return Z.return(R)})},lGz=function(D){var Y,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U;
return _.C(function(K){if(K.nextAddress==1)return K.yield(D.JSC$18422_upliftPromise,2);if(K.nextAddress!=3)return Y=D.store.getState(),R=Y.entities,Z=_.Nw(R),t=_.l0(R),X=_.t8i(Y),M=_.Zcr(Y),W=_.s8r(Y),z=_.bNb(R),I=_.wL(Z),F=_.Ju(R),G=_.JG9(R),V=_.uJr(Y),e=_.Lh(Y),r={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.cC5(Z,t,z,G,X,M,I,F,W,V,e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},l="",_.f("kevlar_modern_downloads_skip_downloads_title")||
(l=_.fX("DOWNLOADS",void 0,"Downloads")),K.yield(H$E(D,r,l),3);U=K.yieldResult;U.onResponseReceivedActions=[f9("REFRESH_DOWNLOADS")];return K.return(U)})},kob=function(D){var Y,R,Z,t,X,M,W,z,I;
return _.C(function(F){if(F.nextAddress==1)return F.yield(D.JSC$18422_upliftPromise,2);if(F.nextAddress!=3)return Y=D.store.getState(),R=Y.entities,Z=_.Nw(R),t=_.wL(Z),X=_.Ju(R),M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Yjo(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},W=_.fX("SMART_DOWNLOADS",void 0,"Smart downloads"),z=iQn(t,X),F.yield(H$E(D,M,W,z),3);I=F.yieldResult;I.onResponseReceivedActions=
[f9("REFRESH_DOWNLOADS")];return F.return(I)})},hEh=function(D){var Y,R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(ZF(D.JSC$18422_upliftPromise,D.store),2);Y=Z.yieldResult;R=myK([k4n(Y)]);return Z.return(qNu(D,R))})},KSp=function(D){var Y,R,Z,t;
return _.C(function(X){if(X.nextAddress==1)return Y={},R=D.store.getState().continuation.continuationCommand,_.U4(Y,_.PN,R),X.yield(ZF(D.JSC$18422_upliftPromise,D.store,Y,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Z=X.yieldResult;t={};_.U4(t,_.rlE,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Z}}}],targetId:"browse-feedFEwhat_to_watch"});return X.return({responseContext:{},onResponseReceivedActions:[t]})})},myK=function(D){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:D}}}}]}}},LSp=function(D,Y){var R,Z;
return _.C(function(t){var X={contents:eV(Y)};R=X&&X.contents?X:{};_.f("kevlar_modern_downloads_page")&&(R=Object.assign({},_.RPS(Y),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:R}}}]}};return t.return(qNu(D,Z))})},qNu=function(D,Y){var R,Z;
return _.C(function(t){if(t.nextAddress==1)return t.yield(D.JSC$18422_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return R=t.yieldResult,t.yield(sR(R),3);Z=t.yieldResult;return t.return({responseContext:{},contents:Y,topbar:Z})})},H$E=function(D,Y,R,Z){var t,X;
return _.C(function(M){if(M.nextAddress==1)return M.yield(D.JSC$18422_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return t=M.yieldResult,M.yield(sR(t),3);X=M.yieldResult;var W=M.return;var z=R;var I=Z;z=z===void 0?"":z;I=I===void 0?"":I;z={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:z}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.fX("SETTINGS",void 0,"Settings"),accessibilityText:_.fX("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:_.Rk("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:I}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:z};
return W.call(M,{responseContext:{},contents:Y,topbar:X,header:{pageHeaderRenderer:z}})})};var xy9=function(){this.moduleRegistry={};this.fetchCount=0};
xy9.prototype.isFetching=function(){return this.fetchCount>0};
var qi=function(D,Y){D.moduleRegistry[Y.toString()]={asyncId:Y,isFetching:!1};return D};
xy9.prototype.JSC$18433_loadModules=function(){for(var D=this,Y=new Map,R=[],Z=_.a(_.UN.apply(0,arguments)),t=Z.next();!t.done;t=Z.next()){t=t.value;var X=this.moduleRegistry[t];X?X.resolver?Y.set(t,X.resolver):(X.resolver=new _.Ta,Y.set(t,X.resolver),R.push(X.asyncId),X.isFetching=!0):(X=new _.Ta,Y.set(t,X),X.resolve(void 0))}R.length&&(this.fetchCount+=1,_.$B(_.z5.getMultipleAsync.apply(_.z5,_.oK(R)).then(function(M){for(var W=0;W<R.length;W++){var z=M[W],I=D.moduleRegistry[R[W].toString()];I.isFetching=
!1;I.resolver.resolve(z)}}).catch(function(M){for(var W=_.a(R),z=W.next();!z.done;z=W.next()){z=z.value;
var I=D.moduleRegistry[z.toString()];I.resolver=void 0;I.isFetching=!1;Y.get(z.toString()).reject(M)}}),function(){--D.fetchCount}));
return Promise.all([].concat(_.oK(Y.values())).map(function(M){return M.promise}))};_.Hf=new _.R6("MODULE_REGISTRY_TOKEN");var PTk={},QJz=(PTk.rendered={priority:0,callback:function(D){a:{var Y=void 0;try{var R;b:{if(_.uC5()){var Z=_.FWo(_.fv()+"::pom");if(Z){var t=new Nx(Z);break b}}t=void 0}var X=(R=t)==null?void 0:R.get("role_text");if(!X)break a;Y={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:X}]}}}}}}catch(z){}Y&&D.injector.resolve(_.Yw).resolveCommand(Y)}try{var M=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(M){var W=JSON.parse(M);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
W&&D.injector.resolve(_.Yw).resolveCommand(W)}}catch(z){}}},PTk);var Bgb,pZz={},E79=(pZz.initialized={priority:10,callback:function(){Bgb=rY()}},pZz.rendering={callback:function(D){var Y;
return _.C(function(R){if(R.nextAddress==1)return R.yield(Bgb,2);Y=R.yieldResult;if(!Y.endpoint)throw Error("vj`"+_.ZU.location.href);Ni(D,Y);_.V9(R)})}},pZz);var g7k={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.oK(_.f("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}]),callbackWeights:[{callback:function(D){var Y=D.stack;if(Y.includes("chrome://")||Y.includes("chrome-extension://")||D.message.includes("chrome-extension://")||Y.includes("moz-extension://")||Y.includes("local.adguard.org")||Y.includes("auctioneer3.50million.club")||Y.includes("youtubedownloader")||Y.includes("youtube_home_page")||Y.includes("is_youtube_video_no_longer_available")||
Y.includes("switchScreenSizeHack")||Y.includes("yt_main_big_banner.js")||Y.includes("YouTubeCenter.js")||Y.includes("/mytube.js")||Y.includes("JSON.parseWrapper")||Y.includes("/inj_js/common.js")||Y.includes("firebug-lite")||Y.includes(".repl.co/")||Y.includes("linkfix")||Y.includes("playAfterAd")||D.message.includes("Access is denied for this document")&&Y.includes("<anonymous>")||D.fileName==="user-script"||D.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
Y.includes("<anonymous>"))return!0;if(Y.includes("https://www.youtube.com"))return!1;D=Y.split("\n");if(!D.length)return!1;if(D.length<=3&&Y.includes("s.onloadeddata"))return!0;Y=0;for(var R=_.a(D),Z=R.next();!Z.done;Z=R.next())Z=Z.value,(Z.includes("https://")||Z.includes("http://"))&&Y++;return Y/D.length>.95},
weight:0},{callback:function(D){return D.message==="Unknown Error"&&D.name.indexOf("NS_")===0},
weight:100},{callback:function(D){if(!_.Cw)return!1;var Y=D.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||D.message.includes("available to complete this operation"),R=D.stack.includes("webcomponents")&&D.message==="Object doesn't support this action";D=D.message.includes("object that does not implement interface Element");return Y||R||D},
weight:0},{callback:function(D){return D.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(D){return D.message==="Operation is not supported"&&(D.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(D){return D.stack.includes("eval code (eval (code:1:1)")||D.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(D){return D.message.includes("Permission denied")&&D.stack.includes("this.domHandler")?!0:D.name.includes("TypeError")&&D.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(D){if(!D.stack)return!1;var Y=D.stack.trim().split("\n");Y.length&&Y[0].endsWith("Error: "+D.message)&&Y.shift();Y.length&&Y[Y.length-1].includes("at window.onerror (")&&Y.pop();if(!Y.length)return!0;if(D.message==="Script error.")return Y[0].includes("www.youtube.com")||Y.length>=2&&Y[0].startsWith("at new")&&Y[1].startsWith("at window.onerror");if(D.message==="Unexpected token")return!0;D=_.a(Y);for(Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,!(Y.includes("<anonymous>")||
Y.startsWith("load@")||Y.startsWith("global code@")||Y.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(D){return D.message==="Cannot read property 'experiments'"&&D.stack.includes("/s/player/")},
weight:500},{callback:function(D){return D.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(D){return D.stack.includes("/embed.js")?(D.params&&D.params&&(D.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.f("use_error_suppression"))var D=_.JQ("SUPPRESS_CLIENT_ERRORS",!1);else{if(D=_.js)D=/Chrome\/(\d+)/.exec(_.Il()),D=(D?parseFloat(D[1]):NaN)>=66;D=!(D||_.TX&&_.Ss(65)||_.UK&&_.Ss(12.1)||gP&&_.Ss(79))}return D},
weight:500}]};var dyk={},i$h=(dyk.initialized={priority:10,callback:function(D){D.injector.addProvider({provide:pWY,useValue:D.root});D.injector.addProvider({provide:$UK,useValue:zFS});D.injector.addProvider({provide:vEE,useValue:g7k});var Y={};D.injector.addProvider((Y.provide=oE9,Y.useFactory=function(R,Z){return function(){cDy(R,Z)}},Y[YS]=[$UK,
vEE],Y));D.injector.addProvider({provide:V$,useClass:V$})}},dyk);var O$k={},cf9=(O$k.initialized={priority:3,callback:function(){var D;if(D=C09()){D=D.replace("/",".");var Y=_.nX();Y.set("tz",D);Y.save();D=!0}else D=!1;D||(D=_.nX(),D.set("utco",-Math.floor((new Date).getTimezoneOffset())),D.save())}},O$k);var Dcp={},Yxb=(Dcp.initialized={priority:10,callback:function(D){D.injector.resolve(V$).start();D=_.E$();var Y=_.ks("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.ks("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.ks("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.ks("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Wf(_.UFi(),{mainAppWeb:Object.assign({},D,{pageType:Y})});_.Wf(hA$(),{mainAppWeb:Object.assign({},D,{pageType:Y})});
_.Wf(Lvj(),{mainAppWeb:D});_.Wf(mFr(),{mainAppWeb:D});mbY(function(){_.z3(Lvj(),"FAILURE");_.z3(mFr(),"FAILURE")});
LDo();mt9();iVn()}},Dcp);var RS9={},ZjE=(RS9.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.KX("dl"),_.Q0().processSignal("pcl");else{var D=function(){_.KX("dl");_.Q0().processSignal("pcl");window.removeEventListener("load",D)};
window.addEventListener("load",D)}}},RS9);var tX0={},sK9=(tX0.rendering={priority:0,callback:function(){var D=_.Q0();D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor",5E3)}},tX0);var Xhh=function(){};
_.n(Xhh,q6);
Xhh.prototype.resolveCommand=function(D,Y){var R,Z,t,X,M,W,z,I;return _.C(function(F){t=(R=_.A(D,_.ISE))==null?void 0:(Z=R.dialog)==null?void 0:Z.commentReplyDialogRenderer;if(!t)throw new _.AT("No dialog in createCommentReplyDialogEndpoint");M=(X=Y.form)==null?void 0:X.event;if(!M)throw new _.AT("Event not passed in when resolving command");W=_.a(M.composedPath());for(z=W.next();!z.done;z=W.next())if(I=z.value,I.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||I.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return I.showReplyDialog(t),F.return();
_.V9(F)})};var JA=function(D){this.pageRequestService=D;this.JSC$18448_prefetchCoordinator=SLI()};
_.n(JA,q6);JA.prototype.resolveCommand=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1){R=_.A(D,dKE);if((Z=R)==null||!Z.taskId)throw Error("wj");t=R.taskId;_.SX(M,2);return M.yield(_.Evz(Y.pageRequestService,D,{},"").then(function(W){if(!W)throw Error("xj");},function(W){throw Error("yj`"+W);
}),4)}if(M.nextAddress!=2)return I_z(Y.JSC$18448_prefetchCoordinator,t),_.xw(M,0);
X=_.Gl(M);WW(Y.JSC$18448_prefetchCoordinator,t,X);_.V9(M)})};
JA[YS]=[no];var k4=function(D){this.innertubeTransportService=D};
_.n(k4,q6);k4.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){R=_.A(D,EGz);if(R.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||R.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Z=R.boolValue?2:1,_.tG.getInstance().setState(Z,!0,!0);return t.yield(_.d1(Y.innertubeTransportService,D),0)})};
k4[YS]=[_.h6];var UZ=function(D){this.innertubeTransportService=D};
_.n(UZ,q6);UZ.prototype.resolveCommand=function(D){var Y=this,R,Z;return _.C(function(t){R=_.A(D,Ivb);if(!R)return t.return();Z=[];R.contentCommand&&Z.push(_.d1(Y.innertubeTransportService,R.contentCommand));R.watchCommand&&Z.push(_.d1(Y.innertubeTransportService,R.watchCommand));return t.yield(Promise.all(Z),0)})};
UZ[YS]=[_.h6];var KY={},ux9=(KY.addToPlaylistEndpoint=Yx(UE),KY.addToToastAction=Yx(mZ),KY.adsControlFlowOpportunityReceivedCommand=Yx(FX),KY.audioTrackSelectActionCommand=Yx(C9k),KY.backgroundAudioPlaybackCommand=Yx(iV),KY.captionLanguageSelectActionCommand=Yx(OE),KY.captionPickerEndpoint=Yx(cc),KY.changeMiniAppPlayStateCommand=Yx(Km),KY.changeTimelyActionVisibilityCommand=Yx(Ld),KY.channelCreationFormEndpoint=Yx(bV),KY.clearLocationCommand=Yx(kR),KY.clearUrlParamCommand=Yx(hy),KY.copyLinkCommand=Yx(si),KY.copyTextEndpoint=
Yx(fm),KY.createCommentReplyDialogEndpoint=HJo(Xhh),KY.createPlaylistServiceEndpoint=Yx(XH),KY.dismissDialogEndpoint=Yx(mK),KY.dismissPlayerOverlayCommand=Yx(DE),KY.entityUpdateCommand=Yx(Ay),KY.feedbackEndpoint=Yx(ww),KY.getAnswerCommand=Yx(ejz),KY.getPaymentsClientTokenCommand=Yx(xz),KY.getTranscriptEndpoint=Yx(qo),KY.googlePaymentBillingCommand=Yx(Pa),KY.googlePaymentPurchaseManagerCommand=Yx(Qe),KY.hideEngagementPanelEndpoint=Yx(q4),KY.hideSnackbarCommand=Yx(No),KY.insertRichSectionCommand=Yx(N4),
KY.learningJourneyCanvasCommand=Yx(UZ),KY.listMutationCommand=Yx(lV),KY.logGtmCommand=Yx(yo),KY.notifyDropdownOptionSelectedCommand=Yx(Lm),KY.openAdAllowlistInstructionCommand=Yx(_.G0),KY.openOnePickAddVideoModalCommand=Yx(ue),KY.persistSubscriptionsDisplayPreferencesCommand=Yx(ST),KY.pingingEndpoint=Yx(Vo),KY.playlistEditEndpoint=Yx(Mo),KY.playlistVotingRefreshPopupCommand=Yx(Cd),KY.profileCardCommand=Yx(IV),KY.refreshPanelEndpoint=Yx(Hc),KY.saveImageToDeviceEndpoint=Yx(ec),KY.scrollToSectionEndpoint=
HJo(ASk),KY.seekToVideoTimestampCommand=Yx(Yz),KY.selectCountryCommand=Yx(TH),KY.setCookieCommand=Yx(jT),KY.setLocalStorageCommand=Yx(Jg),KY.setPrefStorageEntryCommand=Yx(FH),KY.setSettingEndpoint=Yx(k4),KY.sfvAudioItemPlaybackCommand=Yx(RS),KY.shareImageCommand=Yx(GH),KY.sharingProviderDataCommand=Yx(Ve),KY.showAudioTrackPickerActionCommand=Yx(VbE),KY.showCaptionLanguageSelectActionCommand=Yx(ZE),KY.showDialogCommand=Yx(Qo),KY.showEngagementPanelEndpoint=Yx(pm),KY.showSheetCommand=Yx(EE),KY.showSnackbarCommand=
Yx(le),KY.showTransientPlayerScrimOverlayCommand=Yx(tg),KY.submitFormWithValidationFlowCommand=Yx(oV),KY.talkToRecsDeselectCommand=Yx(kz),KY.talkToRecsNextCommand=Yx(Ui),KY.talkToRecsSelectCommand=Yx(Kd),KY.talkToRecsUpdateTextCommand=Yx(hg),KY.toggleEngagementPanelCommand=Yx(gw),KY.undoFeedbackEndpoint=Yx(vc),KY.updateEngagementPanelContentCommand=Yx(dw),KY.updateUrlParamCommand=Yx(Ha),KY.verifyCommand=Yx(bV),KY.webNativeShareCommand=Yx(fd),KY.webSubmitFormCommand=Yx(Wa),KY.ACK_PLAYABLES_3P_DATA_CONSENT=
Yx(eT),KY.CANCEL_NAVIGATION=Yx(Ag),KY.COPY_SHARE_URL=Yx(nd),KY.MINI_APP_EXIT_DIALOG_SEEN=Yx(wa),KY.MINI_APP_OPEN_URL=Yx(ra),KY.REQUEST_MINI_APP_FULLSCREEN=Yx($z),KY.RESUME_NAVIGATION=Yx(va),KY.SHARE_PLAYABLE_WITH_HIGH_SCORE=Yx(oS),KY.TELL_US_WHY=Yx($R),KY);_.f("web_enable_prefetching_videos_on_home")&&(ux9.prefetchWatchCommand=Yx(JA),ux9.registerTasksCommand=Yx(Sa));_.f("enable_share_panel_navigation_logging_fix_on_web")&&(ux9.shareEntityServiceEndpoint=Yx(xR));var RdE=Object.assign({},ux9);var adp={},MXh=(adp.initialized={priority:10,callback:Q_U},adp);var C4z={},W_9=(C4z.initialized={callback:function(D){var Y={},R={};ufj().install((Y.document_disposed={callback:function(){_.f("finalize_all_timelines")?X6j():J4();Z_l("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.GCn();var Z=D.injector.resolve(V$);Z.intervalId!==void 0&&(Z.intervalId&&_.yc.cancelJob(Z.intervalId),Z.intervalId=void 0,--Z.currentPartitionIndex,Z=kCU(Z),Z>0&&qcD({mainAppWeb:_.E$(),survivalSli:{partitionMinute:Z,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));lb7(gi);di!=null&&
di.flush();M3&&M3.snapshotAndFlush();Z=_.a(d6z.values());for(var t=Z.next();!t.done;t=Z.next())t.value.snapshotAndFlush()}},Y),(R.flush_logs={callback:function(){_.yj()}},R))}},C4z);var zSK={},Sxk=(zSK.rendered={priority:0,callback:function(){var D=new AEU;D.increment("STARTED");if(_.JQ("LOGGED_IN")&&_.JQ("SERVER_VERSION")!=="test"&&_.JQ("SERVER_VERSION")!=="dev"&&!YLV()&&!DU1()){D.increment("EXECUTING");var Y=document.createElement("iframe");Y.style.display="none";_.tXb(Y,2,_.Jf("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(Y);D.increment("DONE")}}},zSK);var T9z={},jKp=(T9z.rendered={callback:function(){SLI().resume()}},T9z);var IdK={acknowledgeChannelTouStrikeCommand:vG(AK),addToPlaylistServiceEndpoint:vG(wv),addToPlaylistEndpoint:vG(wv),addUpcomingEventReminderEndpoint:vG(KZ),browseEndpoint:vG(d$h),channelCreationFormEndpoint:vG(jg),channelCreationServiceEndpoint:vG(IA),claimLegacyYoutubeChannelEndpoint:vG(YX),clearSearchHistoryEndpoint:vG(bZ),clearWatchHistoryEndpoint:vG(y8),commerceActionCommand:oQ(pi),createBackstagePostEndpoint:vG(Ei),createBroadcastCommand:vG(hK),createCommentEndpoint:vG(WI),createCommentReplyEndpoint:vG(CZ),
createLiveChatPollEndpoint:vG(LZ),createPlaylistServiceEndpoint:vG($_),crossAccountChannelTransferEndpoint:vG(JK),deleteLiveChatMessageCommand:vG(mE),deletePlaylistEndpoint:vG(vp),deleteVideoEndpoint:vG(x_),dismissalEndpoint:vG(nZ),feedbackEndpoint:vG(rJ),flagEndpoint:vG(J3),getAccountSwitcherEndpoint:vG(lZ),verifyCommand:vG(pd),getAccountsListInnertubeEndpoint:vG(Uh),getCommentsFromInboxCommand:vG(a3),getDownloadActionCommand:vG(jd),getFlowCommand:oQ(oA),getKidsBlocklistPickerCommand:vG(k_),getNotificationMenuEndpoint:vG(cSK),
getPaymentInstrumentsParamsCommand:vG(cp),getPaymentsClientTokenCommand:oQ(pi),getPdgBuyFlowCommand:vG(ni),getReportFormEndpoint:vG(UT),getSearchInVideoCommand:vG(Li),getAnswerCommand:vG(h3),getSurveyCommand:vG(Hp),getTranscriptEndpoint:vG(Ql),getPostVideoPreviewEndpoint:vG(ie),decorateMessageEndpoint:vG(da),likeEndpoint:vG(FR),liveChatActionEndpoint:vG(PI),liveChatEndpoint:vG(xX),liveChatItemContextMenuEndpoint:vG(qj),liveChatPurchaseMessageEndpoint:vG(Q8),liveChatReplayEndpoint:vG(HI),manageLiveChatUserEndpoint:vG(pZ),
metadataUpdateCommand:vG(X5),moderateLiveChatEndpoint:vG(Eh),modifyChannelNotificationPreferenceEndpoint:vG(zn),notificationOptOutEndpoint:vG(Sd),openSuperStickerBuyFlowCommand:vG(BI),performCommentActionEndpoint:vG(uZ),playlistEditEndpoint:vG(bA),playlistEditorEndpoint:vG(o3),recordNotificationInteractionsEndpoint:vG(Tn),reelWatchEndpoint:vG(yl),refreshPanelEndpoint:vG(F5),removeUpcomingEventReminderEndpoint:vG(gJ),resolveLocationCommand:vG(sT),revealBusinessEmailCommand:vG(RA),searchEndpoint:vG(_.DU9),
sendLiveChatMessageEndpoint:vG(Z5),sendLiveChatVoteEndpoint:vG(t3),setSettingEndpoint:vG(GW),shareEntityServiceEndpoint:oQ(eg),sharingProviderDataCommand:vG(qg),showEngagementPanelEndpoint:vG(Gn),showMoreDrawerCommand:vG(fi),showSheetCommand:vG(ed),showDialogCommand:vG(Vl),subscribeEndpoint:vG(V8),transcriptSubmitCaptionCorrectionCommand:vG(Pp),undoFeedbackEndpoint:vG($X),unsubscribeEndpoint:vG(fZ),updateBackstagePostEndpoint:vG(ca),updateCommentEndpoint:vG(Sg),updateCommentReplyEndpoint:vG(zW),updateCommentsSettingsEndpoint:vG(TW),
updateCreatorChannelInnertubeCommand:vG(tK),updateKidsBlacklistEndpoint:vG(Ki),updateEngagementPanelContentCommand:vG(A3),updatePdgFeatureEnablementCommand:vG(rv),updatedMetadataEndpoint:vG(uA),validateChannelHandleCommand:vG(sh),updateChannelPageSettingsEndpoint:vG(Zg),verifyAgeEndpoint:vG(vI),watchEndpoint:oQ(fc),whitelistEditEndpoint:vG(Bp),ypcCancelRecurrenceEndpoint:vG(ET),ypcCompleteTransactionEndpoint:vG(gv),ypcFixInstrumentEndpoint:vG(iA),ypcGetCartEndpoint:vG(dv),ypcGetOffersEndpoint:vG(OT),
ypcHandleTransactionEndpoint:oQ(DN),ypcLogWalletAnalyticDataEndpoint:vG(Y4),ypcOffersEndpoint:vG(Rq),ypcPauseSubscriptionCommand:vG(ZN),ypcRedeemCodeEndpoint:vG(tA),ypcResumeSubscriptionCommand:vG(sZ),ypcUpdateFopEndpoint:vG(iA)},hA={},F_0=(hA.GET_ACCOUNT_MENU=vG(kX),hA.GET_NOTIFICATIONS_MENU=vG(OMI),hA.GET_NOTIFICATIONS_INBOX=vG(Mg),hA.GET_UNSEEN_NOTIFICATION_COUNT=vG(Wp),hA.GET_USER_MENTION_SUGGESTIONS=vG(Oi),hA.LOAD_GUIDE=vG(iMk),hA.SUBMIT_FEEDBACK=vG(wJ),hA),LY={},Glt=(LY.CONTINUATION_REQUEST_TYPE_BROWSE=
vG(Dg),LY.CONTINUATION_REQUEST_TYPE_SEARCH=vG(m2),LY.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=vG(A$),LY.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=vG(Nj),LY.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=vG(Mj),LY.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=vG(aA),LY.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=vG(lA),LY.CONTINUATION_REQUEST_TYPE_GET_PANEL=vG(I3),LY),VXK={player:oQ(fc),watchNext:vG(e8)},fdT={player:oQ(fc),reelItemWatch:vG(yl),reelWatchSequence:vG(Ng)},eSI={watchEndpoint:oQ(nc)},AFu=
{commandEndpointMap:IdK,signalEndpointMap:F_0,continuationEndpointMap:Glt,watchEndpointMap:VXK,reelWatchEndpointMap:fdT,streamingEndpointMap:eSI};var n3K,rFt,wh0;_.$ck=((rFt=(n3K=window).matchMedia)==null?void 0:(wh0=rFt.call(n3K,"(prefers-reduced-motion: reduce)"))==null?void 0:wh0.matches)||!document.startViewTransition;var v39={},o3T={disableAllTransitions:_.$ck,ignoredErrors:(v39.DOCUMENT_HIDDEN=!0,v39.WINDOW_SIZE_CHANGED=!0,v39.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,v39),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 bjb=_.gY("\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          }\n      ".split(",")),yFu=function(D){this.viewTransitionCoordinator=D;this.isBrowseTransitionEnabled=_.XW("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.f("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.f("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.f("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){D=_.ZH("web_page_transition_exit_ms");var Y=_.ZH("web_page_transition_wait_ms"),
R=_.ZH("web_page_transition_enter_ms"),Z=_.ZH("web_page_transition_watch_exit_ms"),t=_.ZH("web_page_transition_watch_wait_ms"),X=_.ZH("web_page_transition_watch_enter_ms");if(!isNaN(D)||!isNaN(Y)||!isNaN(R))if(D=yZi(bjb,D,Y,R,Z,t,X))Y=document.createElement("style"),Y.textContent=MX5(D),document.head.appendChild(Y)}};
yFu.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var D={};this.viewTransitionCoordinator.registerElement(document.documentElement,(D.slide="root-slide",D["lockup-to-watch"]="root-lockup-to-watch",D["learning-journey"]="root-learning-journey",D))}};
_.Z5z=function(D,Y){D.isLockupToWatchTransitionEnabled&&D.isLockupThumbnailRegistrationEnabled&&(D.registeredLockupThumbnail?D.lockupThumbnailRegisteredFromWatchEndpoint?_.Jk(new _.AT("Lockup thumbnail registration order is incorrect.")):_.Jk(new _.AT("Lockup thumbnail already registered.")):(D.registeredLockupThumbnail=Y,_.N99(D,Y)))};
_.N99=function(D,Y){var R={};D.viewTransitionCoordinator.registerElement(Y,(R["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",R),!0)};
yFu[YS]=[Fhk];var BDU={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 ETU=["videoPrimaryInfoRenderer","title"],gTl=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var ldT;ldT=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.JFu=_.RT(function(D){D=_.YC(D,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var Y=D.data,R=D.playlistData,Z=D.expanded,t=D.onExpandClick,X=D.isReadyToResume,M=function(){var F;return!((F=R())==null||!F.contents)},W=function(){var F=R();
return F&&F.totalVideos&&F.currentIndex!==void 0?F.currentIndex+1+" / "+F.totalVideos:""};
D=_.F4(function(){_.mG(_.DH().resolve(_.mL));return!1});
var z=_.F4(function(){M()&&t&&t()}),I={};
return _.S("ytd-miniplayer-info-bar",{class:_.e7("ytdMiniplayerInfoBarHost",(I.ytdMiniplayerInfoBarHasPlaylistData=M,I)),"on:click":z},_.S("div",{class:"ytdMiniplayerInfoBarContent"},_.S("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":D},_.S(_.y_,{text:function(){var F=Y();var G=R();if(G==null?0:G.contents){var V;F=(V=_.svn(G))==null?void 0:V.title}else F=F==null?void 0:F.miniplayerTitle;return dtU(F)},
noEndpoints:!0,ellipsisTruncate:!0})),_.S("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.S(_.T,{cond:X,then:function(){return _.S(Q7E,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:ldT})}}),_.S("h1",null,_.S(_.y_,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var F=Y();var G=R();F=X()?{simpleText:_.fX("CONTINUE_WATCHING",void 0,"Continue watching")}:(G==null?0:G.contents)?G.titleText:F==null?void 0:F.miniplayerSubtitle;return dtU(F)},
noEndpoints:!0,ellipsisTruncate:!0})),_.S(_.T,{cond:function(){return!!W()&&!X()},
then:function(){return _.S("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.S("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.S("span",null,W))}}))),_.S(_.T,{cond:M,
then:function(){return _.S("div",{class:"ytdMiniplayerInfoBarExpand"},_.S(_.Sn,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(F){t&&(t(),F.stopPropagation())}}},
iconName:function(){return Z()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Oe");var klT;klT=_.RT(function(D){return _.S("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.S(_.Sn,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:D.onTap}},
iconName:"yt-icons:close"}))},"Pe");
_.Uc9=_.RT(function(D){D=_.YC(D,{playabilityStatus:void 0,isDisabled:!1});var Y=D.size,R=D.playabilityStatus,Z=D.isDisabled,t=_.dI("div");D=_.a(_.ae(void 0,void 0,"bJr0Se"));var X=D.next().value,M=D.next().value;D=_.qW(_.C9);var W=!1,z=function(){return Y().height<=0};
_.r2(function(){var V=Y(),e=z(),r=X();r&&!e&&r.setInternalSize(V.width,V.height)},"OUOyKb");
_.rf(function(){var V,e,r;return _.C(function(l){if(l.nextAddress==1){V=_.DH().resolve(_.mL);e=V.getPlayerElement();if(!V.isMiniplayerActive()||!e||!t.value)return l.return();e.appendTo(t.value);return l.yield(e.getPlayerPromise(),2)}r=l.yieldResult;r.setSizeStyle(!1,!0);M(r);_.V9(l)})});
_.w2(function(){I()});
_.r2(function(){var V=X();if(V)if(Z()){var e=V.getPlayerState();(W=e===-1||e===1||e===3)&&V.pauseVideo()}else I()},"KKHe5");
var I=function(){if(W){W=!1;var V;(V=X())==null||V.playVideo()}},F=_.F4(function(){_.mG(_.DH().resolve(_.mL))}),G={};
return _.S("ytd-miniplayer-player-container",{class:_.e7("ytdMiniplayerPlayerContainerHost",(G.ytdMiniplayerPlayerContainerHidden=z,G.ytdMiniplayerPlayerContainerHostShortsPip=D,G)),style:_.Ap({width:function(){return Y().width+"px"},
height:function(){return Y().height+"px"}})},_.S("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:t}),_.S(_.T,{cond:function(){return!!R()&&!_.vHU(R())},
then:function(){return _.S(ZE_,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var V;return((V=R())==null?void 0:V.errorScreen)||null},
status:function(){var V;return((V=R())==null?void 0:V.status)||null}})}}),_.S(_.T,{cond:Z,
then:function(){return _.S("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":F},_.S(klT,{onTap:function(){_.DH().resolve(_.mL).close()}}))}}))},"Qe");_.K_K=_.RT(function(D){var Y=D.toastData;var R=_.dI("ytd-miniplayer-toast");D=_.a(_.fB(function(){return!!Y()}));
var Z=D.next().value,t=D.next().value;D=_.a(_.ae(!1,void 0,"xkrBze"));var X=D.next().value,M=D.next().value,W=function(){var F;return _.OM((F=Y())==null?void 0:F.data.title)};
_.$s(function(){_.H6.requestAvailability();Y()&&t(!1)});
var z,I;_.r2(function(){Z()&&(_.MX(R.value,"iron-announce",{text:Y().label+" "+W()}),z&&_.yc.cancelJob(z),z=_.yc.addLowPriorityJob(function(){M(!0)},2500))},"OTdL1e");
_.r2(function(){X()&&(I&&_.yc.cancelJob(I),I=_.yc.addLowPriorityJob(function(){t(!1);M(!1)},300))},"yybqib");
D={};return _.S("ytd-miniplayer-toast",{el:R,class:_.e7("ytdMiniplayerToastHost",(D.ytdMiniplayerToastOpening=function(){return Z()},D.ytdMiniplayerToastClosing=function(){return X()},D))},_.S(_.T,{cond:function(){var F;
return(F=Y())==null?void 0:F.data},
then:function(F){return _.S(RV7,{className:"ytdMiniplayerToastThumbnail",data:F,width:78})}}),_.S("div",{class:"ytdMiniplayerToastInfo"},_.S("div",{class:"ytdMiniplayerToastLabel"},function(){var F;
return(F=Y())==null?void 0:F.label}),_.S("div",{class:"ytdMiniplayerToastTitle"},W)))},"Re");var Xqn;var MKU=null;var L_k=_.RT(function(D){var Y=D.progressState;var R=D.multiMarkersPlayerBarRenderer;var Z=D.progressBarWidth;var t=function(){return Su9(R())},X=function(){return I3r(Y())},M=function(){return Z()*(Y().playedTime/Y().videoDuration)};
return _.S("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.S(_.G6,{each:t},function(W,z){return _.S(hSp,{modifiedProps:X,chapters:t,index:z,playedProgressWidth:M,backgroundGradientPosition:function(){var I=X(),F=t(),G=z(),V=M();return(I.playedTime-hn(_.A(F[G],Ko)))/I.playedTime*V}})}))},"Se"),hSp=_.RT(function(D){var Y=D.modifiedProps;
var R=D.chapters;var Z=D.index;var t=D.playedProgressWidth;var X=D.backgroundGradientPosition;D={};D=_.e7("ytChapteredProgressBarChapteredPlayerBarChapter",(D.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return M().isScrubbing},D.ytChapteredProgressBarHoveredMacroMarker=function(){return M().scrubberHovering},D.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return M().videoPosition==="seen"},D));
var M=function(){return F6i(Y(),R(),Z())},W=function(){var z=Y();
var I=R(),F=Z();if(F6i(z,I,F).videoPosition!=="active")z=0;else{var G=hn(_.A(I[F],Ko));z=(z.playedTime-G)/((hn(_.A(I[F+1],Ko))||z.videoDuration)-G)}return z};
return _.S("div",{class:D,style:_.Ap({width:function(){var z=Y(),I=R(),F=Z(),G=_.A(I[F],Ko);I=_.A(I[F+1],Ko);return(I?hn(I)-hn(G):z.videoDuration-hn(G))/z.videoDuration*100+"%"},
"background-color":function(){a:{var z=M();switch(z.videoPosition){case "pending":z=z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":z=z.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:z=""}}return z},
"background-size":function(){return(G15(M())?t():"")+"px"},
"background-position-x":function(){return(G15(M())?X():"")+"px"}})},_.S("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var z=Y(),I=R(),F=Z();if(F6i(z,I,F).videoPosition==="seen")var G=0;else G=hn(_.A(I[F],Ko)),I=hn(_.A(I[F+1],Ko))||z.videoDuration,z=z.videoDuration*z.percentLoaded,G=I<=z?1:G>=z?0:(z-G)/(I-G);return"width: "+G*100+"%"}}),_.S("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Ap({width:function(){return W()*100+"%"},
"background-size":function(){return(G15(M(),W())?t():"")+"px"},
"background-position-x":function(){return(G15(M(),W())?X():"")+"px"}})}))},"Te");var mcb=function(D,Y){Y=Y===void 0?gPU:Y;var R,Z=[],t,X=!1;return function(){var M=_.UN.apply(0,arguments);if(X&&R===this&&Y(M,Z))return t;t=D.apply(this,M);X=!0;R=this;Z=M;return t}}(function(D){var Y=D.heatMarkers,R=D.minHeightDp===void 0?0:D.minHeightDp,Z=D.maxHeightDp===void 0?60:D.maxHeightDp;
var t=t===void 0?!1:t;var X=1E3/Y.length;D=[];D.push({x:0,y:100});for(var M=0;M<Y.length;M++){var W=void 0,z=((W=_.A(Y[M],OcE))==null?void 0:W.heatMarkerIntensityScoreNormalized)||0;W=(M+.5)*X;z=100-_.UR(z*100,R/321*100,Z/321*100);M!==0||t||D.push({x:0,y:z});D.push({x:W,y:z});M===Y.length-1&&D.push({x:1E3,y:z})}D.push({x:1E3,y:100});Y="";for(R=0;R<D.length;R++)t=D[R],R===0?t="M "+t.x.toFixed(1)+","+t.y.toFixed(1):(Z=w$U(D[R-1],D[R-2],t),X=w$U(t,D[R-1],D[R+1],!0),t=" C "+(Z.x.toFixed(1)+","+Z.y.toFixed(1)+
" "+X.x.toFixed(1)+","+X.y.toFixed(1)+" "+t.x.toFixed(1)+","+t.y.toFixed(1))),Y+=t;return Y});var qxE=_.RT(function(D){var Y=D.progressBarProps;var R=D.config;var Z={};D=_.e7("ytHeatSeekerHost",(Z.ytHeatSeekerHighContrast=D.highContrast,Z));var t=function(){return Yui(R().chapterData)};
return _.S("yt-progress-bar-heatseeker",{class:D,style:function(){var X;return"height: 320px; display: "+(Y().isDragging&&((X=t())==null?0:X.heatMarkers)?"block":"none")}},_.S(_.T,{cond:t,
then:function(X){return _.S(_.T,{cond:function(){return X().heatMarkers},
then:function(){return _.S("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.S("path",{d:function(){return mcb(X())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ue");var Hj9=_.RT(function(D){var Y=D.progressBarProps;var R=D.config;D={};D=_.e7("ytProgressBarLineProgressBarLine",(D.ytProgressBarLineProgressBarLineRounded=function(){return R().rounded},D.ytProgressBarLineProgressBarLineBottomInset=function(){return R().position===2},D));
return _.S("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.S("div",{class:D},_.S("div",{class:"ytProgressBarLineProgressBarBackground"}),_.S("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+Y().percentLoaded*100+"%"}}),_.S("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Z=Y();return"width: "+(Z.videoDuration?_.UR(Z.hoveredTime/Z.videoDuration,0,1):0)*100+"%"}}),_.S("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+O_r(Y())*100+"%"}})))},"Ve");
Hj9.idomCompat=!0;var xcT=_.RT(function(D){var Y=D.progressBarProps;var R=D.playheadData;var Z=D.interpolateDotPosition;var t=D.hidePlayhead;D={};var X=_.e7("ytProgressBarPlayheadProgressBarPlayheadDot",(D.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return Y().isDragging},D.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!Y().isDragging&&t()},D));
return _.S("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Ap({"margin-left":function(){return cB$(Y())*100+"%"},
transform:function(){return"translateX(-"+(Z()?cB$(Y())*12:6)+"px)"}})},_.S(_.T,{cond:function(){var M;
return(M=_.DX(R)())==null?void 0:M.playheadImage},
then:function(M){var W={};return _.S("div",{class:_.e7("ytProgressBarPlayheadProgressBarPlayheadCustom",(W.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return Y().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!Y().isDragging&&t()},W)),
style:_.Ap({"transform-origin":function(){return(Z()?cB$(Y())*20:10)+"px center"}})},_.S(_.Rt,{data:M,
alt:"","aria-hidden":"true"}))},
else:function(){return _.S("div",{class:X,style:_.Ap({"transform-origin":function(){return(Z()?cB$(Y())*12:6)+"px center"}})})}}))},"We");
xcT.idomCompat=!0;var qO=function(D,Y,R,Z,t,X){this.getProgressBarRect=D;this.updateProgressBarRect=Y;this.getFilmstripYPosition=R;this.setFineScrubbingDraggedTime=Z;this.updateFilmStripDraggedYDistance=t;this.resetFilmStripYOffset=X;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.gq(this.onThrottledSeek,100,this)},P4K=function(D,Y,R){return function(Z){D.handleClick(Z,Y(),R())}},pht=function(D,Y){return function(R){QKk(D,
R,B9T(R),Y())}},E3t=function(D,Y){return function(R){QKk(D,R,{x:R.clientX,
y:R.clientY},Y())}},dct=function(D,Y,R){return function(Z){var t=Y(),X=R();
g30(D,Z,B9T(Z),t,X,!0);if(X.onTouchMove)X.onTouchMove(t)}},Oj9=function(D,Y,R){return function(Z){ij9(D,Z,Y(),R())}},cFu=function(D,Y){return function(){D.handleMouseLeave(Y())}},D1t=function(D,Y,R){return function(){var Z=Y(),t=R();
HW(D,Z,t);if(t.onTouchEnd)t.onTouchEnd(Z)}},YGK=function(D,Y,R){return function(){var Z=Y(),t=R();
HW(D,Z,t);if(t.onTouchEnd)t.onTouchEnd(Z)}},R3T=function(D,Y,R){return function(){HW(D,Y(),R())}},Z0z=function(D){return function(Y){if(Y.keyCode===39||Y.keyCode===38){var R,Z;
(R=D())==null||(Z=R.playerApi)==null||Z.seekBy(5,void 0,void 0,72)}else if(Y.keyCode===37||Y.keyCode===40){var t,X;(t=D())==null||(X=t.playerApi)==null||X.seekBy(-5,void 0,void 0,71)}}},twK=function(D,Y,R){return function(Z){!R().disableScrubbing&&D.startPosition&&ij9(D,Z,Y(),R())}},sIK=function(D,Y,R){return function(){if(!R().disableScrubbing)if(D.startPosition){var Z=Y(),t=R();
HW(D,Y(),R());if(t.onTouchEnd)t.onTouchEnd(Z)}else Y().setState({isDragging:!1})}},B9T=function(D){D=D.touches[0];
return{x:D.clientX,y:D.clientY}},ij9=function(D,Y,R,Z){if(Y.buttons!==1){if(Y.movementX||Y.movementY)Y.preventDefault(),Y.stopPropagation(),D=X8K(D,R,Y.clientX),R.setState({isHovering:!0,
hoveredTime:D*R.videoDuration})}else uLK(R),g30(D,Y,{x:Y.clientX,y:Y.clientY},R,Z,!1)};
qO.prototype.handleMouseLeave=function(D){uLK(D)};
var uLK=function(D){D.isHovering&&D.setState({isHovering:!1,hoveredTime:0})},QKk=function(D,Y,R,Z){D.startPosition||(D.startPosition=R,D.updateProgressBarRect(),D.controlsWereVisibleBeforeDragging=Z.controlsVisible,Y.stopPropagation(),_.f("medium_progress_bar_modification")||Y.preventDefault())},g30=function(D,Y,R,Z,t,X){if(D.startPosition)if(X&&t.isInlinePlayback&&D.startPosition&&!D.hasDraggedTheMinimumDistance&&Math.abs(R.y-D.startPosition.y)>Math.abs(R.x-D.startPosition.x))HW(D,Z,t);
else if(Y.preventDefault(),Y.stopPropagation(),Z.videoDuration&&(D.startPosition&&!D.hasDraggedTheMinimumDistance&&(D.hasDraggedTheMinimumDistance=Math.abs(R.x-D.startPosition.x)>=1),t.enableFineScrubbing&&(D.startPosition&&(D.isDraggedForFineScrubbing=-(R.y-D.startPosition.y)>=60),!D.startPosition||R.y>=D.startPosition.y||(Z.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:VKr(Z.draggedTime,Z,t.chapterData)}),D.setFineScrubbingDraggedTime(Z.draggedTime),D.updateFilmStripDraggedYDistance(D.startPosition.y,
R.y,Z))),D.hasDraggedTheMinimumDistance)){Y=X8K(D,Z,R.x);if(D.isDraggedForFineScrubbing){var M;(M=Z.playerApi)==null||M.pauseVideo();Z.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Z.draggedTime,filmStripXDistance:VKr(Y*Z.videoDuration,Z,t.chapterData)})}t.enableFineScrubbing&&(!t.enableFineScrubbing||D.getFilmstripYPosition(Z)<68)||Z.setState({draggedTime:Y*Z.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:D.controlsWereVisibleBeforeDragging});var W;(W=
t.cancelAutohideControlsFn)==null||W.call(t)}},HW=function(D,Y,R){var Z=R.enableFineScrubbing&&Y.fineScrubbingActiveState!=="off";
if(Y.isDragging||Z){Z={isDragging:!1,playedTime:Y.draggedTime,controlsVisible:D.controlsWereVisibleBeforeDragging};R.enableFineScrubbing&&Y.fineScrubbingActiveState!=="on"&&(D.resetFilmStripYOffset(),Z.fineScrubbingActiveState="off");var t=t===void 0?MKU:t;var X=_.K2(0);if(X&&t){var M=Math.round(Y.playedTime*1E3),W=Math.round(Y.draggedTime*1E3);M>2147483647||W>2147483647||_.ii(X,t,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(M),endMediaTimeMs:String(W),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}Y.setState(Z);
D.seekThrottle.fire(Y.draggedTime,Y,7);_.f("mweb_new_progress_bar_play_on_seek")&&D.resumeVideo(Y);R.unmuteOnSeek&&(R=Y.playerApi,Y.volumeMuted&&(R==null||R.unMute()))}else Y.setState({controlsVisible:!Y.controlsVisible}),(X=R.triggerAutohideControlsAfterDelayFn)==null||X.call(R);D.startPosition=null;D.hasDraggedTheMinimumDistance=!1;D.isDraggedForFineScrubbing=!1;D.controlsWereVisibleBeforeDragging=!1};
qO.prototype.handleClick=function(D,Y,R){this.updateProgressBarRect();D.stopPropagation();D=X8K(this,Y,D.clientX)*Y.videoDuration;Y.setState({playedTime:D});if(Y.playerState!==2){var Z;(Z=R.triggerAutohideControlsAfterDelayFn)==null||Z.call(R)}this.seekThrottle.fire(D,Y,7)};
var X8K=function(D,Y,R){D=D.getProgressBarRect(Y);return _.UR(0,(R-D.left)/D.width,1)};
qO.prototype.resumeVideo=function(D){if(D.draggedTime<D.videoDuration){var Y;(Y=D.playerApi)==null||Y.playVideo()}};
qO.prototype.onThrottledSeek=function(D,Y,R){if(Y=Y.playerApi){var Z;if((Z=Y.getVideoData())==null?0:Z.isLive)Z=this.getProgressState(Y),D+=(Z==null?void 0:Z.seekableStart)||0;Y.seekTo(D,void 0,void 0,void 0,R)}};
qO.prototype.getProgressState=function(D){var Y=D==null?void 0:D.getPresentingPlayerType();return D==null?void 0:D.getProgressState(Y)};var Cmk,MwE,WJh,SGp,a7t,TXK,jII,I7K,FJz;Cmk=_.RT(function(D){var Y=D.progressBarProps;var R=D.config;var Z=D.progressBarWidthPx;var t=D.chapterData;var X=rdr(Y,function(){return R().isShortsPage}),M=function(){return!Y().isHovering&&!R().isShortsPage};
D={};var W=_.e7("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(D.ytPlayerStoryboardHostMwebShorts=function(){return R().isShortsPage&&!1},D));
return _.S("yt-player-storyboard",null,_.S(_.T,{cond:function(){return Y().isDragging||Y().isHovering},
then:function(){return _.S(_.T,{cond:X,then:function(z){return _.S(_.T,{cond:M,then:function(){return _.S("div",{class:W,"aria-hidden":"true"},_.S(a7t,{props:Y,config:R,isBigboard:!0,chapterData:t}))},
else:function(){return _.S(MwE,{props:Y,frame:z,config:R,progressBarWidthPx:Z,chapterData:t})}})}})}}))},"Xe");
_.z3t=_.RT(function(D){var Y=D.progressBarProps;var R=rdr(Y,D.isShortsPage);return _.S("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.S(_.T,{cond:function(){return Y().isDragging||Y().isHovering},
then:function(){return _.S(_.T,{cond:R,then:function(Z){return _.S(WJh,{frame:Z,props:Y,isBigboard:!0})}})}}))},"Ye");
MwE=_.RT(function(D){var Y=D.props;var R=D.frame;var Z=D.config;var t=D.progressBarWidthPx;D=D.chapterData;var X={};X=_.e7("ytPlayerStoryboardHost",(X.ytPlayerStoryboardHostMwebShorts=function(){return Z().isShortsPage&&!1},X.ytPlayerStoryboardHostInlinePlayer=function(){return Z().isInlinePlayer},X.ytPlayerStoryboardHostFadeIn=function(){return Z().useFadeInAnimation},X));
return _.S("div",{class:X,"aria-hidden":"true",style:function(){var M=Y(),W=f3y(R()),z=t();M=eh$(M)/M.videoDuration;var I=z*M,F=W/2+6;W=z-(W/2+6);return"left: "+(I<=F?F/z*100:I>=W?W/z*100:M*100)+"%"}},_.S(_.T,{cond:function(){var M=Y();
return!(Z().isShortsPage&&M.videoDuration<15)},
then:function(){return _.S(WJh,{frame:R,props:Y,isBigboard:!1})}}),_.S(a7t,{props:Y,
config:Z,isBigboard:!1,chapterData:D}))},"Ze");
WJh=_.RT(function(D){var Y=D.frame;var R=D.props;var Z=D.isBigboard;var t=function(){var W,z;return(z=(W=R().playerApi)==null?void 0:W.getVideoContentRect())!=null?z:{width:0,height:0}},X=function(){return f3y(Y())},M=function(){var W=Y();
return W?W.height/W.rows:0};
D={};D=_.e7((D.ytPlayerStoryboardBigboardImageWrapper=Z,D.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Z()},D));
return _.S("div",{class:D,style:function(){return"width: "+(Z()?t().width:X())+"px; height: "+(Z()?t().height:M())+"px;"}},_.S(SGp,{frame:Y,
storyboardWidth:X,storyboardHeight:M,storyboardScale:function(){return(Z()?t().width:X())/X()}}))},"$e");
SGp=_.RT(function(D){var Y=D.frame;var R=D.storyboardWidth;var Z=D.storyboardHeight;var t=D.storyboardScale;var X=function(){var M=Y().row,W=Y().column,z=R(),I=Z(),F=t();return{left:-W*z*F,top:-M*I*F}};
return _.S("img",{src:function(){return Y().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+X().left+"px; top: "+X().top+"px; width: "+Y().width*t()+"px; height: "+Y().height*t()+"px;"}})},"af");
a7t=_.RT(function(D){var Y=D.props;var R=D.config;var Z=D.isBigboard;var t=D.chapterData;D={};D=_.e7("ytPlayerStoryboardMetadata",(D.ytPlayerStoryboardMetadataBigboard=Z,D));return _.S("div",{class:D},_.S(_.T,{cond:Z,then:function(){return _.S(_.c_,null,_.S(TXK,{props:Y,config:R}),_.S(_.T,{cond:function(){a:{var X=Y();var M=R(),W=t(),z;if((M==null?0:M.activeChapter)&&((z=_.A(M==null?void 0:M.activeChapter,Ko))==null?0:z.title))X=!0;else{M=_.a(Rhj(W));for(M=M.next();!M.done;M=M.next()){X=(M=_.A(M.value,
DQY))&&Adb(X,M);break a}X=!1}}return X},
then:function(){return _.S(jII,{props:Y,config:R,isBigboard:!0,chapterData:t})}}))},
else:function(){return _.S(_.c_,null,_.S(jII,{props:Y,config:R,isBigboard:!0,chapterData:t}),_.S(TXK,{props:Y,config:R}))}}))},"bf");
TXK=_.RT(function(D){var Y=D.props;var R=D.config;D={};D=_.e7("ytPlayerStoryboardTimestamp",(D.ytPlayerStoryboardTimestampShorts=function(){return R().isShortsPage},D.ytPlayerStoryboardTimestampIsHovering=function(){return Y().isHovering||R().isShortsPage&&!0},D));
return _.S("div",{class:D},_.S(_.c_,null,function(){return _.n9y(eh$(Y()))}))},"cf");
jII=_.RT(function(D){var Y=D.props;var R=D.config;var Z=D.isBigboard;var t=D.chapterData;D={};Z=_.e7("ytPlayerStoryboardTitle",(D.ytPlayerStoryboardTitleBigboard=Z,D));return _.S("div",{class:Z},_.S(_.T,{cond:function(){return!R().isShortsPage},
then:function(){return _.S(I7K,{props:Y,activeChapter:function(){return R().activeChapter},
chapterData:t})}}))},"df");
I7K=_.RT(function(D){var Y=D.props;var R=D.activeChapter;var Z=D.chapterData;return _.S(_.c_,null,_.S(_.G6,{each:function(){return Rhj(Z())},
keyBy:"INDEX"},function(t){return _.S(_.c_,null,_.S(_.T,{cond:function(){return _.A(t(),DQY)&&Adb(Y(),_.A(t(),DQY))},
then:function(){return _.S(FJz,{timedMarker:function(){return _.A(t(),DQY)}})}}))}),_.S(_.T,{cond:function(){var t;
return R()&&((t=_.A(R(),Ko))==null?void 0:t.title)},
then:function(t){return _.S(_.y_,{text:t,noPreWrap:!0})}}))},"ef");
FJz=_.RT(function(D){var Y=D.timedMarker;return _.S(_.c_,null,_.S("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.S(_.nB,{icon:function(){return Y().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.S(_.y_,{text:function(){return Y().label},
noPreWrap:!0}))},"ff");_.GI9=_.RT(function(D){var Y=D.progressBarProps;var R=D.playheadData;var Z=D.config;D=_.dI("yt-progress-bar");var t=_.dI("div"),X=_.dI("div"),M=_.a(_.ae({width:0,left:0},void 0,"NcXsUb")),W=M.next().value,z=M.next().value,I=function(){X.value&&z(X.value.getBoundingClientRect())},F=function(){W().width<=0&&I();
return W()};
YM("resize",I);var G=new qO(F,function(){},function(){return 0},function(){},function(){},function(){}),V=function(){return Y()};
M=_.a(_.ae(!1,void 0,"ZsF6Xc"));var e=M.next().value,r=M.next().value;M=_.F4(function(){r(!0);Z().position===2?setTimeout(function(){I()},100):I()});
var l=_.F4(function(){r(!1);cFu(G,V)()}),U=_.F4(function(KM){Z().doSeekOnClick&&P4K(G,V,Z)(KM);
return!1}),K=_.F4(function(KM){pht(G,V)(KM);
return!1}),H=_.F4(function(KM){E3t(G,V)(KM);
return!1}),c=_.F4(function(KM){dct(G,V,Z)(KM);
return!1}),Q=_.F4(function(KM){Oj9(G,V,Z)(KM);
return!1}),E=_.F4(function(){D1t(G,V,Z)();
return!1}),B=_.F4(function(){YGK(G,V,Z)();
return!1}),O=_.F4(function(){R3T(G,V,Z)();
return!1}),Wo=_.F4(function(KM){Z0z(V)(KM);
return!1});
YM("mousemove",twK(G,V,Z));YM("mouseup",sIK(G,V,Z));_.$s(function(){Cwb(t.value);r(!1);I();sIK(G,V,Z)()});
var Sb={};Sb=_.e7("ytPlayerProgressBarHost",function(){return Z().className},(Sb.ytPlayerProgressBarHostReadOnly=function(){return Z().disableScrubbing},Sb.ytPlayerProgressBarHostHidden=function(){return Z().hideProgressBar&&!e()},Sb.ytPlayerProgressBarHostLowerPlayer=function(){return Z().position===0},Sb.ytPlayerProgressBarHostBottomEdge=function(){return Z().position===1},Sb.ytPlayerProgressBarHostBottomInset=function(){return Z().position===2},Sb.ytPlayerProgressBarHostCustom=function(){return Z().position===
3},Sb));
var VU={},AS=_.e7("ytPlayerProgressBarBackground",(VU.ytPlayerProgressBarBackgroundHide=function(){return Z().position===2&&!e()&&!Y().isDragging},VU));
VU={};VU=_.e7("ytPlayerProgressBarDragContainer",(VU.ytPlayerProgressBarDragContainerBottomEdge=function(){return Z().position===1},VU));
var nM={};nM=_.e7("ytPlayerProgressBarProgressBar",(nM.ytPlayerProgressBarProgressBarInset=function(){return Z().position===2},nM.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Z().position===2&&!e()&&!Y().isDragging},nM));
var Ho=function(){return Math.floor(O_r(Y())*100)};
return _.S("yt-progress-bar",{el:D,class:Sb},_.S(_.T,{cond:function(){return Z().position===2},
then:function(){return _.S("div",{class:AS})}}),_.S("div",{el:t,
"on:click":U,"on:touchstart":K,"on:touchmove":c,"on:mouseenter":M,"on:mousedown":H,"on:mouseleave":l,"on:mousemove":Q,"on:mouseup":B,"on:touchend":E,"on:touchcancel":O,"on:keydown":Wo,class:VU,role:"slider","aria-valuenow":Ho,"aria-valuetext":function(){return Ho()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return Y().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.fX("SEEK_SLIDER")},_.S("div",{el:X,class:nM},_.S(qxE,{progressBarProps:Y,config:Z,highContrast:function(){return!!Z().isInlinePlayback}}),_.S(_.T,{cond:function(){return Z().chapterData&&Zz$(Z().chapterData)},
then:function(){return _.S(L_k,{progressState:Y,multiMarkersPlayerBarRenderer:function(){return Z().chapterData},
progressBarWidth:function(){return W().width}})},
else:function(){return _.S(Hj9,{progressBarProps:Y,config:Z})}}),_.S(xcT,{progressBarProps:Y,
playheadData:R,interpolateDotPosition:function(){return Z().position!==2},
hidePlayhead:function(){return Z().playheadDotBehavior===1&&!e()}}))),_.S(Cmk,{progressBarProps:Y,
config:function(){return{activeChapter:jd9(Y(),Z().chapterData),getProgressBarWidthPx:function(){return F().width},
isShortsPage:!!Z().isShortsPage,isInlinePlayer:!!Z().isInlinePlayback,useFadeInAnimation:!!Z().isInlinePlayback}},
progressBarWidthPx:function(){return W().width},
chapterData:function(){return Z().chapterData}}))},"gf");
_.GI9.idomCompat=!0;Object.assign({},_.tKj(),{setState:function(){},
domMeasurements:{},appApi:_.i_U(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var VwK;
_.f7k=_.RT(function(){var D,Y=(D=_.Lo(wq9().playerApi))!=null?D:void 0;D=_.a(_.ae(!1,void 0,"HLFBmb"));var R=D.next().value,Z=D.next().value;D=_.a(_.ae(!1,void 0,"lHH9bc"));var t=D.next().value,X=D.next().value;D=_.a(_.ae(!1,void 0,"zsY7yd"));var M=D.next().value,W=D.next().value;D=_.a(_.ae(!1,void 0,"KeHQgc"));var z=D.next().value,I=D.next().value;D=_.a(_.ae(0,void 0,"gLLCj"));var F=D.next().value,G=D.next().value;D=_.a(_.ae(0,void 0,"s3RYkf"));var V=D.next().value,e=D.next().value;D=_.a(_.ae(!1,void 0,
"Dn608e"));var r=D.next().value,l=D.next().value;D=_.a(_.ae(0,void 0,"AnkH1b"));var U=D.next().value,K=D.next().value;D=_.a(_.ae(0,void 0,"QYNL0b"));var H=D.next().value,c=D.next().value;D=_.a(_.ae("",void 0,"Yzw45d"));var Q=D.next().value,E=D.next().value;D=_.a(_.ae(-1,void 0,"iiVI0c"));var B=D.next().value,O=D.next().value,Wo=_.Si(function(){var Sb={controlsVisible:R(),isOverlayHidden:t(),shouldWaitToHideControls:M(),isDragging:z(),isHovering:r(),videoDuration:U(),playedTime:H(),videoId:Q(),draggedTime:V(),
hoveredTime:F(),playerState:B()};return Object.assign({},_.tKj(),Sb,{domMeasurements:{},setState:function(VU){VU.controlsVisible!==void 0&&Z(VU.controlsVisible);VU.isOverlayHidden!==void 0&&X(VU.isOverlayHidden);VU.shouldWaitToHideControls!==void 0&&W(VU.shouldWaitToHideControls);VU.isDragging!==void 0&&I(VU.isDragging);VU.isHovering!==void 0&&l(VU.isHovering);VU.draggedTime!==void 0&&e(VU.draggedTime);VU.hoveredTime!==void 0&&G(VU.hoveredTime);VU.videoDuration!==void 0&&K(VU.videoDuration);VU.playedTime!==
void 0&&c(VU.playedTime);VU.videoId!==void 0&&E(VU.videoId);VU.playerState!==void 0&&O(VU.playerState)},
appApi:_.i_U(),playerApi:Y})},void 0,"ZW7y9");
_.rf(function(){Y==null||Y.addEventListener("onVideoProgress",a3y(Wo));Y==null||Y.addEventListener("onVideoDataChange",uZU(Wo));Y==null||Y.addEventListener("onStateChange",sdS(Wo))});
_.w2(function(){if(Y==null?0:Y.isReady())Y==null||Y.removeEventListener("onVideoProgress",a3y(Wo)),Y==null||Y.removeEventListener("onVideoDataChange",uZU(Wo)),Y==null||Y.removeEventListener("onStateChange",sdS(Wo))});
return _.S("desktop-shorts-player-controls",null,_.S(VwK,{playerControlsProps:Wo}))},"hf");
VwK=_.RT(function(D){var Y=D.playerControlsProps;return _.S("div",{class:"desktopShortsPlayerControlsWizHost"},_.S(_.GI9,{progressBarProps:Y,config:function(){return{isShortsPage:!0,hideProgressBar:Y().videoDuration<30&&Y().playerState!==2&&!Y().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"jf");_.e3b=_.RT(function(D){function Y(Sb){Sb!==0||G()?Sb>50&&(G()||!e())?(V(!1),r(!0)):Sb<=50&&(G()||e())&&(V(!1),r(!1)):V(!0)}
function R(Sb,VU){var AS;return _.C(function(nM){if(nM.nextAddress==1)return nM.yield(_.jG(),2);AS=nM.yieldResult;VU&&AS?(AS.unMute(!0),Sb&&(v9n(Sb,AS.getVolume()),U(AS.getVolume()))):AS&&(AS.mute(!0),Sb&&v9n(Sb,0));_.V9(nM)})}
function Z(Sb){var VU,AS;return _.C(function(nM){if(nM.nextAddress==1)return nM.yield(_.jG(),2);VU=nM.yieldResult;AS=50;VU&&(AS=VU.getVolume(),VU.isMuted()?v9n(Sb,0):v9n(Sb,AS));U(AS);_.V9(nM)})}
var t=D.orientation;D=_.dI("desktop-shorts-volume-controls");var X=_.dI("button"),M=_.io("input"),W=_.a(_.ae(!1,void 0,"F6vt0d")),z=W.next().value,I=W.next().value,F=_.a(_.ae(!1,void 0,"S5PCqb"));W=F.next().value;F=F.next().value;var G=W,V=F;F=_.a(_.ae(!0,void 0,"Tgy4e"));W=F.next().value;F=F.next().value;var e=W,r=F;W=_.a(_.ae(50,void 0,"Dq3efd"));var l=W.next().value,U=W.next().value;W=_.Si(function(){var Sb=G();return _.f("web_shorts_keyboard_enable_mute_shortcut")?Sb?_.fX("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.fX("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Sb?_.fX("UNMUTE_VOLUME",void 0,"Unmute"):_.fX("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
F=_.Si(function(){var Sb=G(),VU=e();return{sources:[{clientResource:{imageName:Sb?_.f("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":VU?_.f("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.f("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var K=_.Si(function(){var Sb=l();return G()?Sb+"% volume muted":Sb+"% volume"},void 0,"kvkmyc"),H=_.Si(function(){return t()==="vertical_down"},void 0,"zaNsZ");
_.$s(function(){function Sb(){I(!0)}
function VU(){I(!1)}
M&&M.value&&(M.value.addEventListener("focus",Sb),M.value.addEventListener("focusout",VU),Z(M.value).then(function(){Y(Number(o9U(M.value)))}));
X&&X.value&&(X.value.addEventListener("focus",Sb),X.value.addEventListener("focusout",VU));_.w2(function(){var AS;M==null||(AS=M.value)==null||AS.removeEventListener("focus",Sb);var nM;M==null||(nM=M.value)==null||nM.removeEventListener("focusout",VU);var Ho;X==null||(Ho=X.value)==null||Ho.removeEventListener("focus",Sb);var KM;X==null||(KM=X.value)==null||KM.removeEventListener("focusout",VU)})});
var c=_.F4(function(){if(M&&M.value){var Sb=Number(o9U(M.value));$RS(Sb);U(Sb);M.value.style.setProperty("--gradient-percent",Sb+"%");Y(Sb)}return!1}),Q=_.F4(function(){I(!0)}),E=_.F4(function(){M&&M.value&&(R(M.value,G()),V(!G()));
return!1}),B={},O={},Wo={};
return _.S("desktop-shorts-volume-controls",{"on:pointerleave":_.F4(function(){I(!1)}),
class:_.e7("ytdDesktopShortsVolumeControlsHost",(B.ytdDesktopShortsVolumeControlsHostVertical=H,B.ytdDesktopShortsVolumeControlsHostExpanded=z,B)),el:D},_.S(_.T,{cond:function(){return!H()},
then:function(){var Sb={};return _.S("div",{class:_.e7("ytdDesktopShortsVolumeControlsBackgroundScrim",(Sb.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=z,Sb))})}}),_.S("div",{class:_.e7((O.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=H,O))},_.S("button",{"aria-label":W,
title:W,el:X,"on:click":E,"on:pointerenter":Q,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},F?_.S(_.Rt,{data:F,alt:W,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.S("div",{class:_.e7("ytdDesktopShortsVolumeControlsSliderContainer",(Wo.ytdDesktopShortsVolumeControlsSliderContainerExpanded=z,Wo.ytdDesktopShortsVolumeControlsSliderContainerVertical=H,Wo.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=H,Wo.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return z()&&H()},Wo))},_.S("input",{"aria-label":_.fX("VOLUME"),
title:_.fX("VOLUME"),el:M,"on:input":c,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":l,"aria-valuetext":K,"aria-valuemin":0,"aria-valuemax":100})))},"kf");_.AZu=_.RT(function(D){var Y=D.data;return _.S("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.S(_.PK,{command:function(){return Y().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.S(_.T,{cond:function(){return Y().iconName},
then:function(R){return _.S(_.nB,{icon:R})}}),_.S("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return Y().text}),_.S(_.T,{cond:function(){return Y().showEndChevron},
then:function(){return _.S(_.nB,{icon:"CHEVRON_RIGHT"})}})))},"lf");var n2z=_.RT(function(D){var Y=D.data;var R=D.overlayDensity;D={};return _.S("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.S(_.vK,{data:function(){return Y().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Z){var t=Z.data;
return _.S(_.kk,{data:function(){return(R==null?void 0:R())===1?Object.assign({},t(),{avatar:{avatarViewModel:Object.assign({},_.A(t().avatar,_.qP),{avatarImageSize:"AVATAR_SIZE_48"})}}):t()}})}}),_.S(_.vK,{data:function(){return Y().avatarStackViewModel}},{avatarStackViewModel:function(Z){return _.S(_.UB,{data:Z.data})}}),_.S(_.y_,{className:_.e7("ytReelChannelBarViewModelChannelName",(D.ytReelChannelBarViewModelChannelNameLarge=function(){return(R==null?void 0:R())===1},D)),
text:function(){return Y().channelName},
linkInheritColor:!0,userInput:!0}),_.S("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.S(_.vK,{data:function(){return Y().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Z){var t=Z.data;
return _.S(_.J7,{data:function(){return(R==null?void 0:R())===1?Object.assign({},t(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},t().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):t()},
isOverlay:!1})},
buttonViewModel:_.TV})),_.S("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.S(_.vK,{data:function(){var Z,t;return(t=_.A((Z=Y())==null?void 0:Z.sponsorButtonViewModel,TiE))==null?void 0:t.sponsorButton}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"mf");var rZE=_.RT(function(D){var Y=function(){var Z;return(D==null?void 0:(Z=D.overlayDensity)==null?void 0:Z.call(D))===1?22:16},R={};
return _.S("yt-reel-multi-format-link-view-model",{class:_.e7("ytReelMultiFormatLinkViewModelHost",(R.ytReelMultiFormatLinkViewModelHostTall=!0,R.ytReelMultiFormatLinkViewModelHostLarge=function(){var Z;return((Z=D.overlayDensity)==null?void 0:Z.call(D))===1},R))},_.S(_.PK,{ariaLabel:function(){return D.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return D.data().command}},_.S("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.S(_.T,{cond:function(){return D.data().icon},
then:function(Z){return _.S(_.Rt,{data:Z,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:Y})}}),_.S(_.y_,{text:function(){return D.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"nf");
rZE.idomCompat=!0;var w89=_.RT(function(D){var Y=D.data;var R=D.overlayDensity;var Z=_.dI("yt-shorts-suggested-action-view-model");D=_.a(_.ae(!1,void 0,"xDqzhe"));var t=D.next().value,X=D.next().value;D=_.a(_.ae(!1,void 0,"LI9CFd"));var M=D.next().value,W=D.next().value,z=function(){return Y().isMultiLineSa},I=_.Ax(lgU,function(){var Q,E;
return(E=(Q=Y().toggleableContent)==null?void 0:Q.entityKey)!=null?E:""}),F=function(){var Q,E,B;
return(B=Y().toggleableContent)!=null&&B.entityKey?(E=(Q=I())==null?void 0:Q.value)!=null?E:!1:!1},G=function(){var Q,E,B,O,Wo,Sb,VU,AS,nM,Ho,KM;
return Y().toggleableContent?F()?(Q=Y().toggleableContent)==null?void 0:Q.toggledData:(E=Y().toggleableContent)==null?void 0:E.untoggledData:{primaryText:(AS=(B=Y().defaultContent)==null?void 0:B.primaryText)!=null?AS:Y().text,secondaryText:(O=Y().defaultContent)==null?void 0:O.secondaryText,onTapCommand:(nM=(Wo=Y().defaultContent)==null?void 0:Wo.onTapCommand)!=null?nM:Y().onTapCommand,icon:(Ho=(Sb=Y().defaultContent)==null?void 0:Sb.icon)!=null?Ho:Y().icon,image:(KM=(VU=Y().defaultContent)==null?
void 0:VU.image)!=null?KM:Y().image}},V=function(){return z()?Y().trailingTapTarget:void 0},e=function(Q,E){return function(){return t()?E:Q}},r=function(){return{leadingSection:e("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(R==null?void 0:R())===1?e("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):e("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:e("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:e("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
D={};D=_.e7((D.ytShortsSuggestedActionViewModelStaticHost=function(){return!z()},D.ytShortsSuggestedActionViewModelDynamicHost=z,D.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return z()&&M()},D.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return z()&&!M()},D));
_.$s(function(){if(z()){var Q=0,E;if((E=Y().animationParams)==null?0:E.shouldExpand){var B,O;Q=((O=(B=Y().animationParams)==null?void 0:B.expansionDelaySecs)!=null?O:0)*1E3}var Wo,Sb=((Wo=Y().animationParams)==null?0:Wo.shouldExpand)?setTimeout(function(){X(!0)},Q):void 0,VU,AS;
Q=((VU=Y().animationParams)==null?0:VU.visibilityDelaySecs)?((AS=Y().animationParams)==null?NaN:AS.visibilityDelaySecs)*1E3:0;var nM=setTimeout(function(){W(!0)},Q);
_.w2(function(){Sb&&clearTimeout(Sb);clearTimeout(nM)})}});
var l=function(Q){_.BL(Q,Object.assign({},{form:{element:Z.value}}))},U=_.F4(function(){var Q,E=(Q=G())==null?void 0:Q.onTapCommand;
E&&l(E)}),K=_.F4(function(){var Q,E;
if(Q=(E=V())==null?void 0:E.onTapCommand)return l(Q),!1}),H=_.Ap({"vertical-align":"bottom",
"border-radius":function(){var Q;return z()?((Q=Y().defaultContent)==null?0:Q.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Q,E,B;return z()&&((Q=Y().defaultContent)==null?0:Q.imageSize)?((B=(E=Y().defaultContent)==null?void 0:E.imageSize)!=null?B:24)+"px":null},
height:function(){var Q,E,B;return z()&&((Q=Y().defaultContent)==null?0:Q.imageSize)?((B=(E=Y().defaultContent)==null?void 0:E.imageSize)!=null?B:24)+"px":null}}),c={};
return _.S("yt-shorts-suggested-action-view-model",{class:D,el:Z},_.S("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.S("button",{class:_.e7(function(){return z()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Q;
return(Q=Y().useFullRoundedBorder)!=null&&Q?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!V()&&z()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":z()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Q;
return(Q=Y().disableFixedHeight)!=null&&Q?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(c.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(R==null?void 0:R())===1},c)),
"on:click":U},_.S(_.CO,{model:{color:4}}),_.S("div",{class:_.e7(function(){return z()?r().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.S(_.T,{cond:function(){var Q;
return(Q=G())==null?void 0:Q.image},
then:function(Q){return _.S(_.Rt,{data:Q,alt:"",className:function(){return z()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:H})}}),_.S(_.T,{cond:function(){var Q,E;
return(Q=G())==null?void 0:(E=Q.icon)==null?void 0:E.iconType},
then:function(Q){return _.S(_.nB,{icon:Q,active:F,className:function(){return z()?t()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.S("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.S(_.T,{cond:function(){var Q;
return(Q=G())==null?void 0:Q.primaryText},
then:function(Q){return _.S("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.S(_.y_,{text:Q}))}}),_.S(_.T,{cond:function(){var Q;
return(Q=G())==null?void 0:Q.secondaryText},
then:function(Q){return _.S("div",{class:function(){return r().secondaryText()}},_.S(_.y_,{text:Q}))}}))),_.S(_.T,{cond:V,
then:function(Q){return _.S("div",{class:function(){return r().trailingSection()},
"aria-label":function(){var E;return(E=Q().a11yLabel)!=null?E:""},
"on:click":K,role:"button",tabindex:0},_.S(_.CO,{model:{color:4}}),_.S(_.nB,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"of");var $19=_.RT(function(D){var Y=D.data;var R=D.overlayDensity;var Z=_.dI("yt-shorts-video-title-view-model");D=_.F4(function(M){if(_.KH(_.Um(M),Z.value,["A".toString()]))return!1;(M=Y().truncatedTextOnTapCommand)&&_.BL(M);return!1});
var t={},X={};return _.S("yt-shorts-video-title-view-model",{el:Z,class:_.e7("ytShortsVideoTitleViewModelHost",(t.ytShortsVideoTitleViewModelHostClickable=function(){return!!Y().truncatedTextOnTapCommand},t)),
"on:click":D},_.S("h2",{class:_.e7("ytShortsVideoTitleViewModelShortsVideoTitle",(X.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(R==null?void 0:R())===1},X))},_.S(_.y_,{text:function(){return Y().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"pf");_.v29=_.RT(function(D){var Y=D.data;var R=D.overlayDensity;return _.S("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.S(_.vK,{data:function(){return Y().metadataItems}},{badgeViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(_.sq,{data:Z.data}))},
playerDisclosureViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(_.AZu,{data:Z.data}))},
shortsSuggestedActionViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(w89,{data:Z.data,overlayDensity:R}))},
reelChannelBarViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(n2z,{data:Z.data,overlayDensity:R}))},
reelMultiFormatLinkViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(rZE,{data:Z.data,overlayDensity:R}))},
shortsVideoTitleViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S($19,{data:Z.data,overlayDensity:R}))},
reelSoundMetadataViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(_.$kT,{data:Z.data,overlayDensity:R}))},
toggleButtonViewModel:function(Z){return _.S("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.S(_.JV,{data:Z.data}))}}))},"qf");var o2I=_.RT(function(D){var Y=_.YC(D,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),R=Y.size,Z=Y.onTap,t=Y.disabled,X=Y.tooltipText;return _.S("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.S(_.Sn,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:R(),disabled:t(),tooltipText:X(),onTap:Z}},
iconName:D.iconType}))},"rf"),b0k=_.RT(function(D){function Y(F){F.stopPropagation();
F.code==="ArrowUp"?(F.preventDefault(),NFb(W.value)):F.code==="ArrowDown"?(F.preventDefault(),l3n(W.value)):F.code==="KeyM"?bzM():(F.code==="KeyK"||F.code==="Space")&&ydU(z())}
var R=_.YC(D,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});D=R.previousButtonDisabled;var Z=R.nextButtonDisabled,t=R.data,X=R.playabilityStatus,M=R.previewThumbnail,W=_.dI("ytd-shorts-miniplayer-overlay"),z=_.qW(_.BmU),I;_.rf(function(){(I=_.k2(W.value))&&I.addEventListener("keydown",Y)});
_.w2(function(){var F;(F=I)==null||F.removeEventListener("keydown",Y)});
R=function(){var F,G,V;return(F=t())==null?void 0:(G=F.reelPlayerOverlayRenderer)==null?void 0:(V=G.likeButton)==null?void 0:V.likeButtonRenderer};
return _.S("ytd-shorts-miniplayer-overlay",{el:W,class:"ytdShortsMiniplayerOverlayHost"},_.S("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Ap({"background-image":function(){var F=M();return F?'url("'+_.CB(F.thumbnails)+'")':""}})}),_.S("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.S("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.S(o2I,{iconType:function(){var F=z();
return F===2||F===-1||F===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){ydU(z())},
tooltipText:function(){var F=z();return F===1||F===3?_.fX("PLAYER_LABEL_PAUSE"):_.fX("PLAYER_LABEL_PLAY")}}),_.S(_.e3b,{orientation:"horizontal_right"})),_.S("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.S(o2I,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:D,onTap:function(){NFb(W.value)},
tooltipText:_.fX("PREVIOUS_VIDEO_LABEL")}),_.S(o2I,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Z,onTap:function(){l3n(W.value)},
tooltipText:_.fX("NEXT_VIDEO_LABEL")}),_.f("web_shorts_pip_like_button")?_.S("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.S(Unb,{buttonTooltipPosition:"left",data:R,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.S("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.S(_.T,{cond:function(){var F,G;return _.A((F=t())==null?void 0:(G=F.reelPlayerOverlayRenderer)==null?void 0:G.metapanel,
_.CSV)},
then:function(F){return _.S("div",{class:_.e7("ytdShortsMiniplayerOverlayInteractive")},_.S(_.v29,{data:F}))}})),_.S("div",{class:_.e7("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var F;return!((F=t())==null||!F.adsOverlay)||X()&&!$MU(X())}},_.S("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.S(_.f7k,null)))),_.S(_.T,{cond:function(){var F=t(),G,V;
F=_.A(F==null?void 0:(G=F.adsOverlay)==null?void 0:(V=G.fulfillmentContent)==null?void 0:V.fulfilledLayout,wjY);return _.A(F==null?void 0:F.renderingContent,y0b)},
then:function(F){return _.S("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.S(AIY,{data:F}))}}))},"sf");var JdU=_.RT(function(){var D=_.a(_.ae(new _.FL(NaN,NaN),void 0,"HSMFk")),Y=D.next().value,R=D.next().value;D=_.a(_.ae(!1,void 0,"uaAxwf"));var Z=D.next().value,t=D.next().value,X=_.a(_.ae(!1,void 0,"nVSwef"));D=X.next().value;var M=X.next().value,W=_.DH().resolve(_.mL).miniplayerPropSignalMap[0],z=W.data,I=W.shortsData,F=W.nextButtonDisabled,G=W.shortsPreviewThumbnail,V=W.previousButtonDisabled,e=W.externalPlaylistData;X=W.toastData;var r=W.playabilityStatus,l=W.isDisabled,U=W.playerVe,K=W.closeVe;
W=_.qW(_.C9);_.gI("yt-pip-window-resized",function(E){R(E)});
_.gI("yt-activate-pip-miniplayer",function(){return _.C(function(E){M(!0);_.V9(E)})});
var H=function(){var E;return!((E=e())==null||!E.contents)&&Z()},c=function(){var E=Y(),B=!!z(),O=H();
E=E.clone();B&&(E.height-=76);O&&(E.height-=285);return E},Q=function(){t(!Z())};
_.r2(function(){var E=U(),B=_.K2(11),O=_.Ud(11);B&&O&&E&&(_.Qk(B,O,E),O=K())&&(_.BC(B,E,[O]),_.E7(B,[O]))},"HPkp0c");
return _.S("ytd-pip-container",{class:"ytdPipContainerHost"},_.S(_.T,{cond:D,then:function(){return _.S(_.Uc9,{isDisabled:l,playabilityStatus:r,size:c})}}),_.S(_.T,{cond:z,
then:function(){return _.S(_.JFu,{data:z,expanded:Z,onExpandClick:Q,playlistData:e})}}),_.S(_.T,{cond:H,
then:function(){return _.S("div",{class:"ytdPipContainerPlaylistPanel"},_.S(_.JME,{data:e,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.S(_.T,{cond:W,
then:function(){return _.S(b0k,{data:I,nextButtonDisabled:F,previousButtonDisabled:V,playabilityStatus:r,previewThumbnail:G})}}),_.S("div",{class:"ytdPipContainerToast"},_.S(_.K_K,{toastData:X})))},"tf");var x4=function(D,Y){var R=this;this.pipController=D;this.JSC$18588_clientRoot=Y;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=pRM();this.watchPipEnabled=_.f("web_watch_pip");this.shortsPipEnabled=_.f("web_shorts_pip");this.JSC$18588_watchWhileEnabled=_.f("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;_.rm(_.Dl(),qHU,function(Z){R.isSingleOptionSurveyActive=Z});
this.JSC$18588_onPlayerPlayVideo=this.JSC$18588_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);_.pI(_.Bm.getInstance(),this.miniplayerServiceActionMap,this.JSC$18588_clientRoot);D.pictureInPictureSupported()&&_.bo("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},dOV,m10,U1k,qG0,H09,sME;
x4.prototype.handleMediaSessionPipActivation=function(){var D=this,Y;return _.C(function(R){_.AG().mediaSessionPipActivation=!0;Y=_.DH().resolve(_.Z4);return Y.isOnWatch()&&D.watchPipEnabled?(_.AG().watchPipActivation=!0,_.yZE(D,Y.data),R.jumpTo(0)):Y.isOnShorts()&&D.shortsPipEnabled?(_.AG().shortsPipActivation=!0,_.NXE(D),R.jumpTo(0)):D.isMiniplayerActive()&&D.watchPipEnabled&&!D.watchWhileMode?R.yield(l7b(D),0):R.jumpTo(0)})};
var l7b=function(D){var Y,R,Z,t;return _.C(function(X){if(X.nextAddress==1)return Y=!D.miniplayerToPipMode,R=D.playerElement,Z=D.miniplayerData,t=D.watchResponse,X.yield(D.deactivate(),2);if(X.nextAddress!=3)return Y?(_.AG().mediaSessionPipActivation=!0,_.AG().watchPipActivation=!0):_.AG().miniplayerButtonActivation=!0,X.yield(D.activate(R,Z,t),3);D.miniplayerToPipMode=Y;_.V9(X)})};
x4.prototype.onDownloadedVideoDeleted=function(D){var Y,R=_.A((Y=this.miniplayerData)==null?void 0:Y.watchEndpoint,_.Od),Z,t;R&&((Z=this.watchResponse)==null?void 0:(t=Z.playerResponse)==null?void 0:t.offlineState)!==void 0&&(Y=R.videoId)&&D&&Y===D&&this.close()};
x4.prototype.onShowMiniplayerCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G,V;return _.C(function(e){switch(e.nextAddress){case 1:return R=_.A(D,D0z),t=(Z=R)==null?void 0:Z.miniplayerCommand,X=_.A(t,_.Od),t&&X&&!Y.active?e.yield(_.N8.getInstance(),2):e.return();case 2:return M=e.yieldResult,e.yield((W=M)==null?void 0:W.get("yt-miniplayer-shown-video-id"),3);case 3:z=e.yieldResult;I=X.videoId;if(!I||z===I)return e.return();F=_.DH().resolve(_.Z4);if(F.isOnWatch())return _.Jk(Error("Hj")),e.return();
G={channelItem:{externalId:btoa(I)}};Y.readyToResumeVe=_.TP(121253,void 0,void 0,G);_.AG().showMiniplayerCommandActivation=!0;return e.yield(_.X$E(Y,t,!0),4);case 4:return Y.active&&(_.PW(Y,{readyToResumeVe:Y.readyToResumeVe,isReadyToResume:!0}),Y.isReadyToResume=!0),e.yield((V=M)==null?void 0:V.set("yt-miniplayer-shown-video-id",X.videoId),5);case 5:Y.readyToResumeVe=void 0,_.V9(e)}})};
x4.prototype.init=function(D){this.miniplayerEl?_.Jk(new _.AT("MiniplayerService already initialized.")):this.miniplayerEl=D};
x4.prototype.isInitialized=function(){var D=!!this.miniplayerEl;D||_.Jk(new _.AT("MiniplayerService used before initialized."));return D};
_.yZE=function(D,Y){if(D.isInitialized()){var R=_.k5(Y.response,!1,Y.playerResponse),Z=_.DH().resolve(_.Z4).getPlayerFromWatch();_.AG().currentEndpoint=R.watchEndpoint||null;D.activate(Z,R,Y)}};
_.NXE=function(D){if(D.isInitialized()){var Y=_.DH().resolve(_.Z4).getPlayerFromShorts();D.activate(Y)}};
dOV=function(D,Y){var R;(R=!D.isInitialized())||(R=_.DH().resolve(_.Z4).isOnWatch()&&D.watchPipMode,R=!(D.isMiniplayerActive()&&(_.AG().userActivation||_.AG().lockupActivation||R)));if(R)return!1;JZb(D,Y)?_.mG(D):sME(D,Y);return D.watchPipMode?!_.DH().resolve(_.Z4).isOnWatch():!0};
x4.prototype.isMiniplayerActive=function(){return this.active};
var JZb=function(D,Y){var R;Y=(R=_.A(Y,_.Od))==null?void 0:R.videoId;var Z,t;D=(t=_.A((Z=D.miniplayerData)==null?void 0:Z.watchEndpoint,_.Od))==null?void 0:t.videoId;return Y!=null&&Y===D};
x4.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.MX(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.CX(this.miniplayerEl,"yt-navigate-home-action"))};
_.X$E=function(D,Y,R,Z){R=R===void 0?!1:R;var t,X,M;return _.C(function(W){switch(W.nextAddress){case 1:if(D.active){W.jumpTo(2);break}t=_.DH().resolve(_.Z4);if(M=(X=D.playerElement)!=null?X:t.getPlayerFromWatch()){W.jumpTo(3);break}return W.yield(_.DH().resolve(_.CH),4);case 4:M=t.getPlayerFromWatch();case 3:if(!M){_.Jk(Error("Jj"));W.jumpTo(2);break}return W.yield(D.activate(M,Z),2);case 2:return D.active?W.yield(sME(D,Y,R),0):W.return()}})};
x4.prototype.activate=function(D,Y,R){var Z=this,t,X,M,W,z,I,F,G,V;return _.C(function(e){switch(e.nextAddress){case 1:if(!Z.isInitialized())return e.return();if(!D)return _.Jk(Error("Jj")),e.return();if(_.We_()||Z.isMiniplayerActive())var r=!0;else r=_.AG().watchPipActivation||_.AG().watchWhileActivation,_.DH().resolve(_.Z4).isOnWatch()&&!r?(_.Jk(new _.AT("miniplayer activated on watch page")),r=!0):r=_.AG().watchWhileActivation?Z.userDeactivatedWatchWhile||!!document.pictureInPictureElement||umM():
!1;if(r)return CY1(),e.return();t=_.AG().mediaSessionPipActivation;X=_.AG().shortsPipActivation;M=_.AG().watchPipActivation;z=(W=_.AG().watchWhileActivation)||M;I=M||X;if(!Z.pictureInPictureEnabled()||!I){e.jumpTo(2);break}return e.yield(kIt(Z,t),3);case 3:if(!e.yieldResult)return _.Jk(Error("Ij")),CY1(),e.return();case 2:return Z.setActive(!0),Z.watchResponse=R,Z.playerElement=D,Z.updateMiniplayerData(Y),e.yield(U1k(Z,D),4);case 4:if(!Z.active)return _.Jk(new _.AT("miniplayer deactivated during activation")),
Z.removePlayerListeners(),e.return();r=_.DH().resolve(_.xW);r.addEventListener("yt-navigate",_.jN(Z,Z.onPlaylistNavigate));r.addEventListener("yt-playlist-data-updated",_.jN(Z,Z.JSC$18588_onPlaylistDataUpdated));Z.JSC$18588_onPlaylistDataUpdated();CY1();Z.JSC$18588_watchWhileEnabled&&_.KJk(Z,W);Z.pictureInPictureEnabled()&&Z.shortsPipEnabled&&(Z.shortsPipMode=X,_.Dl().dispatch(dL1(Z.shortsPipMode)));Z.pictureInPictureEnabled()&&Z.watchPipEnabled&&(Z.watchPipMode=M,_.MSj(Z.handleMediaSessionPipActivation));
Z.player&&(F=Z.player.getPlayerState(),G=F===1,_.Dl().dispatch(t9b(F)),_.WC(Z.miniplayerEl,"yt-miniplayer-play-state-changed",[G]),_.AG().isVideoPlaying=G);_.WC(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");h3I(Z);_.LJK(Z);if(Z.shortsPipMode||Z.watchPipMode)e=e.yield(_.CX(Z.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{r=e.yield;var l=_.CX(Z.miniplayerEl,"yt-activate-miniplayer",[z])[0];e=r.call(e,l,6)}return e;case 6:if(Z.watchResponse&&!_.f("miniplayer_copy_screen_on_activation_killswitch")){r=
Z.getScreenLayer();l=_.K2(0);var U=eAo(0);l&&U&&(_.L2(l,U,r),r===0&&VQo(void 0,0))}m10(Z);qG0(Z,!0);(V=Z.getPlayerElement())==null||V.focusOnPlayer();_.V9(e)}})};
x4.prototype.updateMiniplayerData=function(D){this.miniplayerData=D;_.PW(this,{data:D})};
_.LJK=function(D){var Y,R,Z=((Y=D.miniplayerData)==null?void 0:(R=Y.miniplayerRenderer)==null?void 0:R.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";Y=D.watchWhileMode||D.watchPipMode?Z&&!_.DH().resolve(_.Z4).isOnWatch():Z;_.PW(D,{isDisabled:Y});var t,X;R=_.A((t=D.miniplayerData)==null?void 0:(X=t.miniplayerRenderer)==null?void 0:X.minimizedEndpoint,_.bS);Y&&R&&_.DH().resolve(_.y$).openSheet({openPopupActionCommand:{openPopupAction:R}},D.miniplayerEl)};
m10=function(D){if(D.watchResponse&&!H09(D)){var Y,R=(Y=D.watchResponse.playerResponse)==null?void 0:Y.trackingParams;R&&(_.PW(D,{expandVe:_.TP(35989),closeVe:_.TP(34699),readyToResumeCloseVe:_.TP(131070),repositionVe:_.TP(226204),resizeVe:_.TP(226205)}),_.PW(D,{playerVe:_.oT(R)}))}};
U1k=function(D,Y){return _.C(function(R){if(R.nextAddress==1)return Y.preparePlayer(),R.yield(Y.getPlayerPromise(),2);D.player=R.yieldResult;D.player&&(D.player.addEventListener("onPlayVideo",D.JSC$18588_onPlayerPlayVideo),D.player.addEventListener("onCloseMiniplayer",D.onPlayerCloseMiniplayer),D.player.addEventListener("onExpandMiniplayer",D.onPlayerExpandMiniplayer),D.player.addEventListener("onStateChange",D.onPlayerStateChange));_.V9(R)})};
_.u=x4.prototype;_.u.JSC$18588_onPlayerPlayVideo=function(D){var Y=D.sessionData&&"autonav"in D.sessionData,R;D.sessionData&&D.sessionData.itct&&(R=D.sessionData.itct);var Z=D.watchEndpoint;Y=Z&&Y?_.Q3U(Z,R):_.ZQ(D.videoId,D.listId||void 0,R);D.sessionData&&_.Rb(_.A(Y.commandMetadata,_.GA).url,D.sessionData);sME(this,Y)};
_.u.onPlayerExpandMiniplayer=function(){_.mG(this)};
_.u.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.u.onPlayerStateChange=function(){if(this.player){var D=this.player.getPlayerState(),Y=D===1;_.Dl().dispatch(t9b(D));_.Dl().dispatch(_.u24(D));_.WC(this.miniplayerEl,"yt-miniplayer-play-state-changed",[Y]);_.AG().isVideoPlaying=Y;if(D===0){Y=!_.tG.getInstance().isAutoplaySetExplicitly();var R,Z,t,X,M,W,z=(R=this.watchResponse.response)==null?void 0:(Z=R.contents)==null?void 0:(t=Z.twoColumnWatchNextResults)==null?void 0:(X=t.autoplay)==null?void 0:(M=X.autoplay)==null?void 0:(W=M.autoplayExplicitChoiceDialogRenderer)==
null?void 0:W.confirmDialogRenderer;Y&&z&&this.player.setAutonavState(1)}D===0&&this.watchWhileMode&&this.deactivate()}};
_.u.onPlaylistNavigate=function(D,Y){var R=this,Z,t,X,M,W,z,I;return _.C(function(F){if(F.nextAddress==1){if(!_.A(Y.endpoint,_.Od))return F.return();_.AG().currentEndpoint=Y.endpoint;_.WC(R.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.DH().resolve(_.Z4).isOnWatch()&&(R.watchWhileMode||R.watchPipMode))return F.return();D.stopPropagation();(X=(t=_.A((Z=Y.endpoint)==null?void 0:Z.commandMetadata,_.GA))==null?void 0:t.url)&&Y.tempData&&!_.y7.isEmpty(Y.tempData)&&_.Rb(X,Y.tempData);M={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};W=new MkY(function(){return R.getPlayerElement()},M,{layer:R.getScreenLayer()});
z=function(G){W.processChunk({endpoint:Y.endpoint,data:G})};
x10(R);R.miniplayerFetchRequest=Pm0(R,Y.endpoint,z);_.SX(F,2);return F.yield(R.miniplayerFetchRequest,4)}if(F.nextAddress!=2)return I=F.yieldResult,QIh(R,I),_.xw(F,0);_.Gl(F);_.V9(F)})};
_.u.JSC$18588_onPlaylistDataUpdated=function(){var D=_.DH().resolve(_.xW).getPlaylistData();this.hasPlaylistData=!!D;_.PW(this,{externalPlaylistData:D||{}})};
_.u.close=function(D){if(this.isInitialized())if(D){if(!((this.watchWhileMode||this.watchPipMode)&&_.DH().resolve(_.Z4).isOnWatch()||this.shortsPipMode)){var Y;(Y=this.getPlayerElement())==null||Y.stop()}this.deactivate()}else _.EH().closeMiniplayer(this.miniplayerEl)};
_.u.deactivate=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1){if(!Y.isInitialized()||!Y.active)return M.return();Y.setActive(!1);x10(Y);(R=!!D&&JZb(Y,D))&&Y.isSingleOptionSurveyActive&&_.CX(Y.miniplayerEl,"yt-show-watch-page-survey",[Y.isSingleOptionSurveyActive]);return M.yield(BXt(Y),2)}if(M.nextAddress!=3){qG0(Y,!1);Y.isReadyToResume=!1;Y.watchResponse=void 0;Y.updateMiniplayerData(void 0);Y.shortsPipMode&&(Y.shortsPipMode=!1,_.Dl().dispatch(dL1(Y.shortsPipMode)),Ztu(Y.pipController),
(Z=Y.player)==null||Z.setInternalSize(NaN,NaN));Y.watchPipMode&&(Y.watchPipMode=!1,Ztu(Y.pipController));(t=Y.watchWhileMode)&&_.KJk(Y,!1);Y.removePlayerListeners();var W=_.DH().resolve(_.xW);W.removeEventListener("yt-navigate",_.jN(Y,Y.onPlaylistNavigate));W.removeEventListener("yt-playlist-data-updated",_.jN(Y,Y.JSC$18588_onPlaylistDataUpdated));_.AG().currentEndpoint=null;_.WC(Y.miniplayerEl,"yt-miniplayer-endpoint-changed");Y.playerElement=null;CY1();if(Y.shortsPipMode||Y.watchPipMode)M=M.jumpTo(3);
else{W=M.yield;var z=_.CX(Y.miniplayerEl,"yt-deactivate-miniplayer",[R,t])[0];M=W.call(M,z,3)}return M}(X=Y.player)==null||X.setInternalSize(NaN,NaN);Y.player=null;_.V9(M)})};
var BXt=function(D){var Y;return _.C(function(R){Y=_.DH().resolve(_.Z4);return D.shortsPipMode?R.yield(Y.movePlayerToShorts(D.playerElement),0):R.yield(Y.movePlayerToWatch(D.playerElement),0)})};
x4.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18588_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
x4.prototype.setActive=function(D){this.active=D;this.isSingleOptionSurveyActive?_.CX(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.CX(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Dl().dispatch(_.u0({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.KJk=function(D,Y){D.watchWhileMode=Y;_.PW(D,{watchWhile:Y})};
qG0=function(D,Y){if(!H09(D))if(D.shortsPipMode||D.watchPipMode){var R;(R=D.player)==null||R.setDocumentPictureInPicture(Y)}else{var Z;(Z=D.player)==null||Z.setMinimized(Y)}};
H09=function(D){return D.watchWhileMode&&_.f("kevlar_watch_while_counterfactual")};
_.mG=function(D){var Y;return _.C(function(R){switch(R.nextAddress){case 1:if(!D.isInitialized())return R.return();_.SX(R,2);return R.yield(D.miniplayerFetchRequest,4);case 4:_.xw(R,3);break;case 2:_.Gl(R);case 3:D.watchResponse&&D.miniplayerData&&D.miniplayerData.watchEndpoint?(Y={url:D.watchResponse.url,endpoint:D.miniplayerData.watchEndpoint,data:D.watchResponse,miniplayer:!0},_.MX(D.miniplayerEl,"yt-navigate-cache",Y)):D.miniplayerData&&D.miniplayerData.watchEndpoint&&_.MX(D.miniplayerEl,"yt-navigate",
{endpoint:D.miniplayerData.watchEndpoint}),_.V9(R)}})};
sME=function(D,Y,R){var Z,t,X,M;return _.C(function(W){if(W.nextAddress==1){if(JZb(D,Y))return W.return();_.AG().currentEndpoint=Y;_.WC(D.miniplayerEl,"yt-miniplayer-endpoint-changed");_.WC(D.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.AG().isVideoPlaying=!1;Z={clientParams:{miniplayer:!0,autoSaveToQueue:!R}};t=new MkY(function(){return D.getPlayerElement()},Z,{layer:D.getScreenLayer(),
parentLayer:0},void 0,D.readyToResumeVe);X=function(z){var I,F,G=Object.assign({},(I=z.playerResponse)==null?void 0:(F=I.playerConfig)==null?void 0:F.playbackStartConfig,{startPaused:!0}),V;R&&((V=z.playerResponse)==null?0:V.playerConfig)&&(z.playerResponse.playerConfig.playbackStartConfig=G);t.processChunk({endpoint:Y,data:z})};
x10(D);D.miniplayerFetchRequest=Pm0(D,Y,X);_.SX(W,2);return W.yield(D.miniplayerFetchRequest,4)}if(W.nextAddress!=2)return M=W.yieldResult,QIh(D,M),_.xw(W,0);_.Gl(W);_.V9(W)})};
x4.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var x10=function(D){D.miniplayerFetchRequest&&(D.miniplayerFetchRequest.cancel&&D.miniplayerFetchRequest.cancel("Active request obsolete"),D.miniplayerFetchRequest=null)},Pm0=function(D,Y,R){var Z=_.$Z.instance,t,X=(t=_.A(Y.commandMetadata,_.GA))==null?void 0:t.url,M;
t=!X||_.f("disable_miniplayer_tempdata")?{}:(M=uSM(X))!=null?M:{};return x5(Z,Y,t,window.location.href,"watch",function(W,z){R(z)},function(W){return W!==D.miniplayerFetchRequest})},QIh=function(D,Y){var R;
_.C(function(Z){if(!Y)return Z.return();D.watchResponse=Y;m10(D);h3I(D);R=_.k5(Y.response,!1,Y.playerResponse);if(D.isMiniplayerActive()){Y.response&&(D.playerElement.watchNextData=Y.response);var t=_.y7.getValueByKeys.apply(_.y7,[Y].concat(_.oK(V91)));_.y7.getValueByKeys.apply(_.y7,[Y].concat(_.oK(r8L)))&&t&&_.DH().resolve(_.xW).setAutoplayRenderer(t);if(t)if(_.f("kevlar_is_pupi_enabled")){var X,M,W,z,I,F=((X=Y.response)==null?0:(M=X.playerOverlays)==null?0:(W=M.playerOverlayRenderer)==null?0:(z=
W.autonavToggle)==null?0:(I=z.autoplaySwitchButtonRenderer)==null?0:I.enabled)?2:1;_.tG.getInstance().setState(F,!1,!1)}else X=fBb()?2:1,(F=D.player)==null||F.setAutonavState(X);D.updateMiniplayerData(R);_.LJK(D)}_.V9(Z)})},h3I=function(D){var Y,R,Z=(Y=D.watchResponse)==null?void 0:(R=Y.playerResponse)==null?void 0:R.playabilityStatus,t;
Y=Z==null?void 0:(t=Z.miniplayer)==null?void 0:t.miniplayerRenderer;(Y==null?void 0:Y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&Y.minimizedEndpoint&&_.zA(D.miniplayerEl,[Y.minimizedEndpoint]);_.PW(D,{playabilityStatus:Z})};
x4.prototype.openToast=function(D,Y){_.PW(this,{toastData:{data:D,label:Y}})};
_.PW=function(D,Y){(0,D.miniplayerPropSignalMap[1])(Y)};
x4.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var D;return this.playerElement?this.playerElement:(D=_.aU(this.miniplayerEl).querySelector("#player-container"))==null?void 0:D.firstElementChild};
x4.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var kIt=function(D,Y){Y=Y===void 0?!1:Y;var R,Z,t,X,M,W,z;return _.C(function(I){if(I.nextAddress==1){R=navigator.userActivation.isActive||Y;if(!R||!D.pictureInPictureSupported())return I.return(!1);Z=p8z(D);t=Z.width;X=Z.height;return I.yield(D.pipController.openWindow({width:t,height:X}),2)}M=I.yieldResult;W=D.pipController.getWindow();if(!W||!M)return I.return(!1);W.document.body.style.overflow="hidden";z=k1S(W);t0h(D.pipController,function(){E20(D);z()});
return I.return(!0)})},p8z=function(D){var Y=_.AG().shortsPipActivation,R,Z;
D=Y?.5625:(Z=(R=D.player)==null?void 0:R.getVideoAspectRatio())!=null?Z:16/9;R=Math.min(window.innerWidth,window.innerHeight)/2;Y=Y?0:76;return D>1?new _.FL(R,Y+R/D):new _.FL(R*D,Y+R)},E20=function(D){var Y;
_.C(function(R){Y=_.DH().resolve(_.Z4);return Y.isOnWatch()&&D.watchPipMode||Y.isOnShorts()&&D.shortsPipMode?R.yield(D.deactivate(),0):D.miniplayerToPipMode?R.yield(l7b(D),0):D.watchPipMode?R.yield(_.mG(D),0):R.jumpTo(0)})};
x4.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.YF.Object.defineProperties(x4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
x4[YS]=[s99,pWY];var g2I="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(" "),
d1K="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(" "),i0T="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
O09="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var cZh=null;var DCE={},YW9=(DCE.initialized={priority:10,callback:function(D){var Y=_.DH();Y.addProvider({provide:PgU,useClass:XZk});Y.addProvider({provide:_.sJE,useFactory:function(){return new Q07}});
Y.addProvider({provide:Jy,useValue:_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});Y.addProvider({provide:XoT,useValue:5184E6});Y.addProvider({provide:bMb,useValue:_.b$()});Y.addProvider({provide:L79,useClass:pS7});Y.addProvider({provide:xo,useClass:xo});Y.addProvider({provide:_.CH,useFactory:function(){return iaz.promise}});
Y.addProvider({provide:_.czU,useFactory:function(){return _.OaL.promise}});
Y.addProvider({provide:HY9,useValue:function(){var z;return((z=_.sm())==null?void 0:z.getPlayer())||null}});
var R={};Y.addProvider((R.provide=_.uO,R.useFactory=function(z,I){return function(){return BWU(z,I)}},R[YS]=[Jy,
XoT],R));R={};Y.addProvider((R.provide=_.Sm,R.useClass=YLI,R[YS]=[Jy,XoT],R));R={};Y.addProvider((R.provide=_.iz5,R.useClass=szh,R[YS]=[_.Sm],R));Y.addProvider({provide:rw,useFactory:_.Dl});Y.addProvider({provide:Xc,useFactory:_.Dl});Y.addProvider({provide:PU9,useFactory:_.Dl});Y.addProvider({provide:k7z,useFactory:_.Dl});Y.addProvider({provide:_.xZ,useFactory:_.Dl});Y.addProvider({provide:VA,useValue:_.GL});Y.addProvider({provide:Dy9,useClass:esU});Y.addProvider({provide:KX4,useClass:UeV});Y.addProvider({provide:pi,
useClass:pi});Y.addProvider({provide:fc,useClass:fc});Y.addProvider({provide:e8,useClass:e8});Y.addProvider({provide:nc,useClass:nc});Y.addProvider({provide:DN,useClass:DN});Y.addProvider({provide:oA,useClass:oA});Y.addProvider({provide:eg,useClass:eg});Y.addProvider({provide:_.P90,useValue:AFu});Y.addProvider({provide:_.ya,useFactory:_.n8});Y.addProvider({provide:zH,useFactory:_.nX});R={};Y.addProvider((R.provide=Utj,R.useFactory=function(z){return function(I){var F=F===void 0?{}:F;var G,V,e=(V=
_.A((G=I.endpoint)==null?void 0:G.commandMetadata,_.GA))==null?void 0:V.rootVe;if(e){var r,l;if(G=I.previousCsn||((l=_.A((r=I.endpoint)==null?void 0:r.commandMetadata,by4))==null?void 0:l.parentCsn)){var U=U===void 0?{}:U;if(G!==_.K2(U.layer)||e!==eAo(U.layer))$Fn(G,U.cttAuthInfo,U.layer||0),VQo(G,U.layer||0),r=U.layer||0,_.l1(fvS(r===void 0?0:r),e);F.parentCsn=G}I.endpoint&&G?EbE(z,I.endpoint,F):_.TJ(z,e,void 0,F);var K;((K=I.response)==null?0:K.trackingParams)&&z.graftServerVe(I.response.trackingParams);
var H;((H=I.playerResponse)==null?0:H.trackingParams)&&z.graftServerVe(I.playerResponse.trackingParams);var c;((c=I.reelWatchSequenceResponse)==null?0:c.trackingParams)&&z.graftServerVe(I.reelWatchSequenceResponse.trackingParams)}}},R[YS]=[_.ya],R));
R={};Y.addProvider((R.provide=Bz9,R.useClass=Qzp,R[YS]=[VA,_.xZ],R));R={};Y.addProvider((R.provide=GC,R.useClass=GC,R[YS]=[_.CH,_.xZ],R));R={};Y.addProvider((R.provide=TC,R.useClass=TC,R[YS]=[Xc,_.Yw],R));Y.addProvider({provide:_.OLt,useClass:uEz});R={};Y.addProvider((R.provide=_.b6,R.useClass=Yzk,R[YS]=[_.OLt],R));Y.addProvider({provide:_.y$,useClass:ea});Y.addProvider({provide:_.nnp,useClass:Ht0});Y.addProvider({provide:_.Nf,useClass:Vq});R={};Y.addProvider((R.provide=_.aS,R.useClass=XuI,R[YS]=
[_.aS],R));Y.addProvider({provide:_.M9,useClass:bE_});Y.addProvider({provide:bV,useClass:bV});Y.addProvider({provide:iV,useClass:iV});Y.addProvider({provide:UE,useClass:UE});Y.addProvider({provide:UZ,useClass:UZ});R={};Y.addProvider((R.provide=IV,R.useClass=IV,R[YS]=[_.Yw,_.h6],R));Y.addProvider({provide:Pc,useClass:fY});R={};Y.addProvider((R.provide=EE,R.useClass=EE,R[YS]=[_.y$,Pc],R));_.f("web_enable_feedback_endpoint_resolver")&&(R={},Y.addProvider((R.provide=ww,R.useClass=ww,R[YS]=[rw,nm],R)),
Y.addProvider({provide:nm,useClass:ceE}));_.f("web_enable_feedback_endpoint_resolver_batch_2")&&(R={},Y.addProvider((R.provide=vc,R.useClass=vc,R[YS]=[rw],R)),R={},Y.addProvider((R.provide=$R,R.useClass=$R,R[YS]=[nm],R)));R={};Y.addProvider((R.provide=Qo,R.useClass=Qo,R[YS]=[_.Nf,Pc],R));R={};Y.addProvider((R.provide=mK,R.useClass=mK,R[YS]=[_.Nf],R));R={};Y.addProvider((R.provide=pm,R.useClass=pm,R[YS]=[_.h6,_.b6],R));R={};Y.addProvider((R.provide=xR,R.useClass=xR,R[YS]=[_.h6,_.ya],R));Y.addProvider({provide:GH,
useClass:GH});R={};Y.addProvider((R.provide=Wa,R.useClass=Wa,R[YS]=[rw],R));Y.addProvider({provide:le,useClass:le});Y.addProvider({provide:No,useClass:No});R={};Y.addProvider((R.provide=kz,R.useClass=kz,R[YS]=[rw],R));R={};Y.addProvider((R.provide=Ui,R.useClass=Ui,R[YS]=[_.h6,rw],R));R={};Y.addProvider((R.provide=Kd,R.useClass=Kd,R[YS]=[rw],R));R={};Y.addProvider((R.provide=hg,R.useClass=hg,R[YS]=[rw],R));R={};Y.addProvider((R.provide=q4,R.useClass=q4,R[YS]=[_.b6],R));R={};Y.addProvider((R.provide=
nd,R.useClass=nd,R[YS]=[_.ya],R));R={};Y.addProvider((R.provide=be,R.useClass=be,R[YS]=[IS],R));R={};Y.addProvider((R.provide=ye,R.useClass=ye,R[YS]=[IS],R));Y.addProvider({provide:$z,useClass:$z});Y.addProvider({provide:va,useClass:va});Y.addProvider({provide:Ag,useClass:Ag});R={};Y.addProvider((R.provide=gw,R.useClass=gw,R[YS]=[_.b6,_.Yw],R));Y.addProvider({provide:lV,useClass:lV});R={};Y.addProvider((R.provide=Hc,R.useClass=Hc,R[YS]=[_.h6,_.b6],R));Y.addProvider({provide:Km,useClass:Km});R={};
Y.addProvider((R.provide=Mo,R.useClass=Mo,R[YS]=[rw,_.h6,_.aS],R));R={};Y.addProvider((R.provide=XH,R.useClass=XH,R[YS]=[_.h6,_.Yw],R));Y.addProvider({provide:L1E,useValue:tuU});Y.addProvider({provide:PFb,useValue:aEy});Y.addProvider({provide:ue,useClass:ue});R={};Y.addProvider((R.provide=si,R.useClass=si,R[YS]=[rw],R));R={};Y.addProvider((R.provide=Cd,R.useClass=Cd,R[YS]=[_.M9,_.Yw],R));R={};Y.addProvider((R.provide=oV,R.useClass=oV,R[YS]=[_.Yw],R));Y.addProvider({provide:Ay,useFactory:function(){return new Ay(_.Dl())}});
Y.addProvider({provide:Y25,useFactory:_.kI.getInstance});R={};Y.addProvider((R.provide=kR,R.useClass=kR,R[YS]=[Jy,Y25,_.Yw],R));Y.addProvider({provide:yo,useClass:yo});Y.addProvider({provide:FX,useClass:FX});Y.addProvider({provide:Vo,useClass:Vo});Y.addProvider({provide:_.G0,useClass:_.G0});Y.addProvider({provide:qo,useClass:qo});R={};Y.addProvider((R.provide=RS,R.useClass=RS,R[YS]=[Xc],R));R={};Y.addProvider((R.provide=ZE,R.useClass=ZE,R[YS]=[_.Yw],R));_.f("web_enable_prefetching_videos_on_home")&&
(Y.addProvider({provide:Sa,useClass:Sa}),Y.addProvider({provide:JA,useClass:JA}));R={};Y.addProvider((R.provide=mZ,R.useClass=mZ,R[YS]=[_.Yw],R));Y.addProvider({provide:fm,useClass:fm});R={};Y.addProvider((R.provide=Ve,R.useClass=Ve,R[YS]=[_.h6,_.Yw],R));R={};Y.addProvider((R.provide=ec,R.useClass=ec,R[YS]=[_.Yw],R));Y.addProvider({provide:k4,useClass:k4});Y.addProvider({provide:cc,useClass:cc});R={};Y.addProvider((R.provide=OE,R.useClass=OE,R[YS]=[Xc,_.Yw],R));Y.addProvider({provide:DE,useClass:DE});
R={};Y.addProvider((R.provide=Pa,R.useClass=Pa,R[YS]=[Xc,_.Yw,_.h6],R));R={};Y.addProvider((R.provide=Qe,R.useClass=Qe,R[YS]=[_.Yw],R));R={};Y.addProvider((R.provide=xz,R.useClass=xz,R[YS]=[_.Yw,_.h6],R));R={};Y.addProvider((R.provide=tg,R.useClass=tg,R[YS]=[_.CH],R));R={};Y.addProvider((R.provide=Yz,R.useClass=Yz,R[YS]=[_.CH],R));Y.addProvider({provide:jT,useClass:jT});Y.addProvider({provide:FH,useClass:FH});Y.addProvider({provide:Jg,useClass:Jg});Y.addProvider({provide:fd,useClass:fd});Y.addProvider({provide:TH,
useClass:TH});Y.addProvider({provide:hy,useClass:hy});Y.addProvider({provide:ST,useClass:ST});_.f("kevlar_enable_mss_lazy_load")&&Y.addProvider({provide:_.Hf,useClass:xy9});Y.addProvider({provide:_.rt,useClass:nY});Y.addProvider({provide:ZY,useFactory:function(){return _.Bm.getInstance()}});
Y.addProvider({provide:HLz,useFactory:X$n});Y.addProvider({provide:IS,useFactory:function(){return _.N8.getInstance()}});
Y.addProvider({provide:xLL,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});R={};Y.addProvider((R.provide=_.ja,R.useClass=_.ja,R[YS]=[_.CH,_.Yw,_.ya,HLz,IS,ZY,xLL,VA],R));Y.addProvider({provide:_.Gx,useClass:yA_});Y.addProvider({provide:_.aUK,useClass:uiI});R={};Y.addProvider((R.provide=Lm,R.useClass=Lm,R[YS]=[_.aUK],R));R={};Y.addProvider((R.provide=_.Iq,R.useFactory=function(z){return z.upliftCompletionResolver.promise},R[YS]=[Bz9],R));
R=_.ks("IS_SHELL_LOAD")?"aa":"eocs";var Z=_.ks("IS_SHELL_LOAD")?3:2;_.Q0().parkOrScheduleJob(function(){EEu()},Z,R);
_.Q0().parkOrScheduleJob(function(){_.DH().resolve(GC).start()},2,"eocs");
_.Q0().parkOrScheduleJob(function(){xUI()},2,"eocs");
_.Q0().parkOrScheduleJob(function(){_.DH().resolve(TC).start()},2,"eocs");
_.f("kevlar_debug_data_app_registration_ks")||SZy();Y.addProvider({provide:_.bq,useValue:new mnb(D.root)});Y.addProvider({provide:Pm,useValue:new LpU});Y.addProvider({provide:_.Ei4,useValue:new BAD(D.root)});Y.addProvider({provide:_.Kn,useValue:new pTb});Y.addProvider({provide:_.o8,useClass:A7});Y.addProvider({provide:s99,useClass:AA});_.f("kevlar_network_sli_killswitch")||Y.addProvider({provide:jJu,useValue:Ja1});Y.addProvider({provide:yq,useFactory:gHM});_.f("web_bind_fetch")&&(R={},Y.addProvider((R.provide=
YNu,R.useFactory=dMM,R[YS]=[_.cD(yq)],R)));_.f("web_bind_parse")&&(R={},Y.addProvider((R.provide=RE9,R.useFactory=iUM,R[YS]=[_.cD(yq)],R)));_.f("web_bind_window_request")&&(R={},Y.addProvider((R.provide=Z$9,R.useFactory=OUi,R[YS]=[_.cD(yq)],R)));_.f("web_bind_text_decoder")&&(R={},Y.addProvider((R.provide=tfk,R.useFactory=cJo,R[YS]=[_.cD(yq)],R)));R={};Y.addProvider((R.provide=JSb,R.useFactory=l0i,R[YS]=[_.Iq,rw,_.uO],R));R={};Y.addProvider((R.provide=lUb,R.useClass=Ba,R[YS]=[JSb],R));Y.addProvider({provide:gnu,
useClass:Qlz});Y.addProvider({provide:onb,useClass:ySE});R=[].concat(_.oK(OD));_.f("web_continuation_response_processing")&&R.push(_.PN);R.push(s$E);_.f("enable_share_panel_navigation_logging_fix_on_web")&&R.push(_.r2U);Y.addProvider({provide:o_i,useValue:R});Y.addProvider({provide:tMi,useClass:vnK});Y.addProvider({provide:fGh,useClass:IGz});R={};Y.addProvider((R.provide=D2o,R.useClass=trz,R[YS]=[Xc],R));_.yc.addLowPriorityJob(function(){wtU()});
R={};Y.addProvider((R.provide=hnD,R.useFactory=function(z){return function(I){var F,G=(F=_.A(I.commandMetadata,_.GA))==null?void 0:F.url;if(!G)throw new _.AT("No URL for PBJ Command",I);G=GA5(G,{pbj:"1"});F=L39(G,{})||{};F=Object.assign({},F,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.JQ("STS").toString()});I=_.TZ({command:JSON.stringify(I),session_token:_.JQ("XSRF_TOKEN")});return z.fetch(G,{method:"POST",headers:F,body:I})}},R[YS]=[fGh],R));
R=[];R.push(Y.resolve(onb));Z={};Z=(Z.client_location=_.kI.getInstance(),Z.consistency=_.r7i(),Z.entities=Y.resolve(KX4),Z.response_received_commands=Y.resolve(tMi),Z.store=Y.resolve(_.iz5),Z.tokens=Y.resolve(onb),Z);_.f("web_service_params_response_processor")&&(Y.addProvider({provide:zET,useFactory:function(){var z={};return z.CSI=Y8n(),z.ECATCHER=Dtl(),z}}),Y.addProvider({provide:pqM,
useClass:SNk}),Z.service_params=Y.resolve(pqM));if(_.f("web_shorts_prefetch_service_enabled")){var t=new X4u(Y.resolve(_.Sm));Z.shorts_prefetch=t}Z.adblock_detection=Y.resolve(D2o);Y.addProvider({provide:_.xQ,useClass:_.xQ});t=Y.resolve(_.P90);var X=[];_.f("PremiumClientSharedConfig__enable_att_context_processor")&&(Y.addProvider({provide:frz,useClass:FXE}),X.push(Y.resolve(frz)));if(_.f("owl_pl_await")){var M={};Y.addProvider((M.provide=EK9,M.useFactory=function(z){return new BbE(z)},M[YS]=[_.xQ],
M));
X.push(Y.resolve(EK9))}gRE(t,Y.resolve(fGh),Y.resolve(Dy9),Z,Y.resolve(_.Sm),R,X,Y.resolve(lUb),Y.resolve(gnu));Y.addProvider({provide:_.h6,useValue:_.ED.instance});_.f("start_client_gcf")&&Y.addProvider({provide:nI,useValue:wyb()});Y.addProvider({provide:dUb,useFactory:function(){return new dUb(_.DH().resolve(_.xQ),_.N8.getInstance())}});
_.Q0().parkOrScheduleJob(function(){iLk()},1,"eocs");
R={};Y.addProvider((R.provide=Ff,R.useClass=Ff,R[YS]=[_.uO,_.h6],R));Y.addProvider({provide:_.SzK,useFactory:_.lO.getInstance});_.Q0().parkOrScheduleJob(function(){_.DH().resolve(Ff).refresh()},0,"eocs");
Lsb(AFu.watchEndpointMap||{},t.reelWatchEndpointMap||{},D.injector.resolve(_.h6));Y.addProvider({provide:no,useValue:_.$Z.instance});_.f("kevlar_signal_collection_killswitch")||(R={},Y.addProvider((R.provide=hYu,R.useClass=hYu,R[YS]=[Jy,zH],R)),_.Q0().parkOrScheduleJob(function(){_.DH().resolve(hYu).record()},1,"eocs"));
_.f("web_debug_handler_registration_killswitch")||_.Q0().parkOrScheduleJob(function(){WGS("DOWNLOAD_PES",sMn);_.f("offline_client_state_export_ks")||WGS("OFFLINE_CLIENT_STATE",R69)},0,"eocs");
_.f("kevlar_prevent_polymer_dynamic_font_load")&&_.Q0().parkOrScheduleJob(function(){var z=[_.tZ(yft),_.tZ(Ngz)];z=_.a(z);for(var I=z.next();!I.done;I=z.next()){I=I.value;var F=document.createElement("link");_.cZ(F,I,"stylesheet");document.head.appendChild(F)}},1,"eocs");
R=D.injector.resolve(_.h6);_.Vr7.instance=new _.Vr7(R);hfl(WXb(new GQE(R)));R={};D.injector.addProvider((R.provide=RD,R.useFactory=function(z){(z=z==null?void 0:z.getCurrentPage())?z=z.visibilityObserver:(cZh||(cZh=y7S()),z=cZh);return z},R[YS]=[_.cD(_.Z4)],R.skipCache=!0,R));
Y.addProvider({provide:_.mL,useClass:x4});Y.addProvider({provide:em,useClass:hH7});D.injector.addProvider({provide:lfE,useValue:LHz});Y.addProvider({provide:AYU,useValue:Dd5});Y.addProvider({provide:_.O4,useValue:Wq9});D=Y.addProvider;j99||(j99=new Tbk);D.call(Y,{provide:_.r6,useValue:j99});Y.addProvider({provide:_.DT,useValue:_.JQ("HTML_DIR")==="rtl"?"rtl":"ltr"});Y.addProvider({provide:LXz,useClass:deU});Y.addProvider({provide:_.FK,useClass:w6});_.DH().addProvider({provide:qpz,useValue:_.f("enable_web_delhi_icons")?
d1K.concat(O09):g2I.concat(i0T)});Y.addProvider({provide:_.vW,useClass:_.vW});Y.addProvider({provide:_.$yh,useValue:new wZ9});Y.addProvider({provide:J_E,useClass:Je_});Y.addProvider({provide:eT,useClass:eT});Y.addProvider({provide:ra,useClass:ra});D={};Y.addProvider((D.provide=dw,D.useClass=dw,D[YS]=[_.h6,_.b6],D));Y.addProvider({provide:Ha,useClass:Ha});Y.addProvider({provide:c_4,useClass:M0p});Y.addProvider({provide:oS,useClass:oS});Y.addProvider({provide:VuE,useValue:tu_});Y.addProvider({provide:_.pp,
useClass:kQL});_.f("enable_payments_purchase_manager")&&Y.addProvider({provide:re7,useClass:eWL});Y.addProvider({provide:b$9,useFactory:function(){return function(z){return _.o7E(z)}}});
Y.addProvider({provide:_.wob,useClass:$$K});D={};Y.addProvider((D.provide=Ld,D.useClass=Ld,D[YS]=[_.wob],D));Y.addProvider({provide:wa,useClass:wa});Y.addProvider({provide:pqL,useValue:$nE});Y.addProvider({provide:O3Y,useValue:_.r9h});Y.addProvider({provide:AA5,useClass:apk});Y.addProvider({provide:Ip9,useValue:o3T});D={};Y.addProvider((D.provide=Fhk,D.useClass=GTh,D[YS]=[Ip9],D));D={};Y.addProvider((D.provide=_.f1,D.useClass=yFu,D[YS]=[Fhk],D));D={};Y.addProvider((D.provide=_.bO,D.useClass=oq,D[YS]=
[_.xZ,_.o8],D));if(_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover"))D={},Y.addProvider((D.provide=N4,D.useClass=N4,D[YS]=[_.h6,ZY],D));if(_.f("web_enable_renderer_logger")){var W=new c9K;zRn(function(){W.abort()});
Y.addProvider({provide:lmb,useValue:new mUz(W.signal)})}Y.addProvider({provide:UTL,useValue:KEi});D={};Y.addProvider((D.provide=a_I,D.useClass=ub9,D[YS]=[_.h6],D))}},DCE);var R70={},ZGu=(R70.initialized={priority:10,callback:function(){if(!Tg9){BsM();Z_l("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Cv(_.A4(Z_l,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.f("log_heartbeat_with_lifecycles")){var D={};RX.instance||(RX.instance=new RX);RX.instance.install((D.document_visible={callback:tL9,priority:10},D.document_hidden={callback:tL9,priority:10},D))}else _.O1(document,"visibilitychange",tL9);Tg9=!0}(D=_.K2())&&D!=="UNDEFINED_CSN"&&Fv9(D)}},R70);var tHE={},s0b=(tHE.initialized={callback:function(D){var Y=_.TP(232091),R=D.injector.resolve(_.ya);_.jF(R,Y);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?URo()&&_.Fq(R,Y):(D=D.injector.resolve(b$9)("refresh_detector"))&&(D.get("first_tab_load")?_.Fq(R,Y):D.set("first_tab_load","1"))}},tHE);var XBz={},u_t=(XBz.initialized={priority:10,callback:Pw9},XBz);var aCI={},MHu=(aCI.initialized={priority:0,callback:function(){var D=new e7E,Y="other";_.js?Y="chrome":_.TX?Y="firefox":_.UK?Y="safari":gP&&(Y="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(R){D.increment(_.Vf(),R,Y)}).catch(function(){D.increment(_.Vf(),!1,Y)}):D.increment(_.Vf(),!1,Y)}},aCI);var Cgt={},Wmh=(Cgt.rendering={priority:8,callback:Qd5},Cgt);var z70={},SWE=(z70.rendering={priority:10,callback:X0M},z70.rendered={callback:sLU},z70),TeT={},j0k=(TeT.rendering={callback:X0M},TeT.rendered={callback:sLU},TeT);var ICE=!1,Fmh={},G_b=(Fmh.initialized={priority:10,callback:function(){ICE||(FUU({didPatch:function(D){D.el&&TDU(D.el,D.props)},
didUnmount:function(D){zBM(D.el)}}),ICE=!0)}},Fmh);var VHk=/^\/shorts\/?$/;_.l1("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:{}}}}}}});
if(_.f("kevlar_enable_mss")){_.ivU(new aiY);var fCz=!0,e7T,Qq;fCz=fCz===void 0?!1:fCz;e7T=e7T===void 0?!1:e7T;Qq=Qq===void 0?{}:Qq;var AEk=Qq.cssRowKey||"",nh0=Qq.combinedSignature||"";!AEk&&window&&window._F_cssRowKey&&(AEk=window._F_cssRowKey,!nh0&&window._F_combinedSignature&&(nh0=window._F_combinedSignature));if(AEk&&typeof window._F_installCss!=="function")throw Error("td");var rEh=Qq.loaderClass||_.xS,BW=h25("base-js"),wBk,$C9=mso("",BW);wBk=_.Af($C9);var pY=new rEh(wBk,AEk,nh0,fCz,e7T),vhT=
Qq.useCors||BW&&BW.hasAttribute("crossorigin"),ohT=Qq.corsMode||BW&&BW.getAttribute("crossorigin");vhT&&(pY.useCors_=vhT);ohT&&(pY.corsMode_=ohT);Qq.urlMaxLength&&(pY.urlMaxLength=Qq.urlMaxLength);Qq.fetchPriority&&(pY.fetchPriority=Qq.fetchPriority);var bG9=o0();bG9.JSC$10022_loader_=pY;bG9.setBatchModeEnabled(!0)}
(function(){var D=document.querySelector("ytd-app");if(!D)throw Error("Kj");D=new NO({root:D,injector:_.DH()});D.install(ZGu);var Y={};D.install((Y.initialized={priority:10,callback:ed5},Y));_.f("wp_lat_b")&&(Y={},D.install((Y.initialized={priority:10,callback:function(){BVb()}},Y)));
Y={};D.install((Y.rendered={priority:0,callback:Gqj},Y));Y={};D.install((Y.rendered={priority:0,callback:function(){_.yc.addLowPriorityJob(function(){_.iEz>1&&(WeU(),IIU())},4E4)}},Y));
D.install(ZjE);D.install(s0b);D.install(G_b);vTo();D.install(W_9);D.install(i$h);D.install(Yxb);D.install(y1E);D.install(UUT);D.install(MXh);D.install(YW9);_.f("kevlar_enable_mss_lazy_load")&&D.install(u_t);D.install(cf9);D.install(MHu);if(!_.ks("IS_SHELL_LOAD")||_.f("kevlar_fetch_initial_data_promise_client")||_.f("sw_nav_preload_pbj")){var R=_.zZ(window.location.href);Y=R&&R==="/watch";R=R&&R.match(VHk);Y?D.install(j0k):R?D.install(Wmh):D.install(SWE)}else D.install(E79);D.install(sK9);_.f("web_enable_prefetching_videos_on_home")&&
D.install(jKp);_.f("start_client_gcf")&&D.install(WS9);D.install(w4b);(new AEU).increment("INSTALLED");D.install(Sxk);D.install(QJz);D.transition("initialized");h69()})();
_.SI=[[["bHFjMWJ5aThta2luZCMzdTk=","N3pmNmc3Mnd5dmFsdWUjdDE="],"QUNFTUVOVF9LSU5EX0xBWU9VVF9JRF9FTlRFUkVEI2VhN3diNGE5NWsxdkFEX1BM"]];_.za=["a3MjazNlbXRmNXRwNzZyZ2xvYmFsQ2FsbGJhYw==","Z3ZoNWJhdW81b25BYm5vcm1hbGl0eURldGVjdGVkI2Vobw==","YW9uQWRTa2lwI2g1dmQ2eGNrNWRi","ODZuaDJnN2ZqdXdyYXdfcGxheWVyX3Jlc3BvbnNlI3M=","ajcydWFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyI3hld3JrNWJm"];_.is="a3MjazNlbXRmNXRwNzZyZ2xvYmFsQ2FsbGJhYw== Z3ZoNWJhdW81b25BYm5vcm1hbGl0eURldGVjdGVkI2Vobw== YW9uQWRTa2lwI2g1dmQ2eGNrNWRi ODZuaDJnN2ZqdXdyYXdfcGxheWVyX3Jlc3BvbnNlI3M= YXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2Zqd3o4ejhwNTNmZHdlYl9wbA== ZmFiX3NhX2VmI203aXg1ZWd6eTNp ajcydWFkc0VuZ2FnZW1lbnRQYW5lbFJlbmRlcmVyI3hld3JrNWJm".split(" ");
_._ModuleManager_initialize=function(D,Y){if(!_.$h){if(!_.vB)return;_.ivU(_.vB())}_.$h.setAllModuleInfoString(D,Y)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye:e/syf/syg:6/syh/h8y2qb:4,f,g,h,i/syi/JzFVk:d,h,i,k/syj:8/xwEKAe:3,9,g,i,m/syk:e/syl:1,b,e,g,k,m/sym:p/nmfa2d:i,o,q/syn:7,p/syo:h,i,q,s/CF909:o,t/Tm0L3c:t/L3n37:f,h,i,o,s/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syj','syi','syf','syc','syb','sy1','syl','sy7','sy6','syn','sym','syh','syg','syk','sye','syo','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.iO=function(D,Y,R,Z,t){var X={};Y&&(X[Y]=R);Z?X.errorType=Z:t&&(X.errorReason=t);_.bo(D,X);_.yj()};
_.OZ=function(D){var Y=_.Q0();return _.NSY(Y,D,1)};
_.Jj({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 D=this.query;D&&(this.full||D[0]==="("||(D="("+D+")"),this._mq=window.matchMedia(D),this._add(),this.queryHandler(this._mq))},
queryHandler:function(D){this._setQueryMatches(D.matches)}});var qW0;var HGt;var xCk=function(){};
_.u=xCk.prototype;_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._noinkChanged=function(){};
_.u._focusedChanged=function(){};
_.u._createRipple=function(){};
_.u.registered=function(){};
_.u._invalidChanged=function(){};
_.u.hasValidator=function(){};
_.u.validate=function(){};
_.u._getValidity=function(){};
_.u._requiredChanged=function(){};
_.u._valueChanged=function(){};
_.u._checkedChanged=function(){};
_.u._buttonStateChanged=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
xCk=_.Jj({is:"tp-yt-paper-radio-button",_template:function(){if(HGt!==void 0)return HGt;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;qW0===void 0&&(qW0=document.createElement("template"));var Z=qW0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return HGt=D},
behaviors:[_.dV7],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(){_.cy(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var D=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),Y=Math.floor(3*D);Y%2!==D%2&&Y++;this.updateStyles({"--paper-radio-button-ink-size":Y+"px"})}})}});var Pgk;var Q0h;_.Jj({_template:function(){if(Q0h!==void 0)return Q0h;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Pgk===void 0&&(Pgk=document.createElement("template"));var Z=Pgk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Q0h=D},
is:"tp-yt-paper-radio-group",behaviors:[_.MG7],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(D){var Y=this._valueToItem(D);if(!Y||!Y.hasAttribute("disabled")){if(this.selected){Y=this._valueToItem(this.selected);if(this.selected==D)if(this.allowEmptySelection)D="";else{Y&&(Y.checked=!0);return}Y&&
(Y.checked=!1)}_.gd.select.apply(this,[D]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(D){this._focusPrevious();D.preventDefault();this._activateFocusedItem()},
_onDownKey:function(D){this._focusNext();D.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(D){_.a4V._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(D){_.a4V._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.gd._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.NK._resetTabindices.apply(this,arguments);this.items.forEach(function(D){D.removeAttribute("aria-selected")},this)}});var Beh;_.UD("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var cW=function(){return _.N.apply(this,arguments)||this};
_.n(cW,_.N);_.u=cW.prototype;_.u.computeHasPrimaryIcon=function(D){return!(!D.icon&&!D.thumbnail)};
_.u.computeHasSecondary=function(D){return!(!D.secondaryIcon&&!D.secondaryNotificationText)};
_.u.computeHideSecondaryString=function(D){return!_.f("disable_hide_empty_secondary_string")&&!D.secondaryNotificationText};
_.u.computeCompactLinkStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeHasFitHeight=function(D){return D==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.u.isActiveEndpoint=function(D){return(D=this.get("commandMetadata.webCommandMetadata.url",D))?_.zZ(window.location.href)!=="/account_transfer_channel"&&_.zZ(window.location.href)!=="/gaia_link"&&_.zZ(window.location.href)!=="/channel_switcher"||D!=="/account"?_.zZ(window.location.href)===D:!0:!1};
_.u.onTap=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.zA(this.hostElement,[this.data.serviceEndpoint])};
cW.prototype.onTap=cW.prototype.onTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cW.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.x("design:type",Boolean)],cW.prototype,"active",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.x("design:type",String)],cW.prototype,"compactLinkStyle",void 0);
_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],cW.prototype,"icon",void 0);_.q([_.y({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",Object)],cW.prototype,"secondaryIcon",void 0);_.q([_.y({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],cW.prototype,"hasSecondary",void 0);_.q([_.y({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],cW.prototype,"hideSecondaryString",void 0);
_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cW.prototype,"onTap",null);_.q([_.h({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],cW);
_.L(cW,"ytd-compact-link-renderer",function(){if(Beh!==void 0)return Beh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Beh=D},{mode:1});var pBk;_.UD("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Dm=function(){var D=_.N.apply(this,arguments)||this;D.role="link";D.tabindex="0";D.actionMap=_.f("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 D};
_.n(Dm,_.N);_.u=Dm.prototype;_.u.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.N3()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.u.getCurrentTheme=function(){return _.lX()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.N3()};
_.u.onThemeSelected=function(D,Y){var R=D||Y?D:_.yb(),Z=(R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.e8y(_.zZ(window.location.href));_.rC(0,165,D);_.rC(0,174,Y);this.prefs.save();Z&&_.CX(this.hostElement,"yt-dark-mode-toggled-action",[R]);_.CX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.u.onTap=function(){this.data.serviceEndpoint&&_.zA(this.hostElement,[this.data.serviceEndpoint])};
_.u.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.u.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.u.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Dm.prototype.onTap=Dm.prototype.onTap;Dm.prototype.dataChanged=Dm.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Dm.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.dp),_.x("design:type",Object)],Dm.prototype,"paperItemBehaviors",void 0);_.q([_.y(),_.x("design:type",Object)],Dm.prototype,"data",void 0);_.q([_.y({value:function(){return _.nX()}}),
_.x("design:type",_.tH)],Dm.prototype,"prefs",void 0);_.q([_.y(),_.x("design:type",Object)],Dm.prototype,"label",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Dm.prototype,"role",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Dm.prototype,"tabindex",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dm.prototype,"dataChanged",null);
_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dm.prototype,"onTap",null);_.q([_.h({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Dm);
_.WL()(Dm,"ytd-toggle-theme-compact-link-renderer",function(){if(pBk===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);pBk=D}D=pBk;return D},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var ghu,dC9;_.YV=function(D){return!!D.getOptions("captions")};
_.EhK=function(D){return(D=D.getOption("captions","track"))?!!D.displayName:!1};
_.R7=function(D,Y){_.$6(Y,D,function(){return ghu[Y]},function(R){ghu[Y]=R;
if(!_.f("mweb_player_ve_show_ks")){var Z=_.K2(0);Z&&R&&_.pX(Z,R)}})};
_.Zm=function(D){(D=ghu[D])&&_.Fq(_.n8(),D)};
ghu={};var iGI;/*

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
*/
_.Jj({_template:function(){if(iGI!==void 0)return iGI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;dC9===void 0&&(dC9=document.createElement("template"));var Z=dC9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return iGI=D},
is:"tp-yt-paper-checkbox",behaviors:[_.dV7],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.cy(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var D=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),Y="px",R=D.match(/[A-Za-z]+$/);R!==null&&(Y=R[0]);D=parseFloat(D);R=8/3*D;Y==="px"&&(R=Math.floor(R),R%2!==D%2&&R++);this.updateStyles({"--paper-checkbox-ink-size":R+
Y})}})},
_computeCheckboxClass:function(D,Y){var R="";D&&(R+="checked ");Y&&(R+="invalid");return R},
_computeCheckmarkClass:function(D){return D?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.E61._createRipple.call(this)}});var OGk=new _.Dv("radioButtonSurveyOptionRenderer"),cEb=new _.Dv("checkboxSurveyOptionRenderer");var Dab;var YUI;var Rp0=0,tW=function(){var D=_.N.call(this)||this;D.selected=!1;D.isOverlay=!1;D.inputId="toggle-option-"+Rp0;Rp0++;return D};
_.n(tW,_.N);tW.prototype.onTap=function(){_.MX(this.hostElement,"ytd-toggle-option-clicked")};
_.q([_.y(),_.x("design:type",String)],tW.prototype,"label",void 0);_.q([_.y(),_.x("design:type",String)],tW.prototype,"inputId",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],tW.prototype,"selected",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],tW.prototype,"isOverlay",void 0);_.q([_.h({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.x("design:paramtypes",[])],tW);
_.L(tW,"ytd-toggle-option-renderer",function(){if(YUI!==void 0)return YUI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return YUI=D},{mode:1});var sv=function(){var D=_.N.apply(this,arguments)||this;D.isToggleOption=!1;D.isOverlay=!1;return D};
_.n(sv,_.N);sv.prototype.onTap=function(D){D.preventDefault();this.data&&(D=!this.data.checked,this.set("data.checked",D),_.MX(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:D,value:this.data.value}))};
_.YF.Object.defineProperties(sv.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
sv.prototype.onTap=sv.prototype.onTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sv.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],sv.prototype,"isToggleOption",void 0);_.q([_.y(),_.x("design:type",Object)],sv.prototype,"isOverlay",void 0);_.q([_.b("data.responseText"),_.x("design:type",String),_.x("design:paramtypes",[])],sv.prototype,"label",null);
_.q([_.Fv("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],sv.prototype,"onTap",null);_.q([_.h({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],sv);
_.L(sv,"ytd-checkbox-survey-option-renderer",function(){if(Dab!==void 0)return Dab;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Dab=D},{mode:1});var Z4k;var tih;var XM=function(){var D=_.N.apply(this,arguments)||this;D.checked=!1;D.isToggleOption=!1;return D};
_.n(XM,_.N);XM.prototype.onTap=function(){this.data&&(this.checked?_.CX(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.CX(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
XM.prototype.onTap=XM.prototype.onTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XM.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],XM.prototype,"checked",void 0);_.q([_.y(),_.x("design:type",Object)],XM.prototype,"isToggleOption",void 0);_.q([_.Fv("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],XM.prototype,"onTap",null);
_.q([_.h({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],XM);
_.L(XM,"ytd-radio-button-survey-option-renderer",function(){if(tih!==void 0)return tih;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return tih=D},{mode:1});var up=function(){var D=_.N.apply(this,arguments)||this;D.disableAnimation=!1;D.isToggleOption=!0;D.followUpSurveyCommand=null;D.selectedRatingEndpoint=null;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.styleOverrideAttribute=!0;D.isDarkMode=!1;D.isSubmitted=!1;D.roundedContainer=!0;D.improveShortsResponseRate=_.f("web_improve_shorts_response_rate");D.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 D};
_.n(up,_.N);_.u=up.prototype;
_.u.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"}}}}};
_.u.attached=function(){var D=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(R){var Z;if((Z=R[0])!=null&&Z.isIntersecting){_.ev().reportShown(D.hostElement);var t;(t=D.intersectionObserver)==null||t.unobserve(D.hostElement)}},{rootMargin:"0px",
threshold:.6});var Y;(Y=this.intersectionObserver)==null||Y.observe(this.hostElement)};
_.u.onDarkModeToggledAction=function(D){this.isDarkMode=D};
_.u.dataChanged=function(){var D;if(((D=this.data)==null?void 0:D.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var Y;((Y=this.data)==null?void 0:Y.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var R,Z,t,X;this.darkColorPalette=(R=this.data)==null?void 0:(Z=R.inlineContent)==null?void 0:(t=Z.compactVideoRenderer)==null?void 0:(X=t.thumbnail)==null?
void 0:X.darkColorPalette;var M,W,z,I;this.lightColorPalette=(M=this.data)==null?void 0:(W=M.inlineContent)==null?void 0:(z=W.compactVideoRenderer)==null?void 0:(I=z.thumbnail)==null?void 0:I.lightColorPalette;var F,G;if(((F=this.data)==null?0:(G=F.inlineContent)==null?0:G.compactVideoRenderer)&&this.isShortsStyle){var V,e,r,l;D=_.CB((V=this.data)==null?void 0:(e=V.inlineContent)==null?void 0:(r=e.compactVideoRenderer)==null?void 0:(l=r.thumbnail)==null?void 0:l.thumbnails);_.SN(this.hostElement,
{"--yt-background-url":"url("+D+")"})}};
_.u.handleRequestCompletion=function(){this.hostElement.hidden&&_.MX(this.hostElement,"yt-dismissible-item-dismissed")};
_.u.onPopupClosed=function(D){var Y;((Y=D.detail)==null?void 0:Y.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.CX(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.u.handleInlineSurveyRatingSelect=function(D,Y){var R=this;this.selectedRatingEndpoint=D;this.followUpSurveyCommand=Y;this.expanded=!!D;this.getOptionRenderers().forEach(function(Z,t){R.notifyPath("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked");R.set("followUpSurveyCommand.followUpOptions."+t+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),D=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.CX(this.hostElement,"yt-reel-non-video-content-dismissal-command",[D]))};
_.u.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.CX(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var D,Y=(D=this.data)==null?void 0:D.dismissalEndpoint;Y&&this.ytComponentBehavior.resolveCommand(Y)}};
_.u.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.CX(this.hostElement,"yt-close-popup-action"))};
_.u.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var D=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{D=this.getOptionRenderers().filter(function(Z){return Z.checked});
if(D.length===0)return;D=D.map(function(Z){return Z.responseEndpoint})}var Y=[];
D.forEach(function(Z,t){t!==0&&(Z=_.A(Z,_.Jn))&&Z.feedbackToken&&Y.push(Z.feedbackToken)});
if(D=D[0]){var R={};Y.length>0&&(R.extra_feedback_tokens=Y);this.ytComponentBehavior.resolveCommand(D,{form:R})}}};
_.u.getOptionRenderers=function(){var D=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(Y){D.isSingleSelect=!!_.A(Y,OGk);return D.isSingleSelect?_.A(Y,OGk):_.A(Y,cEb)}):[]};
_.u.handleInlineSurveyOptionSelect=function(D){D=this.optionSelector.indexOf(D);D!==-1&&this.optionSelector.selectIndex(D)};
_.u.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.u.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
_.u.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D=D&&this.maybeGetBackgroundColor(D);this.dismissibleEl.style.backgroundColor=!D||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.HG(D)};
_.YF.Object.defineProperties(up.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
up.prototype.colorPaletteChanged=up.prototype.colorPaletteChanged;up.prototype.onPopupClosed=up.prototype.onPopupClosed;up.prototype.handleRequestCompletion=up.prototype.handleRequestCompletion;up.prototype.dataChanged=up.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],up.prototype,"actionHandlerBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],up.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],up.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.fr("#follow-up-survey-options"),_.x("design:type",Object)],up.prototype,"optionSelector",void 0);_.q([_.y(),_.x("design:type",Object)],up.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],up.prototype,"disableAnimation",void 0);_.q([_.y(),_.x("design:type",Object)],up.prototype,"isToggleOption",void 0);_.q([_.y(),_.x("design:type",Object)],up.prototype,"followUpSurveyCommand",void 0);_.q([_.y(),_.x("design:type",Object)],up.prototype,"selectedRatingEndpoint",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],up.prototype,"expanded",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],up.prototype,"isSlimlineSurveyFollowUp",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],up.prototype,"isShortsStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],up.prototype,"styleOverrideAttribute",void 0);_.q([_.y(),_.x("design:type",Boolean)],up.prototype,"isSingleSelect",void 0);_.q([_.y(),_.x("design:type",Object)],up.prototype,"isDarkMode",void 0);
_.q([_.y(),_.x("design:type",Object)],up.prototype,"lightColorPalette",void 0);_.q([_.y(),_.x("design:type",Object)],up.prototype,"darkColorPalette",void 0);_.q([_.b("selectedRatingEndpoint","isShortsStyle"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],up.prototype,"isOptionSelected",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],up.prototype,"roundedContainer",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],up.prototype,"improveShortsResponseRate",void 0);_.q([_.fr("#dismissible"),_.x("design:type",HTMLElement)],up.prototype,"dismissibleEl",void 0);_.q([_.fr("#dismiss-button yt-icon-button"),_.x("design:type",HTMLElement)],up.prototype,"dismissButtonEl",void 0);_.q([_.fr("#inline-survey-header yt-icon-button"),_.x("design:type",HTMLElement)],up.prototype,"inlineHeaderDismissButtonEl",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],up.prototype,"dataChanged",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],up.prototype,"handleRequestCompletion",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],up.prototype,"onPopupClosed",null);
_.q([_.Gm("darkColorPalette","lightColorPalette","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],up.prototype,"colorPaletteChanged",null);_.q([_.h({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],up);
_.L(up,"ytd-inline-survey-renderer",function(){if(Z4k!==void 0)return Z4k;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Z4k=D},{mode:1});var sep=["en-CA","en","es-MX","fr-CA"];_.X_h=_.RT(function(D){var Y=_.YC(D,{isOverlay:!1,isModern:!1}),R=Y.captionIconType,Z=Y.onClick;D=Y.ariaLabel;var t=Y.ariaPressed,X=Y.isOverlay,M=Y.isModern;Y=_.dI("button",function(I){_.R7(I,127299)});
var W=_.F4(function(I){_.Zm(127299);Z==null||Z(I);return!1}),z={};
return _.S("ytm-closed-captioning-button",{class:_.e7("ytmClosedCaptioningButtonHost",(z.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return R()===-1&&X()},z.ytmClosedCaptioningButtonIconDisabled=function(){return R()===-1&&!X()},z))},_.S("button",{el:Y,
class:"ytmClosedCaptioningButtonButton",title:D,"aria-label":D,"aria-pressed":t,"on:click":W},_.S(_.nB,{icon:function(){var I="",F=M();var G=F?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";F=F?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var V=_.nX().get("hl");G=!V||sep.includes(V)?G:F;F=R();switch(F){case -1:case 0:I=G;break;case 1:I=G+"_FILLED";break;default:_.qU(F)}return I}})))},"uf");
_.X_h.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.jl=function(D){return function(Y,R){var Z=D||R.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(Y,R,{get:function(){var t;return this.$?this.$[Z]:(t=_.VT(this))==null?void 0:t.querySelector("#"+Z)},
enumerable:!0,configurable:!0})}};_.If=function(D){D=D===void 0?!1:D;_.AE.call(this);this.pubSub_=new _.j$(D);_.WB(this,this.pubSub_)};
_.XN(_.If,_.AE);_.If.prototype.subscribe=function(D,Y,R){return this.isDisposed()?0:this.pubSub_.subscribe(D,Y,R)};
_.If.prototype.unsubscribe=function(D,Y,R){return this.isDisposed()?!1:this.pubSub_.unsubscribe(D,Y,R)};
_.If.prototype.unsubscribeByKey=function(D){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(D)};
_.If.prototype.publish=function(D,Y){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var OUE=function(){_.iO("ypcRedeemFlowStarted")},I_=function(D){_.iO("ypcRedeemFlowFailed",void 0,void 0,void 0,D)},cJu=function(D,Y,R){Y&&R&&(D.videos.forEach(function(Z){Z.videoId===Y&&(Z.itemId=R)}),D.recommendedVideos.forEach(function(Z){Z.videoId===Y&&(Z.itemId=R)}))};var Dt9;var Y8K;/*

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
*/
_.Jj({_template:function(){if(Y8K!==void 0)return Y8K;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Dt9===void 0&&(Dt9=document.createElement("template"));var Z=Dt9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Y8K=D},
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(D,Y){var R=this._resolveSrc(D);R!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",D===""||Y?this._setLoading(!1):(this._resolvedSrc=R,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 D=this.$.sizedImgDiv.style,Y=this.$.placeholder.style;D.backgroundSize=Y.backgroundSize=this.sizing;D.backgroundPosition=Y.backgroundPosition=this.sizing?this.position:"";D.backgroundRepeat=Y.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(D){D=_.uy(D,this.$.baseURIAnchor.href);D.length>=2&&D[0]==="/"&&D[1]!=="/"&&(D=(location.origin||location.protocol+"//"+location.host)+D);return D}});var RBT;var Z_9;_.Jj({_template:function(){if(Z_9!==void 0)return Z_9;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;RBT===void 0&&(RBT=document.createElement("template"));var Z=RBT;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Z_9=D},
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(D){return D?"false":"true"},
_headingChanged:function(D){var Y=this.getAttribute("heading"),R=this.getAttribute("aria-label");typeof R==="string"&&R!==Y||this.setAttribute("aria-label",D)},
_computeHeadingClass:function(D){return D?" over-image":""},
_computeAnimated:function(D){return D}});var tLk=new _.Dv("addRendererToItemSectionAction");var s_K;var F7=function(){return _.N.apply(this,arguments)||this};
_.n(F7,_.N);F7.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],F7.prototype,"rendererBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],F7.prototype,"dismissibleItemBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],F7.prototype,"rendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],F7.prototype,"data",void 0);_.q([_.h({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],F7);
_.L(F7,"ytd-comment-history-entry-renderer",function(){if(s_K!==void 0)return s_K;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return s_K=D},{mode:1});var XRh;_.UD("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.UD("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Gi=function(){return _.N.apply(this,arguments)||this};
_.n(Gi,_.N);_.u=Gi.prototype;_.u.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.u.onTap=function(){this.data.recordClickEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var D=this.data.navigationEndpoint;D&&_.A(D,_.Ky)&&_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})};
_.u.readChanged=function(){var D;_.Cr(this.hostElement,"unread",!((D=this.data)==null?0:D.read))};
_.u.dataChanged=function(){this.data&&_.Cr(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.u.computeThumbnailSize=function(){var D;return((D=this.data)==null?0:D.highPriorityNotification)?32:48};
_.u.getEndpointURL=function(D){return D&&!_.A(D,_.Ky)?this.componentBehavior.computeHref_(D):null};
_.u.getEndpointData=function(D){return D&&!_.A(D,_.Ky)?D:null};
Gi.prototype.computeThumbnailSize=Gi.prototype.computeThumbnailSize;Gi.prototype.dataChanged=Gi.prototype.dataChanged;Gi.prototype.readChanged=Gi.prototype.readChanged;Gi.prototype.onKeyUp=Gi.prototype.onKeyUp;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Gi.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gi.prototype,"data",void 0);_.q([_.y({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.x("design:type",Number)],Gi.prototype,"thumbnailSize",void 0);_.q([_.Fv("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],Gi.prototype,"onKeyUp",null);
_.q([_.Gm("data.read"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gi.prototype,"readChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gi.prototype,"dataChanged",null);_.q([_.Gm("data.highPriorityNotification"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gi.prototype,"computeThumbnailSize",null);
_.q([_.h({is:"ytd-notification-renderer",disableElementRegistration:!0})],Gi);
_.L(Gi,"ytd-notification-renderer",function(){if(XRh!==void 0)return XRh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return XRh=D},{mode:1});var u7t;var VH=function(){return _.N.apply(this,arguments)||this};
_.n(VH,_.N);VH.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"}}}};
VH.prototype.computeActionButtonClass=function(D){return!D.actionButtons||D.actionButtons.length<=1?"single-button":D.description?"vertical-buttons":"horizontal-buttons"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],VH.prototype,"data",void 0);_.q([_.h({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],VH);
_.L(VH,"ytd-playlist-show-metadata-renderer",function(){if(u7t!==void 0)return u7t;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return u7t=D},{mode:1});var a0z;_.UD("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var f_=function(){return _.N.apply(this,arguments)||this};
_.n(f_,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],f_.prototype,"data",void 0);_.q([_.h({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],f_);
_.L(f_,"ytd-purchase-item-renderer",function(){if(a0z!==void 0)return a0z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return a0z=D},{mode:1});var MLT;var CK0={};CK0.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(D){if(D)return D.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(D){if(D==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.UD("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var eL=function(){return _.N.apply(this,arguments)||this};
_.n(eL,_.N);eL.prototype.onYtNavigate=function(D){var Y=this.openPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);Y&&(D.stopPropagation(),this.openPopupBehavior.openPopup(Y))};
eL.prototype.onYtNavigate=eL.prototype.onYtNavigate;_.q([_.v(CK0.YtSimpleTextSectionBehavior),_.x("design:type",Object)],eL.prototype,"ytSimpleTextSectionBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],eL.prototype,"openPopupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eL.prototype,"data",void 0);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eL.prototype,"onYtNavigate",null);_.q([_.h({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],eL);
_.L(eL,"ytd-simple-text-section-renderer",function(){if(MLT!==void 0)return MLT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return MLT=D},{mode:1});var WD9;_.UD("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var AB=function(){return _.N.apply(this,arguments)||this};
_.n(AB,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],AB.prototype,"data",void 0);_.q([_.h({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],AB);
_.L(AB,"ytd-unlimited-page-feature-info-renderer",function(){if(WD9!==void 0)return WD9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return WD9=D},{mode:1});var zBt;var S8k;var n_=function(){return _.N.apply(this,arguments)||this};
_.n(n_,_.N);n_.prototype.dataChanged=function(){if(this.data){var D=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);D&&(D=_.MW(D,screen.width),this.hostElement.style.backgroundImage="url("+D+")")}};
n_.prototype.dataChanged=n_.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],n_.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n_.prototype,"dataChanged",null);_.q([_.h({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],n_);
_.L(n_,"ytd-post-redemption-section-renderer",function(){if(S8k!==void 0)return S8k;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return S8k=D},{mode:1});var TDp;var rD=function(){return _.N.apply(this,arguments)||this};
_.n(rD,_.N);rD.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rD.prototype,"data",void 0);_.q([_.h({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],rD);
_.L(rD,"ytd-ypc-post-redemption-renderer",function(){if(TDp!==void 0)return TDp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return TDp=D},{mode:1});_.UD("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var wD=function(){var D=_.N.apply(this,arguments)||this;D.MIN_CODE_LENGTH=12;D.MAX_CODE_LENGTH=24;return D};
_.n(wD,_.N);_.u=wD.prototype;_.u.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.u.created=function(){this.riskService=new _.w2n;this.loadPaymentThenable=_.v15(_.JQ("YPC_MB_URL"))};
_.u.ready=function(){var D=this;this.code.addEventListener("keypress",function(Y){D.onCodeInputKeypress(Y)})};
_.u.dataChanged=function(){var D=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(Y){Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,R.type==="attributes"&&R.attributeName==="dark"&&D.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.u.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var D=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+D+")")}};
_.u.computeRedeemButton=function(D){(D=this.get("redeemButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.u.onRedeemButtonTap=function(D){D.stopPropagation();OUE();this.redeemCode()};
_.u.redeemCode=function(){var D=this;this.isLoading=!0;var Y=this.riskService.init();_.w3([Y,this.loadPaymentThenable]).then(function(){var R=D.data.redeemButton.buttonRenderer.serviceEndpoint,Z=_.$5r(),t=payments.business.integration.ClientTokenFactory.createClientToken(_.A(R,_.bOz).countryCode,Z);Z={c:D.code.value.trim(),rd:window.btoa(Z),ctk:t};R&&_.DH().resolve(_.Yw).resolveCommand(R,{form:Object.assign({},Z,{element:D.hostElement})})},function(){D.showGenericError();
I_("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.hQ(Error("no"))})};
_.u.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isLoading=!1;var Y,R;this.errorMessage=(Y=D.detail)==null?void 0:(R=Y.data)==null?void 0:R.errorMessage;var Z,t;this.postRedemptionRenderer=(Z=D.detail)==null?void 0:(t=Z.data)==null?void 0:t.renderer;var X,M;if(D=(X=D.detail)==null?void 0:(M=X.data)==null?void 0:M.redirectEndpoint)this.isLoading=!0,_.MX(this.hostElement,"yt-navigate",{endpoint:D});this.errorMessage?I_("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
D)&&_.iO("ypcRedeemFlowSucceeded")};
_.u.onYtServiceRequestError=function(D){D.stopPropagation();this.isLoading=!1;if(D=this.get("detail.error.message",D))this.errorMessage=_.i0(D);I_("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.u.onInvokeInstrumentManagerActionCompleted=function(D){D.stopPropagation();this.redeemCode()};
_.u.onInvokeInstrumentManagerActionError=function(D){D.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",D)){case "instrumentManagerLoadError":this.showGenericError();I_("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();I_("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.iO("ypcRedeemFlowCancelled")}};
_.u.onInput=function(){var D=this;_.pr(this,"onInput",function(){var Y=D.code.value.trim();D.redeemButtonDisabled=Y.length<D.MIN_CODE_LENGTH||Y.length>D.MAX_CODE_LENGTH},200)};
_.u.onCodeInputKeypress=function(D){D.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(OUE(),this.redeemCode())};
_.u.computeImageUrl=function(D){return D?_.MW(D.thumbnails,600):null};
_.u.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
wD.prototype.onInvokeInstrumentManagerActionError=wD.prototype.onInvokeInstrumentManagerActionError;wD.prototype.onInvokeInstrumentManagerActionCompleted=wD.prototype.onInvokeInstrumentManagerActionCompleted;wD.prototype.onYtServiceRequestError=wD.prototype.onYtServiceRequestError;wD.prototype.onYtServiceRequestCompleted=wD.prototype.onYtServiceRequestCompleted;wD.prototype.dataChanged=wD.prototype.dataChanged;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wD.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],wD.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Boolean)],wD.prototype,"redeemButtonDisabled",void 0);
_.q([_.y(),_.x("design:type",Object)],wD.prototype,"errorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],wD.prototype,"postRedemptionRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],wD.prototype,"observer",void 0);_.q([_.fr("#code"),_.x("design:type",HTMLInputElement)],wD.prototype,"code",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wD.prototype,"dataChanged",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wD.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wD.prototype,"onYtServiceRequestError",null);
_.q([_.Fv("yt-invoke-instrument-manager-action-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wD.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.q([_.Fv("yt-invoke-instrument-manager-action-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wD.prototype,"onInvokeInstrumentManagerActionError",null);_.q([_.h({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],wD);
_.L(wD,"ytd-redeem-code-renderer",function(){if(zBt!==void 0)return zBt;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return zBt=D},{mode:1});var j_0;_.UD("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var $T=function(){var D=_.N.apply(this,arguments)||this;D.businessEmailDisplayState="HIDE_SECTION";return D};
_.n($T,_.N);_.u=$T.prototype;_.u.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}}}}}};
_.u.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"};
_.u.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.u.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.PO(_.v17),this.businessEmailDisplayState="CAPTCHA"))};
_.u.onYtServiceRequestCompleted=function(D){var Y;if((Y=D.detail.data)==null?0:Y.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var R;if((R=D.detail.data)==null?0:R.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.u.computeEmailHref=function(D){return"mailto:"+D};
_.u.computeSafeUrl=function(D){if(D)return _.Jf(D)};
_.u.onBusinessEmailCaptchaSubmit=function(){var D;(D=this.data)!=null&&D.onBusinessEmailRevealClickCommand&&(D=this.JSC$21579_captchaTextarea.value)&&(D={recaptcha_response_token:D,channel_id:this.data.channelId},_.DH().resolve(_.Yw).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},D,{element:this.hostElement})}))};
_.u.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.YF.Object.defineProperties($T.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 D,Y;return!((D=this.data)==null||!D.primaryLinks)&&!((Y=this.data)==null?0:Y.links)&&this.data.primaryLinks.every(function(R){return R.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.primaryLinks)&&!((Y=this.data)==null?0:Y.links)&&!this.shouldShowNewLinks}}});
$T.prototype.onYtServiceRequestCompleted=$T.prototype.onYtServiceRequestCompleted;$T.prototype.dataChanged=$T.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],$T.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.fr("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],$T.prototype,"JSC$21579_captchaTextarea",void 0);_.q([_.y(),_.x("design:type",Object)],$T.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],$T.prototype,"businessEmailDisplayState",void 0);_.q([_.y(),_.x("design:type",String)],$T.prototype,"businessEmail",void 0);_.q([_.y(),_.x("design:type",String)],$T.prototype,"businessEmailErrorMessage",void 0);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$T.prototype,"hideDetailsSection",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$T.prototype,"dataChanged",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$T.prototype,"shouldShowNewLinks",null);_.q([_.b("data","shouldShowLinks"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$T.prototype,"shouldShowLegacyLinks",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],$T.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],$T);
_.L($T,"ytd-channel-about-metadata-renderer",function(){if(j_0!==void 0)return j_0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return j_0=D},{mode:1});var I00;_.UD("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var vR=function(){return _.N.apply(this,arguments)||this};
_.n(vR,_.N);vR.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]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vR.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],vR.prototype,"lockupContainerType",void 0);_.q([_.y(),_.x("design:type",String)],vR.prototype,"thumbnailFixedWidth",void 0);
_.q([_.h({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],vR);
_.L(vR,"ytd-channel-featured-content-renderer",function(){if(I00!==void 0)return I00;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return I00=D},{mode:1});var FDT;_.UD("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var o_=function(){var D=_.N.apply(this,arguments)||this;D.roundContainer=!0;D.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return D};
_.n(o_,_.N);_.u=o_.prototype;_.u.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.u.dataChanged=function(){this.imageWidth=this.imageHeight=24;var D=this.data;D.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!D.style&&D.image&&D.image.thumbnails.length&&(D=D.image.thumbnails[0],this.imageWidth=D.width||0,this.imageHeight=D.height||0)};
_.u.computeSource=function(D){return D.secondarySource?_.OM(D.secondarySource):_.OM(D.source)};
_.u.computeClarifyStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.u.isLargeStyle=function(D){return D==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.u.computeBackgroundStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.u.computeHasActionButton=function(D){return!!D.actionButton};
_.u.computeHasBottomSection=function(D){return!!D.ctaHasBottomSection};
_.u.computeIsSourceMissing=function(D){return D.ctaHasBottomSection===!1?!0:D&&this.computeSource(D)?!1:!0};
_.u.computeSecondaryEndpoint=function(D){return D.secondaryEndpoint||D.endpoint};
o_.prototype.dataChanged=o_.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],o_.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],o_.prototype,"imageWidth",void 0);_.q([_.y(),_.x("design:type",Number)],o_.prototype,"imageHeight",void 0);
_.q([_.y({computed:"computeSecondaryEndpoint(data)"}),_.x("design:type",Object)],o_.prototype,"secondaryEndpoint",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.x("design:type",Boolean)],o_.prototype,"hasActionButton",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.x("design:type",Boolean)],o_.prototype,"hasBottomSection",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.x("design:type",Boolean)],o_.prototype,"missingSource",void 0);_.q([_.y({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],o_.prototype,"icon",void 0);_.q([_.y({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",String)],o_.prototype,"secondaryIcon",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.x("design:type",String)],o_.prototype,"clarifyStyle",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.x("design:type",String)],o_.prototype,"backgroundStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],o_.prototype,"roundContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],o_.prototype,"amsterdamEnabled",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],o_.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-clarification-renderer",disableElementRegistration:!0})],o_);
_.L(o_,"ytd-clarification-renderer",function(){if(FDT!==void 0)return FDT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return FDT=D},{mode:1});var GiK;var VLK;var bK=function(){var D=_.N.apply(this,arguments)||this;D.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return D};
_.n(bK,_.N);_.u=bK.prototype;_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.u.computeIcon=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.u.computeUseContacts=function(D){return!!D.contacts&&D.contacts.length>0};
_.u.computePhoneContact=function(D){var Y,R;return(Y=D.contacts)==null?void 0:(R=Y.find(function(Z){var t;return(Z==null?void 0:(t=Z.icon)==null?void 0:t.iconType)==="PHONE"}))==null?void 0:R.actionText};
_.u.computeSmsContact=function(D){var Y,R;return(Y=D.contacts)==null?void 0:(R=Y.find(function(Z){var t;return(Z==null?void 0:(t=Z.icon)==null?void 0:t.iconType)==="SMS"}))==null?void 0:R.actionText};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],bK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bK.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],bK.prototype,"amsterdamEnabled",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.x("design:type",Boolean)],bK.prototype,"useContacts",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.x("design:type",String)],bK.prototype,"phoneContact",void 0);_.q([_.h({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],bK);
_.L(bK,"ytd-single-action-emergency-support-renderer",function(){if(VLK!==void 0)return VLK;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return VLK=D},{mode:1});_.UD("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var yH=function(){var D=_.N.apply(this,arguments)||this;D.roundedContainer=!0;D.amsterdamEnabled=_.f("enable_desktop_amsterdam_info_panels");return D};
_.n(yH,_.N);yH.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yH.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],yH.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],yH.prototype,"amsterdamEnabled",void 0);
_.q([_.h({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],yH);
_.L(yH,"ytd-emergency-onebox-renderer",function(){if(GiK!==void 0)return GiK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return GiK=D},{mode:1});var f0K;_.UD("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Nt=function(){return _.N.apply(this,arguments)||this};
_.n(Nt,_.N);Nt.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Nt.prototype,"data",void 0);_.q([_.h({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Nt);
_.L(Nt,"ytd-exploratory-results-renderer",function(){if(f0K!==void 0)return f0K;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return f0K=D},{mode:1});var eBt;_.UD("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var lK=function(){var D=_.N.apply(this,arguments)||this;D.messageData=null;return D};
_.n(lK,_.N);_.u=lK.prototype;_.u.onServiceRequestCompleted=function(D,Y){D=Y.actions||[];Y=0;for(var R=D.length;Y<R;Y++){var Z=D[Y],t=void 0,X=void 0;if((t=_.A(Z,_.wi))==null?0:(X=t.item)==null?0:X.messageRenderer)this.messageData=_.A(Z,_.wi).item.messageRenderer}};
_.u.dataChanged=function(){var D=this.data;this.hostElement.hidden=!1;_.Cr(this.hostElement,"is-channel",D&&!D.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.u.computeThumbnailWidth=function(D){return D?126:56};
_.u.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.u.onSubmitTap=function(){var D=this.data,Y=this.selectedResponseIndex;D!==void 0&&Y!==void 0&&(D=D.responses[Y],D.responseData&&_.DH().resolve(_.Yw).resolveCommand(D.responseData,{form:{element:this.hostElement}}))};
_.u.onDismissTap=function(){this.hostElement.hidden=!0;var D=this.data;D!==void 0&&D.dismissalEndpoint&&_.DH().resolve(_.Yw).resolveCommand(D.dismissalEndpoint,{form:{element:this.hostElement}})};
_.u.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
lK.prototype.onSelectedResponseIndexChange=lK.prototype.onSelectedResponseIndexChange;lK.prototype.dataChanged=lK.prototype.dataChanged;lK.prototype.onServiceRequestCompleted=lK.prototype.onServiceRequestCompleted;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lK.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],lK.prototype,"messageData",void 0);
_.q([_.y(),_.x("design:type",Number)],lK.prototype,"selectedResponseIndex",void 0);_.q([_.fr("#submit-button"),_.x("design:type",HTMLButtonElement)],lK.prototype,"submitButton",void 0);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],lK.prototype,"onServiceRequestCompleted",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lK.prototype,"dataChanged",null);
_.q([_.Gm("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lK.prototype,"onSelectedResponseIndexChange",null);_.q([_.h({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],lK);
_.L(lK,"ytd-feedback-elicitation-single-question-renderer",function(){if(eBt!==void 0)return eBt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return eBt=D},{mode:1});var ABT;var JB=function(){return _.N.apply(this,arguments)||this};
_.n(JB,_.N);JB.prototype.computeThumbnailWidth=function(D){return D?602:428};
JB.prototype.updateWideFromBinding=function(D){this.wide=D.detail.value};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],JB.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],JB.prototype,"wide",void 0);_.q([_.h({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],JB);
_.L(JB,"ytd-newspaper-hero-video-renderer",function(){if(ABT!==void 0)return ABT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ABT=D},{mode:1});var nTz;var kT=function(){return _.N.apply(this,arguments)||this};
_.n(kT,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kT.prototype,"rendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kT.prototype,"data",void 0);_.q([_.h({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],kT);
_.L(kT,"ytd-newspaper-mini-video-renderer",function(){if(nTz!==void 0)return nTz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return nTz=D},{mode:1});var rBb;_.UD("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var U8=function(){return _.N.apply(this,arguments)||this};
_.n(U8,_.N);U8.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"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],U8.prototype,"data",void 0);_.q([_.h({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],U8);
_.L(U8,"ytd-newspaper-renderer",function(){if(rBb!==void 0)return rBb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rBb=D},{mode:1});var wRK;_.UD("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var K_=function(){var D=_.N.apply(this,arguments)||this;D.isSegment=!1;D.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};D.nextContinuation={continuationType:"playlistVideoListContinuation"};return D};
_.n(K_,_.N);_.u=K_.prototype;_.u.attached=function(){_.DH();var D;(D=_.DH().resolve(_.cD(_.aS)))!=null&&(D.playlistVideoListElement=this.hostElement)};
_.u.detached=function(){var D;(D=_.DH().resolve(_.cD(_.aS)))!=null&&(D.playlistVideoListElement=void 0);D=_.DH().resolve(_.cD(_.M9));_.f("web_enable_voting_animation")&&D&&(D.parentElem=void 0,D.videos=[],D.continuationsPresent=!1,D.showRefreshPill=!1)};
_.u.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"}}}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.u.dataChanged=function(){var D=_.DH().resolve(_.cD(_.M9));if(_.f("web_enable_voting_animation")&&this.data&&D){var Y=_.aU(this.hostElement).querySelector("#contents");Y&&(D.parentElem=Y);D.addVideos(this.data.contents)}_.MaL(this.ytReorderableBehavior)};
_.u.onRendererstamperFinished=function(){this.canReorder&&_.COV(this.ytReorderableBehavior,_.aU(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.u.onPlaylistReloading=function(){this.isReloading=!0};
_.u.onUpdateSetVideoId=function(D){if(D.detail&&this.data&&this.data.contents){var Y=D.detail;D=this.data.contents.findIndex(function(t){var X;return((X=t.playlistVideoRenderer)==null?void 0:X.videoId)===Y.videoId});
if(!(D<0)&&Y.setVideoId&&(this.set("data.contents."+D+".playlistVideoRenderer.setVideoId",Y.setVideoId),_.f("web_enable_voting_animation"))){var R;if(D=_.A((R=this.data.contents[D].playlistVideoRenderer)==null?void 0:R.engagementBar,_.B8$)){var Z;(Z=D.actions)==null||Z.forEach(function(t){if(t=_.A(t,_.ptn))t.itemId=Y.setVideoId})}(R=_.DH().resolve(_.cD(_.M9)))&&cJu(R,Y.videoId,Y.setVideoId)}}};
_.u.computeContentsClass=function(D){return D?"reloading":""};
_.u.computeIsSortable=function(D,Y){return D&&Y>0&&!this.isSegment&&!_.f("shorts_in_playlists_web")};
_.u.computeIsEditable=function(D){return D};
_.u.computeCanReorder=function(D){return D};
_.u.handlePlaylistRemoveVideosAction=function(D){if(this.get("playlistRemoveVideosAction.setVideoIds",D)&&this.data&&this.data.contents){D=_.A(D,_.bgU).setVideoIds;for(var Y=this.data.contents.length-1;Y>=0;){var R=this.data.contents[Y].playlistVideoRenderer;R&&R.setVideoId&&D.includes(R.setVideoId)&&this.splice("data.contents",Y,1);Y--}_.CX(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.u.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".playlistVideoRenderer.index",_.i0(String(D+1)))};
_.u.handleDrop=function(D){D=D.currDragItem;var Y=_.Uy(D.parentNode.childNodes,D),R=this.data.contents.splice(Number(_.OM(D.data.index))-1,1)[0];this.data.contents.splice(Y,0,R);Y=Y?this.get("contents."+(Y-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();D=this.buildReorderServiceEndpoint(D.data.setVideoId,Y);this.ytComponentBehavior.resolveCommand(D)};
_.u.buildReorderServiceEndpoint=function(D,Y){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",D),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",Y),this.data.onReorderEndpoint):null};
_.u.handleUpdatePlaylistAction=function(D){var Y;(D=_.A((Y=_.A(D,_.yl1))==null?void 0:Y.updatedRenderer,_.Y_z))&&this.canReorder!==D.canReorder&&this.set("data.canReorder",D.canReorder);D&&D.contents&&(this.set("data.contents",D.contents),this.isReloading=!1);D&&D.continuations&&this.set("data.continuations",D.continuations)};
_.u.handleAddRendererToItemSectionAction=function(D){var Y,R=(Y=_.A(D,tLk))==null?void 0:Y.renderer,Z;R&&((Z=_.A(D,tLk))==null?void 0:Z.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,R),D=_.DH().resolve(_.cD(_.M9)),_.f("web_enable_voting_animation")&&D&&(R&&(Y=_.QWj(R))&&D.recommendedVideos.push({itemId:Y,videoId:_.Epj(R),voteCount:_.gpy(R),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.u.isVotingEnabledOnPlaylist=function(D){if(!D)return!1;D=_.a(D);for(D=D.next();!D.done;D=D.next()){var Y=void 0;return!!_.A((Y=D.value.playlistVideoRenderer)==null?void 0:Y.engagementBar,_.B8$)}return!1};
_.u.onAppendContinuationItemsActionFinished=function(){var D;this.isVotingEnabledOnPlaylist((D=this.data)==null?void 0:D.contents)&&(this.updateIndices(),D=_.DH().resolve(_.cD(_.M9)),_.f("web_enable_voting_animation")&&D&&this.data&&D.addVideos(this.data.contents))};
_.u.updateVideoData=function(D){if(D.detail&&this.data&&this.data.contents){var Y=D.detail;D=Y.toIdx;var R=Y.itemId,Z=Y.newVoteCount,t=Y.voteStatus;Y=Y.hideItem;var X,M,W=(X=this.data)==null?void 0:(M=X.contents)==null?void 0:M.findIndex(function(G){return _.QWj(G)===R});
if(!(W<0)){X=this.data.contents[W];var z;if((z=X.playlistVideoRenderer)==null?0:z.voteCount)X.playlistVideoRenderer.voteCount=Z;var I;if(z=_.A((I=X.playlistVideoRenderer)==null?void 0:I.engagementBar,_.B8$)){var F;(F=z.actions)==null||F.forEach(function(G){(G=_.A(G,_.ptn))&&G.initialState&&(G.initialState.votes=Z,G.initialState.status=t)})}this.data.contents.splice(W,1);
Y||this.data.contents.splice(D,0,X);this.updateIndices()}}};
K_.prototype.updateVideoData=K_.prototype.updateVideoData;K_.prototype.onAppendContinuationItemsActionFinished=K_.prototype.onAppendContinuationItemsActionFinished;K_.prototype.onUpdateSetVideoId=K_.prototype.onUpdateSetVideoId;K_.prototype.onPlaylistReloading=K_.prototype.onPlaylistReloading;K_.prototype.onRendererstamperFinished=K_.prototype.onRendererstamperFinished;K_.prototype.dataChanged=K_.prototype.dataChanged;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bz.YtNextContinuationBehavior),_.x("design:type",Object)],K_.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.v(_.WG1),_.x("design:type",Object)],K_.prototype,"ytReorderableBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],K_.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],K_.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],K_.prototype,"isReloading",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],K_.prototype,"isSegment",void 0);_.q([_.y({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.x("design:type",Boolean)],K_.prototype,"isSortable",void 0);_.q([_.y({computed:"computeIsEditable(data.isEditable)"}),_.x("design:type",Boolean)],K_.prototype,"isEditable",void 0);_.q([_.y({computed:"computeCanReorder(data.canReorder)"}),_.x("design:type",Boolean)],K_.prototype,"canReorder",void 0);
_.q([_.y({value:101}),_.x("design:type",Number)],K_.prototype,"scrollMargin",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K_.prototype,"dataChanged",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K_.prototype,"onRendererstamperFinished",null);
_.q([_.Fv("yt-playlist-reloading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K_.prototype,"onPlaylistReloading",null);_.q([_.Fv("yt-update-set-video-id"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K_.prototype,"onUpdateSetVideoId",null);
_.q([_.Fv("yt-append-continuation-items-action-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K_.prototype,"onAppendContinuationItemsActionFinished",null);_.q([_.Fv("yt-update-video-data-voting-animation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K_.prototype,"updateVideoData",null);_.q([_.h({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],K_);
_.L(K_,"ytd-playlist-video-list-renderer",function(){if(wRK!==void 0)return wRK;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return wRK=D},{mode:_.zD("kevlar_poly_si_batch_j047")?1:2});var $tK;var hB=function(){return _.N.apply(this,arguments)||this};
_.n(hB,_.N);hB.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"}}}}};
hB.prototype.onTextWrapperTap=function(D){var Y=this.data&&this.data.navigationEndpoint;Y&&!_.Yc(_.O$(D),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.MX(this.hostElement,"yt-navigate",{endpoint:Y})};
hB.prototype.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");D&&D.commandMetadata&&_.A(D.commandMetadata,_.yX)&&_.A(D.commandMetadata,_.yX).fireAutomatically&&_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})};
hB.prototype.dataChanged=hB.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.gM),_.x("design:type",Object)],hB.prototype,"ytdLockupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hB.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],hB.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],hB.prototype,"biggerThumbsStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],hB.prototype,"leftAligned",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hB.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-movie-renderer"})],hB);
_.L(hB,"ytd-movie-renderer",function(){if($tK!==void 0)return $tK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $tK=D},{mode:1});var vTu;var L_=function(){var D=_.N.apply(this,arguments)||this;D.rounded=!0;D.pageAttachedTo=void 0;D.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return D};
_.n(L_,_.N);L_.prototype.attached=function(){this.pageAttachedTo=_.DH().resolve(_.Z4).getCurrentPage();_.MX(this.hostElement,"yt-player-attached",this.player)};
L_.prototype.detached=function(){var D;if((D=this.pageAttachedTo)==null?0:D.hostElement)_.MX(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
L_.prototype.dataChanged=function(){var D;if((D=this.data)==null?0:D.videoId)D={video_id:this.data.videoId,autoplay:!0},!_.f("miniplayer_stop_channel_video_autoplay_killswitch")&&_.DH().resolve(_.mL).isMiniplayerActive()&&(D.pause_at_start=!0,D.autoplay=!1),this.player.loadVideoWithPlayerVars(D)};
L_.prototype.handleSignalActionPausePlayer=function(){_.XU().pause()};
L_.prototype.dataChanged=L_.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],L_.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],L_.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],L_.prototype,"rounded",void 0);_.q([_.fr("#player"),_.x("design:type",Object)],L_.prototype,"player",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L_.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],L_);
_.L(L_,"ytd-channel-video-player-renderer",function(){if(vTu!==void 0)return vTu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return vTu=D},{mode:1});var oTI;var b_9;var yBI;var mD=function(){var D=_.N.apply(this,arguments)||this;D.playing=!1;D.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ey(D);D.active=!1;return D};
_.n(mD,_.N);_.u=mD.prototype;_.u.detached=function(){this.stop()};
_.u.play=function(){var D=this,Y,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return D.active=!0,Y=D.get("data.inlinePlaybackEndpoint.watchEndpoint"),R=Y.videoId||D.data.videoId,Z=Y.startTimeSeconds||0,t=Y.playerParams||null,_.f("kevlar_player_update_killswitch")?M.yield(D.playerEl.update({args:{video_id:R,startSeconds:Z,player_params:t}}),2):(D.playerEl.loadVideoWithPlayerVars({video_id:R,startSeconds:Z,player_params:t,autoplay:!0}),M.jumpTo(2));if(M.nextAddress!=4)return M.yield(D.playerEl.getPlayerPromise(),
4);X=M.yieldResult;X.unloadModule("annotations_module");X.addEventListener("onStateChange",function(W){D.onPlayerStateChange(W)});
_.V9(M)})};
_.u.onPlayerStateChange=function(D){if(this.active)switch(this.playing=D===1,D){case 1:_.MX(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.MX(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.u.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.u.resize=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D.playerEl.getPlayerPromise(),2);Y=R.yieldResult;Y.setSize(NaN,NaN);_.V9(R)})};
_.q([_.y(),_.x("design:type",Object)],mD.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],mD.prototype,"playing",void 0);_.q([_.y(),_.x("design:type",Object)],mD.prototype,"playerId",void 0);_.q([_.fr("#player"),_.x("design:type",Object)],mD.prototype,"playerEl",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],mD);
_.L(mD,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(yBI!==void 0)return yBI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return yBI=D},{mode:1});var NDh;var l0E;var qt=function(){var D=_.N.apply(this,arguments)||this;D.width=0;return D};
_.n(qt,_.N);_.u=qt.prototype;_.u.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.jN(this,this.onEnded));this.mp4El.addEventListener("error",_.jN(this,this.onError))};
_.u.detached=function(){this.videoEl.removeEventListener("ended",_.jN(this,this.onEnded));this.mp4El.removeEventListener("error",_.jN(this,this.onError))};
_.u.play=function(){var D=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var Y=this.videoEl.play();Y?Y.then(function(){D.handleVideoStartPlaying()}).catch(function(){_.MX(D.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.MX(this.hostElement,"yt-video-thumbnail-not-playing")};
_.u.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.u.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.u.dataChanged=function(){var D;if((D=this.data)==null?0:D.thumbnailPlaceholder)D=_.MW(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+D+")";this.stop();this.autoplay&&this.play()};
_.u.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.u.onEnded=function(){this.stop();_.MX(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.u.onError=function(){_.MX(this.hostElement,"yt-video-thumbnail-error")};
_.u.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.u.getVideoThumbnail=function(D){if(D&&D.length)return D[0]};
qt.prototype.dataChanged=qt.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],qt.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qt.prototype,"animatePlaceholderOnEntrance",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qt.prototype,"autoplay",void 0);_.q([_.y({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.x("design:type",Object)],qt.prototype,"videoThumbnail",void 0);
_.q([_.y(),_.x("design:type",Boolean)],qt.prototype,"loop",void 0);_.q([_.y(),_.x("design:type",Boolean)],qt.prototype,"isVideoPlaying",void 0);_.q([_.y(),_.x("design:type",Object)],qt.prototype,"width",void 0);_.q([_.fr("#mp4"),_.x("design:type",HTMLElement)],qt.prototype,"mp4El",void 0);_.q([_.fr("#placeholder"),_.x("design:type",HTMLElement)],qt.prototype,"placeholderEl",void 0);_.q([_.fr("#video"),_.x("design:type",HTMLVideoElement)],qt.prototype,"videoEl",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qt.prototype,"dataChanged",null);_.q([_.Lr({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],qt);
_.L(qt,"yt-video-as-thumbnail-details",function(){if(l0E===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;NDh===void 0&&(NDh=document.createElement("template"));var Z=NDh;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);l0E=D}D=l0E;return D},{mode:2});var HR=function(){var D=_.N.apply(this,arguments)||this;D.disableGridStateAware=!1;D.animationEnabled=_.f("enable_web_ketchup_hero_animation");D.transitioningOut=!1;D.narrow=!1;D.narrower=!1;D.isCarouselInFeed=!1;D.videoTimeoutJobId=0;D.panelTimeoutJobId=0;D.panelTimeoutJobStartMs=0;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.n(HR,_.N);_.u=HR.prototype;_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.u.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.u.attached=function(){this.onWindowResized()};
_.u.detached=function(){this.clearTimeouts()};
_.u.onWindowResized=function(){this.updateSize()};
_.u.computePanelLayout=function(D){return D&&D.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.u.playVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.play();var Y;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackRenderer)&&this.player.play()};
_.u.stopVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.stop();var Y;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackRenderer)&&this.player.stop()};
_.u.transitionOut=function(){var D=this;this.transitioningOut=!0;return new Promise(function(Y){var R=function(){_.aU(D.hostElement).querySelector("#action-button").removeEventListener("animationend",R);_.yc.cancelJob(Z);Y();D.transitioningOut=!1};
var Z=_.Ak(_.yc,R,1E3);_.aU(D.hostElement).querySelector("#action-button").addEventListener("animationend",R);D.player&&(D.player.playing=!1)})};
_.u.computeMetadataOrder=function(D){return D&&D.metadataOrder&&D.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?D.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.u.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.u.computeAvatarSize=function(D){return D&&D.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.u.onContentClick=function(D){if(!_.Yc(_.O$(D),this.hostElement,["A".toString(),"BUTTON".toString()])){var Y;if((Y=this.data)==null?0:Y.navigationEndpoint){var R;this.componentBehavior.resolveCommand((R=this.data)==null?void 0:R.navigationEndpoint)}}};
_.u.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.u.setBackgroundImage=function(D){if(D=this.getBackgroundImageUrl(D))_.aU(this.hostElement).querySelector("#hero").style.backgroundImage="url("+D+")"};
_.u.setScrimLayer=function(D){var Y=this.getScrimLayerColorStops(D);D=((D==null?void 0:D.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(D=180);_.JQ("HTML_DIR")==="rtl"&&(D=-D);Y&&(_.aU(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+D+"deg, "+Y+")")};
_.u.isNarrower=function(){return this.hostElement.clientWidth<HR.NARROW_VERSION_SIZE};
_.u.getScrimLayerColorStops=function(){var D,Y=(D=this.data)==null?void 0:D.scrimColorValues;if(!Y)return null;if(Y.length===1)return D=_.xI(Y[0]),D+" 0%, "+D+" 100%";if(Y.length===3){var R=[0,72,98];return Y.map(function(Z,t){return _.xI(Z)+" "+R[t]+"%"}).join(",")}return null};
_.u.getBackgroundImageUrl=function(D){return D&&D.largeFormFactorBackgroundThumbnail?_.MW((D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.u.onPlaying=function(){this.startVideoTimeout()};
_.u.onEnded=function(){this.rotate()};
_.u.startPanelTimeout=function(){var D=this;if(!this.panelTimeoutJobId){var Y=this.get("data.minPanelDisplayDurationMs");Y&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Ak(_.yc,function(){D.rotate()},Y))}};
_.u.startVideoTimeout=function(){var D=this;if(!this.videoTimeoutJobId){_.yc.cancelJob(this.panelTimeoutJobId);var Y=Date.now()-this.panelTimeoutJobStartMs;Y=Math.max(0,this.get("data.minPanelDisplayDurationMs")-Y);Y=Math.max(this.get("data.minVideoPlayDurationMs")||0,Y);this.videoTimeoutJobId=_.Ak(_.yc,function(){D.rotate()},Y)}};
_.u.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.yc.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.yc.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.u.rotate=function(){this.clearTimeouts();_.MX(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.YF.Object.defineProperties(HR.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.aU(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.aU(this.hostElement).querySelector("#video")}}});
_.YF.Object.defineProperties(HR,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
HR.prototype.onEnded=HR.prototype.onEnded;HR.prototype.onPlaying=HR.prototype.onPlaying;HR.prototype.dataChanged=HR.prototype.dataChanged;_.q([_.v(_.PH),_.x("design:type",Object)],HR.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],HR.prototype,"componentBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],HR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.v(_.CLU),_.x("design:type",Object)],HR.prototype,"ytBooleanLogicBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],HR.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"disableGridStateAware",void 0);_.q([_.y(),_.x("design:type",Object)],HR.prototype,"data",void 0);_.q([_.y({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.x("design:type",String)],HR.prototype,"panelLayout",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"animationEnabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"transitioningOut",void 0);
_.q([_.y({computed:"computeMetadataOrder(data)"}),_.x("design:type",Boolean)],HR.prototype,"metadataOrder",void 0);_.q([_.y({computed:"computeByline(data)"}),_.x("design:type",Object)],HR.prototype,"byline",void 0);_.q([_.y({computed:"computeAvatarSize(data)"}),_.x("design:type",Number)],HR.prototype,"avatarSize",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"narrow",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"narrower",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"layoutStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HR.prototype,"isCarouselInFeed",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HR.prototype,"dataChanged",null);_.q([_.Fv("yt-default-promo-panel-renderer-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HR.prototype,"onPlaying",null);
_.q([_.Fv("yt-default-promo-panel-renderer-ended"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HR.prototype,"onEnded",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],HR);
_.L(HR,"ytd-default-promo-panel-renderer",function(){if(b_9!==void 0)return b_9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return b_9=D},{mode:1});_.UD("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var xT=function(){var D=_.N.apply(this,arguments)||this;D.narrower=!1;D.dotMenuVisible=!1;D.paginationThumbnailsVisible=!1;D.active=!0;D.disableGridStateAware=!1;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.n(xT,_.N);_.u=xT.prototype;_.u.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]]"}}}}}};
_.u.attached=function(){document.addEventListener("yt-page-type-changed",_.jN(this,this.onPageTypeChange));this.currentPageSubtype=_.fn(location.pathname);this.onWindowResized()};
_.u.detached=function(){this.jobId&&_.yc.cancelJob(this.jobId);this.updateSizeJobId&&_.yc.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.jN(this,this.onPageTypeChange))};
_.u.onPageTypeChange=function(D){this.active=D.detail.newPageSubtype===this.currentPageSubtype};
_.u.onWindowResized=function(){this.updateSize()};
_.u.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.u.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.u.setCarouselItem=function(D){D>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.yc.cancelJob(this.jobId);var Y=this.getCurrentPanelElement();Y&&Y.stopVideo();this.currentItemIndex=D%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(Y||(Y=this.getCurrentPanelElement()),Y.playVideo()):this.startRotationJob()};
_.u.scrollThumbnails=function(D){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var Y=this.getCurrentPaginationElement();if(Y){var R=_.aU(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?R.style.transform="translateX(0)":(Y=Y.offsetWidth+8,R.style.transform="translateX(-"+Y*(D-Math.ceil(Math.floor(this.overlay.offsetWidth/Y)/2)+1)+"px)")}}};
_.u.onDataChanged=function(){var D=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.$c(_.yc,function(){var Y;(Y=D.getCurrentPanelElement())==null||Y.updateSize();D.updateSize()}))};
_.u.getCurrentPanelElement=function(){return _.aU(_.aU(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.u.getCurrentPaginationElement=function(){return _.aU(_.aU(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.u.getNavigationClass=function(D,Y){return D===Y?"selected":""};
_.u.getNavigationDurationStyle=function(D){return"animation-duration:"+(this.get("data.carouselItems."+D+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.u.onNavigationTap=function(D){var Y=this,R=D.model.index;R!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){Y.setCarouselItem(R)}),this.autorotateActive=!1)};
_.u.onVideoThumbnailEnded=function(){var D=this;if(this.shouldRotate()){var Y=this.getCurrentPaginationElement();Y&&(Y.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){Y.classList.remove("finished");D.setNextCarouselItem()}))}};
_.u.onVideoThumbnailError=function(){this.startRotationJob()};
_.u.onVideoNotPlaying=function(){this.startRotationJob()};
_.u.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.u.startRotationJob=function(){var D=this;_.yc.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.yc.addLowPriorityJob(function(){D.getCurrentPanelElement().transitionOut().then(function(){D.setNextCarouselItem()})},this.rotationTimeout))};
_.u.computeDotMenuVisible=function(D,Y){return!!D&&!!D.carouselItems&&D.carouselItems.length>1&&!D.paginationThumbnails||!!Y};
_.u.computePaginationThumbnailsVisible=function(D,Y){var R,Z;return((Z=D==null?void 0:(R=D.paginationThumbnails)==null?void 0:R.length)!=null?Z:0)>1&&!Y};
_.u.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.u.computePaginatorAlignment=function(D){return(D==null?void 0:D.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.u.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.u.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.u.isNarrower=function(D){return(D!=null?D:0)<HR.NARROW_VERSION_SIZE};
xT.prototype.activeChanged=xT.prototype.activeChanged;xT.prototype.onVideoNotPlaying=xT.prototype.onVideoNotPlaying;xT.prototype.onVideoThumbnailError=xT.prototype.onVideoThumbnailError;xT.prototype.onVideoThumbnailEnded=xT.prototype.onVideoThumbnailEnded;xT.prototype.onDataChanged=xT.prototype.onDataChanged;_.q([_.v(_.PH),_.x("design:type",Object)],xT.prototype,"ytdGridStateAwareBehavior",void 0);
_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],xT.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xT.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],xT.prototype,"currentItem",void 0);
_.q([_.y(),_.x("design:type",Number)],xT.prototype,"currentItemIndex",void 0);_.q([_.y(),_.x("design:type",Number)],xT.prototype,"rotationTimeout",void 0);_.q([_.y(),_.x("design:type",Number)],xT.prototype,"loopCount",void 0);_.q([_.y({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.x("design:type",String)],xT.prototype,"paginatorAlignment",void 0);_.q([_.y(),_.x("design:type",Number)],xT.prototype,"jobId",void 0);
_.q([_.y(),_.x("design:type",Number)],xT.prototype,"updateSizeJobId",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],xT.prototype,"isCarouselInFeed",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xT.prototype,"narrower",void 0);_.q([_.y({computed:"computeDotMenuVisible(data, narrower)"}),_.x("design:type",Object)],xT.prototype,"dotMenuVisible",void 0);
_.q([_.y({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.x("design:type",Object)],xT.prototype,"paginationThumbnailsVisible",void 0);_.q([_.y({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.x("design:type",String)],xT.prototype,"layoutType",void 0);_.q([_.y({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],xT.prototype,"autorotateActive",void 0);_.q([_.y(),_.x("design:type",Object)],xT.prototype,"active",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xT.prototype,"disableGridStateAware",void 0);_.q([_.fr("#overlay"),_.x("design:type",HTMLElement)],xT.prototype,"overlay",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xT.prototype,"onDataChanged",null);
_.q([_.Fv("yt-video-thumbnail-ended"),_.Fv("yt-default-promo-panel-renderer-rotate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xT.prototype,"onVideoThumbnailEnded",null);_.q([_.Fv("yt-video-thumbnail-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xT.prototype,"onVideoThumbnailError",null);
_.q([_.Fv("yt-video-thumbnail-not-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xT.prototype,"onVideoNotPlaying",null);_.q([_.rd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xT.prototype,"activeChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],xT);
_.L(xT,"ytd-carousel-item-renderer",function(){if(oTI!==void 0)return oTI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return oTI=D},{mode:2});var JBt;var kiz;var UtK;var KDp;var PR=function(){var D=_.N.apply(this,arguments)||this;D.originalQuery=null;D.originalEndpoint=null;return D};
_.n(PR,_.N);PR.prototype.computeShowOriginalQueryWithoutEndpoint_=function(D,Y){return!(!D||Y)};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],PR.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],PR.prototype,"correctedText",void 0);_.q([_.y(),_.x("design:type",Object)],PR.prototype,"correctedQuery",void 0);_.q([_.y(),_.x("design:type",Object)],PR.prototype,"correctedEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],PR.prototype,"originalText",void 0);_.q([_.y(),_.x("design:type",Object)],PR.prototype,"originalQuery",void 0);
_.q([_.y(),_.x("design:type",Object)],PR.prototype,"originalEndpoint",void 0);_.q([_.y({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.x("design:type",Boolean)],PR.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.q([_.Lr({is:"yt-search-query-correction",disableElementRegistration:!0})],PR);
_.L(PR,"yt-search-query-correction",function(){if(KDp===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;UtK===void 0&&(UtK=document.createElement("template"));var Z=UtK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);KDp=D}D=KDp;return D},{mode:2});_.UD("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var QH=function(){return _.N.apply(this,arguments)||this};
_.n(QH,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QH.prototype,"data",void 0);_.q([_.Lr({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],QH);
_.L(QH,"yt-did-you-mean-renderer",function(){if(kiz===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;JBt===void 0&&(JBt=document.createElement("template"));var Z=JBt;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);kiz=D}D=kiz;return D},{mode:2});var hBh;var LDu;_.UD("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var BR=function(){return _.N.apply(this,arguments)||this};
_.n(BR,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],BR.prototype,"data",void 0);_.q([_.Lr({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],BR);
_.L(BR,"yt-including-results-for-renderer",function(){if(LDu===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;hBh===void 0&&(hBh=document.createElement("template"));var Z=hBh;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);LDu=D}D=LDu;return D},{mode:2});var mtk;var q89;_.UD("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var p_=function(){return _.N.apply(this,arguments)||this};
_.n(p_,_.N);p_.prototype.computeExtraClasses_=function(D,Y){var R="";D&&(R+=" "+D.toLowerCase().replace(/_/g,"-"));Y&&(R+=" "+Y.toLowerCase().replace(/_/g,"-"));return R};
p_.prototype.computeUrlImg_=function(){var D=this.data;D.image&&(_.aU(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.MW(D.image.thumbnails,Number.MAX_VALUE)+")")};
p_.prototype.computeUrlImg_=p_.prototype.computeUrlImg_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],p_.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p_.prototype,"computeUrlImg_",null);_.q([_.Lr({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],p_);
_.L(p_,"yt-music-pass-feature-info-renderer",function(){if(q89===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;mtk===void 0&&(mtk=document.createElement("template"));var Z=mtk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);q89=D}D=q89;return D},{mode:2});var H_0;var xtK;_.UD("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var E8=function(){return _.N.apply(this,arguments)||this};
_.n(E8,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],E8.prototype,"data",void 0);_.q([_.Lr({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],E8);
_.L(E8,"yt-no-results-found-showing-results-for-renderer",function(){if(xtK===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;H_0===void 0&&(H_0=document.createElement("template"));var Z=H_0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);xtK=D}D=xtK;return D},{mode:2});var PKK;var Q_p;_.UD("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var gD=function(){return _.N.apply(this,arguments)||this};
_.n(gD,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gD.prototype,"data",void 0);_.q([_.Lr({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],gD);
_.L(gD,"yt-results-without-quotes-renderer",function(){if(Q_p===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;PKK===void 0&&(PKK=document.createElement("template"));var Z=PKK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Q_p=D}D=Q_p;return D},{mode:2});var BDI;var pRt;_.UD("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var dD=function(){return _.N.apply(this,arguments)||this};
_.n(dD,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dD.prototype,"data",void 0);_.q([_.Lr({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],dD);
_.L(dD,"yt-search-no-results-renderer",function(){if(pRt===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;BDI===void 0&&(BDI=document.createElement("template"));var Z=BDI;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);pRt=D}D=pRt;return D},{mode:2});var ETI;var gT9;_.UD("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var iK=function(){return _.N.apply(this,arguments)||this};
_.n(iK,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iK.prototype,"data",void 0);_.q([_.Lr({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],iK);
_.L(iK,"yt-showing-results-for-renderer",function(){if(gT9===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;ETI===void 0&&(ETI=document.createElement("template"));var Z=ETI;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);gT9=D}D=gT9;return D},{mode:2});var dtp;var i_T;var O_b;var cBk;var O8=function(){var D=_.N.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.n(O8,_.N);O8.prototype.toggleAnswer_=function(D){var Y=_.cG(D);Y&&Y.classList.contains("yt-simple-endpoint")||(D.preventDefault(),D.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
O8.prototype.toggleAnswer_=O8.prototype.toggleAnswer_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],O8.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],O8.prototype,"answerExpanded",void 0);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],O8.prototype,"toggleAnswer_",null);
_.q([_.Lr({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],O8);
_.L(O8,"yt-generic-faq-question-renderer",function(){if(cBk===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;O_b===void 0&&(O_b=document.createElement("template"));var Z=O_b;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);cBk=D}D=cBk;return D},{mode:2});_.UD("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var cR=function(){return _.N.apply(this,arguments)||this};
_.n(cR,_.N);cR.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cR.prototype,"data",void 0);_.q([_.Lr({is:"yt-faq-section-renderer",disableElementRegistration:!0})],cR);
_.L(cR,"yt-faq-section-renderer",function(){if(i_T===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;dtp===void 0&&(dtp=document.createElement("template"));var Z=dtp;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);i_T=D}D=i_T;return D},{mode:2});var DRu;var YuE;_.UD("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var D3=function(){return _.N.apply(this,arguments)||this};
_.n(D3,_.N);
D3.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],D3.prototype,"data",void 0);_.q([_.Lr({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],D3);
_.L(D3,"yt-offer-item-expanded-renderer",function(){if(YuE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;DRu===void 0&&(DRu=document.createElement("template"));var Z=DRu;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);YuE=D}D=YuE;return D},{mode:2});var RhK;var Zzk;_.UD("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Y9=function(){return _.N.apply(this,arguments)||this};
_.n(Y9,_.N);
Y9.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"}}}}};
Y9.prototype.computeFullWidthMode=function(D){return!(!D||!D.fullWidthMode)};
Y9.prototype.computeBorderlessMode=function(D){return!(!D||!D.borderlessMode)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Y9.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.x("design:type",Boolean)],Y9.prototype,"fullWidthMode",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.x("design:type",Boolean)],Y9.prototype,"borderlessMode",void 0);_.q([_.Lr({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Y9);
_.L(Y9,"yt-offer-item-renderer",function(){if(Zzk===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;RhK===void 0&&(RhK=document.createElement("template"));var Z=RhK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Zzk=D}D=Zzk;return D},{mode:2});var tKK;var sd9;_.UD("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Rd=function(){return _.N.apply(this,arguments)||this};
_.n(Rd,_.N);Rd.prototype.computeAriaLevel_=function(D){return this.getLevelID_(D)};
Rd.prototype.getLevelID_=function(D){return(D=D.match(/[0-9]+$/))&&D.length==1?D[0]:"1"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Rd.prototype,"data",void 0);_.q([_.y({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.x("design:type",String)],Rd.prototype,"ariaLevel",void 0);_.q([_.y({value:"heading",reflectToAttribute:!0}),_.x("design:type",String)],Rd.prototype,"role",void 0);
_.q([_.y({value:-1,reflectToAttribute:!0}),_.x("design:type",Number)],Rd.prototype,"tabindex",void 0);_.q([_.Lr({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Rd);
_.L(Rd,"yt-subscription-product-header-renderer",function(){if(sd9===void 0){var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;tKK===void 0&&(tKK=document.createElement("template"));var Z=tKK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);sd9=D}D=sd9;return D},{mode:2});var XqK;var uZT;_.UD("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Z3=function(){return _.N.apply(this,arguments)||this};
_.n(Z3,_.N);Z3.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:_.KB("menuRenderer"),events:!0}}};
Z3.prototype.onStampFinished_=function(){_.aU(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Z3.prototype.onStampFinished_=Z3.prototype.onStampFinished_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Z3.prototype,"data",void 0);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Z3.prototype,"onStampFinished_",null);
_.q([_.Lr({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Z3);
_.L(Z3,"yt-subscription-product-renderer",function(){if(uZT===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;XqK===void 0&&(XqK=document.createElement("template"));var Z=XqK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);uZT=D}D=uZT;return D},{mode:2});var a3z;var MKI;_.UD("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var td=function(){return _.N.apply(this,arguments)||this};
_.n(td,_.N);td.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
td.prototype.imageScrimColorValuesChanged_=function(){var D,Y=(D=this.data)==null?void 0:D.imageScrimColorValues;_.aU(this.hostElement).querySelector("#scrim").style.backgroundColor=Y?_.xI(Y[0]):"transparent"};
td.prototype.imageScrimColorValuesChanged_=td.prototype.imageScrimColorValuesChanged_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],td.prototype,"data",void 0);
_.q([_.Gm("data.imageScrimColorValues"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],td.prototype,"imageScrimColorValuesChanged_",null);_.q([_.Lr({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],td);
_.L(td,"yt-subscription-product-upsell-offer-renderer",function(){if(MKI===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;a3z===void 0&&(a3z=document.createElement("template"));var Z=a3z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);MKI=D}D=MKI;return D},{mode:2});var Cw0;var W6t;var zh9;var Suk;var TFb;var jdk;var su=function(){return _.N.apply(this,arguments)||this};
_.n(su,_.N);su.prototype.onYtServiceRequestError_=function(D){_.iI(this.hostElement,D.detail.error.message)};
su.prototype.onYtServiceRequestError_=su.prototype.onYtServiceRequestError_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],su.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],su.prototype,"collapsible",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],su.prototype,"isManageRed",void 0);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],su.prototype,"onYtServiceRequestError_",null);_.q([_.Lr({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],su);
_.L(su,"yt-single-ypc-offer-renderer",function(){if(jdk===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;TFb===void 0&&(TFb=document.createElement("template"));var Z=TFb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);jdk=D}D=jdk;return D},{mode:2});var XZ=function(){return _.N.apply(this,arguments)||this};
_.n(XZ,_.N);XZ.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XZ.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],XZ.prototype,"isManageRed",void 0);_.q([_.Lr({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],XZ);
_.L(XZ,"yt-single-ypc-offer-list-renderer",function(){if(Suk===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;zh9===void 0&&(zh9=document.createElement("template"));var Z=zh9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Suk=D}D=Suk;return D},{mode:2});var I3b;var F6E;_.UD("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var uw=function(){return _.N.apply(this,arguments)||this};
_.n(uw,_.N);uw.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uw.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],uw.prototype,"isManageRed",void 0);_.q([_.Lr({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],uw);
_.L(uw,"yt-ypc-offers-list-renderer",function(){if(F6E===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;I3b===void 0&&(I3b=document.createElement("template"));var Z=I3b;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);F6E=D}D=F6E;return D},{mode:2});_.UD("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var ad=function(){return _.N.apply(this,arguments)||this};
_.n(ad,_.N);
ad.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ad.prototype,"data",void 0);_.q([_.Lr({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],ad);
_.L(ad,"yt-unlimited-manage-subscription-page-renderer",function(){if(W6t===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Cw0===void 0&&(Cw0=document.createElement("template"));var Z=Cw0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);W6t=D}D=W6t;return D},{mode:2});var G1h;var VKb;var MR=function(){return _.N.apply(this,arguments)||this};
_.n(MR,_.N);_.u=MR.prototype;_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.u.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.onKeypress_=function(D){D.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.u.handleHeaderTap_=function(D){D.preventDefault();D.stopPropagation();this.expandOffers_()};
_.u.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.u.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
MR.prototype.dataChanged_=MR.prototype.dataChanged_;_.q([_.v(_.nJ),_.x("design:type",Object)],MR.prototype,"ironA11yKeysBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],MR.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],MR.prototype,"offersVisible_",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MR.prototype,"dataChanged_",null);_.q([_.Lr({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],MR);
_.L(MR,"yt-collapsible-ypc-offer-renderer",function(){if(VKb===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;G1h===void 0&&(G1h=document.createElement("template"));var Z=G1h;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);VKb=D}D=VKb;return D},{mode:2});var f3z;var ehk;_.UD("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Cz=function(){return _.N.apply(this,arguments)||this};
_.n(Cz,_.N);_.u=Cz.prototype;_.u.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.u.dataChanged_=function(){if(this.data.backgroundImage){var D=_.MW(this.data.backgroundImage.thumbnails,screen.width),Y=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=Y?"linear-gradient(180deg, "+Y+"), url("+D+")":"url("+D+")";this.data.gtmId&&_.J$(this.data.gtmId,_.JQ("GL",""))}};
_.u.onYtServiceRequestError_=function(D){_.iI(this.hostElement,D.detail.error.message)};
_.u.getScrimLayerColorStops_=function(){var D,Y,R=(D=this.data.unlimitedHeaderV2Data)==null?void 0:(Y=D.unlimitedHeaderV2Data)==null?void 0:Y.scrimLayerColors;if(!R)return null;var Z=100/R.length;return R.map(function(t,X){X*=Z;return _.xI(t)+" "+X+"%"}).join(",")};
_.u.computeLogoWithPadding=function(D){var Y,R,Z;return(D=(Y=D.unlimitedLogoImage)==null?void 0:(R=Y.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.height)&&D%31===0?!0:!1};
Cz.prototype.onYtServiceRequestError_=Cz.prototype.onYtServiceRequestError_;Cz.prototype.dataChanged_=Cz.prototype.dataChanged_;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.q([_.y({computed:"computeLogoWithPadding(data)"}),_.x("design:type",Boolean)],Cz.prototype,"logoWithPadding",void 0);
_.q([_.y(),_.x("design:type",Object)],Cz.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cz.prototype,"dataChanged_",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Cz.prototype,"onYtServiceRequestError_",null);_.q([_.Lr({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Cz);
_.L(Cz,"yt-unlimited-page-header-renderer",function(){if(ehk===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;f3z===void 0&&(f3z=document.createElement("template"));var Z=f3z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ehk=D}D=ehk;return D},{mode:2});var Ad0;var n9z;_.UD("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Wq=function(){return _.N.apply(this,arguments)||this};
_.n(Wq,_.N);Wq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Wq.prototype,"data",void 0);_.q([_.Lr({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Wq);
_.L(Wq,"yt-unlimited-user-notification-renderer",function(){if(n9z===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Ad0===void 0&&(Ad0=document.createElement("template"));var Z=Ad0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);n9z=D}D=n9z;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.AN9=_.RT(function(D){var Y=_.YC(D,{numberOfChips:5}).numberOfChips;return _.S("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.S(_.G6,{each:function(){return Array(Y==null?void 0:Y())}},function(){return _.S("div",{class:"ytGhostChipShelfChip"})}))},"Jg");_.nMz=_.RT(function(D){var Y=function(){var X;return((X=D.data)==null?void 0:X.call(D).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},R=_.FU(),Z=_.DH().resolve(_.DT);
_.rf(function(){requestAnimationFrame(function(){var X;(X=R.lottieEl)==null||X.addEventListener("DOMLoaded",function(){var M;(M=D.onLottieLoaded)==null||M.call(D)})})});
var t={};return _.S("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var X;return((X=D.data)==null?void 0:X.call(D).targetId)||""}},_.S(_.fO,{className:_.e7((t.ytChatLoadingViewModelRtl=Z==="rtl",t)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:Y()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||Y()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:Y()}}},
animationRef:R}))},"Kg");
}catch(e){_._DumpException(e)}
try{
var Kgk,hph,Lgz,ma0,qUk,H4t,xa9,PMI,B2I,DJz,fe,ctu,gdt,O49,i40,dat,Ed9,Y39,RtE,ZbE,tj0,ep,sp0,XDk,Mju,ne,uPb,$V,AW,rc,a10,wc,C1u,Wfh,ztk,S3p,Tf9,jp9,Ff9,etK,rQ0,wDk,$J9,vsI,os9,bbu,yQp,l1K,k6z,KfK,ht9,Lfk,mJT,xJT,P1k,Qp0,BfK,pDI,Esu,gsh,ib0,YKI,DEk,Obp,Rr9,cQE,ZvE,uWb,Xr9,t$T,sn9,o7,aH0,M$u,WzT,Fzb,GZk,V$I,fHT,erp,ATu,nwb,rTI,wrh,$Et,owI,bvI,yTK,TP0;
_.GM=function(D){var Y=new _.AT("Error accessing DB");return _.Ufo().then(function(R){return new Promise(function(Z,t){try{var X=R.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(D);X.onsuccess=function(){var M=X.result;Z(M?M.value:null)};
X.onerror=function(){Y.params={key:D,source:"onerror"};t(Y)}}catch(M){Y.params={key:D,
thrownError:String(M)},t(Y)}})},function(){return null})};
_.UaE=function(D,Y){var R=_.DcU(Y);R!=="javascript:"&&R!=="data:"&&D.setAttribute("href",Y)};
Kgk=function(D,Y){return _.jC(D.entities,"flowStateEntity",Y)};
hph=function(D,Y){return _.jC(D.entities,"contextNoteUserRatingEntityPayload",Y)};
Lgz=function(D){return _.JS(D,function(Y){return Y.languageCode==="en"})};
ma0=function(D){var Y=VG;if(_.EhK(D))D.setOption("captions","stickyLoading",{}),D.setOption("captions","track",{});else{var R=_.JS(_.jNU(D),function(Z){return Z.displayName===Y});
D.setOption("captions","track",R)}};
qUk=function(D){if(!D)return 0;var Y=D.getPresentingPlayerType(),R=D.getVideoData();return R&&R.isLive?(D=D.getProgressState(Y),D.seekableEnd-D.seekableStart):D.getDuration(Y)};
H4t=function(D,Y){for(var R=_.a(Object.keys(D)),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,D[Z]!==Y[Z])return!1;return!0};
xa9=function(){return document.getElementById("player-control-overlay")};
PMI=function(D){D!==-1&&!_.f("player_controls_log_creation_killswitch")&&xa9()&&(_.KX("pcu_cs",D),_.KX("pcu_ce"))};
B2I=function(D){return _.S("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(D.subscribeButton?[D.subscribeButton,D.channelAccess]:[D.channelAccess]).map(function(Y){return _.S("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.S("div",{class:"yt-profile-identity-info-view-model-wiz--button"},Qek(Y)))}))};
_.p_b=function(D){var Y=D.data;var R=D.hideDivider;D=D.isChannelInfoCard;var Z={};Z=(Z["yt-profile-identity-info-view-model-wiz__frame"]=!0,Z["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!Y.channelBanner,Z);Z={class:_.kc(Z)};var t,X={imageBannerViewModel:{image:(t=Y.channelBanner)==null?void 0:t.image,style:"IMAGE_BANNER_STYLE_INSET"}};t=_.S("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},Y.channelBanner?_.S("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
Qek(X,{imageBannerViewModel:{isPositionRelative:!0}})):null);X=_.S("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},Qek(Y.avatar));var M;var W=_.S("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.S("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},Y.channelDisplayName),Y.verifiedOrOacBadge?_.S("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.S(_.Rt,{data:{thumbnails:[{url:(M=Y.verifiedOrOacBadge)==null?void 0:M.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);M=_.S("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},W,Qek(Y.threeDotMenu));W=_.S("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.S("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.S("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},Y.channelHandle),Y.channelPronouns&&Y.channelHandle?_.S("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.S("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},Y.channelPronouns)),_.S("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.S("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},Y.leftOfBulletInfo),Y.leftOfBulletInfo&&Y.rightOfBulletInfo?_.S("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.S("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},Y.rightOfBulletInfo)));M=_.S("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},M,W);return _.S("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.S("div",Z,t,_.S("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},X,M),Y.channelDescription?_.S("div",{class:D?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
Y.channelDescription):null,B2I(Y),R?null:_.S("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
DJz=function(D,Y){var R=_.DX(D,{}),Z=Ed9("top",Y),t=Ed9("bottom",Y),X=Ed9("left",Y),M=Ed9("right",Y);return _.Ap({top:function(){return fe(R().position,Z)},
bottom:function(){return fe(R().position,t)},
left:function(){return fe(R().position,X)},
right:function(){return fe(R().position,M)},
position:function(){return fe(R().positionType,gdt)},
height:function(){return fe(R().height,ep)},
width:function(){return fe(R().width,ep)},
"min-width":function(){return fe(R().minWidth,ep)},
"min-height":function(){return fe(R().minHeight,ep)},
"max-width":function(){return fe(R().maxWidth,ep)},
"max-height":function(){return fe(R().maxHeight,ep)},
"aspect-ratio":function(){return fe(R().aspectRatio,String)},
"margin-top":function(){return fe(R().margin,Z)},
"margin-bottom":function(){return fe(R().margin,t)},
"margin-left":function(){return fe(R().margin,X)},
"margin-right":function(){return fe(R().margin,M)},
"padding-top":function(){return fe(R().padding,Z)},
"padding-bottom":function(){return fe(R().padding,t)},
"padding-left":function(){return fe(R().padding,X)},
"padding-right":function(){return fe(R().padding,M)},
"flex-direction":function(){return fe(R().flexDirection,dat)},
"justify-content":function(){return fe(R().justifyContent,i40)},
"align-items":function(){return fe(R().alignItems,O49)},
"flex-grow":function(){return fe(R().flexGrow,String)},
"flex-shrink":function(){return fe(R().flexShrink,String)},
"flex-basis":function(){return fe(R().flexBasis,ep)},
"align-self":function(){return fe(R().alignSelf,O49)},
"flex-wrap":function(){return fe(R().flexWrap,ctu)},
"align-content":function(){return fe(R().alignContent,O49)}})};
fe=function(D,Y){return D!==void 0?Y(D):void 0};
ctu=function(D){switch(D){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
gdt=function(D){switch(D){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
O49=function(D){switch(D){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"}};
i40=function(D){switch(D){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"}};
dat=function(D){switch(D){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"}};
Ed9=function(D,Y){var R=Y==="rtl";switch(D){case "top":var Z=Y39;break;case "bottom":Z=RtE;break;case "left":Z=ZbE;break;default:Z=tj0}return function(t){return fe(Z(t,R),ep)}};
Y39=function(D){var Y=D.top;var R=D.vertical;D=D.all;var Z;return(Z=Y!=null?Y:R)!=null?Z:D};
RtE=function(D){var Y=D.bottom;var R=D.vertical;D=D.all;var Z;return(Z=Y!=null?Y:R)!=null?Z:D};
ZbE=function(D,Y){var R=D.left;var Z=D.end;var t=D.start;var X=D.horizontal;D=D.all;var M,W;return(W=(M=R!=null?R:Y?Z:t)!=null?M:X)!=null?W:D};
tj0=function(D,Y){var R=D.right;var Z=D.end;var t=D.start;var X=D.horizontal;D=D.all;var M,W;return(W=(M=R!=null?R:Y?t:Z)!=null?M:X)!=null?W:D};
ep=function(D){var Y=D.value;switch(D.unit){case "YPC_DIMENSION_UNIT_POINT":return Y+"px";case "YPC_DIMENSION_UNIT_FRACTION":return Y+"%";default:return""+Y}};
sp0=function(D){switch(D){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"}};
XDk=function(D){var Y=D!=null?D:{};D=Y.fontRole;var R=Y.fontSize;Y=Y.fontWeight;if(D!==null&&R!==null)switch(D){case "YPC_FONT_ROLE_DISPLAY":switch(R){case "YPC_FONT_SIZE_L":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(R){case "YPC_FONT_SIZE_L":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return Y===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(R){case "YPC_FONT_SIZE_XL":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return Y==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Mju=function(D,Y,R){function Z(G){return Object.values(G).map(function(V){var e=V.productId;V=V.pricingOptionIndex;return AW(t(e).pricingOptions,V).pricingOptionId})}
function t(G){return z().get(G)}
function X(G){G=Z(G);R(G)}
function M(G,V){return Array.from(ne(G.pricingOptions)).filter(function(e){e=_.a(e);e.next();e=e.next().value;return rc(e.pricingGroupAttributes,V)}).map(function(e){return _.a(e).next().value})}
var W=wc([D,Y],function(G,V){var e=G==null?void 0:G.selectedPricingOptions;G={};var r=!0;if(e&&V.length)for(var l=_.a(V),U=l.next();!U.done;U=l.next()){U=U.value;var K=uPb(U.pricingOptions,function(Q){a:{Q=Q.pricingOptionId;for(var E=_.a(e),B=E.next();!B.done;B=E.next())if(B.value===Q){Q=!0;break a}Q=!1}return Q});
if(K>=0){r=!1;var H=AW(U.pricingOptions,K),c=void 0;G[U.groupId]={productId:U.productId,pricingOptionIndex:K,pricingGroupAttributes:(c=H)==null?void 0:c.pricingGroupAttributes}}}r&&V.length&&(r=AW(V[0].pricingOptions,0),G[V[0].groupId]={productId:V[0].productId,pricingOptionIndex:0,pricingGroupAttributes:r==null?void 0:r.pricingGroupAttributes});return G}),z=wc([Y],function(G){return new Map(G.map(function(V){return[V.productId,
V]}))}),I=wc([Y],function(G){var V=new Map;
G=_.a(G);for(var e=G.next();!e.done;e=G.next()){var r=e.value;e=r.groupId;var l=r.productId;r=_.a(ne(r.pricingOptions));for(var U=r.next();!U.done;U=r.next()){var K=_.a(U.value);U=K.next().value;K=K.next().value;V.set(K.pricingOptionId,{groupId:e,productId:l,index:U,pricingOption:K,pricingGroupAttributes:K.pricingGroupAttributes})}}return V}),F=wc([Y],function(G){var V=new Map;
G=_.a(G);for(var e=G.next();!e.done;e=G.next()){var r=e.value;e=r.groupId;var l=r.productId,U=void 0;r=_.a(ne((U=r.pricingGroups)!=null?U:[]));for(U=r.next();!U.done;U=r.next()){var K=_.a(U.value);U=K.next().value;K=K.next().value;V.set(K.pricingGroupId,{groupId:e,productId:l,index:U,pricingGroup:K,pricingGroupAttributes:K.pricingGroupAttributes})}}return V});
return{getProductById:t,isProductSelected:function(G){var V=t(G);if(!V)return!1;var e;return((e=W()[V.groupId])==null?void 0:e.productId)===G},
getSelectedPricingOptions:function(){return Object.values(W()).map(function(G){var V=G.productId;G=G.pricingOptionIndex;return AW(t(V).pricingOptions,G)})},
getSelectedPricingGroupAttributesByGroupId:function(G){var V;return(G=(V=W()[G])==null?void 0:V.pricingGroupAttributes)?Array.from(G):void 0},
getSelectedProductByGroupId:function(G){var V;return(G=(V=W()[G])==null?void 0:V.productId)?t(G):void 0},
onProductSelected:function(G){var V=t(G);if(V){var e=W(),r;if(((r=e[V.groupId])==null?void 0:r.productId)!==G){var l=(r=(l=e[V.groupId])==null?void 0:l.productId)?t(r):void 0;var U;r=(U=e[V.groupId])==null?void 0:U.pricingGroupAttributes;var K;U=(K=e[V.groupId])==null?void 0:K.pricingOptionIndex;if(l&&r&&U!==void 0){K=M(l,r).indexOf(U);if(K===-1)throw Error("Lj`"+U+"`"+l.productId);U=M(V,r);K=K<U.length?U[K]:U.length>0?U[0]:0}else K=0;$V(V.pricingOptions)<=K&&(K=0);U=AW(V.pricingOptions,K);var H;
l={};X(Object.assign({},e,(l[V.groupId]={productId:G,pricingOptionIndex:K,pricingGroupAttributes:(H=U==null?void 0:U.pricingGroupAttributes)!=null?H:[]},l)))}}},
onPricingOptionSelected:function(G){var V=I().get(G);if(V){G=V.groupId;var e=V.productId;V=V.index;var r=W(),l,U;if(((l=r[G])==null?void 0:l.productId)!==e||((U=r[G])==null?void 0:U.pricingOptionIndex)!==V){var K,H;l={};X(Object.assign({},r,(l[G]={productId:e,pricingOptionIndex:V,pricingGroupAttributes:(H=(K=r[G])==null?void 0:K.pricingGroupAttributes)!=null?H:[]},l)))}}},
onPricingGroupSelected:function(G){var V=F().get(G);if(V){G=V.groupId;var e=V.productId,r=V.pricingGroup.pricingGroupAttributes,l=t(e);if(l){V=W();var U=V[G].pricingGroupAttributes,K;if(((K=V[G])==null?void 0:K.productId)!==e||!rc(a10(U,$V(r)),r)){K=Array.from(r);for(r=$V(r);r<$V(U);r++){var H="",c=!1,Q=Array.from(K);Q.push(AW(U,r));for(var E=_.a(l.pricingGroups),B=E.next();!B.done;B=E.next())if(B=B.value,rc(B.pricingGroupAttributes,Q)){K.push(AW(U,r));c=!0;break}else H===""&&$V(B.pricingGroupAttributes)===
Q.length&&rc(a10(B.pricingGroupAttributes,K.length),K)&&(H=AW(B.pricingGroupAttributes,r));c||K.push(H)}H=V[G].pricingOptionIndex;r=[];c=new Map;Q=0;l=_.a(ne(l.pricingOptions));for(E=l.next();!E.done;E=l.next())B=_.a(E.value),E=B.next().value,B=B.next().value,rc(B.pricingGroupAttributes,K)&&r.push(E),rc(B.pricingGroupAttributes,U)&&c.set(E,Q++);r.length===0?U=0:(U=c.get(H),U=U!==void 0&&U<r.length?r[U]:r[0]);l={};X(Object.assign({},V,(l[G]={productId:e,pricingOptionIndex:U,pricingGroupAttributes:K},
l)))}}}},
onClearGroupSelected:function(G){var V=W();V[G]&&(V=Object.fromEntries(Object.entries(V).filter(function(e){return _.a(e).next().value!==G})),X(V))}}};
ne=function(D){return function R(){var Z,t,X,M,W;return _.Mi(R,function(z){switch(z.nextAddress){case 1:_.IK(z,2),Z=0,t=_.a(D),X=t.next();case 4:if(X.done){z.jumpTo(2);break}M=X.value;W=_.Co;return z.yield([Z++,M],7);case 7:W(z.yieldResult);X=t.next();z.jumpTo(4);break;case 2:_.jX(z),_.Fx(z,0)}})}()};
uPb=function(D,Y){D=_.a(ne(D));for(var R=D.next();!R.done;R=D.next()){var Z=_.a(R.value);R=Z.next().value;Z=Z.next().value;if(Y(Z))return R}return-1};
$V=function(D){var Y=0;for(D=D[Symbol.iterator]();!D.next().done;)++Y;return Y};
AW=function(D,Y){D=_.a(ne(D));for(var R=D.next();!R.done;R=D.next()){var Z=_.a(R.value);R=Z.next().value;Z=Z.next().value;if(R===Y)return Z}};
rc=function(D,Y){if(!D&&!Y)return!0;if(!D||!Y)return!1;D=Array.from(D);Y=Array.from(Y);if(D.length!==Y.length)return!1;for(var R=0;R<D.length;R++)if(D[R]!==Y[R])return!1;return!0};
a10=function(D,Y){Y=Y===void 0?Infinity:Y;var R=[];D=_.a(ne(D));for(var Z=D.next();!Z.done;Z=D.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;if(Z>=Y)break;Z>=0&&R.push(t)}return R};
wc=function(D,Y){var R,Z;return function(){for(var t=D.map(function(M){return M()}),X=0;X<t.length;X++)if(!R||t[X]!==R[X]){R=t;
Z=Y.apply(null,_.oK(t));break}return Z}};
C1u=function(D,Y,R){var Z=[];D=_.a(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;var X=void 0;((X=Y)==null?0:X.length)&&!rc(t.pricingGroupAttributes,Y)||Z.push({pricingOption:t,isSelected:R.includes(t.pricingOptionId)})}return Z};
Wfh=function(D,Y){return _.jC(D.entities,"pdpStateEntity",Y)};
ztk=function(D){var Y,R;return!!(D.productId&&D.groupId&&((Y=D.pricingOptions)==null?0:Y.length)&&D.pricingOptions.every(function(Z){return Z.pricingOptionId})&&((R=D.pricingGroups)==null||!R.length||Array.isArray(D.pricingGroups)&&D.pricingGroups.every(function(Z){return Z.pricingGroupId&&Z.pricingGroupAttributes&&Z.pricingGroupAttributes.length>0})))};
S3p=function(D,Y,R){return Mju(D,wc([Y],function(Z){return Z.filter(ztk)}),R)};
Tf9=function(D,Y){return Y.length===0?[D]:[D.slice(0,Y[0]),D.slice(Y[0])].filter(function(R){return R.length>0})};
jp9=function(D){switch(D){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""}};
Ff9=function(D,Y,R,Z){Z=Object.assign({},Z);_.U4(Z,I19,{selectedOptionId:D,primaryButtonOverride:R});_.Og().dispatch(_.oP("flowStateEntity",Y,Z))};
_.f1h=function(D,Y){if(D&&Y){var R=_.G6K();R().set(D,Y);D=R();Vjt(new Map(D))}};
_.AQ9=function(D){return{submitForm:function(){var Y;(Y=etK(D()))==null||Y.onSubmit()},
isValid:function(){var Y=etK(D());return Y?Y.isValid():!0},
isSubmitting:function(){var Y,R;return!!((Y=etK(D()))==null?0:(R=Y.isSubmitting)==null?0:R.call(Y))}}};
_.G6K=function(){if(!nsT){var D=_.a(_.ae(new Map,void 0,"WL4f0b"));nsT=D.next().value;Vjt=D.next().value}return nsT};
etK=function(D){if(D)return _.G6K()().get(D)};
rQ0=function(D){switch(D){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"}};
wDk=function(D){switch(D){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"}};
$J9=function(D,Y){return _.jC(D.entities,"contextNoteFeedEntityPayload",Y)};
vsI=function(D,Y){switch(D){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return Y==null?void 0:Y.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return Y==null?void 0:Y.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return Y==null?void 0:Y.ratingNotHelpfulText}};
os9=function(D,Y){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:D.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:D.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:D.deleteDialogTitle}]},dialogMessages:[{runs:[{text:D.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.deleteActionText}]},command:{performCommentActionEndpoint:{action:Y}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
bbu=function(D){D.style.height="auto";D.style.height=D.scrollHeight+"px"};
yQp=function(D){return[D.syncStep,D.asyncStep].filter(function(Y){return Y!==void 0})};
l1K=function(D){var Y,R,Z;if(D=(Y=D.structuredContextNoteFormSchema)==null?void 0:(R=Y.fieldSchemas)==null?void 0:(Z=R.noteBody)==null?void 0:Z.validationSchema)for(Y=_.a(yQp(D)),R=Y.next();!R.done;R=Y.next()){R=R.value.rules;if(!R)break;R=_.a(R);for(R=R.next();!R.done;R=R.next())return _.A(R.value,_.Nf9)}};
k6z=function(D){if(D){D=_.a(yQp(D));for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value.rules;if(!Y)break;Y=_.a(Y);for(Y=Y.next();!Y.done;Y=Y.next())return _.A(Y.value,JQp)}}};
KfK=function(D){if(D){D=_.a(yQp(D));for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value.rules;if(!Y)break;Y=_.a(Y);for(Y=Y.next();!Y.done;Y=Y.next())return _.A(Y.value,UJk)}}};
ht9=function(D){D=/^https?:\/\//.test(D)?D:"http://"+D;try{var Y=_.qC(D)}catch(R){return!1}if(Y.toString()!==D)return!1;D=Y.JSC$10000_domain_.split(".");return D.length>1&&D.every(function(R){return!!R})};
Lfk=function(D,Y,R,Z){var t;Z=(t=Z.structuredContextNoteData)==null?void 0:t.createCommentEndpoint;if(t=_.A(Z,_.hOL))return t.commentText=_.i0(D),t.videoPositionMention=Y,t.sources=R,Z};
mJT=function(D){return D==null?void 0:D.stringValue};
_.q3u=function(D){return D.talkToRecs};
xJT=function(D,Y,R){D=D.map(function(Z,t){return{listItemViewModel:{title:Z.title,subtitle:Z.subtitle,leadingImage:Z.leadingImage,trailingImage:t===Y?Hbh:void 0,rendererContext:{commandContext:{onTap:Z.onTap}}}}});
return Object.assign({},R&&{header:{panelHeaderViewModel:{title:R}}},{content:{listViewModel:{listItems:D}}})};
P1k=function(D,Y){if(D&&Y)switch(Y){case "SELECTION_TYPE_BOOL":return D.boolValue;case "SELECTION_TYPE_INT":return D.intValue;case "SELECTION_TYPE_STRING":return D.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return D.privacyStatusValue}};
Qp0=function(D){var Y;D=(Y=D.options)==null?void 0:Y.findIndex(function(R){return R.isSelected});
return D===void 0?-1:D};
BfK=function(D,Y,R){var Z=function(){return D().label},t={},X=_.e7("ytDropdownViewModelLabel",(t.ytDropdownViewModelLabelError=Y,t));
return _.S(_.T,{cond:function(){return D().label&&!(R()===-1&&D().label&&!D().placeholderText)},
then:function(){return _.S("div",{class:X},_.S(_.y_,{text:Z}))}})};
pDI=function(D,Y){var R={};R=_.e7("ytDropdownViewModelTitle",(R.ytDropdownViewModelTitlePlaceholder=function(){return Y()===-1},R));
return _.S("div",{class:R},_.S(_.y_,{text:function(){var Z=D();var t=Y();if(t===-1)Z=Z.placeholderText?Z.placeholderText:Z.label;else{var X,M;Z=(X=Z.options)==null?void 0:(M=X[t])==null?void 0:M.title}return Z}}))};
Esu=function(D,Y){var R=function(){return D().hint};
return _.S(_.c_,null,_.S(_.T,{cond:function(){return R()&&!Y()},
then:function(){return _.S("div",{class:_.e7("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.S(_.y_,{text:R,className:"ytDropdownViewModelSupportText"}))}}),_.S(_.T,{cond:Y,
then:function(){return _.S("div",{id:"dropdown-view-model-error",role:"alert",class:_.e7("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.S(_.nB,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.S(_.y_,{text:Y,className:"ytDropdownViewModelSupportText"}))}}))};
gsh=function(D,Y){var R=_.DH().resolve(_.aUK);_.$s(function(){var Z=D().id;Z&&R!=null&&R.dropdownMap.set(Z,Y)})};
ib0=function(D){D=_.A(D.scheduleButton,dJ0);D=_.A(D==null?void 0:D.primaryButton,_.QX);D=_.A(D==null?void 0:D.onTap,_.mQ);var Y,R,Z=((R=_.A(D,_.je))==null?void 0:R.commands)||[D];R=_.a(Z);for(D=R.next();!D.done&&!(Y=_.A(D.value,_.m0Y));D=R.next());var t;Y=(t=Y)==null?void 0:t.createBroadcastRequest;if(!Y)throw Error("Oj");return Y};
YKI=function(D,Y,R){R=R===void 0?{}:R;var Z,t;return _.C(function(X){if(Z=Obp(Y))return X.return(Z);(t=cQE(D,Y,R))&&DEk(Y,t);return X.return(t)})};
DEk=function(D,Y){var R=Rr9(D);R&&Y.then(function(Z){_.DH().resolve(_.Sm).put(R,new _.Tx({innertubeResponse:Z}))})};
Obp=function(D){if(D=Rr9(D)){var Y=_.DH().resolve(_.Sm);if(Y.has(D))return Y.get(D).then(function(R){return R==null?void 0:_.tn(R)})}return null};
Rr9=function(D){var Y=_.A(D.endpoint,_.Od);if(Y!=null&&Y.videoId)return Y={videoId:Y.videoId},_.f("web_imp_player_mute_params")&&(Y.mutedAtStart=D.startPlaybackInMutedState),_.dZ("inline_playback",Y)};
cQE=function(D,Y,R){D=_.d1(D,Y.endpoint,ZvE(Y,R)).then(function(Z){return Z});
return Promise.resolve(D)};
ZvE=function(D,Y){Y=_.f("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!D.startPlaybackInMutedState},Y):Object.assign({},{vis:5,autonav:"1"},Y);var R;Y={contentPlaybackContext:_.bX(Y,(R=_.A(D.endpoint.commandMetadata,_.GA))==null?void 0:R.url,window.location.href)};_.f("web_imp_player_mute_params")&&(Y.overrideMutedAtStart=!D.startPlaybackInMutedState);return Y};
uWb=function(D,Y){var R=window.MutationObserver;R&&(vb=new R(function(Z,t){Z=_.a(Z);for(var X=Z.next();!X.done;X=Z.next()){X=X.value;var M;if(M=X.type==="childList"&&X.target)a:{M=D;X=t$T(X.target);M=t$T(M);for(var W=null,z=0;z<X.length;z++)if(M.includes(X[z])){if(z===0){M=!1;break a}W=X[z];break}W?(X=sn9(X,W),M=sn9(M,W),M=X<M):M=!1}if(M){Y();t.disconnect();break}}}),(R=Xr9())&&vb.observe(R,{childList:!0,
subtree:!0}))};
Xr9=function(){var D=document.getElementsByTagName("ytd-rich-grid-renderer");if(D.length>0)return D[0];D=document.getElementsByTagName("ytd-section-list-renderer");return D.length>0?D[0]:null};
t$T=function(D){for(var Y=[];D;)Y.push(D),D=D.parentElement;return Y};
sn9=function(D,Y){var R=Array.from(Y.children);Y=D.indexOf(Y);return Y>0?R.indexOf(D[Y-1]):-1};
o7=function(D,Y,R){R=R===void 0?{}:R;return _.fX(D,R,Y)};
aH0=function(D){switch(D){case "MUSIC":return!0;default:return!1}};
M$u=function(D){return D==null?void 0:D.filter(function(Y){return Y.premiereTrailerBadgeRenderer})};
WzT=function(D){var Y,R=D==null?void 0:(Y=D.find(function(G){return G.thumbnailOverlayTimeStatusRenderer}))==null?void 0:Y.thumbnailOverlayTimeStatusRenderer,Z,t;
if((R==null?0:(Z=R.icon)==null?0:Z.iconType)&&aH0(R==null?void 0:(t=R.icon)==null?void 0:t.iconType)){var X;return{icon:R==null?void 0:(X=R.icon)==null?void 0:X.iconType}}var M,W;var z=(D=(M=D==null?void 0:(z=D.find(function(G){return G.thumbnailBottomOverlayViewModel}))==null?void 0:z.thumbnailBottomOverlayViewModel)==null?void 0:(W=M.badges)==null?void 0:W.find(function(G){var V,e;
return((V=_.A(G,CxK))==null?void 0:(e=V.inlinePlaybackBadgeData)==null?void 0:e.replicateAsTimestamp)===!0}))?_.A(D,CxK):void 0;
if(z==null?0:z.icon){var I,F;if((z=(I=_.jVU(z==null?void 0:z.icon))==null?void 0:(F=I.clientResource)==null?void 0:F.imageName)&&aH0(z))return{icon:z}}return{}};
Fzb=function(D,Y){var R=zrE,Z=_.a(_.ae(SK9(new TP0(function(){},R,Y)),void 0,"PAnyd")),t=Z.next().value,X=Z.next().value,M=new TP0(function(W){X(W)},R,Y);
_.r2(function(){Promise.resolve().then(function(){var W,z=(W=D())!=null?W:{};M.playerControlsData=z;_.f("player_controls_skip_double_signal_old")&&(M.lastSeenPlayerApi=_.Lo(z.playerApi));_.f("player_controls_skip_double_signal_old")||(M.lastSeenPlayerApi=_.Lo(z.playerApi));jnb(M)});
_.w2(function(){IH9(M)})},"HikUP");
_.w2(function(){IH9(M)});
return function(){return t()}};
GZk=function(D){return function(Y){var R=D(),Z={playerState:Y};if(Y===1){var t;(t=R.playerApi)==null||t.loadModule("captions")}if(Y===0){var X;(X=R.playerApi)==null||X.unloadModule("captions")}(Y!==-1||_.f("web_imp_controls_set_player_state_killswitch"))&&R.setState(Z)}};
V$I=function(D){return function(Y){D().setState({playbackRate:Y})}};
fHT=function(D){return function(Y){var R=D(),Z=R.playerApi,t=Z==null?void 0:Z.getVideoData(),X=(t==null?void 0:t.isLive)||!1;t=t==null?void 0:t.video_id;X={videoDuration:qUk(Z||void 0),isLive:X,videoId:t};X.videoId!==R.videoId&&(X=Object.assign({},_.tKj(Z),X));if(Y==null?0:Y.playertype)X.playerType=Y.playertype;if(Z){X.captionsAvailable=_.YV(Z);Y=X;var M;t=(M=Z.getStoryboardLevel(Z.getNumberOfStoryboardLevels()-1))==null?void 0:M.intervalMs;Y.storyboardInterval=t?t/1E3:void 0;X.captionsAvailable&&
(X.captionsEnabled=_.EhK(Z))}X.volumeMuted=!(Z==null||!Z.isMuted());R.setState(X)}};
erp=function(D){return function(Y){var R=D(),Z=R.playerApi;if(Z){var t=Z.getPresentingPlayerType();Y={playedTime:Y||0,percentLoaded:Z.getVideoLoadedFraction(),playerType:t};R.playerState===0&&(Y.playedTime=R.videoDuration);R.isLive&&(t=Z.getProgressState(t),Y.playedTime-=t.seekableStart,Y.videoDuration=qUk(Z));if(R.playerType===1)Z=!1;else{var X;if((X=R.uxConfig)==null?0:X.showCuedOverlay){var M;Z=!((M=R.playerApi)==null?0:M.getPlayerStateObject(R.playerType).isDomPaused)}else Z=!0}Z&&delete Y.playedTime;
R.setState(Y)}}};
ATu=function(D){return function(){var Y=D(),R,Z,t,X={volume:(t=(R=Y.playerApi)==null?void 0:R.getVolume())!=null?t:0,volumeMuted:!((Z=Y.playerApi)==null||!Z.isMuted())};Y.setState(X)}};
nwb=function(D){return function(){var Y=D(),R=Y.playerApi;if(R){var Z={captionsAvailable:_.YV(R)};Z.captionsAvailable&&(Z.captionsEnabled=_.EhK(R));Y.setState(Z)}}};
rTI=function(D){return function(){var Y=D();if(Y.playerApi&&!(Y.volumeMuted||Y.controlsVisible&&Y.isProbablyAScreenreaderUser)){Y.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var R;(R=document.querySelector(".player-control-play-pause-icon"))==null||R.focus()}}};
wrh=function(D){return{appApi:Object.assign({},_.i_U(),{showCaptionsToggleToast:function(Y){var R,Z;(Z=(R=D()).showCaptionsToggleToast)==null||Z.call(R,Y)},
openInMiniplayer:function(){var Y,R;(R=(Y=D()).openInMiniplayer)==null||R.call(Y)}})}};
$Et=function(D,Y){var R,Z,t;return!!(D==null?0:(R=D.playerResponse)==null?0:(Z=R.playerConfig)==null?0:(t=Z.inlinePlaybackConfig)==null?0:t.showScrubbingControls)&&!(Y==null?0:Y.hideScrubbingControls)};
_.vwK=function(D){var Y=!D.miniplayerIsActive;return[5,2,0].includes(D.miniplayerPlaybackState)||Y};
owI={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};bvI=function(D,Y){var R,Z,t,X,M;_.C(function(W){if(!Y.length)return W.return([]);R=[];Z=_.a(Y);for(t=Z.next();!t.done;t=Z.next())X=t.value,(M=D.resolveIcon(X))&&!D.iconCache[M.url]&&R.push(_.J9T(D,M).then(function(){}).catch(function(){}));
return W.return(Promise.all(R))})};
yTK=function(D,Y){var R=[];Y=(new Set(Y)).values();Y=_.a(Y);for(var Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;for(var t=_.a(Object.values(owI)),X=t.next();!X.done;X=t.next())R.push({iconName:Z,iconStyle:X.value})}bvI(D.iconManager,R)};
_.NPK=function(D,Y,R){var Z=R!=null?R:D.iconsToFetch;Z!=null&&Z.length?Y!==void 0&&Y>=0?_.Ak(_.yc,function(){yTK(D,Z)},Y):yTK(D,Z):Promise.resolve()};
TP0=function(D,Y,R){var Z=this;this.renderFn=D;this.listeners=Y;this.context=R;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var t;this.lastSeenPlayerApi=_.Lo((t=this.playerControlsData)==null?void 0:t.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.tKj(),void 0);_.f("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){SK9(Z).setState({playerState:-1});Z.resetRecentlyNavigatedJobId&&_.yc.cancelJob(Z.resetRecentlyNavigatedJobId);
Z.recentlyNavigated=!0;Z.resetRecentlyNavigatedJobId=_.yc.addJob(function(){Z.recentlyNavigated=!1},8,1E4)})};
TP0.prototype.setState=function(D){if(!_.f("mweb_player_skip_no_op_state_changes")||!H4t(D,this.state))if(this.state=Object.assign({},this.state,D),!_.f("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)D=-1,_.f("player_controls_log_creation_killswitch")||xa9()||(D=(0,_.DO)()),_.KX("pcu_s"),_.KX("pcu_se"),_.KX("pcu_rs"),this.renderFn(SK9(this)),_.KX("pcu_re"),PMI(D),_.yc.addJob(function(){_.KX("pcu_ap")},8)};
var SK9=function(D){var Y;var R=_.Lo((Y=D.playerControlsData)==null?void 0:Y.playerApi);return Object.assign({},D.state,{setState:D.boundSetState,domMeasurements:{progressBarLineRect:D.progressBarLineRect},playerApi:R,appApi:D.context.appApi,playerContainer:D.context.playerContainer,playerControlContainer:D.context.playerControlContainer,uxConfig:D.context.uxConfig})},jnb=function(D){D.listeners.forEach(function(Y){D.eventListenerCleanupFunctions.push(Y.register(function(){return SK9(D)},function(){return D.getData()}))})},
IH9=function(D){D.eventListenerCleanupFunctions.forEach(function(Y){Y()});
D.eventListenerCleanupFunctions.length=0};
TP0.prototype.getData=function(){return this.playerControlsData};var bp=new _.Dv("abuseReportFlowState");var lHE=new _.Dv("feedbackFormFlowState");var JTk=new _.Dv("inputBoxViewModel");var kZI=new _.Dv("flowNextStepCommand");var UEz=new _.Dv("flowPrevStepCommand");var Kz9=new _.Dv("updateFlowCommand");_.hrK=new _.Dv("flowStepRenderer");_.Nf9=new _.Dv("lengthValidationRule");var JQp=new _.Dv("regexValidationRule");var UJk=new _.Dv("selectedValidationRule");var Lzk=new _.Dv("talkToRecsViewModel");var mEz=new _.Dv("creatorGoalSetUpFlowDropdownItemViewModel");var qKz=new _.Dv("creatorGoalSetUpFlowDropdownViewModel");var CxK=new _.Dv("thumbnailBadgeViewModel");_.Hvp=new _.Dv("radioButtonGroupViewModel");var dJ0=new _.Dv("panelFooterViewModel");var xEz=new _.Dv("ypcCancelRecurrenceCommand");var Pxh=new _.Dv("cancellationFlowState");var I19=new _.Dv("premiumPurchaseFlowState");var QnE=new _.Dv("surveyAnswerCardRenderer");var BPh=new _.Dv("showMoreButtonRenderer");var pr0;var EwT,gw0=function(){if(EwT!==void 0)return EwT;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;pr0===void 0&&(pr0=document.createElement("template"));var Z=pr0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return EwT=D};var yG=function(){var D=_.N.apply(this,arguments)||this;D.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";D.goalDescription="";D.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";D.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";D.startButtonId="start-button";D.exampleButtonId="example-button";return D};
_.n(yG,_.N);_.u=yG.prototype;_.u.getGoalDropdownItems=function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.purchaseTargetDropdown,qKz))==null?void 0:Y.dropdownItems};
_.u.getTimerDropdownItems=function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.timerDropdown,qKz))==null?void 0:Y.dropdownItems};
_.u.getColorDropdownItems=function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.colorDropdown,qKz))==null?void 0:Y.dropdownItems};
_.u.getDropdownItemText=function(D){var Y;return(Y=_.A(D,mEz))==null?void 0:Y.itemLabel};
_.u.getDropdownItemValue=function(D){D=_.A(D,mEz);return(D==null?void 0:D.timeLimit)||(D==null?void 0:D.purchaseTarget)||(D==null?void 0:D.eligiblePurchaseType)};
_.u.updateFlowState=function(D){_.CX(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:D}])};
_.u.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.u.updateGoalValue=function(D){this.goal=D.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.u.onTextValueChanged=function(D){this.goalDescription=D.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.u.updateTimerValue=function(D){this.timer=D.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.u.updateTierValue=function(D){this.tier=D.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.u.getButtonViewModel=function(D){D=(D==null?void 0:D.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var Y,R=_.A((Y=this.data)==null?void 0:Y.startGoalButton,_.QX);return Object.assign({},R,{state:D})};
_.YF.Object.defineProperties(yG,{template:{configurable:!0,enumerable:!0,get:function(){return gw0()}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yG.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],yG.prototype,"goal",void 0);_.q([_.y(),_.x("design:type",Object)],yG.prototype,"goalDescription",void 0);_.q([_.y(),_.x("design:type",Object)],yG.prototype,"timer",void 0);_.q([_.y(),_.x("design:type",Object)],yG.prototype,"tier",void 0);
_.q([_.y(),_.x("design:type",Object)],yG.prototype,"startButtonId",void 0);_.q([_.y(),_.x("design:type",Object)],yG.prototype,"exampleButtonId",void 0);_.q([_.Lr({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],yG);_.L(yG,"yt-creator-goal-set-up-flow-view-model",function(){return gw0()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var dEK;var ivp;var OvI;var cTK=function(){return _.N.apply(this,arguments)||this};
_.n(cTK,_.N);_.q([_.y(),_.x("design:type",Object)],cTK.prototype,"data",void 0);_.q([_.Lr({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],cTK);
_.L(cTK,"yt-survey-answer-card-renderer",function(){if(OvI===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;ivp===void 0&&(ivp=document.createElement("template"));var Z=ivp;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);OvI=D}D=OvI;return D},{mode:2});var DsI;var Y10;var Nm=function(){return _.N.apply(this,arguments)||this};
_.n(Nm,_.N);_.u=Nm.prototype;_.u.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.u.selectedItemChanged=function(D){_.CX(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[D.feedbackToken||""]}])};
_.u.surveyAnswerCardRendererClicked=function(D){if(D.target&&_.A(D.model.item,QnE)){var Y=D.target;D=_.A(D.model.item,QnE);D.onTapCommand?_.Se(Y,[D.onTapCommand],Y):this.data.onTapCommand&&_.Se(Y,[this.data.onTapCommand],Y);this.selectedItemChanged(D)}};
_.u.checkIsCancellationStyle=function(D){return D==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.u.updateSelectedItemFromBinding=function(D){this.selectedItem=D.detail.value};
Nm.prototype.onSelectedItemChanged=Nm.prototype.onSelectedItemChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Nm.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Nm.prototype,"selectedItem",void 0);_.q([_.y({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Nm.prototype,"isCancellationStyle",void 0);
_.q([_.Gm("selectedItem"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nm.prototype,"onSelectedItemChanged",null);_.q([_.Lr({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Nm);
_.L(Nm,"yt-survey-flow-step-renderer",function(){if(Y10===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;DsI===void 0&&(DsI=document.createElement("template"));var Z=DsI;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Y10=D}D=Y10;return D},{mode:2});var lp=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return D};
_.n(lp,_.N);lp.prototype.handleSurveyFlowStepOptionChanged=function(D){this.ytdReduxBehavior.dispatch(_.u0({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:D}));_.CX(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],lp.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],lp.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lp.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],lp);
_.L(lp,"ytd-survey-flow-step-renderer",function(){if(dEK!==void 0)return dEK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dEK=D},{mode:1});var Qek;Qek=_.bE({avatarViewModel:_.Jz,buttonViewModel:_.TV,subscribeButtonViewModel:_.J7,imageBannerViewModel:_.xj});_.R2z=_.Vv(_.p_b);_.tN(_.p_b);var Zqh;var JW=function(){return _.N.apply(this,arguments)||this};
_.n(JW,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],JW.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],JW.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],JW);
_.L(JW,"ytd-channel-history-renderer",function(){if(Zqh!==void 0)return Zqh;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Zqh=D},{mode:1});var thK;var sEu=function(){return _.N.apply(this,arguments)||this};
_.n(sEu,_.N);_.q([_.y(),_.x("design:type",Object)],sEu.prototype,"data",void 0);_.q([_.h({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],sEu);
_.L(sEu,"ytd-feature-enablement-info-renderer",function(){if(thK!==void 0)return thK;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return thK=D},{mode:1});var XgE;var uGT;var kV=function(){var D=_.N.apply(this,arguments)||this;D.textBoxMaxLength=_.f("enable_tvod_campaign_code_integration")?15:12;return D};
_.n(kV,_.N);_.u=kV.prototype;_.u.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.u.onSubmit=function(){var D=this.data.serviceEndpoint,Y=_.A(D,_.Dx);Y&&D&&(Y.couponCode=this.userInput,_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}}))};
_.u.validate=function(){var D=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=D&&!this.data.errorMessage;this.showErrorMessage=D&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.f("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.u.computeStyle=function(D){return D};
_.u.computeShowValidationBelowInput=function(D){return D!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.u.updateUserInputFromBinding=function(D){this.userInput=D.currentTarget.value};
_.u.updateShowErrorMessageFromBinding=function(D){this.showErrorMessage=D.detail.value};
_.YF.Object.defineProperties(kV.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
kV.prototype.dataChanged=kV.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],kV.prototype,"userInput",void 0);_.q([_.y(),_.x("design:type",Boolean)],kV.prototype,"disableApplyButton",void 0);_.q([_.y(),_.x("design:type",Boolean)],kV.prototype,"hideApplyButton",void 0);
_.q([_.y(),_.x("design:type",Boolean)],kV.prototype,"hideErrorMessage",void 0);_.q([_.y(),_.x("design:type",Boolean)],kV.prototype,"showTick",void 0);_.q([_.y(),_.x("design:type",Boolean)],kV.prototype,"showErrorMessage",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],kV.prototype,"couponStyle",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.x("design:type",Boolean)],kV.prototype,"showValidationBelowInput",void 0);_.q([_.y(),_.x("design:type",Object)],kV.prototype,"textBoxMaxLength",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kV.prototype,"dataChanged",null);
_.q([_.b("showTick","showErrorMessage","userInput"),_.x("design:type",String),_.x("design:paramtypes",[])],kV.prototype,"validationState",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],kV);
_.L(kV,"ytd-ypc-coupon-renderer",function(){if(uGT!==void 0)return uGT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return uGT=D},{mode:1});var Uv=function(){return _.N.apply(this,arguments)||this};
_.n(Uv,_.N);Uv.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"}}}};
Uv.prototype.computeStyle=function(D){return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Uv.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Uv.prototype,"buttonStyle",void 0);_.q([_.h({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Uv);
_.L(Uv,"ytd-flow-bottom-bar-renderer",function(){if(XgE!==void 0)return XgE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return XgE=D},{mode:1});var aOp;var Mh9;var CDb;var Ke=function(){return _.N.apply(this,arguments)||this};
_.n(Ke,_.N);Ke.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ke.prototype.focus=function(D){this.title&&_.Bg(this.title,D)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ke.prototype,"data",void 0);_.q([_.fr("#title"),_.x("design:type",HTMLElement)],Ke.prototype,"title",void 0);_.q([_.h({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Ke);
_.L(Ke,"ytd-flow-top-bar-renderer",function(){if(CDb!==void 0)return CDb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return CDb=D},{mode:1});var Wiu;var z2K;var S1K;var hW=function(){return _.N.apply(this,arguments)||this};
_.n(hW,_.N);hW.prototype.freeTextValueChanged=function(){_.CX(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
hW.prototype.updateFreeTextValueFromBinding=function(D){this.freeTextValue=D.detail.value};
_.YF.Object.defineProperties(hW.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(Y=(D=this.data)==null?void 0:D.responseMaxLength)!=null?Y:500,Z;return((Z=this.freeTextValue)!=null?Z:"").length>=R?"maxed-out":""}}});
hW.prototype.freeTextValueChanged=hW.prototype.freeTextValueChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hW.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],hW.prototype,"freeTextValue",void 0);_.q([_.fr("#user-input"),_.x("design:type",HTMLTextAreaElement)],hW.prototype,"input",void 0);
_.q([_.b("freeTextValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],hW.prototype,"characterLimitClass",null);_.q([_.Gm("freeTextValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hW.prototype,"freeTextValueChanged",null);_.q([_.Lr({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],hW);
_.L(hW,"yt-free-text-input-flow-step-renderer",function(){if(S1K===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;z2K===void 0&&(z2K=document.createElement("template"));var Z=z2K;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);S1K=D}D=S1K;return D},{mode:2});var Le=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return D};
_.n(Le,_.N);Le.prototype.handleFreeTextFlowStepInputChanged=function(D){_.CX(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Le.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Le.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Le.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Le);
_.L(Le,"ytd-free-text-input-flow-step-renderer",function(){if(Wiu!==void 0)return Wiu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Wiu=D},{mode:1});var TRt;var jEt;var IOz=function(){return _.N.apply(this,arguments)||this};
_.n(IOz,_.N);_.q([_.y(),_.x("design:type",Object)],IOz.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],IOz);
_.L(IOz,"ytd-metadata-line-renderer",function(){if(jEt!==void 0)return jEt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jEt=D},{mode:1});var mY=function(){return _.N.apply(this,arguments)||this};
_.n(mY,_.N);mY.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],mY.prototype,"isMasthead",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],mY);
_.L(mY,"ytd-media-product-renderer",function(){if(TRt!==void 0)return TRt;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return TRt=D},{mode:1});var FiI;var qm=function(){return _.N.apply(this,arguments)||this};
_.n(qm,_.N);qm.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
qm.prototype.onBillboardImageLoaded=function(){_.MX(this.hostElement,"yt-refit")};
qm.prototype.onBillboardImageLoaded=qm.prototype.onBillboardImageLoaded;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qm.prototype,"data",void 0);_.q([_.fr("#billboardImage"),_.x("design:type",Object)],qm.prototype,"billboardImage",void 0);_.q([_.Fv("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qm.prototype,"onBillboardImageLoaded",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],qm);
_.L(qm,"ytd-billboard-masthead-renderer",function(){if(FiI!==void 0)return FiI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return FiI=D},{mode:1});var GF9;var Hb=function(){var D=_.N.apply(this,arguments)||this;D.smallSize=!1;return D};
_.n(Hb,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Hb.prototype,"ytComponentBehaviorType",void 0);_.q([_.y(),_.x("design:type",Object)],Hb.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Hb.prototype,"smallSize",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Hb);
_.L(Hb,"ytd-bullet-formatted-string",function(){if(GF9!==void 0)return GF9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return GF9=D},{mode:1});var Vh0;var xV=function(){return _.N.apply(this,arguments)||this};
_.n(xV,_.N);xV.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xV.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],xV);
_.L(xV,"ytd-offer-detail-renderer",function(){if(Vh0!==void 0)return Vh0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Vh0=D},{mode:1});var fOK;var Pb=function(){return _.N.apply(this,arguments)||this};
_.n(Pb,_.N);Pb.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Pb.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Pb);
_.L(Pb,"ytd-offer-detail-step-renderer",function(){if(fOK!==void 0)return fOK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return fOK=D},{mode:1});var e2k;var QG=function(){var D=_.N.apply(this,arguments)||this;D.isInOfferModule=!1;return D};
_.n(QG,_.N);_.u=QG.prototype;_.u.computeHasEndpoint=function(){var D;return!((D=this.data)==null||!D.onClickCommand)};
_.u.dataChanged=function(){var D;if((D=this.data)==null?0:D.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")};
_.u.detached=function(){var D;if((D=this.data)==null?0:D.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.u.handleClickEvent=function(){var D;if((D=this.data)==null?0:D.onClickCommand){var Y;this.componentBehavior.resolveCommand((Y=this.data)==null?void 0:Y.onClickCommand)}};
_.u.onContentKeyDown=function(D){D.key==="Enter"?this.handleClickEvent(D):D.key===" "&&D.preventDefault()};
_.u.onContentKeyUp=function(D){D.key===" "&&this.handleClickEvent(D)};
QG.prototype.dataChanged=QG.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],QG.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QG.prototype,"data",void 0);_.q([_.y({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],QG.prototype,"hasEndpoint",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],QG.prototype,"isInOfferModule",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QG.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],QG);
_.L(QG,"ytd-channel-masthead-renderer",function(){if(e2k!==void 0)return e2k;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return e2k=D},{mode:1});var APK;var Bb=function(){var D=_.N.apply(this,arguments)||this;D.thumbnailObjectFit="CONTAIN";D.thumbnailObjectPosition="LEFT";D.isExpanded=!1;return D};
_.n(Bb,_.N);_.u=Bb.prototype;_.u.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.u.dataChanged=function(){this.resetStates()};
_.u.computeisTapOnOfferInfoContainerEnabled=function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.u.onExpandBtnClick=function(){var D,Y=_.A((D=this.data)==null?void 0:D.showMoreButtonRenderer,BPh);Y&&_.GJ(_.n8(),Y.trackingParams);this.isExpanded=!this.isExpanded};
_.u.onOfferInfoClick=function(D){this.isTapOnOfferInfoContainerEnabled&&(_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.RP(_.O$(D)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.u.onBottomBarClick=function(){this.executeTapCommand()};
_.u.executeTapCommand=function(){var D,Y=(D=this.data)==null?void 0:D.tapCommand;Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.u.resetStates=function(){this.isExpanded=!1};
_.YF.Object.defineProperties(Bb.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var D=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),Y,R,Z;return((Y=this.data)==null?void 0:Y.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&D&&!!((R=this.data)==null?0:(Z=R.benefits)==null?0:Z.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((Y=_.A((D=this.data)==null?void 0:D.showMoreButtonRenderer,BPh))==null?void 0:Y.showMoreButtonTitle)||((R=this.data)==null?void 0:R.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((Y=_.A((D=this.data)==null?void 0:D.showMoreButtonRenderer,BPh))==null?void 0:Y.showLessButtonTitle)||((R=this.data)==null?void 0:R.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var D;return(D=this.showLessButtonTitle)!=null?D:""}var Y;return(Y=this.showMoreButtonTitle)!=null?Y:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((Y=this.data)==null?0:Y.footerTitle)||((R=this.data)==null?0:R.footerSubtitle))}}});
Bb.prototype.dataChanged=Bb.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Bb.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",String)],Bb.prototype,"thumbnailObjectFit",void 0);
_.q([_.y(),_.x("design:type",String)],Bb.prototype,"thumbnailObjectPosition",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.x("design:type",Boolean)],Bb.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.q([_.y(),_.x("design:type",Object)],Bb.prototype,"isExpanded",void 0);_.q([_.y(),_.x("design:type",Object)],Bb.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.footerIcon)"}),_.x("design:type",String)],Bb.prototype,"icon",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bb.prototype,"dataChanged",null);_.q([_.b("data.thumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bb.prototype,"hasThumbnail",null);_.q([_.b("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bb.prototype,"enableExpandButton",null);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bb.prototype,"enableOfferContentIcon",null);_.q([_.b("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bb.prototype,"showMoreButtonTitle",null);_.q([_.b("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bb.prototype,"showLessButtonTitle",null);
_.q([_.b("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],Bb.prototype,"expandedBtnText",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Bb.prototype,"enableBottomBar",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Bb);
_.L(Bb,"ytd-offer-card-renderer",function(){if(APK!==void 0)return APK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return APK=D},{mode:1});var nQz;var pe=function(){return _.N.apply(this,arguments)||this};
_.n(pe,_.N);pe.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"}}}};
pe.prototype.onClick=function(D){if(!_.Yc(D.composedPath()||[],this.hostElement,["A".toString()])){var Y,R;if((D=(R=_.A((Y=this.data)==null?void 0:Y.actionButton,_.qv))==null?void 0:R.command)&&!this.ytComponentBehavior.resolveCommand(D)){var Z;(Z=_.n8())==null||Z.clickCommand(D);_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})}}};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pe.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],pe);
_.L(pe,"ytd-offer-content-renderer",function(){if(nQz!==void 0)return nQz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return nQz=D},{mode:1});var rPE;var Ev=function(){return _.N.apply(this,arguments)||this};
_.n(Ev,_.N);Ev.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.YF.Object.defineProperties(Ev.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.title)||!((Y=this.data)==null||!Y.description)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ev.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ev.prototype,"hasHeaderData",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Ev);
_.L(Ev,"ytd-offer-section-renderer",function(){if(rPE!==void 0)return rPE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return rPE=D},{mode:1});var wgK;var dc=function(){return _.N.apply(this,arguments)||this};
_.n(dc,_.N);
dc.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dc.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],dc);
_.L(dc,"ytd-offer-selection-step-renderer",function(){if(wgK!==void 0)return wgK;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return wgK=D},{mode:1});var $s9;var ip=function(){return _.N.apply(this,arguments)||this};
_.n(ip,_.N);ip.prototype.computeStyle=function(D){return D};
ip.prototype.computeImageWidth=function(D){return D==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.q([_.y({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],ip.prototype,"containerStyle",void 0);_.q([_.y({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.x("design:type",String)],ip.prototype,"imageWidth",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ip.prototype,"data",void 0);
_.q([_.h({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],ip);
_.L(ip,"ytd-confirmation-masthead-renderer",function(){if($s9!==void 0)return $s9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $s9=D},{mode:1});var vQ9;var Ov=function(){return _.N.apply(this,arguments)||this};
_.n(Ov,_.N);Ov.prototype.computeStyle=function(D){return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ov.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],Ov.prototype,"containerStyle",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Ov);
_.L(Ov,"ytd-purchase-complete-detail-renderer",function(){if(vQ9!==void 0)return vQ9;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return vQ9=D},{mode:1});var oQK;var cb=function(){var D=_.N.apply(this,arguments)||this;D.scriptsAppended=!1;return D};
_.n(cb,_.N);cb.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"}}}};
cb.prototype.onDataChanged=function(){var D=this.get("data.gtmId");D&&(_.J$(D,_.JQ("GL","")),this.setupConversionTracking())};
cb.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("noscript");D.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(D);this.scriptsAppended=!0}};
cb.prototype.onDataChanged=cb.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cb.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],cb.prototype,"scriptsAppended",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cb.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],cb);
_.L(cb,"ytd-purchase-complete-step-renderer",function(){if(oQK!==void 0)return oQK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return oQK=D},{mode:1});var bq0;var D$=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(D$,_.N);D$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],D$.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],D$.prototype,"darkerDarkTheme",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],D$);
_.L(D$,"ytd-ypc-transaction-error-message-renderer",function(){if(bq0!==void 0)return bq0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return bq0=D},{mode:1});var yPI;var NRp;var Ya=function(){var D=_.N.apply(this,arguments)||this;D.handlePhoneVerificationSuccess=function(Y){if(D.isValidPhoneVerificationCompletionMessageEvent(Y)){var R;((R=D.data)==null?0:R.nextStepCommand)&&D.ytComponentBehavior.resolveCommand(D.data.nextStepCommand)}};
return D};
_.n(Ya,_.N);Ya.prototype.isValidPhoneVerificationCompletionMessageEvent=function(D){if(D.data!=="yt-phone-verification-complete")return!1;D=_.gf(D.origin);return D!==null&&D.includes("youtube.com")};
Ya.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Ya.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Ya.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ya.prototype,"data",void 0);_.q([_.Lr({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Ya);
_.L(Ya,"yt-feature-enablement-soft-entry-renderer",function(){if(NRp===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;yPI===void 0&&(yPI=document.createElement("template"));var Z=yPI;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);NRp=D}D=NRp;return D},{mode:1});var lOK;var JPK;var kFz;var Ush;var KiI=function(){return _.N.apply(this,arguments)||this};
_.n(KiI,_.N);_.q([_.y(),_.x("design:type",Object)],KiI.prototype,"data",void 0);_.q([_.Lr({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],KiI);
_.L(KiI,"yt-benefits-item-renderer",function(){if(Ush===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;kFz===void 0&&(kFz=document.createElement("template"));var Z=kFz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Ush=D}D=Ush;return D},{mode:2});var h2h;var Li0;var Rf=function(){return _.N.apply(this,arguments)||this};
_.n(Rf,_.N);Rf.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Rf.prototype.computeisWithoutPadding=function(){var D;return((D=this.data)==null?void 0:D.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Rf.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.x("design:type",Boolean)],Rf.prototype,"isWithoutPadding",void 0);_.q([_.Lr({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Rf);
_.L(Rf,"yt-benefits-section-renderer",function(){if(Li0===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;h2h===void 0&&(h2h=document.createElement("template"));var Z=h2h;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Li0=D}D=Li0;return D},{mode:2});var Z$=function(){return _.N.apply(this,arguments)||this};
_.n(Z$,_.N);Z$.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Z$.prototype.computeisUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Z$.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.x("design:type",Boolean)],Z$.prototype,"isUsingLargeWidth",void 0);_.q([_.Lr({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Z$);
_.L(Z$,"yt-benefits-flow-step-renderer",function(){if(JPK===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;lOK===void 0&&(lOK=document.createElement("template"));var Z=lOK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);JPK=D}D=JPK;return D},{mode:2});var msu;var q10;var tb=function(){return _.N.apply(this,arguments)||this};
_.n(tb,_.N);tb.prototype.checkIsUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.q([_.y(),_.x("design:type",Object)],tb.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.q([_.y({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.x("design:type",Boolean)],tb.prototype,"isUsingLargeWidth",void 0);_.q([_.Lr({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],tb);
_.L(tb,"yt-confirmation-flow-step-renderer",function(){if(q10===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;msu===void 0&&(msu=document.createElement("template"));var Z=msu;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);q10=D}D=q10;return D},{mode:2});var HqE;var xsE;var PDk=function(){return _.N.apply(this,arguments)||this};
_.n(PDk,_.N);_.q([_.y(),_.x("design:type",Object)],PDk.prototype,"data",void 0);_.q([_.Lr({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],PDk);
_.L(PDk,"yt-info-flow-step-renderer",function(){if(xsE===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;HqE===void 0&&(HqE=document.createElement("template"));var Z=HqE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);xsE=D}D=xsE;return D},{mode:2});var QEz;var BRk;var pg9=function(){return _.N.apply(this,arguments)||this};
_.n(pg9,_.N);_.q([_.y(),_.x("design:type",Object)],pg9.prototype,"data",void 0);_.q([_.Lr({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],pg9);
_.L(pg9,"yt-info-list-flow-step-renderer",function(){if(BRk===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;QEz===void 0&&(QEz=document.createElement("template"));var Z=QEz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);BRk=D}D=BRk;return D},{mode:2});var EQK=_.RT(function(D){var Y=D.data;return _.S("styled-text-view-model",{class:_.e7("ytStyledTextViewModelHost",function(){return XDk(Y().fontAttributes)},function(){return sp0(Y().color)})},_.S(_.y_,{text:function(){return Y().text},
ariaLabel:function(){var R,Z,t;return(t=(R=Y().accessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)!=null?t:""}}))},"vf");
EQK.idomCompat=!0;var gQz=_.RT(function(D){var Y=function(){var t,X,M,W;return(W=(M=(t=D.alt)==null?void 0:t.call(D))!=null?M:(X=D.data().accessibilityData)==null?void 0:X.label)!=null?W:""},R=function(){return D.data().imageWidth},Z=function(){return D.data().imageHeight};
return _.S("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.S(_.T,{cond:function(){var t=D.data();if(t){var X,M,W;var z=((X=_.DH().resolve(_.cD(_.O4)))==null?0:X())?(M=t.imageDark)!=null?M:t.imageLight:(W=t.imageLight)!=null?W:t.imageDark}else z=void 0;return z},
then:function(t){return _.S(_.Rt,Object.assign({},D,{data:t,alt:Y,targetWidth:R,targetHeight:Z,preserveHeight:!0,preserveWidth:!0}))}}))},"wf");
gQz.idomCompat=!0;var st=_.RT(function(D){var Y=D.data;D=_.DX(function(){return Y().slots},[]);
var R=_.DX(function(){return Y().layoutProperties},{}),Z=_.DH().resolve(_.DT);
return _.S("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:DJz(R,Z)},_.S(_.G6,{each:D,keyBy:"INDEX"},function(t){return _.S("div",{class:"ytContainerLayoutViewModelSlot",style:DJz(function(){return t().layoutProperties},Z)},_.S(_.vK,{data:function(){return t().contents}},{containerLayoutViewModel:st,
badgeViewModel:_.sq,buttonViewModel:_.TV,styledTextViewModel:EQK,contentPreviewImageViewModel:function(X){return _.S(_.X2,{data:X.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(X){return _.S(gQz,{data:X.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"xf");
st.idomCompat=!0;var dsI=_.RT(function(D){var Y=D.data;var R=D.stateFns;var Z=function(){var I=Y(),F=I.productId;return!(!I.clearGroupId&&!F)},t=function(){var I=Y(),F=I.clearGroupId;
return(I=I.productId)?R().isProductSelected(I):F?R().getSelectedProductByGroupId(F)==null:!1},X=function(){var I=Y(),F=I.clearGroupId;
if(I=I.productId)R().onProductSelected(I);else if(F)R().onClearGroupSelected(F)},M=function(){var I=Y(),F=I.clearGroupId;
if(I=I.productId){var G;return"group:"+(((G=R().getProductById(I))==null?void 0:G.groupId)||"")}return F?"group:"+F:""},W=_.DX(function(){return Y().header},[]),z=_.DX(function(){return Y().body},[]);
return _.S("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.S(_.T,{cond:function(){return W().length>0||Z()},
then:function(){return _.S("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.S("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.S(_.vK,{data:W},{containerLayoutViewModel:function(I){return _.S("div",{class:"ytPdpCardSectionViewModelContentItem"},_.S(st,{data:I.data}))},
styledTextViewModel:function(I){return _.S("div",{class:"ytPdpCardSectionViewModelContentItem"},_.S(EQK,{data:I.data}))}})),_.S(_.T,{cond:Z,
then:function(){return _.S("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.S(_.ho,{checked:t,name:M,onChange:X}))}}))}}),_.S(_.T,{cond:function(){return z().length>0},
then:function(){return _.S("div",null,_.S(_.vK,{data:z},{containerLayoutViewModel:function(I){return _.S("div",{class:"ytPdpCardSectionViewModelContentItem"},_.S(st,{data:I.data}))}}))}}))},"yf");
dsI.idomCompat=!0;var iqt=_.RT(function(D){var Y=D.data;var R=D.stateFns;return _.S("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.S(_.T,{cond:function(){return Y().banner},
then:function(Z){return _.S("div",{class:"ytPdpCardViewModelBanner"},_.S(_.y_,{text:Z}))}}),_.S(_.vK,{data:function(){return Y().sections}},{pdpCardSectionViewModel:function(Z){Z=Z.data;
var t={};return _.S("div",{class:_.e7("ytPdpCardViewModelSectionContainer",(t.ytPdpCardViewModelShowDividers=function(){return Y().showDividers},t))},_.S(dsI,{data:Z,
stateFns:R}))}}))},"zf");
iqt.idomCompat=!0;var Oqk=_.RT(function(D){var Y=D.data;var R=D.isOverlay;D={};return _.S("pdp-masthead-view-model",{class:_.e7("ytPdpMastheadViewModelHost",(D.ytPdpMastheadViewModelIsOverlay=R,D))},_.S(_.vK,{data:function(){return Y().image}},{contentPreviewImageViewModel:_.X2,
themedImageViewModel:function(Z){return _.S(gQz,{data:Z.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.S(_.T,{cond:function(){return Y().title},
then:function(Z){return _.S("h1",{class:"ytPdpMastheadViewModelHeading"},_.S(_.y_,{text:Z,isOverlay:R}))}}),_.S(_.G6,{each:function(){var Z;
return(Z=Y().finePrint)!=null?Z:[]}},function(Z){return _.S("div",{class:"ytPdpMastheadViewModelFinePrint"},_.S(_.y_,{text:Z,
isOverlay:R}))}))},"Af");
Oqk.idomCompat=!0;var cPT=_.RT(function(D){var Y=D.data;var R=D.stateFns;var Z=function(){return"pdp-pricing-group-selector-"+Y().pricingGroupAttributeIds},t=_.DX(function(){return Y().pricingGroupSelectorSectionHeader});
return _.S("pdp-pricing-group-selector-view-model",null,_.S(_.T,{cond:function(){return!!t()},
then:function(){return _.S(_.vK,{data:t},{sectionHeaderViewModel:function(X){X=X.data;var M={};return _.S("div",{class:_.e7("ytPdpPricingGroupSelectorViewModelSectionHeader",(M.ytPdpPricingGroupSelectorViewModelFullBleed=!0,M.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,M))},_.S(_.Sx,{data:X}))}})}}),_.S("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.S(_.G6,{each:function(){var X=R().getSelectedProductByGroupId(Y().groupId);
if(!X)return _.lo(Error("Mj`"+Y().groupId)),[];var M,W=(M=Y().pricingGroupAttributeIds)!=null?M:[],z;if((z=X.pricingGroups)==null||!z.length||!W.length)return[];M=X.pricingGroups.filter(function(V){return W.length?V.pricingGroupAttributes.every(function(e){return W.includes(e)}):!1});
X=[];if(W.length>0){M=[].concat(_.oK(M));z=_.a(W);for(var I=z.next(),F={};!I.done;F={targetAttrId:void 0},I=z.next())F.targetAttrId=I.value,I=M.findIndex(function(V){return function(e){return e.pricingGroupAttributes.includes(V.targetAttrId)}}(F)),I!==-1&&(X.push(M[I]),M.splice(I,1))}var G=R().getSelectedPricingGroupAttributesByGroupId(Y().groupId);
return X.map(function(V){var e=!1;G&&V.pricingGroupAttributes&&(e=rc(V.pricingGroupAttributes,G));return{pricingGroup:V,isSelected:e}})},
keyBy:function(X){return X.pricingGroup.pricingGroupId}},function(X){return _.S("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.S("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.S(_.vK,{data:function(){return X().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:st})),_.S("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.S(_.ho,{checked:function(){return X().isSelected},
name:Z,onClick:function(){R().onPricingGroupSelected(X().pricingGroup.pricingGroupId)}})))})))},"Bf");
cPT.idomCompat=!0;var DbI=_.RT(function(D){var Y=D.data;var R=D.stateFns;var Z=function(){var M=R().getSelectedPricingOptions().map(function(I){return I.pricingOptionId}),W=R().getSelectedProductByGroupId(Y().groupId);
if(!W)return _.lo(Error("Nj`"+Y().groupId)),[];var z=R().getSelectedPricingGroupAttributesByGroupId(Y().groupId);return C1u(W.pricingOptions,z,M)},t=_.DX(function(){return Y().pricingOptionSelectorSectionHeader}),X=function(){return Z().length>1};
return _.S("pdp-pricing-option-selector-view-model",null,_.S(_.T,{cond:function(){return!!t()&&X()},
then:function(){return _.S(_.vK,{data:t},{sectionHeaderViewModel:function(M){M=M.data;var W={};return _.S("div",{class:_.e7("ytPdpPricingOptionSelectorViewModelSectionHeader",(W.ytPdpPricingOptionSelectorViewModelFullBleed=!0,W.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,W))},_.S(_.Sx,{data:M}))}})}}),_.S(_.T,{cond:X,
then:function(){return _.S("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.S(_.G6,{each:Z,keyBy:"INDEX"},function(M){return _.S("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.S("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.S(_.vK,{data:function(){return M().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:st})),_.S("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.S(_.ho,{checked:function(){return M().isSelected},
onClick:function(){R().onPricingOptionSelected(M().pricingOption.pricingOptionId);var W=M().pricingOption.onSelectPricingOption;if(W=_.HL(W)){var z;(z=_.DH().resolve(_.Yw))==null||z.resolveCommand(W)}}})))}))}}))},"Cf");
DbI.idomCompat=!0;var Y9h=_.RT(function(D){var Y=D.data;var R=D.stateFns;return _.S("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.S(_.vK,{data:function(){var Z,t;return(t=(Z=R().getSelectedPricingOptions()[0])==null?void 0:Z.primaryButton)!=null?t:Y().emptyStateButton}},{buttonViewModel:_.TV}))},"Df");
Y9h.idomCompat=!0;var Rku=_.RT(function(D){var Y=D.stateFns;return _.S("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.S(_.vK,{data:function(){return Y().getSelectedPricingOptions().flatMap(function(R){return R.summaryLines}).filter(function(R){return!!R})}},{containerLayoutViewModel:function(R){return _.S("div",{class:"ytPdpSummaryViewModelLineItem"},_.S(st,{data:R.data}))}}))},"Ef");
Rku.idomCompat=!0;var ZIu=_.RT(function(D){function Y(U){var K=M();_.cE(_.k6("pdpStateEntity",K,{key:K,selectedPricingOptions:U}))}
var R=D.data;var Z=D.internalScrolling;var t=D.stateFnsForTesting;var X=_.DX(function(){return R().allProducts},[]),M=_.DX(function(){return R().pdpStateEntityKey},""),W=_.Ax(Wfh,M),z=_.Si(function(){_.v_(!0);
var U;return(U=t==null?void 0:t())!=null?U:S3p(W,X,Y)},void 0,"pjJzrd"),I=_.DX(function(){return R().body},[]),F=_.DX(function(){return R().columnBreakHints},[]),G=function(){return R().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},V=function(){return G()||R().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},e=_.Si(function(){var U=_.Em(R().background),K;
if(U==null?0:(K=U.sources)==null?0:K.length){var H=H===void 0?!0:H;U=_.G0U(void 0,U.sources,void 0,H,H?1E3:void 0,H?void 0:1E3)}else U=null;return U},void 0,"GO4GAe");
D=_.Ap({"--pdp-view-model-background":function(){return e()?"url("+e()+")":void 0}});
var r={};Z=_.e7("ytPdpViewModelHost",(r.ytPdpViewModelHasBackground=function(){return V()||!!e()},r.ytPdpViewModelHasDarkBackground=V,r.ytPdpViewModelHasScrim=G,r.ytPdpViewModelInternalScrolling=_.DX(Z,!1),r));
var l=function(U){var K={};return _.e7("ytPdpViewModelItem",(K.ytPdpViewModelFullBleed=function(){return _.C7j(U())==="dividerViewModel"||_.C7j(U())==="sectionHeaderViewModel"},K.ytPdpViewModelNoVerticalPadding=function(){return _.C7j(U())==="sectionHeaderViewModel"},K))};
_.$s(function(){var U=R().onStartCommand;if(U&&(U=_.HL(U))){var K;(K=_.DH().resolve(_.Yw))==null||K.resolveCommand(U)}});
return _.S("pdp-view-model",{class:Z,style:D},_.S("div",{class:"ytPdpViewModelColumnContainer"},_.S(_.G6,{each:function(){return Tf9(I(),F())},
keyBy:"INDEX"},function(U){return _.S("div",{class:"ytPdpViewModelColumn"},_.S(_.vK,{data:U},{containerLayoutViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(st,{data:K}))},
dividerViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(_.FDE,{data:K}))},
pdpCardViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(iqt,{data:K,
stateFns:z}))},
pdpMastheadViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(Oqk,{data:K,
isOverlay:V}))},
pdpPricingGroupSelectorViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(cPT,{data:K,
stateFns:z}))},
pdpPricingOptionSelectorViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(DbI,{data:K,
stateFns:z}))},
pdpPrimaryButtonViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(Y9h,{data:K,
stateFns:z}))},
pdpSummaryViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(Rku,{data:K,
stateFns:z}))},
sectionHeaderViewModel:function(K,H){K=K.data;return _.S("div",{class:l(function(){return U()[H()]})},_.S(_.Sx,{data:K}))}}))})))},"Ff");
ZIu.idomCompat=!0;_.at(ZIu,"pdp-view-model",{props:{data:_.cs,stateFnsForTesting:_.uq,internalScrolling:_.uq}});var tqt=_.RT(function(D){var Y=D.data;var R=D.className;var Z=_.Ax(_.cl,function(){return Y().flowStateEntityKey});
return _.S("ytm-premium-purchase-button-renderer",{class:_.e7("yt-premium-purchase-button-renderer",R)},_.S(_.vK,{data:function(){var t;return(t=_.A(Z(),I19))==null?void 0:t.primaryButtonOverride}},{buttonRenderer:function(t){return _.S(_.dO,{data:t.data,
className:R})},
buttonViewModel:function(t){return _.S(_.TV,{data:t.data,className:R})}}))},"Gf");
tqt.idomCompat=!0;var soT=_.RT(function(D){var Y=D.data;D=D.className;var R=function(){return jp9(Y().style)},Z=_.e7("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",R),t=_.e7("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",R);
return _.S("yt-flow-bottom-bar-renderer",{class:_.e7("yt-flow-bottom-bar-renderer",D,R)},_.S(_.vK,{data:function(){return Y().secondaryButton}},{buttonRenderer:function(X){return _.S(_.dO,{data:X.data,
className:t})},
buttonViewModel:function(X){return _.S(_.TV,{data:X.data,className:t})},
premiumPurchaseButtonRenderer:function(X){return _.S(tqt,{data:X.data,className:t})}}),_.S(_.vK,{data:function(){return Y().primaryButton}},{buttonRenderer:function(X){return _.S(_.dO,{data:X.data,
className:Z})},
buttonViewModel:function(X){return _.S(_.TV,{data:X.data,className:Z})},
premiumPurchaseButtonRenderer:function(X){return _.S(tqt,{data:X.data,className:Z})}}))},"Hf");
soT.idomCompat=!0;_.at(soT,"yt-flow-bottom-bar-renderer",{props:{data:_.cs,className:_.cs}});var Xmt=_.RT(function(D){var Y=_.e7(D.className,"ytOfferSummaryRendererHost");return _.S("yt-offer-summary-renderer",{class:Y},_.S("div",{class:"ytOfferSummaryRendererTextContainer"},_.S("div",{class:"ytOfferSummaryRendererEyebrowText"},_.S(_.y_,{text:function(){return D.data().eyebrowText}})),_.S("div",{class:"ytOfferSummaryRendererTitle"},_.S(_.y_,{text:function(){return D.data().title}})),_.S("div",{class:"ytOfferSummaryRendererSubtitle"},_.S(_.y_,{text:function(){return D.data().subtitle}})),
_.S("div",{class:"ytOfferSummaryRendererFeatureListData"},_.S(_.G6,{each:function(){var R;
return(R=D.data().featureListData)!=null?R:[]}},function(R){var Z;
return _.S("div",{class:"ytOfferSummaryRendererFeatureList"},_.S(_.nB,{icon:(Z=R.icon)==null?void 0:Z.iconType,active:function(){return R.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(R.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"}}}),_.S("div",{class:"ytOfferSummaryRendererFeatureListText"},_.S(_.y_,{text:R.text,
className:function(){return R.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.S("div",{class:"ytOfferSummaryRendererDescription"},_.S(_.y_,{text:function(){return D.data().description}}))))},"If");_.at(_.RT(function(D){var Y={};Y=_.e7("ytOfferSummaryFlowStepRendererHost",(Y.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=D.shouldDisableHeaderTopMargin,Y));return _.S("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:Y},_.S("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.S("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.S(_.y_,{text:function(){return D.data().header}})),_.S("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.S(_.y_,{text:function(){return D.data().subtitle}}))),_.S("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.S(_.vK,{data:function(){return D.data().offerSummary}},{offerSummaryRenderer:function(R){return _.S(Xmt,{data:R.data,
className:D.flowClassName})}})))},"Jf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.uq,
flowClassName:_.uq,flowStateEntityKey:_.uq,shouldDisableHeaderTopMargin:_.uq}});var un0=_.RT(function(D){var Y=D.data;var R=D.className;var Z=D.flowStateEntityKey;var t=D.selectionStepStyle;D=_.F4(function(z){var I=Y(),F=Z==null?void 0:Z();z.target&&(z.stopPropagation(),z=F||"",F=_.cl(_.Og().getState(),z),I=Object.assign({},F,{premiumPurchaseFlowState:{selectedOptionId:I.optionId,primaryButtonOverride:I.primaryButtonOverride}}),_.Og().dispatch(_.oP("flowStateEntity",z,I)));return!1});
var X=function(){return(Z==null?void 0:Z())||""},M=_.Ax(_.cl,X);
_.$s(function(){var z=Y(),I=X(),F=M();z.defaultSelected&&I!==""&&z.primaryButtonOverride&&Ff9(z.optionId||"",I,z.primaryButtonOverride,F)});
var W={};return _.S("ytm-option-item-renderer",{"on:click":D,class:_.e7(R,"ytm-option-item-renderer",(W["ytm-option-item-renderer--lp2-style"]=function(){return(t==null?void 0:t())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},W))},_.S("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.S("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var z=Y(),I=X(),F=M();F=_.A(F,I19);return(F?(F==null?void 0:F.selectedOptionId)||"":z.defaultSelected&&I!==""?(z==null?void 0:z.optionId)||"":"")===Y().optionId},
name:("input"+_.kO(_.Jo)).toString()})),_.S("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.S(_.vK,{data:function(){return Y().titleBadge}},{badgeViewModel:function(z){return _.S(_.sq,{data:z.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.S(_.T,{cond:function(){return Y().eyebrowText},
then:function(){return _.S("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.S(_.y_,{text:function(){return Y().eyebrowText}}))}}),_.S("div",{class:"ytm-option-item-renderer__option-item-title"},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.S(_.y_,{text:function(){return Y().subtitle}})),_.S(_.T,{cond:function(){return Y().featureListData},
then:function(){return _.S("div",{class:"ytm-option-item-renderer__feature-list-data"},_.S(_.G6,{each:function(){return Y().featureListData||[]}},function(z){var I,F=(I=z.icon)==null?void 0:I.iconType;
a:switch(z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":I="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":I="ytm-option-item-renderer__feature-list-icon-small";break a;default:I="ytm-option-item-renderer__feature-list-icon-default"}return _.S("div",{class:"ytm-option-item-renderer__feature-list"},_.S(_.nB,{icon:F,className:I,active:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.S("div",{class:"ytm-option-item-renderer__feature-list-text"},_.S(_.y_,{text:z.text,
className:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.S("div",{class:"ytm-option-item-renderer__option-item-description"},_.S(_.y_,{text:function(){return Y().description}}))))},"Kf");var aLh=_.RT(function(D){var Y=D.data;var R=D.flowClassName;var Z=D.flowStateEntityKey;var t=D.selectionStepStyle;return _.S("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.S("div",{class:"yt-option-section-renderer__option-section-header-section"},_.S("div",{class:"yt-option-section-renderer__option-section-header"},_.S(_.y_,{text:function(){return Y().title}}),_.S(_.vK,{data:function(){return Y().titleBadge}},{badgeViewModel:function(X){return _.S(_.sq,
{data:X.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(){return _.S("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.S(_.y_,{text:function(){return Y().subtitle}}))}}),_.S(_.T,{cond:function(){return Y().featureListData},
then:function(X){return _.S("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.S(_.G6,{each:X},function(M){var W;return _.S("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.S(_.nB,{icon:(W=M.icon)==null?void 0:W.iconType,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.S("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.S(_.y_,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.S(_.T,{cond:function(){return Y().secondaryTitle},
then:function(){return _.S("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.S(_.y_,{text:function(){return Y().secondaryTitle}}))}}),_.S(_.G6,{each:function(){return Y().sectionDisclaimers||[]}},function(X){return _.S("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.S(_.y_,{text:X}))})),_.S(_.vK,{data:function(){return Y().optionItems}},{optionItemRenderer:function(X){return _.S("div",{class:"yt-option-section-renderer__option-item"},_.S(un0,{data:X.data,
className:R,flowStateEntityKey:Z,selectionStepStyle:t}))}}),_.S(_.T,{cond:function(){return Y().offerText},
then:function(){return _.S("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.S(_.y_,{text:function(){return Y().offerText}}))}}))},"Lf");
aLh.idomCompat=!0;var MqK=_.RT(function(D){var Y=D.data;var R=D.flowClassName;var Z=D.flowStateEntityKey;D=D.isDesktop;var t=function(){var I;return(I=Y().flowStateEntityKey)!=null?I:Z==null?void 0:Z()},X=function(){return(t==null?void 0:t())||""},M=function(){return Y().style},W=_.Ax(_.cl,X);
_.$s(function(){var I=Y(),F=X(),G=W();!_.A(G,I19)&&I.noPreselect&&F!==""&&I.defaultButtonOverride&&Ff9("default",F,I.defaultButtonOverride,G)});
var z={};return _.S("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.e7("ytm-option-selection-flow-step-renderer",(z["ytm-option-selection-flow-step-renderer--desktop"]=D,z["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return Y().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},z))},_.S("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"},
_.S("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.S(_.y_,{text:function(){return Y().header}})),_.S("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.S(_.y_,{text:function(){return Y().subtitle}}))),_.S(_.vK,{data:function(){return Y().optionItems||[]}},{optionItemRenderer:function(I){return _.S("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.S(un0,{data:I.data,
className:R,flowStateEntityKey:t,selectionStepStyle:M}))},
optionSectionRenderer:function(I){return _.S("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.S(aLh,{data:I.data,flowClassName:R,flowStateEntityKey:t,selectionStepStyle:M}))}}))},"Mf");
MqK.idomCompat=!0;_.at(MqK,"yt-option-selection-flow-step-renderer",{props:{data:_.cs,flowClassName:_.cs,flowStateEntityKey:_.cs,isDesktop:_.cs}});var nsT,Vjt;_.Xt=_.RT(function(D){var Y=_.YC(D,{type:1,disablePadding:!1,disablePrimaryButton:!1}),R=Y.data,Z=Y.type;D=Y.disablePadding;var t=Y.disablePrimaryButton,X=Y.onClickPrimaryButton,M=function(){return R().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},W=function(){return{disabled:t(),
state:t()?"disabled":"active"}},z=function(){return R().leadingLabel||R().trailingLabel};
Y={};return _.S("yt-panel-footer-view-model",{class:_.e7("yt-panel-footer-view-model-wiz",(Y["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return R().shouldHideDivider},Y["yt-panel-footer-view-model-wiz--disable-padding"]=D,Y))},_.S(_.T,{cond:z,
then:function(){var I={},F={};return _.S("div",{class:_.e7("yt-panel-footer-view-model-wiz__text-row",(I["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var G=R();return!(!G.leadingLabel&&!G.trailingLabel||!G.primaryButton&&!G.secondaryButton)},I))},_.S(_.y_,{text:function(){return R().leadingLabel},
className:_.e7((F["yt-panel-footer-view-model-wiz--text-padding"]=z,F))}),_.S(_.y_,{text:function(){return R().trailingLabel}}))}}),_.S(_.T,{cond:M,
then:function(){var I={};return _.S("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.S("div",{class:_.e7("yt-panel-footer-view-model-wiz__primary-button",(I["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return R().secondaryButton},I))},_.S(_.vK,{data:function(){return R().primaryButton}},{buttonViewModel:function(F){return _.S(_.TV,{data:F.data,
buttonOverrides:W,onClick:X})}})),_.S(_.vK,{data:function(){return R().secondaryButton}},{buttonViewModel:_.TV}))}}),_.S(_.T,{cond:function(){return!M()},
then:function(){var I={},F={},G={};return _.S("div",{class:_.e7("yt-panel-footer-view-model-wiz__button-row",(I["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===Z()},I))},_.S("div",{class:_.e7("yt-panel-footer-view-model-wiz__button-row--left-button",(F["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===Z()},F["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!R().secondaryButton||0===Z()},F["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===Z()},F))},_.S(_.vK,{data:function(){return R().secondaryButton}},{buttonViewModel:_.TV})),_.S("div",{class:_.e7("yt-panel-footer-view-model-wiz__primary-button",(G["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===Z()||1===Z()},G["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===Z()},G))},_.S(_.vK,{data:function(){return R().primaryButton}},{buttonViewModel:function(V){return _.S(_.TV,{data:V.data,
buttonOverrides:W,onClick:X})}})))}}))},"Nf");
_.Xt.idomCompat=!0;_.Co9=_.RT(function(D){D=_.YC(D,{disablePadding:!1});var Y=D.data,R=D.disablePadding;D=_.AQ9(function(){return Y().formId});
var Z=D.submitForm,t=D.isValid,X=D.isSubmitting;return _.S("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.S(_.vK,{data:function(){return Y().panelFooter}},{panelFooterViewModel:function(M){return _.S(_.Xt,{data:M.data,
onClickPrimaryButton:function(){Z()},
disablePrimaryButton:function(){return!t()||X()},
disablePadding:R})}}))},"Of");_.at(_.Co9,"yt-form-footer-view-model",{props:{data:_.cs,disablePadding:_.cs}});_.at(_.RT(function(D){var Y=_.f("enable_user_rating_web");return _.S("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.S("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.S(_.T,{cond:function(){var R;return(R=D.data())==null?void 0:R.image},
then:function(R){return _.S(_.Rt,{data:R,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.S("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.S(_.y_,{text:function(){var R;
return(R=D.data())==null?void 0:R.title}})),_.S("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.S(_.y_,{text:function(){var R;
return(R=D.data())==null?void 0:R.subtitle}})),_.S(_.T,{cond:function(){return!Y},
then:function(){return _.S(_.vK,{data:function(){var R;return(R=D.data())==null?void 0:R.viewTipsButton}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Pf"),"yt-contributor-zero-state-view-model",{props:{data:_.cs}});var WyI=_.RT(function(D){var Y=function(){var R;return(R=D.data())==null?void 0:R.image};
return _.S("yt-featured-content-item-view-model",{class:_.e7("ytFeaturedContentItemViewModelHost")},_.S("div",{class:_.e7(function(){return Y()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.S("div",{class:function(){return Y()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.S(_.T,{cond:Y,
then:function(){return _.S("div",{class:"ytFeaturedContentItemViewModelImage"},_.S(_.vK,{data:function(){return D.data().image}},{themedImageViewModel:function(R){return _.S(gQz,{data:R.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.S(_.T,{cond:function(){var R;
return!Y()&&((R=D.data())==null?void 0:R.iconName)},
then:function(){return _.S("div",{class:"ytFeaturedContentItemViewModelIcon"},_.S(_.nB,{icon:function(){return D.data().iconName}}))}}),_.S("div",{class:"ytFeaturedContentItemViewModelContent"},_.S(_.T,{cond:function(){var R;
return(R=D.data())==null?void 0:R.title},
then:function(){return _.S("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.S(_.y_,{text:function(){return D.data().title}}))}}),_.S(_.T,{cond:function(){var R;
return(R=D.data())==null?void 0:R.body},
then:function(){return _.S("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.S(_.y_,{text:function(){return D.data().body}}))}})))))},"Qf");var zk0=_.RT(function(D){var Y=function(){var t;return rQ0((t=D.data())==null?void 0:t.titleFontSize)},R=function(){var t;
return wDk((t=D.data())==null?void 0:t.descriptionFontSize)},Z=function(){var t;
return((t=D.data())==null?void 0:t.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.S("yt-landing-page-view-model",{class:_.e7("ytLandingPageViewModelHost",D.className)},_.S("div",{class:"ytLandingPageViewModelHeader"},_.S(_.T,{cond:function(){var t;return(t=D.data())==null?void 0:t.bannerImage},
then:function(t){return _.S("div",{class:"ytLandingPageViewModelHeaderImage"},_.S(_.vK,{data:function(){return t()}},{imageBannerViewModel:function(X){return _.S(_.xj,{data:X.data,
isPositionRelative:!0})}}))}}),_.S(_.T,{cond:function(){var t;
return(t=D.data())==null?void 0:t.bannerAnimation},
then:function(t){return _.S(_.fO,{data:function(){var X=t();if(X==null?0:X.url){var M;X={path:(M=X==null?void 0:X.url)!=null?M:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(X==null?0:X.payload){var W;X={animationData:JSON.parse((W=X==null?void 0:X.payload)!=null?W:""),autoplay:!0,loop:!0,renderer:"svg"}}else X=void 0;return{animationConfig:X}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.S("div",{class:"ytLandingPageViewModelHeaderTitle"},_.S(_.T,{cond:function(){var t;
return(t=D.data())==null?void 0:t.title},
then:function(t){return _.S("div",{class:_.e7("ytLandingPageViewModelHeaderTitleContent",Y)},_.S(_.y_,{text:function(){return t()}}))}}),_.S(_.T,{cond:function(){var t;
return(t=D.data())==null?void 0:t.description},
then:function(t){var X={};return _.S(_.y_,{className:_.e7("ytLandingPageViewModelHeaderTitleDescription",R,(X.ytLandingPageViewModelHeaderTitleDescriptionMargin=Z,X)),text:function(){return t()}})}}))),_.S(_.T,{cond:function(){var t,X;
return(t=D.data())==null?void 0:(X=t.featuredContentList)==null?void 0:X.length},
then:function(){return _.S("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.S(_.vK,{data:function(){return D.data().featuredContentList}},{featuredContentItemViewModel:function(t){return _.S(WyI,{data:t.data})}}))}}),_.S(_.T,{cond:function(){var t,X;
return(t=D.data())==null?void 0:(X=t.expandableContentList)==null?void 0:X.length},
then:function(){return _.S("div",{class:"ytLandingPageViewModelFaqSection"},_.S(_.vK,{data:function(){return D.data().expandableContentList}},{faqEntryViewModel:function(t){return _.S("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.S(_.Dtz,{data:t.data}))}}))}}),_.S("div",{class:"ytLandingPageViewModelFooter"},_.S(_.T,{cond:function(){var t;
return(t=D.data())==null?void 0:t.legalCopy},
then:function(t){return _.S("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.S(_.y_,{text:function(){return t()}}))}}),_.S(_.T,{cond:function(){var t;
return(t=D.data())==null?void 0:t.actions},
then:function(t){return _.S("div",null,_.S(_.vK,{data:function(){return t()}},{flexibleActionsViewModel:function(X){return _.S(_.UX,{data:X.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Rf");_.at(_.RT(function(D){return _.S("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.S("div",{class:"ytLpSectionGroupViewModelContainer"},_.S(_.vK,{data:function(){return D.data().sections}},{landingPageViewModel:function(Y){return _.S(zk0,{data:Y.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Sf"),"yt-lp-section-group-view-model",{props:{data:_.cs}});var S9T=_.RT(function(D){var Y=_.Ax($J9,_.DX(function(){var W;return(W=D.data())==null?void 0:W.noteFeedEntityKey},"")),R=_.Ax(hph,_.DX(function(){var W;
return(W=D.data())==null?void 0:W.userRatingEntityKey},"")),Z=_.f("enable_user_rating_web"),t=function(){var W,z,I;
return((W=Y())==null?0:W.contributorNote)?(z=Y())==null?void 0:z.contributorNote:(I=D.data())==null?void 0:I.existingNote},X=function(){var W,z;
return!!R()&&!!vsI((W=R())==null?void 0:W.helpfulnessValue,(z=D.data())==null?void 0:z.noteData)};
if(Z){var M={};return _.S("yt-note-view-model",{class:_.e7("ytNoteViewModelHostUserRating",(M.ytNoteViewModelHostUserRatingPublishedNote=function(){var W,z;return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.isPublished},M))},_.S("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.S("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.S(_.T,{cond:function(){var W,z;
return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.isPinned},
then:function(){return _.S(_.nB,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.S(_.T,{cond:function(){var W,z;return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.isPublished},
then:function(){return _.S(_.nB,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.S(_.vK,{data:function(){var W;
return(W=D.data())==null?void 0:W.metadata}},{contentMetadataViewModel:_.un}),_.S("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var W,z;
return(z=_.A((W=D.data())==null?void 0:W.metadata,_.$8U))==null?void 0:z.delimiter}),_.S(_.y_,{text:function(){var W;
return(W=t())==null?void 0:W.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.S(_.vK,{data:function(){var W,z,I,F,G,V,e,r=!!((W=D.data())==null?0:(z=W.noteData)==null?0:z.isPinned);W=X();z=(I=D.data())==null?void 0:I.noteData;I=(F=Y())==null?void 0:(G=F.contributorNote)==null?void 0:G.deleteAction;F=(V=D.data())==null?void 0:V.overflowButtonNoteWithRatingOnTapOverride;V=(e=D.data())==null?void 0:e.overflowButton;return r?os9(z,I):W?{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:F}}:V}},{buttonViewModel:function(W){return _.S(_.TV,{data:W.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.S("div",{class:"ytNoteViewModelNoteContent"},_.S(_.y_,{text:function(){var W;
return(W=t())==null?void 0:W.text}})),_.S(_.T,{cond:function(){var W,z;
return!((W=D.data())==null?0:(z=W.noteData)==null?0:z.isPinned)},
then:function(){return _.S(_.T,{cond:X,then:function(){return _.S("div",{class:"ytNoteViewModelUserRatingContainer"},_.S(_.y_,{text:function(){var W,z;return vsI((W=R())==null?void 0:W.helpfulnessValue,(z=D.data())==null?void 0:z.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.S(_.vK,{data:function(){var W;return(W=D.data())==null?void 0:W.userRatingButton}},{buttonViewModel:function(W){return _.S(_.TV,{data:W.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.S(_.T,{cond:function(){var W,z;
return!((W=D.data())==null?0:(z=W.noteData)==null?0:z.ignoreDivider)},
then:function(){return _.S("div",{class:"ytNoteViewModelDivider"},_.S(_.vK,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(W){return _.S(_.FDE,{data:W.data})}}))}}))}return _.S("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.S("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.S("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.S(_.T,{cond:function(){var W,z;return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.isPinned},
then:function(){return _.S(_.nB,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.S(_.T,{cond:function(){var W,z;return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.isPublished},
then:function(){return _.S(_.nB,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.S(_.T,{cond:function(){return Z},
then:function(){return _.S(_.vK,{data:function(){var W;return(W=D.data())==null?void 0:W.metadata}},{contentMetadataViewModel:function(W){return _.S(_.un,{data:W.data})}})}}),_.S(_.y_,{text:function(){var W,z;
return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.headerText}}),_.S("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.S(_.y_,{text:function(){var W,z;
return(W=D.data())==null?void 0:(z=W.noteData)==null?void 0:z.delimiter}})),_.S(_.y_,{text:function(){var W,z;
return(W=Y())==null?void 0:(z=W.contributorNote)==null?void 0:z.publishedTimeText}})),_.S(_.vK,{data:function(){var W,z,I;
return os9((W=D.data())==null?void 0:W.noteData,(z=Y())==null?void 0:(I=z.contributorNote)==null?void 0:I.deleteAction)}},{buttonViewModel:function(W){return _.S(_.TV,{data:W.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.S("div",{class:"ytNoteViewModelNoteContent"},_.S(_.y_,{text:function(){var W,z;
return(W=Y())==null?void 0:(z=W.contributorNote)==null?void 0:z.text}})))},"Tf");
S9T.idomCompat=!0;_.at(S9T,"yt-note-view-model",{props:{data:_.cs}});var u2=_.RT(function(D){var Y=_.YC(D,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),R=Y.label,Z=Y.text,t=Y.placeholder,X=Y.hint;D=Y.rows;var M=Y.overflowStyle,W=Y.outline,z=Y.disabled,I=Y.disableNewLines,F=Y.characterLimit,G=Y.validation,V=Y.onInput,e=_.dI("textarea");Y=_.a(_.fB(function(){return Z()}));
var r=Y.next().value,l=Y.next().value;Y=_.a(_.ae(!1,void 0,"fXvinf"));var U=Y.next().value,K=Y.next().value,H=function(){K(!0)},c=function(){K(!1)};
_.$s(function(){var Ho=e.value,KM=M(),Xb=r();KM==="expand-vertically"&&Xb&&bbu(Ho);e.value.addEventListener("focusin",H);e.value.addEventListener("focusout",c)});
_.w2(function(){e.value.removeEventListener("focusin",H);e.value.removeEventListener("focusout",c)});
var Q=function(){var Ho;return(Ho=G())==null?void 0:Ho.validate(r())},E=function(){return F()&&!Q()&&r().length>F().maxChars},B=function(){return!!Q()||E()};
Y=_.F4(function(Ho){if(!Ho.currentTarget)return!1;Ho=Ho.currentTarget;l(Ho.value);M()==="expand-vertically"&&bbu(Ho);V==null||V(Ho.value);return!0});
var O=_.F4(function(Ho){I()&&Ho.key==="Enter"&&Ho.preventDefault();return!1}),Wo=_.F4(function(){e.value.focus()}),Sb=function(){return t()||R()},VU={},AS={},nM={};
return _.S("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.S("div",{class:_.e7("ytStandardsTextareaShapeTextareaContainer",(VU.ytStandardsTextareaShapeTextareaContainerOutline=W,VU.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=z,VU.ytStandardsTextareaShapeTextareaContainerOutlineError=B,VU)),"on:click":Wo},_.S("label",{class:_.e7("ytStandardsTextareaShapeLabel",(AS.ytStandardsTextareaShapeLabelFocused=U,AS.ytStandardsTextareaShapeLabelDisabled=z,AS.ytStandardsTextareaShapeLabelError=
function(){return B()&&!z()},AS.ytStandardsTextareaShapeLabelHidden=function(){return!U()&&!r()&&!!Sb()},AS))},R),_.S("div",{class:_.e7("ytStandardsTextareaShapePlaceholder",(nM.ytStandardsTextareaShapePlaceholderVisible=function(){return!U()&&!r()},nM)),
"aria-hidden":"true"},Sb),_.S("textarea",{el:e,class:"ytStandardsTextareaShapeTextarea",rows:D,disabled:z,placeholder:Sb,"on:input":Y,"on:keydown":O},r)),_.S(_.T,{cond:function(){return X()&&!B()},
then:function(){var Ho={};return _.S("div",{class:_.e7("ytStandardsTextareaShapeHint",(Ho.ytStandardsTextareaShapeHintDisabled=z,Ho))},_.S("div",{class:"ytStandardsTextareaShapeHintHintMessage"},X))}}),_.S(_.T,{cond:Q,
then:function(){return _.S(TIE,{disabled:z},_.S("div",{class:"ytStandardsTextareaShapeErrorMessage"},Q))}}),_.S(_.T,{cond:F,
then:function(Ho){return _.S(_.T,{cond:E,then:function(){return _.S(TIE,{disabled:z},_.S("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Ho().errorMessage}),_.S("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return r().length+"/"+Ho().maxChars}))}})}}))},"Uf");
u2.idomCompat={callbacks:{onInput:!0}};var TIE=_.RT(function(D){var Y={};return _.S("div",{class:_.e7("ytStandardsTextareaShapeError",(Y.ytStandardsTextareaShapeErrorDisabled=D.disabled,Y)),role:"alert"},_.S(_.nB,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),D.children)},"Vf");_.jo9=_.RT(function(D){var Y=D.data;return _.S("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.S(u2,{text:D.text,label:function(){var R;return(R=Y().contentProperties)==null?void 0:R.labelText},
placeholder:function(){var R;return(R=Y().contentProperties)==null?void 0:R.placeholderText},
hint:function(){var R;return(R=Y().contentProperties)==null?void 0:R.hintText},
outline:function(){var R;return!((R=Y().displayProperties)==null?0:R.hideBorder)},
overflowStyle:function(){var R;return((R=Y().displayProperties)==null?0:R.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:D.disabled,disableNewLines:function(){var R;return(R=Y().displayProperties)==null?void 0:R.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var R;return(R=Y().displayProperties)==null?void 0:R.rows}}))},"Wf");_.ILk=_.RT(function(D){var Y=D.data;return _.S("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.S(u2,{text:D.text,label:function(){var R;return(R=Y().contentProperties)==null?void 0:R.labelText},
placeholder:function(){var R;return(R=Y().contentProperties)==null?void 0:R.placeholderText},
hint:function(){var R;return(R=Y().contentProperties)==null?void 0:R.hintText},
outline:function(){var R;return!((R=Y().displayProperties)==null?0:R.hideBorder)},
overflowStyle:function(){var R;return((R=Y().displayProperties)==null?0:R.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var R;return(R=Y().displayProperties)==null?void 0:R.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var R;return(R=Y().displayProperties)==null?void 0:R.rows}}))},"Xf");var FyE=_.RT(function(D){var Y=_.a(_.fB(function(){var Sb,VU;return((Sb=D.data().structuredContextNoteFormSchema)==null?0:(VU=Sb.initialValues)==null?0:VU.noteBody)?D.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),R=Y.next().value,Z=Y.next().value;
Y=_.a(_.fB(function(){D.data();return!1}));
var t=Y.next().value,X=Y.next().value;Y=_.a(_.fB(function(){D.data();return!1}));
var M=Y.next().value,W=Y.next().value;Y=_.a(_.fB(function(){var Sb,VU;return((Sb=D.data().structuredContextNoteFormSchema)==null?0:(VU=Sb.initialValues)==null?0:VU.timestamp)?D.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var z=Y.next().value,I=Y.next().value;Y=_.a(_.fB(function(){D.data();return!1}));
var F=Y.next().value,G=Y.next().value;Y=_.a(_.fB(function(){var Sb,VU;return((Sb=D.data().structuredContextNoteFormSchema)==null?0:(VU=Sb.initialValues)==null?0:VU.sources)?[D.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var V=Y.next().value,e=Y.next().value;Y=_.a(_.fB(function(){D.data();return!1}));
var r=Y.next().value,l=Y.next().value;Y=_.a(_.fB(function(){return!1}));
var U=Y.next().value,K=Y.next().value;_.$s(function(){var Sb;_.f1h((Sb=D.data().structuredContextNoteFormSchema)==null?void 0:Sb.id,{isSubmitting:U,onSubmit:function(){K(!0);var VU=Lfk(R(),z(),V(),D.data()),AS=_.DH().resolve(_.Yw);VU&&AS&&AS.resolveCommand(VU,{commandController:{onSuccess:function(){K(!1)}}})},
isValid:function(){return t()&&!M()&&!F()&&!r()}})});
var H=function(Sb){if(Sb!==void 0&&(Z(Sb),!t()&&Sb.length>0&&X(!0),t())){var VU=l1K(D.data());if(VU){var AS=VU.minLength;VU=VU.maxLength;AS&&Sb.length<AS?W(!0):VU&&Sb.length>VU?W(!0):W(!1)}}},c=function(Sb){if(Sb!==void 0){I(Sb);
if(Sb.length>0){var VU,AS,nM,Ho,KM=k6z((VU=D.data())==null?void 0:(AS=VU.structuredContextNoteFormSchema)==null?void 0:(nM=AS.fieldSchemas)==null?void 0:(Ho=nM.timestamp)==null?void 0:Ho.validationSchema);if(KM&&(VU=KM.regex)&&!(new RegExp(VU)).test(Sb)){G(!0);return}}G(!1)}},Q=function(Sb){if(Sb!==void 0){var VU=Sb.split(/[ \n]/).map(function(AS){return AS.trim()});
e(VU);if(Sb.length>0)for(Sb=_.a(VU),VU=Sb.next();!VU.done;VU=Sb.next())if(!ht9(VU.value)){l(!0);return}l(!1)}},E=function(){return{validate:function(Sb){if(t()){var VU=l1K(D.data());
if(VU){var AS=VU.minLength;VU=VU.translations;if(AS&&Sb.length<AS)return VU==null?void 0:VU.minLengthErrorMessage}}}}},B=function(){var Sb=l1K(D.data()),VU=Sb==null?void 0:Sb.maxLength,AS;
Sb=Sb==null?void 0:(AS=Sb.translations)==null?void 0:AS.maxLengthErrorMessage;if(VU&&Sb)return{maxChars:VU,errorMessage:Sb}},O=function(){return{validate:function(Sb){if(Sb){var VU,AS,nM,Ho,KM=k6z((VU=D.data())==null?void 0:(AS=VU.structuredContextNoteFormSchema)==null?void 0:(nM=AS.fieldSchemas)==null?void 0:(Ho=nM.timestamp)==null?void 0:Ho.validationSchema);
if(KM&&(VU=KM.regex,KM=KM.translations,VU&&!(new RegExp(VU)).test(Sb)))return KM==null?void 0:KM.regexErrorMessage}}}},Wo=function(){return{validate:function(Sb){if(Sb){var VU,AS,nM,Ho,KM=KfK((VU=D.data())==null?void 0:(AS=VU.structuredContextNoteFormSchema)==null?void 0:(nM=AS.fieldSchemas)==null?void 0:(Ho=nM.sources)==null?void 0:Ho.validationSchema);
if(KM&&(VU=KM.translations,VU==null?0:VU.selectedErrorMessage))for(Sb=Sb.split(/[ \n]/).map(function(Xb){return Xb.trim()}),Sb=_.a(Sb),AS=Sb.next();!AS.done;AS=Sb.next())if(!ht9(AS.value))return Sb=void 0,(Sb=VU)==null?void 0:Sb.selectedErrorMessage}}}};
return _.S("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.S("div",{class:"ytStructuredContextNoteViewModelTextField"},_.S(_.vK,{data:function(){var Sb;return(Sb=D.data())==null?void 0:Sb.noteContents}},{textFormFieldViewModel:function(Sb){return _.S(_.ILk,{data:Sb.data,
onInput:H,validation:E,characterLimit:B})},
textFieldViewModel:function(Sb){return _.S(_.jo9,{data:Sb.data,onInput:H,validation:E,characterLimit:B})}})),_.S("div",{class:"ytStructuredContextNoteViewModelTextField"},_.S(_.vK,{data:function(){var Sb;
return(Sb=D.data())==null?void 0:Sb.noteTimestamp}},{textFormFieldViewModel:function(Sb){return _.S(_.ILk,{data:Sb.data,
onInput:c,validation:O})},
textFieldViewModel:function(Sb){return _.S(_.jo9,{data:Sb.data,onInput:c,validation:O})}})),_.S("div",{class:"ytStructuredContextNoteViewModelTextField"},_.S(_.vK,{data:function(){var Sb;
return(Sb=D.data())==null?void 0:Sb.noteSources}},{textFormFieldViewModel:function(Sb){return _.S(_.ILk,{data:Sb.data,
onInput:Q,validation:Wo})},
textFieldViewModel:function(Sb){return _.S(_.jo9,{data:Sb.data,onInput:Q,validation:Wo})}})))},"Yf");
FyE.idomCompat=!0;_.at(FyE,"yt-structured-context-note-view-model",{props:{data:_.cs}});var GzE=_.RT(function(D){var Y=_.a(_.fB(function(){var X;if((X=D.controlled)==null?0:X.call(D))return[];var M;return(((M=D.data())==null?void 0:M.chips)||[]).map(function(W){W=_.A(W,_.Bx);if(W==null?0:W.selected)return mJT(W.chipValue)}).filter(function(W){return W!==void 0})})),R=Y.next().value,Z=Y.next().value,t=function(X){var M=mJT(X.chipValue);
if(M!==void 0){var W;if((W=D.controlled)==null?0:W.call(D))return void D.controlled().onTap(M);X=R().includes(M)?[].concat(_.oK(R().filter(function(I){return I!==M}))):[].concat(_.oK(R()),[M]);
Z(X);var z;if((z=D.uncontrolled)==null?0:z.call(D))D.uncontrolled().onUpdate(X)}};
return _.S("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.S(_.G6,{each:function(){return D.data().chips||[]}},function(X){return _.S("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.S(_.j_D,{data:function(){return _.A(X,_.Bx)},
selected:function(){var M;if(M=_.A(X,_.Bx)){var W=mJT(M.chipValue);if(W!==void 0){var z;M=((z=D.controlled)==null?0:z.call(D))?D.controlled().selectedValues.includes(W):R().includes(W)}else M=void 0}else M=!1;return M},
callback:t}))}))},"Zf");var VqK=_.RT(function(D){var Y=D.data;var R=function(){var W;return((W=Y())==null?void 0:W.flowStateKey)||""},Z=_.Ax(_.cl,R),t=function(){var W;
return(W=_.A(Z(),lHE))==null?void 0:W.chips},X=function(W){if(W!==void 0){var z=t()||[];
z=z.find(function(I){return I===W})?z.filter(function(I){return I!==W}):[].concat(_.oK(z),[W]);
z=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.A(Z(),lHE),{chips:z})});_.cE(_.oP("flowStateEntity",R(),z))}},M=function(){var W;
return _.A((W=Y())==null?void 0:W.inputBox,JTk)};
D=_.eU(function(W){var z=M();z=!(z==null?0:z.maxChars)||W.length<=z.maxChars;W=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.A(Z(),lHE),{detail:W}),abuseReportFlowState:Object.assign({},_.A(Z(),bp),{navigationEnabled:z})});_.cE(_.oP("flowStateEntity",R(),W))},150);
return _.S("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.S("div",{class:"ytFeedbackFormViewModelChips"},_.S(_.vK,{data:function(){var W;return(W=Y())==null?void 0:W.chipSelection}},{chipSelectionFormFieldViewModel:function(W){return _.S(GzE,{data:W.data,
controlled:function(){return{selectedValues:t()||[],onTap:X}}})}})),_.S("div",{class:"ytFeedbackFormViewModelInputBox"},_.S(u2,{text:function(){var W;
return(W=_.A(Z(),lHE))==null?void 0:W.detail},
placeholder:function(){var W;return((W=M())==null?void 0:W.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var W=M();if(W&&W.maxChars)return{maxChars:W.maxChars,errorMessage:W.maxCharsExceededErrorMessage||""}},
onInput:D})),_.S("div",{class:"ytFeedbackFormViewModelFooterText"},_.S(_.y_,{text:function(){return Y().footerText}})))},"$f");
VqK.idomCompat=!0;_.at(VqK,"yt-feedback-form-view-model",{props:{data:_.cs}});var fLK=_.RT(function(D){var Y=D.data;var R=function(){return Y().flowStateKey||""},Z=_.Ax(Kgk,R),t=function(){return _.A(Z(),bp)},X=function(){if(_.f("enable_gff_accessibility_fix")){var M=!0,W;
if((W=t())==null?0:W.navigationEnabled){var z;_.BL((z=t())==null?void 0:z.navigationCommand);M=!1}W=Object.assign({},Z(),{abuseReportFlowState:Object.assign({},t(),{isReportFormDirty:M})});_.cE(_.oP("flowStateEntity",R(),W))}else _.BL((M=t())==null?void 0:M.navigationCommand)};
return _.S("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.S("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.S(_.vK,{data:function(){return Y().cancelButton}},{buttonViewModel:function(M){return _.S(_.TV,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:X})}}),_.S(_.vK,{data:function(){var M;
if(Y().navButton){var W=Object;var z=W.assign,I=_.A(Y().navButton,_.QX),F=((M=t())==null?0:M.navigationEnabled)||_.f("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",G,V;M=_.A((G=t())==null?void 0:G.navigationCommand,_.mQ);G=(V=_.A(M,_.Qj))==null?void 0:V.url;W={buttonViewModel:z.call(W,{},I,{state:F,iconName:G?"OPEN_IN_NEW":""})}}else W=void 0;return W}},{buttonViewModel:function(M){return _.S(_.TV,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:X})}})))},"ag");
fLK.idomCompat=!0;_.at(fLK,"yt-report-form-bottom-bar-view-model",{props:{data:_.cs}});var ekt=_.RT(function(D){var Y=D.nextStep;return _.S("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.S("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.S(_.nB,{icon:function(){return Y().iconName||""}})),_.S("div",null,_.S(_.y_,{text:function(){return Y().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"bg"),AkK=_.RT(function(D){var Y=D.data;
var R,Z=(R=_.DH().resolve(_.cD(_.O4)))==null?void 0:R(),t=_.Ax(_.cl,function(){return Y().flowStateKey||""});
return _.S("yt-report-form-confirmation-page-view-model",{class:function(){var X;return((X=_.A(t(),bp))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.S("div",{class:function(){var X;
return((X=_.A(t(),bp))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.S(_.Rt,{data:function(){return Z&&Y().imageDark?Y().imageDark:Y().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.S("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.S("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return Y().confirmationHeader}),_.S("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.S(_.y_,{text:function(){return Y().confirmationText}})),_.S("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.S(_.y_,{text:function(){return Y().lawEnforcementText}})),
_.S("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return Y().whatToExpectHeader}),_.S(_.T,{cond:function(){return Y().nextSteps},
then:function(X){return _.S("div",null,_.S(_.G6,{each:X},function(M){return _.S(ekt,{nextStep:M})}))}}),_.S(_.T,{cond:function(){return Y().legalReportText},
then:function(X){return _.S("div",null,_.S(_.y_,{text:X,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"cg");
AkK.idomCompat=!0;_.at(AkK,"yt-report-form-confirmation-page-view-model",{props:{data:_.cs}});var nNK=_.RT(function(D){var Y=D.data;var R=function(){var X;return((X=_.A(Y().inputBox,JTk))==null?void 0:X.maxChars)||500},Z=function(){return Y().flowStateKey||""},t=_.Ax(_.cl,Z);
D=_.eU(function(X){X=Object.assign({},t(),{flowFormState:{isValid:X.length<=R()},abuseReportFlowState:{userComments:X,navigationEnabled:!(X.length>R()),isReportFormDirty:!0}});_.Og().dispatch(_.k6("flowStateEntity",Z(),X))},150);
_.$s(function(){var X=Object.assign({},t(),{flowFormState:{isValid:!0}});_.Og().dispatch(_.k6("flowStateEntity",Z(),X))});
return _.S("yt-report-form-details-page-view-model",{class:function(){var X;return((X=_.A(t(),bp))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.S("h1",{class:function(){var X;
return((X=_.A(t(),bp))==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return Y().detailsPageHeader}),_.S("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.S(_.y_,{text:function(){return Y().bodyText}})),_.S("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.S(u2,{label:function(){var X;
return((X=_.A(Y().inputBox,JTk))==null?void 0:X.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var X;return{errorMessage:((X=_.A(Y().inputBox,JTk))==null?void 0:X.maxCharsExceededErrorMessage)||"",maxChars:R()}},
onInput:D})))},"dg");
nNK.idomCompat=!0;_.at(nNK,"yt-report-form-details-page-view-model",{props:{data:_.cs}});var rkI=_.RT(function(D){var Y=D.data;var R=D.selectedKey;var Z=D.onSelected;var t=D.groupName;var X=function(){return Y().text},M=function(){return Y().attributedText},W=function(){return Y().subtext},z=function(){return Y().attributedSubtext},I=_.S("div",{class:"ytRadioButtonItemViewModelLabel"},_.S(_.T,{cond:X,
then:function(){return _.S("div",null,X)}}),_.S(_.T,{cond:M,
then:function(){return _.S(_.y_,{text:M})}}),_.S(_.T,{cond:W,
then:function(){return _.S("div",{class:"ytRadioButtonItemViewModelSubText"},W)}}),_.S(_.T,{cond:z,
then:function(){return _.S("div",{class:"ytRadioButtonItemViewModelSubText"},_.S(_.y_,{text:z}))}})),F=function(){if(M()){var V;
return(V=M())==null?void 0:V.content}return X()},G=function(){if(z()){var V;
return(V=z())==null?void 0:V.content}return W()};
D={};return _.S("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.S(_.ho,{name:t,checked:function(){return!(R==null||!R()||Y().key!==(R==null?void 0:R()))},
onChange:function(V){Z==null||Z(V.target,Y(),t==null?void 0:t())},
labelRenderable:function(){return I},
ariaLabel:function(){return G()?F()+", "+G():F()},
className:_.e7((D.ytRadioButtonItemViewModelSubTitle=function(){return!!Y().subtext},D))}))},"eg");_.wmb=_.RT(function(D){var Y=D.data;var R=D.onSelected;var Z=D.selectedKey;var t=D.groupName;var X=function(){return(t==null?void 0:t())||Y().key};
return _.S("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.S("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.S(_.vK,{data:function(){return Y().radioButtons}},{radioButtonItemViewModel:function(M){return _.S(rkI,{data:M.data,
onSelected:R,selectedKey:Z,groupName:X})}})))},"fg");var $bu=_.RT(function(D){var Y=D.data;var R=_.io("div"),Z=function(){return Y().flowStateKey||""},t=_.Ax(_.cl,Z),X=function(){return _.A(t(),bp)};
_.r2(function(){var M,W;if(((M=X())==null?0:M.isReportFormDirty)&&((W=X())==null||!W.navigationEnabled)&&_.f("enable_gff_accessibility_fix")){var z;if(((z=X())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var I;(I=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||I.scrollIntoView()}else{var F;(F=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||F.scrollIntoView()}}},"VvP2Ne");
return _.S("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=X())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.S("h1",{class:function(){var M;
return((M=X())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return Y().pageHeader}),_.S("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.S(_.y_,{text:function(){return Y().bodyText}})),_.S("div",{class:function(){var M;
return((M=X())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.S(_.T,{cond:function(){var M,W;
return((M=X())==null?void 0:M.isReportFormDirty)&&!((W=X())==null?0:W.navigationEnabled)&&_.f("enable_gff_accessibility_fix")},
then:function(){return _.S("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:R},_.S(_.nB,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.S("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return Y().emptyReasonSelectErrorMessage}))}}),_.S(_.wmb,{data:function(){return _.A(Y().radioButtonGroup,_.Hvp)},
onSelected:function(M,W){M=Object.assign({},t(),{abuseReportFlowState:Object.assign({},X(),{reasonKey:W.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:W.command})});_.cE(_.oP("flowStateEntity",Z(),M))},
selectedKey:function(){var M;return(M=X())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"gg");
$bu.idomCompat=!0;_.at($bu,"yt-report-form-reason-select-page-view-model",{props:{data:_.cs}});var vNt=_.RT(function(D){var Y=D.data;var R,Z=(R=_.DH().resolve(_.cD(_.O4)))==null?void 0:R();return _.S("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.S("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.S(_.Rt,{data:function(){return Z&&Y().imageDark?Y().imageDark:Y().image},
alt:""})),_.S("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.S("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return Y().header}),_.S(_.y_,{text:function(){return Y().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"hg");
vNt.idomCompat=!0;_.at(vNt,"yt-report-form-sign-in-page-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=_.qW(_.q3u),Z=function(){return Y().titleSuperscript},t=function(){return Y().answersShelf},X=function(){return Y().videoShelf},M=function(){var B;
return(B=Y().textInputPlaceholder)==null?void 0:B.content},W=function(){return Y().showOpenTextInput&&!_.f("web_hide_explore_hub_until_user_navigates_back_to_home")},z=function(){var B;
return(B=Y().textInputValue)==null?void 0:B.content},I=function(){return Y().isMultiTurnFlow?Y().resetButtonViewModel:void 0},F=!1;
D=_.a(_.ae(!1,void 0,"LyKMqb"));var G=D.next().value,V=D.next().value;D=_.a(_.ae("",void 0,"V3XG3e"));var e=D.next().value,r=D.next().value,l=function(){return{state:G()?"active":"disabled"}};
_.rf(function(){if(W()){z()&&r(z());var B;if(!I()&&((B=R())==null?0:B.stepStates)){var O;B=Object.keys((O=R())==null?void 0:O.stepStates);O=B[B.length-1];var Wo,Sb;(O=(Wo=R().stepStates[O])==null?void 0:(Sb=Wo.userQuery)==null?void 0:Sb.userQuery)&&r(O)}}});
var U=function(B){var O=Y().onUpdateText;O&&_.BL(O,{form:{userQuery:B}});r(B)},K=_.eU(function(B){U(B.target.value.trim())},150),H=_.F4(function(B){var O;
V(!((O=B.target.value)==null||!O.trim())||F);K(B);return!1}),c=_.F4(function(B){if(B.key==="Enter"&&G()){U(B.target.value.trim());
B=void 0;var O=_.A(Y().nextButtonViewModel,_.QX),Wo,Sb;if(O==null?0:(Wo=O.loggingDirectives)==null?0:(Sb=Wo.clientVeSpec)==null?0:Sb.uiType){var VU,AS;B=_.TP((VU=O.loggingDirectives)==null?void 0:(AS=VU.clientVeSpec)==null?void 0:AS.uiType)}(Wo=Y().onNextStepCommand)&&_.BL(Wo,{forceClickLogging:!0,clickedVisualElement:B})}return!1}),Q=function(B,O){F=O;
V(O);if(Y().isMultiTurnFlow&&O){var Wo;U((Wo=B==null?void 0:B.text)!=null?Wo:"")}if(_.f("web_hide_explore_hub_until_user_navigates_back_to_home")){var Sb,VU,AS;(AS=(VU=(Sb=E.value)==null?void 0:Sb.closest("ytd-flow-step-renderer"))==null?void 0:VU.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||AS.click()}},E=_.dI("yt-talk-to-recs-view-model");
D={};return _.S("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:E},_.S("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.S(_.vK,{data:function(){return Y().topCornerButton}},{buttonViewModel:_.TV})),_.S("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.S("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.S(_.y_,{text:function(){return Y().title}}),_.S(_.T,{cond:Z,
then:function(){return _.S("sup",{class:"ytwTalkToRecsSuperScript"},_.S(_.y_,{text:Z}))}})),_.S("div",{class:"ytwTalkToRecsSubtitle"},_.S(_.y_,{text:function(){return Y().subtitle}})),_.S("div",{class:"ytwTalkToRecsResultsShelf"},_.S(_.T,{cond:t,
then:function(){return _.S(_.vK,{data:t},{chipsShelfViewModel:function(B){return _.S("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.S(_.Uf,{data:B.data,callback:Q,enableSingleChipSelection:!0}))}})}}),_.S(_.T,{cond:X,
then:function(){return _.S(_.vK,{data:X},{horizontalShelfViewModel:function(B){return _.S("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.S(_.q9,{data:B.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.S("div",{class:_.e7("ytwTalkToRecsRefinementContainer",(D.ytwTalkToRecsBottomMargin=function(){return Y().isMultiTurnFlow},D))},_.S(_.T,{cond:W,
then:function(){return _.S("div",{class:"ytwTalkToRecsUserInputBox"},_.S("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:M,value:e,"on:input":H,"on:keyup":c,maxlength:200}))}}),_.S(_.vK,{data:function(){return Y().isMultiTurnFlow?Y().nextButtonViewModel:void 0}},{buttonViewModel:function(B){return _.S("div",{class:"ytwTalkToRecsFlowControlButtons"},_.S(_.TV,{data:B.data,
buttonOverrides:l}))}}),_.S(_.vK,{data:I},{buttonViewModel:function(B){return _.S("div",{class:"ytwTalkToRecsFlowControlButtons"},_.S(_.TV,{data:B.data,
onClick:function(){var O=_.A(Y().resetButtonViewModel,_.QX);U(e());(O=O==null?void 0:O.onTap)&&_.BL(O)}}))}}))))},"ig"),"yt-talk-to-recs-view-model",{props:{data:_.cs}});var Hbh={sources:[{clientResource:{imageName:"CHECK"}}]};_.oNk=_.RT(function(D){var Y=_.dI("div");D=_.YC(D,{error:void 0});var R=D.data,Z=D.error,t=D.onSelected;D=_.a(_.fB(function(){return Qp0(R())}));
var X=D.next().value,M=D.next().value;gsh(R,function(V){M(V);var e,r,l=P1k((e=R().options)==null?void 0:(r=e[V])==null?void 0:r.value,R().type);t==null||t(l);Y.value.focus()});
D=_.F4(function(){if(!R().disabled){var V=R(),e=X(),r=Y.value;V.options&&(V=xJT(V.options,e,V.label),_.DH().resolve(_.y$).openSheet({viewModel:V},r))}});
var W=_.yby(),z=function(){return!!Z()},I=function(){return!!R().disabled},F={},G={};
return _.S("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.S("div",{class:_.e7("ytDropdownViewModelDropdownContainer",(F.ytDropdownViewModelDropdownContainerErrorBorder=z,F.ytDropdownViewModelDropdownContainerDisabled=I,F)),"on:click":D,el:Y,role:"combobox",tabindex:0,"on:keydown":W,"aria-invalid":z,"aria-disabled":I,"aria-describedby":function(){return z()?"dropdown-view-model-error":void 0}},_.S("div",{class:"ytDropdownViewModelText"},BfK(R,z,X),pDI(R,X)),_.S("div",{class:_.e7("ytDropdownViewModelChevronDown",
(G.ytDropdownViewModelChevronDownDisabled=I,G))},_.S(_.nB,{icon:"CHEVRON_DOWN"}))),Esu(R,Z))},"jg");_.at(_.RT(function(D){var Y=D.data;var R=function(t){var X=ib0(Y());X.videoMetadata||(X.videoMetadata={});X.videoMetadata.sponsorshipsMetadata||(X.videoMetadata.sponsorshipsMetadata={});X.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(t)},Z=function(t){var X=ib0(Y());
X.scheduledRedirectMetadata||(X.scheduledRedirectMetadata={});X.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(t)};
return _.S("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.S("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.S("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.S(_.y_,{text:function(){return Y().title}}),_.S(_.nB,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.S(_.y_,{text:function(){return Y().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.S(_.vK,{data:function(){return Y().tierChoices}},{dropdownViewModel:function(t){return _.S("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.S(_.oNk,{data:t.data,
onSelected:R}))}}),_.S(_.vK,{data:function(){return Y().startTimeChoices}},{dropdownViewModel:function(t){return _.S("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.S(_.oNk,{data:t.data,
onSelected:Z}))}}),_.S(_.y_,{text:function(){return Y().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.S("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.S(_.vK,{data:function(){return Y().scheduleButton}},{panelFooterViewModel:_.Xt})))},"kg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;D=D.className===void 0?"":D.className;var R=_.Ax(Kgk,function(){return Y().flowStateEntityKey||""}),Z={};
Z=_.e7("ytFlowBottomBarViewModelFlowBottomBarButtons",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Z));
var t={},X=_.e7("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Z,(t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},t));
t={};var M=_.e7("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Z,(t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},t.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},t));
Z={};Z=_.e7("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return Y().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Z));
D=_.e7("ytFlowBottomBarViewModelHost",D);return _.S("yt-flow-bottom-bar-view-model",{class:D},_.S(_.T,{cond:function(){var W;return(W=Y())==null?void 0:W.textSection},
then:function(W){return _.S("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.S(_.y_,{text:W}))}}),_.S("div",{class:Z},_.S(_.vK,{data:function(){return Y().secondaryButton}},{buttonViewModel:function(W){return _.S(_.TV,{data:W.data,
className:M})}}),_.S(_.vK,{data:function(){return Y().primaryButton}},{buttonViewModel:function(W){return _.S(_.TV,{data:W.data,
className:X,buttonOverrides:function(){var z;return{disabled:!((z=R())==null||!z.primaryButtonDisabled)}}})}})))},"lg"),"yt-flow-bottom-bar-view-model",{props:{data:_.cs,
className:_.uq}});var bI0="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),af=function(){var D=_.N.apply(this,arguments)||this;D.enableScrollingFix=!0;D.bottomBar=!1;D.hideBottomBar=!1;D.fitContent=!1;return D};
_.n(af,_.N);_.u=af.prototype;_.u.ready=function(){_.f("enable_pdp_icon_prefetch")&&_.NPK(_.DH().resolve(_.vW),0,bI0)};
_.u.focus=function(D){this.topBar?_.Bg(this.topBar,D):this.paperDialog.focus(D)};
_.u.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18958_scroller&&(this.JSC$18958_scroller.dialogElement=this.paperDialog,this.JSC$18958_scroller.attached&&typeof this.JSC$18958_scroller.attached==="function"&&this.JSC$18958_scroller.attached())};
_.u.onDataChanged=function(){var D;this.fitContent=!((D=this.data)==null||!D.fitContent);var Y;this.bottomBar=!((Y=this.data)==null||!Y.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.u.onProgressChanged=function(){var D,Y,R=((Y=(D=this.data)==null?void 0:D.progress)!=null?Y:0)*100;this.progressElement.style.width=R+"%"};
_.u.isProgressHidden=function(){var D;return!((D=this.data)==null?0:D.progress)};
_.u.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",noteViewModel:"yt-note-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(D){return _.f("enable_wiz_next_lp2_msof")&&
D&&!D.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.YF.Object.defineProperties(af.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var D;return _.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.A((D=this.data)==null?void 0:D.content,Lzk)}}});
af.prototype.onProgressChanged=af.prototype.onProgressChanged;af.prototype.onDataChanged=af.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],af.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"enableScrollingFix",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"bottomBar",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"hideBottomBar",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],af.prototype,"containsExploreHub",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],af.prototype,"fitContent",void 0);_.q([_.fr("#progress"),_.x("design:type",HTMLElement)],af.prototype,"progressElement",void 0);
_.q([_.fr("#scroller"),_.x("design:type",Object)],af.prototype,"JSC$18958_scroller",void 0);_.q([_.fr("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],af.prototype,"topBar",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],af.prototype,"onDataChanged",null);_.q([_.Gm("data.progress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],af.prototype,"onProgressChanged",null);
_.q([_.h({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],af);
_.L(af,"ytd-flow-step-renderer",function(){if(Mh9!==void 0)return Mh9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Mh9=D},{mode:1});var ykb=function(D){this.resolveCommand=D;this.steps={}},NII=function(D,Y){Y=_.a(Y||[]);
for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=Object.values(R)[0],t=void 0;if((t=Z)==null?0:t.stepId)D.steps[Z.stepId]=R}},kz9=function(D,Y){var R,Z,t,X,M;
return _.C(function(W){if((R=D.state)==null||!R.currentStepId)return W.return(void 0);Z=lLE(D);if(!Z)return W.return(Jk9(D));if(t=_.A(Z,_.hrK)){var z;((z=t.screenLoggingData)==null?0:z.screenVeType)&&_.TJ(_.n8(),t.screenLoggingData.screenVeType);((X=t)==null?0:X.onStepStartCommand)&&D.resolveCommand((M=t)==null?void 0:M.onStepStartCommand,{})}if(t&&Y){z=t;var I,F,G,V;((I=Y.flowLoggingData)==null?0:I.eventNamespace)&&((F=z.flowEventData)==null?0:F.eventType)&&((G=z.flowEventData)==null?0:G.eventMetadata)&&
((V=Y.flowLoggingData)==null?0:V.flowType)&&(I=_.jI(Y.flowLoggingData.eventNamespace,z.flowEventData.eventType,z.flowEventData.eventMetadata),_.F9(_.Ga(),I,Y.flowLoggingData.flowType));Y.steps&&!Y.steps.includes(Z)&&Y.steps.push(Z)}return W.return(Z)})};
ykb.prototype.back=function(){var D;(D=this.state)!=null&&D.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
ykb.prototype.handleUpdateFlowCommand=function(D){D.steps&&NII(this,D.steps);D.entityUpdateCommand&&this.resolveCommand(D.entityUpdateCommand,{});D.flowContinuationCommand&&(D=D.flowContinuationCommand)&&(this.getFlowContinuationCommand=D);this.awaitFlowContinuation&&(this.awaitFlowContinuation(lLE(this)),this.awaitFlowContinuation=void 0)};
ykb.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Jk9=function(D){return _.C(function(Y){return D.getFlowContinuationCommand?Y.return(new Promise(function(R){D.awaitFlowContinuation=R;D.getFlowContinuationCommand&&D.resolveCommand(D.getFlowContinuationCommand,{flow_state:D.state})})):Y.return(Promise.resolve(void 0))})},lLE=function(D){var Y;
if((Y=D.state)!=null&&Y.currentStepId)return D.steps[D.state.currentStepId]};var MG=function(){var D=_.N.apply(this,arguments)||this;D.flowState=new ykb(function(Y,R){R=R===void 0?{}:R;_.GD.instance.resolveCommand(Y,{form:{form:R,element:D.hostElement}})});
D.initialState=!0;D.isLoading=!1;D.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"};D.containsTalkToRecs=!1;return D};
_.n(MG,_.N);_.u=MG.prototype;_.u.onPopupClosed=function(D){D&&this.hostElement!==D.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.u.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.u.focus=function(D){var Y=this;_.BE(function(){var R=_.aU(Y.hostElement).querySelector("ytd-flow-step-renderer");(R==null?0:R.topBar)?R.focus(D):Y.topBar&&_.Bg(Y.topBar,D)},1)};
_.u.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.u.computeTopBarHidden=function(D){var Y;return!((Y=_.A(D,_.hrK))==null||!Y.topBarOverride)};
_.u.dataChanged=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1){((Y=D.data)==null?0:Y.steps)&&NII(D.flowState,D.data.steps);if((R=D.data)==null?0:R.flowContinuationCommand){var t=D.flowState,X=D.data.flowContinuationCommand;X&&(t.getFlowContinuationCommand=X)}return Z.yield(kz9(D.flowState,D.data),2)}D.currentFlowStep=Z.yieldResult;_.V9(Z)})};
_.u.flowChanged=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1){if(!D.flow)return R.return();D.flowState.state=D.flow;D.isLoading=!0;return R.yield(kz9(D.flowState,D.data),2)}Y=R.yieldResult;if(!Y||D.flow.isLoading)return R.return();D.currentFlowStep=Y;D.initialState=!1;D.isLoading=!1;D.autofocusAndRefit();D.updateContainsTalkToRecs();_.V9(R)})};
_.u.updateContainsTalkToRecs=function(){var D,Y=(D=_.A(this.currentFlowStep,_.hrK))==null?void 0:D.content;this.containsTalkToRecs=!!Y&&!!_.A(Y,Lzk)};
_.u.autofocusAndRefit=function(){var D=this,Y=_.DH().resolve(_.cD(_.MQ)),R=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Z=document.querySelector("yt-report-form-confirmation-page-view-model"),t=document.querySelector("yt-report-form-details-page-view-model"),X=document.querySelector("yt-report-form-reason-select-page-view-model"),M=document.querySelector("yt-contributor-zero-state-view-model"),
W=document.querySelector("yt-structured-context-note-view-model"),z=document.querySelector("yt-note-view-model");(!R&&Y&&Y.isKeyBoardInUse()||Z||!R&&t||!R&&X||M||W||z)&&_.pq(this.hostElement);_.cy(this,function(){_.MX(D.hostElement,"yt-refit")})};
_.u.handleUpdateFlowCommand=function(D){this.data&&(D=_.A(D,Kz9),D.targetId===this.data.targetId&&(D.flowContinuationCommand&&(this.data.flowContinuationCommand=D.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(D),this.autofocusAndRefit()))};
_.u.handleFlowNextStepCommand=function(D){this.data&&this.flow&&this.flow.key&&(D=_.A(D,kZI),D.targetId===this.data.targetId&&(D=D.stepId||"",this.ytdReduxBehavior.dispatch(_.k6("flowStateEntity",this.flow.key,{currentStepId:D,stepIdStack:(this.flow.stepIdStack||[]).concat(D)}))))};
_.u.handleFlowPrevStepCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.A(D,UEz),D.targetId===this.data.targetId)){var Y=[].concat(_.oK(this.flow.stepIdStack||[]));Y.length>1?(Y.pop(),this.ytdReduxBehavior.dispatch(_.k6("flowStateEntity",this.flow.key,{currentStepId:Y[Y.length-1],stepIdStack:Y}))):D.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(D.onFirstStepCommand)}};
_.u.handleYpcCancelRecurrenceCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.A(D,xEz),D.targetId===this.data.targetId&&D.endpointCommand)){var Y=_.A(this.flow,Pxh);Y&&_.A(D.endpointCommand,_.wM7)&&(_.A(D.endpointCommand,_.wM7).feedbackData=Y.surveyFeedback);this.ytComponentBehavior.resolveCommand(D.endpointCommand)}};
_.u.handlePartialUpdateFlowStateEntity=function(D){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.k6("flowStateEntity",this.flow.key,D,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
MG.prototype.flowChanged=MG.prototype.flowChanged;MG.prototype.dataChanged=MG.prototype.dataChanged;MG.prototype.onPopupClosed=MG.prototype.onPopupClosed;_.q([_.v(_.mb),_.x("design:type",Object)],MG.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],MG.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],MG.prototype,"initialState",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],MG.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Object)],MG.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],MG.prototype,"currentFlowStep",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],MG.prototype,"onPopupClosed",null);_.q([_.y({selectorArgs:["data.flowStateEntityKey"],selector:Kgk}),_.x("design:type",Object)],MG.prototype,"flow",void 0);_.q([_.fr("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],MG.prototype,"topBar",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],MG.prototype,"dataChanged",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],MG.prototype,"containsTalkToRecs",void 0);_.q([_.rd("flow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],MG.prototype,"flowChanged",null);_.q([_.h({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],MG);
_.Ubh=_.WL()(MG,"ytd-flow-root-renderer",function(){if(aOp!==void 0)return aOp;var D=document.createElement("template");_.w(D,'\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="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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return aOp=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var Kyb;var vb=null;_.at(_.RT(function(D){return _.S("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.S("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.S(_.y_,{text:function(){return D.data().text}}),_.S("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"mg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.cs}});var hkK=_.RT(function(D){var Y=D.playerControlsProps;var R=D.isShortsPage;return _.S("yt-bigboard",null,_.S(_.T,{cond:function(){return Y().isDragging},
then:function(){return _.S("div",{class:"ytBigboardStoryboardHost"},_.S(_.z3t,{progressBarProps:Y,isShortsPage:R}))}}))},"ng");
hkK.idomCompat=!0;_.Cs={ACCOUNT_LABEL:o7("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:o7("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:o7("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:o7("AD_BADGE_HINT"),AD_BADGE_TEXT:o7("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:o7("ALL_CHANNELS_LABEL"),AMBIENT_MODE:o7("AMBIENT_MODE"),AMBIENT_MODE_OFF:o7("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:o7("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:o7("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:o7("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:o7("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:o7("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:o7("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:o7("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:o7("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:o7("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:o7("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:o7("AUTO_ZOOM","Auto zoom"),BACK:o7("BACK"),CANCEL:o7("CANCEL"),CHANNEL_SWITCHER_LABEL:o7("CHANNEL_SWITCHER_LABEL"),CLOSE:o7("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:o7("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:o7("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:o7("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:o7("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:o7("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:o7("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:o7("COMMENT_MODAL_CONTENT"),CONFIRM_OK:o7("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:o7("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:o7("COPIED_TO_CLIPBOARD"),COPY:o7("COPY"),COPY_DEBUG_INFO:o7("COPY_DEBUG_INFO"),COPY_EMBED_CODE:o7("COPY_EMBED_CODE"),
COPY_LINK_LABEL:o7("COPY_LINK_LABEL"),COPY_VIDEO_URL:o7("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:o7("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:o7("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:o7("DELETE_FROM_DOWNLOADS"),DIALOG:o7("DIALOG"),DONE:o7("DONE"),DOWNLOAD:o7("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:o7("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:o7("FLAG_CONFIRM"),FLAG_CONTENT:o7("FLAG_CONTENT"),FLAG_LABEL:o7("FLAG_LABEL"),FLAG_TITLE:o7("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:o7("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:o7("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:o7("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:o7("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:o7("HIDE_SEARCH_FILTERS_LABEL"),HOME:o7("HOME","Home"),INVALID_RESPONSE_RECEIVED:o7("INVALID_RESPONSE_RECEIVED"),LIBRARY:o7("LIBRARY","Library"),LISTENING:o7("LISTENING"),LOADING:o7("LOADING"),LONG_PRESS_MIC_TO_SPEAK:o7("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:o7("LOOP"),MENU_DESKTOP:o7("MENU_DESKTOP"),
MENU_EXIT:o7("MENU_EXIT"),MENU_FEEDBACK:o7("MENU_FEEDBACK"),MENU_HELP:o7("MENU_HELP"),MENU_IMPRESSUM:o7("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:o7("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:o7("MENU_SETTINGS"),MENU_SIGN_IN:o7("MENU_SIGN_IN"),MENU_TITLE:o7("MENU_TITLE"),MENU_YOUR_DATA:o7("MENU_YOUR_DATA"),MORE_INFO:o7("MORE_INFO"),MORE_OPTIONS:o7("MORE_OPTIONS"),MUTE_VOLUME:o7("MUTE_VOLUME"),NEW_PLAYLIST:o7("NEW_PLAYLIST"),NEXT_VIDEO:o7("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:o7("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:o7("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:o7("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:o7("NOT_FOUND_TITLE"),NO_DOWNLOADS:o7("NO_DOWNLOADS"),NO_MIC_INPUT:o7("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:o7("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:o7("OOPS_MESSAGE"),OPEN_APP:o7("OPEN_APP"),OPEN_YOUTUBE:o7("OPEN_YOUTUBE"),PAUSE:o7("PAUSE"),PLAY:o7("PLAY"),PLAYER_CAPTION:o7("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:o7("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:o7("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:o7("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:o7("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:o7("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:o7("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:o7("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:o7("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:o7("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:o7("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:o7("PLAYER_MINIMIZE"),PLAYER_NEXT:o7("PLAYER_NEXT"),PLAYER_PAUSE:o7("PLAYER_PAUSE"),PLAYER_PLAY:o7("PLAYER_PLAY"),
PLAYER_PREVIOUS:o7("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:o7("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:o7("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:o7("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:o7("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:o7("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:o7("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:o7("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:o7("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:o7("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:o7("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:o7("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:o7("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:o7("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:o7("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:o7("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:o7("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:o7("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:o7("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:o7("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:o7("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:o7("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:o7("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:o7("PLAY_ALL"),PLEASE_FIX_ERRORS:o7("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:o7("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:o7("PREVIOUS_VIDEO"),PRIVACY_POLICY:o7("PRIVACY_POLICY"),RELOAD:o7("RELOAD"),REQUIRED_LABEL:o7("REQUIRED_LABEL"),SAVE_PLAYLIST:o7("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:o7("SCRUB_SLIDE_USER_EDU"),SEARCH:o7("SEARCH","Search"),
SEARCH_APPEND_LABEL:o7("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:o7("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:o7("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:o7("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:o7("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:o7("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:o7("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:o7("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:o7("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:o7("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:o7("SEEK_SLIDER"),SETTINGS_LABEL:o7("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:o7("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:o7("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:o7("SHOW_LESS"),SHOW_MORE:o7("SHOW_MORE"),SHOW_PLAYER_CONTROLS:o7("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:o7("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:o7("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:o7("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:o7("SIGN_IN_ON_WEB"),STABLE_VOLUME:o7("STABLE_VOLUME"),STABLE_VOLUME_OFF:o7("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:o7("STABLE_VOLUME_ON"),STATS_FOR_NERDS:o7("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:o7("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:o7("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:o7("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:o7("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:o7("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:o7("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:o7("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:o7("TIMESTAMP_SECONDS"),TOGGLE_OFF:o7("TOGGLE_OFF"),TOGGLE_ON:o7("TOGGLE_ON"),TRENDING:o7("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:o7("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:o7("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:o7("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:o7("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:o7("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:o7("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:o7("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:o7("VIDEO_LINK_LABEL")};var Ly9=_.RT(function(D){var Y=D.playerApi;D=_.dI("button",function(Z){_.R7(Z,36843)});
var R=o7("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.S("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.S("button",{el:D,class:"ytPlayerControlsJumpForwardButtonButton",title:R,"aria-label":R,"on:click":_.F4(function(){_.Zm(36843);Y&&Y().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.S("span",null,_.S(_.nB,{icon:"FAST_FORWARD"}))))},"og");var mbK=_.RT(function(D){var Y=D.appApi;D=_.dI("button",function(Z){_.R7(Z,62946)});
var R=o7("OPEN_IN_MINIPLAYER");return _.S("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.S("button",{el:D,class:"ytMiniplayerButtonButton",title:R,"aria-label":R,"on:click":_.F4(function(){_.Zm(62946);var Z,t;(t=(Z=Y()).openInMiniplayer)==null||t.call(Z);return!1})},_.S(_.nB,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"pg");var q9p=_.RT(function(D){var Y=D.playerApi;D=_.dI("button",function(X){_.R7(X,142812)});
var R=_.a(_.ae(!1,void 0,"I3VCyb")),Z=R.next().value,t=R.next().value;R=function(){return o7("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Z()?1:2)})};
return _.S("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.S("button",{el:D,class:"ytPlaybackSpeedButtonButton",title:R,"aria-label":R,"on:click":_.F4(function(){_.Zm(142812);if(Y){var X=Y(),M=Z();X.setPlaybackRate(M?1:2);t(!Z())}return!1})},_.S("span",null,_.S(_.nB,{icon:function(){return Z()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"qg");var HIh=_.RT(function(D){var Y=D.title;var R=D.ariaLabel;var Z=D.icon;var t=D.command;var X=D.veType;D=_.dI("button",function(M){X&&_.R7(M,X())});
return _.S("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.S("button",{el:D,class:"ytdThumbnailOverlayButtonButton",title:Y,"aria-label":R,"on:click":_.F4(function(){X&&_.Zm(X());t&&_.DH().resolve(_.Yw).resolveCommand(t())})},_.S(_.nB,{icon:Z})))},"rg");var VG="";var xbI=_.RT(function(D){var Y=D.playerControlsProps,R=D.onClickFn;D=_.Si(function(){var X=Y(),M=-1;X.captionsAvailable&&(M=X.captionsEnabled?1:0);return M},void 0,"WecR8e");
var Z=_.Si(function(){var X=Y();return X.captionsAvailable?_.fX(X.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.fX("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),t=_.Si(function(){var X=Y();
X=X.captionsAvailable?X.captionsEnabled:void 0;return X},void 0,"Q17ly");
return _.S("yt-closed-captions-toggle-button",null,_.S(_.X_h,{captionIconType:D,ariaLabel:Z,ariaPressed:t,onClick:function(X){var M=Y();if(M.captionsAvailable){var W=M.playerApi;if(W){var z=M.playerApi;if(z){var I=VG;if(I){z=z.getOption("captions","track");var F;VG=(F=z?z.displayName:null)!=null?F:I}else _.YV(z)?(I=_.jNU(z),VG=I.length?(F=Lgz(I))?F.displayName:I[0].displayName:""):VG=""}ma0(W);_.f("mweb_disable_set_state_captions_killswitch")&&M.setState({captionsEnabled:!M.captionsEnabled})}}var G,
V;(V=(G=M.appApi).showCaptionsToggleToast)==null||V.call(G,M);R==null||R(X)},
isOverlay:!0}))},"sg");var PoE=_.RT(function(D){var Y=D.data;return _.S("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.S(_.mT,{data:function(){return{type:17,text:_.yCi(Y().label)}}}))},"tg");var QoK=_.RT(function(D){var Y=_.e7("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return D.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return D.size()==="small"?D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.S("animated-seek-arrows",{class:_.e7("ytPlayerControlsAnimatedSeekArrowsHost")},_.S("span",{class:Y}),_.S("span",{class:Y}),_.S("span",{class:Y}))},"ug");
QoK.idomCompat=!0;var BII=_.RT(function(){var D=_.fX("PLAYER_SECONDS",{seconds_placeholder:"30"}),Y=_.a(_.ae(!1,void 0,"Yj8msb")),R=Y.next().value,Z=Y.next().value,t=_.a(_.ae(!1,void 0,"r9Z50e"));Y=t.next().value;var X=t.next().value;t={};var M=_.e7("jumpForwardOverlayOverlay",(t.jumpForwardOverlayOverlayHidden=Y,t));_.$s(function(){var W=null,z=null,I=function(){W!==null&&_.b$().cancelJob(W);z!==null&&_.b$().cancelJob(z);X(!0);Z(!0);_.S7(_.b$(),function(){X(!1)});
W=_.S7(_.b$(),function(){X(!0);z=_.S7(_.b$(),function(){Z(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",I);_.w2(function(){window.removeEventListener("jump-forward-clicked",I)})});
return _.S("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.S(_.T,{cond:R,then:function(){return _.S("div",{class:M},_.S(QoK,{direction:1,size:"large"}),_.S("div",null,D))}}))},"vg");var pmE=_.Cs.MUTE_VOLUME,ENk=_.Cs.UNMUTE_VOLUME,gNb=_.RT(function(D){var Y=D.muteIconType;var R=D.onClick;var Z=D.useOutlineIcon;var t=D.useDelhiIcons;D=_.dI("button",function(W){_.R7(W,28662)});
var X=function(){var W=Y(),z=Z==null?void 0:Z(),I=t==null?void 0:t(),F="",G="";switch(W){case -1:case 0:F=z?"VOLUME_OFF":I?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";G=ENk;break;case 1:F=z?"VOLUME_UP_OUTLINE":I?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";G=pmE;break;case 2:F=z?"VOLUME_DOWN_OUTLINE":I?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";G=pmE;break;default:_.qU(W)}return{iconName:F,ariaLabel:G}},M=function(){return X().ariaLabel};
return _.S("ytm-mute-button",{class:"ytmMuteButtonHost"},_.S("button",{el:D,class:"ytmMuteButtonButton",title:M,"aria-label":M,"on:click":_.F4(function(W){_.Zm(28662);R==null||R(W);return!1})},_.S("span",null,_.S(_.nB,{icon:function(){return X().iconName}}))))},"wg");var dbh=_.RT(function(D){var Y=D.volumeProps;var R=D.onClickFn;var Z=D.useOutlineIcon;var t=D.useDelhiIcons;return _.S("yt-mute-toggle-button",null,_.S(gNb,{muteIconType:function(){var X=Y();return X.volumeMuted||X.volume===0?0:X.volume>50?1:2},
onClick:function(X){var M=Y().playerApi;M&&(M.isMuted()?M.unMute():M.mute(!1));R==null||R(X)},
useOutlineIcon:function(){return!(Z==null||!Z())},
useDelhiIcons:function(){return!(t==null||!t())}}))},"xg");
dbh.idomCompat=!0;var iIt=_.RT(function(D){var Y=D.data;var R=_.dI("ytm-paid-content-overlay-renderer");return _.S("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:R,"on:animationend":_.F4(function(){R.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.S(_.PK,{command:function(){return Y().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.S(_.T,{cond:function(){var Z;return(Z=Y().icon)==null?void 0:Z.iconType},
then:function(){return _.S("span",null,_.S(_.nB,{icon:function(){var Z;return(Z=Y().icon)==null?void 0:Z.iconType}}))}}),_.S("div",{class:"ytmPaidContentOverlayText"},_.S(_.y_,{text:function(){return Y().text}})),_.S(_.T,{cond:function(){return Y().navigationEndpoint},
then:function(){return _.S(_.nB,{icon:"CHEVRON_RIGHT"})}})))},"yg");
iIt.idomCompat=!0;var zrE=[].concat(_.oK([{register:function(D){var Y=ATu(D),R;(R=D().playerApi)==null||R.addEventListener("onVolumeChange",Y);return function(){}}},
{register:function(D){var Y=nwb(D);D=D().playerApi;D==null||D.addEventListener("captionschanged",Y);D==null||D.addEventListener("captionssettingschanged",Y);D==null||D.addEventListener("onCaptionsTrackListChanged",Y);return function(){}}},
{register:function(D){if(!_.f("mweb_screenreader_accessible_player"))return function(){};
var Y=rTI(D),R=document.querySelector("video");R==null||R.addEventListener("touchend",Y);return function(){R==null||R.removeEventListener("touchend",Y)}}},
{register:function(D){if(!_.f("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var Y=rTI(D),R=document.querySelector("video");R==null||R.addEventListener("focus",Y);return function(){R==null||R.removeEventListener("focus",Y)}}}]),[{register:function(D){var Y=GZk(D),R;
(R=D().playerApi)==null||R.addEventListener("onStateChange",Y);return function(){}}},
{register:function(D){var Y=V$I(D),R;(R=D().playerApi)==null||R.addEventListener("onPlaybackRateChange",Y);return function(){}}},
{register:function(D){var Y=fHT(D),R;(R=D().playerApi)==null||R.addEventListener("onVideoDataChange",Y);return function(){}}},
{register:function(D){var Y=erp(D),R,Z;(R=D())==null||(Z=R.playerApi)==null||Z.addEventListener("onVideoProgress",Y);return function(){}}}]);var OII=_.RT(function(D){var Y=D.data;var R=function(){return _.fX("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+Y().playbackRate})};
return _.S(_.T,{cond:function(){return Y().playbackRate&&Y().playbackRate!==1},
then:function(){return _.S("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.S("div",{class:"ytPlaybackRateOverlayOverlay"},_.S(QoK,{direction:1,size:"small"}),_.S("div",{class:"ytPlaybackRateOverlayLabel"},R)))}})},"zg");var ckI=_.RT(function(D){var Y=D.data;return _.S("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.S(_.T,{cond:function(){var R,Z=(R=Y())==null?void 0:R.playerResponse,t;return Z==null?void 0:(t=Z.paidContentOverlay)==null?void 0:t.paidContentOverlayRenderer},
then:function(R){return _.S(iIt,{data:R})}}))},"Bg"),D7k=_.RT(function(D){var Y=D.props;
var R=D.data;var Z=D.options;var t=function(){var I,F,G,V;return(I=R())==null?void 0:(F=I.playerResponse)==null?void 0:(G=F.playerConfig)==null?void 0:(V=G.inlinePlaybackConfig)==null?void 0:V.showAudioControls},X=function(){var I,F;
if(t()&&((I=Z())==null?void 0:(F=I.additionalButton)==null?void 0:F.button)!==void 0){var G,V,e;I=(G=R())==null?void 0:(V=G.playerApi)==null?void 0:(e=V.getSize())==null?void 0:e.height;if(!(I===void 0||I<180)){var r,l;return(r=Z())==null?void 0:(l=r.additionalButton)==null?void 0:l.button}}},M=function(){var I,F;
return(I=Z())==null?void 0:(F=I.additionalButton)==null?void 0:F.thumbnailOverlayButtonRenderers},W=function(){var I,F;
return(I=Z())==null?void 0:(F=I.additionalButton)==null?void 0:F.thumbnailOverlayButtonViewModels},z=function(){var I=[_.S(dbh,{volumeProps:Y}),
_.S(xbI,{playerControlsProps:Y})];X()===1&&I.push(_.S(Ly9,{playerApi:function(){return Y().playerApi}}));
X()===2&&I.push(_.S(mbK,{appApi:function(){return Y().appApi}}));
X()===3&&I.push(_.S(q9p,{playerApi:function(){return Y().playerApi}}));
var F=M();if(X()===4&&F){F=_.a(F);for(var G=F.next(),V={};!G.done;V={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$589:void 0},G=F.next()){G=G.value;V.tooltip$jscomp$2=G.tooltip;var e=void 0,r=void 0;V.ariaLabel$jscomp$20=((e=G.accessibility)==null?void 0:(r=e.accessibilityData)==null?void 0:r.label)||V.tooltip$jscomp$2;e=void 0;V.icon$jscomp$50=(e=G.icon)==null?void 0:e.iconType;V.command$jscomp$589=G.command;V.tooltip$jscomp$2&&V.ariaLabel$jscomp$20&&V.icon$jscomp$50&&
I.push(_.S(HIh,{title:function(l){return function(){return l.tooltip$jscomp$2}}(V),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$20}}(V),
icon:function(l){return function(){return l.icon$jscomp$50}}(V),
command:function(l){return function(){return l.command$jscomp$589}}(V)}))}}F=W();
if(X()===4&&F)for(F=_.a(F),G=F.next(),V={};!G.done;V={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$590:void 0},G=F.next())G=G.value,V.tooltip$jscomp$3=G.title,V.ariaLabel$jscomp$21=G.accessibilityText||V.tooltip$jscomp$3,V.icon$jscomp$51=G.iconName,V.command$jscomp$590=_.HL(G.onTap),V.tooltip$jscomp$3&&V.ariaLabel$jscomp$21&&V.icon$jscomp$51&&I.push(_.S(HIh,{title:function(l){return function(){return l.tooltip$jscomp$3}}(V),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$21}}(V),
icon:function(l){return function(){return l.icon$jscomp$51}}(V),
command:function(l){return function(){return l.command$jscomp$590}}(V)}));
return I};
return _.S(_.T,{cond:t,then:function(){return _.S("div",{class:"ytInlinePlayerControlsTopRightControls"},_.S(_.G6,{each:z},function(I){return _.S("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.S("div",{class:"ytInlinePlayerControlsButtonIcon"},I))}))}})},"Cg"),ZFt=_.RT(function(D){var Y=D.props;
var R=D.data;var Z=D.options;D={};D=_.e7("ytInlinePlayerControlsBottomRightControls",(D.ytInlinePlayerControlsBottomRightControlsHidden=function(){var t;return $Et(R(),Z())&&((t=Z())==null?void 0:t.insetProgressBar)&&(Y().isHovering||Y().isDragging)},D));
return _.S("div",{class:D},_.S(Ywk,{data:R}),_.S(_.T,{cond:function(){var t;return!((t=Z())==null?0:t.hideTimeDisplay)},
then:function(){return _.S(RMT,{props:Y,data:R})}}))},"Dg"),Ywk=_.RT(function(D){var Y=D.data;
return _.S(_.vK,{data:function(){var R;return M$u((R=Y())==null?void 0:R.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:PoE})},"Eg"),RMT=_.RT(function(D){var Y=D.props;
var R=D.data;return _.S(_.T,{cond:function(){return Y().isLive},
then:function(){return _.S(tY9,null)},
else:function(){return _.S(sD9,{props:Y,data:R})}})},"Fg"),sD9=_.RT(function(D){var Y=D.props;
var R=D.data;var Z=_.Si(function(){var t;return WzT((t=R())==null?void 0:t.thumbnailOverlays)},void 0,"kUmuA");
return _.S("div",{class:_.e7("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Cs.PLAYER_TIME_ELAPSED+" "+_.n9y(Y().playedTime)}},_.S(_.mT,{data:function(){var t=_.n9y(Y().videoDuration-Y().playedTime);
return Object.assign({},{type:17,text:t},Z())}}))},"Gg"),tY9=_.RT(function(){var D=_.e7("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.S("div",{class:D},_.S(_.mT,{data:{type:18,text:_.Cs.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Hg"),Xy0=_.RT(function(D){var Y=D.props;
var R=D.data;var Z=D.options;return _.S(_.GI9,{progressBarProps:Y,config:function(){var t,X=_.A((t=R())==null?void 0:t.multiMarkersPlayerBar,_.icz),M;t=((M=Z())==null?0:M.insetProgressBar)?2:1;var W;M=(W=Z())==null?void 0:W.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:t,chapterData:X,isInlinePlayback:!0,doSeekOnClick:M,playheadDotBehavior:M?1:0}}})},"Ig");_.at(_.RT(function(D){var Y=D.data;var R=D.appApi;var Z=D.options;var t=Fzb(Y,wrh(R));D={};R={};return _.S("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.S("div",{class:_.e7("ytInlinePlayerControlsDarkenedOverlay",(D.ytInlinePlayerControlsDarkenedOverlayShow=function(){return t().isHovering},D))}),_.S(BII,null),_.S(OII,{data:t}),_.S(ckI,{data:Y}),_.S(hkK,{playerControlsProps:t,
isShortsPage:!1}),_.S("div",{class:_.e7((R.ytInlinePlayerControlsControlsHidden=function(){return t().isDragging},R))},_.S(D7k,{props:t,
data:Y,options:Z}),_.S(ZFt,{props:t,data:Y,options:Z})),_.S(_.T,{cond:function(){return $Et(Y(),Z())},
then:function(){return _.S(Xy0,{props:t,data:Y,options:Z})}}))},"Ag"),"yt-inline-player-controls",{props:{data:_.cs,
appApi:_.uq,options:_.cs}});var W9=function(){var D=_.N.apply(this,arguments)||this;D.opts=null;D.playerControlsData=null;D.playerControlsAppApi={openInMiniplayer:function(){D.openInMiniplayer()}};
D.playerControlsOptions={};D.noAnimation=!1;D.playbackIntentTriggered=!1;D.positionData=null;D.hidden=!0;D.active=!1;D.playing=!1;D.videoPreviewDataIndex=0;D.JSC$19014_playerPromise=null;D.player=null;D.enableAudioControls=!1;D.hasBeenUnmuted=!1;D.captionsHaveBeenTurnedOff=!1;D.JSC$19014_playerEvents=new Map;D.videoPreviewFetchRequest=null;D.scheduledPreviewEndJobId=null;D.JSC$19014_preventProgressSaveTimer=null;D.watchEndpointStartTimeUpdaterInterval=null;D.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};D.windowOnBlurFn=function(){D.deactivate()};
return D};
_.n(W9,_.N);_.u=W9.prototype;
_.u.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.f("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{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"}}}};
_.u.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19014_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19014_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19014_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19014_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.jN(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.jN(this,this.onScroll))};
_.u.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.jN(this,this.onScroll))};
_.u.onPageTypeChange=function(){this.deactivate()};
_.u.onWindowResized=function(){this.deactivate()};
_.u.onCaptionsChanged=function(D){D=!!D.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!D);this.setCaptionSize()};
_.u.setCaptionSize=function(){var D;if(this.active&&!this.captionsHaveBeenTurnedOff&&((D=this.player)==null?0:D.getCaptionWindowContainerId())){var Y;(Y=this.player)==null||Y.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.u.currentPageAllowed=function(){return!this.isWatchPage};
_.u.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var D=this.positionData,Y=D.initialTopPosition,R=D.initialHorizontalPosition;_.SN(this.hostElement,{"--ytd-video-preview-translate-left":D.finalHorizontalPosition-R+"px","--ytd-video-preview-translate-top":D.finalTopPosition-Y+"px","--ytd-video-preview-original-top-position":Y+"px","--ytd-video-preview-original-horizontal-position":R+"px",
"--ytd-video-preview-initial-scale":"scale("+D.initialScale+")","--ytd-video-preview-width":D.videoPreviewWidth+"px","--ytd-video-preview-height":D.videoPreviewHeight+"px"});return!0};
_.u.handleOpenVideoPreviewAction=function(D){var Y=this,R;return _.C(function(Z){if(!Y.currentPageAllowed())return Z.return(0);Y.opts=D;return(R=Y.alignVideoPreviewForAnimation(D.thumbnail))?Z.return(Y.activate()):Z.return(0)})};
_.u.onMouseLeave=function(D){this.shouldDeactivateOnMouseLeave(D)&&this.deactivate()};
_.u.onScroll=function(){var D,Y;((D=this.opts)==null?0:D.isAutoplay)&&((Y=this.opts)==null?0:Y.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.u.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.yc.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.u.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.u.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",W9.JSC$19013_DEFAULT_CLICK_LOCATION_BEHAVIOR,W9.JSC$19013_CLICK_LOCATION_ID_MAP)};
_.u.shouldDeactivateOnMouseLeave=function(D){D=D.relatedTarget;if(!D)return!0;var Y;return(Y=this.opts)!=null&&Y.mediaRenderer?!_.MB(this.opts.mediaRenderer).contains(D):!0};
_.u.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.u.onPlaybackStart=function(){var D=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$19014_preventProgressSaveTimer=
_.S7(_.yc,function(){D.resetPreventProgressSaveTimer()},1E4);
var Y;if((Y=this.opts)==null?0:Y.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.S7(_.yc,function(){D.hasMultipleVideoPreviews()?D.startPlaybackForNextVideo():D.deactivate()},this.opts.videoPreviewDurationMs);
var R;this.player.setGlobalCrop(((R=this.opts)==null?0:R.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.u.getRoundedCornersSize=function(){var D;if((D=this.opts)==null?0:D.roundedCornersSize){var Y;return(Y=this.opts)==null?void 0:Y.roundedCornersSize}var R;if((R=this.opts)==null?0:R.enableRounding){var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="small")return 1;var t;if(((t=this.opts)==null?void 0:t.thumbnailSize)==="medium")return 2;var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="large")return 3}return _.f("web_imp_inset_progress_bar")?3:0};
_.u.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.u.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.u.onMediaContainerClick=function(D){this.isShortcutClick(D)||(this.navigateToWatch(D),D.preventDefault(),D.stopPropagation())};
_.u.activate=function(){var D=this,Y,R,Z,t,X,M,W,z,I;return _.C(function(F){switch(F.nextAddress){case 1:if(!D.currentPageAllowed())return F.return(0);R=(Y=D.videoPreviewData)==null?void 0:Y.inlinePlaybackEndpoint;Z=_.ED.instance;if(!R||!Z)return F.return(0);D.playbackIntentTriggered=!0;((t=D.opts)==null?0:t.mediaRenderer)&&((X=D.opts)==null||!X.isAutoplay)&&uWb(D.opts.mediaRenderer,function(){D.deactivate()});
_.cy(D,function(){D.revealPreviewUi()});
M={};_.f("enable_unknown_lact_fix_on_html5")&&(_.DH().resolve(_.bq),M.lact=_.Ro());D.videoPreviewFetchRequest=YKI(Z,D.getInlinePlaybackRequestData(D.videoPreviewData),M);_.SX(F,2);return F.yield(D.videoPreviewFetchRequest,4);case 4:W=F.yieldResult;if(((z=W)==null?void 0:(I=z.playabilityStatus)==null?void 0:I.status)==="OK")return F.return(D.handlePlayerResponse(W));throw Error("Pj");case 2:_.Gl(F),D.deactivate();case 3:return F.return(1)}})};
_.u.getInlinePlaybackRequestData=function(D){var Y,R=_.f("web_imp_player_mute_params")?((Y=this.opts)==null?void 0:Y.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:D.inlinePlaybackEndpoint,startPlaybackInMutedState:R}};
_.u.handlePlayerResponse=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G;return _.C(function(V){if(V.nextAddress==1){R=Y.getInlinePlaybackVideoId();if(!(((Z=D)==null?0:(t=Z.videoDetails)==null?0:t.videoId)&&Y.currentPageAllowed()&&Y.playbackIntentTriggered&&Y.opts&&R))return Y.deactivate(),V.return(0);if(D.videoDetails.videoId!==R)return V.return(0);Y.enableAudioControls=!!((X=D.playerConfig)==null?0:(M=X.inlinePlaybackConfig)==null?0:M.showAudioControls);D.trackingParams=Y.getInlinePlaybackTrackingParams();
if(!Y.inlinePlayer)return V.return(0);W={};if(I=_.A((z=Y.videoPreviewData)==null?void 0:z.inlinePlaybackEndpoint,_.Od))W.watch_endpoint=I;if(Y.videoPreviewData){var e,r=(e=_.A(Y.videoPreviewData.inlinePlaybackEndpoint,_.Od))==null?void 0:e.startTimeSeconds;r!==void 0&&(D.playerConfig||(D.playerConfig={}),D.playerConfig.playbackStartConfig||(D.playerConfig.playbackStartConfig={}),D.playerConfig.playbackStartConfig.startPosition||(D.playerConfig.playbackStartConfig.startPosition={}),D.playerConfig.playbackStartConfig.startSeconds=
r,D.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(r*1E3))}Y.inlinePlayer.loadVideoWithPlayerResponse(D,W);if(Y.JSC$19014_playerPromise)return V.jumpTo(2);Y.JSC$19014_playerPromise=Y.inlinePlayer.getPlayerPromise();return V.yield(Y.JSC$19014_playerPromise,3)}V.nextAddress!=2&&(F=V.yieldResult,F.setInlinePreview(!0),F.setSizeStyle(!1,!0),Y.ytPlayerListenerBehavior.listenToPlayerEvents(F,Y.JSC$19014_playerEvents),Y.player=F,_.MX(Y.hostElement,"player-api-ready"));((G=Y.opts)==
null?0:G.showPlayerControls)&&Y.videoPreviewData&&Y.player&&(Y.playerControlsData={playerResponse:D,isInlinePlayback:!0,thumbnailOverlays:Y.videoPreviewData.thumbnailOverlays,playerApi:Y.player},Y.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!Y.unroundCornersForPlayback,additionalButton:Y.getAdditionalButtonType(Y.videoPreviewData.thumbnailOverlays)});return V.return(2)})};
_.u.revealPreviewUi=function(){var D=this;this.playbackIntentTriggered&&_.yri(this,function(){D.hasThumbnailPositionChangedSinceTriggered()||(D.updateActiveState(!0),D.noAnimation=!1)})};
_.u.hasThumbnailPositionChangedSinceTriggered=function(){var D=this.positionData,Y=this.getThumbnailPositionData();return(D==null?void 0:D.initialTopPosition)!==(Y==null?void 0:Y.initialTopPosition)||(D==null?void 0:D.initialHorizontalPosition)!==(Y==null?void 0:Y.initialHorizontalPosition)};
_.u.getThumbnailPositionData=function(){var D,Y;if((Y=this.opts)==null||!Y.thumbnail)return null;Y=this.opts.thumbnail;var R=((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Z=Y.getBoundingClientRect();D=Z.width;Y=Z.height;var t=Z.top+window.scrollY;Z=Z.left+window.scrollX;var X=R?Math.ceil(D):D;R=R?Math.ceil(Y):Y;var M=D/X;D={initialScale:M,initialTopPosition:t-12*M,finalTopPosition:t-12-(R-Y)/2,initialHorizontalPosition:Z-(12+(X-D)/2),finalHorizontalPosition:Z-12-(X-D)/
2,videoPreviewWidth:X,videoPreviewHeight:R};return D};
_.u.updateActiveState=function(D){this.active=D;this.ytdReduxBehavior.dispatch(_.u0({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:D}))};
_.u.stopPlayer=function(D){D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(D)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.yc.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.u.deactivate=function(D){D=D===void 0?{}:D;D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;vb&&(vb.disconnect(),vb=null);this.stopPlayer({resetWatchEndpointStartTime:D});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.u.isValidThumbnailOverlayButton=function(D,Y){D=D.thumbnailOverlayButtonRenderer;var R;return!!D&&!!D.tooltip&&!((R=D.icon)==null||!R.iconType)&&Y.includes(D.icon.iconType)};
_.u.isValidThumbnailOverlayButtonViewModel=function(D,Y){var R;D=_.A((R=D.thumbnailOverlayButtonViewModel)==null?void 0:R.overlayButton,_.QX);return!!D&&!!D.title&&!!D.iconName&&Y.includes(D.iconName)};
_.u.getAdditionalButtonType=function(D){var Y=this;if(_.f("web_imp_fastforward_button"))return{button:1};if(_.f("web_imp_miniplayer_button"))return{button:2};if(_.f("web_imp_playback_speed_button"))return{button:3};var R=["BOX_STACK_3"],Z=(D||[]).filter(function(X){return Y.isValidThumbnailOverlayButton(X,R)}).map(function(X){return X.thumbnailOverlayButtonRenderer});
if(Z.length)return{button:4,thumbnailOverlayButtonRenderers:Z};var t=["BOX_STACK_3"];D=(D||[]).filter(function(X){return Y.isValidThumbnailOverlayButtonViewModel(X,t)}).map(function(X){return _.A(X.thumbnailOverlayButtonViewModel.overlayButton,_.QX)});
if(D.length)return{button:4,thumbnailOverlayButtonViewModels:D}};
_.u.allowCaptions=function(){var D;return!((D=this.opts)==null?0:D.forceCaptionsOff)};
_.u.allowUnmuting=function(){var D;return this.enableAudioControls&&!((D=this.opts)==null?0:D.forceMutedVolume)};
_.u.beginStartTimeUpdater=function(){var D=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Cv(function(){D.updateWatchEndpointStartTime()},1E3)};
_.u.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.u.resetPreventProgressSaveTimer=function(){this.JSC$19014_preventProgressSaveTimer!==null&&(_.yc.cancelJob(this.JSC$19014_preventProgressSaveTimer),this.JSC$19014_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.u.updateWatchEndpointStartTime=function(D){var Y=this.videoPreviewData;if(this.player&&Y!=null&&Y.inlinePlaybackEndpoint&&!this.JSC$19014_preventProgressSaveTimer){D=D?0:Math.floor(this.player.getCurrentTime());var R=_.A(Y.navigationEndpoint,_.Od);R&&(R.startTimeSeconds=D);if(Y=_.A(Y.inlinePlaybackEndpoint,_.Od))Y.startTimeSeconds=D}};
_.u.isShortcutClick=function(D){return!!D&&(D.ctrlKey||D.shiftKey||D.metaKey)};
_.u.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.u.openInMiniplayer=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1){R=(Y=D.videoPreviewData)==null?void 0:Y.navigationEndpoint;if(!R)return Z.return();_.AG().lockupActivation=!0;return Z.yield(_.X$E(_.DH().resolve(_.mL),R),2)}_.AG().userActivation=!0;_.V9(Z)})};
_.u.navigateToWatch=function(D){var Y,R=(Y=this.videoPreviewData)==null?void 0:Y.navigationEndpoint;if(R){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(R,D,!0);else{var Z;_.f("web_thumbnail_to_watch_transition")&&((Z=this.opts)==null?0:Z.thumbnail)&&_.Z5z(_.DH().resolve(_.f1),this.opts.thumbnail);_.MX(this.hostElement,"yt-navigate",{endpoint:R})}this.deactivate()}};
_.u.getInlinePlaybackVideoId=function(){var D,Y;return(Y=_.A((D=this.videoPreviewData)==null?void 0:D.inlinePlaybackEndpoint,_.Od))==null?void 0:Y.videoId};
_.u.getInlinePlaybackTrackingParams=function(){var D,Y;return(D=this.videoPreviewData)==null?void 0:(Y=D.inlinePlaybackEndpoint)==null?void 0:Y.clickTrackingParams};
_.u.hasMultipleVideoPreviews=function(){var D;return!!(((D=this.opts)==null?0:D.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.u.startPlaybackForNextVideo=function(){var D;(D=this.opts)!=null&&D.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())};
_.YF.Object.defineProperties(W9.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null?0:D.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null||!D.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 D;if(Array.isArray((D=this.opts)==null?void 0:D.videoPreviewData)){var Y;return(Y=this.opts)==null?void 0:Y.videoPreviewData[this.videoPreviewDataIndex]}var R;return(R=this.opts)==null?void 0:R.videoPreviewData}}});
W9.prototype.onIsAdsVideoChange=W9.prototype.onIsAdsVideoChange;W9.prototype.onInlinePreviewIsEnabledChange=W9.prototype.onInlinePreviewIsEnabledChange;W9.prototype.optsChanged=W9.prototype.optsChanged;W9.prototype.onMouseLeave=W9.prototype.onMouseLeave;W9.JSC$19013_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);W9.JSC$19013_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"}];
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],W9.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],W9.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],W9.prototype,"componentBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],W9.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.X1.YtSparklesClickLocationBehavior),_.x("design:type",Object)],W9.prototype,"ytSparklesClickLocationBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],W9.prototype,"opts",void 0);_.q([_.y(),_.x("design:type",Object)],W9.prototype,"playerControlsData",void 0);
_.q([_.y(),_.x("design:type",Object)],W9.prototype,"playerControlsAppApi",void 0);_.q([_.y(),_.x("design:type",Object)],W9.prototype,"playerControlsOptions",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],W9.prototype,"noAnimation",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],W9.prototype,"hidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],W9.prototype,"active",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],W9.prototype,"playing",void 0);_.q([_.y({selector:_.Qin}),_.x("design:type",Boolean)],W9.prototype,"inlinePreviewIsEnabled",void 0);_.q([_.y(),_.x("design:type",String)],W9.prototype,"pagePath",void 0);_.q([_.y({selector:_.HNo}),_.x("design:type",Boolean)],W9.prototype,"isWatchPage",void 0);_.q([_.b("videoPreviewData"),_.x("design:type",Object),_.x("design:paramtypes",[])],W9.prototype,"thumbnailData",null);
_.q([_.b("opts","active"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W9.prototype,"hidePlayerControls",null);_.q([_.b("opts"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W9.prototype,"isAdsVideo",null);_.q([_.b("opts"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W9.prototype,"roundedCornersSmall",null);
_.q([_.b("opts"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W9.prototype,"roundedCornersMedium",null);_.q([_.b("opts"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W9.prototype,"roundedCornersLarge",null);_.q([_.b("opts"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],W9.prototype,"unroundCornersForPlayback",null);
_.q([_.b("opts","videoPreviewDataIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],W9.prototype,"videoPreviewData",null);_.q([_.y(),_.x("design:type",Object)],W9.prototype,"videoPreviewDataIndex",void 0);_.q([_.fr("#inline-player"),_.x("design:type",Object)],W9.prototype,"inlinePlayer",void 0);_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],W9.prototype,"onMouseLeave",null);
_.q([_.rd("opts"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W9.prototype,"optsChanged",null);_.q([_.rd("inlinePreviewIsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W9.prototype,"onInlinePreviewIsEnabledChange",null);_.q([_.Gm("isAdsVideo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W9.prototype,"onIsAdsVideoChange",null);
_.q([_.h({is:"ytd-video-preview",disableElementRegistration:!0})],W9);
_.L(W9,"ytd-video-preview",function(){if(Kyb!==void 0)return Kyb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Kyb=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var zWp,SpI,T5I;zWp=function(D){return _.f("kevlar_watch_cinematics_invisible")||D.fullscreen&&_.f("kevlar_watch_cinematics_invisible_in_fullscreen")||D.theater&&!D.fullscreen&&_.f("kevlar_watch_cinematics_invisible_in_theater")};
SpI=function(){var D=document.createElement("canvas"),Y=D.getContext("2d");if(!Y)throw Error("ro");_.KC(D,{position:"absolute",width:"100%",height:"100%"});return{element:D,context:Y}};
T5I=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.f("kevlar_watch_cinematics_css_blur")};
_.jxh=function(D,Y,R){return Math.abs(D-Y)<=(R||1E-6)};
_.IrT=function(D,Y){return D==Y?!0:D&&Y?D.width==Y.width&&D.height==Y.height:!1};_.FXK=new _.Dv("notificationActionRenderer");var GQT=function(D){var Y=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Ta;this.element.addEventListener("load",function(){Y.loaded=!0;Y.resolver.resolve(Y.element)});
this.element.addEventListener("error",function(){Y.failed=!0});
this.element.src=D};var Vrh=function(D,Y){this.image=D;this.frame=Y};
Vrh.prototype.drawToCanvas=function(D,Y){var R=this.frame.width/this.frame.columns,Z=this.frame.height/this.frame.rows,t=Y.offsetX,X=Y.offsetY;zWp(Y)?(D.fillStyle=Y.fullscreen?"#000":"#0f0f0f",D.fillRect(t,X,(Y==null?void 0:Y.width)||R,(Y==null?void 0:Y.height)||Z)):D.drawImage(this.image,this.frame.column*R,this.frame.row*Z,R,Z,t,X,(Y==null?void 0:Y.width)||R,(Y==null?void 0:Y.height)||Z)};
var fr9=function(D){this.color=D};
fr9.prototype.drawToCanvas=function(D,Y){var R=Y.offsetX,Z=Y.offsetY,t=Y.width,X=Y.height;D.fillStyle=zWp(Y)?Y.fullscreen?"#000":"#0f0f0f":this.color;D.fillRect(R,Z,t,X)};var ZP=function(D,Y){_.If.call(this);this.playerApi=Y;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.FL(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();eWz(this,D);Aet(this);this.update()};
_.n(ZP,_.If);ZP.prototype.addEventListeners=function(){var D=this,Y=function(){D.update()},R=function(t){D.paused||(t.type==="newdata"&&(D.mosaics.clear(),nAk(D),t_(D)),Aet(D),D.update())},Z=function(){D.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",Y);this.playerApi.addEventListener("onVideoDataChange",R);this.playerApi.addEventListener("onStateChange",Z);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoProgress",Y);D.playerApi.removeEventListener("onVideoDataChange",R);D.playerApi.removeEventListener("onStateChange",Z)})};
var eWz=function(D,Y){D.cinematicContainerRenderer!==Y&&(D.cinematicContainerRenderer=Y,nAk(D),t_(D),D.colorStoreUpdateJobId=_.yc.addLowPriorityJob(function(){var R;if((R=D.cinematicContainerRenderer.colorStore)!=null&&R.sampledColors){R=Infinity;for(var Z=_.a(D.cinematicContainerRenderer.colorStore.sampledColors),t=Z.next();!t.done;t=Z.next()){t=t.value;var X=Number(t.key);X!==0&&X<R&&(R=X);X=_.xI(t.value);D.colorStore.set(t.key,X)}D.colorStoreTimeInterval=R}}))},nAk=function(D){D.colorStoreUpdateJobId&&
(_.yc.cancelJob(D.colorStoreUpdateJobId),D.colorStoreUpdateJobId=void 0);
D.colorStore.clear();D.currentStoryboardColor=void 0},reh=function(D,Y){var R;
return(R=D.getStoryboardFrame(Y))==null?void 0:R.url};
ZP.prototype.onPlayerStateChange=function(){this.update()};
ZP.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Aet=function(D){var Y=D.getStoryboardFrame(0);Y&&(Y=new _.FL(Y.width/Y.columns,Y.height/Y.rows),_.IrT(D.currentStoryboardSize,Y)||(D.currentStoryboardSize=Y,D.publish("STORYBOARD_SIZE_CHANGED",D.currentStoryboardSize)))},wvE=function(D,Y){D.currentStoryboardIndex=Y;
D.pendingStoryboardIndex=NaN;Y=D.getStoryboardFrame(D.currentStoryboardIndex);D.currentStoryboard=new Vrh(D.mosaics.get(Y.url).element,Y);D.publish("STORYBOARD_CHANGED",D.currentStoryboard);D.lastUpdateTime=(0,_.DO)()};
ZP.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var t_=function(D){D.currentStoryboardIndex=NaN;D.pendingStoryboardIndex=NaN;D.currentStoryboard&&(D.currentStoryboard=void 0,D.publish("STORYBOARD_CHANGED",void 0));D.lastUpdateTime=NaN};
ZP.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)t_(this);else{var D=this.playerApi.getPlayerState(1);if(D===-1||D===5||D===0)t_(this);else if(isNaN(this.lastUpdateTime)||!((0,_.DO)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(D=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){D=""+Math.round(D*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var Y=this.colorStore.get(D);Y?Y!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=Y,this.currentStoryboard=new fr9(Y),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.DO)()):(_.Jk(new _.AT("Could not find color for timestamp: "+D,this.cinematicContainerRenderer)),t_(this))}else t_(this);else $e0(this,D)}};
var $e0=function(D,Y){var R=D.getStoryboardFrameIndex(Y);if(R!==D.currentStoryboardIndex&&R!==D.pendingStoryboardIndex){Y=reh(D,R);var Z=D.mosaics.get(Y);Z?Z.loaded&&wvE(D,R):(D.pendingStoryboardIndex=R,R=new GQT(Y),D.mosaics.set(Y,R),R.resolver.promise.then(function(){if(!D.isDisposed()&&!D.paused&&!isNaN(D.pendingStoryboardIndex)){var t=reh(D,D.pendingStoryboardIndex);if(t){var X;(X=D.mosaics.get(t))!=null&&X.loaded&&wvE(D,D.pendingStoryboardIndex)}else t_(D)}}))}};
ZP.prototype.getStoryboardFrameIndex=function(D){var Y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(D,Y)};
ZP.prototype.getStoryboardFrame=function(D){var Y=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,R,Z;return((Z=(R=this.playerApi).getStoryboardFrame)==null?void 0:Z.call(R,D,Y))||null};
ZP.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Xz=function(D,Y,R,Z){Z=Z===void 0?!1:Z;_.AE.call(this);this.cinematicContainerRenderer=Y;this.playerApi=R;this.theater=this.fullscreen=!1;var t;this.ambientLightThemeEnabled=!Z&&!!(Y==null?0:(t=Y.config)==null?0:t.enableInLightTheme);this.ambientFullscreenEnabled=Z&&_.f("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=Z&&_.f("web_cinematic_theater_mode");this.container=document.createElement("div");D.appendChild(this.container);var X;if(_.f("web_cinematic_theater_mode")||_.f("web_cinematic_fullscreen")||
(Y==null?0:(X=Y.config)==null?0:X.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);vAI(this);D=this.ambientV2Container||this.container;this.backCanvas=SpI();this.frontCanvas=SpI();D.appendChild(this.backCanvas.element);D.appendChild(this.frontCanvas.element);this.storyboardManager=new ZP(Y,this.playerApi);_.WB(this,this.storyboardManager);this.addEventListeners();oAt(this)?bEp(this,100+sO(this)*3*2,100+sO(this)*3*2):ye9(this);
N59(this,this.storyboardManager.currentStoryboard)};
_.n(Xz,_.AE);var vAI=function(D){D.ambientV2Container?lrK(D):(_.KC(D.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+Jep(D)+", "+kQz(D)+")"}),T5I()&&_.KC(D.container,"filter","blur("+_.ZH("cinematic_watch_css_filter_blur_strength",40)+"px)"))},lrK=function(D){if(D.ambientV2Container){var Y=D.playerApi.getVideoAspectRatio();
_.KC(D.container,{"aspect-ratio":""+Y,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.KC(D.ambientV2Container,{"aspect-ratio":""+Y,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+Jep(D)+", "+kQz(D)+")"});T5I()&&_.KC(D.ambientV2Container,"filter","blur("+_.ZH("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Xz.prototype.setFullscreen=function(D,Y){this.fullscreen=D;this.theater=!!Y;vAI(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),D=this.storyboardManager.currentStoryboard,UeI(this),D&&KXu(this,D)};
Xz.prototype.addEventListeners=function(){var D=this,Y=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(t){N59(D,t)}),R=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){ye9(D)});
this.addOnDisposeCallback(function(){D.storyboardManager.unsubscribeByKey(Y);D.storyboardManager.unsubscribeByKey(R)});
if(this.ambientV2Container){var Z=function(){lrK(D)};
this.playerApi.addEventListener("onVideoDataChange",Z);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoDataChange",Z)})}};
var ye9=function(D){if(!oAt(D)){var Y=D.storyboardManager.currentStoryboardSize;isNaN(Y.width)||isNaN(Y.height)||bEp(D,Number(Y.width)+sO(D)*3*2,Number(Y.height)+sO(D)*3*2)}},bEp=function(D,Y,R){D.backCanvas.element.width=Y;
D.backCanvas.element.height=R;D.frontCanvas.element.width=Y;D.frontCanvas.element.height=R},oAt=function(D){return D.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},N59=function(D,Y,R){R=R===void 0?!1:R;
var Z=D.frontCanvas.element.getAnimations()[0];Z?(Z.pause(),D.backCanvas.context.globalAlpha=Number(getComputedStyle(D.frontCanvas.element).opacity),D.frontCanvas.element.style.opacity="0",Z.finish()):D.backCanvas.context.globalAlpha=1;D.backCanvas.context.drawImage(D.frontCanvas.element,0,0,D.backCanvas.element.width,D.backCanvas.element.height);UeI(D);Y&&KXu(D,Y);Y=Y?D.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.ZH("cinematic_watch_fade_out_duration",500);Z=_.ZH("cinematic_watch_transition_frame_rate")/
1E3;var t={};Z&&(t={easing:"steps("+Math.round(Y*Z)+")"});(R===void 0?0:R)||D.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:Y,iterations:1},t));D.frontCanvas.element.style.opacity="1"},UeI=function(D){var Y=D.ambientLightThemeEnabled||D.ambientTheaterModeEnabled,R=D.ambientLightThemeEnabled||D.ambientFullscreenEnabled;
D.frontCanvas.context.fillStyle=D.theater&&Y||D.fullscreen&&R?"#000":"#0f0f0f";T5I()||(D.frontCanvas.context.filter="blur(0)");D.frontCanvas.context.fillRect(0,0,D.frontCanvas.element.width,D.frontCanvas.element.height)},KXu=function(D,Y){T5I()||(D.frontCanvas.context.filter="blur("+sO(D)+"px)");
D.frontCanvas.context.globalAlpha=D.fullscreen&&D.ambientFullscreenEnabled||D.theater&&D.ambientTheaterModeEnabled?_.ZH("cinematic_watch_effect_letterbox_opacity",.4):_.ZH("cinematic_watch_effect_opacity",.4);var R={offsetX:sO(D)*3,offsetY:sO(D)*3,theater:D.theater,fullscreen:D.fullscreen};oAt(D)&&(R.width=100,R.height=100);Y.drawToCanvas(D.frontCanvas.context,R);D.frontCanvas.context.globalAlpha=1},sO=function(D){var Y;
return(Y=D.cinematicContainerRenderer.config.blurStrength)!=null?Y:5},Jep=function(D){var Y,R;
if((D.fullscreen||D.theater)&&((Y=D.cinematicContainerRenderer.config)==null?0:(R=Y.watchFullscreenConfig)==null?0:R.colorSourceWidthMultiplier))return D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Z;return(Z=D.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Z:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier},kQz=function(D){var Y,R;
if((D.fullscreen||D.theater)&&((Y=D.cinematicContainerRenderer.config)==null?0:(R=Y.watchFullscreenConfig)==null?0:R.colorSourceHeightMultiplier))return D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Z;return(Z=D.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Z:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Xz.prototype.disposeInternal=function(){_.AE.prototype.disposeInternal.call(this);this.container.remove()};
Xz.prototype.clear=function(){N59(this,void 0,!0)};
Xz.prototype.pause=function(){this.storyboardManager.pause()};var hWT;hWT=_.fC(function(){var D,Y,R=!((Y=(D=document.createElement("canvas")).getContext)==null||!Y.call(D,"2d")),Z;D=!((Z=CSS)==null||!Z.supports("filter: blur(0)"));Z=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var t;return R&&D&&Z&&!((t=CSS)==null||!t.supports("aspect-ratio: 1 / 1"))});
_.uL=function(D,Y){_.If.call(this);this.container=D;this.playerApi=Y;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=LXb(this);this.update()};
_.n(_.uL,_.If);_.me0=function(D){var Y=document.documentElement.hasAttribute("dark");D.isDarkModeEnabled=Y;D.update()};
_.qp9=function(D,Y){D.settingEnabled=Y;D.update()};
_.uL.prototype.setFullscreen=function(D,Y){this.fullscreen=D;this.theater=!!Y;this.update()};
_.HEI=function(D,Y){D.cinematicContainerRenderer=Y;D.cinematicContainerRenderer&&(D.cinematicsVe=_.TP(D.isShorts()?227858:159022),_.jF(_.n8(),D.cinematicsVe),D.loggingClientData={watchCinematicContainerData:{presentationStyle:D.cinematicContainerRenderer.presentationStyle}});D.update()};
_.uL.prototype.isShorts=function(){var D,Y;return((D=this.cinematicContainerRenderer)==null?void 0:(Y=D.config)==null?void 0:Y.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.uL.prototype.isAllowed=function(){var D;if(D=hWT()){var Y,R,Z;D=((R=this.cinematicContainerRenderer)==null?void 0:R.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Z=this.cinematicContainerRenderer)==null||!Z.colorStore)||((Y=this.cinematicContainerRenderer)==null?void 0:Y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(D)if(_.f("web_cinematics_pausing")){var t,X;D=this.isDarkModeEnabled||!!((t=this.cinematicContainerRenderer)==
null?0:(X=t.config)==null?0:X.enableInLightTheme)}else{var M,W;t=!!((M=this.cinematicContainerRenderer)==null?0:(W=M.config)==null?0:W.enableInLightTheme)&&(_.JQ("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);D=this.isDarkModeEnabled||t}if(M=D){var z,I;M=!((I=(z=this.prefersReducedMotionQuery)==null?void 0:z.matches)!=null&&I)}return M};
_.xeb=function(D){(D=D.currentCinematicEffect)!=null&&(D=D.storyboardManager,D.paused=!1,Aet(D),D.update())};
_.uL.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var LXb=function(D){if(!_.f("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var Y=window.matchMedia("(prefers-reduced-motion: reduce)"),R=function(){D.update()};
Y.addListener(R);D.addOnDisposeCallback(function(){Y.removeListener(R)});
return Y}};
_.uL.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var D=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Xz(this.container,D,this.playerApi,this.isDarkModeEnabled),_.WB(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var Y=this.currentCinematicEffect;Y.cinematicContainerRenderer!==
D&&(Y.cinematicContainerRenderer=D,eWz(Y.storyboardManager,D),vAI(Y));D=_.nX();_.rC(0,194,!0);D.save();D=_.K2();this.cinematicsVe&&D&&_.E7(D,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(D=_.K2(),this.cinematicsVe&&D&&_.gC(D,[this.cinematicsVe],!1,this.loggingClientData),_.OG(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.YF.Object.defineProperties(_.uL.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var LHb;var mnE;_.Jj({_template:function(){if(mnE!==void 0)return mnE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=
D.content,R=Y.insertBefore;LHb===void 0&&(LHb=document.createElement("template"));var Z=LHb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return mnE=D},
is:"tp-yt-iron-pages",behaviors:[_.l_,_.gd],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var x2z;_.Pcb=function(){if(_.f("kevlar_home_skeleton")&&!x2z){var D=document.querySelector("#home-page-skeleton");D&&(_.KX("hgcr"),_.F_(D),x2z=!0)}};
x2z=!1;_.lw=new _.Dv("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var wqk,v9K,o9I,bzt,ydT,NF0,l3K,JdT,URu,K6E,mRb,Hz9,xRh,quI,hhT,L6K,BFt;_.rdb=function(D,Y,R){Y=Y===void 0?5:Y;if(Y!==0){var Z=typeof D==="function"?D():document.querySelector(D);Z?(R==null?0:R.enableSmartFocus)?_.EwU(Z):Z.focus():setTimeout(function(){_.rdb(D,Y-1,R)},500)}};
wqk=function(D){return String.raw.apply(String,[{raw:D}].concat(_.oK(_.UN.apply(1,arguments).map(function(Y){return Y instanceof Array?Y.join(""):Y}))))};
v9K=function(D){var Y=_.UN.apply(1,arguments),R=Y.length;if(!Array.isArray(D)||!Array.isArray(D.raw)||D.length!==D.raw.length||!_.ZMV&&D===D.raw||!(_.ZMV&&!_.tb4||_.rg(D))||R+1!==D.length)throw new TypeError("$");return new $R9(Object.freeze({strings:Object.freeze(D),args:Object.freeze(Y)}))};
o9I=function(D){return _.X1$(_.s2y(D&16777215))<.5};
bzt=function(D,Y,R){var Z=R.minimumRowsOfVideosBetweenSections===void 0?1:R.minimumRowsOfVideosBetweenSections;return D<(R.minimumRowsOfVideosAtStart===void 0?2:R.minimumRowsOfVideosAtStart)||Y!==null&&D-Y<=Z?!1:!0};
ydT=function(D,Y){var R=0,Z=0;D=_.a(D);for(var t=D.next();!t.done;t=D.next()){var X=t.value;if(X.richItemRenderer)X.richItemRenderer.rowIndex=Z,X.richItemRenderer.colIndex=R++,R===Y&&(R=0,Z++);else if(X.richGroupRenderer&&X.richGroupRenderer.numColumns!==void 0)X.richGroupRenderer.rowIndex=Z,X.richGroupRenderer.colIndex=R,R+=X.richGroupRenderer.numColumns,R===Y&&(R=0,Z++);else if(X.richSectionRenderer){var M=t=void 0;if(X=_.A((t=X)==null?void 0:(M=t.richSectionRenderer)==null?void 0:M.content,_.WkL))X.rowIndex=
Z++}}};
NF0=function(D,Y){var R=Y.contentElement;Y=Y.rendererToTagNameMap;if(R&&Y&&Y.size!==0){for(var Z=new Map,t=_.a(R.children),X=t.next();!X.done;X=t.next()){X=X.value;var M=X.tagName.toLowerCase(),W=Z.get(M);W||(W=[],Z.set(M,W));W.push(X)}if(Z.size!==0)for(t=Math.min(D.length,R.children.length),X=new Map,M=0;M<t;M++){W=Object.keys(D[M])[0];W=Y.get(W);if(!W)break;var z=X.get(W);z===void 0&&(z=0,X.set(W,z));var I=Z.get(W);if(!I||z>=I.length)break;X.set(W,z+1);W=I[z];z=R.children[M];z!==W&&(_.Omn=!0,_.cyo.set(W,
!0),R.insertBefore(W,z),_.cyo.delete(W),_.Omn=!1)}}};
l3K=function(D,Y,R,Z,t,X,M){Z=Z===void 0?{}:Z;if(!D||!D.length)return{orderedContent:[]};D=D.slice();var W=[],z=[];t=null;for(var I=0,F=function(c){z.sort(function(B,O){return O.skippedOnRow-B.skippedOnRow});
for(var Q,E=(Q=z.shift())==null?void 0:Q.content;E;)!E.richSectionRenderer&&c||W.push(E),Q=void 0,E=(Q=z.shift())==null?void 0:Q.content},G=void 0,V=void 0,e=new Set;D.length>0||z.length>0;){for(var r=[],l=Y;l>0;){var U=void 0,K=void 0,H=(K=z[0]&&z[0].skippedOnRow<I?(U=z.shift())==null?void 0:U.content:void 0)!=null?K:D.shift();
if(!H)break;if(H.richItemRenderer)U=H.richItemRenderer.targetId,K=void 0,U&&((K=M)==null?0:K.has(U))&&(K=M.get(U),!G||K&&K.timestamp>G.timestamp)&&(G=K,V&&e.add(V),V=U),r.push(H),l--;else if(H.richGroupRenderer&&H.richGroupRenderer.numColumns!==void 0)H.richGroupRenderer.numColumns<=l?(r.push(H),l-=H.richGroupRenderer.numColumns):l===Y&&H.richGroupRenderer.numColumns>Y?(r.push({richGroupRenderer:Object.assign({},H.richGroupRenderer,{numColumns:Y})}),l=0):z.push({content:H,skippedOnRow:I});else if(H.richSectionRenderer)if(bzt(I,
t,Z)&&l===Y){W.push(H);t=I;I++;continue}else z.push({content:H,skippedOnRow:I});else if(H.continuationItemRenderer){F(!0);W.push(H);l=0;break}if(l===0)W.push.apply(W,_.oK(r));else if(!R&&D.length===0){F(!1);W.push.apply(W,_.oK(r));l=0;break}}I++;G&&(W.push(G.content),I++);V=G=void 0}ydT(W,Y);X&&NF0(W,X);return{orderedContent:W,pinnedContentNotShownTargetIds:e}};
JdT=function(){return _.UN.apply(0,arguments).flat().filter(function(D){return D}).join(";")};
URu=function(){return v9K(k19,JdT.apply(null,_.oK(_.UN.apply(0,arguments))))};
K6E=function(D){switch(D){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
mRb=function(D,Y){if(Y){var R=_.Dl().getState().entities.flowStateEntity,Z=hhT(D),t=[Y];Z&&Z!==Y&&t.push(Z);var X=!0,M;if(R&&D.flowStateEntityKey&&((M=R[D.flowStateEntityKey])==null?void 0:M.primaryButtonDisabled)!==void 0){var W;X=!((W=R[D.flowStateEntityKey])==null||!W.primaryButtonDisabled)}L6K(D,Z!=null?Z:Y,t,X)}};
Hz9=function(D){return _.rm(_.Dl(),function(Y){return Y.entities.flowStateEntity},function(Y,R){if(D.flowStateEntityKey){var Z,t=Y==null?void 0:(Z=Y[D.flowStateEntityKey])==null?void 0:Z.currentStepId,X;
R=R==null?void 0:(X=R[D.flowStateEntityKey])==null?void 0:X.currentStepId;X=_.Dl().getState().talkToRecs;if(t&&t!==R){var M;Y=(Y==null?void 0:(M=Y[D.flowStateEntityKey])==null?void 0:M.stepIdStack)||Object.keys(X.stepStates);M=!quI(X==null?void 0:X.stepStates[t]);L6K(D,t,Y,M)}}})};
xRh=function(D){return _.rm(_.Dl(),_.q3u,function(Y){var R=hhT(D);if(R){var Z=Object.keys(Y.stepStates);Y=!quI(Y==null?void 0:Y.stepStates[R]);L6K(D,R,Z,Y)}})};
quI=function(D){var Y=Object.keys((D==null?void 0:D.selectionStates)||{}).reduce(function(X,M){return X||(D==null?void 0:D.selectionStates[M].isSelected)},!1),R,Z,t=!!(D==null?0:(R=D.userQuery)==null?0:(Z=R.userQuery)==null?0:Z.trim());
return Y||t};
hhT=function(D){if(D.flowStateEntityKey){var Y,R,Z=(Y=_.Dl().getState().entities.flowStateEntity)==null?void 0:(R=Y[D.flowStateEntityKey])==null?void 0:R.currentStepId;if(Z)return Z}};
L6K=function(D,Y,R,Z){_.Dl().dispatch(_.oP("flowStateEntity",D.flowStateEntityKey,{currentStepId:Y,stepIdStack:R,key:D.flowStateEntityKey,primaryButtonDisabled:Z}))};
_.Pwk=function(D,Y){return _.jC(D.entities,"youchatPendingResponseEntity",Y)};
_.Qdh=function(D){return function(Y){_.cE(_.oP("youchatPendingResponseEntity",D,{entityKey:D,isPendingResponse:Y}))}};
BFt=function(D){D==null||D.addEventListener("DOMLoaded",function(){D.goToAndPlay(D.totalFrames-48,!0)})};
_.d2=function(D){this.__isSoyCss=!0;this.css=wqk.apply(null,[D.strings].concat(_.oK(D.args)))};
_.d2.prototype.toString=function(){return this.css};
var $R9=function(){_.d2.apply(this,arguments)};
_.n($R9,_.d2);var k19=_.gY(["",""]);var pqt;var E9T;_.Jj({_template:function(){if(E9T!==void 0)return E9T;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
var Y=D.content,R=Y.insertBefore;pqt===void 0&&(pqt=document.createElement("template"));var Z=pqt;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return E9T=D},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var g99=new _.Dv("talkToRecsFlowRenderer");var dRI=new _.Dv("flowRootRenderer");var izh=new _.Dv("learningJourneyQuizViewModel");var Oz9=new _.Dv("chipsShelfViewModel");var cdk=new _.Dv("responsiveContainerConfiguration");var D2u=new _.Dv("horizontalShelfViewModel");_.Y2h=new _.Dv("engagementPanelSectionListRenderer");var RTE=new _.Dv("conversationResourceViewModel");var ZPI=function(){this.horizontal=!1},tME=function(D,Y){D.horizontal=Y};
ZPI.prototype.position=function(D,Y,R,Z){Z=Z===void 0?1:Z;D=this.delta(D)*Z+Y;Z=Math.max(Y,R);return D>=Math.min(Y,R)&&D<=Z?D:R};
ZPI.prototype.axis=function(D){D=this.direction(D);return D==="up"||D==="down"?"Y":"X"};var z1=function(D,Y,R){Y=Y===void 0?_.yA():Y;this.target=D;this.manager=Y;this.touchAction=R;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
z1.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(_.oK(this.events)));for(var D=_.a(this.events),Y=D.next();!Y.done;Y=D.next())this.listen(Y.value)}};
z1.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.oK(this.events)));for(var D=_.a(this.events),Y=D.next();!Y.done;Y=D.next())this.unlisten(Y.value)}};
z1.prototype.listen=function(D){this.eventMap[D]&&this.target.addEventListener(D,this.eventMap[D])};
z1.prototype.unlisten=function(D){this.eventMap[D]&&this.target.removeEventListener(D,this.eventMap[D])};var SK=function(){ZPI.apply(this,arguments)};
_.n(SK,ZPI);SK.prototype.direction=function(D){var Y=D.detail;D=Y.deltaY;Y=Y.deltaX;return D&&!this.horizontal?D>0?"down":"up":Y&&this.horizontal?Y>0?"right":"left":"none"};
SK.prototype.distance=function(D){return Math.abs(this.delta(D))};
SK.prototype.delta=function(D){var Y=this.direction(D),R=D.detail;D=R.deltaX;R=R.deltaY;return Y==="up"||Y==="down"?R||0:D||0};
SK.prototype.velocity=function(D){var Y=this.direction(D),R=D.detail;D=R.velocityX;R=R.velocityY;return Math.abs(Y==="up"||Y==="down"?R||0:D||0)};_.T1=function(D,Y,R,Z,t,X){t=t===void 0?new SK:t;X=X===void 0?_.yA():X;z1.call(this,Y,X,Z);var M=this;this.element=D;this.target=Y;this.config=R;this.input=t;this.manager=X;this.events=["panstart","panmove","panend"];this.onPanStart=function(){M.config.draggingClass&&M.element.classList.add(M.config.draggingClass);M.config.startAction&&M.config.startAction()};
this.onPanMove=function(W){var z=sLT(M,W);if(z){M.move(W,z);z.fade&&M.fade(W,z);var I=M.input.direction(W);z.moveAction&&z.moveAction(X0t(M,W,z),I)}};
this.onPanEnd=function(W){var z,I,F,G,V,e;return _.C(function(r){if(r.nextAddress==1){M.animationRequestId&&cancelAnimationFrame(M.animationRequestId);M.animationRequestId=void 0;z=sLT(M,W);if(!z)return r.return();I=z;F=I.triggerAction;G=I.fade;V=I.disableFinish;e=I.translateBack;var l=M.input.velocity(W),U=M.input.distance(W),K=M.threshold(z);return l>.3&&U>10||U>K?V?r.jumpTo(6):G?r.yield(urI(M,W),6):r.yield(awh(M,W,z),6):e?r.yield(M.translateBack(W),3):r.jumpTo(3)}r.nextAddress!=3&&F&&F();M.config.draggingClass&&
M.element.classList.remove(M.config.draggingClass);M.reset();_.V9(r)})};
D=Object.keys(R.triggers);this.directions=new Set(D);tME(this.input,this.directions.has("right")||this.directions.has("left"))};
_.n(_.T1,z1);_.T1.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var sLT=function(D,Y){Y=D.input.direction(Y);return D.config.triggers[Y]};
_.T1.prototype.move=function(D,Y){var R=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Z=R.input.axis(D),t=R.input.position(D,R.config.startPosition,Y.endPosition,Y.moveRatio||1);R.element.style.transform="translate"+Z+"("+t+"px)";R.animationRequestId=void 0}))};
var X0t=function(D,Y,R){var Z=R.moveRatio||1;R=Math.abs(D.config.startPosition-R.endPosition);return Math.min(D.input.distance(Y)*Z,R)/R};
_.T1.prototype.fade=function(D,Y){var R=Y.endOpacity;D=X0t(this,D,Y);D>0&&(this.element.style.opacity=""+(((R||0)-1)*D+1))};
_.T1.prototype.threshold=function(D){return D.threshold?D.threshold:Math.abs(D.endPosition-this.config.startPosition)/3};
var awh=function(D,Y,R){var Z,t,X,M,W,z,I;return _.C(function(F){if(F.nextAddress==1)return Z=D.input.delta(Y)+D.config.startPosition,t=D.input.axis(Y),X=R,M=X.endPosition,W=X.transitionEndPosition,I=(z=W)!=null?z:M,F.yield(D.element.animate([{transform:"translate"+t+"("+Z+"px)"},{transform:"translate"+t+"("+I+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+t+"("+I+"px)";_.V9(F)})};
_.T1.prototype.translateBack=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1){if(!Y.element.style.transform)return t.return();R=Y.input.axis(D);Z=Y.config.startPosition;return t.yield(Y.element.animate([{transform:Y.element.style.transform},{transform:"translate"+R+"("+Z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}Y.element.style.transform="translate"+R+"("+Z+"px)";_.V9(t)})};
var urI=function(D,Y){var R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return R=D.input.delta(Y)+D.config.startPosition,Z=D.input.axis(Y),t=R+70,X=D.element.style.opacity===""?1:D.element.style.opacity,M.yield(D.element.animate([{transform:"translate"+Z+"("+R+"px)",opacity:X},{transform:"translate"+Z+"("+t+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+Z+"("+t+"px)";D.element.style.opacity="0";_.V9(M)})};var jK=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;D.scrollRate=3;D.autoScrollAnimationStart=0;D.autoScrollPaused=!1;D.autoScrollRafId=0;return D};
_.n(jK,_.Aj);_.u=jK.prototype;_.u.created=function(){var D=this;this.boundAutoScrollHandler=function(Y){D.autoScroll(Y)}};
_.u.detached=function(){this.hostElement.removeEventListener("mouseout",_.jN(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.jN(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.jN(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.u.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.jN(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.jN(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.jN(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.jN(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.jN(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.jN(this,this.endAutoScroll)),this.endAutoScroll())};
_.u.autoScroll=function(D){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=D);var Y;if(Y=!this.autoScrollPaused&&this.scrollTarget)Y=this.scrollTarget,Y=Y.scrollHeight-Y.scrollTop!==Y.clientHeight;Y&&(Y=1E3/this.scrollRate,D-=this.autoScrollAnimationStart,D>Y&&(this.scrollTarget.scrollTop+=Math.ceil(D/Y),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.u.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.u.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
jK.prototype.autoScrollEnabledChanged=jK.prototype.autoScrollEnabledChanged;_.q([_.y(),_.x("design:type",Object)],jK.prototype,"scrollRate",void 0);_.q([_.y(),_.x("design:type",Object)],jK.prototype,"scrollTarget",void 0);_.q([_.y(),_.x("design:type",Boolean)],jK.prototype,"autoScrollEnabled",void 0);_.q([_.Gm("autoScrollEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jK.prototype,"autoScrollEnabledChanged",null);_.q([_.nr()],jK);_.MMb=[jK.prototype];var CcE;var Id=function(){var D=_.N.apply(this,arguments)||this;D.buttonUpdate=_.f("web_button_rework");D.dismissButtonOverrides=_.f("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;D.forceDarkTheme=!1;D.forceLightTheme=!1;D.dynamicTextHeight=94;D.hasOverflowButton=!1;D.isInfeedModernization=!1;return D};
_.n(Id,_.N);_.u=Id.prototype;_.u.computeUrlImg=function(D){if(D)return _.CB(D.thumbnails)};
_.u.getLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.u.getLogoClassName=function(D){return this.logoWithPadding(D)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.u.logoWithPadding=function(D){var Y,R;return(D=(Y=D.thumbnails)==null?void 0:(R=Y[0])==null?void 0:R.height)&&D%31===0?!0:!1};
_.u.sendImpressionEndpoints=function(D){D.impressionEndpoints&&_.zA(this.hostElement,D.impressionEndpoints)};
_.u.observeBasicPalette=function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.colorData)==null?void 0:Y.basicColorPaletteData;R?_.Jp(this.hostElement,R):_.Jp(this.hostElement,{})};
_.u.observeDataChanged=function(){var D;this.dynamicTextHeight=((D=this.data)==null?0:D.supplementalText)?74:94;var Y;this.hasSupplementalText=!((Y=this.data)==null||!Y.supplementalText);if(_.f("web_button_rework")){var R,Z,t,X;D=(R=this.data)==null?void 0:(Z=R.actionButton)==null?void 0:(t=Z.buttonRenderer)==null?void 0:(X=t.colorData)==null?void 0:X.basicColorPaletteData;var M,W,z;if(!((M=this.data)==null?0:(W=M.actionButton)==null?0:(z=W.buttonRenderer)==null?0:z.style)&&D){this.computeIsInfeedModernization(this.data)||
(D.borderColor=D.foregroundTitleColor);var I,F;this.set("data.actionButton.buttonRenderer",_.y7.unsafeClone((I=this.data)==null?void 0:(F=I.actionButton)==null?void 0:F.buttonRenderer))}}};
_.u.observeDataForCounterfactual=function(){if(_.f("kevlar_banner_cf_extra_logging")){var D;((D=this.data)==null?0:D.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.u.computeSupplementalStyle=function(){var D;if((D=this.data)!=null&&D.supplementalText){var Y,R,Z;if((Y=this.data)==null?0:(R=Y.colorData)==null?0:(Z=R.basicColorPaletteData)==null?0:Z.foregroundActivatedColor)return D=_.HG(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+D+"; --yt-endpoint-hover-color:"+D+"; --yt-endpoint-visited-color:"+D+"; --yt-formatted-string-bold-font-weight:700;"}};
_.u.computeForcedDarkTheme=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.actionButton)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.style,t,X,M;D=o9I(((t=this.data)==null?void 0:(X=t.colorData)==null?void 0:(M=X.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return Z&&D};
_.u.computeForcedLightTheme=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.actionButton)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.style,t,X,M;D=!o9I(((t=this.data)==null?void 0:(X=t.colorData)==null?void 0:(M=X.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return Z&&D};
_.u.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.u.computeHasTitle=function(D){return!!D.title};
_.u.computeTitleMaxFontSize=function(D){return this.computeHasOverflowButton(D)?28:64};
_.u.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.u.computeIsInfeedModernization=function(){var D,Y,R,Z,t=(D=this.data)==null?void 0:(Y=D.actionButton)==null?void 0:(R=Y.buttonRenderer)==null?void 0:(Z=R.colorData)==null?void 0:Z.basicColorPaletteData;return(t==null?void 0:t.backgroundColor)===452984831||(t==null?void 0:t.backgroundColor)===218103808};
Id.prototype.observeDataForCounterfactual=Id.prototype.observeDataForCounterfactual;Id.prototype.observeDataChanged=Id.prototype.observeDataChanged;Id.prototype.observeBasicPalette=Id.prototype.observeBasicPalette;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Id.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Id.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Id.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Id.prototype,"buttonUpdate",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Id.prototype,"hasSupplementalText",void 0);_.q([_.y(),_.x("design:type",Object)],Id.prototype,"dismissButtonOverrides",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Boolean)],Id.prototype,"hasTitle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.x("design:type",Object)],Id.prototype,"forceDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.x("design:type",Object)],Id.prototype,"forceLightTheme",void 0);_.q([_.y(),_.x("design:type",Object)],Id.prototype,"dynamicTextHeight",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Object)],Id.prototype,"hasOverflowButton",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.x("design:type",Object)],Id.prototype,"isInfeedModernization",void 0);_.q([_.Gm("data.colorData.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Id.prototype,"observeBasicPalette",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Id.prototype,"observeDataChanged",null);_.q([_.Gm("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Id.prototype,"observeDataForCounterfactual",null);_.q([_.h({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Id);
_.L(Id,"ytd-banner-promo-renderer",function(){if(CcE!==void 0)return CcE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return CcE=D},{mode:1});var Wju;var zTI;var S2T;var FZ=function(){return _.N.apply(this,arguments)||this};
_.n(FZ,_.N);_.q([_.y(),_.x("design:type",Object)],FZ.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.q([_.h({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],FZ);
_.L(FZ,"ytd-hashtag-grid-tile-renderer",function(){if(S2T!==void 0)return S2T;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return S2T=D},{mode:1});var G1=function(){return _.N.apply(this,arguments)||this};
_.n(G1,_.N);G1.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
G1.prototype.updateRichGridTrendingHashtagsVisibility=function(){var D,Y;if(((D=this.data)==null||!D.isExpanded)&&(Y=this.data)!=null&&Y.tiles){D=this.data.tiles.length;Y=D>this.richGridItemsPerRow?this.richGridItemsPerRow+1:D;var R=Math.ceil(D/Y);this.fullyVisibleRows=D%Y===1&&R===2?1:Math.min(R,2);this.isShowMoreVisible=this.fullyVisibleRows<R}};
G1.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
G1.prototype.updateRichGridTrendingHashtagsVisibility=G1.prototype.updateRichGridTrendingHashtagsVisibility;_.q([_.y(),_.x("design:type",Object)],G1.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Number)],G1.prototype,"fullyVisibleRows",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],G1.prototype,"isShowMoreVisible",void 0);_.q([_.y({selector:_.UM,value:0}),_.x("design:type",Number)],G1.prototype,"richGridItemsPerRow",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],G1.prototype,"ytdReduxBehavior",void 0);_.q([_.Gm("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G1.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.q([_.h({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],G1);
_.L(G1,"ytd-hashtag-grid-shelf-renderer",function(){if(zTI!==void 0)return zTI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return zTI=D},{mode:1});var T_9;var jLI;var VS=function(){var D=_.N.apply(this,arguments)||this;D.visibleVideos=[];D.hiddenVideos=[];D.modern=_.f("web_modern_buttons");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(VS,_.N);_.u=VS.prototype;_.u.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.u.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"}}}};
_.u.dataChanged=function(){var D=this;this.requestElementsPerRow();var Y,R;this.currentColorPalette=this.isDarkTheme?(Y=this.data)==null?void 0:Y.darkColorData:(R=this.data)==null?void 0:R.lightColorData;var Z;if((Z=this.currentColorPalette)==null?0:Z.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.cy(this,function(){D.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.u.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.u.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.u.computeIsFirstFeedItem=function(D){return D};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.u.getCurrentLogo=function(D,Y){if(D)return Y?D.darkLogoImage:D.lightLogoImage};
_.u.computeTitleStyle=function(D){var Y;if((Y=this.data)!=null&&Y.title&&D&&D.textPrimary!==void 0)return"color:"+_.HG(D.textPrimary)+";"};
_.u.computeSubtitleStyle=function(D){var Y;if((Y=this.data)!=null&&Y.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.HG(D.textSecondary)+";"};
_.u.computeDismissIconStyle=function(D){if(this.data&&this.data.dismissButton&&D&&D.textPrimary!==void 0)return"--yt-button-color:"+_.HG(D.textPrimary)+";"};
_.u.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.HG(D.textPrimary)+";--yt-spec-icon-active-other:"+_.HG(D.textPrimary)+";"};
_.u.computeBackgroundStyle=function(D){if(D&&this.data){var Y="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var R=_.CB((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);R&&(Y+='background-image:url("'+R+'");')}D.backgroundColor!==void 0&&(Y+="background-color:"+_.xI(D.backgroundColor)+";");return Y}};
_.u.computeButton=function(){var D,Y=Object.assign({},_.A((D=this.data)==null?void 0:D.showMoreButton,_.qv));if(this.modern&&Y){Y.style="STYLE_MONO_OUTLINE";var R;if(D=(R=this.currentColorPalette)==null?void 0:R.textPrimary)Y.colorData={basicColorPaletteData:{foregroundTitleColor:D,borderColor:D}}}return Y};
_.u.shouldShowBottomButton=function(D,Y){return!(D==null?0:D.header)&&!(D==null||!D.primaryButton)&&Y<3};
_.u.checkExpanded=function(D){this.isExpanded=D&&D.content?this.hiddenVideos.length===0:!0};
_.u.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.u.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.u.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.u.computeHasSectionHeader=function(D){return!!D.header};
_.u.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var D;if((D=this.data.primaryButton)==null?0:D.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 Y;((Y=this.data.dismissButton)==null?0:Y.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var R,Z;((R=this.data)==null?0:(Z=R.primaryButton)==null?0:Z.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.u.setVisibleVideos=function(D){if(this.data&&this.data.content)if(this.data.content.length){var Y=this.data.content.length;this.data.header?D?(this.visibleVideos=this.data.content.slice(0,Math.min(Y,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Y,this.slimItemsPerRow),Y)):(this.visibleVideos=this.data.content.slice(0,Math.min(Y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Y,this.elementsPerRow),Y)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(Y,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Y,this.elementsPerRow),Y)):(this.visibleVideos=this.data.content.slice(0,Math.min(Y,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(Y,this.elementsPerRow-1),Y))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.u.setHasMovieRenderer=function(){var D;if((D=this.data)!=null&&D.content){var Y;this.hasMovieRenderer=!!_.A((Y=this.data)==null?void 0:Y.content[0],_.pXz)}else this.hasMovieRenderer=!1};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
_.u.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var D=_.a(this.hiddenMediaRenderers),Y=D.next();!Y.done;Y=D.next())Y.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(D=_.aU(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&D.focus()}};
_.u.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.u.logoWithPadding=function(D){var Y,R,Z;return(D=(Y=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(R=Y.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.height)&&D%31===0?!0:!1};
_.u.onUpdateElementsPerRowAction=function(D,Y,R){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D);R&&this.slimItemsPerRow!==R&&(this.slimItemsPerRow=R)};
VS.prototype.slimItemsPerRowChanged=VS.prototype.slimItemsPerRowChanged;VS.prototype.elementsPerRowChanged=VS.prototype.elementsPerRowChanged;VS.prototype.dataChanged=VS.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],VS.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],VS.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],VS.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],VS.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],VS.prototype,"currentColorPalette",void 0);_.q([_.y(),_.x("design:type",Array)],VS.prototype,"visibleVideos",void 0);_.q([_.y(),_.x("design:type",Array)],VS.prototype,"hiddenVideos",void 0);
_.q([_.y(),_.x("design:type",Object)],VS.prototype,"primaryButton",void 0);_.q([_.y({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],VS.prototype,"elementsPerRow",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],VS.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],VS.prototype,"isExpanded",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],VS.prototype,"largeTitle",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],VS.prototype,"hasMovieRenderer",void 0);_.q([_.y(),_.x("design:type",Number)],VS.prototype,"slimItemsPerRow",void 0);_.q([_.y(),_.x("design:type",Boolean)],VS.prototype,"showLightVideoMetadata",void 0);_.q([_.y(),_.x("design:type",Boolean)],VS.prototype,"showDarkVideoMetadata",void 0);_.q([_.y(),_.x("design:type",Number)],VS.prototype,"videoMetadataColor",void 0);
_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],VS.prototype,"miniMode",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],VS.prototype,"isFirstFeedItem",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.x("design:type",Boolean)],VS.prototype,"hasSectionHeader",void 0);
_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],VS.prototype,"roundedContainer",void 0);_.q([_.eN("#visible-video-container ytd-rich-grid-media"),_.x("design:type",Array)],VS.prototype,"visibleMediaRenderers",void 0);_.q([_.eN("#hidden-video-container ytd-rich-grid-media"),_.x("design:type",Array)],VS.prototype,"hiddenMediaRenderers",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],VS.prototype,"modern",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VS.prototype,"dataChanged",null);_.q([_.Gm("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VS.prototype,"elementsPerRowChanged",null);_.q([_.Gm("slimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VS.prototype,"slimItemsPerRowChanged",null);
_.q([_.h({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],VS);
_.L(VS,"ytd-brand-video-shelf-renderer",function(){if(jLI!==void 0)return jLI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return jLI=D},{mode:1});var Iwk;var fz=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(fz,_.N);_.u=fz.prototype;_.u.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.u.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"}}}};
_.u.dataChanged=function(){this.requestElementsPerRow();var D,Y;this.currentColorPalette=this.isDarkTheme?(D=this.data)==null?void 0:D.darkColorData:(Y=this.data)==null?void 0:Y.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.u.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.u.computeIsFirstFeedItem=function(D){return D};
_.u.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(D),this.updateButtonPalette())};
_.u.shouldShowThumbnailInMetadata=function(D){return D<=1};
_.u.computeVideoMetadataColor=function(){if(this.data){var D;if((D=this.currentColorPalette)==null?0:D.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.u.computeTitleStyle=function(D){var Y;if((Y=this.data)!=null&&Y.title&&D&&D.textPrimary!==void 0)return"color:"+_.HG(D.textPrimary)+";"};
_.u.computeSubtitleStyle=function(D){var Y;if((Y=this.data)!=null&&Y.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.HG(D.textSecondary)+";"};
_.u.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.HG(D.textPrimary)+";--yt-spec-icon-active-other:"+_.HG(D.textPrimary)+";"};
_.u.computeBackgroundStyle=function(D){if(D&&this.data){var Y="";D.backgroundColor!==void 0&&(Y+="background-color:"+_.xI(D.backgroundColor)+";");return Y}};
_.u.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.u.updateButtonPalette=function(){if(this.data){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer){var Y;if((Y=this.currentColorPalette)==null?0:Y.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var R;((R=this.currentColorPalette)==null?0:R.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)})}}};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
_.u.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.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")};
_.u.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
fz.prototype.elementsPerRowChanged=fz.prototype.elementsPerRowChanged;fz.prototype.dataChanged=fz.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],fz.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],fz.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],fz.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fz.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],fz.prototype,"currentColorPalette",void 0);_.q([_.y(),_.x("design:type",Object)],fz.prototype,"primaryButton",void 0);
_.q([_.y({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],fz.prototype,"elementsPerRow",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],fz.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],fz.prototype,"titleSize",void 0);_.q([_.y(),_.x("design:type",Number)],fz.prototype,"videoMetadataColor",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],fz.prototype,"miniMode",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],fz.prototype,"isFirstFeedItem",void 0);_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],fz.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Boolean)],fz.prototype,"hasOverflowButton",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fz.prototype,"dataChanged",null);_.q([_.Gm("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fz.prototype,"elementsPerRowChanged",null);_.q([_.h({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],fz);
_.L(fz,"ytd-brand-video-singleton-renderer",function(){if(Iwk!==void 0)return Iwk;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Iwk=D},{mode:_.zD("kevlar_poly_si_batch_j070")?1:2});var FjI;var Gdu=_.RT(function(D){var Y=D.data;return _.S(_.Rt,{data:function(){return Y().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(Y().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var R=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":R=88;break a;default:R=88}return R},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return Y().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"oj"),fwI=_.RT(function(D){var Y=D.metadataRow;
var R=D.delimiter;return _.S(_.G6,{each:function(){return Y().textParts||[]},
keyBy:"INDEX"},function(Z,t){return _.S(_.c_,null,_.S(_.y_,{text:Z,noWrap:!0,userInput:!0}),_.S(VMk,{delimiter:R,max:function(){return Y().textParts.length},
index:t}))})},"pj"),VMk=_.RT(function(D){var Y=D.delimiter;
var R=D.max;var Z=D.index;return _.S(_.T,{cond:function(){return(Y==null?void 0:Y())&&R()-1>Z()},
then:function(){return _.S("span",null,Y)}})},"qj"),eTE=_.RT(function(D){var Y=D.data;
D={};return _.S("yt-profile-page-header-information-view-model",{class:_.e7("profile-page-header-information-view-model-wiz",(D["profile-page-header-information-view-model-wiz--mobile"]=!1,D))},_.S(_.T,{cond:function(){return Y().onTap},
then:function(){return _.S(_.PK,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.HL(Y().onTap)}},_.S(_.vK,{data:function(){return Y().thumbnail}},{profilePageHeaderThumbnailViewModel:Gdu}))},
else:function(){return _.S("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.S(_.vK,{data:function(){return Y().thumbnail}},{profilePageHeaderThumbnailViewModel:Gdu}))}}),_.S("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.S(_.T,{cond:function(){return Y().onTap},
then:function(){return _.S(_.vK,{data:function(){return Y().title}},{profilePageHeaderTitleViewModel:function(R){var Z=R.data;
return _.S(_.PK,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.HL(Z().onTap)}},_.S(_.y_,{text:function(){return Z().title}}))}})},
else:function(){return _.S(_.vK,{data:function(){return Y().title}},{profilePageHeaderTitleViewModel:function(R){var Z=R.data;
return _.S(_.y_,{text:function(){return Z().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.S(_.vK,{data:function(){return Y().metadata}},{profilePageHeaderMetadataViewModel:function(R){var Z=R.data;
return _.S(_.T,{cond:function(){return Z().metadataRows},
then:function(t){return _.S("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.S(_.G6,{each:t,keyBy:"INDEX"},function(X,M){return _.S(_.c_,null,_.S(fwI,{metadataRow:X,delimiter:" \u2022 "}),_.S(VMk,{delimiter:" \u2022 ",max:function(){return t().length},
index:M}))}))}})}})))},"rj");
eTE.idomCompat=!0;_.at(eTE,"yt-profile-page-header-information-view-model",{props:{data:_.cs}});var eK=function(){return _.N.apply(this,arguments)||this};
_.n(eK,_.N);eK.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eK.prototype,"data",void 0);_.q([_.h({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],eK);
_.L(eK,"ytd-effect-pivot-header-view-model",function(){if(FjI!==void 0)return FjI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return FjI=
D},{mode:1});var AL9;var Ad=function(){return _.N.apply(this,arguments)||this};
_.n(Ad,_.N);Ad.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ad.prototype,"data",void 0);_.q([_.h({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Ad);
_.L(Ad,"ytd-source-pivot-header-renderer",function(){if(AL9!==void 0)return AL9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return AL9=D},{mode:1});_.neh=_.RT(function(D){var Y=D.data;var R=function(){var Z;return _.LH((Z=Y())==null?void 0:Z.rendererContext)};
D={};return _.S("content-list-item-view-model",{el:_.tp(_.mp(function(){return Y().rendererContext})),
class:_.e7("ytContentListItemViewModelHost",(D.ytContentListItemViewModelTappable=R,D)),role:function(){return R()?"listitem":void 0},
tabindex:function(){return R()?0:void 0}},_.S("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.S("div",{class:"ytContentListItemViewModelImageContainer"},_.S(_.T,{cond:function(){return Y().image},
then:function(Z){return _.S(_.Rt,{data:Z,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.S(_.vK,{data:function(){var Z;
return(Z=Y())==null?void 0:Z.avatar}},{avatarViewModel:_.Jz})),_.S("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.S("div",{class:_.e7("ytContentListItemViewModelTitle",function(){a:{switch(Y().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var Z="ytContentListItemViewModelProminentTitle";
break a}Z=void 0}return Z})},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",{class:"ytContentListItemViewModelMetadata"},_.S(_.vK,{data:function(){return Y().metadata}},{contentMetadataViewModel:function(Z){return _.S(_.un,{data:Z.data,
layout:1})}})))),_.S("div",{class:"ytContentListItemViewModelActionButton"},_.S(_.vK,{data:function(){var Z;
return(Z=Y())==null?void 0:Z.actionButton}},{buttonViewModel:_.TV,
toggleButtonViewModel:_.JV})))},"sj");_.at(_.RT(function(D){var Y=function(){return D.data().background},R=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},Z=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.S("yt-card-view-model",{class:_.e7("ytCardViewModelHost",D.className)},_.S(_.a4,{contentId:function(){return D.data().contentId}},function(){return _.S("div",{class:_.e7("ytCardViewModelCardViewModelInner",function(){return K6E(D.data().cardStyle)})},_.S(_.vK,{data:Y},{cinematicContainerViewModel:function(t){return _.S(_.XqE,{data:t.data})}}),_.S("div",{class:"ytCardViewModelContentWrapper"},_.S(_.T,{cond:function(){return!R()},
then:function(){var t={};return _.S("div",{class:"ytCardViewModelTopContent"},_.S(_.vK,{data:function(){return D.data().topContent}},{contentListItemViewModel:function(X){return _.S(_.neh,{data:X.data})}}),_.S("div",{class:_.e7("ytCardViewModelInlineTrailingAction",(t.ytCardViewModelInlineCenterTrailingAction=Z,t))},_.S(_.vK,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(X){return _.S(_.TV,{data:X.data})}})))}}),_.S("div",{class:"ytCardViewModelBodyContent"},_.S(_.vK,
{data:function(){return D.data().bodyContent}},{contentListItemViewModel:function(t){return _.S(_.neh,{data:t.data})}}))),_.S(_.T,{cond:function(){return R()},
then:function(){return _.S("div",{class:"ytCardViewModelOverlayTrailingAction"},_.S(_.vK,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data})}}))}}))}))},"tj"),"yt-card-view-model",{props:{data:_.cs,
className:_.cs}});_.at(_.RT(function(D){var Y=function(){return _.A(D.data().flowRoot,dRI)};
_.$s(function(){var R=Y(),Z=function(){},t=function(){};
if(R){var X,M,W,z=((W=_.A((X=Y())==null?void 0:(M=X.steps)==null?void 0:M[0],_.hrK))==null?void 0:W.stepId)||"";mRb(R,z);Z=Hz9(R);t=xRh(R)}_.w2(function(){var I=Y();I&&_.Dl().dispatch(_.oP("flowStateEntity",I.flowStateEntityKey));Z();Z=function(){};
t();t=function(){}})});
return _.S("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.S(_.a4,{contentId:function(){return D.data().contentId}},function(){return _.S("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.S(_.T,{cond:Y,
then:function(R){return _.S(_.Ubh,{data:R})}}))}))},"uj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.cs}});_.at(_.RT(function(){return _.S("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.S("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.S("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.S(_.AN9,null)),_.S(_.I9E,{data:{rows:1},isExploreHub:!0}))},"vj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.at(_.RT(function(D){var Y=D.data;var R=D.standardUnitMinWidth;D=_.a((0,_.f91)(Y));var Z=D.next().value,t=D.next().value,X=function(){var W,z=(W=Z())==null?void 0:W.contents;return z==null||z.length===0},M=function(){t(Object.assign({},Z(),{contents:[]}))};
return _.S("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.tp(_.Zq({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var W=_.A(Y().chipsShelf,Oz9);if(W!=null&&W!=null&&W.autoselectChipOnVisible){var z,I,F=_.A(W==null?void 0:(z=W.contents)==null?void 0:z[(I=W.autoselectedChipIndex)!=null?I:0],_.Bx);F&&F.tapCommand&&_.BL(F.tapCommand)}}}))},_.S(_.a4,{contentId:function(){return Y().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.S("div",null,_.S("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.S(_.vK,{data:function(){return Y().header}},{sectionHeaderViewModel:function(W){return _.S(_.Sx,{data:W.data,
disableHorizontalPadding:!0})}})),_.S("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.S(_.vK,{data:function(){return Y().chipsShelf}},{chipsShelfViewModel:function(W){return _.S(_.Uf,{data:W.data,
callback:M,enableSingleChipSelection:!0})}})),_.S("div",null,_.S(_.T,{cond:X,
then:function(){return _.S("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.S(_.I9E,{data:{rows:1},isExploreHub:!0}))}}),_.S(_.vK,{data:function(){var W;
return(W=Z())==null?void 0:W.contents}},{richShelfRenderer:function(W){return _.S(_.ADz,{data:W.data,
isInnerShelf:!0,standardUnitMinWidth:R})}})))}))},"wj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.cs,
standardUnitMinWidth:_.cs}});var nz=function(){return _.N.apply(this,arguments)||this};
_.n(nz,_.N);
nz.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",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}}};
nz.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.q([_.v(_.mb),_.x("design:type",Object)],nz.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],nz.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nz.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Number)],nz.prototype,"standardUnitMinWidth",void 0);_.q([_.h({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],nz);
_.L(nz,"ytd-rich-section-renderer",function(){if(T_9!==void 0)return T_9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return T_9=D},{mode:_.zD("kevlar_poly_si_batch_j029")?
1:2});_.at(_.R2z,"yt-profile-identity-info-view-model",{props:{data:_.cs,hideDivider:_.cs,isChannelInfoCard:_.cs}});_.at(_.TFz,"yt-page-header-view-model",{props:{data:_.cs,noPadding:_.cs,enableBanner:_.cs,cinematicContainerTopbarOffset:_.cs,allowCinematicContainerOverflow:_.cs,displayAsSidebar:_.cs,displayAsPanel:_.cs,alwaysUseMediumTextDescription:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=function(){var t;return(t=Y().numColumns)!=null?t:2},Z=function(){return R()>1?3:2};
D={};return _.S("ytd-rich-grid-group",{class:_.e7("ytdRichGridGroupHost",(D.ytdRichGridGroupHostFirstColumn=function(){return Y().colIndex===0},D)),
style:_.Ap({"--ytd-rich-grid-group-num-columns":R,"--ytd-rich-grid-items-per-group":Z})},_.S("div",{class:"ytdRichGridGroupContents"},_.S(_.vK,{data:function(){var t;return(t=Y().contents)==null?void 0:t.slice(0,Z())}},{richItemRenderer:function(t){return _.S(_.fRE,{data:t.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"xj"),"ytd-rich-grid-group",{props:{data:_.cs}});var rF=function(){var D=_.N.apply(this,arguments)||this;D.resizeOnObserverInit=!1;D.isInlinePreviewDisabled=_.f("web_disable_inline_preview");D.disableStickyFilterBar=!1;D.transparentBackgroundChipsBar=!1;D.hideChipsBar=!1;D.isWatchDefaultLayout=!0;D.continuationShowButton=!1;D.rowReducedHorizontalMargin=!1;D.useCompactList=!1;D.manualDownloadsPresent=!1;D.smartDownloadsPresent=!1;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;
D.elementsPerRow=4;D.typographyBump=!1;D.showGnomeContents=!1;D.showExploreHubContents=!1;D.slimItemsPerRow=1;D.pageLoadingFromNavigation=!1;D.loggingRefactor=_.f("kevlar_rich_grid_logging_fix");D.resizeObserver=null;D.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"};
D.rendererToTagNameMap=new Map(Object.entries(D.contentMapping()).map(function(Y){var R=_.a(Y);Y=R.next().value;R=R.next().value;return[Y,R.component]}));
D.insertedContent=new Map;return D};
_.n(rF,_.N);_.u=rF.prototype;_.u.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var D=_.a(_.aU(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Y=D.next();!Y.done;Y=D.next())Y.value.useCompactList=this.useCompactList};
_.u.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var D=_.a(_.aU(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.sizing=this.sizing,Y.typographyBump=this.typographyBump};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.u.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]]"}}}};
_.u.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}}};
_.u.attached=function(){document.addEventListener("yt-page-type-changed",_.jN(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21770_throttledOnResize=new _.gq(this.resizeObserved,_.ZH("rich_grid_resize_delay_ms",50),this)};
_.u.detached=function(){var D;(D=this.resizeObserver)==null||D.disconnect();document.removeEventListener("yt-page-type-changed",_.jN(this,this.onPageChange))};
_.u.insertRichSection=function(D){var Y=D.richItemTargetId;D=D.richSectionRendererToInsert;Y&&D&&(this.insertedContent.set(Y,{content:D,timestamp:Date.now()}),this.reflowContent())};
_.u.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.u.computeIsInlinePreviewEnabled=function(D,Y,R){return _.f("web_disable_inline_preview")?!1:!R&&_.vwK({miniplayerIsActive:D,miniplayerPlaybackState:Y})};
_.u.computeSizing=function(){var D=_.yYU(this.data);if(D||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return D?this.useCompactList?"COMPACT":D:this.miniMode?"COMPACT":_.f("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.u.updateItemMinAndMaxWidth=function(){var D=_.ZH("rich_grid_max_item_width",500);D>0&&_.SN(this.hostElement,{"--ytd-rich-grid-item-max-width":D+"px"});var Y;D=this.getRichItemMinWidth((Y=this.hostElement)==null?void 0:Y.clientWidth);D>0&&_.SN(this.hostElement,{"--ytd-rich-grid-item-min-width":D+"px"})};
_.u.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.u.resizeObserved=function(){_.WC(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.u.navigateBackToHome=function(){_.f("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var D=_.DH().resolve(_.Z4).isOnWatch(),Y,R=((Y=_.fn(location.pathname))==null?void 0:Y.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(R)||D)&&this.gnomeContents&&_.f("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);D&&this.exploreHubContents&&_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Dl().dispatch(_.u0({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.u.onPageChange=function(){var D=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.f("disable_chip_select_on_nav")||_.WC(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.yc.addJob(function(){D.pageLoadingFromNavigation=!1;_.f("disable_chip_select_on_nav")&&_.f("h5_reset_cache_and_filter_before_update_masthead")&&D.resetCacheAndIsFilteredFeed();D.setMasthead();D.maybeSetBigYoodle();D.forceRefreshAndLog();D.terminateVideoPreview();_.f("web_hide_gnome_until_user_navigates_back_to_home")&&
(D.dataChanged(),_.cy(D,function(){if(D.showGnomeContents){var Y=Array.from(_.aU(D.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Z){Z=_.aU(Z).querySelector("ytd-rich-shelf-renderer");return!!Z&&Z.isGnomeShelf()});
if(Y){Y=Y.offsetTop-D.contentsElement.offsetTop;var R=_.DH().resolve(_.Z4).getCurrentPage();R&&R.getPageScrollingElement().scrollTo({top:Y,behavior:"smooth"})}}}));
_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&(D.dataChanged(),_.cy(D,function(){if(D.showExploreHubContents&&!_.f("web_explore_hub_no_scroll")){var Y=Array.from(_.aU(D.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Z){return!!Z.querySelector("ytd-talk-to-recs-flow-renderer")});
if(Y){Y=Y.offsetTop-D.contentsElement.offsetTop;var R=_.DH().resolve(_.Z4).getCurrentPage();R&&R.getPageScrollingElement().scrollTo({top:Y,behavior:"smooth"})}}}))},8)):((_.f("web_hide_gnome_until_user_navigates_back_to_home")||_.f("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.u.dataChanged=function(){var D=this;_.WC(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.cy(this,function(){D.updateRichItemGridPositions();D.contentsElement&&_.SN(D.hostElement,{"--ytd-rich-grid-content-offset-top":D.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.u.initResizeObserver=function(){var D=this;if(window.ResizeObserver){var Y;(Y=this.resizeObserver)==null||Y.disconnect();var R=!1;this.resizeObserver=new ResizeObserver(function(){if(R){var Z;(Z=D.resizeObserver)==null||Z.disconnect();var t;(t=D.JSC$21770_throttledOnResize)==null||t.fire();requestAnimationFrame(function(){var M;(M=D.JSC$21770_throttledOnResize)==null||M.fire();D.initResizeObserver()})}else if(R=!0,D.resizeOnObserverInit){var X;
(X=D.JSC$21770_throttledOnResize)==null||X.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.u.contentLengthChanged=function(){if(_.f("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.WC(this.hostElement,"ytd-rich-item-index-update-action")};
_.u.updateElementsPerRow=function(){_.WC(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.u0({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.u0({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.u.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.u.onRichShelfRendererCollapse=function(D){if(this.shownItems){var Y=D.detail;D=this.shownItems.findIndex(function(Z){var t,X;return((X=_.A(Z==null?void 0:(t=Z.richSectionRenderer)==null?void 0:t.content,_.WkL))==null?void 0:X.trackingParams)===Y});
var R=D+1;D<0||R>=this.contentsElement.children.length||!this.shownItems[R].richItemRenderer||this.contentsElement.children[R].scrollIntoView({behavior:"smooth",block:"start"})}};
_.u.onSoftReloadPage=function(){this.scrollUpToTop()};
_.u.handleRerenderDownloadsData=function(){_.f("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.u.handlePlaylistRemoveVideosAction=function(D){var Y;if(((Y=_.A(D,_.bgU))==null?0:Y.setVideoIds)&&this.data&&this.data.contents){D=_.A(D,_.bgU).setVideoIds;for(Y=this.data.contents.length-1;Y>=0;){var R=_.A(this.data.contents[Y],_.Nv);(R=R&&_.A(R.content,_.mM))&&R.setVideoId&&D.includes(R.setVideoId)&&this.splice("data.contents",Y,1);Y--}this.updateIndices()}};
_.u.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".richItemRenderer.index",_.i0(String(D+1)))};
_.u.hasTopRowInlinePlayableVideoWithEndorsement=function(D){var Y;return!((Y=D.slice(0,this.getItemsPerRow()))==null||!Y.some(function(R){var Z;R=_.A(R==null?void 0:(Z=R.richItemRenderer)==null?void 0:Z.content,_.xG);var t;return(R==null?void 0:R.inlinePlaybackEndpoint)&&(R==null?void 0:(t=R.thumbnailOverlays)==null?void 0:t.some(function(X){return X.thumbnailOverlayEndorsementRenderer}))}))};
_.u.refreshGridLayoutNew=function(D,Y,R,Z){var t=Z.postsPerRow;var X=Z.slimItemsPerRow;var M=Z.gameCardsPerRow;Z=Z.miniGameCardsPerRow;var W;if((W=this.data)==null||!W.contents||!this.containerWidth)return!1;var z;if((z=this.data.responsiveContainerConfiguration)==null?0:z.responsiveSize){var I=_.XeU(this.data.responsiveContainerConfiguration,this.containerWidth),F;W=_.pH(Object.assign({},I,{standardUnitMinWidth:(F=this.data)==null?void 0:F.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&I.isCompactList)}else W=_.pH({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(I=this.data)==null?void 0:I.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=W.typographyBump;F=!1;if(D||this.elementsPerRow!==W.numItems||this.postsPerRow!==t||this.slimItemsPerRow!==X||this.gameCardsPerRow!==
M||this.miniGameCardsPerRow!==Z||this.gutter!==W.gutter)F=this.elementsPerRow!==W.numItems,this.elementsPerRow=W.numItems,this.postsPerRow=t,this.slimItemsPerRow=X,this.gameCardsPerRow=M,this.miniGameCardsPerRow=Z,this.gutter=W.gutter,this.itemWidth=W.itemWidth,this.reflowContent(Y),_.SN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.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(R);this.ytdReduxBehavior.dispatch(_.u0({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:W.maxContainerWidth}));return F};
_.u.refreshGridLayout=function(D,Y){var R,Z=(R=this.hostElement)==null?void 0:R.clientWidth;this.containerWidth=this.adjustRichGridWidth(Z,!0);var t;if((t=this.data)==null||!t.contents||!this.containerWidth)return D&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.f("rg_pending_reflow_ks")&&(D=!0,this.pendingForceReflow=!1);R=this.getRichItemMinWidth(Z);var X=this.isShortsPanel?146:194,M=this.getMiniGameCardMinWidth(),W=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
Z=R=this.calcElementsPerRow(R,W);(t=R<=3&&this.miniModeAllowed())&&(R=this.calcElementsPerRow(240,4));var z=this.calcMaxSlimElementsPerRow(R,W,this.isDefaultGrid);W=this.calcElementsPerRow(X,z);var I=this.calcElementsPerRow(this.isCompactGrid?X:154,z);X=this.calcElementsPerRow(this.isCompactGrid?X:M,z);M=!1;if(this.sizing)return this.refreshGridLayoutNew(D,Y,t,{postsPerRow:Z,slimItemsPerRow:W,gameCardsPerRow:I,miniGameCardsPerRow:X});if(D||this.elementsPerRow!==R||this.postsPerRow!==Z||this.slimItemsPerRow!==
W||this.gameCardsPerRow!==I||this.miniGameCardsPerRow!==X)M=this.elementsPerRow!==R,this.elementsPerRow=R,this.postsPerRow=Z,this.slimItemsPerRow=W,this.gameCardsPerRow=I,this.miniGameCardsPerRow=X,this.reflowContent(Y),this.updateElementsPerRow(),_.SN(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)&&_.SN(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(t);_.WC(this.hostElement,"yt-rich-grid-layout-refreshed");return M};
_.u.getRichItemMinWidth=function(D){var Y=_.ZH("rich_grid_min_item_width",310);if(!_.f("kevlar_disable_min_width_override")){var R,Z;Y=(Z=(R=this.data)==null?void 0:R.minItemWidth)!=null?Z:Y}return Y+_.nDU(D)};
_.u.calcMaxSlimElementsPerRow=function(D,Y,R){return(R===void 0?0:R)?D===1?2:D%2===0?_.f("web_shorts_2_by_3_reduce_items_per_row")&&D>=4?D/2*3-1:D/2*3:_.f("web_shorts_2_by_3_reduce_items_per_row")&&D>=3?D+1:D+2:Y*2};
_.u.adjustRichGridWidth=function(D,Y){var R=_.f("disable_rich_grid_guide_compensation");if(!this.isWatch&&!R){R=_.DH().resolve(_.cD(_.Q3));var Z=R==null?void 0:R.guideElement;if(!(!R||R.getData()||Z!=null&&Z.opened||R.getMiniGuideVisible()))if(R.canFitPersistentGuide(D)&&R.getGuideExpandsAutomatically()){var t,X,M=Number((t=window.getComputedStyle(this.hostElement))==null?void 0:(X=t.getPropertyValue("--app-drawer-width"))==null?void 0:X.replace("px",""));D-=M||0}else if(R.canFitMiniGuide(D)){var W;
t=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(W=M.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:W.replace("px",""));D-=t||0}}D>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(D-=Y?32:48));return D};
_.u.calcElementsPerRow=function(D,Y){var R=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Z=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((R+Z)/(D+Z))||1,Y)};
_.u.reflowContent=function(D){var Y=this;if(!this.isReflowing){this.isReflowing=!0;var R,Z,t=!!((R=this.data)==null?0:(Z=R.contents)==null?0:Z.some(function(e){return _.A(e,_.Y5)}));
R=this.getItemsPerRow();var X;Z=(X=this.data)==null?void 0:X.reflowOptions;D&&(_.KX("rgr_s"),_.cy(this,function(){_.KX("rgr_nrf")}));
D={};(X=_.aU(this.hostElement).querySelector("#contents"))&&(D={contentElement:X,rendererToTagNameMap:this.rendererToTagNameMap});X=(X=this.data.contents)?X.slice():[];var M=(_.f("web_hide_gnome_behind_feed_filter_chip")||_.f("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,W=_.f("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,z=-1,I=-1;if(this.isHomePage&&W){for(W=0;W<X.length;W++){var F=void 0,G=void 0;_.A((F=X[W])==null?void 0:
(G=F.richSectionRenderer)==null?void 0:G.content,g99)&&(I=W)}I>-1&&(this.exploreHubContents=X.splice(I,1))}if(this.isHomePage&&M){for(I=0;I<X.length;I++)G=F=void 0,(W=_.A((F=X[I])==null?void 0:(G=F.richSectionRenderer)==null?void 0:G.content,_.WkL))&&M&&(G=F=void 0,W=_.A((F=W)==null?void 0:(G=F.contents)==null?void 0:G[0],_.Nv),F=void 0,_.A((F=W)==null?void 0:F.content,_.Wvz)&&(z=I));z>-1&&(this.gnomeContents=X.splice(z,1))}t=l3K(X,R,t,Z,this.getRichGridStyle(),D,this.insertedContent);var V=t.orderedContent;
if(t=t.pinnedContentNotShownTargetIds)for(t=_.a(t),R=t.next();!R.done;R=t.next())this.insertedContent.delete(R.value);t=function(){Y.shownItems=V;Y.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(V),_.cy(this,t)):t()}};
_.u.getFirstRowItems=function(D){for(var Y=[],R=0;R<D.length;R++){var Z=void 0,t=void 0,X=void 0,M=void 0,W=void 0,z=void 0;if(((Z=D[R])==null?void 0:(t=Z.richItemRenderer)==null?void 0:t.rowIndex)===0||((X=D[R])==null?void 0:(M=X.richGroupRenderer)==null?void 0:M.rowIndex)===0||((W=D[R])==null?void 0:(z=W.richSectionRenderer)==null?void 0:z.rowIndex)===0)Y.push(D[R]);else break}return Y};
_.u.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.u.resetInsertedContentIfNeeded=function(){(_.f("web_explore_hub_on_hover")||_.f("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.u.handleChipCloudChipSelectAction=function(D,Y){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.f("web_hide_gnome_behind_feed_filter_chip")&&(Y?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.u.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.f("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.u.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.f("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.u.terminateVideoPreview=function(){_.WC(this.hostElement,"yt-terminate-video-preview-action")};
_.u.updateRichItemGridPositions=function(){var D={gridData:{gridColumnCount:this.elementsPerRow}},Y;if((Y=this.data)==null?0:Y.trackingParams)this.loggingRefactor?_.n8().stateChanged(this.data.trackingParams,D):(Y=_.K2())&&_.O7(Y,_.oT(this.data.trackingParams),D);_.WC(this.hostElement,"ytd-rich-item-index-update-action")};
_.u.miniModeAllowed=function(){return this.isChannelPage};
_.u.getMiniGameCardMinWidth=function(){return 154};
_.u.updateMiniMode=function(D){this.miniMode=this.miniModeAllowed()&&D;this.ytdReduxBehavior.dispatch(_.u0({type:"SET_RICH_GRID_MINI_MODE",payload:D}))};
_.u.isCurrentPage=function(){return location.pathname===this.pagePath};
_.u.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var D=_.DH().resolve(_.Z4).getCurrentPage();D&&D.setScrollTop(0)}};
_.u.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.u.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.u.maybeSetBigYoodle=function(){var D,Y=(D=this.data)==null?void 0:D.bigYoodle;this.bigYoodleData!==Y&&(this.bigYoodleData=Y)};
_.u.setMasthead=function(){var D;((D=this.data)==null?0:D.masthead)?this.mastheadData=this.data.masthead:_.f("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.u.getRichGridStyle=function(){var D,Y;return(Y=(D=this.data)==null?void 0:D.style)!=null?Y:"RICH_GRID_STYLE_UNKNOWN"};
_.u.onIsShortsGridChange=function(){var D=this.ytdReduxBehavior,Y=D.dispatch,R=this.getRichGridStyle();Y.call(D,_.u0({type:"SET_RICH_GRID_STYLE",payload:R}))};
_.YF.Object.defineProperties(rF.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var D=_.DH().resolve(_.Z4).getCurrentPage(),Y,R,Z;return(((Y=this.data)==null?void 0:Y.targetId)==="browse-feedFEsfv_audio_pivot"||_.f("web_enable_channel_pivot_panel")&&((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_channel_pivot"||_.f("web_enable_effect_pivot_panel")&&((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_effect_pivot")&&(D==null?void 0:D.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.f("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 D;return!((D=this.data)==null?0:D.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.DH().resolve(_.Z4).getCurrentPage())==null?void 0:D.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.DH().resolve(_.Z4).getCurrentPage())==null?void 0:D.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"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var D;return this.hideChipsBar||(((D=this.data)==null?void 0:D.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.f("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"&&!_.f("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?0:D.enableContentSpecificAspectRatio)||((Y=this.data)==null?0:(R=Y.responsiveContainerConfiguration)==null?0:R.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.ZH("web_continuation_handler_margin",0):0}}});
rF.prototype.onIsShortsGridChange=rF.prototype.onIsShortsGridChange;rF.prototype.onReloadContinuationFinish=rF.prototype.onReloadContinuationFinish;rF.prototype.reflowContent=rF.prototype.reflowContent;rF.prototype.handleRerenderDownloadsData=rF.prototype.handleRerenderDownloadsData;rF.prototype.onRichShelfRendererCollapse=rF.prototype.onRichShelfRendererCollapse;rF.prototype.onRequestElementsPerRow=rF.prototype.onRequestElementsPerRow;rF.prototype.contentLengthChanged=rF.prototype.contentLengthChanged;
rF.prototype.dataChanged=rF.prototype.dataChanged;rF.prototype.onSizingChange=rF.prototype.onSizingChange;rF.prototype.onUseCompactListChange=rF.prototype.onUseCompactListChange;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],rF.prototype,"ironResizableBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],rF.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],rF.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],rF.prototype,"componentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],rF.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rF.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],rF.prototype,"miniMode",void 0);_.q([_.y({value:[]}),_.x("design:type",Array)],rF.prototype,"shownItems",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],rF.prototype,"isReflowing",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],rF.prototype,"isFilteredFeed",void 0);_.q([_.y({selector:_.m8M}),_.x("design:type",Boolean)],rF.prototype,"guideIsExpanded",void 0);
_.q([_.y({selectorArgs:["entitySelectorType"],selector:function(D,Y){if(_.f("kevlar_modern_downloads_page")&&Y&&Y!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Y){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":Y=D.entities;var R=_.Nw(Y),Z=_.l0(Y),t=_.t8i(D),X=_.Zcr(D),M=_.s8r(D),W=_.bNb(Y),z=_.wL(R),I=_.Ju(Y);return _.cC5(R,Z,W,_.JG9(Y),t,X,z,I,M,_.uJr(D),_.Lh(D));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return D=_.Nw(D.entities),_.Yjo(D);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return D=
_.$89(D.entities),_.RPS(D);default:_.Jk(new _.AT("Error: entitySelectorType defined but not matched in selector.",D,Y))}}}),
_.x("design:type",Object)],rF.prototype,"entityDrivenRichGridData",void 0);_.q([_.y(),_.x("design:type",Object)],rF.prototype,"resizeOnObserverInit",void 0);_.q([_.y(),_.x("design:type",Object)],rF.prototype,"bigYoodleData",void 0);_.q([_.y(),_.x("design:type",Object)],rF.prototype,"mastheadData",void 0);_.q([_.y(),_.x("design:type",Boolean)],rF.prototype,"isInlinePreviewDisabled",void 0);_.q([_.y(),_.x("design:type",Object)],rF.prototype,"disableStickyFilterBar",void 0);
_.q([_.y(),_.x("design:type",Object)],rF.prototype,"transparentBackgroundChipsBar",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rF.prototype,"hideChipsBar",void 0);_.q([_.y(),_.x("design:type",Object)],rF.prototype,"isWatchDefaultLayout",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rF.prototype,"continuationShowButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rF.prototype,"rowReducedHorizontalMargin",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rF.prototype,"useCompactList",void 0);_.q([_.y({selector:function(D){return _.l0(D.entities).length>0}}),
_.x("design:type",Object)],rF.prototype,"manualDownloadsPresent",void 0);_.q([_.y({selector:function(D){return _.Nw(D.entities).length>0}}),
_.x("design:type",Object)],rF.prototype,"smartDownloadsPresent",void 0);_.q([_.y({selector:_.Lh}),_.x("design:type",Object)],rF.prototype,"isOnline",void 0);_.q([_.y({selector:_.Zcr}),_.x("design:type",Object)],rF.prototype,"shouldRenderDownloadsBanner",void 0);_.q([_.y({selector:_.uJr}),_.x("design:type",Object)],rF.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.q([_.y({selector:_.t8i}),_.x("design:type",Object)],rF.prototype,"hasOptedIntoSmartDownloads",void 0);
_.q([_.Gm("useCompactList"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"onUseCompactListChange",null);_.q([_.Gm("sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"onSizingChange",null);_.q([_.y({selector:_.BmU}),_.x("design:type",Number)],rF.prototype,"miniplayerPlaybackState",void 0);_.q([_.y({selector:_.Kh}),_.x("design:type",Boolean)],rF.prototype,"miniplayerIsActive",void 0);
_.q([_.y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],rF.prototype,"isInlinePreviewEnabled",void 0);_.q([_.y({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.x("design:type",String)],rF.prototype,"sizing",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rF.prototype,"elementsPerRow",void 0);
_.q([_.y(),_.x("design:type",Object)],rF.prototype,"typographyBump",void 0);_.q([_.y(),_.x("design:type",Number)],rF.prototype,"itemWidth",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],rF.prototype,"headerElement",void 0);_.q([_.fr("#contents"),_.x("design:type",HTMLElement)],rF.prototype,"contentsElement",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"dataChanged",null);
_.q([_.rd("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"contentLengthChanged",null);_.q([_.Fv("yt-request-elements-per-row"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"onRequestElementsPerRow",null);
_.q([_.Fv("yt-rich-shelf-renderer-collapse"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rF.prototype,"onRichShelfRendererCollapse",null);_.q([_.rd("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"handleRerenderDownloadsData",null);
_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],rF.prototype,"entitySelectorType",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isSub",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isWatch",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isShortsPanel",null);_.q([_.y({reflectToAttribute:!0}),_.b("isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"reducedTopMargin",null);_.q([_.y({reflectToAttribute:!0}),_.b("data","isWatch","isWatchDefaultLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"noTopMargin",null);
_.q([_.y({reflectToAttribute:!0}),_.b("isInlinePreviewEnabled","shownItems"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"topRowEndorsement",null);_.q([_.b("data.header"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"hideHeader",null);_.q([_.Fv("yt-rich-grid-reflow"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],rF.prototype,"reflowContent",null);
_.q([_.Fv("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"onReloadContinuationFinish",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isSlimGrid",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isShortsGrid",null);
_.q([_.b("data","isSlimGrid","isShortsGrid"),_.y(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"noRichItemGutterMargins",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isShortsGridSlim",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isCompactGrid",null);
_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"isDefaultGrid",null);_.q([_.b("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"hideChipsBarOnHome",null);_.q([_.b("data.targetId"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"hideChipsBarOnWatch",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rF.prototype,"onIsShortsGridChange",null);_.q([_.b("data.enableContentSpecificAspectRatio"),_.y(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rF.prototype,"force16By9ThumbnailAspectRatio",null);_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],rF.prototype,"continuationTriggerOffset",null);_.q([_.h({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],rF);
_.L(rF,"ytd-rich-grid-renderer",function(){if(Wju!==void 0)return Wju;var D=document.createElement("template");_.w(D,'\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="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Wju=D},{mode:2});var rLz=_.RT(function(D){var Y=D.thumbsUp,R=D.thumbsDown,Z=D.rightAlignThumbs;D=_.a(_.ae(!1,void 0,"FjNDrf"));var t=D.next().value,X=D.next().value;D=_.a(_.ae(!1,void 0,"Tphjfb"));var M=D.next().value,W=D.next().value;D={};return _.S("div",{class:_.e7("ytwThumbsUpDownThumbs",(D.ytwThumbsUpDownRightAlign=function(){return Z==null?void 0:Z()},D))},_.S(_.JV,{data:Y,
onToggle:function(z){X(z);M()&&W(!1)},
buttonShapeOverrides:function(){return{toggled:t()}}}),_.S(_.JV,{data:R,
onToggle:function(z){W(z);t()&&X(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}))},"yj");
rLz.idomCompat=!0;var $29=_.RT(function(D){var Y=function(){return D.data().pendingStateEntityKey||""},R=_.Ax(_.Pwk,Y),Z=function(){var W;
if(!(W=D.disabled())){var z;W=!((z=R())==null||!z.isPendingResponse)}return W},t=_.a(_.ae(URu(""),void 0,"aC8eBe")),X=t.next().value,M=t.next().value;
_.rf(function(){requestAnimationFrame(function(){var W=D.data().onShowAnimationMs||0;W=W>0?URu("--chip-animation-duration: "+W+"ms;"):URu("");M(W)})});
return _.S("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:X},_.S(_.G6,{each:function(){return D.data().chipData||[]},
keyBy:"REFERENCE"},function(W){return _.S(w0T,{data:W,disabled:Z,pendingStateKey:Y,onError:D.onError})}))},"zj"),w0T=_.RT(function(D){var Y=_.io("button"),R=_.a(_.ae(!0,void 0,"NaMiCd")),Z=R.next().value,t=R.next().value,X=function(){return D.data().text.content},M=_.F4(function(W){var z,I,F,G,V,e,r,l;
return _.C(function(U){switch(U.nextAddress){case 1:W.stopPropagation();if(D.disabled())return U.return();I=String(Math.floor(((z=_.IP())==null?void 0:z.getCurrentTime())||0)*1E3);F="youchat-"+Date.now();G=function(){_.xC(D.data().onClick||{});var K={continuationCommand:{token:D.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},H={inputComposerFormData:{clientMessageId:F,playerOffsetMs:I}};return new Promise(function(c,Q){_.xC(K,{form:{formData:H},commandController:{onSuccess:function(E,
B){c(B)},
onServerError:function(E,B){Q(B.error)}}})})};
V=_.Qdh(D.pendingStateKey());V(!0);_.rdb("#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");t(!1);_.SX(U,2);return U.yield(G(),4);case 4:_.xw(U,3);break;case 2:e=_.Gl(U),(l=(r=D).onError)==null||l.call(r,e);case 3:V(!1),_.V9(U)}})});
return _.S(_.T,{cond:Z,then:function(){return _.S("div",{class:"ytwYouChatChipsDataChipWrapper"},_.S("button",{el:Y,class:"ytwYouChatChipsDataChip","data-disabled":D.disabled,"on:click":M,tabindex:0},X))}})},"Aj");var vek=_.RT(function(D){var Y=D.data;var R=D.initiallyExpanded;var Z=function(){var I;return(I=Y().conversationResourceData)==null?void 0:I.learningGuideData};
D=_.a(_.fB(function(){var I;return(I=R==null?void 0:R())!=null?I:!1}));
var t=D.next().value,X=D.next().value,M=function(){X(!0)},W=_.Si(function(){var I,F;
return(F=(I=Z())==null?void 0:I.sections)!=null?F:[]},void 0,"xl8NRc"),z=_.Si(function(){return W().length>4},void 0,"oAM7of");
D=_.Si(function(){var I;return!t()&&z()&&(I=Z())!=null&&I.expandButton?W().slice(0,4):W()},void 0,"uzQ9rc");
return _.S("yt-conversation-resource-view-model",{class:_.e7("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.S(_.vK,{data:D},{expandableMetadataViewModel:_.r9h}),_.S(_.T,{cond:function(){return z()&&!t()},
then:function(){return _.S("div",{id:"showMoreButton"},_.S(_.vK,{data:function(){var I;return(I=Z())==null?void 0:I.expandButton}},{buttonViewModel:function(I){return _.S(_.TV,{data:I.data,
onClick:M})}}))}}))},"Bj");var oet=_.RT(function(D){var Y=function(){var B;return(B=D.data().text)==null?void 0:B.content},R=function(){var B,O;
return(B=D.data().webData)==null?void 0:(O=B.textResult)==null?void 0:O.content},Z=_.DH().resolve(_.DT),t=_.FU(),X=function(){return D.data().chatResponseStyle},M=function(){return!D.data().transparentBackground},W=function(){return D.data().rightAlignThumbs},z=function(){return D.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||D.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},I=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:z()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:D.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},F=function(){var B;
return D.data().webData||((B=D.data().text)==null?void 0:B.content)||D.data().videoResultsData||D.data().conversationResourceViewModel||D.data().quiz},G=function(){return!!D.data().sectionHeader||F()},V=function(){var B;
return(B=D.data().videoResultsData)==null?void 0:B.videoShelf},e=function(){var B;
return _.A(((B=D.data().videoResultsData)==null?void 0:B.videoShelf)||{},D2u)},r=function(){var B;
return(B=D.data().webData)==null?void 0:B.sourcesShelf},l=function(){var B;
return _.A(((B=D.data().webData)==null?void 0:B.sourcesShelf)||{},D2u)},U=function(){return _.A(D.data().conversationResourceViewModel||{},RTE)},K=function(){return _.A(D.data().quiz||{},izh)},H=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||X()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:D.data().thumbsDownViewModel&&D.data().thumbsUpViewModel},c=function(){return _.A(D.data().thumbsUpViewModel,_.py)},Q=function(){return _.A(D.data().thumbsDownViewModel,_.py)};
_.rf(function(){requestAnimationFrame(function(){var B;(B=D.shouldAnimateIcon)!=null&&B.call(D)&&BFt(t.lottieEl)})});
var E={};return _.S("you-chat-item-view-model",{class:_.e7("ytwYouChatItemViewModelYouChatItemViewModel",(E.ytwYouChatItemViewModelColumnLayout=function(){return z()},E)),
"data-target-id":function(){return D.data().id||""}},_.S(_.T,{cond:function(){return D.data().removeIcon?!1:G()},
then:function(){var B={};return _.S("div",{"aria-hidden":"true"},_.S(_.fO,{className:_.e7("ytwYouChatItemViewModelIcon",(B.ytwYouChatItemViewModelRtl=Z==="rtl",B.ytwYouChatItemViewModelHidden=function(){return!(D.data().hideIcon||X()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||X()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:G())},B)),
animationName:"YOUCHAT_ICON",data:I,animationRef:t}))}}),_.S(_.T,{cond:G,
then:function(){var B={};return _.S("div",{class:_.e7("ytwYouChatItemViewModelHost",(B.ytwYouChatItemViewModelHostNoPadding=function(){return!!D.data().sectionHeader&&!F()},B.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},B.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},B.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return X()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
B.ytwYouChatItemViewModelGradientBackground=M,B)),
role:"alert"},_.S(_.T,{cond:Y,then:function(O){return _.S(_.PS,{text:O,wrapCodeBlocks:!0})}}),_.S(_.vK,{data:function(){return D.data().sectionHeader}},{sectionHeaderViewModel:function(O){var Wo={};
return _.S(_.Sx,{data:O.data,className:_.e7("ytwYouChatItemViewModelSectionHeader",(Wo.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!D.data().sectionHeader&&!F()},Wo))})}}),_.S(_.T,{cond:R,
then:function(O){return _.S(_.PS,{text:O,wrapCodeBlocks:!0})}}),_.S(_.T,{cond:V,
then:function(){return _.S("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.S(_.q9,{data:e,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.S(_.T,{cond:r,
then:function(){return _.S("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.S(_.q9,{data:l,hasPeek:!0,disableArrows:!1}))}}),_.S(_.T,{cond:U,
then:function(){return _.S(vek,{data:U})}}),_.S(_.T,{cond:K,
then:function(){return _.S(_.dt_,{data:K})}}),_.S(_.T,{cond:H,
then:function(){return _.S(rLz,{thumbsUp:c,thumbsDown:Q,rightAlignThumbs:W})}}))}}),_.S(_.T,{cond:function(){return D.data().chipsData},
then:function(B){return _.S($29,{data:B,disabled:D.pending,onError:D.onError})}}))},"Cj");
oet.idomCompat={callbacks:{onError:!0,onSend:!0}};var bPh=_.RT(function(D){var Y=function(){return D.data().choiceSelectedText},R=function(){return D.data().hasGradientBackground},Z={};
return _.S("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.S(_.T,{cond:Y,then:function(){return _.S("div",{class:"ytYouChatUserTurnChoiceSelected"},_.S(_.y_,{text:Y}))}}),_.S("div",{class:_.e7("ytYouChatUserTurnUserMessage",(Z.ytYouChatUserTurnGradientContainer=R,Z.ytYouChatUserTurnDefaultContainer=function(){return!R()},Z))},function(){return D.data().text}))},"Dj");var yLp=_.RT(function(D){var Y=_.a((0,_.ngb)(D.data)).next().value;return _.S("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return D.data().targetId||""}},_.S(_.vK,{data:function(){return D.data().header}},{chipBarViewModel:_.I0D}),_.S(_.vK,{data:function(){return Y().contents}},{accordionViewModel:_.DR4,
alertBannerViewModel:_.rBz,chatLoadingViewModel:_.nMz,chatUserTurnViewModel:bPh,learningJourneyLoaderViewModel:_.BDV,lockupViewModel:function(R){return _.S(_.Wz,{data:R.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:D.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(R){return _.S(oet,{data:R.data,pending:!1})}}))},"Ej");_.at(_.RT(function(D){var Y=_.a((0,_.ngb)(D.data)).next().value,R=_.dI("yt-section-list-renderer"),Z=_.a(_.ae(void 0,void 0,"rQpPgc")),t=Z.next().value,X=Z.next().value,M=function(){var W;return _.A((W=D.data().sectionListLayoutConfiguration)==null?void 0:W.layoutConfiguration,cdk)};
_.$s(function(){var W,z=(W=R.value)==null?void 0:W.clientWidth;if(M()){W=M();var I=W.responsiveSize;z=z<528?"CONTAINER_SIZE_NARROW":z<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var F=_.a(W.responsiveMap||[]);for(var G=F.next();!G.done;G=F.next())if(G=G.value,G.containerSize===z){F=G.containerType;break b}F=void 0}if(F&&I){b:{if(F==="CONTAINER_TYPE_VERTICAL_LIST")if(I==="RESPONSIVE_SIZE_STANDARD"){if(z!=="CONTAINER_SIZE_NARROW"){G="50%";break b}}else{G=z==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}G=void 0}W={responsiveSize:I,containerSize:z,containerType:F,force16By9ThumbnailAspectRatio:!W.enableContentSpecificAspectRatio,contentPreviewWidth:G,fullbleed:(F==="CONTAINER_TYPE_VERTICAL_LIST"||F==="CONTAINER_TYPE_GRID")&&z==="CONTAINER_SIZE_NARROW"&&!1}}else W=void 0}else W=void 0;X(W)});
return _.S("yt-section-list-renderer",{class:_.e7("ytSectionListRendererHost",D.className),el:R,"data-target-id":function(){return D.data().targetId||""}},_.S(_.vK,{data:function(){return Y().contents}},{itemSectionRenderer:function(W){return _.S(yLp,{data:W.data,
containerLayoutConfig:t})}}))},"Fj"),"yt-section-list-renderer",{props:{data:_.cs,
className:_.uq}});var N_E;var lwu;var JLz=function(){return _.N.apply(this,arguments)||this};
_.n(JLz,_.N);_.q([_.y(),_.x("design:type",Object)],JLz.prototype,"data",void 0);_.q([_.Lr({is:"yt-alert-renderer",disableElementRegistration:!0})],JLz);
_.L(JLz,"yt-alert-renderer",function(){if(lwu===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;N_E===void 0&&(N_E=document.createElement("template"));var Z=N_E;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);lwu=D}D=lwu;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var k_9;k_9=function(D,Y,R,Z){R||(D?Z&&(Z.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||Z.WINDOW_SIZE_CHANGED&&(Y.width!==window.innerWidth||Y.height!==window.innerHeight)||Z.SAFARI_ABORTED_BY_NEW_TRANSITION&&D instanceof DOMException&&D.name==="AbortError"&&D.message.includes("Old view transition aborted by new view transition"))||_.Nb(D):_.Nb(Error("kj")))};
_.UCt=function(D,Y){Y=Y===void 0?{}:Y;var R,Z,t,X,M,W,z,I,F,G,V,e,r;return _.C(function(l){switch(l.nextAddress){case 1:R=Y;Z=R.shouldWrap===void 0?!0:R.shouldWrap;t=R.skipTransitionTimeoutMs===void 0?300:R.skipTransitionTimeoutMs;X=R.beforeTransition;M=R.afterTransition;if(!Z||!document.startViewTransition||document.visibilityState==="hidden")return l.return(D());W={width:window.innerWidth,height:window.innerHeight};z=!1;(I=X)==null||I();_.SX(l,2);F=document.startViewTransition(D);G=setTimeout(function(){F.skipTransition();
z=!0},t);
return l.yield(F.ready,4);case 4:return clearTimeout(G),l.yield(F.finished,5);case 5:clearTimeout(G);(V=M)==null||V();_.xw(l,0);break;case 2:e=_.Gl(l),(r=M)==null||r(),k_9(e,W,z,Y.ignoredErrors),_.V9(l)}})};
_.EZ=function(){for(var D=Array(36),Y=0,R,Z=0;Z<36;Z++)Z==8||Z==13||Z==18||Z==23?D[Z]="-":Z==14?D[Z]="4":(Y<=2&&(Y=33554432+Math.random()*16777216|0),R=Y&15,Y>>=4,D[Z]=_.Fpb[Z==19?R&3|8:R]);return D.join("")};/*

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 Kmp=_.gY(['<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>']),
h7K=_.ZhL(Kmp);h7K.setAttribute("style","display: none;");document.head.appendChild(h7K.content);_.g6=_.IOy(function(D){var Y=_.I0("DIV");D&&(Y.className=D);Y.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";D=_.I0("DIV");_.RKL(D,"200px","200px");Y.appendChild(D);document.body.appendChild(Y);D=Y.offsetWidth-Y.clientWidth;_.F_(Y);return D});var LmK;var mCk;var d6=function(){var D=_.N.apply(this,arguments)||this;D.icon=null;return D};
_.n(d6,_.N);d6.prototype.dismiss=function(){_.MX(this.hostElement,"yt-live-chat-error-message-dismiss")};
d6.prototype.computeIcon=function(D){return D&&D.iconType?"yt-icons:"+D.iconType.toLowerCase():"yt-icons:close"};
_.q([_.y(),_.x("design:type",Object)],d6.prototype,"data",void 0);_.q([_.y({computed:"computeIcon(data.icon)"}),_.x("design:type",Object)],d6.prototype,"icon",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],d6);
_.L(d6,"yt-live-chat-error-message-renderer",function(){if(mCk===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;LmK===void 0&&(LmK=document.createElement("template"));var Z=LmK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);mCk=D}D=mCk;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var BrB,poy,En7,gnZ,cS7,RYN,ZLg,tDE,bL,szS,X4Z,yh,ubf,a_B,MDB,CU7,W7f,zYf,SLB,Tzg,jzZ,I_N,F7y,GE7,VDE,f_T,eYy,A1G,nEN,r1g,w4g,Nh,$UE,vEB,oEf,Nzg,l_Z,J1Z,kEf,UUo,K7y,bLS,y1B,L7f,mUN,qLN,HLN,xUB,hYZ,QzG;BrB=function(D,Y){return _.jC(D.entities,"liveReactionsDataEntity",Y)};
poy=function(D,Y){D=_.jC(D.entities,"booleanEntity",Y);return!(!D||!D.value)};
En7=function(D,Y){var R=_.K2();R&&D&&_.Qk(R,_.oT(D),Y)};
gnZ=function(D,Y){return _.jC(D.entities,"timedMarkersListSyncEntity",Y)};
_.d$S=function(D){return D.watch.isWatchActive};
_.iMT=function(D){return _.hp(D)||_.LB(D)||_.Xpi(D)};
_.OMB=function(D){return!_.iMT(D)};
_.ow=function(D){return D.watch.watchScrollTop};
cS7=function(D){return D.watch.isLiveChatCollapsed};
_.DUf=function(){_.f("web_watch_log_theater_mode")&&_.Fno("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.YLB=function(D,Y,R){if(!D.includes("START_TIME_PLACEHOLDER")||!D.includes("END_TIME_PLACEHOLDER"))return D;var Z=new Date(0),t=new Date(0);Z.setUTCMilliseconds(Y);t.setUTCMilliseconds(R);return D.replace("START_TIME_PLACEHOLDER",_.ph(Z,7)).replace("END_TIME_PLACEHOLDER",_.ph(t,7))};
RYN=function(D,Y){return _.jC(D.entities,"booleanEntity",Y)};
ZLg=function(){return function(D){_.cE(_.oP("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:D}))}};
tDE=function(D){switch(D){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}};
bL=function(D,Y,R){var Z=_.HL(R);D&&Y&&Z&&D.getPlayerPromise().then(function(t){_.bYr(Z)&&_.yj();(new _.vz(t)).executeCommand(Z,Y);_.f("continue_playback_on_desktop_companion_click")||t.pauseVideo()})};
szS=function(D){var Y=_.sm(),R;if(R=_.mf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;R=(Z=R())==null?void 0:Z.layoutId}else R=null;bL(Y,R,D)};
X4Z=function(D){var Y=_.sm(),R;if(R=_.mf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;R=(Z=R())==null?void 0:Z.layoutId}else R=null;bL(Y,R,D)};
yh=function(D,Y){var R=D<0?"-":"";D=Math.abs(D);var Z=Math.floor(D/3600),t=Math.floor(D)%3600,X=Math.floor(t/60);t=Math.floor(t)%60;var M="";(Y===void 0?0:Y)&&(M="."+Math.round((D-Math.floor(D))*10));return Z>0?R+Z+":"+(X<10?"0"+X:""+X)+":"+(t<10?"0"+t:""+t)+M:R+X+":"+(t<10?"0"+t:""+t)+M};
ubf=function(D){var Y=D.match(/[^0-9:\.]/g);if(Y&&Y.length>0)return null;D=D.split(":");if(D.length===0||D.length>3)return null;Y=1;for(var R=0;D.length>0;){var Z=D.pop();if(Z===void 0)break;var t=Number(Z);if(Z===""||isNaN(t))return null;R+=t*Y;Y*=60}return R};
a_B=function(D,Y,R,Z){D=Math.max(R,D);Y=Math.min(Y,Z-R);D+Y>Z?(R=Z,D=R-Y):R=D+Y;return{start:D,end:R}};
MDB=function(D,Y,R,Z,t,X){D<R?D=R:D+t>Z&&(D=Z-t);Y>Z&&(Y=Z);Y=Math.min(D+X,Math.max(D+t,Y));return{start:D,end:Y}};
CU7=function(D,Y,R,Z,t,X){Y>Z?Y=Z:Y-t<R&&(Y=R+t);D<R&&(D=R);D=Math.min(Y-t,Math.max(Y-X,D));return{start:D,end:Y}};
W7f=function(D){return _.f("web_transcript_cue_id_killswitch")?String(D):"ytd-transcript-renderer_"+D};
zYf=function(D){return _.f("web_transcript_cue_id_killswitch")?!0:D.startsWith("ytd-transcript-renderer")};
SLB=function(D){var Y=_.sm(),R;if(R=_.mf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;R=(Z=R())==null?void 0:Z.layoutId}else R=null;bL(Y,R,D)};
Tzg=function(D){D.style.height="auto";D.style.height=Math.min(D.scrollHeight||20,80)+"px"};
jzZ=function(D,Y,R){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:Y,hasGradientBackground:R}}],insertByPositionInSection:{sectionTargetId:D,position:"INSERTION_POSITION_LAST"}}}]}}}};
I_N=function(D){var Y=_.sm(),R;R=(R=_.mf("yt.www.ads.eventcache.getLastCompanionData"))?(R=R())&&R.layoutId:null;bL(Y,R,D)};
F7y=function(D){var Y=_.sm(),R;R=(R=_.mf("yt.www.ads.eventcache.getLastCompanionData"))?(R=R())&&R.layoutId:null;bL(Y,R,D)};
GE7=function(D,Y){Y=Y===void 0?!1:Y;if(D.simpleText)D=[{text:D.simpleText}];else{var R;D=((R=D.runs)!=null?R:[]).map(function(Z){return Object.assign({},Z)})}if(Y)for(Y=_.a(D),R=Y.next();!R.done;R=Y.next())R.value.bold=!0;
return D};
VDE=function(D){var Y=D.startEndTimeTemplate,R=D.startTimeUtcMillis;D=D.endTimeUtcMillis;if(Y&&R&&D)return _.i0(_.YLB(_.OM(Y),Number(R),Number(D)))};
f_T=function(D,Y){var R,Z,t=D==null?void 0:(R=D.viewCount)==null?void 0:(Z=R.videoViewCountRenderer)==null?void 0:Z.shortViewCount;if(!Y&&t)return t;var X,M;return D==null?void 0:(X=D.viewCount)==null?void 0:(M=X.videoViewCountRenderer)==null?void 0:M.viewCount};
eYy=function(D,Y){var R=D==null?void 0:D.relativeDateText;return!Y&&R?[R,!0]:[D==null?void 0:D.dateText,!1]};
A1G=function(D,Y,R,Z,t){Z=Z===void 0?!0:Z;t=t===void 0?"":t;var X=f_T(D,Y),M=_.a(eYy(D,Y)),W=M.next().value;M=M.next().value;Y=Y?D==null?void 0:D.sponsorsOnlyFirstTimeLongText:D==null?void 0:D.sponsorsOnlyFirstTimeShortText;var z=[];R&&X&&z.push(X);!R&&M||!W||z.push(W);D=[].concat(_.oK(z),[Y,D==null?void 0:D.stationName,D==null?void 0:D.rating,D?VDE(D):void 0,D==null?void 0:D.upNextProgramText,D==null?void 0:D.superTitleLink]).filter(function(I){return!!I});
R={runs:[]};for(X=0;X<D.length;X++)R.runs.push.apply(R.runs,_.oK(GE7(D[X],Z))),X<D.length-1&&R.runs.push({text:" "+t+" ",bold:Z});return R};
nEN=function(D){if(D)return{runs:[{text:D,bold:!0}]}};
r1g=function(D){var Y,R,Z,t;if(D=D==null?void 0:(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.results)==null?void 0:(t=Z.results)==null?void 0:t.contents){var X,M;return(M=(X=D.find(function(W){return!!W.videoPrimaryInfoRenderer}))==null?void 0:X.videoPrimaryInfoRenderer)==null?void 0:M.updatedMetadataEndpoint}};
w4g=function(D,Y){var R;return(R=D.sourceConfigs)==null?void 0:R.find(function(Z){return Z.videoId===Y})};
Nh=function(D){return D==="End of video"||D==="End of playlist"};
$UE=function(D){var Y,R,Z,t;return(Y=D.getWatchNextResponse())==null?void 0:(R=Y.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(t=Z.playlist)==null?void 0:t.playlist};
vEB=function(D){var Y,R,Z,t,X,M;return(Y=$UE(D))==null?void 0:(R=Y.playlistButtons)==null?void 0:(Z=R.menuRenderer)==null?void 0:(t=Z.topLevelButtons)==null?void 0:(X=t[0])==null?void 0:(M=X.playlistLoopButtonRenderer)==null?void 0:M.playlistLoopStateEntityKey};
oEf=function(D){var Y=_.DH().resolve(_.xW),R;return(Y=(R=_.A(Y.getAutoplayEndpoint(),_.Od))==null?void 0:R.playlistId)&&Y===D};
Nzg=function(D,Y,R,Z,t){function X(){_.yc.cancelJob(lL);var M=bLS(Y,R/D.getPlaybackRate()),W=M.hours,z=M.minutes;M=(M.seconds*1E3||6E4)/D.getPlaybackRate();D.setVideoTimeLeft(y1B(W,z));Z&&D.getPlayerState()!==0&&D.setSleepTimerTimeLeft(y1B(W,z,!0));(W>0||z>0)&&!t&&(lL=_.NP(_.yc,X,M))}
_.yc.cancelJob(lL);lL=_.NP(_.yc,X)};
l_Z=function(D,Y,R){function Z(){_.yc.cancelJob(J_);var t=bLS(Y,R),X=t.hours;t=t.minutes;var M=6E4/D.getPlaybackRate();if(X>0||t>0)D.setSleepTimerTimeLeft(y1B(X,t,!0)),J_=_.NP(_.yc,Z,M)}
_.yc.cancelJob(J_);J_=_.NP(_.yc,Z)};
J1Z=function(D,Y){var R=D.getVolume()/(Y/500),Z=function(t){_.yc.cancelJob(kJ);var X=Math.floor(t-R);D.setVolume(X,!1);X>0&&(kJ=_.NP(_.yc,function(){Z(X)},500))};
_.yc.cancelJob(kJ);kJ=_.NP(_.yc,function(){Z(D.getVolume())})};
kEf=function(D,Y){_.yc.cancelJob(kJ);Y&&D.syncVolume()};
UUo=function(){var D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.fX("SLEEP_TIMER_DISRUPTED")}}}}};_.DH().resolve(_.Yw).resolveCommand(D)};
K7y=function(D){return(D.getDuration()-D.getProgressState().current)*1E3};
bLS=function(D,Y){D=D+Y-(0,_.DO)();if(D<=0)return{hours:0,minutes:0,seconds:0};var R=new hYZ(0,0,0,0,0,0,D);D=R.getHours();Y=R.getMinutes();R=R.getSeconds();R!==0&&Y++;Y!==0&&Y%60===0&&(D++,Y=0);return{hours:D,minutes:Y,seconds:R}};
y1B=function(D,Y,R){return D>0&&Y>0?R?_.fX("TIME_LEFT_HOURS_MINUTES",{hours:D.toString(),minutes:Y.toString()}):_.fX("TIME_HOURS_MINUTES",{hours:D.toString(),minutes:Y.toString()}):D>0?R?_.ee("TIME_LEFT_HOURS",D):_.ee("TIME_HOURS",D):R?_.fX("TIME_LEFT_MINUTES",{minutes:Y.toString()}):_.fX("TIME_MINUTES",{minutes:Y.toString()})};
L7f=function(D,Y){if(D.timelyActions)return D.timelyActions.find(function(R){var Z;return((Z=_.A(R,UO))==null?void 0:Z.cueRangeId)===Y})};
mUN=function(D){var Y=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Ml(D);D.keyMap_.forEach(function(R,Z){_.LM(Y,Z)||this.remove(Z)},D)};
qLN=function(D,Y){D.reloadContinuationItemsCommandMatcher=Y};
_.KR=function(D,Y){D.insertBefore(Y,D.childNodes[0]||null)};
HLN=function(D){if(D>=48&&D<=57||D>=96&&D<=106||D>=65&&D<=90||_.zX&&D==0)return!0;switch(D){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 _.WQ;default:return!1}};
xUB=function(D){if(D.altKey&&!D.ctrlKey||D.metaKey||D.keyCode>=112&&D.keyCode<=123)return!1;if(HLN(D.keyCode))return!0;switch(D.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!_.WQ;default:return D.keyCode<166||D.keyCode>183}};
hYZ=function(D,Y,R,Z,t,X,M){this.date=typeof D==="number"?new Date(D,Y||0,R||1,Z||0,t||0,X||0,M||0):new Date(D&&D.getTime?D.getTime():_.sb())};
_.XN(hYZ,_.$L);_.u=hYZ.prototype;_.u.getHours=function(){return this.date.getHours()};
_.u.getMinutes=function(){return this.date.getMinutes()};
_.u.getSeconds=function(){return this.date.getSeconds()};
_.u.getMilliseconds=function(){return this.date.getMilliseconds()};
_.u.getUTCDay=function(){return this.date.getUTCDay()};
_.u.getUTCHours=function(){return this.date.getUTCHours()};
_.u.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.u.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.u.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.u.setHours=function(D){this.date.setHours(D)};
_.u.setMinutes=function(D){this.date.setMinutes(D)};
_.u.setSeconds=function(D){this.date.setSeconds(D)};
_.u.setMilliseconds=function(D){this.date.setMilliseconds(D)};
_.u.setUTCHours=function(D){this.date.setUTCHours(D)};
_.u.setUTCMinutes=function(D){this.date.setUTCMinutes(D)};
_.u.setUTCSeconds=function(D){this.date.setUTCSeconds(D)};
_.u.setUTCMilliseconds=function(D){this.date.setUTCMilliseconds(D)};
_.u.add=function(D){_.$L.prototype.add.call(this,D);D.hours&&this.setUTCHours(this.date.getUTCHours()+D.hours);D.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+D.minutes);D.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+D.seconds)};
_.u.JSC$11239_toIsoString=function(D){var Y=_.$L.prototype.JSC$11239_toIsoString.call(this,D);return D?Y+"T"+_.Zo(this.getHours(),2)+":"+_.Zo(this.getMinutes(),2)+":"+_.Zo(this.getSeconds(),2):Y+"T"+_.Zo(this.getHours(),2)+_.Zo(this.getMinutes(),2)+_.Zo(this.getSeconds(),2)};
_.u.equals=function(D){return this.getTime()==D.getTime()};
_.u.toString=function(){return this.JSC$11239_toIsoString()};
_.u.clone=function(){var D=new hYZ(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.PUf=function(D){return _.u0({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:D}})};
QzG=new _.Dv("imageTileRenderer");var Bzf=new _.Dv("adGridCardCollectionViewModel");var p4f=new _.Dv("carouselTitleViewModel");var EEZ=new _.Dv("ctaCarouselItemViewModel");var gEN=new _.Dv("textFieldViewModel");_.dUg=new _.Dv("engagementPanelHeaderShowNavigationButtonCommand");var iLT=new _.Dv("hideEngagementPanelScrimAction");var OL$=new _.Dv("setActivePanelItemAction");var c1J=new _.Dv("showEngagementPanelScrimAction");var DkZ=new _.Dv("updateEngagementPanelAction");var Yzy=new _.Dv("updateSearchInVideoResultsAction");var RKN=new _.Dv("transcriptCueGroupRenderer");var ZtZ=new _.Dv("transcriptCueRenderer");var t0S=new _.Dv("transcriptFooterRenderer");var s9J=new _.Dv("engagementPanelAdSubtitleRenderer");var XuB=new _.Dv("videoDescriptionFantasySectionViewModel");var uEN=new _.Dv("deleteClipEngagementPanelCommand");var apT=new _.Dv("loopCommand");var M0G=new _.Dv("changeCreatorEndscreenVisibilityCommand");var CkT=new _.Dv("liveChatCallForQuestionsRenderer");var WhZ=new _.Dv("updateTimedMarkersSyncObserverCommand");var UO=new _.Dv("timelyActionViewModel");var zKo=new _.Dv("timelyActionsOverlayViewModel");var SzE=new _.Dv("repeatChapterCommand");var Tby=new _.Dv("watchPlayerOverflowMenuCommand");var j9J=new _.Dv("compositeVideoOverlayRenderer");var IpJ=new _.Dv("sortFilterSubMenuRenderer");var Fhy=new _.Dv("switchListItemViewModel");var GTS=new _.Dv("inputComposerViewModel");var V0f=new _.Dv("transcriptEditSegmentCommand");var fpf=new _.Dv("transcriptUpdateSegmentTextCommand");var eKE=new _.Dv("transcriptSearchBoxRenderer");var A9S=new _.Dv("transcriptSegmentListRenderer");var nKy=new _.Dv("transcriptSegmentRenderer");_.r9S=new _.Dv("updateDateTextAction");var wuT=new _.Dv("updateTitleAction");var $ko=new _.Dv("updateViewershipAction");var vKo=new _.Dv("carouselLockupRenderer");var h_=new _.Dv("expandableVideoDescriptionBodyRenderer");var oKy=new _.Dv("videoDescriptionHeaderRenderer");var btS=new _.Dv("videoDescriptionYouchatSectionViewModel");_.LR=_.ZH("kevlar_watch_page_horizontal_margin",24);_.y9$=_.ZH("kevlar_watch_page_columns_top_padding",24);_.Nbo=426+_.LR*2;_.mN=_.ZH("kevlar_watch_two_column_width_threshold",1E3);_.lp7=_.LR*2;_.J9o=_.ZH("kevlar_watch_secondary_width",402);_.kTo=_.ZH("kevlar_watch_max_player_width",1280);_.Ukg=_.ZH("kevlar_watch_flexy_metadata_height",136);_.Kh7=_.lp7+310+_.LR;_.hKg=_.lp7+360+_.LR;var Lh$={PAUSE_CHAT:18};var mkB;var qzB;var qh=function(){return _.N.apply(this,arguments)||this};
_.n(qh,_.N);qh.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
qh.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var D=_.A(this.data.button,_.QX);D&&(D.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.YF.Object.defineProperties(qh,{template:{configurable:!0,enumerable:!0,get:function(){if(qzB===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;mkB===void 0&&(mkB=document.createElement("template"));var Z=mkB;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);qzB=D}D=qzB;return D}}});
_.q([_.v(_.Ps),_.x("design:type",Object)],qh.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({selectorArgs:["data.enabledEntityKey"],selector:poy,observer:"onEnabledChange"}),_.x("design:type",Boolean)],qh.prototype,"enabled",void 0);_.q([_.y(),_.x("design:type",Object)],qh.prototype,"data",void 0);_.q([_.Lr({is:"yt-disableable-button-view-model",noInjection:!0})],qh);var Htf;var xk$;var PkJ=["transVert01","transVert02","transVert03"],Q9o="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),HY=function(){var D=_.N.apply(this,arguments)||this;D.emojiManager=_.BM;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};D.reactionBuckets=[];D.noEmojiIdentifier="NO_EMOJI";return D};
_.n(HY,_.N);_.u=HY.prototype;_.u.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.u.desktopFountainEmojiSizePxChanged=function(){_.SN(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.u.createUserReactionAnimation=function(D){this.createEmojiAnimation(D,!0)};
_.u.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var D;((D=this.data)==null?0:D.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.oP("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.oK(this.emojiContainer.children)).forEach(function(Y){Y.remove()})};
_.u.detached=function(){this.cleanupFountain()};
_.u.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var D;this.reactionBuckets=_.y7.unsafeClone((D=this.emojiFountainData)==null?void 0:D.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.u.processEmojiBucket=function(D){var Y=this;if(this.reactionBuckets&&!(D>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var R=this.reactionBuckets[D];this.generateEmojiAnimations(R);if(D<this.reactionBuckets.length-1){var Z;if(R==null?0:(Z=R.duration)==null?0:Z.seconds)this.emojiBucketTimerId=setTimeout(function(){Y.processEmojiBucket(D+1)},Number(R.duration.seconds)*1E3)}}};
_.u.generateEmojiAnimations=function(D){var Y=this,R=this.getRandomEmojiIdFromBucketWithOverride(D);if(R&&R!==this.noEmojiIdentifier){var Z=0;D.targetEps?(Z=this.linearInterpolateBounded(1,20,100,12,D.emojiSizeIndex||0),this.createEmojiAnimation(R,!1,D.emojiAnimationMs,Z),Z=this.getEmojiDelayMsFromTargetEps(D.targetEps)):(this.createEmojiAnimation(R),Z=this.getEmojiDelayMsFromDistribution(D.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){Y.generateEmojiAnimations(D)},Z)}};
_.u.getRandomEmojiIdFromBucketWithOverride=function(D){if(!(D&&D.reactionsData&&D.reactionsData.length&&D.totalReactions))return this.noEmojiIdentifier;for(var Y=D.totalReactions,R=1,Z=_.a(D.reactionsData),t=Z.next();!t.done;t=Z.next())t=t.value,(t.reactionWeightOverride||t.reactionWeightOverride===0)&&t.reactionCount&&(Y-=t.reactionCount,R-=t.reactionWeightOverride);Z=!0;R<0&&(Z=!1,Y=D.totalReactions,R=1);if(Z&&R>0&&Y===0)if(R===1){t=0;for(var X=_.a(D.reactionsData),M=X.next();!M.done;M=X.next())M=
M.value,M.reactionCount&&M.reactionCount>0&&t++;t=1/t;X=_.a(D.reactionsData);for(M=X.next();!M.done;M=X.next())M.value.reactionWeightOverride=t}else for(t=1/(1-R),X=_.a(D.reactionsData),M=X.next();!M.done;M=X.next())M=M.value,M.reactionWeightOverride&&(M.reactionWeightOverride*=t);t=Math.random();X=0;M=_.a(D.reactionsData);for(var W=M.next();!W.done;W=M.next())if(W=W.value,W.reactionCount&&(X=(W.reactionWeightOverride||W.reactionWeightOverride===0)&&Z?X+W.reactionWeightOverride:X+R*W.reactionCount/
Y,X>t&&(W.reactionCount--,D.totalReactions--,W=this.reactionItemToEmojiString(W),W!==this.noEmojiIdentifier)))return W;return this.noEmojiIdentifier};
_.u.reactionItemToEmojiString=function(D){if(D.unicodeEmojiId)return D.unicodeEmojiId;if(D.emoteId)return D.emoteId;if(D.videoReactionType)switch(D.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.u.createEmojiAnimation=function(D,Y,R,Z){Y=Y===void 0?!1:Y;this.lastEmojiRequestedForTesting=D;var t=D.startsWith("yt-icons:"),X=_.PM(this.emojiManager,D);if(X||t){var M=document.createElement("emoji");M.classList.add("yt-emoji-fountain-view-model");M.classList.add(PkJ[Math.floor(Math.random()*PkJ.length)]);var W=document.createElement("div");W.classList.add("yt-emoji-fountain-view-model");W.classList.add("horizontal-container");W.classList.add(Q9o[Math.floor(Math.random()*Q9o.length)]);Y?(R=document.createElement("div"),
R.classList.add("user-reaction-bubble"),R.classList.add("yt-emoji-fountain-view-model"),W.appendChild(R)):(R&&(M.style.animationDuration=R+"ms",W.style.animationDuration=R+"ms"),Z&&(M.style.width=Z+"px",M.style.height=Z+"px"));t?(t=document.createElement("yt-icon"),t.polymerController.icon=D,Z&&(t.style.width=Z+"px",t.style.height=Z+"px"),D=t):D=this.emojiManager.createEmoji(X,!1);D.classList.add("yt-emoji-fountain-view-model");W.appendChild(D);M.appendChild(W);this.emojiContainer.appendChild(M);
M.addEventListener("animationend",function(){M.remove()});
var z,I;if((z=this.data)==null?0:(I=z.loggingDirectives)==null?0:I.trackingParams)Y=Y?_.TP(183501):_.TP(183500),En7(this.data.loggingDirectives.trackingParams,Y),_.Shb(Y);setTimeout(function(){M&&M.remove()},2E3)}};
_.u.getEmojiDelayMsFromDistribution=function(D){return Math.random()*(D||1)*1E3};
_.u.getEmojiDelayMsFromTargetEps=function(D){return Math.random()*2*(1/D)*1E3};
_.u.linearInterpolateBounded=function(D,Y,R,Z,t){t=Math.min(Math.max(t,D),R);return(Y*(R-t)+Z*(t-D))/(R-D)};
HY.prototype.onEmojiFountainDataEntityUpdate=HY.prototype.onEmojiFountainDataEntityUpdate;HY.prototype.desktopFountainEmojiSizePxChanged=HY.prototype.desktopFountainEmojiSizePxChanged;HY.prototype.isActiveChanged=HY.prototype.isActiveChanged;_.q([_.y(),_.x("design:type",_.xt)],HY.prototype,"emojiManager",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],HY.prototype,"ytLiveChatReduxBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],HY.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(D,Y){return _.jC(D.entities,"emojiFountainDataEntity",Y)}}),
_.x("design:type",Object)],HY.prototype,"emojiFountainData",void 0);_.q([_.y(),_.x("design:type",Boolean)],HY.prototype,"isActive",void 0);_.q([_.Gm("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HY.prototype,"isActiveChanged",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HY.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",String)],HY.prototype,"lastEmojiRequestedForTesting",void 0);
_.q([_.y({value:function(){return _.ZH("desktop_fountain_emoji_size_px",20)}}),
_.x("design:type",Number)],HY.prototype,"desktopFountainEmojiSizePx",void 0);_.q([_.Gm("desktopFountainEmojiSizePx"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HY.prototype,"desktopFountainEmojiSizePxChanged",null);_.q([_.fr("#emoji-container"),_.x("design:type",HTMLElement)],HY.prototype,"emojiContainer",void 0);
_.q([_.Gm("emojiFountainData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HY.prototype,"onEmojiFountainDataEntityUpdate",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],HY);
_.L(HY,"yt-emoji-fountain-view-model",function(){if(xk$===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Htf===void 0&&(Htf=document.createElement("template"));var Z=Htf;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);xk$=D}D=xk$;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var BbB;var puB;var xJ=function(){return _.N.apply(this,arguments)||this};
_.n(xJ,_.N);xJ.prototype.onChoiceChanged=function(){this.data&&_.SN(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
xJ.prototype.onChoiceChanged=xJ.prototype.onChoiceChanged;_.q([_.y(),_.x("design:type",Object)],xJ.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xJ.prototype,"onChoiceChanged",null);_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],xJ);
_.L(xJ,"yt-live-chat-banner-poll-choice",function(){if(puB===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;BbB===void 0&&(BbB=document.createElement("template"));var Z=BbB;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);puB=D}D=puB;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var EKJ;var gK$;var PY=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_button_rework_with_live");D.small=!1;return D};
_.n(PY,_.N);PY.prototype.computeIsSmall=function(){var D;return((D=this.buttonOverrides)==null?void 0:D.size)==="S"};
PY.prototype.computeId=function(){return this.data&&this.data.targetId};
_.q([_.v(_.QA.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],PY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],PY.prototype,"id",void 0);_.q([_.y(),_.x("design:type",Object)],PY.prototype,"buttonOverrides",void 0);_.q([_.y(),_.x("design:type",Object)],PY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],PY.prototype,"modern",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.x("design:type",Object)],PY.prototype,"small",void 0);_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-button"})],PY);
_.L(PY,"yt-live-chat-button",function(){if(gK$===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;EKJ===void 0&&(EKJ=document.createElement("template"));var Z=EKJ;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);gK$=D}D=gK$;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var dk$;var itT;var Qh=function(){var D=_.N.apply(this,arguments)||this;D.inCollapsedBanner=!1;D.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};D.questionButtonOverrides={style:"mono",type:"filled"};return D};
_.n(Qh,_.N);_.u=Qh.prototype;_.u.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]]"}}}}}};
_.u.onContextMenuButtonClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
_.u.onYtRendererstamperFinished=function(){this.menuButton=_.aU(this.hostElement).querySelector("#menu-button")};
_.u.dataChanged=function(){var D,Y;if((Y=_.A((D=this.data)==null?void 0:D.overflowMenuButton,_.qv))==null?0:Y.command)this.data.contextMenuEndpoint=_.A(this.data.overflowMenuButton,_.qv).command};
_.u.onButtonClick=function(){var D,Y=_.A((D=this.data)==null?void 0:D.askQuestionButton,_.qv);if(Y){if(Y.trackingParams&&(D=_.oT(Y.trackingParams))){var R=_.K2();R&&_.dC(R,D)}_.MX(this.hostElement,"innertube-command",Y.command)}};
Qh.prototype.onYtRendererstamperFinished=Qh.prototype.onYtRendererstamperFinished;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],Qh.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],Qh.prototype,"ytLiveChatItemBehavior",void 0);_.q([_.y({observer:"dataChanged"}),_.x("design:type",Object)],Qh.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Qh.prototype,"inCollapsedBanner",void 0);_.q([_.y(),_.x("design:type",Object)],Qh.prototype,"buttonOverrides",void 0);_.q([_.y(),_.x("design:type",Object)],Qh.prototype,"questionButtonOverrides",void 0);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qh.prototype,"onYtRendererstamperFinished",null);
_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Qh);
_.L(Qh,"yt-live-chat-call-for-questions-renderer",function(){if(itT===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;dk$===void 0&&(dk$=document.createElement("template"));var Z=dk$;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);itT=D}D=itT;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Oty={};Oty.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 D=this;window.requestAnimationFrame(function(){D.restoreFocusNode_||(D.restoreFocusNode_=document.activeElement);var Y=_.o6L(D.hostElement);Y.length&&Y[Y.length-1].focus()})},
isAttachedChanged_:function(D,Y){D?this.focusChild_():Y&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(D){this.hidden||_.O$(D).indexOf(this.hostElement)!==-1||(D.stopPropagation(),this.focusChild_())}};var c9E;var Dyf;var BY=function(){return _.N.apply(this,arguments)||this};
_.n(BY,_.N);BY.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BY.prototype.onClick=function(D){D.target!==this.confirmButton&&D.target!==this.cancelButton&&(this.hidden=!0)};
_.q([_.fr("#confirm_button"),_.x("design:type",Object)],BY.prototype,"confirmButton",void 0);_.q([_.fr("#cancel_button"),_.x("design:type",Object)],BY.prototype,"cancelButton",void 0);_.q([_.y(),_.x("design:type",YNZ)],BY.prototype,"data",void 0);_.q([_.y({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],BY.prototype,"hidden",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(Oty.YtLiveChatDialogBehavior),_.x("design:type",Object)],BY.prototype,"ytLiveChatDialogBehavior",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],BY);
var YNZ=_.L(BY,"yt-live-chat-dialog-renderer",function(){if(Dyf===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;c9E===void 0&&(c9E=document.createElement("template"));var Z=c9E;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Dyf=D}D=Dyf;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var REf;var Z$f,tfy=function(){if(Z$f!==void 0)return Z$f;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;REf===void 0&&(REf=document.createElement("template"));var Z=REf;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Z$f=D};var sJB;var XZT;var pR=function(){var D=_.N.apply(this,arguments)||this;D.tooltip=null;D.data=null;D.id="";D.active=!1;D.icon="";D.disabled=!1;D.showTooltip=!1;D.useToggledActiveState=!0;D.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return D};
_.n(pR,_.N);_.u=pR.prototype;
_.u.dataChanged=function(){var D;((D=this.data)==null?0:D.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,_.zm)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var Y;if((Y=this.data)==null?0:Y.disabled)this.disabled=!0};
_.u.computeId=function(D){return D};
_.u.computeIcon=function(D,Y){if(!D)return"";if(this.useToggledActiveState)return"yt-icons:"+D.toLowerCase();var R,Z;return Y&&((R=this.data)==null?0:(Z=R.toggledIcon)==null?0:Z.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+D.toLowerCase()};
_.u.logPDGEntryPoint=function(){_.tmj(_.jI("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")};
_.u.immediatelyShowTooltip=function(){var D=_.aU(this.hostElement).querySelector("#tooltip");D.animationDelay=0;D.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};D.show()};
_.u.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.u.onClick=function(D){var Y;((Y=this.data)==null?0:Y.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(),D.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.MX(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.u.computeShowTooltip=function(D,Y){return!!(D&&D.tooltip&&Y)};
_.u.maybeUpdateTooltipText=function(){var D=this,Y;if((Y=this.data)==null?0:Y.tooltip){var R=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.zm)(D.tooltip).textContent=R},250)}};
_.u.handleLiveChatActions=function(D){var Y=this;D.length&&(this.id!=="creator"&&this.id!=="product-picker"||D.forEach(function(R){(R=Y.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",R))&&R.durationSec===R.fullDurationSec&&Y.startBubble(Y.colorFromDecimal(R.startBackgroundColor))}))};
_.u.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.u.startBubble=function(D){_.SN(this.hostElement,{"--yt-live-chat-monetization-button-glow":D});this.hostElement.setAttribute("bubble","")};
_.u.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.u.colorFromDecimal=function(D){typeof D==="string"&&(D=Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
pR.prototype.onAnimationEnd=pR.prototype.onAnimationEnd;pR.prototype.disabledChanged=pR.prototype.disabledChanged;pR.prototype.dataChanged=pR.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],pR.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.QA.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],pR.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pR.prototype,"data",void 0);_.q([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],pR.prototype,"id",void 0);_.q([_.y({notify:!0,reflectToAttribute:!0}),_.x("design:type",Object)],pR.prototype,"active",void 0);
_.q([_.y({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.x("design:type",Object)],pR.prototype,"icon",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],pR.prototype,"disabled",void 0);_.q([_.y({computed:"computeShowTooltip(data, disabled)"}),_.x("design:type",Object)],pR.prototype,"showTooltip",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],pR.prototype,"useToggledActiveState",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pR.prototype,"dataChanged",null);_.q([_.Gm("disabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pR.prototype,"disabledChanged",null);_.q([_.Fv("animationend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],pR.prototype,"onAnimationEnd",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],pR);
_.L(pR,"yt-live-chat-icon-toggle-button-renderer",function(){if(XZT===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;sJB===void 0&&(sJB=document.createElement("template"));var Z=sJB;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);XZT=D}D=XZT;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var uBf;var aGG;var EO=function(){return _.N.apply(this,arguments)||this};
_.n(EO,_.N);EO.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q([_.y(),_.x("design:type",Object)],EO.prototype,"data",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],EO);
_.L(EO,"yt-live-chat-message-input-prompt-header-renderer",function(){if(aGG===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;uBf===void 0&&(uBf=document.createElement("template"));var Z=uBf;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);aGG=D}D=aGG;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Mfy;var CTN;var WSJ;var zEo;var SNT;var Tgf;var jJZ=function(){return _.N.apply(this,arguments)||this};
_.n(jJZ,_.N);_.q([_.y(),_.x("design:type",Object)],jJZ.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],jJZ);
_.L(jJZ,"yt-live-chat-message-subtext-renderer",function(){if(Tgf===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;SNT===void 0&&(SNT=document.createElement("template"));var Z=SNT;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Tgf=D}D=Tgf;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var gE=function(){var D=_.N.apply(this,arguments)||this;D.subtextOnBottom=!1;D.buttonOverrides={style:"mono",type:"tonal"};return D};
_.n(gE,_.N);gE.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gE.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],gE.prototype,"subtextOnBottom",void 0);_.q([_.y(),_.x("design:type",Object)],gE.prototype,"buttonOverrides",void 0);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],gE);
_.L(gE,"yt-live-chat-message-renderer",function(){if(zEo===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;WSJ===void 0&&(WSJ=document.createElement("template"));var Z=WSJ;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);zEo=D}D=zEo;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var IGN;var FS7;var dE=function(){var D=_.N.apply(this,arguments)||this;D.isRemovable=!1;D.hasPrefilledText=!1;D.isInputDirty=!1;D.overCharacterLimit=!1;D.underCharacterLimit=!1;D.showErrorMessage=!1;return D};
_.n(dE,_.N);_.u=dE.prototype;_.u.computeId=function(){return this.data.id};
_.u.computeInputData=function(){return this.data.inputData};
_.u.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.u.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.u.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.u.getLiveChatRichMessageInput=function(){return _.aU(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.u.clearInput=function(){_.aU(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.u.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.u.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.u.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.u.handleTextInputCharCountChanged=function(D){D=D.detail&&D.detail.characterCount;D!==void 0&&(this.characterCount=D,D!==0&&(this.isInputDirty=!0))};
_.u.onInputFocusOut=function(){this.isInputDirty=!0};
_.u.onClickCloseButton=function(){_.MX(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
dE.prototype.handleTextInputCharCountChanged=dE.prototype.handleTextInputCharCountChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dE.prototype,"data",void 0);_.q([_.y({computed:"computeId(data.id)"}),_.x("design:type",String)],dE.prototype,"id",void 0);_.q([_.y({computed:"computeInputData(data.inputData)"}),_.x("design:type",Object)],dE.prototype,"inputData",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.x("design:type",Object)],dE.prototype,"isRemovable",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.x("design:type",Object)],dE.prototype,"hasPrefilledText",void 0);_.q([_.y({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.x("design:type",Number)],dE.prototype,"charactersRemaining",void 0);
_.q([_.y(),_.x("design:type",Number)],dE.prototype,"characterCount",void 0);_.q([_.y(),_.x("design:type",Object)],dE.prototype,"isInputDirty",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.x("design:type",Object)],dE.prototype,"overCharacterLimit",void 0);_.q([_.y({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.x("design:type",Object)],dE.prototype,"underCharacterLimit",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.x("design:type",Object)],dE.prototype,"showErrorMessage",void 0);_.q([_.Fv("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dE.prototype,"handleTextInputCharCountChanged",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],dE);
_.L(dE,"yt-live-chat-poll-editor-input",function(){if(FS7===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;IGN===void 0&&(IGN=document.createElement("template"));var Z=IGN;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);FS7=D}D=FS7;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var GoE;var Vff;var fGS={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},iL=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_button_rework_with_live");D.closeButtonOverrides={iconPosition:"icon-only"};D.startButtonOverrides={style:"mono",type:"filled"};D.addOptionButtonOverrides={style:"mono",type:"text"};return D};
_.n(iL,_.N);_.u=iL.prototype;
_.u.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"}}}}};
_.u.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var D;_.A((D=this.data)==null?void 0:D.startButton,_.qv)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.u.computeId=function(){return this.data&&this.data.id||""};
_.u.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.u.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.u.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.u.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.u.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var D=0;D<this.pollEditorInfoWithDefaults.minPollOptions;D++)this.addPollOptionData()};
_.u.getIsValidPoll=function(){var D=this;if(!this.pollEditorInfoWithDefaults)return!1;var Y=this.pollEditorInfoWithDefaults,R=Y.minPollOptionChars,Z=Y.maxPollOptionChars,t=Y.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>Y.maxPollQuestionChars)return!1;Y=_.aU(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(Y).every(function(X,M){X=X.characterCount;!X&&t[M]&&(X=D.ytRendererBehavior.getSimpleString(t[M]).length);return X!==void 0&&X>=R&&X<=Z})};
_.u.isValidPollChanged=function(){var D;_.A((D=this.data)==null?void 0:D.startButton,_.qv)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.u.addPollOptionData=function(){var D=this.pollEditorInfoWithDefaults,Y=D.maxPollOptionChars,R=D.optionPlaceholderText,Z=D.customOptionPlaceholderText,t=D.pollOptionData;this.currentNumPollOptions>=D.maxPollOptions||(D={liveChatPollOptionInput:{inputData:{placeholder:Z[this.currentNumPollOptions]||R,maxCharacterLimit:Y},maxCharacterLimit:Y,minCharacterLimit:D.minPollOptionChars,hasPrefilledText:!!Z[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=D.minPollOptions}},t.charCountErrorText&&
(D.liveChatPollOptionInput.charCountErrorText=t.charCountErrorText),t.charsRemainingAltLabel&&(D.liveChatPollOptionInput.charsRemainingAltLabel=t.charsRemainingAltLabel),t.removeOptionAltText&&(D.liveChatPollOptionInput.removeOptionAltText=t.removeOptionAltText),this.push("pollOptionsData",D),t=Array.from(_.aU(_.aU(this.hostElement).querySelector("#poll-options")).children),t.forEach(function(X,M){X.polymerController.set("data.id",M)}),_.aU(t[t.length-1]).querySelector("#input").focus())};
_.u.getPollOptionInputValues=function(){var D=this,Y=[],R=_.aU(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Z=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(R).forEach(function(t,X){var M=null;t=t.getLiveChatRichMessageInput();var W;(t==null?0:(W=t.textSegments)==null?0:W.length)?M=_.Qv(t):Z[X]&&(M=D.formattedStringToLiveChatRichMessageInput(Z[X]));Y.push(M)});
return Y};
_.u.requestCreateAndStartPoll=function(D){var Y=this.getPollOptionInputValues();if(!Y.some(function(Z){return!Z})){Y={optionText:Y};
var R=_.aU(_.aU(this.hostElement).querySelector("#poll-question")).firstChild;R&&R.liveChatRichMessageInput&&(Y.questionText=_.Qv(R.liveChatRichMessageInput));_.zA(this.hostElement,[D,Y])}};
_.u.selectedChanged=function(){if(this.selected){var D=_.aU(_.aU(this.hostElement).querySelector("#start-button")).firstElementChild;if(D){var Y;(Y=_.aU(D).querySelector("#button")||_.MB(D).querySelector("button"))==null||Y.focus()}}};
_.u.handleTextInputChanged=function(D){var Y;((Y=D.target)==null?void 0:Y.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=D.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.u.handleStartButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),(D=D.detail.args[1])&&this.requestCreateAndStartPoll(D))};
_.u.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.u.handleServiceRequestCompleted=function(D){this.createPollRequestInFlight=!1;(D=D.detail&&D.detail.data)&&D.success&&(_.MX(this.hostElement,"picker-cancelled"),_.CX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.u.onCloseClick=function(){_.MX(this.hostElement,"picker-cancelled");_.CX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.u.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.u.handlePollEditorInputClosed=function(D){var Y=this.pollOptionsData.findIndex(function(R){return R.liveChatPollOptionInput.id===D.detail.id});
this.splice("pollOptionsData",Y,1);this.isValidPoll=this.getIsValidPoll()};
_.u.onPickerCancelled=function(){this.reset()};
_.u.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var D=_.aU(_.aU(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.setLiveChatRichMessageInput(null);if(D=_.aU(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){D=_.a(Array.from(D));for(var Y=D.next();!Y.done;Y=D.next())Y.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.u.formattedStringToLiveChatRichMessageInput=function(D){return D.simpleText?{text_segments:[D.simpleText]}:{text_segments:D.runs}};
_.YF.Object.defineProperties(iL.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(fGS,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
iL.prototype.onPickerCancelled=iL.prototype.onPickerCancelled;iL.prototype.handlePollEditorInputClosed=iL.prototype.handlePollEditorInputClosed;iL.prototype.handleServiceRequestCompleted=iL.prototype.handleServiceRequestCompleted;iL.prototype.handleServiceRequestSent=iL.prototype.handleServiceRequestSent;iL.prototype.handleTextInputChanged=iL.prototype.handleTextInputChanged;iL.prototype.selectedChanged=iL.prototype.selectedChanged;iL.prototype.isValidPollChanged=iL.prototype.isValidPollChanged;
iL.prototype.shouldInitializePollChanged=iL.prototype.shouldInitializePollChanged;iL.prototype.dataChanged=iL.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iL.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iL.prototype,"modern",void 0);
_.q([_.y(),_.x("design:type",Object)],iL.prototype,"closeButtonOverrides",void 0);_.q([_.y(),_.x("design:type",Object)],iL.prototype,"startButtonOverrides",void 0);_.q([_.y(),_.x("design:type",Object)],iL.prototype,"addOptionButtonOverrides",void 0);_.q([_.y({computed:"computeId(data.id)",reflectToAttribute:!0}),_.x("design:type",String)],iL.prototype,"id",void 0);_.q([_.y({value:function(){return[]}}),
_.x("design:type",Array)],iL.prototype,"pollOptionsData",void 0);_.q([_.b("pollEditorInfoWithDefaults"),_.x("design:type",Object),_.x("design:paramtypes",[])],iL.prototype,"pollQuestionData",null);_.q([_.y({value:0}),_.x("design:type",Number)],iL.prototype,"pollQuestionCharacterCount",void 0);_.q([_.b("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],iL.prototype,"pollQuestionCharactersRemaining",null);
_.q([_.y({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.x("design:type",Boolean)],iL.prototype,"overQuestionCharacterLimit",void 0);_.q([_.b("data.pollEditorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],iL.prototype,"pollEditorInfoWithDefaults",null);_.q([_.y({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.x("design:type",Number)],iL.prototype,"currentNumPollOptions",void 0);
_.q([_.y({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.x("design:type",Boolean)],iL.prototype,"hasMaxNumPollOptions",void 0);_.q([_.b("pollEditorInfoWithDefaults","pollOptionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],iL.prototype,"shouldInitializePoll",null);_.q([_.y(),_.x("design:type",Object)],iL.prototype,"isValidPoll",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],iL.prototype,"createPollRequestInFlight",void 0);_.q([_.y(),_.x("design:type",Object)],iL.prototype,"selected",void 0);_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.x("design:type",Boolean)],iL.prototype,"showQuestionErrorMessage",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iL.prototype,"dataChanged",null);_.q([_.Gm("shouldInitializePoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iL.prototype,"shouldInitializePollChanged",null);_.q([_.Gm("isValidPoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iL.prototype,"isValidPollChanged",null);
_.q([_.Gm("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iL.prototype,"selectedChanged",null);_.q([_.Fv("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iL.prototype,"handleTextInputChanged",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iL.prototype,"handleServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iL.prototype,"handleServiceRequestCompleted",null);
_.q([_.Fv("yt-live-chat-poll-editor-input-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iL.prototype,"handlePollEditorInputClosed",null);_.q([_.Fv("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iL.prototype,"onPickerCancelled",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],iL);
_.L(iL,"yt-live-chat-poll-editor-panel-renderer",function(){if(Vff===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;GoE===void 0&&(GoE=document.createElement("template"));var Z=GoE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Vff=D}D=Vff;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var eEy;var AfS;var OO=function(){return _.N.apply(this,arguments)||this};
_.n(OO,_.N);OO.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
OO.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.YF.Object.defineProperties(OO.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(D=this.data)==null?void 0:(Y=D.title)==null?void 0:Y.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.HL((D=this.data)==null?void 0:D.onTapCommand)}}});
_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],OO.prototype,"ytEndpointBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],OO.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],OO.prototype,"itemId",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OO.prototype,"hasPromotion",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],OO.prototype,"innertubeCommand",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],OO);
_.L(OO,"yt-live-chat-product-picker-panel-item-view-model",function(){if(AfS===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;eEy===void 0&&(eEy=document.createElement("template"));var Z=eEy;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);AfS=D}D=AfS;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var n7S;var rfT;var cY=function(){var D=_.N.apply(this,arguments)||this;D.id="product-picker";D.selected=!1;D.closeButtonId="close-button";D.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return D};
_.n(cY,_.N);_.u=cY.prototype;_.u.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.u.observeSelected=function(){this.selected&&this.hostElement.focus();var D=_.aU(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");D.length&&D[0].focus()};
_.u.onCloseBuyFlow=function(){_.MX(this.hostElement,"picker-cancelled")};
_.u.onCloseClick=function(){_.MX(this.hostElement,"picker-cancelled");var D;((D=this.data)==null?0:D.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.A(this.data.closeButton,_.QX))};
_.u.onCloseEngageWithAudienceEditorPanels=function(){_.MX(this.hostElement,"picker-cancelled")};
cY.prototype.observeSelected=cY.prototype.observeSelected;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],cY.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cY.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cY.prototype,"id",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cY.prototype,"selected",void 0);_.q([_.y(),_.x("design:type",Object)],cY.prototype,"closeButtonId",void 0);_.q([_.Gm("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cY.prototype,"observeSelected",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],cY);
_.L(cY,"yt-live-chat-product-picker-panel-view-model",function(){if(rfT===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;n7S===void 0&&(n7S=document.createElement("template"));var Z=n7S;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);rfT=D}D=rfT;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var wZJ;var $yS;var DZ=function(){var D=_.N.apply(this,arguments)||this;D.iconId="";D.icon="";D.disabled=!1;D.systemIcons=_.f("kevlar_system_icons");return D};
_.n(DZ,_.N);_.u=DZ.prototype;_.u.computeIconId=function(D){return D&&D.icon&&D.icon.iconType?D.icon.iconType.toLowerCase():""};
_.u.computeIcon=function(D){return D&&D.icon&&D.icon.iconType?(D=D.icon.iconType.toLowerCase(),(D.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+D):""};
_.u.computeDisabled=function(D){return!!D};
_.u.computeCommand=function(D,Y){return Y?void 0:D};
_.u.computeTooltip=function(D,Y){return Y&&D?D:""};
_.u.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.YF.Object.defineProperties(DZ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D="",Y,R,Z;if((Y=this.data)==null?0:(R=Y.text)==null?0:(Z=R.runs)==null?0:Z.length)D=this.data.text.runs[0].text||"";else{var t,X;if((t=this.data)==null?0:(X=t.text)==null?0:X.simpleText)D=this.data.text.simpleText}var M,W,z;if((M=this.data)==null?0:(W=M.subtext)==null?0:(z=W.runs)==null?0:z.length)D&&(D+=". "),D+=this.data.subtext.runs[0].text||"";else{var I,F;if((I=this.data)==null?0:(F=I.subtext)==
null?0:F.simpleText)D&&(D+=". "),D+=this.data.subtext.simpleText}return D}}});
_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],DZ.prototype,"ytEndpointBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DZ.prototype,"data",void 0);_.q([_.y({computed:"computeIconId(data)",reflectToAttribute:!0}),_.x("design:type",Object)],DZ.prototype,"iconId",void 0);
_.q([_.y({computed:"computeIcon(data)",reflectToAttribute:!0}),_.x("design:type",Object)],DZ.prototype,"icon",void 0);_.q([_.y({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.x("design:type",Object)],DZ.prototype,"disabled",void 0);_.q([_.y({computed:"computeCommand(data.command, disabled)"}),_.x("design:type",Object)],DZ.prototype,"command",void 0);_.q([_.y({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.x("design:type",String)],DZ.prototype,"tooltip",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],DZ.prototype,"systemIcons",void 0);_.q([_.b("data.text","data.subtext"),_.y(),_.x("design:type",String),_.x("design:paramtypes",[])],DZ.prototype,"ariaLabel",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],DZ);
_.L(DZ,"yt-live-chat-product-button-renderer",function(){if($yS===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;wZJ===void 0&&(wZJ=document.createElement("template"));var Z=wZJ;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);$yS=D}D=$yS;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var v7f;var o7B;var Yi=function(){var D=_.N.apply(this,arguments)||this;D.selected=!1;D.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 D};
_.n(Yi,_.N);_.u=Yi.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.computeId=function(D){return D.id||""};
_.u.onCloseClick=function(){_.MX(this.hostElement,"picker-cancelled")};
_.u.observeSelected=function(){this.selected&&this.hostElement.focus();var D=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");D.length&&D[0].focus()};
_.u.onCloseBuyFlow=function(){_.MX(this.hostElement,"picker-cancelled")};
_.u.onCloseEngageWithAudienceEditorPanels=function(){_.MX(this.hostElement,"picker-cancelled")};
Yi.prototype.observeSelected=Yi.prototype.observeSelected;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Yi.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yi.prototype,"data",void 0);
_.q([_.y({computed:"computeId(data)",reflectToAttribute:!0}),_.x("design:type",String)],Yi.prototype,"id",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Yi.prototype,"selected",void 0);_.q([_.Gm("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yi.prototype,"observeSelected",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Yi);
_.L(Yi,"yt-live-chat-product-picker-renderer",function(){if(o7B===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;v7f===void 0&&(v7f=document.createElement("template"));var Z=v7f;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);o7B=D}D=o7B;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var b$J;var yf$;var NgN;var lGN;var RB=function(){return _.N.apply(this,arguments)||this};
_.n(RB,_.N);RB.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()};
RB.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
RB.prototype.created=function(){this.ids={background:_.EZ(),maskOne:_.EZ(),maskTwo:_.EZ(),gradient:_.EZ(),largeBackground:_.EZ(),largeGradientOne:_.EZ(),largeGradientTwo:_.EZ(),largeGradientPath:_.EZ()}};
RB.prototype.maybeLoadAnimationBackground=RB.prototype.maybeLoadAnimationBackground;_.q([_.y({value:!1}),_.x("design:type",Boolean)],RB.prototype,"useLargeBackground",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],RB.prototype,"useAnimationBackground",void 0);_.q([_.y({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.x("design:type",Boolean)],RB.prototype,"useRegularBackground",void 0);
_.q([_.y(),_.x("design:type",Object)],RB.prototype,"ids",void 0);_.q([_.y(),_.x("design:type",Object)],RB.prototype,"lottieAnimation",void 0);_.q([_.fr("#animation-background"),_.x("design:type",HTMLDivElement)],RB.prototype,"animationBackground",void 0);_.q([_.Gm("useAnimationBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RB.prototype,"maybeLoadAnimationBackground",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],RB);
_.L(RB,"yt-live-interactivity-component-background",function(){if(lGN===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;NgN===void 0&&(NgN=document.createElement("template"));var Z=NgN;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);lGN=D}D=lGN;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var ZZ=function(){var D=_.N.apply(this,arguments)||this;D.characterCount=0;D.showInputErrorMessage=!1;D.startQnaRequestInFlight=!1;D.modern=_.f("web_button_rework_with_live");D.buttonOverrides={style:"mono",type:"filled"};D.closeButtonOverrides={iconPosition:"icon-only"};D.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return D};
_.n(ZZ,_.N);_.u=ZZ.prototype;
_.u.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]]"}}}}}};
_.u.onCharacterCountChanged=function(D){var Y,R,Z,t,X=(R=_.A(this==null?void 0:(Y=this.data)==null?void 0:Y.creatorCallForQuestions,CkT))==null?void 0:(Z=R.inputField)==null?void 0:(t=Z.liveChatTextInputFieldRenderer)==null?void 0:t.maxCharacterLimit,M,W;X!=null&&(D==null?void 0:(M=D.detail)==null?void 0:M.characterCount)!=null&&_.A(this==null?void 0:(W=this.data)==null?void 0:W.startButton,_.qv)&&(Y=D.detail.characterCount>X,this.set("data.startButton.buttonRenderer.isDisabled",D.detail.characterCount===
0||Y),this.showInputErrorMessage=Y)};
_.u.onCloseClick=function(){_.MX(this.hostElement,"picker-cancelled");_.CX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.u.onPickerCancelled=function(){var D=_.aU(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.setLiveChatRichMessageInput(null)};
_.u.handleOpenQnaStartPanel=function(){var D=_.aU(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.focus()};
_.u.handleStartButtonAction=function(D){var Y=this;if(D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),D=D.detail.args[1])){var R=_.aU(this.hostElement).querySelector("#qna-creator-text-input-field"),Z;(R==null?0:(Z=R.liveChatRichMessageInput)==null?0:Z.textSegments)&&R.liveChatRichMessageInput.textSegments.length!==0&&(Z={rich_message:_.Qv(R.liveChatRichMessageInput)},_.zA(this.hostElement,[D,Z]).then(function(){_.MX(Y.hostElement,"picker-cancelled")}))}};
_.u.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.u.handleServiceRequestCompleted=function(D){var Y;D=D==null?void 0:(Y=D.detail)==null?void 0:Y.data;(D==null?0:D.actions)&&D.actions.length>0?this.startQnaRequestInFlight=!1:_.CX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.u.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
ZZ.prototype.handleServiceRequestError=ZZ.prototype.handleServiceRequestError;ZZ.prototype.handleServiceRequestCompleted=ZZ.prototype.handleServiceRequestCompleted;ZZ.prototype.handleServiceRequestSent=ZZ.prototype.handleServiceRequestSent;ZZ.prototype.onPickerCancelled=ZZ.prototype.onPickerCancelled;ZZ.prototype.onCharacterCountChanged=ZZ.prototype.onCharacterCountChanged;_.q([_.y(),_.x("design:type",Object)],ZZ.prototype,"characterCount",void 0);
_.q([_.y(),_.x("design:type",Object)],ZZ.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ZZ.prototype,"showInputErrorMessage",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ZZ.prototype,"startQnaRequestInFlight",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ZZ.prototype,"modern",void 0);_.q([_.y(),_.x("design:type",Object)],ZZ.prototype,"buttonOverrides",void 0);
_.q([_.y(),_.x("design:type",Object)],ZZ.prototype,"closeButtonOverrides",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],ZZ.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.v(_.pO.YtLiveChatItemBehavior),_.x("design:type",_.Ec)],ZZ.prototype,"ytLiveChatItemBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ZZ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.Fv("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ZZ.prototype,"onCharacterCountChanged",null);_.q([_.Fv("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZZ.prototype,"onPickerCancelled",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZZ.prototype,"handleServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ZZ.prototype,"handleServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ZZ.prototype,"handleServiceRequestError",null);_.q([_.h({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],ZZ);
_.L(ZZ,"yt-live-chat-qna-start-panel-renderer",function(){if(yf$===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;b$J===void 0&&(b$J=document.createElement("template"));var Z=b$J;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);yf$=D}D=yf$;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Jfo;var kog;var tM=function(){return _.N.apply(this,arguments)||this};
_.n(tM,_.N);tM.prototype.dismiss=function(){_.MX(this.hostElement,"yt-live-chat-error-message-dismiss")};
tM.prototype.edit=function(){_.MX(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.q([_.y(),_.x("design:type",Object)],tM.prototype,"data",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],tM);
_.L(tM,"yt-live-chat-text-actions-error-message-renderer",function(){if(kog===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Jfo===void 0&&(Jfo=document.createElement("template"));var Z=Jfo;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);kog=D}D=kog;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Uyo;var KSG;var hES;var LSG;var sV=function(){var D=_.N.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.n(sV,_.N);sV.prototype.sendReaction=function(){var D,Y,R=((D=this.data)==null?void 0:D.emojiId)||((Y=this.data)==null?void 0:Y.emoteId),Z;R&&((Z=this.data)==null?0:Z.shouldTriggerAnimation)&&_.CX(this.hostElement,"yt-create-user-reaction-animation",[R]);var t;(D=_.HL((t=this.data)==null?void 0:t.onTap))&&_.Vu(D,this.hostElement);this.showNewnessDot&&_.CX(this.hostElement,"yt-hide-newness-dot")};
sV.prototype.onClick=function(D){(!D||D.clientX||D.clientY)&&this.sendReaction()};
sV.prototype.onKeyDown=function(D){D.key!=="Enter"&&D.key!==" "||D.repeat||this.sendReaction()};
_.YF.Object.defineProperties(sV.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!(((D=this.data)==null?0:D.emojiId)||((Y=this.data)==null?0:Y.emoteId))}}});
_.q([_.y(),_.x("design:type",Object)],sV.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],sV.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],sV.prototype,"newnessDotEligible",void 0);_.q([_.b("data.maybeShowNewnessDot"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sV.prototype,"showNewnessDot",null);_.q([_.b("data.emojiId","data.emoteId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sV.prototype,"useYtImage",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],sV);
_.L(sV,"yt-reaction-control-panel-button-view-model",function(){if(LSG===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;hES===void 0&&(hES=document.createElement("template"));var Z=hES;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);LSG=D}D=LSG;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var myE;var qNZ;var Xk=function(){var D=_.N.apply(this,arguments)||this;D.reactionControlPanelExpanded=!1;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.n(Xk,_.N);_.u=Xk.prototype;_.u.expandedButtonsChanged=function(){var D,Y;_.SN(this.hostElement,{"--expanded-buttons-height":((Y=(D=this.expandedButtonsData)==null?void 0:D.length)!=null?Y:0)*36+"px"})};
_.u.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}}};
_.u.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.u.onMouseLeave=function(){var D=this;this.collapseTimer=setTimeout(function(){D.reactionControlPanelExpanded=!1},500)};
_.u.onFocusIn=function(){this.onMouseEnter()};
_.u.onFocusOut=function(){this.onMouseLeave()};
_.u.onCollapsedButtonFocusIn=function(){var D=this;setTimeout(function(){var Y;(Y=D.expandedButtons.querySelector("button"))==null||Y.focus()},100)};
_.u.onCollapsedButtonFocusOut=function(D){D.stopPropagation()};
_.YF.Object.defineProperties(Xk.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var D,Y;return _.y7.unsafeClone((D=this.liveReactionsData)==null?void 0:D.emojiButtonData)||((Y=this.data)==null?void 0:Y.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((D=this.data)==null||!D.maybeShowNewnessDot)}}});
Xk.prototype.expandedButtonsChanged=Xk.prototype.expandedButtonsChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],Xk.prototype,"ytLiveChatReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Xk.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Xk.prototype,"reactionControlPanelExpanded",void 0);_.q([_.y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:BrB}),_.x("design:type",Object)],Xk.prototype,"liveReactionsData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Xk.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],Xk.prototype,"newnessDotEligible",void 0);
_.q([_.b("liveReactionsData","data.expandedButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xk.prototype,"expandedButtonsData",null);_.q([_.b("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.y({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],Xk.prototype,"showNewnessDot",null);_.q([_.fr("#expanded-buttons"),_.x("design:type",HTMLElement)],Xk.prototype,"expandedButtons",void 0);
_.q([_.Gm("expandedButtonsData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xk.prototype,"expandedButtonsChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Xk);
_.L(Xk,"yt-reaction-control-panel-view-model",function(){if(qNZ===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;myE===void 0&&(myE=document.createElement("template"));var Z=myE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);qNZ=D}D=qNZ;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var uW=new _.U1("yt-live-chat"),H$B=Date.parse("2024-7-24"),aB=function(){var D=_.N.apply(this,arguments)||this;D.emojiManager=_.BM;D.newnessDotEligible=!1;D.newnessDotImpressionCounted=!1;D.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return D};
_.n(aB,_.N);_.u=aB.prototype;_.u.emojiCustomizationEnabledChanged=function(){var D;((D=this.data)==null?0:D.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((D=uW.getCreationTime("emoji-customization-count"))&&D<H$B&&uW.set("emoji-customization-count","0"),D=Number(uW.get("emoji-customization-count"))||0,D<3&&(this.newnessDotEligible=!0,uW.set("emoji-customization-count",(D+1).toString())),this.newnessDotImpressionCounted=!0)};
_.u.hideNewnessDot=function(){this.newnessDotEligible=!1;uW.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.u.handleReactionsMute=function(D){var Y=_.K2(),R=_.TP(206221),Z={checkboxData:{state:D?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};Y&&_.dC(Y,R,Z);this.reactionsMuted=D};
_.u.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.u.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}}};
_.YF.Object.defineProperties(aB.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return(!((D=this.liveReactionsData)==null||!D.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
aB.prototype.liveReactionsSettingChanged=aB.prototype.liveReactionsSettingChanged;aB.prototype.emojiCustomizationEnabledChanged=aB.prototype.emojiCustomizationEnabledChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Ps),_.x("design:type",Object)],aB.prototype,"ytLiveChatReduxBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aB.prototype,"data",void 0);_.q([_.y(),_.x("design:type",_.xt)],aB.prototype,"emojiManager",void 0);_.q([_.y(),_.x("design:type",Object)],aB.prototype,"newnessDotEligible",void 0);_.q([_.y(),_.x("design:type",Object)],aB.prototype,"newnessDotImpressionCounted",void 0);
_.q([_.y({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:poy}),_.x("design:type",Boolean)],aB.prototype,"liveReactionsSetting",void 0);_.q([_.y({selectorArgs:["data.liveReactionsDataEntityKey"],selector:BrB}),_.x("design:type",Object)],aB.prototype,"liveReactionsData",void 0);_.q([_.y({value:function(){var D=_.f("enable_lwe_web_mute"),Y=uW.get("allow-reactions");return Y===void 0?!1:!Y&&D}}),
_.x("design:type",Boolean)],aB.prototype,"reactionsMuted",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],aB.prototype,"liveReactionsEnabled",null);_.q([_.Gm("data.emojiCustomizationEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aB.prototype,"emojiCustomizationEnabledChanged",null);
_.q([_.Gm("liveReactionsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aB.prototype,"liveReactionsSettingChanged",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],aB);
_.L(aB,"yt-reaction-control-panel-overlay-view-model",function(){if(KSG===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Uyo===void 0&&(Uyo=document.createElement("template"));var Z=Uyo;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);KSG=D}D=KSG;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var xyJ={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(D){var Y=this.$.pickers.selected;if(Y){_.aU(this.hostElement).removeAttribute(Y+"-open");var R="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(R="#picker-buttons",Y==="emoji"&&_.aU(this.hostElement).querySelector("#emoji-picker-button")&&(R="#emoji-picker-button"));if(R=_.aU(this.hostElement).querySelector(R).querySelector("#"+Y))R.active=!1}R=D;Y==D&&(R=null);Y!=
D&&_.aU(this.hostElement).setAttribute(D+"-open","");this.$.pickers.selected=R;_.CX(this.hostElement,"yt-live-chat-picker-changed",[R])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Mn=function(){var D=_.N.apply(this,arguments)||this;D.numSentMessages=0;D.timeoutDurationMs=0;D.timeoutMs=0;D.lastTimeoutTimeMs=0;D.pendingMessageId="";D.hasFiredInitialFocusActions=!1;D.isBeforeFocusEnabled=!0;D.id="";D.characterCount=0;D.maxCharacterLimit=0;D.remainingCharacterCount=0;D.inputExpanded=!1;D.buttonOverrides={iconPosition:"icon-only"};D.inReplyPanel=!1;D.countdownRatio=0;D.isTooltipVisible=!1;D.tooltipTimeout=1E4;D.systemIcons=_.f("kevlar_system_icons");D.tallerEmojiPicker=_.f("live_chat_taller_emoji_picker");
D.sendReplyMessageInFlight=!1;D.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"};D.onResize=function(){D.maybeToggleCharacterCount()};
return D};
_.n(Mn,_.N);_.u=Mn.prototype;
_.u.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"}}}};
_.u.attached=function(){window.addEventListener("resize",this.onResize)};
_.u.detached=function(){window.removeEventListener("resize",this.onResize)};
_.u.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.u.sendMessage=function(){var D=this,Y,R,Z,t;return _.C(function(X){if(D.sendDisabled)return X.return();D.isTooltipVisible&&_.CX(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(D.data.sendButton&&D.data.sendButton.buttonRenderer){D.input.completeEmojis();Y=D.data.sendButton.buttonRenderer.serviceEndpoint;if(!Y)return X.return();Z=((R=_.A(Y,_.kSV))==null?void 0:R.clientIdPrefix)||"";t={client_message_id:Z+String(D.numSentMessages++),rich_message:_.Qv(D.input.liveChatRichMessageInput)};
D.pendingMessageId=t.client_message_id;D.inReplyPanel&&(D.sendReplyMessageInFlight=!0);_.zA(D.hostElement,[Y,t]);D.input.setLiveChatRichMessageInput(null)}_.V9(X)})};
_.u.handleSendButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),this.sendMessage())};
_.u.onSendCompleted=function(D,Y){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(D=this.get("timeoutDurationUsec",Y.data))&&this.handleTimeout(Number(D)/1E3);this.errorMessage=this.get("errorMessage",Y.data);this.pendingMessageId=""};
_.u.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.CX(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.u.handlePickerButtonToggle=function(D){D=D.detail.targetId;this.ytPickerBehavior.togglePicker_(D);if(D==="emoji")this.input.focus();else if(D==="qna-start-panel"){var Y,R;(Y=_.aU(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(R=Y.querySelector("#qna-creator-text-input-field"))==null||R.focus()}};
_.u.onComponentReplaced=function(D){var Y,R;D.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((Y=D.replacement.liveChatMessageInputRenderer)==null?0:(R=Y.headerRenderer)==null?0:R.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.u.onEmojiSelect=function(D){this.input.focus();this.input.insertEmoji(D.detail)};
_.u.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.u.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.CX(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.CX(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.u.onOpenPopupAction=function(D,Y){var R=this;Y===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.CX(R.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.u.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.u.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.u.focusChanged=function(){this.maybeToggleCharacterCount()};
_.u.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var D=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",D>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.u.computeId=function(){return this.data&&this.data.targetId||""};
_.u.computeSendDisabled=function(D,Y,R,Z){D=!!(!D||Y&&D>Y||Z);(Y=_.aU(this.hostElement).querySelector("#send-button"))&&Y.children.length&&(Y.children[0].disabled=D);return D};
_.u.handleTimeout=function(D){this.timeoutDurationMs=this.timeoutMs=D;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.u.updateTimeout=function(D){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(D-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=D,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.u.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.u.onErrorMessageEdit=function(D){this.input.setLiveChatRichMessageInput(D.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.u.errorMessageChanged=function(){var D=this;_.BE(function(){_.CX(D.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.u.computeAuthorNameColor=function(D){var Y;if(_.f("live_chat_author_name_color_usernames")&&(D==null?0:(Y=D.authorName)==null?0:Y.simpleText))return _.ror(_.wSb(D.authorName.simpleText));if(_.f("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.ror(_.TD(D.authorSeedColorArgb));if(_.f("live_chat_colored_usernames"))return"#cc0000";var R;return _.f("live_chat_simple_color_usernames")&&(D==null?0:(R=D.authorName)==null?0:R.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.TD(D.authorUsernameColorDark):_.TD(D.authorUsernameColorLight):""};
_.u.onIsTooltipVisibleChanged=function(){var D=_.aU(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){D.hidden=!1;D.setAttribute("role","alert")},0):(D.hidden=!0,D.removeAttribute("role"))};
_.u.onFocusedChanged=function(D){this.inputFocused=D.detail.value};
_.YF.Object.defineProperties(Mn.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 D;return!((D=this.data)==null||!D.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.pickers)==null?void 0:Y.find(function(R){return R.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return D?this.ytRendererBehavior.getSimpleString(D):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Mn.prototype.onIsTooltipVisibleChanged=Mn.prototype.onIsTooltipVisibleChanged;Mn.prototype.errorMessageChanged=Mn.prototype.errorMessageChanged;Mn.prototype.onErrorMessageEdit=Mn.prototype.onErrorMessageEdit;Mn.prototype.onErrorMessageDismiss=Mn.prototype.onErrorMessageDismiss;Mn.prototype.focusChanged=Mn.prototype.focusChanged;Mn.prototype.characterCountChanged=Mn.prototype.characterCountChanged;Mn.prototype.onEmojiSelect=Mn.prototype.onEmojiSelect;Mn.prototype.handlePickerButtonToggle=Mn.prototype.handlePickerButtonToggle;
Mn.prototype.onSendError=Mn.prototype.onSendError;Mn.prototype.onSendCompleted=Mn.prototype.onSendCompleted;Mn.prototype.sendMessage=Mn.prototype.sendMessage;Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Mn.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(xyJ.YtPickerBehavior),_.x("design:type",Object)],Mn.prototype,"ytPickerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Mn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.QA.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],Mn.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"hasFiredInitialFocusActions",void 0);
_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"isBeforeFocusEnabled",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"data",void 0);_.q([_.y({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],Mn.prototype,"id",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"characterCount",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"maxCharacterLimit",void 0);
_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"remainingCharacterCount",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mn.prototype,"inputExpanded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Mn.prototype,"inputFocused",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Mn.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.q([_.y(),_.x("design:type",_.iu)],Mn.prototype,"participantsManager",void 0);
_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"buttonOverrides",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mn.prototype,"inReplyPanel",void 0);_.q([_.b("characterCount, maxCharacterLimit, countdownActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mn.prototype,"sendDisabled",null);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"countdownRatio",void 0);
_.q([_.b("countdownRatio"),_.x("design:type",Number),_.x("design:paramtypes",[])],Mn.prototype,"countdownStrokeDashOffset",null);_.q([_.b("countdownRatio"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mn.prototype,"countdownActive",null);_.q([_.b("data.interactionMessage"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mn.prototype,"hasInteractionMessage",null);
_.q([_.b("data.emojiPickerButton"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mn.prototype,"hasEmojiPickerButton",null);_.q([_.b("data, characterCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mn.prototype,"showAvatar",null);_.q([_.b("data.pickers"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Mn.prototype,"hasProductPickerPanelViewModel",null);
_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"errorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"genericErrorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"isTooltipVisible",void 0);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"tooltipTimeout",void 0);_.q([_.b("data.onInitialFocusCommand"),_.x("design:type",String),_.x("design:paramtypes",[])],Mn.prototype,"tooltipMessage",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mn.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mn.prototype,"tallerEmojiPicker",void 0);_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Mn.prototype,"authorNameColor",null);_.q([_.y(),_.x("design:type",Object)],Mn.prototype,"sendReplyMessageInFlight",void 0);_.q([_.fr("#input"),_.x("design:type",_.rgD)],Mn.prototype,"input",void 0);
_.q([_.fr("#count"),_.x("design:type",HTMLElement)],Mn.prototype,"count",void 0);_.q([_.fr("#input-container"),_.x("design:type",HTMLElement)],Mn.prototype,"inputContainer",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"dataChanged",null);_.q([_.Fv("yt-live-chat-send-message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Mn.prototype,"sendMessage",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.D4]),_.x("design:returntype")],Mn.prototype,"onSendCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"onSendError",null);
_.q([_.Fv("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Mn.prototype,"handlePickerButtonToggle",null);_.q([_.Fv("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Mn.prototype,"onEmojiSelect",null);
_.q([_.Gm("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"characterCountChanged",null);_.q([_.Gm("inputFocused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"focusChanged",null);_.q([_.Fv("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"onErrorMessageDismiss",null);
_.q([_.Fv("yt-live-chat-error-message-edit"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Mn.prototype,"onErrorMessageEdit",null);_.q([_.Gm("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"errorMessageChanged",null);_.q([_.Gm("isTooltipVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"onIsTooltipVisibleChanged",null);
_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Mn);
_.L(Mn,"yt-live-chat-message-input-renderer",function(){if(CTN===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Mfy===void 0&&(Mfy=document.createElement("template"));var Z=Mfy;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);CTN=D}D=CTN;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var PTT;var QJN;var C7=function(){var D=_.N.apply(this,arguments)||this;D.systemIcons=_.f("kevlar_system_icons");D.firedOnClickCommand=!1;D.inReplyPanel=!1;return D};
_.n(C7,_.N);
C7.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"}}}};
C7.prototype.onButtonToggle=function(D){D.target.disabled||this.ytPickerBehavior.togglePicker_(D.detail.targetId)};
C7.prototype.onClick=function(){var D=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.CX(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return D.firedOnClickCommand=!1},5E3))};
_.YF.Object.defineProperties(C7.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.panels)==null?void 0:Y.find(function(R){return R.liveChatProductPickerPanelViewModel}))!==void 0}}});
C7.prototype.onButtonToggle=C7.prototype.onButtonToggle;_.q([_.v(xyJ.YtPickerBehavior),_.x("design:type",Object)],C7.prototype,"ytPickerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],C7.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],C7.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Object)],C7.prototype,"firedOnClickCommand",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],C7.prototype,"inReplyPanel",void 0);_.q([_.b("data.pickers"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],C7.prototype,"hasProductPickerPanelViewModel",null);
_.q([_.Fv("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],C7.prototype,"onButtonToggle",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],C7);
_.L(C7,"yt-live-chat-restricted-participation-renderer",function(){if(QJN===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;PTT===void 0&&(PTT=document.createElement("template"));var Z=PTT;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);QJN=D}D=QJN;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var WT=function(){var D=_.N.apply(this,arguments)||this;D.genericErrorMessage=_.i0("Error, try again.");D.inReplyPanel=!1;D.hideBorder=!1;return D};
_.n(WT,_.N);WT.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}}}}}};
_.YF.Object.defineProperties(WT,{template:{configurable:!0,enumerable:!0,get:function(){return tfy()}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],WT.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],WT.prototype,"genericErrorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],WT.prototype,"inReplyPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],WT.prototype,"hideBorder",void 0);
_.q([_.Lr({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],WT);_.L(WT,"yt-live-chat-engagement-panel-input-renderer",function(){return tfy()},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var Bgg,pZN;Bgg=_.TP(115994);pZN=_.TP(115993);_.zu=function(D,Y,R){var Z=this;var t=R.dragDownAction;this.layer=0;this.JSC$22419_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$22419_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var X=_.n8();_.Ii(X,Bgg,this.layer);_.Ii(X,pZN,this.layer);this.dragDownAction=function(){t();_.pB(X,{visualElement:Z.fullscreen?Bgg:pZN})};
this.gesture=new _.T1(D,Y,this.JSC$22419_watchConfig,"pandown");this.attach()};
_.zu.prototype.attach=function(){this.gesture.attach()};
_.zu.prototype.detach=function(){this.gesture.detach()};
_.zu.prototype.update=function(D){this.fullscreen=D;this.gesture.config=D?this.JSC$22419_watchFullScreenConfig:this.JSC$22419_watchConfig};var E7J={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(D){if(D&&D.length==1&&Array.isArray(D[0].loggingUrls)){D=_.y7.unsafeClone(D[0]);var Y=this.macros||{},R=this.getAdModuleClient_();if(!R)return _.TA();D.loggingUrls.forEach(function(Z){if(Z.baseUrl){var t=Z.baseUrl;var X=Y;X=X===void 0?{}:X;t=R.getOptions().includes("replaceUrlMacros")?_.Hlz(R,"replaceUrlMacros",{url:t,additionalMapping:X}):t;Z.baseUrl=t}},this);
D=[D]}return _.zA(this.hostElement,D)},
getAdModuleClient_:function(){var D=_.sm(this);return D?(D=D.getPlayer())?new _.vz(D):null:null}}]};var g7T;var So=function(){var D=_.N.apply(this,arguments)||this;D.isCollapsed=!1;D.modernPanels=_.f("kevlar_watch_modern_panels");D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return D};
_.n(So,_.N);_.u=So.prototype;_.u.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.onDonateTap=function(){var D=this.get("data.donateButton.buttonRenderer.command");if(D){var Y=_.K2(),R=this.get("data.donateButton.buttonRenderer.trackingParams");Y&&R&&_.dC(Y,_.oT(R));this.ytOpenPopupBehavior.openPopup(D)}};
_.u.onShowMore=function(){this.isCollapsed=!1;var D=_.K2(),Y=this.get("data.expandButton.buttonRenderer.trackingParams");D&&Y&&_.dC(D,_.oT(Y))};
_.u.onShowLess=function(){this.isCollapsed=!0};
_.u.dataChanged=function(){_.SN(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.handleUpdate=function(D){if(D=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",D))this.set("data.startLabel",D.startLabel),this.set("data.endLabel",D.endLabel),this.set("data.progress",D.progress),this.set("data.amountRaisedLabel",D.amountRaisedLabel),this.dataChanged()};
_.u.handleOpenPopupAction=function(D){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",D)&&_.CX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.u.computeHeaderBackgroundUrl=function(D,Y){if(D)return Y?D.headerBackgroundDarkUrl:D.headerBackgroundUrl};
_.u.isProgressBarVisible=function(D){return!(!D||D.progress===void 0)};
_.u.headerBackgroundClass=function(){return _.JQ("HTML_DIR")==="rtl"?"flip":""};
So.prototype.dataChanged=So.prototype.dataChanged;_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],So.prototype,"ytOpenPopupBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],So.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],So.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],So.prototype,"isCollapsed",void 0);_.q([_.y({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.x("design:type",String)],So.prototype,"headerBackgroundUrl",void 0);_.q([_.y(),_.x("design:type",Boolean)],So.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],So.prototype,"modernPanels",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],So.prototype,"dataChanged",null);_.q([_.h({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],So);
_.L(So,"ytd-donation-shelf-renderer",function(){if(g7T!==void 0)return g7T;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return g7T=D},{mode:1});var dyy;var i$S=function(){return _.N.apply(this,arguments)||this};
_.n(i$S,_.N);_.q([_.y(),_.x("design:type",Object)],i$S.prototype,"data",void 0);_.q([_.h({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],i$S);
_.L(i$S,"ytd-donation-unavailable-renderer",function(){if(dyy!==void 0)return dyy;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dyy=D},{mode:1});var O$y;var Tu=function(){return _.N.apply(this,arguments)||this};
_.n(Tu,_.N);Tu.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Tu.prototype,"data",void 0);_.q([_.h({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Tu);
_.L(Tu,"ytd-limited-state-message-renderer",function(){if(O$y!==void 0)return O$y;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return O$y=D},{mode:1});var cfJ;var jo=function(){return _.N.apply(this,arguments)||this};
_.n(jo,_.N);jo.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
jo.prototype.onTap=function(D){var Y=this.data&&this.data.endpoint;Y&&!_.Yc(_.O$(D),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.MX(this.hostElement,"yt-navigate",{endpoint:Y})};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jo.prototype,"data",void 0);_.q([_.h({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],jo);
_.L(jo,"ytd-autotagging-metadata-renderer",function(){if(cfJ!==void 0)return cfJ;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return cfJ=D},{mode:1});var DcG;var IB=function(){return _.N.apply(this,arguments)||this};
_.n(IB,_.N);IB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],IB.prototype,"data",void 0);_.q([_.h({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],IB);
_.L(IB,"ytd-autotagging-metadata-row-renderer",function(){if(DcG!==void 0)return DcG;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return DcG=D},{mode:1});var Yxg;var RSJ;var Fk=function(){var D=_.N.apply(this,arguments)||this;D.engagementPanelContent=!1;return D};
_.n(Fk,_.N);Fk.prototype.computeHasDividerLine=function(D,Y){return D&&!Y};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fk.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.x("design:type",Boolean)],Fk.prototype,"hasDividerLine",void 0);_.q([_.y(),_.x("design:type",Object)],Fk.prototype,"engagementPanelContent",void 0);
_.q([_.h({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Fk);
_.L(Fk,"ytd-metadata-row-header-renderer",function(){if(RSJ!==void 0)return RSJ;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return RSJ=D},{mode:1});var ZjB;var Gu=function(){return _.N.apply(this,arguments)||this};
_.n(Gu,_.N);Gu.prototype.computeHasDividerLine=function(D){return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gu.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],Gu.prototype,"hasDividerLine",void 0);_.q([_.h({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Gu);
_.L(Gu,"ytd-metadata-row-renderer",function(){if(ZjB!==void 0)return ZjB;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return ZjB=D},{mode:1});var tXf;var Vg=function(){return _.N.apply(this,arguments)||this};
_.n(Vg,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Vg.prototype,"data",void 0);_.q([_.h({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Vg);
_.L(Vg,"ytd-metadata-with-image-row-renderer",function(){if(tXf!==void 0)return tXf;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return tXf=D},{mode:1});var sKf;var f7=function(){var D=_.N.apply(this,arguments)||this;D.rounded=!0;D.fixie=!1;D.fullWidth=!1;return D};
_.n(f7,_.N);_.u=f7.prototype;_.u.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.onDataChanged=function(){var D=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(Y){D.onEndpointLinkKeyPress(Y)}))};
_.u.onEndpointLinkKeyPress=function(D){D.target===this.endpointLink&&D.keyCode===13&&_.MX(this.hostElement,"click")};
_.u.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var D;if((D=this.data)==null?0:D.endpoint)_.Se(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.u.onYtNavigate=function(D){this.endpointHref||(D.stopPropagation(),D.preventDefault())};
_.u.onInformationButtonContainerClick=function(D){D.target.id!=="information-button-container"&&(D.stopPropagation(),D.preventDefault())};
_.u.computeStyle=function(D){return D};
_.u.computeIsThumbnailStyle=function(D){return D==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.u.computeThumbnailWidth=function(D){switch(D){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}};
_.u.computeThumbnailObjectFit=function(D){switch(D){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.YF.Object.defineProperties(f7.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
f7.prototype.onYtNavigate=f7.prototype.onYtNavigate;f7.prototype.onClick=f7.prototype.onClick;f7.prototype.onDataChanged=f7.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],f7.prototype,"componentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],f7.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],f7.prototype,"componentStyle",void 0);_.q([_.y({computed:"computeIsThumbnailStyle(data.style)"}),_.x("design:type",Boolean)],f7.prototype,"isThumbnailStyle",void 0);_.q([_.y({computed:"computeThumbnailObjectFit(data.style)"}),_.x("design:type",String)],f7.prototype,"thumbnailObjectFit",void 0);
_.q([_.y({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],f7.prototype,"thumbnailWidth",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],f7.prototype,"rounded",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],f7.prototype,"fixie",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],f7.prototype,"fullWidth",void 0);_.q([_.fr("#endpoint-link"),_.x("design:type",HTMLAnchorElement)],f7.prototype,"endpointLink",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f7.prototype,"onDataChanged",null);_.q([_.b("data.endpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],f7.prototype,"endpointHref",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],f7.prototype,"onClick",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],f7.prototype,"onYtNavigate",null);_.q([_.h({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],f7);
_.L(f7,"ytd-rich-metadata-renderer",function(){if(sKf!==void 0)return sKf;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return sKf=D},{mode:_.zD("kevlar_poly_si_batch_j075")?1:2});var XhS;var eo=function(){var D=_.N.apply(this,arguments)||this;D.fixie=!1;D.fullWidth=!1;return D};
_.n(eo,_.N);eo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
eo.prototype.computeHasDividerLine=function(D){return D};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eo.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],eo.prototype,"hasDividerLine",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],eo.prototype,"fixie",void 0);_.q([_.y(),_.x("design:type",Object)],eo.prototype,"fullWidth",void 0);
_.q([_.h({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],eo);
_.L(eo,"ytd-rich-metadata-row-renderer",function(){if(XhS!==void 0)return XhS;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return XhS=D},{mode:1});var AM=function(){var D=_.N.apply(this,arguments)||this;D.engagementPanelContent=!1;D.fixie=!1;D.fullWidth=!1;return D};
_.n(AM,_.N);
AM.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"}}}};
AM.prototype.computeCollapsibleItems=function(D,Y,R){return D===void 0||Y===void 0||R===void 0||R?[]:D.slice(Y)};
AM.prototype.computeAlwaysShownItems=function(D,Y){return D&&D.length?D.slice(0,Y):[]};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],AM.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],AM.prototype,"collapsed",void 0);
_.q([_.y({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.x("design:type",Array)],AM.prototype,"alwaysShownItems",void 0);_.q([_.y({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.x("design:type",Array)],AM.prototype,"collapsibleItems",void 0);_.q([_.y(),_.x("design:type",Object)],AM.prototype,"engagementPanelContent",void 0);_.q([_.y(),_.x("design:type",Object)],AM.prototype,"fixie",void 0);
_.q([_.y(),_.x("design:type",Object)],AM.prototype,"fullWidth",void 0);_.q([_.h({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],AM);
_.L(AM,"ytd-metadata-row-container-renderer",function(){if(Yxg!==void 0)return Yxg;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Yxg=D},{mode:1});var uxJ;var n7=function(){var D=_.N.apply(this,arguments)||this;D.currentPageUrl="";D.baseUrl="";D.isHiddenByUser=null;D.hidden=!1;D.showAboveScrim=!1;D.watchNextGrid=_.f("kevlar_watch_grid");D.modernButtons=_.f("web_modern_buttons");D.roundedContainer=!0;D.noBorder=!1;D.roundBackground=!_.f("live_chat_round_background_killswitch");D.overflowHideChat=_.f("live_chat_overflow_hide_chat");D.forceDarkTheme=!1;D.theaterWatchWhile=!1;D.isListeningForPlayerProgress=!1;D.JSC$22455_playerEvents=new Map;D.isFrameReady=
!1;D.player=null;D.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 D};
_.n(n7,_.N);_.u=n7.prototype;_.u.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.WC(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.u.created=function(){var D=this;this.handleIframeEventListener=function(Y){D.handleIframeEvent(Y)};
this.handleKeyboardEventListener=function(Y){D.handleKeyboardEvent(Y)};
this.JSC$22455_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22455_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22455_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22455_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22455_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.u.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()};
_.u.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};
_.u.computeBaseUrl=function(D){var Y="/live_chat";this.isChatReplay()&&(Y="/live_chat_replay");return _.tm(_.Zs(_.Rs(_.qC(D),Y),null),"").toString()};
_.u.dataChanged=function(){_.f("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.u.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var D=this.url;if(this.isChatReplay()&&this.player){var Y=Math.floor(this.player.getProgressState().current*1E3);D=_.xh(_.qC(D),"playerOffsetMs",Y.toString()).toString()}Y=this.chatframe;try{var R=D==="about:blank"?_.slE:_.Jf(D),Z=Y.contentDocument.location,t=_.K$(R);t!==void 0&&Z.replace(t)}catch(X){Y.src=D}}};
_.u.collapsedChanged=function(){_.MX(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.u.handleIframeEvent=function(D){if(D&&this.baseUrl.startsWith(D.origin)&&D.source===this.chatframe.contentWindow&&_.Bo(D.data))if(D.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(D);else if(D.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(D.data["yt-show-feedback-dialog"]){var Y=_.DH().resolve(_.cD(_.Ei4));if(Y){var R=D.ports,Z;R&&R.length&&(Z=function(){R[0].postMessage({})});
D=D.data["yt-show-feedback-dialog"];Y.showFeedbackDialog(D.customProductData,D.feedbackContent,Z,D.bucket)}}else if(D.data["yt-show-survey"])_.MX(this.hostElement,"yt-show-survey",D.data["yt-show-survey"]);else if(D.data["yt-purchase-membership"])_.DH().resolve(_.Yw).resolveCommand(D.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(D.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(D.data["yt-tunnel-out-live-service-request"]);else if(D.data["yt-user-activity"])_.YN();
else if(D.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(D.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(D.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(D.data["yt-open-popup"]);else if(D.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(D.data["yt-log-flow-logging-event-command"]);else if(D.data["yt-hide-live-chat"])this.onShowHideChat();else D.data["yt-report-moderation-state-log"]&&
this.player&&(Y={cpn:this.player.getVideoData().cpn},_.bo("liveChatBeingModerated",Y))};
_.u.attachLiveChatResponseVeTrackingParams=function(D){D=_.oT(D);var Y=_.K2(),R=_.mf("liveChatRenderer.trackingParams",this.data);Y&&R&&_.Qk(Y,_.oT(R),D)};
_.u.handleBuyflowMessages=function(D){var Y=D.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,R=D.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Z=D.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.yDM(_.Ra(_.iX),Y.replace(/-/g,"+").replace(/_/g,"/"),function(t){D.ports[0].postMessage({success:!0,buyFlowResponse:t})},void 0,function(t){D.ports[0].postMessage({success:!1,
error:t&&t.message||"Buyflow rejected without error."})},_.nX().get("hl"),void 0,function(){D.ports[0].postMessage({closed:!0})},R,Z)};
_.u.setupPlayerProgressRelay=function(){var D=this;if(!this.isListeningForPlayerProgress){var Y=_.XU();Y!=null&&Y.getPlayerPromise&&(Y.getPlayerPromise().then(function(R){D.playerApiReady(R)}),this.isListeningForPlayerProgress=!0)}};
_.u.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.u.playerApiReady=function(D){this.setPlayer(D)};
_.u.playerProgressHandler=function(){if(this.player){var D=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":D.current})}};
_.u.playerAdStartHandler=function(D){this.postToContentWindow({"yt-player-ad-start":D})};
_.u.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.u.playerStateChangeHandler=function(D){this.postToContentWindow({"yt-player-state-change":D})};
_.u.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22455_playerEvents);D&&(this.player=D,this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22455_playerEvents),_.MX(this.hostElement,"player-api-ready"))};
_.u.liveChatPageUrl=function(D,Y,R,Z){return!R||Y?"about:blank":R.liveChatRenderer?(Y=_.qC(this.currentPageUrl).JSC$10000_queryData_,mUN(Y),D=_.qC(D),Y.add("continuation",R.liveChatRenderer.continuations[0].reloadContinuationData.continuation),R=_.N3()==="USER_INTERFACE_THEME_DARK",(Z||R)&&Y.add("dark_theme","true"),_.Zs(D,Y),Z=_.qC(D.toString()),R=Z.JSC$10000_queryData_,"SESSION_INDEX"in _.NJ&&(R.add("authuser",_.JQ("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.NJ&&R.add("pageId",_.JQ("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.NJ&&R.add("sdc",_.JQ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Z.toString()):""};
_.u.isCollapsed=function(D,Y){return Y!==null?Y:this.isChatReplay()||D&&D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!0:D?D.liveChatRenderer?D.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.f("live_chat_hide_premiere_replay_message")||D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.u.isHidden=function(D,Y,R){var Z=Y&&Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage,t=Y&&Y.liveChatRenderer&&Y.liveChatRenderer.showHideButton,X=Y&&Y.liveChatRenderer&&Y.liveChatRenderer.showButton;return R&&D&&!Z&&!X||!R&&D&&!Z&&!t?!0:Y&&Y.liveChatRenderer&&Y.liveChatRenderer.initialDisplayState?Y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.u.computeButtonOverride=function(D,Y){if(D&&Y)return{type:"outline"}};
_.u.setCollapsedState=function(D){_.A(D,_.fv1)&&(this.isHiddenByUser=!!_.A(D,_.fv1).collapsed,!this.isHiddenByUser&&_.f("enable_teaser_framework_web_client")&&_.CX(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.u.forwardReduxActionToIframe=function(D){this.postToContentWindow({"yt-live-chat-forward-redux-action":D})};
_.u.onLoopRangeChange=function(D){this.showAboveScrim=!(D==null||!D.postId)};
_.u.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.u.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.u.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.u.sendDarkThemePostMessage=function(D){this.postToContentWindow({"yt-live-chat-set-dark-theme":D})};
_.u.onLiveChatBuyFlowCallback=function(D){this.postToContentWindow({"yt-live-chat-buy-flow-callback":D})};
_.u.handleKeyboardEvent=function(D){(0,_.y7.containsValue)(Lh$,D.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:D.type,keyCode:D.keyCode}})};
_.u.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.u.postToContentWindow=function(D){if(this.isFrameReady)try{var Y=window.location.protocol+"//"+window.location.host,R;(R=this.chatframe)!=null&&R.contentWindow?this.chatframe.contentWindow.postMessage(D,Y):_.Jk(new _.AT("Tried posting a message to an iframe with no content window",D))}catch(Z){_.Nb(Z)}};
_.u.shouldHideChatFrame=function(D){return D&&_.f("hide_live_chat_button_when_collapsed")};
_.YF.Object.defineProperties(n7.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.f("live_chat_overflow_hide_chat")||_.f("web_watch_chat_hide_button_killswitch"))return _.f("live_chat_overflow_hide_chat");var D,Y,R,Z;return!!((D=this.data)==null?0:(Y=D.liveChatRenderer)==null?0:(R=Y.header)==null?0:(Z=R.liveChatHeaderRenderer)==null?0:Z.collapseButton)}}});
n7.prototype.collapsedChanged=n7.prototype.collapsedChanged;n7.prototype.urlChanged=n7.prototype.urlChanged;n7.prototype.dataChanged=n7.prototype.dataChanged;n7.prototype.onShowHideChat=n7.prototype.onShowHideChat;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],n7.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],n7.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],n7.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],n7.prototype,"ytOpenPopupBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],n7.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],n7.prototype,"currentPageUrl",void 0);
_.q([_.y({computed:"computeBaseUrl(currentPageUrl,data)"}),_.x("design:type",Object)],n7.prototype,"baseUrl",void 0);_.q([_.y({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.x("design:type",String)],n7.prototype,"url",void 0);_.q([_.y(),_.x("design:type",Object)],n7.prototype,"isHiddenByUser",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.x("design:type",Object)],n7.prototype,"hidden",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.x("design:type",Boolean)],n7.prototype,"collapsed",void 0);_.q([_.y({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.x("design:type",Boolean)],n7.prototype,"hideChatFrame",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n7.prototype,"showAboveScrim",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n7.prototype,"watchNextGrid",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],n7.prototype,"modernButtons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n7.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n7.prototype,"noBorder",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],n7.prototype,"roundBackground",void 0);
_.q([_.y({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.x("design:type",Object)],n7.prototype,"toggleButtonOverride",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],n7.prototype,"overflowHideChat",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n7.prototype,"forceDarkTheme",void 0);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],n7.prototype,"enableShowWithoutHideChatButton",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],n7.prototype,"theaterWatchWhile",void 0);_.q([_.fr("#chatframe"),_.x("design:type",HTMLIFrameElement)],n7.prototype,"chatframe",void 0);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n7.prototype,"onShowHideChat",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n7.prototype,"dataChanged",null);
_.q([_.Gm("url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n7.prototype,"urlChanged",null);_.q([_.Gm("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n7.prototype,"collapsedChanged",null);_.q([_.h({is:"ytd-live-chat-frame",disableElementRegistration:!0})],n7);
_.L(n7,"ytd-live-chat-frame",function(){if(uxJ!==void 0)return uxJ;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return uxJ=D},{mode:1});var adG;var rA=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};return D};
_.n(rA,_.N);rA.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=_.HG(this.data.backgroundColor)))};
rA.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var D=this.getFormattedStringLoggingDirectives(this.data.headline);D&&this.rendererBehavior.logExplicitClick(D)}};
rA.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var D=this.getFormattedStringLoggingDirectives(this.data.description);D&&this.rendererBehavior.logExplicitClick(D)}};
rA.prototype.getFormattedStringLoggingDirectives=function(D){return D&&D.runs&&D.runs.length>0&&D.runs[0]&&D.runs[0].loggingDirectives?D.runs[0].loggingDirectives:null};
rA.prototype.dataChanged=rA.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rA.prototype,"rendererBehavior",void 0);_.q([_.v(E7J.YtMacroReplacementBehavior),_.x("design:type",Object)],rA.prototype,"macroReplacementBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rA.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],rA.prototype,"navigationEndpoint",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],rA.prototype,"enableColors",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rA.prototype,"modern",void 0);_.q([_.y(),_.x("design:type",Object)],rA.prototype,"buttonOverrides",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rA.prototype,"dataChanged",null);_.q([_.h({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],rA);
_.L(rA,"ytd-action-basic-immersive-content-renderer",function(){if(adG!==void 0)return adG;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return adG=D},{mode:1});var MXS;var C4N;var wA=function(){return _.N.apply(this,arguments)||this};
_.n(wA,_.N);wA.prototype.dataChanged=function(){var D;((D=this.data)==null?void 0:D.backgroundColor)!==void 0&&_.SN(this.hostElement,{"--bgu-color":_.HG(this.data.backgroundColor)})};
wA.prototype.onImageTileClick=function(){var D;((D=this.data)==null?0:D.navigationEndpoint)&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var Y;((Y=this.data)==null?0:Y.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.YF.Object.defineProperties(wA.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?void 0:D.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 D;return((D=this.data)==null?void 0:D.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;if(((D=this.data)==null?void 0:(Y=D.detailsLine)==null?void 0:Y.texts)!=null&&((R=this.data)==null?void 0:R.detailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.detailsLine.texts.map(function(t){return t.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;if(((D=this.data)==null?void 0:(Y=D.optionalDetailsLine)==null?void 0:Y.texts)!=null&&((R=this.data)==null?void 0:R.optionalDetailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.optionalDetailsLine.texts.map(function(t){return t.text}).join("")}return null}}});
wA.prototype.dataChanged=wA.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wA.prototype,"rendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],wA.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wA.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.backgroundColor"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wA.prototype,"hasBackgroundColor",null);
_.q([_.b("data.objectFit"),_.x("design:type",Object),_.x("design:paramtypes",[])],wA.prototype,"getObjectFit",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.tileRenderingStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wA.prototype,"hasTileMetadata",null);_.q([_.b("data.detailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],wA.prototype,"getSecondaryDetails",null);
_.q([_.b("data.optionalDetailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],wA.prototype,"getOptionalDetails",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wA.prototype,"dataChanged",null);_.q([_.h({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],wA);
_.L(wA,"ytd-image-tile-renderer",function(){if(C4N!==void 0)return C4N;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return C4N=D},{mode:1});var W_J;var $i=function(){return _.N.apply(this,arguments)||this};
_.n($i,_.N);$i.prototype.getOpenLinkIcon=function(){return _.f("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
$i.prototype.onSitelinkTap=function(){_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.f("kevlar_command_handler_migration_killswitch"))_.Se(this.hostElement,this.data.clickCommands,this.hostElement);else for(var D=_.a(this.data.clickCommands),Y=D.next();!Y.done;Y=D.next())this.ytComponentBehavior.resolveCommand(Y.value)};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],$i.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$i.prototype,"rendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$i.prototype,"data",void 0);_.q([_.h({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],$i);
_.L($i,"ytd-sitelink-renderer",function(){if(W_J!==void 0)return W_J;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return W_J=D},{mode:1});var vT=function(){var D=_.N.apply(this,arguments)||this;D.paddingFix=_.f("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.n(vT,_.N);vT.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"}}}};
vT.prototype.dataChanged=function(){var D=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;D.ytMacroReplacementBehavior.sendServiceRequestAction([Y])})};
vT.prototype.shouldHideFooter=function(D){return!(D&&_.f("use_ads_engagement_panel_desktop_footer_cta"))};
_.YF.Object.defineProperties(vT.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((Y=this.data)==null?void 0:Y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(R){var Z;return(Z=_.A(R,QzG))==null?void 0:Z.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((Y=this.data)==null?void 0:Y.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(R){var Z;return((Z=_.A(R,QzG))==null?void 0:Z.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
vT.prototype.dataChanged=vT.prototype.dataChanged;_.q([_.v(E7J.YtMacroReplacementBehavior),_.x("design:type",Object)],vT.prototype,"ytMacroReplacementBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vT.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],vT.prototype,"paddingFix",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vT.prototype,"removeBorderFromImageTiles",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vT.prototype,"useFooteredMetadataRenderingStyle",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vT.prototype,"dataChanged",null);_.q([_.h({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],vT);
_.L(vT,"ytd-action-engagement-panel-content-renderer",function(){if(MXS!==void 0)return MXS;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return MXS=D},{mode:1});var zS7;var Sxy=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;return _.S("ad-grid-card-image-full-metadata-view-model",{class:function(){var Z;return((Z=Y().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4}),_.BK(function(){return Y().interaction},R)),
"aria-label":function(){var Z,t;return(Z=Y().interaction)==null?void 0:(t=Z.accessibility)==null?void 0:t.label}},_.S("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(Z){return _.S(_.Fg,{data:Z.data,
customCommandResolver:R})}})),_.S("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.S(_.T,{cond:function(){return Y().headline},
then:function(Z){return _.S(_.y_,{text:Z,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.S(_.T,{cond:function(){return Y().detailsLine},
then:function(Z){return _.S("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.S(_.vK,{data:Z},{adDetailsLineViewModel:function(t){return _.S(_.CA,{data:t.data,customCommandResolver:R,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.S(_.T,{cond:function(){return Y().secondaryDetailsLine},
then:function(Z){return _.S("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.S(_.vK,{data:Z},{adDetailsLineViewModel:function(t){return _.S(_.CA,{data:t.data,customCommandResolver:R,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Pj");var T9N=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;return _.S("ad-grid-card-image-view-model",{class:function(){var Z;return((Z=Y().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4}),_.BK(function(){return Y().interaction},R)),
"aria-label":function(){var Z,t;return(Z=Y().interaction)==null?void 0:(t=Z.accessibility)==null?void 0:t.label}},_.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(Z){return _.S(_.Fg,{data:Z.data,
customCommandResolver:R})}}),_.S("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.S(_.vK,{data:function(){return Y().adCardBadge}},{adCardBadgeViewModel:_.W8z})))},"Qj");var jKG=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;return _.S("ad-grid-card-text-view-model",{class:function(){var Z;return((Z=Y().interaction)==null?0:Z.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4}),_.BK(function(){return Y().interaction},R)),
"aria-label":function(){var Z,t;return(Z=Y().interaction)==null?void 0:(t=Z.accessibility)==null?void 0:t.label}},_.S("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.S(_.T,{cond:function(){return Y().title},
then:function(Z){return _.S(_.y_,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.S("div",{class:function(){return _.f("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.S(_.G6,{each:function(){var Z;
return((Z=Y())==null?void 0:Z.descriptions)||[]},
keyBy:"INDEX"},function(Z){return _.S(_.y_,{text:Z,className:function(){return _.f("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.S("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.S(_.vK,{data:function(){return Y().moreInfoButton}},{adButtonViewModel:function(Z){return _.S(_.t8,{data:Z.data,
customCommandResolver:R})}})))},"Rj");var Id7=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;var Z=D.adGridCardCollectionStyle;return _.S("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(t){var X,M=(X=Y().interaction)==null?void 0:X.onFirstVisible;t&&M&&_.BL(M)},
showOption:_.R4})),style:function(){return"grid-template-columns: repeat("+tDE(Z?Z():Y().style)+", minmax(0, 1fr));"}},_.S(_.vK,{data:function(){var t;
return(t=Y())==null?void 0:t.gridCards}},{adGridCardImageViewModel:function(t){return _.S(T9N,{data:t.data,
customCommandResolver:R})},
adGridCardImageFullMetadataViewModel:function(t){return _.S(Sxy,{data:t.data,customCommandResolver:R})},
adGridCardTextViewModel:function(t){return _.S(jKG,{data:t.data,customCommandResolver:R})}}))},"Sj");_.at(_.RT(function(D){var Y=D.data;return _.S("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.tp(_.Zq({visibilityCallback:function(R){var Z,t=(Z=Y().interaction)==null?void 0:Z.onFirstVisible;R&&t&&_.BL(t)},
showOption:_.R4}),_.BK(function(){return Y().interaction},szS))},_.S("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.S(_.T,{cond:_.DzU("(min-width: "+((0,_.g6)()+_.mN)+"px)"),
then:function(){return _.S(_.vK,{data:function(){return Y().adGridCardCollection}},{adGridCardCollectionViewModel:function(R){return _.S(Id7,{data:R.data,
customCommandResolver:szS})}})},
else:function(){return _.S(_.vK,{data:function(){return Y().adGridCardCollection}},{adGridCardCollectionViewModel:function(R){return _.S(Id7,{data:R.data,
customCommandResolver:szS,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.S("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.S(_.vK,{data:function(){return Y().adButton}},{adButtonViewModel:function(R){return _.S(_.t8,{data:R.data,
customCommandResolver:szS})}})))},"Tj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;return _.S("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.tp(_.Zq({visibilityCallback:function(R){var Z,t=(Z=Y().interaction)==null?void 0:Z.onFirstVisible;R&&t&&_.BL(t)},
showOption:_.R4}),_.BK(function(){return Y().interaction},X4Z))},_.S("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.S(_.vK,{data:function(){if(_.DzU("(min-width: "+((0,_.g6)()+_.mN)+"px)")())var R=Y().adGridCardCollection;
else{R=Object.assign({},_.A(Y().adGridCardCollection,Bzf));var Z;R.gridCards!==void 0&&((Z=R.gridCards)==null?void 0:Z.length)>1?R.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":R.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";R={adGridCardCollectionViewModel:R}}return R}},{adGridCardCollectionViewModel:function(R){return _.S(Id7,{data:R.data,
customCommandResolver:X4Z})}})),_.S("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.S(_.vK,{data:function(){return Y().adButton}},{adButtonViewModel:function(R){return _.S(_.t8,{data:R.data,
customCommandResolver:X4Z})}})))},"Uj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.cs}});var oB=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return D};
_.n(oB,_.N);_.u=oB.prototype;_.u.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"}}}};
_.u.attached=function(){this.getDataFromPlayerAndRender()};
_.u.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.u.getDataFromPlayerAndRender=function(){var D=this,Y=_.sm(this.hostElement);Y&&Y.getPlayerPromise().then(function(R){D.getCachedDataAndListen(R)})};
_.u.getCachedDataAndListen=function(D){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=D)};
_.u.resolveCachedActions=function(){var D=_.mf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(D=D&&D())&&!_.y7.isEmpty(D)&&this.sendUpdateEngagementPanelAction(D);(D=(D=_.mf("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&D())&&!_.y7.isEmpty(D)&&this.sendChangeEngagementPanelVisibilityAction(D);(D=(D=_.mf("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&D())&&!_.y7.isEmpty(D)&&this.sendScrollToEngagementPanelCommand(D)};
_.u.sendUpdateEngagementPanelAction=function(D){var Y;_.CX(this.hostElement,"yt-update-engagement-panel-action",[(Y=_.y7.get(D,"action"))!=null?Y:D])};
_.u.sendChangeEngagementPanelVisibilityAction=function(D){_.CX(this.hostElement,"yt-change-engagement-panel-visibility-action",[D])};
_.u.sendScrollToEngagementPanelCommand=function(D){_.CX(this.hostElement,"yt-scroll-to-engagement-panel-command",[D])};
_.u.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.f("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Jk(Error("Bo"))};
oB.prototype.dataChanged=oB.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],oB.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],oB.prototype,"componentBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],oB.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],oB.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],oB.prototype,"player",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oB.prototype,"dataChanged",null);_.q([_.h({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],oB);
_.L(oB,"ytd-ads-engagement-panel-content-renderer",function(){if(zS7!==void 0)return zS7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return zS7=D},{mode:1});var F_f;var bW=function(){var D=_.N.apply(this,arguments)||this;D.player=null;D.JSC$22492_playerEvents=new Map;D.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return D};
_.n(bW,_.N);_.u=bW.prototype;_.u.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]]"}}}}}};
_.u.created=function(){this.player=null;this.JSC$22492_playerEvents=new Map;this.JSC$22492_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22492_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22492_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22492_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.u.attached=function(){var D=this,Y=_.sm();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));Y&&Y.getPlayerPromise().then(function(R){D.setPlayer(R);D.set("isPageLoad",!1)})};
_.u.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22492_playerEvents);this.set("player",D);D&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22492_playerEvents),D.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.u.onLoopRangeChange=function(D){var Y=_.DH().resolve(_.cD(_.Z4));if((!Y||Y.isOnWatch())&&this.hostElement.clientHeight){var R;!D&&((R=this.data)==null?0:R.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.u.onVideoProgress=function(D){var Y,R,Z=((Y=this.player)==null?void 0:(R=Y.getPresentingPlayerType)==null?void 0:R.call(Y))===2;this.isAdPlaying!==Z&&this.set("isAdPlaying",Z);var t;if(!Z&&(t=this.player)!=null&&t.getLoopRange()){R=this.player.getLoopRange();Y=R.startTimeMs;R=R.endTimeMs;Z=this.player.getProgressState(1).seekableStart;var X;Y<Z*1E3&&((X=this.data)==null?0:X.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
D=R<D*1E3;var M;((M=this.player)==null?0:M.getLoopRange())&&D&&this.player.seekTo(Y/1E3)}};
_.u.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.u.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.u.onYtDeleteClipEngagementPanelCommand=function(D){_.A(D,uEN).command&&this.ytComponentBehavior.resolveCommand(_.A(D,uEN).command)};
_.YF.Object.defineProperties(bW.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.i0("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],bW.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],bW.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bW.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],bW.prototype,"isAdPlaying",void 0);_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],bW.prototype,"isPageLoad",void 0);_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],bW.prototype,"isDarkTheme",void 0);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bW.prototype,"voteCount",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bW.prototype,"channelEndpoint",null);_.q([_.b("channelEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],bW.prototype,"channelHref",null);_.q([_.h({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],bW);
_.L(bW,"ytd-clip-attribution-renderer",function(){if(F_f!==void 0)return F_f;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return F_f=D},{mode:1});var Gl$;var yg=function(){var D=_.N.apply(this,arguments)||this;D.player=null;D.JSC$22497_playerEvents=new Map;return D};
_.n(yg,_.N);_.u=yg.prototype;_.u.created=function(){this.player=null;this.JSC$22497_playerEvents=new Map;this.JSC$22497_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22497_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22497_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.u.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.u.attached=function(){var D=this,Y=_.sm();Y&&Y.getPlayerPromise().then(function(R){D.setPlayer(R);D.set("isPageLoad",!1)})};
_.u.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22497_playerEvents);this.set("player",D);if(D){this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22497_playerEvents);var Y;(D==null?void 0:(Y=D.getPresentingPlayerType)==null?void 0:Y.call(D))===2&&this.playerAdStartHandler()}};
_.u.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.u.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.u.onVideoProgress=function(){var D,Y,R=((D=this.player)==null?void 0:(Y=D.getPresentingPlayerType)==null?void 0:Y.call(D))===2;this.isAdPlaying!==R&&this.set("isAdPlaying",R)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],yg.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yg.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],yg.prototype,"isAdPlaying",void 0);
_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],yg.prototype,"isPageLoad",void 0);_.q([_.h({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],yg);
_.L(yg,"ytd-clip-section-footer-renderer",function(){if(Gl$!==void 0)return Gl$;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Gl$=D},{mode:1});var VX7;var fdo;var Nn=function(){return _.N.apply(this,arguments)||this};
_.n(Nn,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Nn.prototype,"data",void 0);_.q([_.h({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Nn);
_.L(Nn,"ytd-clip-ad-state-renderer",function(){if(fdo!==void 0)return fdo;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return fdo=D},{mode:1});var eSB;var lW=function(){var D=_.N.apply(this,arguments)||this;D.value="";D.valid=!1;D.userChangedValue=!1;D.disabled=!1;D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return D};
_.n(lW,_.N);_.u=lW.prototype;_.u.detached=function(){this.userChangedValue=!1};
_.u.handleKeyDown=function(D){if(_.WQ)var Y=13;else _.WNb&&_.zX?Y=13:Y=13;D.keyCode===Y&&D.preventDefault()};
_.u.handleInput=function(){var D=_.aU(this.hostElement).querySelector("#title");if(D){var Y=(D.value||"").replace(/\r|\n/g," ");this.set("value",Y);D.value=Y;this.valid=D.validate();this.userChangedValue=!0}};
_.u.handleBlur=function(){this.valid=_.aU(this.hostElement).querySelector("#title").validate()};
_.u.onValueChanged=function(){_.MX(this.hostElement,"title-changed",{title:this.value})};
_.u.onValidChanged=function(){_.MX(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.u.setInput=function(D,Y){var R=_.aU(this.hostElement).querySelector("#title");R&&(R.value=D,this.handleInput(),Y&&(R.invalid=!1,this.valid=!0))};
_.u.onClipCreationDisable=function(){this.set("disabled",!0)};
_.u.onClipCreationEnable=function(){this.set("disabled",!1)};
_.u.onClipCreationVisibilityChange=function(D){var Y=this;D.visible?requestAnimationFrame(function(){var R;((R=_.aU(Y.hostElement).querySelector("#title"))==null?void 0:R.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
lW.prototype.onValidChanged=lW.prototype.onValidChanged;lW.prototype.onValueChanged=lW.prototype.onValueChanged;lW.prototype.handleBlur=lW.prototype.handleBlur;lW.prototype.handleInput=lW.prototype.handleInput;lW.prototype.handleKeyDown=lW.prototype.handleKeyDown;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],lW.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],lW.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],lW.prototype,"value",void 0);_.q([_.y(),_.x("design:type",Object)],lW.prototype,"valid",void 0);_.q([_.y(),_.x("design:type",Object)],lW.prototype,"userChangedValue",void 0);_.q([_.y(),_.x("design:type",Object)],lW.prototype,"disabled",void 0);_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],lW.prototype,"handleKeyDown",null);
_.q([_.Fv("input"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lW.prototype,"handleInput",null);_.q([_.Fv("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lW.prototype,"handleBlur",null);_.q([_.Gm("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lW.prototype,"onValueChanged",null);
_.q([_.Gm("valid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lW.prototype,"onValidChanged",null);_.q([_.h({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],lW);
_.L(lW,"ytd-clip-creation-text-input-renderer",function(){if(eSB!==void 0)return eSB;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return eSB=D},{mode:1});var AFZ;var n37;var rF$;var whf;var $cT;var JM=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};D.pendingStoryboardImages_={};D.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];D.tickLabelInterval=30;D.mediumTickInterval=5;D.largeTickInterval=15;D.aboveRulerHeight=32;D.rulerHeight=50;D.smallTickHeight=4;D.mediumTickHeight=8;D.largeTickHeight=16;D.mediaListeners_=
{};return D};
_.n(JM,_.N);_.u=JM.prototype;_.u.attached=function(){var D=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(Y){Y=_.a(["screen and (min-resolution: "+Y+")","screen and (max-resolution: "+Y+")"]);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=window.matchMedia(R);Z&&(D.mediaListeners_[R]=D.updatePixelRatio_.bind(D),Z.addEventListener?Z.addEventListener("change",D.mediaListeners_[R]):Z.addListener?Z.addListener(D.mediaListeners_[R]):delete D.mediaListeners_[R])}})};
_.u.detached=function(){this.setPlayer(null);for(var D=_.a(Object.keys(this.mediaListeners_)),Y=D.next();!Y.done;Y=D.next()){var R=Y.value;Y=this.mediaListeners_[R];(R=window.matchMedia(R))&&(R.removeEventListener?R.removeEventListener("change",Y):R.removeListener&&R.removeListener(Y))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.u.onVisibilityChangedAction_=function(D){var Y=this;D.visible&&!this.player_&&(D=_.sm())&&D.getPlayerPromise().then(function(R){Y.setPlayer(R)})};
_.u.setPlayer=function(D){D&&this.set("player_",D)};
_.u.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.u.setUpCanvas_=function(){var D=this.rulerWidth,Y=this.devicePixelRatio_,R=this.visible;this.set("canvasReady_",!1);if(R&&Y!==0){R=this.aboveRulerHeight+this.rulerHeight;var Z=_.aU(this.hostElement).querySelector("#ticks");Z.width=D*Y;Z.height=R*Y;Z.style.width=D+"px";Z.style.height=R+"px";Z.getContext("2d").scale(Y,Y);this.set("canvasReady_",!0)}};
_.u.drawRuler_=function(D,Y,R,Z,t,X,M,W,z,I,F,G){D&&R&&Y&&(D=_.aU(this.hostElement).querySelector("#ticks"),Y=D.getContext("2d"),Y.clearRect(0,0,D.width,D.height),Y.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Y.lineWidth=2,Y.beginPath(),Y.moveTo(0,this.aboveRulerHeight),Y.lineTo(D.width,this.aboveRulerHeight),Y.moveTo(0,D.height),Y.lineTo(D.width,D.height),Y.stroke(),this.drawRulerTicks_(D,X,t,Z),this.drawStoryboardImages_(D,R,X,t,Z),Y.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
Y.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(M-X,Z,!1),this.rulerHeight),R=this.timeToPixels_(W-X,Z,!1),Y.fillRect(R,this.aboveRulerHeight,D.width-R,this.rulerHeight),this.drawSpeedLines_(D,X,G))};
_.u.drawRulerTicks_=function(D,Y,R,Z){var t=D.getContext("2d");t.save();t.lineWidth=1;for(var X=Math.floor(Math.max(0,Y-this.tickLabelInterval));X<Y+R;X++){t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var M=(X-Y)*Z;t.beginPath();t.moveTo(M,D.height);var W=this.smallTickHeight;X%this.largeTickInterval===0?W=this.largeTickHeight:X%this.mediumTickInterval===0&&(W=this.mediumTickHeight);t.lineTo(M,D.height-W);t.stroke();X%this.tickLabelInterval===0&&(t.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),t.fillText(yh(X),M+4,12),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.moveTo(M,0),t.lineTo(M,this.aboveRulerHeight),t.stroke())}t.restore()};
_.u.percentToHex_=function(D){D=Math.round(D*255).toString(16);D.length<2&&(D="0"+D);return D};
_.u.drawSpeedLines_=function(D,Y,R){var Z=D.getContext("2d");Z.save();var t=Math.min(25,Math.abs(R)-15)/25,X=D.width*.3*t,M=D.width*-.3,W=D.width*1.3,z=this.aboveRulerHeight;D=D.height;var I=Math.round(4*t),F=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");F.length<7&&(F="#"+F.substring(1,4).repeat(2));var G=this.percentToHex_(.5+t/2);G=F+G;F+="00";if(t>0)for(t=0;t<I;t++){var V=M+Math.random()*(W-M),e=z+Math.random()*(D-z),r=X+Y%X,l=Z.createLinearGradient(V,e,V+r,e);
R<0?(l.addColorStop(0,G),l.addColorStop(.4,G),l.addColorStop(.9,F)):(l.addColorStop(.1,F),l.addColorStop(.6,G),l.addColorStop(1,G));Z.strokeStyle=l;Z.lineWidth=1;Z.beginPath();Z.moveTo(V,e);Z.lineTo(V+r,e);Z.stroke()}Z.restore()};
_.u.getStoryboardForTime_=function(D,Y,R){R===void 0&&(R=Y.getNumberOfStoryboardLevels()-1);D=Y.getStoryboardFrameIndex(D,R);return Y.getStoryboardFrame(D,R)};
_.u.drawStoryboardImages_=function(D,Y,R,Z,t){if(!this.disabled){D=D.getContext("2d");var X=this.getStoryboardForTime_(0,Y);if(X){var M=X.width/X.columns;X=X.height/X.rows;var W=M/X,z=this.rulerHeight*W;z=this.tickLabelInterval*(W<this.tickLabelInterval*t/this.rulerHeight?1/Math.floor(this.tickLabelInterval*t/z):Math.round(z/(this.tickLabelInterval*t)));var I=z*t,F=this.rulerHeight,G=I/this.rulerHeight,V=Math.floor(Math.max(0,R-z));for(V-=V%z;V<R+Z;V+=z){var e=this.getStoryboardForTime_(V,Y),r=this.getPreloadedStoryboard_(e.url);
if(r){var l=(V-R)*t,U=this.aboveRulerHeight,K=e.column*M,H=e.row*X;if(W<G){var c=F/(I/W);e=M;c*=X;H+=(X-c)/2}else e=I/(F*W)*M,c=X,K+=(M-e)/2;D.drawImage(r,K,H,e,c,l,U,I,F)}else this.fetchStoryboardImage_(e)}}}};
_.u.getPreloadedStoryboard_=function(D){return this.storyboardImages_.find(function(Y){if(Y.src==D)return!0;var R=Y.src.indexOf(D);return R!=-1&&R==Y.src.length-D.length})};
_.u.fetchStoryboardImage_=function(D){var Y=this,R=this.getPreloadedStoryboard_(D.url),Z=this.pendingStoryboardImages_[D.url];R||Z!==void 0||(R=new Promise(function(t){var X=new Image(D.width,D.height);X.src=D.url;X.onload=function(){t(X)};
X.onerror=function(){t(null)}}),this.pendingStoryboardImages_[D.url]=R,R.then(function(t){t&&Y.push("storyboardImages_",t);
return t}).finally(function(){delete Y.pendingStoryboardImages_[D.url]}))};
_.u.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.u.timeToPixels_=function(D,Y,R){D*=Y;return R===void 0||R?D+"px":D};
_.u.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
JM.prototype.drawRuler_=JM.prototype.drawRuler_;JM.prototype.setUpCanvas_=JM.prototype.setUpCanvas_;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],JM.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],JM.prototype,"start",void 0);_.q([_.y({value:30}),_.x("design:type",Number)],JM.prototype,"end",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],JM.prototype,"visible",void 0);_.q([_.y(),_.x("design:type",Object)],JM.prototype,"player_",void 0);_.q([_.y(),_.x("design:type",Number)],JM.prototype,"tickSpacing",void 0);_.q([_.y(),_.x("design:type",Number)],JM.prototype,"windowSizeSec",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],JM.prototype,"rulerWidth",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],JM.prototype,"rulerShift",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],JM.prototype,"canvasReady_",void 0);_.q([_.y({value:function(){return[]}}),
_.x("design:type",Array)],JM.prototype,"storyboardImages_",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],JM.prototype,"disabled",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],JM.prototype,"forceRender_",void 0);_.q([_.y({value:1}),_.x("design:type",Number)],JM.prototype,"devicePixelRatio_",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],JM.prototype,"windowSpeed",void 0);
_.q([_.Gm("visible","devicePixelRatio_","rulerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JM.prototype,"setUpCanvas_",null);
_.q([_.Gm("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.x("design:returntype")],JM.prototype,"drawRuler_",null);_.q([_.Lr({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],JM);
_.L(JM,"yt-clip-creation-scrubber-canvas",function(){if($cT===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);$cT=D}D=$cT;return D},
{mode:2});var v3f;var o3o;var ki=function(){var D=_.N.apply(this,arguments)||this;D.start=0;D.end=30;D.visible=!1;D.draggingLeft_=!1;D.draggingRight_=!1;D.draggingRuler_=!1;D.draggingWindow_=!1;D.seekableStart=0;D.seekableEnd=0;D.rulerWidth_=0;D.rulerShift_=0;D.windowSlideSpeed=0;D.disabled=!1;D.initialized=!1;D.durationAccessibilityLabel="";D.activeLoopRange_=!1;D.rulerDragMouseStart_=0;D.rulerDragRulerStart_=0;D.rulerDragStartTime_=0;D.rulerDragEndTime_=0;D.dragMouseLastX_=0;D.scrollInterval_=null;D.scrubberVe_=null;D.boundHandlers_=
{};D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.n(ki,_.N);_.u=ki.prototype;
_.u.created=function(){var D=this;this.JSC$22510_playerEvents=new Map;this.JSC$22510_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22510_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22510_playerEvents.set("onStateChange",this.onStateChange_);var Y={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(Y).forEach(function(R){D.boundHandlers_[R]=Y[R].bind(D)})};
_.u.attached=function(){this.activeLoopRange_=!1;_.aU(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.aU(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.TP(156731)};
_.u.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.aU(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.aU(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.u.onVisibilityChangedAction_=function(D){var Y=this;D.visible&&!this.player_&&(D=_.sm())&&D.getPlayerPromise().then(function(R){Y.setPlayer(R)})};
_.u.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22510_playerEvents);D&&(this.set("player_",D),this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22510_playerEvents))};
_.u.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.u.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.u.beginHandleDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=D.clientX,D.target===_.aU(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():D.target===_.aU(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.u.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.u.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.u.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.u.beginRulerDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=D.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.u.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.u.beginWindowScroll_=function(){var D=this;this.scrollInterval_=setInterval(function(){var Y=D.windowSlideSpeed;if(Y=_.jxh(D.start,D.boundedRulerStartLimit_())?Y-.1:_.jxh(D.end,D.boundedRulerEndLimit_())?Y+.1:0){var R=D.capRulerOffset_(D.rulerShift_+Y);R==D.rulerShift_?Y=0:(D.set("rulerShift_",R),_.MX(D.hostElement,"set-fixed-length-range",{start:D.start+Y,duration:D.end-D.start}))}D.set("windowSlideSpeed",Y)},33)};
_.u.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.u.endDrag_=function(){this.logClick();var D=void 0;this.draggingRight_?D=this.end-1:this.draggingLeft_&&(D=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,D);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))};
_.u.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.u.updateRulerSize_=function(){this.set("rulerWidth_",_.aU(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.u.handleMouseDrag_=function(D){D.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(D):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(D):this.draggingWindow_&&this.handleWindowDrag_(D))};
_.u.handleRulerDrag_=function(D){D=this.pixelsToTime_(D.clientX-this.rulerDragMouseStart_);D=this.capRulerOffset_(this.rulerDragRulerStart_-D);this.set("rulerShift_",D);var Y=this.rulerDragStartTime_-(this.rulerDragRulerStart_-D);_.MX(this.hostElement,"set-fixed-length-range",{start:Y,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-D)-Y})};
_.u.handleWindowDrag_=function(D){var Y=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(Y);_.MX(this.hostElement,"set-fixed-length-range",{start:this.start+D,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.u.capRulerOffset_=function(D){var Y=this.seekableStart-this.pixelsToTime_(16),R=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(Y,D),R)};
_.u.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.u.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.u.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.u.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.u.handleWindowHandleDrag_=function(D){var Y=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(Y);if(this.draggingLeft_){var R=this.start+D;var Z=this.end}else this.draggingRight_&&(R=this.start,Z=this.end+D);_.MX(this.hostElement,"set-range",{start:R,end:Z,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.u.onVideoProgress_=function(D){this.disabled||(D=this.timeToPixels_(D-this.rulerShift_,this.tickSpacing_),_.aU(this.hostElement).querySelector("#playhead").style.transform="translateX("+D+")")};
_.u.onClipCreationDisable_=function(){this.endDrag_()};
_.u.timeToPixels_=function(D,Y,R){D*=Y;return R===void 0||R?D+"px":D};
_.u.pixelsToTime_=function(D){return D/this.tickSpacing_};
_.u.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.u.centerRuler_=function(D,Y,R){this.set("rulerShift_",this.capRulerOffset_(D+(Y-D)/2-R/2))};
_.u.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.u.updateLoopRange_=function(D,Y,R,Z,t,X,M){D&&(Y&&Z&&!R?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(D.pauseVideo(),D.seekTo(t,!1,void 0,void 0,50)):this.draggingRight_?(D.pauseVideo(),D.seekTo(X-.1,!1,void 0,void 0,50)):(M!==void 0?D.seekTo(M,!0,void 0,void 0,50):(Y=D.getCurrentTime(),Y<t||Y>X?D.seekTo(t,!0,void 0,void 0,50):D.seekTo(Y,!0,void 0,void 0,50)),D.playVideo()),D.setLoopRange({startTimeMs:t*1E3,endTimeMs:X*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(D.getCurrentTime())):
this.activeLoopRange_&&(D.setLoopRange(null),this.activeLoopRange_=!1))};
_.u.updateHandles_=function(){_.aU(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.aU(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.u.updateRuler_=function(){var D=this.end,Y=this.start,R=this.draggableStartLimit_(),Z=this.draggableEndLimit_();(Y<R-.001||D>Z+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.u.computeDurationLabel_=function(D,Y){return D?D.replace("$clip_length",parseFloat(Y).toFixed(1)):""};
_.u.computeDuration_=function(D,Y){return this.isValidTime_(D)&&this.isValidTime_(Y)&&D<Y?Y-D:0};
_.u.isValidTime_=function(D){return isNaN(parseFloat(D))||D<0?!1:this.player_?D>=this.seekableStart&&D<=this.seekableEnd:!0};
_.u.computeWindowSizeSec_=function(D,Y,R){return Math.min((D||12E4)/1E3,R-Y)};
_.u.computeTickSpacing_=function(D,Y){return Y?Y/D:1};
_.u.onDragStateChanged_=function(){_.MX(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.u.centerRangeOnTime_=function(D){var Y=this.duration;D=a_B(D-Y/2,Y,this.seekableStart,this.seekableEnd);_.MX(this.hostElement,"set-fixed-length-range",{start:D.start,duration:D.end-D.start})};
_.u.nearlyLessThan_=function(D,Y,R){return D+(R===void 0?1E-6:R)<Y};
_.u.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var D=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(D,this.start)||this.nearlyLessThan_(this.end,D))&&this.centerRangeOnTime_(D)}};
_.u.onStateChange_=function(D){this.visible&&!this.disabled&&D==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.u.computeDragState_=function(D,Y,R,Z){return D?"left":Y?"right":R?"ruler":Z?"window":"none"};
_.u.logClick=function(){var D=_.K2(),Y=_.Ud();D&&Y&&this.scrubberVe_&&(_.f("combine_ve_grafts")?_.jF(_.n8(),this.scrubberVe_,Y):_.Qk(D,Y,this.scrubberVe_),_.dC(D,this.scrubberVe_))};
ki.prototype.onDragStateChanged_=ki.prototype.onDragStateChanged_;ki.prototype.updateRuler_=ki.prototype.updateRuler_;ki.prototype.updateHandles_=ki.prototype.updateHandles_;ki.prototype.onUpdateLoopRange=ki.prototype.onUpdateLoopRange;ki.prototype.onInitializedChanged_=ki.prototype.onInitializedChanged_;ki.prototype.onVisibleChanged_=ki.prototype.onVisibleChanged_;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ki.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",Object)],ki.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"start",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"end",void 0);_.q([_.y({computed:"computeDuration_(start, end)"}),_.x("design:type",Number)],ki.prototype,"duration",void 0);
_.q([_.y(),_.x("design:type",String)],ki.prototype,"lengthTemplate",void 0);_.q([_.y({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.x("design:type",String)],ki.prototype,"durationLabel",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"visible",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"player_",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"draggingLeft_",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"draggingRight_",void 0);
_.q([_.y(),_.x("design:type",Object)],ki.prototype,"draggingRuler_",void 0);_.q([_.y({value:!1}),_.x("design:type",Object)],ki.prototype,"draggingWindow_",void 0);_.q([_.y({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.x("design:type",Number)],ki.prototype,"tickSpacing_",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"seekableStart",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"seekableEnd",void 0);
_.q([_.y(),_.x("design:type",Number)],ki.prototype,"windowSizeMs",void 0);_.q([_.y({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.x("design:type",Number)],ki.prototype,"windowSizeSec_",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"rulerWidth_",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"rulerShift_",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"windowSlideSpeed",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ki.prototype,"disabled",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"initialized",void 0);_.q([_.y(),_.x("design:type",Object)],ki.prototype,"durationAccessibilityLabel",void 0);_.q([_.y({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.x("design:type",String)],ki.prototype,"dragState",void 0);
_.q([_.Gm("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ki.prototype,"onVisibleChanged_",null);_.q([_.Gm("initialized"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ki.prototype,"onInitializedChanged_",null);_.q([_.Gm("player_","visible","disabled","initialized","start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ki.prototype,"onUpdateLoopRange",null);
_.q([_.Gm("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ki.prototype,"updateHandles_",null);_.q([_.Gm("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ki.prototype,"updateRuler_",null);
_.q([_.Gm("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ki.prototype,"onDragStateChanged_",null);_.q([_.Lr({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ki);
_.L(ki,"yt-clip-creation-scrubber-view",function(){if(o3o===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;v3f===void 0&&(v3f=document.createElement("template"));var Z=v3f;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);o3o=D}D=o3o;return D},{mode:2});var UV=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};D.startHighlightTimeout=0;D.endHighlightTimeout=0;return D};
_.n(UV,_.N);_.u=UV.prototype;_.u.attached=function(){var D=this;this.startInput.addEventListener("input",function(Y){return D.handleStartInput_(Y)});
this.endInput.addEventListener("input",function(Y){return D.handleEndInput_(Y)});
this.startInput.addEventListener("focusout",function(Y){return D.handleStartBlur_(Y)});
this.endInput.addEventListener("focusout",function(Y){return D.handleEndBlur_(Y)})};
_.u.setPlayer=function(D){this.set("player_",D)};
_.u.onSetFixedLengthRange_=function(D){var Y=D.detail;D=Y.start;var R=Y.duration,Z=Y.startLimit;Y=Y.endLimit;Z||(Z=this.seekableStart_);Y||(Y=this.seekableEnd_);D=a_B(D,R,Z,Y);this.start=D.start;this.end=D.end};
_.u.onSetRange_=function(D){var Y=D.detail;D=Y.start;var R=Y.end,Z=Y.startLimit;Y=Y.endLimit;Z||(Z=this.seekableStart_);Y||(Y=this.seekableEnd_);if(D=MDB(D,R,Z,Y,this.minLengthSec,this.maxLengthSec))this.start=D.start,this.end=D.end};
_.u.updateInputs_=function(){var D=this.end,Y=this.start;this.startInput.focused||(this.startInput.value=yh(Y,!0));this.endInput.focused||(this.endInput.value=yh(D,!0))};
_.u.handleStartInput_=function(D){D=ubf(D.target.value);if(D===null)this.set("startValid",!1);else{var Y=this.end,R=MDB(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);R?(this.set("endWillUpdate",R.end!==Y),this.set("startValid",R.start===D)):this.set("startValid",!1)}};
_.u.handleEndInput_=function(D){D=ubf(D.target.value);if(D===null)this.set("endValid",!1);else{var Y=this.start,R=CU7(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);R?(this.set("startWillUpdate",R.start!==Y),this.set("endValid",R.end===D)):this.set("endValid",!1)}};
_.u.handleStartBlur_=function(D){D=ubf(D.target.value);D===null?this.startInput.value=yh(this.start,!0):this.forceUpdateInputs_(MDB(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.u.handleEndBlur_=function(D){D=ubf(D.target.value);D===null?this.endInput.value=yh(this.end,!0):this.forceUpdateInputs_(CU7(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.u.forceUpdateInputs_=function(D){D&&(this.start=D.start,this.end=D.end);this.startInput.value=yh(this.start,!0);this.endInput.value=yh(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.u.initializeClipRange_=function(){var D=this.seekableEnd_,Y=this.seekableStart_,R=this.visible_,Z=this.player_;if(!Z||!R||Y===null||!D)this.set("initialized",!1);else if(!this.initialized){var t=Z.getCurrentTime(),X=this.getDefaultLengthSec_();R=Z.getVideoData();var M=Z.getPlayerState()==1,W=R.isLive;X=Math.min(X,D-Y);t=Math.max(0,t);D=W?CU7(t-X,t,Y,D,this.minLengthSec,this.maxLengthSec):M?a_B(t-X/2,X,Y,D):a_B(t,X,Y,D);this.start=D.start;this.end=D.end;this.set("initialized",!0);R.isLive&&Z.seekTo(D.start);
this.startInput.value=yh(this.start,!0);this.endInput.value=yh(this.end,!0)}};
_.u.onStartChanged_=function(){var D=this;_.MX(this.hostElement,"start-changed",{start:this.start});var Y;isNaN((Y=this.oldStart)!=null?Y:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){D.set("highlightStart",!1);D.startHighlightTimeout=0;D.oldStart=D.start},3E3))};
_.u.onEndChanged_=function(){var D=this;_.MX(this.hostElement,"end-changed",{end:this.end});var Y;isNaN((Y=this.oldEnd)!=null?Y:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){D.set("highlightEnd",!1);D.endHighlightTimeout=0;D.oldEnd=D.end},3E3))};
_.u.onVisibilityChangedAction_=function(D){var Y=this;this.set("visible_",D.visible);this.visible_&&!this.player_&&(D=_.sm())&&D.getPlayerPromise().then(function(R){Y.setPlayer(R)})};
_.u.computeMinLengthSec_=function(D){return D/1E3||5};
_.u.computeMaxLengthSec_=function(D){return D/1E3||60};
_.u.computeDefaultLengthSec_=function(D){return D/1E3};
_.u.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.u.computeSeekableStart_=function(D,Y){return D&&Y?D.getProgressState(1).seekableStart:0};
_.u.computeSeekableEnd_=function(D,Y){return D&&Y?D.getProgressState(1).seekableEnd:0};
_.u.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.u.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.u.onDragState_=function(D){this.set("highlightStart",D.detail.startChanging);this.set("highlightEnd",D.detail.endChanging)};
UV.prototype.onDragState_=UV.prototype.onDragState_;UV.prototype.onEndChanged_=UV.prototype.onEndChanged_;UV.prototype.onStartChanged_=UV.prototype.onStartChanged_;UV.prototype.initializeClipRange_=UV.prototype.initializeClipRange_;UV.prototype.updateInputs_=UV.prototype.updateInputs_;UV.prototype.onSetRange_=UV.prototype.onSetRange_;UV.prototype.onSetFixedLengthRange_=UV.prototype.onSetFixedLengthRange_;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],UV.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],UV.prototype,"data",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],UV.prototype,"start",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],UV.prototype,"startValid",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],UV.prototype,"startWillUpdate",void 0);_.q([_.y({value:30}),_.x("design:type",Number)],UV.prototype,"end",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],UV.prototype,"endValid",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],UV.prototype,"endWillUpdate",void 0);_.q([_.y({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.x("design:type",Number)],UV.prototype,"minLengthSec",void 0);
_.q([_.y({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.x("design:type",Number)],UV.prototype,"maxLengthSec",void 0);_.q([_.y({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.x("design:type",Number)],UV.prototype,"defaultLengthSec",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],UV.prototype,"visible_",void 0);_.q([_.y(),_.x("design:type",Object)],UV.prototype,"player_",void 0);
_.q([_.y({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.x("design:type",Number)],UV.prototype,"seekableStart_",void 0);_.q([_.y({computed:"computeSeekableEnd_(player_, visible_)"}),_.x("design:type",Number)],UV.prototype,"seekableEnd_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],UV.prototype,"initialized",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],UV.prototype,"disabled",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],UV.prototype,"highlightStart",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],UV.prototype,"highlightEnd",void 0);_.q([_.fr("#start"),_.x("design:type",HTMLInputElement)],UV.prototype,"startInput",void 0);_.q([_.fr("#end"),_.x("design:type",HTMLInputElement)],UV.prototype,"endInput",void 0);
_.q([_.Fv("set-fixed-length-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],UV.prototype,"onSetFixedLengthRange_",null);_.q([_.Fv("set-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],UV.prototype,"onSetRange_",null);_.q([_.Gm("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UV.prototype,"updateInputs_",null);
_.q([_.Gm("player_","visible_","seekableStart_","seekableEnd_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UV.prototype,"initializeClipRange_",null);_.q([_.Gm("start"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UV.prototype,"onStartChanged_",null);_.q([_.Gm("end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UV.prototype,"onEndChanged_",null);
_.q([_.Fv("clips-drag-state"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],UV.prototype,"onDragState_",null);_.q([_.Lr({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],UV);
_.L(UV,"yt-clip-creation-scrubber-renderer",function(){if(whf===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;rF$===void 0&&(rF$=document.createElement("template"));var Z=rF$;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);whf=D}D=whf;return D},{mode:2});var K7=function(){var D=_.N.apply(this,arguments)||this;D.player_=null;D.JSC$22524_playerEvents=new Map;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.n(K7,_.N);_.u=K7.prototype;_.u.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"}}}};
_.u.created=function(){this.JSC$22524_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22524_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22524_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22524_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.u.detached=function(){this.setPlayer(null)};
_.u.onVisibilityChangedAction_=function(D){var Y=this,R;if((R=this.data)==null?0:R.externalVideoId){var Z;this.videoId=(Z=this.data)==null?void 0:Z.externalVideoId}this.getPlayer().then(function(t){if(D.visible)Y.returnTime=t.getCurrentTime(),Y.isAtLiveHead=t.getProgressState().isAtLiveHead;else{var X=Y.returnTime;Y.isAtLiveHead&&(X=Number.POSITIVE_INFINITY);t.seekTo(X,void 0,void 0,void 0,51)}})};
_.u.getPlayer=function(){var D=this;if(!this.player_){var Y=_.sm();if(Y)return Y.getPlayerPromise().then(function(R){D.setPlayer(R);return R})}return Promise.resolve(this.player_)};
_.u.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22524_playerEvents);if(D){this.player_=D;var Y;((Y=this.data)==null?0:Y.externalVideoId)||this.set("videoId",D.getVideoData().video_id||"");var R;(D==null?void 0:(R=D.getPresentingPlayerType)==null?void 0:R.call(D))===2&&(this.set("isAdPlaying",!0),_.CX(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22524_playerEvents)}};
_.u.ready=function(){_.aU(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.u.onTitleChanged_=function(D){this.set("titleValue",D.detail.title)};
_.u.onStartChanged_=function(D){this.set("start",D.detail.start)};
_.u.onEndChanged_=function(D){this.set("end",D.detail.end)};
_.u.onTitleValidChanged_=function(D){this.set("titleValid",D.detail.valid)};
_.u.onStartValidChanged_=function(D){this.set("startValid",D.detail.valid)};
_.u.onEndValidChanged_=function(D){this.set("endValid",D.detail.valid)};
_.u.onVideoDataChange_=function(){var D;if((D=this.data)==null||!D.externalVideoId){var Y;this.set("videoId",((Y=this.player_)==null?void 0:Y.getVideoData().video_id)||"")}};
_.u.computeFormValid_=function(D,Y,R,Z){return!!(D&&Y&&R&&Z)};
_.u.computeCancelButton_=function(D,Y,R){return D&&_.A(D,_.qv)?{buttonRenderer:Object.assign({},_.A(D,_.qv),{isDisabled:Y||R})}:null};
_.u.computeSubmitButton_=function(D,Y,R){return D&&_.A(D,_.qv)?{buttonRenderer:Object.assign({},_.A(D,_.qv),{command:void 0,isDisabled:!this.formValid||Y||R})}:null};
_.u.computeSubmitCommand_=function(D){return D||null};
_.u.onSubmit_=function(D){var Y=this;D.stopPropagation();D.preventDefault();this.submitCommand_&&(D={},D.comment_text=this.titleValue,D.clip_external_video_id=this.videoId,D.clip_offset_ms=parseInt(this.start*1E3,10),D.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.zA(this.hostElement,[this.submitCommand_,D]).then(function(){Y.set("isLoading_",!1)},function(){Y.set("isLoading_",!1)}))};
_.u.playerAdStartHandler_=function(){_.CX(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.u.playerAdEndHandler_=function(){_.CX(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.u.onVideoProgress_=function(){var D=this;this.getPlayer().then(function(Y){var R,Z=(Y==null?void 0:(R=Y.getPresentingPlayerType)==null?void 0:R.call(Y))===2;D.isAdPlaying!==Z&&(Z?D.playerAdStartHandler_():D.playerAdEndHandler_())})};
K7.prototype.onEndValidChanged_=K7.prototype.onEndValidChanged_;K7.prototype.onStartValidChanged_=K7.prototype.onStartValidChanged_;K7.prototype.onTitleValidChanged_=K7.prototype.onTitleValidChanged_;K7.prototype.onEndChanged_=K7.prototype.onEndChanged_;K7.prototype.onStartChanged_=K7.prototype.onStartChanged_;K7.prototype.onTitleChanged_=K7.prototype.onTitleChanged_;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],K7.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",Object)],K7.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],K7.prototype,"data",void 0);_.q([_.y({value:""}),_.x("design:type",String)],K7.prototype,"titleValue",void 0);
_.q([_.y({value:!1}),_.x("design:type",Boolean)],K7.prototype,"titleValid",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],K7.prototype,"start",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],K7.prototype,"startValid",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],K7.prototype,"end",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],K7.prototype,"endValid",void 0);_.q([_.y({value:""}),_.x("design:type",String)],K7.prototype,"videoId",void 0);
_.q([_.y({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.x("design:type",Boolean)],K7.prototype,"formValid",void 0);_.q([_.y({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.x("design:type",Object)],K7.prototype,"submitButton_",void 0);_.q([_.y({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.x("design:type",Object)],K7.prototype,"submitCommand_",void 0);
_.q([_.y({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.x("design:type",Object)],K7.prototype,"cancelButton_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],K7.prototype,"isLoading_",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],K7.prototype,"isAdPlaying",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],K7.prototype,"returnTime",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],K7.prototype,"isAtLiveHead",void 0);
_.q([_.Fv("title-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K7.prototype,"onTitleChanged_",null);_.q([_.Fv("start-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K7.prototype,"onStartChanged_",null);_.q([_.Fv("end-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K7.prototype,"onEndChanged_",null);
_.q([_.Fv("title-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K7.prototype,"onTitleValidChanged_",null);_.q([_.Fv("start-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K7.prototype,"onStartValidChanged_",null);_.q([_.Fv("end-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],K7.prototype,"onEndValidChanged_",null);
_.q([_.Lr({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],K7);
_.L(K7,"yt-clip-creation-renderer",function(){if(n37===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;AFZ===void 0&&(AFZ=document.createElement("template"));var Z=AFZ;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);n37=D}D=n37;return D},{mode:2});var hM=function(){return _.N.apply(this,arguments)||this};
_.n(hM,_.N);hM.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"}}}};
hM.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(D){return D.hasOwnProperty("clipCreationRenderer")})&&_.CX(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
hM.prototype.onPanelContentVisibleChanged=hM.prototype.onPanelContentVisibleChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.gt.YtVisibilityBehavior),_.x("design:type",Object)],hM.prototype,"ytVisibilityBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],hM.prototype,"ytdReduxBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],hM.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],hM.prototype,"panelContentVisible",void 0);_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hM.prototype,"onPanelContentVisibleChanged",null);_.q([_.h({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],hM);
_.L(hM,"ytd-clip-section-renderer",function(){if(VX7!==void 0)return VX7;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return VX7=D},{mode:1});var bjg;var L7=function(){return _.N.apply(this,arguments)||this};
_.n(L7,_.N);_.u=L7.prototype;
_.u.onKeyDown=function(D){if(this.snippetElements.length!==0&&(D=D.keyCode,D===38||D===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);D===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.UR(this.highlightedIndex,-1,this.snippetElements.length);D=this.snippetElements.length;var Y=this.highlightedIndex%D;this.highlightedIndex=Y*D<0?Y+D:Y;D=this.snippetElements[this.highlightedIndex];this.highlightSnippet(D);this.ensureVisible(D)}};
_.u.onKeyUp=function(D){var Y=this;xUB(D)&&(D.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.yc.cancelJob(this.inputTimerId),this.inputTimerId=_.yc.addLowPriorityJob(function(){Y.typedValue&&(Y.fetchSnippets(Y.typedValue),Y.logInputGesture(Y.data))},1E3))};
_.u.onClick=function(D){(D=_.OLL(D.target,null,"snippet-item"))&&this.selectSnippet(D)};
_.u.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.u.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.u.ready=function(){var D=this;this.inputElement.addEventListener("focus",function(){D.snippetsWrapper.style.removeProperty("display")})};
_.u.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.u.getSourceTimelines=function(){if(!this.data)return[];var D=[];if(this.data.searchInVideoSources)for(var Y=_.a(this.data.searchInVideoSources),R=Y.next();!R.done;R=Y.next())R=R.value,R==="SEARCH_IN_VIDEO_SOURCE_ASR"?D.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):R==="SEARCH_IN_VIDEO_SOURCE_OCR"&&D.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return D};
_.u.fetchSnippets=function(D){var Y=_.CX(this.hostElement,"yt-get-current-video-id-action")[0],R=this.getSourceTimelines();D={getSearchInVideoCommand:{externalVideoId:Y,query:D!=null?D:"",sourceTimelines:R},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})};
_.u.filterSnippets=function(D,Y){var R=this;if(Y){this.filteredSnippets=(0,_.y7.unsafeClone)(D);var Z=RegExp(_.LPo(Y),"i");this.filteredSnippets=this.filteredSnippets.filter(function(M){return Z.test(R.ytRendererBehavior.getSimpleString(M.snippet))});
D=_.a(this.filteredSnippets);for(var t=D.next();!t.done;t=D.next()){t=t.value;var X=this.ytRendererBehavior.getSimpleString(t.snippet);t.snippet={runs:[{text:X.substring(0,X.toLowerCase().indexOf(Y))},{text:X.substring(X.toLowerCase().indexOf(Y),X.toLowerCase().indexOf(Y)+Y.length),bold:!0},{text:X.substring(X.toLowerCase().indexOf(Y)+Y.length,X.length)}]}}}else this.filteredSnippets=D};
_.u.onUpdateSearchInVideoResults=function(D){if(!(this.snippets.length>0)){var Y,R,Z;if((Z=(Y=_.A(D,Yzy))==null?void 0:(R=Y.results)==null?void 0:R.length)!=null&&Z){var t;this.filteredSnippets=this.snippets=((t=_.A(D,Yzy))==null?void 0:t.results).map(function(X){var M,W,z;return{startMs:X==null?void 0:(M=X.searchInVideoResultRenderer)==null?void 0:M.startMs,startTimeText:X==null?void 0:(W=X.searchInVideoResultRenderer)==null?void 0:W.startTimeText,snippet:X==null?void 0:(z=X.searchInVideoResultRenderer)==
null?void 0:z.snippet}})}}};
_.u.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};
_.u.highlightSnippet=function(D){D.classList.add("highlighted")};
_.u.removeSnippetHighlight=function(D){D.classList.remove("highlighted")};
_.u.selectSnippet=function(D){this.typedValue=String(D.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(D);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.u.ensureVisible=function(D){var Y=this.snippetsWrapper.scrollTop,R=Y+this.snippetsWrapper.clientHeight,Z=D.offsetTop-this.snippetsWrapper.offsetTop;D=Z+D.clientHeight;Z<Y?this.snippetsWrapper.scrollTop-=Y-Z:D>R&&(this.snippetsWrapper.scrollTop+=D-R)};
_.u.seekPlayer=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1){if(!D)return Z.jumpTo(0);Y=Number(D.dataset.startOffset);return Z.yield(_.XU().getPlayerPromise(),3)}R=Z.yieldResult;R.seekTo(Y/1E3,!0);R.wakeUpControls();_.V9(Z)})};
_.u.logInputGesture=function(D){var Y=_.K2();Y&&(D==null?0:D.trackingParams)&&_.ii(Y,_.oT(D.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.u.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("typed-value-changed",this.typedValue))};
_.u.updateTypedValueFromBinding=function(D){this.typedValue=D.currentTarget.value};
L7.prototype.typedValueChangedForBinding=L7.prototype.typedValueChangedForBinding;L7.prototype.dataChanged=L7.prototype.dataChanged;L7.prototype.panelContentVisibleChanged=L7.prototype.panelContentVisibleChanged;L7.prototype.onClick=L7.prototype.onClick;L7.prototype.onKeyUp=L7.prototype.onKeyUp;L7.prototype.onKeyDown=L7.prototype.onKeyDown;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],L7.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],L7.prototype,"data",void 0);_.q([_.y({value:[]}),_.x("design:type",Array)],L7.prototype,"snippets",void 0);_.q([_.y({value:[]}),_.x("design:type",Array)],L7.prototype,"filteredSnippets",void 0);_.q([_.y({value:[]}),_.x("design:type",Array)],L7.prototype,"snippetElements",void 0);
_.q([_.fr("#siv-input"),_.x("design:type",HTMLElement)],L7.prototype,"inputElement",void 0);_.q([_.fr("#siv-snippets-wrapper"),_.x("design:type",HTMLElement)],L7.prototype,"snippetsWrapper",void 0);_.q([_.y(),_.x("design:type",String)],L7.prototype,"typedValue",void 0);_.q([_.y({value:-1}),_.x("design:type",Number)],L7.prototype,"highlightedIndex",void 0);_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[_.FQ]),_.x("design:returntype")],L7.prototype,"onKeyDown",null);
_.q([_.Fv("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[_.FQ]),_.x("design:returntype")],L7.prototype,"onKeyUp",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],L7.prototype,"onClick",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],L7.prototype,"panelContentVisible",void 0);
_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L7.prototype,"panelContentVisibleChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L7.prototype,"dataChanged",null);_.q([_.Gm("typedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],L7.prototype,"typedValueChangedForBinding",null);
_.q([_.h({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],L7);
_.L(L7,"ytd-search-in-video-renderer",function(){if(bjg!==void 0)return bjg;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return bjg=D},{mode:1});var yFZ;var mH=function(){return _.N.apply(this,arguments)||this};
_.n(mH,_.N);mH.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
mH.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]]"}}}}}};
mH.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,Y,R,Z,t=(Y=_.A((D=this.data)==null?void 0:D.onClickCommand,_.ri))==null?void 0:(R=Y.item)==null?void 0:(Z=R.notificationTextRenderer)==null?void 0:Z.successResponseText;t&&_.MO$(this.hostElement,t)}};
_.YF.Object.defineProperties(mH.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return this.isProductPlaceholder&&((D=this.data)==null?void 0:(Y=D.hiddenProductOptions)==null?void 0:Y.showDropCountdown)&&!!((R=this.data)==null?0:(Z=R.hiddenProductOptions)==null?0:Z.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isProductPlaceholder&&!((D=this.data)==null?0:D.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null?0:D.priceReplacementText)&&!((Y=this.data)==null||!Y.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],mH.prototype,"componentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mH.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"useCenterLayoutContainer",null);_.q([_.y({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],mH.prototype,"buttonOverride",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"isProductPlaceholder",null);
_.q([_.b("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"showDropCountdown",null);_.q([_.b("isProductPlaceholder","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"showBrandName",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"showPriceReplacementText",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"showPrice",null);
_.q([_.b("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],mH.prototype,"showMetadata",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],mH);
_.L(mH,"ytd-product-list-item-renderer",function(){if(yFZ!==void 0)return yFZ;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return yFZ=D},{mode:1});var N9J;var qn=function(){return _.N.apply(this,arguments)||this};
_.n(qn,_.N);qn.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
qn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
qn.prototype.panelContentVisibleChanged=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return D.playerApi?R.jumpTo(2):R.yield(_.XU().getPlayerPromise(),3);R.nextAddress!=2&&(D.playerApi=R.yieldResult);(Y=D.playerApi)==null||Y.productsInVideoVisibilityUpdated(!!D.panelContentVisible);_.V9(R)})};
qn.prototype.panelContentVisibleChanged=qn.prototype.panelContentVisibleChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],qn.prototype,"panelContentVisible",void 0);_.q([_.y(),_.x("design:type",Object)],qn.prototype,"data",void 0);
_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],qn.prototype,"panelContentVisibleChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],qn);
_.L(qn,"ytd-product-list-renderer",function(){if(N9J!==void 0)return N9J;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return N9J=D},{mode:1});var ldo;var HT=function(){var D=_.N.apply(this,arguments)||this;D.hideTimestamps=!!_.FJ("hide-transcript-timestamps");D.currentCueIndex=-1;D.flatCues=[];D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};D.TEST_ONLY={getFlatCues:function(){return D.flatCues}};
return D};
_.n(HT,_.N);_.u=HT.prototype;_.u.hideTimestampsChanged=function(){_.I8("hide-transcript-timestamps",this.hideTimestamps)};
_.u.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.u.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.u.dataChanged=function(){var D;if((D=this.data)!=null&&D.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;D=_.a(this.data.cueGroups);for(var Y=D.next();!Y.done;Y=D.next()){Y=_.a(_.A(Y.value,RKN).cues);for(var R=Y.next();!R.done;R=Y.next())this.flatCues.push(Number(_.A(R.value,ZtZ).startOffsetMs))}}};
_.u.onYtPlayerTimeChanged=function(D){if(!(D<0)){for(var Y=this.currentCueIndex,R=Y;;){var Z=R>=0?this.flatCues[R]/1E3:-1;if(D+.5<Z)--R;else if(Z=R+1<this.flatCues.length?this.flatCues[R+1]/1E3:Infinity,D+.5>Z)R+=1;else break}R!==Y&&(Y>=0&&((D=this.getCueElement(Y))&&D.classList.remove("active"),(Y=this.getCueGroupElement(Y))&&Y.classList.remove("active")),(Y=this.getCueElement(R))&&Y.classList.add("active"),(Y=this.getCueGroupElement(R))&&Y.classList.add("active"),this.currentCueIndex=R,this.isHovered||
this.scrollElementToTop(R))}};
_.u.scrollElementToTop=function(D){D=this.getCueElement(D>=3?D-3:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.u.getCueElement=function(D){return _.aU(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[D]+'"]')};
_.u.getCueGroupElement=function(D){return(D=this.getCueElement(D))&&D.parentElement?D.parentElement.parentElement:null};
_.u.onTap=function(D){var Y=_.cG(D);D.target.classList.contains("cue")&&this.seekCueElement(Y)};
_.u.onKeyPress=function(D){D.keyCode==13&&(D=_.OLL(D.target,null,"cue"))&&this.seekCueElement(D)};
_.u.seekCueElement=function(D){D=Number(D.getAttribute("start-offset"));_.CX(this.hostElement,"yt-transcript-player-seek",[D/1E3])};
_.u.onMouseEnter=function(){this.isHovered=!0};
_.u.onMouseLeave=function(){this.isHovered=!1};
HT.prototype.onMouseLeave=HT.prototype.onMouseLeave;HT.prototype.onMouseEnter=HT.prototype.onMouseEnter;HT.prototype.onKeyPress=HT.prototype.onKeyPress;HT.prototype.onTap=HT.prototype.onTap;HT.prototype.dataChanged=HT.prototype.dataChanged;HT.prototype.hideTimestampsChanged=HT.prototype.hideTimestampsChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],HT.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],HT.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],HT.prototype,"hideTimestamps",void 0);_.q([_.y(),_.x("design:type",Boolean)],HT.prototype,"isHovered",void 0);_.q([_.Gm("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HT.prototype,"hideTimestampsChanged",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HT.prototype,"dataChanged",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],HT.prototype,"onTap",null);_.q([_.Fv("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],HT.prototype,"onKeyPress",null);
_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HT.prototype,"onMouseEnter",null);_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HT.prototype,"onMouseLeave",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],HT);
_.L(HT,"ytd-transcript-body-renderer",function(){if(ldo!==void 0)return ldo;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ldo=D},{mode:1});var JFZ;var xi=function(){var D=_.N.apply(this,arguments)||this;D.darkerPanels=_.f("web_watch_darker_panels");return D};
_.n(xi,_.N);xi.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xi.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xi.prototype,"darkerPanels",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],xi);
_.L(xi,"ytd-transcript-footer-renderer",function(){if(JFZ!==void 0)return JFZ;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return JFZ=D},{mode:1});var klo;var Ucf;var PT=function(){var D=_.N.apply(this,arguments)||this;D.systemIcons=_.f("kevlar_system_icons");D.showClearButton=!1;return D};
_.n(PT,_.N);_.u=PT.prototype;_.u.handleInput=function(D){var Y=this;D.target.value.length?_.pr(this,"ytdTranscriptSearchBoxSearch",function(){Y.emitSearchEvent(D)},500):(_.buU(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=D.target.value.length>0};
_.u.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.u.handleClick=function(){var D,Y=(D=this.data)==null?void 0:D.trackingParams;Y&&_.GJ(_.n8(),Y)};
_.u.handleClear=function(){_.buU(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var D,Y,R=(Y=_.A((D=this.data)==null?void 0:D.clearButton,_.qv))==null?void 0:Y.trackingParams;R&&_.GJ(_.n8(),R);this.clear()};
_.u.emitSearchEvent=function(D){_.MX(this.hostElement,"yt-transcript-search-box-search",{query:D.target.value});var Y,R;(D=(R=_.A((Y=this.data)==null?void 0:Y.searchButton,_.qv))==null?void 0:R.trackingParams)&&_.GJ(_.n8(),D)};
_.u.emitClearEvent=function(){_.MX(this.hostElement,"yt-transcript-search-box-clear")};
_.YF.Object.defineProperties(PT.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.aU(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],PT.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],PT.prototype,"systemIcons",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],PT);
_.L(PT,"ytd-transcript-search-box-renderer",function(){if(Ucf!==void 0)return Ucf;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ucf=D},{mode:1});var K_7;var hSG;var Qg=function(){return _.N.apply(this,arguments)||this};
_.n(Qg,_.N);Qg.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var D,Y;this.sectionHeaderAriaLabel=(D=this.data)==null?void 0:(Y=D.accessibility)==null?void 0:Y.accessibilityData.label}};
Qg.prototype.fireSelectedEvent=function(D){_.MX(this.hostElement,"ytd-transcript-section-header",{startMs:D})};
Qg.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Qg.prototype.handleKeyPress=function(D){this.data&&D.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.YF.Object.defineProperties(Qg.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.data)==null?void 0:D.enableTappableTranscriptHeader)!=null?Y:!1}}});
Qg.prototype.dataChanged=Qg.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],Qg.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],Qg.prototype,"sectionHeaderAriaLabel",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qg.prototype,"enableTappableTranscriptHeader",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qg.prototype,"dataChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Qg);
_.L(Qg,"ytd-transcript-section-header-renderer",function(){if(hSG!==void 0)return hSG;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hSG=D},{mode:1});var L_y;var mcg;var BT=function(){var D=_.N.apply(this,arguments)||this;D.isEditMode=!1;D.touchCaptionsEnabled=!1;D.deleteCaptionCorrectionPopupCommand=null;D.voteCaptionCorrectionPopupCommand=null;D.roundedContainer=!0;D.mouseOver=!1;D.textChanged=!1;D.messages={suggest_correction:_.fX("suggest_correction",void 0,"Edit caption"),suggested_caption:_.fX("suggested_caption",void 0,"Suggested caption"),submit_correction:_.fX("submit_correction",void 0,"Submit for review"),cancel_correction:_.fX("cancel_correction",
void 0,"Cancel"),replay_segment:_.fX("replay_segment",void 0,"Re-play segment"),delete_correction:_.fX("delete_correction",void 0,"Delete correction")};D.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return D};
_.n(BT,_.N);_.u=BT.prototype;_.u.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)};
_.u.handleDelete=function(D){if(this.deleteCaptionCorrectionPopupCommand){var Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);Y&&this.ytdOpenPopupBehavior.openPopup(Y);D.stopPropagation()}};
_.u.handleSubmit=function(D){if(this.data&&this.data.submitCaptionCorrectionCommand&&(D.stopPropagation(),this.textChanged)){var Y;D=(Y=_.A(this.data.submitCaptionCorrectionCommand,_.xxV))==null?void 0:Y.params;Y=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:D,correctionText:String(this.ironTextAreaElement.value),originalText:_.OM(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(Y);this.isEditMode=!1}};
_.u.handleUpdateSegmentText=function(D){(D=_.A(D,fpf))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&(D.userCorrection&&(this.editedText=D.userCorrection),D.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.OM(this.data.snippet)),D.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=D.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=D.voteCaptionCorrectionPopupCommand?
D.voteCaptionCorrectionPopupCommand:null,D.accessibility&&(this.segmentAriaLabel=D.accessibility.accessibilityData.label))};
_.u.handleCancel=function(D){this.isEditMode=!1;D.stopPropagation();this.logClientVe(159409)};
_.u.handleEditSegmentCommand=function(D){(D=_.A(D,V0f))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&this.handleEdit()};
_.u.handleEditButtonClick=function(D){this.data&&(this.handleEdit(),D.stopPropagation())};
_.u.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var D;(D=this.ironTextAreaElement.textarea)==null||D.focus();this.logClientVe(159407)}};
_.u.handleMouseEnter=function(){this.mouseOver=!0};
_.u.handleMouseLeave=function(){this.mouseOver=!1};
_.u.handleReplay=function(D){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),D.stopPropagation(),this.logClientVe(159408))};
_.u.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()))};
_.u.handleKeypress=function(D){this.data&&(this.isEditMode?D.stopPropagation():this.isEnterPress(D)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(D)&&this.logClientVe(138758))};
_.u.handleTextboxClick=function(D){D.stopPropagation()};
_.u.handleTextboxKeydown=function(D){this.isControlEnterPress(D)?this.handleSubmit(D):D.key==="Escape"&&this.handleCancel(D)};
_.u.handleTextboxKeyup=function(){this.textChanged=_.OM(this.latestText)!==String(this.ironTextAreaElement.value)};
_.u.fireSelectedEvent=function(D){_.MX(this.hostElement,"yt-transcript-segment-selected",{startMs:D})};
_.u.fireReplayEvent=function(D,Y){_.MX(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(D-100,0),endMs:Y})};
_.u.fireEditEvent=function(D,Y){_.MX(this.hostElement,"yt-transcript-segment-edit",{startMs:D,endMs:Y})};
_.u.isEnterPress=function(D){return D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13?!0:!1};
_.u.isControlEnterPress=function(D){var Y=D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13;return(D.ctrlKey||D.metaKey)&&Y};
_.u.isCopyPress=function(D){var Y=D.ctrlKey;return D.key==="c"&&Y};
_.u.logClick=function(){var D,Y=(D=this.data)==null?void 0:D.trackingParams;Y&&_.GJ(_.n8(),Y)};
_.u.logClientVe=function(D){_.Fq(_.n8(),_.TP(D))};
_.YF.Object.defineProperties(BT.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}}});
BT.prototype.handleMouseLeave=BT.prototype.handleMouseLeave;BT.prototype.handleMouseEnter=BT.prototype.handleMouseEnter;BT.prototype.dataChanged=BT.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],BT.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],BT.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],BT.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BT.prototype,"isEditMode",void 0);_.q([_.y(),_.x("design:type",Object)],BT.prototype,"touchCaptionsEnabled",void 0);_.q([_.y(),_.x("design:type",Object)],BT.prototype,"editedText",void 0);_.q([_.y(),_.x("design:type",Object)],BT.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.q([_.y(),_.x("design:type",Object)],BT.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.q([_.y(),_.x("design:type",String)],BT.prototype,"segmentAriaLabel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BT.prototype,"roundedContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BT.prototype,"mouseOver",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],BT.prototype,"textChanged",void 0);_.q([_.y(),_.x("design:type",Object)],BT.prototype,"messages",void 0);
_.q([_.fr("#suggestion"),_.x("design:type",Object)],BT.prototype,"ironTextAreaElement",void 0);_.q([_.b("data","editedText"),_.x("design:type",Object),_.x("design:paramtypes",[])],BT.prototype,"latestText",null);_.q([_.b("touchCaptionsEnabled","isEditMode"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"enableEditButton",null);
_.q([_.b("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BT.prototype,"enableUndoButton",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BT.prototype,"dataChanged",null);_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BT.prototype,"handleMouseEnter",null);
_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BT.prototype,"handleMouseLeave",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],BT);
_.L(BT,"ytd-transcript-segment-renderer",function(){if(mcg!==void 0)return mcg;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return mcg=D},{mode:1});var p7=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};D.isError=!1;D.darkerPanels=_.f("web_watch_darker_panels");D.useParentMaxHeight=_.f("web_watch_transscript_use_parent_max_height");D.segmentOffsets=[];D.segmentIndex=-1;return D};
_.n(p7,_.N);_.u=p7.prototype;_.u.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"}}}}};
_.u.segmentsChanged=function(){this.updateOffsets()};
_.u.onYtPlayerTimeChanged=function(D){for(var Y=this.segmentIndex,R=Y;;){if(R>=0){var Z=this.segmentOffsets[R].start;var t=this.segmentOffsets[R].isAutoScrollable}else Z=-1,t=!0;var X=D+.5;if(!t){Z=R+1<this.segmentOffsets.length?this.segmentOffsets[R+1].start:Infinity;if(X>=Z){R+=1;continue}R=-1;break}if(X<Z)Z=R-1>=0&&this.segmentOffsets[R-1].isAutoScrollable,t=R===0||Z?1:2,R-=t;else if(t=R+1<this.segmentOffsets.length&&this.segmentOffsets[R+1].isAutoScrollable?1:2,Z=R+t<this.segmentOffsets.length?
this.segmentOffsets[R+t].start:Infinity,X>Z)R+=t;else{if(R<0)break;R<this.segmentOffsets.length&&X>this.segmentOffsets[R].end&&(R=-1);break}}if(Y!==R){if(Y>=0){var M;(M=this.getSegmentElement(Y))==null||M.classList.remove("active")}this.segmentIndex=R;if(!(R<0)){var W;(W=this.getSegmentElement(R))==null||W.classList.add("active");this.isHovered||this.scrollElementToTop(R)}}};
_.u.handleSegmentEdit=function(D){D.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=D.target,_.CX(this.hostElement,"yt-transcript-player-edit",[D.detail.startMs/1E3,D.detail.endMs/1E3]))};
_.u.handleSegmentSelected=function(D){_.CX(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.u.handleSegmentReplay=function(D){_.CX(this.hostElement,"yt-transcript-player-replay",[D.detail.startMs/1E3,D.detail.endMs/1E3])};
_.u.handleSectionHeaderSelected=function(D){_.CX(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.u.onMouseEnter=function(){this.isHovered=!0};
_.u.onMouseLeave=function(){this.isHovered=!1};
_.u.onRetryButtonClick=function(){_.MX(this.hostElement,"transcript-retry-button-click")};
_.u.getSegmentElement=function(D){return _.aU(this.hostElement).querySelector(":nth-child("+(D+1)+")")};
_.u.scrollElementToTop=function(D){D=this.getSegmentElement(D>=2?D-2:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.u.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(D){var Y,R=(Y=D.transcriptSegmentRenderer)!=null?Y:D.transcriptSectionHeaderRenderer;return{start:Number(R.startMs)/1E3,end:Number(R.endMs)/1E3,isAutoScrollable:D.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.u.clearHighlightedSegments=function(){var D=_.aU(this.hostElement);D=_.a(D.querySelectorAll("ytd-transcript-segment-renderer"));for(var Y=D.next();!Y.done;Y=D.next())Y.value.classList.remove("active")};
_.YF.Object.defineProperties(p7.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.searchResultSegments)||((Y=this.data)==null?void 0:Y.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
p7.prototype.onMouseLeave=p7.prototype.onMouseLeave;p7.prototype.onMouseEnter=p7.prototype.onMouseEnter;p7.prototype.handleSectionHeaderSelected=p7.prototype.handleSectionHeaderSelected;p7.prototype.handleSegmentReplay=p7.prototype.handleSegmentReplay;p7.prototype.handleSegmentSelected=p7.prototype.handleSegmentSelected;p7.prototype.handleSegmentEdit=p7.prototype.handleSegmentEdit;p7.prototype.segmentsChanged=p7.prototype.segmentsChanged;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],p7.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],p7.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],p7.prototype,"isError",void 0);
_.q([_.y(),_.x("design:type",Object)],p7.prototype,"noResultLabel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],p7.prototype,"darkerPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],p7.prototype,"useParentMaxHeight",void 0);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],p7.prototype,"segments",null);
_.q([_.b("segments","noResultLabel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],p7.prototype,"displayNoResults",null);_.q([_.Gm("segments"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p7.prototype,"segmentsChanged",null);_.q([_.Fv("yt-transcript-segment-edit"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],p7.prototype,"handleSegmentEdit",null);
_.q([_.Fv("yt-transcript-segment-selected"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],p7.prototype,"handleSegmentSelected",null);_.q([_.Fv("yt-transcript-segment-replay"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],p7.prototype,"handleSegmentReplay",null);
_.q([_.Fv("ytd-transcript-section-header"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],p7.prototype,"handleSectionHeaderSelected",null);_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p7.prototype,"onMouseEnter",null);_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p7.prototype,"onMouseLeave",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],p7);
_.L(p7,"ytd-transcript-segment-list-renderer",function(){if(L_y!==void 0)return L_y;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return L_y=D},{mode:1});var EV=function(){var D=_.N.apply(this,arguments)||this;D.hideTimestamps=!!_.FJ("hide-transcript-timestamps");D.isLoadingTranscripts=!1;D.darkerPanels=_.f("web_watch_darker_panels");D.isError=!1;D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return D};
_.n(EV,_.N);_.u=EV.prototype;_.u.headerChanged=function(){var D,Y;this.baseGetTranscriptsCommand=(Y=_.A((D=this.data)==null?void 0:D.header,eKE))==null?void 0:Y.onTextChangeCommand};
_.u.bodyChanged=function(){var D=this.getBodyRenderer();D&&(D.initialSegments&&(this.initialTranscriptsRenderer=D),D.noResultLabel&&(this.noResultLabel=D.noResultLabel),D.retryLabel&&(this.retryLabel=D.retryLabel))};
_.u.detached=function(){this.clearSearchBoxText()};
_.u.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.u.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"}}}};
_.u.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.u.fireSearch=function(D){var Y=this;if(D){var R=D.detail.query;if(this.baseGetTranscriptsCommand){var Z;D=(Z=_.A(this.baseGetTranscriptsCommand,_.GRz))==null?void 0:Z.params;var t;Z=_.A((t=this.data)==null?void 0:t.footer,t0S);var X;if((t=(X=_.A(Z==null?void 0:Z.languageMenu,IpJ))==null?void 0:X.subMenuItems)&&t.length>0&&(X=t.find(function(z){return z.selected}))){var M,W;
D=(M=X.continuation)==null?void 0:(W=M.reloadContinuationData)==null?void 0:W.continuation}M=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:D,searchQuery:R}});this.ytComponentBehavior.resolveCommand(M,{commandController:{onServerError:function(){Y.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});qLN(this.ytContinuationHandlerBehavior,function(){return R===Y.getCurrentSearchBoxText()})}}};
_.u.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.u.onRetryButtonClick=function(){this.isError=!1;var D={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:D}))};
_.u.hideTimestampsChanged=function(){_.I8("hide-transcript-timestamps",this.hideTimestamps)};
_.u.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.u.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.u.handleSignalActionCopyTranscript=function(){var D=this,Y=this.getBodyRenderer();Y&&(Y=((Y==null?void 0:Y.searchResultSegments)||(Y==null?void 0:Y.initialSegments)||[]).map(function(R){return _.A(R,nKy)}).filter(function(R){return!!R}).map(function(R){return{snippet:R.snippet||{runs:[{text:""}]},
startTimeText:R.startTimeText||{simpleText:""}}}).map(function(R){var Z=(R.snippet.runs||[]).reduce(function(t,X){return t+X.text},"");
return D.hideTimestamps?Z:R.startTimeText.simpleText+" "+Z}).join("\n"),this.copyToClipboard(Y))};
_.u.copyToClipboard=function(D){navigator.clipboard&&navigator.clipboard.writeText(D)};
_.u.getCurrentSearchBoxText=function(){var D;return(D=this.searchBox)==null?void 0:D.value};
_.u.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.u.getBodyRenderer=function(){var D;return _.A((D=this.data)==null?void 0:D.body,A9S)};
_.u.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.YF.Object.defineProperties(EV.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.aU(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
EV.prototype.hideTimestampsChanged=EV.prototype.hideTimestampsChanged;EV.prototype.searchCleared=EV.prototype.searchCleared;EV.prototype.fireSearch=EV.prototype.fireSearch;EV.prototype.onReloadContinuationFinish=EV.prototype.onReloadContinuationFinish;EV.prototype.bodyChanged=EV.prototype.bodyChanged;EV.prototype.headerChanged=EV.prototype.headerChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],EV.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],EV.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],EV.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EV.prototype,"hideTimestamps",void 0);
_.q([_.y(),_.x("design:type",Object)],EV.prototype,"isLoadingTranscripts",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],EV.prototype,"darkerPanels",void 0);_.q([_.y(),_.x("design:type",Object)],EV.prototype,"isError",void 0);_.q([_.Gm("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EV.prototype,"headerChanged",null);
_.q([_.rd("data.body"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EV.prototype,"bodyChanged",null);_.q([_.Fv("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EV.prototype,"onReloadContinuationFinish",null);_.q([_.Fv("yt-transcript-search-box-search"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],EV.prototype,"fireSearch",null);
_.q([_.Fv("yt-transcript-search-box-clear"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EV.prototype,"searchCleared",null);_.q([_.Gm("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EV.prototype,"hideTimestampsChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],EV);
_.L(EV,"ytd-transcript-search-panel-renderer",function(){if(K_7!==void 0)return K_7;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return K_7=D},{mode:1});var gA=function(){var D=_.N.apply(this,arguments)||this;D.player=null;D.playerPollJobId=0;return D};
_.n(gA,_.N);_.u=gA.prototype;_.u.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.u.onLoadReloadContinuation=function(D){_.f("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:D.target.data.continuation}}):(D={clickTrackingParams:D.target.data.clickTrackingParams,getTranscriptEndpoint:{params:D.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}}))};
_.u.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"}}}};
_.u.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.u.attached=function(){this.updatePlayerListening()};
_.u.detached=function(){this.updatePlayerListening()};
_.u.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.u.startPlayerListening=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return(Y=_.sm())?R.yield(Y.getPlayerPromise(),2):R.return();D.player=R.yieldResult;D.playerPollJobId=_.yc.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3);
D.player.addEventListener("onCueRangeEnter",function(Z){D.onCueRangeEnter(Z)});
D.player.addEventListener("onCueRangeExit",function(Z){D.onCueRangeExit(Z)});
D.player.addEventListener("onStateChange",function(Z){D.onPlayerStateChange(Z)});
D.player.addEventListener("SEEK_TO",function(Z){D.onPlayerSeek(Z)});
_.V9(R)})};
_.u.getPlayerVideoProgress=function(){var D=this;_.yc.cancelJob(this.playerPollJobId);if(this.player){var Y=this.player.getCurrentTime();_.CX(this.hostElement,"yt-player-time-changed",[Y])}this.playerPollJobId=_.yc.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3)};
_.u.stopPlayerListening=function(){this.player=null;_.yc.cancelJob(this.playerPollJobId)};
_.u.onPlayerStateChange=function(D){D===2&&this.removePendingCue()};
_.u.onPlayerSeek=function(D){var Y;if(Y=this.pendingReplayCueId)Y=this.pendingReplayCueId,Y=D===(_.f("web_transcript_cue_id_killswitch")?Number(Y):Number(Y.split("_")[1]));Y||this.removePendingCue()};
_.u.onCueRangeEnter=function(D){zYf(D)&&(this.pendingReplayCueId=D)};
_.u.onCueRangeExit=function(D){zYf(D)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.u.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.u.onYtTranscriptPlayerSeek=function(D){this.player&&this.player.seekTo(D,!0)};
_.u.onYtTranscriptPlayerReplay=function(D,Y){this.player&&(this.player.addCueRange(W7f(D),D,Y),this.player.seekTo(D,!0),this.player.playVideo())};
_.u.onYtTranscriptPlayerEdit=function(D,Y){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(W7f(D),D,Y),this.player.seekTo(D,!0))};
gA.prototype.onLoadReloadContinuation=gA.prototype.onLoadReloadContinuation;gA.prototype.panelContentVisibleChanged=gA.prototype.panelContentVisibleChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gA.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],gA.prototype,"panelContentVisible",void 0);_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gA.prototype,"panelContentVisibleChanged",null);
_.q([_.Fv("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],gA.prototype,"onLoadReloadContinuation",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],gA);
_.L(gA,"ytd-transcript-renderer",function(){if(klo!==void 0)return klo;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return klo=D},{mode:1});var qxB;var Hjf;var dA=function(){return _.N.apply(this,arguments)||this};
_.n(dA,_.N);dA.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Se(this.hostElement,[this.data.clickCommand],this.hostElement))};
dA.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.g6)()+_.mN)+"px)"};
dA.prototype.updateShouldHideFromBinding=function(D){this.shouldHide=D.detail.value};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dA.prototype,"rendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dA.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],dA.prototype,"shouldHide",void 0);_.q([_.h({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],dA);
_.L(dA,"ytd-ad-engagement-panel-banner-renderer",function(){if(Hjf!==void 0)return Hjf;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Hjf=D},{mode:_.zD("kevlar_poly_si_batch_j070")?1:2});var xco;var iW=function(){var D=_.N.apply(this,arguments)||this;D.modernPanels=_.f("kevlar_watch_modern_panels");D.buttonUpdate=_.f("web_modern_buttons");D.adsSemanticText=_.f("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.n(iW,_.N);iW.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.q([_.y(),_.x("design:type",Object)],iW.prototype,"data",void 0);_.q([_.y({computed:"computeHideDefaultAdBadge(data)"}),_.x("design:type",Boolean)],iW.prototype,"hideDefaultAdBadge",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iW.prototype,"modernPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iW.prototype,"buttonUpdate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iW.prototype,"adsSemanticText",void 0);
_.q([_.h({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],iW);
_.L(iW,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(xco!==void 0)return xco;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xco=D},{mode:1});var P4E;var OV=function(){var D=_.N.apply(this,arguments)||this;D.darkerPanels=_.f("web_watch_darker_panels");D.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");D.modernPanels=_.f("kevlar_watch_modern_panels");D.headerClickListener=function(Y){D.onHeaderClick(Y)};
D.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return D};
_.n(OV,_.N);_.u=OV.prototype;_.u.computeAdsInfoButton=function(){if(_.f("web_modern_buttons")){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.subtitleComplex,s9J))==null?void 0:Y.adInfoRenderer}};
_.u.updateHeaderClickListener=function(){var D,Y,R;((D=this.data)==null?0:D.navigationEndpoint)||((Y=this.data)==null?0:Y.onClickCommand)||_.A((R=this.data)==null?void 0:R.visibilityButton,_.Hx)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.u.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}}}}}};
_.u.collapsedChanged=function(){var D;(D=this.data)!=null&&D.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.f("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.u.focus=function(D){var Y=this;this.titleElement&&_.yc.addJob(function(){_.Bg(Y.titleElement,D)},0,500)};
_.u.computeTitleAriaLabel=function(D){var Y=[];if(D.title){var R,Z;Y.push(this.ytRendererBehavior.getSimpleString(D.title)||((R=D.title.accessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label))}D.contextualInfo&&Y.push(this.ytRendererBehavior.getSimpleString(D.contextualInfo));return Y.join(" ")};
_.u.onHeaderClick=function(D){this.shouldTriggerHeaderClick(D)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Se(this.hostElement,[this.data.onClickCommand],this.hostElement)):(D=this.getVisibilityToggleButton())&&D.click())};
_.u.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var D=_.A(this.data.visibilityButton,_.qv)||_.A(this.data.visibilityButton,_.Hx);D&&this.ytRendererBehavior.logExplicitClick(D)}};
_.u.getVisibilityToggleButton=function(){var D=_.aU(this.hostElement).querySelector("#visibility-button").firstElementChild;return(D==null?void 0:D.is)==="ytd-toggle-button-renderer"?D:null};
_.u.shouldTriggerHeaderClick=function(D){return!_.Yc(_.O$(D),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.u.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(D){D=_.A(D,_.dUg);this.targetId&&(D==null?void 0:D.targetId)===this.targetId&&(D=D.navigationButton)&&this.set("data.navigationButton",D)};
_.YF.Object.defineProperties(OV.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!!(((D=this.entity)==null?0:D.isActionButtonHidden)||this.hideActionButton)}}});
OV.prototype.collapsedChanged=OV.prototype.collapsedChanged;OV.prototype.updateHeaderClickListener=OV.prototype.updateHeaderClickListener;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],OV.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],OV.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],OV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],OV.prototype,"targetId",void 0);_.q([_.y(),_.x("design:type",Boolean)],OV.prototype,"collapsed",void 0);_.q([_.y(),_.x("design:type",Boolean)],OV.prototype,"hideActionButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],OV.prototype,"shortsPanel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],OV.prototype,"liveChatEngagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],OV.prototype,"learningChatEngagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],OV.prototype,"darkerPanels",void 0);_.q([_.fr("#title"),_.x("design:type",HTMLElement)],OV.prototype,"titleElement",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],OV.prototype,"headerElement",void 0);
_.q([_.y({computed:"computeAdsInfoButton(data)"}),_.x("design:type",Object)],OV.prototype,"adsInfoButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],OV.prototype,"enableSqueezebackPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],OV.prototype,"enableAnchoredPanel",void 0);_.q([_.y({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(D,Y){return _.jC(D.entities,"engagementPanelTitleHeaderEntity",Y)}}),
_.x("design:type",Object)],OV.prototype,"entity",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],OV.prototype,"modernPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OV.prototype,"adsSemanticText",null);_.q([_.Gm("data","data.navigationEndpoint","data.onClickCommand"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OV.prototype,"updateHeaderClickListener",null);
_.q([_.rd("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OV.prototype,"collapsedChanged",null);_.q([_.b("entity","hideActionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],OV.prototype,"isActionButtonHidden",null);_.q([_.h({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],OV);
_.L(OV,"ytd-engagement-panel-title-header-renderer",function(){if(P4E!==void 0)return P4E;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return P4E=D},{mode:1});var QKT;var cT=function(){return _.N.apply(this,arguments)||this};
_.n(cT,_.N);cT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cT.prototype,"data",void 0);_.q([_.h({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],cT);
_.L(cT,"ytd-macro-markers-info-item-renderer",function(){if(QKT!==void 0)return QKT;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return QKT=D},{mode:1});var B9o;var g3f=function(D,Y,R,Z,t,X){_.AE.call(this);var M=this;this.JSC$22626_containerElement=D;this.hostElement=Y;this.supportedSyncItems=R;this.syncEntityKey=Z;this.options=t;this.renderLazyListItems=X;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;ph$(this);E3$(this);this.JSC$22626_scrollAnimation=new _.Bi(function(W){D.scrollTop=W});
_.WB(this,this.JSC$22626_scrollAnimation);this.addOnDisposeCallback(function(){M.exitBrowsingMode(!1);M.activeItem&&M.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.n(g3f,_.AE);var ph$=function(D){var Y=_.rm(_.DH().resolve(_.xZ),function(R){return R.entities.markersEngagementPanelSyncEntity||{}},function(R,Z){var t;
R[D.syncEntityKey]!==Z[D.syncEntityKey]&&((t=R[D.syncEntityKey])==null?void 0:t.activeItemIndex)!==void 0&&D.updatePanelActiveItem(R[D.syncEntityKey].activeItemIndex)});
D.unsubscribeFromTimedMarkersListSyncEntity=Y;D.addOnDisposeCallback(Y);dc$(D)},dc$=function(D){var Y=_.DH().resolve(_.xZ);
Y=_.oXi(Y.getState(),D.syncEntityKey);(Y==null?void 0:Y.activeItemIndex)!==void 0&&(Y=D.getItemByIndex(Y.activeItemIndex))&&D.setActiveItem(Y)},E3$=function(D){var Y=new _.gq(D.onScroll,50,D);
_.WB(D,Y);var R=function(){Y.fire()};
D.JSC$22626_containerElement.addEventListener("scroll",R);D.addOnDisposeCallback(function(){D.JSC$22626_containerElement.removeEventListener("scroll",R)})};
_.u=g3f.prototype;
_.u.updatePanelActiveItem=function(D){var Y=this.getItemByIndex(D);if(Y){if(this.setActiveItem(Y),this.contentVisible)if(this.browsingMode){var R;((R=this.options)==null?void 0:R.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(D=ijJ(this),Y.offsetTop<this.JSC$22626_containerElement.clientHeight+this.JSC$22626_containerElement.scrollTop&&D&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));Ojf(this)}else this.scrollToItem(Y)}else _.Jk(new _.AT("Could not find "+this.supportedSyncItems+
" sync child to set active.",D,this.JSC$22626_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.u.getItemByIndex=function(D){var Y;(Y=this.renderLazyListItems)==null||Y.call(this,D);Y=this.JSC$22626_containerElement.querySelectorAll(this.supportedSyncItems);if(Y.length>D)return Y[D]};
_.u.setActiveItem=function(D){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));D.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=D};
_.u.scrollToItem=function(D){D=this.getScrollPositionForItem(D);this.JSC$22626_containerElement.scrollTop!==D&&this.JSC$22626_scrollAnimation.start(this.JSC$22626_containerElement.scrollTop,D,300)};
_.u.getScrollPositionForItem=function(D){if(this.JSC$22626_containerElement.querySelectorAll(this.supportedSyncItems)[0]===D)return 0;var Y,R=((Y=this.options)==null?0:Y.percentOffset)?this.JSC$22626_containerElement.clientHeight*this.options.percentOffset:0;D=_.UG(D).y+this.JSC$22626_containerElement.scrollTop-(_.UG(this.JSC$22626_containerElement).y+R);return Math.max(0,Math.min(D,this.JSC$22626_containerElement.scrollHeight-this.JSC$22626_containerElement.offsetHeight))};
_.u.onScroll=function(){this.activeItemBelowSyncPosition=ijJ(this);if(this.activeItem&&!this.JSC$22626_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22626_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var D;switch((D=this.options)==null?void 0:D.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!cFZ(this));Ojf(this);break;default:this.enterBrowsingMode(!0)}}};
_.u.enterBrowsingMode=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1){if(Y.browsingMode)return t.return();Y.browsingMode=!0;D&&Y.hostElement.classList.add("browsing-mode");Y.playerExitBrowsingModeListener=function(){Y.exitBrowsingMode(!1)};
return t.yield(_.jG(),2)}R=t.yieldResult;(Z=R)==null||Z.addEventListener("SEEK_TO",Y.playerExitBrowsingModeListener);_.V9(t)})};
_.u.exitBrowsingMode=function(D){D=D===void 0?!0:D;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),D&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.u.removePlayerSeekListener=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return D.playerExitBrowsingModeListener?Z.yield(_.jG(),3):Z.jumpTo(0);Y=Z.yieldResult;(R=Y)==null||R.removeEventListener("SEEK_TO",D.playerExitBrowsingModeListener);D.playerExitBrowsingModeListener=void 0;_.V9(Z)})};
var Ojf=function(D){var Y;((Y=D.options)==null?void 0:Y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(cFZ(D)?D.hostElement.classList.remove("browsing-mode"):D.activeItem&&D.hostElement.classList.add("browsing-mode"))},ijJ=function(D){if(!D.activeItem)return!1;
var Y,R=((Y=D.options)==null?0:Y.percentOffset)?D.JSC$22626_containerElement.clientHeight*D.options.percentOffset:0;return D.activeItem.offsetTop>=D.JSC$22626_containerElement.scrollTop+R},cFZ=function(D){if(!D.activeItem)return!1;
var Y=D.activeItem.offsetTop+14<=D.JSC$22626_containerElement.scrollTop+D.JSC$22626_containerElement.clientHeight;return D.activeItem.offsetTop+D.activeItem.clientHeight-14>=D.JSC$22626_containerElement.scrollTop&&Y};
g3f.prototype.panelContentVisibleChanged=function(D){(this.contentVisible=D)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var D1$=function(D,Y){D.syncEntityKey=Y;var R;(R=D.unsubscribeFromTimedMarkersListSyncEntity)==null||R.call(D);ph$(D)},YG7=function(D,Y){D.options=Y};var Dr=function(){var D=_.N.apply(this,arguments)||this;D.browsingMode=!1;D.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return D};
_.n(Dr,_.N);_.u=Dr.prototype;_.u.activeItemChanged=function(){if(!_.f("synced_panel_scrolling_controller")){var D;((D=this.syncEntity)==null?void 0:D.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.u.created=function(){var D=this;_.f("synced_panel_scrolling_controller")||(this.JSC$22630_scrollAnimation=new _.Bi(function(Y){D.contents.scrollTop=Y}),this.boundExitBrowsingMode=function(){D.exitBrowsingMode(!1)})};
_.u.detached=function(){if(_.f("synced_panel_scrolling_controller")){var D;(D=this.scrollController)==null||D.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.u.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"}}}};
_.u.dataChanged=function(){var D=this;_.f("synced_panel_scrolling_controller")?_.cy(this,function(){if(D.scrollController){var Y;(Y=D.scrollController)==null||Y.exitBrowsingMode(!1);var R,Z,t;(Z=D.scrollController)==null||D1$(Z,(t=(R=D.data)==null?void 0:R.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key");var X,M,W;(W=D.scrollController)==null||YG7(W,{percentOffset:(X=D.data)==null?void 0:X.selectedItemAlignmentPercentOffset,floatingPillType:(M=D.data)==null?void 0:M.floatingPillType})}else{var z,
I,F,G;D.scrollController=new g3f(D.contents,D.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(G=(z=D.data)==null?void 0:z.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key",{percentOffset:(I=D.data)==null?void 0:I.selectedItemAlignmentPercentOffset,floatingPillType:(F=D.data)==null?void 0:F.floatingPillType},function(V){D.renderLazyListItems(V)})}D.scrollController.panelContentVisibleChanged(!!D.panelContentVisible)}):this.exitBrowsingMode()};
_.u.computeButtonShape=function(){var D=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){D.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.u.computeSyncEnabled=function(D){return!(D==null||!D.syncButtonLabel)};
_.u.renderLazyListItems=function(D){for(var Y=this.contents.children,R=0,Z=0;Z<Y.length;Z++){var t=void 0;(t=Y[Z].ytLazyListBehavior)==null||t.fillRemainingListItems();var X=void 0,M=void 0;t=_.A((X=this.data)==null?void 0:(M=X.contents)==null?void 0:M[Z],_.$v_);M=X=void 0;if((X=t)==null?0:(M=X.contents)==null?0:M.length)R+=t.contents.length;if(R>=D)break}};
_.u.getItemByIndex=function(D){this.renderLazyListItems(D);var Y=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(Y.length>D)return Y[D]};
_.u.setActiveItem=function(D){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);D.active!==void 0&&(D.active=!0);this.currentActiveItem=D};
_.u.handleSetActivePanelItemAction=function(D){if((D=_.A(D,OL$))&&this.panelTargetId===D.panelTargetId){D=D.itemIndex;if(_.f("synced_panel_scrolling_controller")){var Y,R;var Z=(R=(Y=this.data)==null?void 0:Y.syncModelEntityKey)!=null?R:"default-macro-markers-list-renderer-entity-key"}else{var t;Z=(t=this.data)==null?void 0:t.syncModelEntityKey}if(Z){var X;((X=this.syncEntity)==null?void 0:X.activeItemIndex)!==D&&this.ytdReduxBehavior.dispatch(_.oP("markersEngagementPanelSyncEntity",Z,{key:Z,activeItemIndex:D}))}else this.updatePanelActiveItem(D)}};
_.u.updatePanelActiveItem=function(D){var Y=this.getItemByIndex(D);Y?(this.setActiveItem(Y),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(Y)):_.Jk(new _.AT("Could not find ytd-macro-markers-list-renderer sync child to set active.",D,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.u.scrollToItem=function(D){D=this.getScrollPositionForItem(D);this.contents.scrollTop!==D&&this.JSC$22630_scrollAnimation.start(this.contents.scrollTop,D,300)};
_.u.getScrollPositionForItem=function(D){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===D)return 0;D=_.UG(D).y+this.contents.scrollTop-_.UG(this.contents).y-this.getStickyHeaderHeight(D);return Math.min(D,this.contents.scrollHeight-this.contents.offsetHeight)};
_.u.getStickyHeaderHeight=function(D){if(D.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var Y,R,Z;return(Z=(Y=D.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(R=Y.header)==null?void 0:R.offsetHeight)!=null?Z:0}return 0};
_.u.onScroll=function(){_.f("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22630_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.u.enterBrowsingMode=function(){var D=this;return _.C(function(Y){if(Y.nextAddress==1){if(D.browsingMode)return Y.return();D.browsingMode=!0;return Y.yield(_.XU().getPlayerPromise(),2)}D.player=Y.yieldResult;D.player.addEventListener("SEEK_TO",D.boundExitBrowsingMode);_.V9(Y)})};
_.u.exitBrowsingMode=function(D){this.browsingMode&&(this.browsingMode=!1,(D===void 0||D)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.u.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.u.onSyncClick=function(){if(_.f("synced_panel_scrolling_controller")){var D;(D=this.scrollController)==null||D.exitBrowsingMode()}else this.exitBrowsingMode()};
_.u.panelContentVisibleChanged=function(){if(_.f("synced_panel_scrolling_controller")){var D;(D=this.scrollController)==null||D.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Dr.prototype.panelContentVisibleChanged=Dr.prototype.panelContentVisibleChanged;Dr.prototype.dataChanged=Dr.prototype.dataChanged;Dr.prototype.activeItemChanged=Dr.prototype.activeItemChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Dr.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Dr.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Dr.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Dr.prototype,"useCustomColors",void 0);_.q([_.y({computed:"computeSyncEnabled(data)"}),_.x("design:type",Boolean)],Dr.prototype,"syncEnabled",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],Dr.prototype,"panelTargetId",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Dr.prototype,"panelContentVisible",void 0);_.q([_.fr("#contents"),_.x("design:type",HTMLElement)],Dr.prototype,"contents",void 0);_.q([_.fr("#sync-container"),_.x("design:type",HTMLElement)],Dr.prototype,"syncContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Dr.prototype,"browsingMode",void 0);
_.q([_.y({selectorArgs:["data.syncModelEntityKey"],selector:_.oXi}),_.x("design:type",Object)],Dr.prototype,"syncEntity",void 0);_.q([_.Gm("syncEntity.activeItemIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dr.prototype,"activeItemChanged",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dr.prototype,"dataChanged",null);
_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dr.prototype,"panelContentVisibleChanged",null);_.q([_.h({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Dr);
_.L(Dr,"ytd-macro-markers-list-renderer",function(){if(B9o!==void 0)return B9o;var D=document.createElement("template");_.w(D,'\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" hidden="[[!syncEnabled]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return B9o=D},{mode:1});var R3o;var YA=function(){return _.N.apply(this,arguments)||this};
_.n(YA,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],YA.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],YA.prototype,"data",void 0);_.q([_.h({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],YA);
_.L(YA,"ytd-error-corrections-section-item-renderer",function(){if(R3o!==void 0)return R3o;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return R3o=D},{mode:1});var Z0N;var Rx=function(){return _.N.apply(this,arguments)||this};
_.n(Rx,_.N);Rx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Rx.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Rx.prototype,"data",void 0);_.q([_.h({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Rx);
_.L(Rx,"ytd-error-corrections-section-renderer",function(){if(Z0N!==void 0)return Z0N;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Z0N=D},{mode:1});var twE;var Zr=function(){return _.N.apply(this,arguments)||this};
_.n(Zr,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Zr.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zr.prototype,"data",void 0);_.q([_.h({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Zr);
_.L(Zr,"ytd-topic-link-renderer",function(){if(twE!==void 0)return twE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return twE=D},{mode:1});var sIE;var te=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("kevlar_modern_sd_v2");D.modernLockupV2=_.f("modernize_structured_description_playlist_lockups_v2");D.modernTypography=_.f("web_modern_typography");return D};
_.n(te,_.N);te.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],te.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],te.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],te.prototype,"modernLockupV2",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],te.prototype,"modernTypography",void 0);_.q([_.h({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],te);
_.L(te,"ytd-video-description-course-section-renderer",function(){if(sIE!==void 0)return sIE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return sIE=D},{mode:1});var X87;var sp=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("kevlar_modern_sd_v2");D.modernTypography=_.f("web_modern_typography");return D};
_.n(sp,_.N);sp.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sp.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],sp.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],sp.prototype,"modernTypography",void 0);
_.q([_.h({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],sp);
_.L(sp,"ytd-video-description-files-section-renderer",function(){if(X87!==void 0)return X87;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return X87=D},{mode:1});var uL7;var Xy=function(){return _.N.apply(this,arguments)||this};
_.n(Xy,_.N);Xy.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Xy.prototype,"data",void 0);_.q([_.h({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Xy);
_.L(Xy,"ytd-video-description-gaming-section-renderer",function(){if(uL7!==void 0)return uL7;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return uL7=D},{mode:1});var a7$;var uN=function(){var D=_.N.apply(this,arguments)||this;D.isExpanded=!1;return D};
_.n(uN,_.N);uN.prototype.computeHasDefaultMetadataEndpoint=function(D){var Y;D=D==null?void 0:(Y=D.defaultMetadata)==null?void 0:Y.runs;return!(!D||D.length!==1||!D[0].navigationEndpoint)};
uN.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.YF.Object.defineProperties(uN.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uN.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uN.prototype,"isExpanded",void 0);_.q([_.y({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],uN.prototype,"hasDefaultMetadataEndpoint",void 0);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uN.prototype,"isExpandable",null);_.q([_.b("data","isExpandable","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uN.prototype,"showExpandedMetadata",null);_.q([_.h({is:"ytd-info-row-renderer",disableElementRegistration:!0})],uN);
_.L(uN,"ytd-info-row-renderer",function(){if(a7$!==void 0)return a7$;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return a7$=D},{mode:1});var MwB;var ax=function(){var D=_.N.apply(this,arguments)||this;D.currentIndex=0;D.supportComponentResize=!0;D.modern=_.f("kevlar_modern_sd_v2");D.JSC$22656_lastScrollContainerWidth=NaN;return D};
_.n(ax,_.N);_.u=ax.prototype;
_.u.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"}}}};
_.u.getItemsPath=function(){return"videoLockups"};
_.u.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.u.onIronResize=function(){this.updateVideoLockupStyles()};
_.u.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.u.updateVideoLockupStyles=function(){var D;this.JSC$22656_scrollContainer!==void 0&&(D=this.videoLockups)!=null&&D.length&&(D=this.JSC$22656_scrollContainer.clientWidth,D!==this.JSC$22656_lastScrollContainerWidth&&(this.JSC$22656_lastScrollContainerWidth=D,_.SN(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(D*.8,415)+"px"}),_.MX(this.hostElement,"iron-resize")))};
_.YF.Object.defineProperties(ax.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var D=[],Y;if((Y=this.data)==null||!Y.carouselLockups)return D;Y=_.a(this.data.carouselLockups);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;((Z=_.A(R,vKo))==null?0:Z.videoLockup)&&D.push(_.A(R,vKo).videoLockup)}return D}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoLockups)==null||!D.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var D=[],Y;if((Y=this.data)==null||!Y.carouselLockups)return D;var R;return(R=_.A(this.data.carouselLockups[this.scrollCount],vKo))==null?void 0:R.infoRows}}});
ax.prototype.dataChanged=ax.prototype.dataChanged;ax.prototype.onIronResize=ax.prototype.onIronResize;ax.prototype.hiddenChanged=ax.prototype.hiddenChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ax.prototype,"componentBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],ax.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ax.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],ax.prototype,"inlineStructuredDescription",void 0);_.q([_.y({value:2}),_.x("design:type",Number)],ax.prototype,"initialCount",void 0);_.q([_.y(),_.x("design:type",Object)],ax.prototype,"currentIndex",void 0);
_.q([_.y(),_.x("design:type",Number)],ax.prototype,"scrollCount",void 0);_.q([_.y(),_.x("design:type",Object)],ax.prototype,"supportComponentResize",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],ax.prototype,"contentHidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ax.prototype,"modern",void 0);_.q([_.fr("#scroll-container"),_.x("design:type",HTMLDivElement)],ax.prototype,"JSC$22656_scrollContainer",void 0);
_.q([_.Gm("contentHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ax.prototype,"hiddenChanged",null);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],ax.prototype,"videoLockups",null);_.q([_.b("videoLockups"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ax.prototype,"hasVideoLockups",null);
_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ax.prototype,"onIronResize",null);_.q([_.b("data","scrollCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],ax.prototype,"infoRows",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ax.prototype,"dataChanged",null);_.q([_.h({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],ax);
_.L(ax,"ytd-video-description-music-section-renderer",function(){if(MwB!==void 0)return MwB;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return MwB=D},{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var Cmy;var Me=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("kevlar_modern_sd_v2");D.modernTypography=_.f("web_modern_typography");return D};
_.n(Me,_.N);Me.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.q([_.y({}),_.x("design:type",Object)],Me.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"modernTypography",void 0);
_.q([_.h({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Me);
_.L(Me,"ytd-video-description-transcript-section-renderer",function(){if(Cmy!==void 0)return Cmy;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Cmy=D},{mode:1});var WJS;_.at(_.RT(function(D){var Y=_.Ax(_.Mli,function(){return D.data().firstProviderLinkStatusEntityKey}),R=_.Ax(_.Mli,function(){return D.data().secondProviderLinkStatusEntityKey}),Z=function(){var t,X;
return((t=Y())==null?void 0:t.linked)||((X=R())==null?void 0:X.linked)};
return _.S("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.S(_.y_,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return D.data().sectionTitle}}),_.S(_.y_,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Z()?D.data().connectedMessage:D.data().notConnectedMessage}}),_.S(_.T,{cond:Z,
then:function(){return _.S(_.vK,{data:function(){return D.data().connectedButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.S(_.T,{cond:function(){return!Z()},
then:function(){return _.S(_.vK,{data:function(){return D.data().notConnectedButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Vj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;return _.S("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.S("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.S(_.y_,{text:function(){return Y().sectionTitle}})),_.S("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.S(_.y_,{text:function(){return Y().bodyHeader}})),_.S("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.S(_.y_,{text:function(){return Y().bodyText}})),_.S(_.T,
{cond:function(){return Y().attributionText},
then:function(){return _.S("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.S(_.y_,{text:function(){return Y().attributionText}}))}}))},"Wj"),"how-this-was-made-section-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){return _.S("yt-video-description-youchat-section-view-model",{class:_.e7("ytVideoDescriptionYouchatSectionViewModelHost")},_.S("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.S(_.y_,{text:function(){return D.data().sectionTitle}})),_.S("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.S(_.y_,{text:function(){return D.data().subHeaderText}})),_.S("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.S(_.TV,{data:function(){return _.A(D.data().primaryButton,
_.QX)}})))},"Xj"),"yt-video-description-youchat-section-view-model",{props:{data:_.cs}});var CE=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return D};
_.n(CE,_.N);_.u=CE.prototype;
_.u.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}}}}}};
_.u.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.u.dataChanged=function(){var D,Y;this.hasDescriptionOnly=!(((D=this.data)==null?void 0:(Y=D.items)==null?void 0:Y.length)!==1||!_.A(this.data.items[0],h_))};
_.u.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.u.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.u.autoFocusDescription=function(){var D;((D=_.DH().resolve(_.cD(_.MQ)))==null?0:D.isKeyBoardInUse())&&this.description&&_.pq(this.description)};
_.u.resize=function(){if(_.f("kevlar_disable_sd_resize"))this.JSC$22665_cardList&&_.MX(this.JSC$22665_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.MX(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.MX(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.u.scrollToSection=function(D){if(D=this.getSectionElement(D))_.CX(this.hostElement,"yt-scroll-to-watch-element",[D]),D.focus()};
_.u.getSectionElement=function(D){switch(D){case "infocards-item-section":var Y;return(Y=this.infocardsSection)!=null?Y:null;case "transcript-item-section":var R;return(R=this.transcriptSection)!=null?R:null;case "how-this-was-made-section-item-section":var Z;return(Z=this.howThisWasMadeSection)!=null?Z:null;case "files-item-section":var t;return(t=this.filesSection)!=null?t:null;default:return null}};
_.u.handleSetActiveItemAction=function(D){var Y=_.A(D,OL$),R=Y&&(Y==null?void 0:Y.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22665_cardList;if(Y&&R){D=this.currentActiveChapter;var Z=this.currentActiveProblem;Y=R==null?void 0:R.getItemByIndex(Y.itemIndex);var t=R=!0;Y&&(Y.active=!0,Y.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(R=D!==Y,t=!1,this.currentActiveChapter=Y):(Y==null?void 0:Y.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(R=!1,t=Z!==Y,this.currentActiveProblem=Y));D&&R&&(D.active=!1);Z&&t&&(Z.active=!1)}};
_.YF.Object.defineProperties(CE.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.f("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
CE.prototype.onYtExpanderMoreTapped=CE.prototype.onYtExpanderMoreTapped;CE.prototype.onHiddenChanged=CE.prototype.onHiddenChanged;CE.prototype.dataChanged=CE.prototype.dataChanged;CE.prototype.panelContentVisibleChanged=CE.prototype.panelContentVisibleChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],CE.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],CE.prototype,"ironResizableBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],CE.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],CE.prototype,"panelContentVisible",void 0);_.q([_.y(),_.x("design:type",Boolean)],CE.prototype,"hasDescriptionOnly",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CE.prototype,"inlineStructuredDescription",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CE.prototype,"hidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CE.prototype,"shortsPanel",void 0);_.q([_.y(),_.x("design:type",Object)],CE.prototype,"videoSummary",void 0);_.q([_.y(),_.x("design:type",Object)],CE.prototype,"merchShelf",void 0);
_.q([_.b("videoSummary"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],CE.prototype,"showVideoSummary",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CE.prototype,"engagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],CE.prototype,"watchWhileSdp",void 0);_.q([_.fr("ytd-expandable-video-description-body-renderer"),_.x("design:type",Object)],CE.prototype,"description",void 0);
_.q([_.fr("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],CE.prototype,"JSC$22665_cardList",void 0);_.q([_.fr("ytd-horizontal-card-list-renderer[center-items]"),_.x("design:type",Object)],CE.prototype,"problemWalkthroughCardList",void 0);_.q([_.fr("ytd-shelf-renderer"),_.x("design:type",Object)],CE.prototype,"shelfSection",void 0);_.q([_.fr("ytd-video-description-music-section-renderer"),_.x("design:type",Object)],CE.prototype,"musicMetadataSection",void 0);
_.q([_.fr("ytd-video-description-infocards-section-renderer"),_.x("design:type",Object)],CE.prototype,"infocardsSection",void 0);_.q([_.fr("ytd-video-description-transcript-section-renderer"),_.x("design:type",Object)],CE.prototype,"transcriptSection",void 0);_.q([_.fr("how-this-was-made-section-view-model"),_.x("design:type",Object)],CE.prototype,"howThisWasMadeSection",void 0);_.q([_.fr("ytd-video-description-files-section-renderer"),_.x("design:type",Object)],CE.prototype,"filesSection",void 0);
_.q([_.Gm("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CE.prototype,"panelContentVisibleChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CE.prototype,"dataChanged",null);_.q([_.Gm("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CE.prototype,"onHiddenChanged",null);
_.q([_.Fv("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CE.prototype,"onYtExpanderMoreTapped",null);_.q([_.h({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],CE);
_.L(CE,"ytd-structured-description-content-renderer",function(){if(WJS!==void 0)return WJS;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return WJS=D},{mode:2});var z3$;var SGG;var Wv=function(){return _.N.apply(this,arguments)||this};
_.n(Wv,_.N);Wv.prototype.computeAriaLabel=function(D){var Y,R;return(D==null?void 0:(Y=D.accessibility)==null?void 0:(R=Y.accessibilityData)==null?void 0:R.label)||_.fX("LOADING",void 0,"Loading")};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Wv.prototype,"data",void 0);_.q([_.y({computed:"computeAriaLabel(data)"}),_.x("design:type",String)],Wv.prototype,"ariaLabel",void 0);_.q([_.Lr({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Wv);
_.L(Wv,"yt-content-loading-renderer",function(){if(SGG===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;z3$===void 0&&(z3$=document.createElement("template"));var Z=z3$;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);SGG=D}D=SGG;return D},{mode:_.zD("kevlar_poly_si_batch_j043")?1:2});_.at(_.RT(function(D){var Y=_.a(_.ae(!1,void 0,"QkPiwb")),R=Y.next().value,Z=Y.next().value;Y=_.a(_.ae(!1,void 0,"AFECB"));var t=Y.next().value,X=Y.next().value;_.$s(function(){var z=_.A(D.data().collaboratePlaylistCollaborationSetting,Fhy);z&&Z(z.switchedOnByDefault);var I=_.A(D.data().allowNewCollaboratorsPlaylistCollaborationSetting,Fhy);I&&X(I.switchedOnByDefault);if(!z&&!I||!z&&D.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Z(!0),X(!0)});
var M=function(z){Z(z);X(z);var I=D.data().playlistCollaborationEntityKey||"";var F=_.Og().getState();(F=_.jC(F.entities,"playlistCollaborationEntity",I))&&(F==null?void 0:F.isCollaborative)===z||_.Og().dispatch(_.oP("playlistCollaborationEntity",I,Object.assign({},F,{isCollaborative:z})))},W=function(z){X(z)};
return _.S("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.S("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.S(_.vK,{data:function(){return D.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(z){return _.S(_.l0b,{data:z.data,
onSwitch:M})}})),_.S(_.T,{cond:R,
then:function(){return _.S(_.c_,null,_.S("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.S(_.vK,{data:function(){return D.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(z){return _.S(_.l0b,{data:z.data,
onSwitch:W,overrideDisabled:!1})}})),_.S(_.T,{cond:t,
then:function(){return _.S("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.S(_.vK,{data:function(){return D.data().copyLinkButton}},{buttonViewModel:_.TV}))}}),_.S("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.S(_.vK,{data:function(){return D.data().playlistCollaborators}},{contentListItemViewModel:_.neh})))}}))},"Yj"),"playlist-collaboration-view-model",{props:{data:_.cs}});var TXE=_.RT(function(D){var Y=D.data;var R=D.customCommandResolver;return _.S(_.c_,null,_.S("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.S(_.vK,{data:function(){return Y().adAvatar}},{adAvatarViewModel:function(Z){return _.S(_.TxL,{data:Z.data,
customCommandResolver:R})}})),_.S("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.S(_.T,{cond:function(){return Y().headline},
then:function(Z){return _.S(_.y_,{text:Z,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.S("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.S(_.vK,{data:function(){return Y().adBadge}},{adBadgeViewModel:function(Z){return _.S(_.M6,{data:Z.data,
hasDot:function(){return Y().primaryDetailsLine!==void 0},
customCommandResolver:R,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.S(_.vK,{data:function(){return Y().primaryDetailsLine}},{adDetailsLineViewModel:function(Z){return _.S(_.CA,{data:Z.data,
customCommandResolver:R,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Zj"),jIB=_.RT(function(D){var Y=D.data;
var R=D.customCommandResolver;return _.S("ad-avatar-lockup-view-model",{class:function(){var Z;return((Z=Y().interaction)==null?0:Z.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.tp(_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4}),_.BK(function(){return Y().interaction},R)),
"aria-label":function(){var Z,t;return(Z=Y().interaction)==null?void 0:(t=Z.accessibility)==null?void 0:t.label}},_.S(_.ej,null,_.S(_.VL,{when:function(){return Y().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.S(TXE,{data:Y,
customCommandResolver:R})}),_.S(_.fb,null,function(){return null})))},"$j");_.at(_.RT(function(D){var Y=D.data;var R=D.panelContentVisibility;D=_.Zq({visibilityCallback:function(X){var M,W=(M=Y().interaction)==null?void 0:M.onFirstVisible;X&&W&&_.BL(W)},
showOption:_.R4});var Z=_.BK(function(){return Y().interaction},SLB);
_.oe(function(){var X,M;if(M=_.mf("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var W;M=(W=M())==null?void 0:W.onLayoutVisibleCallback}else M=null;(X=M)==null||X()});
var t=function(){return R()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.S("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.tp(D,Z)},_.S("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.S("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.S(_.T,{cond:_.DzU("(min-width: "+((0,_.g6)()+_.mN)+"px) or (max-width: 600px)"),then:function(){return _.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(X){return _.S(_.Fg,{data:X.data,
targetHeight:80,customCommandResolver:SLB})}})}})),_.S("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.S("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.S(_.vK,{data:function(){return Y().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.S(jIB,{data:X.data,
customCommandResolver:SLB})}})),_.S(_.T,{cond:t,
then:function(){return _.S(_.vK,{data:function(){return Y().adButton}},{adButtonViewModel:function(X){return _.S(_.t8,{data:X.data,
customCommandResolver:SLB})}})},
else:function(){return _.S(_.vK,{data:function(){return Y().menu}},{buttonViewModel:_.TV})}}),_.S("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.S(_.vK,{data:function(){var X=_.A(Y().toggleButton,_.py);
return{toggleButtonViewModel:Object.assign({},X,{isTogglingDisabled:!0,isToggled:t()})}}},{toggleButtonViewModel:_.JV})))))},"ak"),"panel-ad-header-image-lockup-view-model",{props:{data:_.cs,
panelContentVisibility:_.cs}});_.at(_.RT(function(D){var Y=function(){return _.A(D.data().inputComposerViewModel,GTS)},R=function(){var r;
return((r=Y())==null?void 0:r.youchatPendingResponseEntityKey)||""},Z=_.Ax(_.Pwk,R),t=function(){var r;
return!((r=Z())==null||!r.isPendingResponse)},X=_.a(_.ae(!0,void 0,"DR0q1d")),M=X.next().value,W=X.next().value,z=function(){return Y().sectionTargetId||"youchat_messages_section"};
X=_.io("yt-chat-input-view-model");var I=_.dI("textarea"),F=_.Ax(RYN,"chat_input_view_model_state"),G=ZLg(),V=function(){var r;return!((r=F())==null||!r.value)};
_.$s(function(){var r;if(!V()&&((r=Y())==null?0:r.welcomeFeatureContinuation)){var l;((l=Y())==null?0:l.setPendingResponseOnWelcome)&&_.Qdh(R())(!0);r={continuationCommand:{token:Y().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var U;l=String(Math.floor(((U=_.IP())==null?void 0:U.getCurrentTime())||0)*1E3);U={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:l}};_.xC(r,{form:{formData:U}});G(!0)}var K=z(),H;(H=_.DH().resolve(_.cD(_.o8)))==null||
H.addEventListener("yt-navigate-start",function(){_.rq.remove(K);G(!1)},{once:!0})});
var e=function(){var r=I.value.value;I.value.value="";Tzg(I.value);var l,U=((l=Y())==null?void 0:l.enableGradientColorBg)||!1;l=jzZ(z(),r,U);_.xC(l);var K=_.Qdh(R()),H;_.BL(((H=Y())==null?void 0:H.onSubmitCommand)||{});K(!0);var c;H=String(Math.floor(((c=_.IP())==null?void 0:c.getCurrentTime())||0)*1E3);var Q;c={continuationCommand:{token:(Q=Y())==null?void 0:Q.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};r={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:r,
playerOffsetMs:H}};_.xC(c,{form:{formData:r},commandController:{onSuccess:function(){K(!1)},
onServerError:function(){var E=z();_.xC({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:E}}]}}});K(!1)}}})};
return _.S("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:X},_.S("div",{class:"chatInputViewModelChatInputWrapper"},_.S("form",{class:"chatInputViewModelChatInputForm"},_.S("textarea",{class:"chatInputViewModelChatInput",el:I,"on:keydown":_.F4(function(r){var l=t()||!1;Tzg(I.value);l||r.key!=="Enter"||r.shiftKey||(r.preventDefault(),e());return!1}),
"on:keyup":_.F4(function(){W(I.value.value.length===0);return!1}),
placeholder:function(){var r,l;var U=_.A((l=Y())==null?void 0:l.inputFormField,gEN);return U==null?void 0:(r=U.contentProperties)==null?void 0:r.placeholderText},
rows:1}),_.S(_.TV,{data:function(){return _.A(D.data().sendButton,_.QX)},
onClick:function(r){r.preventDefault();e();W(I.value.value.length===0)},
buttonOverrides:function(){return{disabled:M()||t()}}})),_.S(_.y_,{className:"chatInputViewModelChatDisclaimer",
text:function(){var r;return(r=_.A(D.data().disclaimer,_.vGD))==null?void 0:r.text}})))},"bk"),"yt-chat-input-view-model",{props:{data:_.cs}});var I77=["engagement-panel-clip-create","engagement-panel-clip-view"],FJN=0,zQ=function(){var D=_.N.apply(this,arguments)||this;var Y;D.headerData=(Y=D.data)==null?void 0:Y.header;D.darkerPanels=_.f("web_watch_darker_panels");D.matchContentTheme=_.f("web_watch_panel_content_match_theme");D.disableAutoFill=!1;D.isFullscreen=!1;D.isTheaterMode=!1;D.modernPanels=_.f("kevlar_watch_modern_panels");D.liveChatReplyPanel=!1;D.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");D.disableBackdropFilter=
_.f("web_disable_backdrop_filter");D.trackEngagementPanelVisibility=_.f("web_watch_track_engagement_panel_visibility");D.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 D};
_.n(zQ,_.N);_.u=zQ.prototype;
_.u.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(D){var Y;return(D==null?void 0:(Y=D.webComponentHint)==null?void 0:Y.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]]"}},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"}}}};
_.u.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var D;if((D=this.hostElement.parentElement)==null?0:D.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.u.detached=function(){this.updateTheaterDisablement()};
_.u.showPanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.yc.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.u.maybeScrollToItemSection=function(D){var Y=this,R,Z=D==null?void 0:(R=D.sectionListEngagementPanelExtras)==null?void 0:R.scrollToItemSectionIdentifier;Z&&_.yc.addJob(function(){var t;(t=Y.sectionListRendererElement)==null||t.scrollToItemSection(Z)},8)};
_.u.hidePanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.yc.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.u.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.u.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.u.updatePanel=function(D,Y,R,Z){var t=this;if((D=D==null?void 0:D.engagementPanelSectionListRenderer)||Z){if(D){Z=D.header;var X=D.content,M=D.footer;(D=D.targetId)&&this.set("data.targetId",D);Z&&this.set("data.header",Z);X&&this.set("data.content",X);M&&this.set("data.footer",M)}else Z&&(D=Z.content,X=Z.secondaryHeaderContent,(Z=Z.targetId)&&this.set("data.targetId",Z),D&&this.set("data.content",D),X&&(this.secondaryHeaderData=X));this.updateChildVisibilityProperties();if(Y){var W;_.f("kevlar_update_panel_focus_scroll_killswitch")||
(W={preventScroll:!0});this.focus(W)}_.cy(this,function(){_.MX(t.hostElement,"yt-refit");t.maybeScrollToItemSection(R)})}};
_.u.computeHeaderData=function(){var D,Y=(0,_.y7.unsafeClone)((D=this.data)==null?void 0:D.header);if(Y){D=new _.Dv(Object.keys(Y)[0]);var R=_.A(Y,D),Z=_.A(this.secondaryHeaderData,D);Z&&_.U4(Y,D,Object.assign({},Z,R))}return Y};
_.u.getReloadContinuation=function(){var D,Y,R,Z=_.a(((D=this.data)==null?void 0:(Y=D.content)==null?void 0:(R=Y.sectionListRenderer)==null?void 0:R.continuations)||[]);for(D=Z.next();!D.done;D=Z.next())if(D=D.value,D.reloadContinuationData)return D.reloadContinuationData.continuation};
_.u.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var D;((D=this.data)==null?0:D.targetId)&&(D=this.contentElement.firstElementChild)&&D.setAttribute("panel-target-id",this.data.targetId)};
_.u.forwardPopupClosedToFlowRootRenderer=function(){var D=_.aU(this.hostElement).querySelector("ytd-flow-root-renderer");if(D)D.onPopupClosed()};
_.u.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var D;if(!I77.includes((D=this.theaterDisablementPanelIdentifier)!=null?D:""))if(D=_.f("web_watch_imax_theater_mode")&&this.isTheaterMode,D=_.f("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D,_.f("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||D){var Y;this.visibility=(Y=this.data)==null?void 0:Y.visibility;var R;this.trackEngagementPanelVisibility&&((R=this.data)==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Z,t,X,M;this.contentEmpty=!!(((Z=this.data)==null?0:(t=Z.content)==null?0:t.structuredDescriptionContentRenderer)&&Object.keys((X=this.data)==null?void 0:(M=X.content)==null?void 0:
M.structuredDescriptionContentRenderer).length===0);(Y=_.DH().resolve(_.b6))&&Y.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.u.isTheaterModeChanged=function(){_.f("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.u.isFullscreenChanged=function(){_.f("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.u.focus=function(D){if(this.header)this.header.focus(D);else{var Y;(Y=_.aU(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||Y.focus(D)}};
_.u.visibilityChanged=function(){if(!_.f("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var D=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=Z||!this.lastVisibility,X,M,W,z=((X=this.data)==null?void 0:(M=X.identifier)==null?void 0:
M.tag)||((W=this.data)==null?void 0:W.panelIdentifier);if(D&&t){var I;((I=this.data)==null?0:I.onShowCommands)&&_.Se(this.hostElement,this.data.onShowCommands,this.hostElement);z&&_.Dl().dispatch(_.u0({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:z}}))}else if(Y&&R){var F;((F=this.data)==null?0:F.onHideCommands)&&_.Se(this.hostElement,this.data.onHideCommands,this.hostElement);z&&_.Dl().dispatch(_.u0({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:z}}))}D&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*FJN++));_.f("kevlar_watch_focus_on_engagement_panels")&&D&&Z&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.u.notifyVisibilityChanged=function(D){var Y;_.WC(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,D,(Y=this.data)==null?void 0:Y.targetId])};
_.u.updateTheaterDisablement=function(){if(!_.f("kevlar_watch_theater_disablement_killswitch")){var D=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&I77.includes(D)&&!_.f("watch_next_grid_ignore_disallowed_panels")){var Y=_.hp(_.Dl().getState()),R=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";D!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():R?(this.originalTheaterState===void 0&&(this.originalTheaterState=Y,this.theaterDisablementPanelIdentifier=
D),Y&&_.CX(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.u.clearTheaterDisablement=function(){_.CX(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.u.updateChildVisibilityProperties=function(){this.hostElement||_.f("kevlar_panel_property_init_killswitch")||this._enableProperties();var D=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=D);var Y,R=(Y=this.headerElement)==null?void 0:Y.firstElementChild;if(R&&!this.adHeaderImageLockupViewModel){Y=D==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";R.collapsed=Y;R=_.aU(R).querySelector("#visibility-button");if(!R)return;(R=R.firstElementChild)&&
R.polymerController.is==="ytd-toggle-button-renderer"&&R.polymerController.data.isToggled!==Y&&R.polymerController.set("data.isToggled",Y)}var Z;if(Y=(Z=this.contentElement)==null?void 0:Z.firstElementChild)if(D&&D!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")Y.removeAttribute("panel-content-visible");else{Y.setAttribute("panel-content-visible","");var t;(t=Y.markDirty)==null||t.call(Y)}};
_.u.onYtChangeEngagementPanelVisibilityAction=function(D){var Y=this,R,Z=(R=this.data)==null?void 0:R.targetId,t,X,M;R=((t=this.data)==null?void 0:(X=t.identifier)==null?void 0:X.tag)||((M=this.data)==null?void 0:M.panelIdentifier);var W=_.A(D,_.wP_),z;D=Z&&(W==null?void 0:W.targetId)===Z||R&&(W==null?void 0:(z=W.panelIdentifier)==null?void 0:z.tag)===R;this.dialog&&D&&(W==null?void 0:W.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Z==="engagement-panel-comments-section"?_.CX(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.CX(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",R]));!_.f("kevlar_use_engagement_panel_management_component")&&D&&(Z=W.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Z?_.yc.addJob(function(){Y.visibility=W.visibility},2,this.hideDelayMs):this.visibility=W.visibility,W.visibility&&this.notifyVisibilityChanged(W.visibility))};
_.u.onYtScrollToEngagementPanelCommand=function(D){var Y,R=(Y=this.data)==null?void 0:Y.targetId,Z,t,X;Y=((Z=this.data)==null?void 0:(t=Z.identifier)==null?void 0:t.tag)||((X=this.data)==null?void 0:X.panelIdentifier);D=_.A(D,_.hcE);var M;(R&&(D==null?void 0:D.targetId)===R||Y&&(D==null?void 0:(M=D.panelIdentifier)==null?void 0:M.tag)===Y)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.CX(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.u.attachVEs=function(D){var Y,R;(D==null?0:(Y=D.content)==null?0:(R=Y.productListRenderer)==null?0:R.trackingParams)&&_.n8().graftServerVe(D.content.productListRenderer.trackingParams);var Z,t;(D==null?0:(Z=D.content)==null?0:(t=Z.transcriptRenderer)==null?0:t.trackingParams)&&_.n8().graftServerVe(D.content.transcriptRenderer.trackingParams)};
_.u.onYtUpdateEngagementPanelAction=function(D){var Y,R=(Y=this.data)==null?void 0:Y.targetId;D=_.A(D,DkZ);R&&(D==null?void 0:D.targetId)===R&&(this.updatePanel({engagementPanelSectionListRenderer:{header:D==null?void 0:D.header,content:D==null?void 0:D.content}},!1),this.attachVEs(D))};
_.u.onYtShowEngagementPanelScrimAction=function(D){var Y,R=(Y=this.data)==null?void 0:Y.targetId;D=_.A(D,c1J);R&&(D==null?void 0:D.engagementPanelTargetId)===R&&(this.scrimmed=!0)};
_.u.onYtHideEngagementPanelScrimAction=function(D){var Y,R=(Y=this.data)==null?void 0:Y.targetId;D=_.A(D,iLT);R&&(D==null?void 0:D.engagementPanelTargetId)===R&&(this.scrimmed=!1)};
_.u.getIdentifier=function(){var D,Y,R;return((D=this.data)==null?void 0:D.panelIdentifier)||((Y=this.data)==null?void 0:(R=Y.identifier)==null?void 0:R.tag)};
_.u.getSurface=function(){var D,Y;return(D=this.data)==null?void 0:(Y=D.identifier)==null?void 0:Y.surface};
_.YF.Object.defineProperties(zQ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var D=this.getIdentifier();return D==="engagement-panel-youchat"||D==="PAyouchat"}}});
zQ.prototype.visibilityChanged=zQ.prototype.visibilityChanged;zQ.prototype.isFullscreenChanged=zQ.prototype.isFullscreenChanged;zQ.prototype.isTheaterModeChanged=zQ.prototype.isTheaterModeChanged;zQ.prototype.dataChanged=zQ.prototype.dataChanged;zQ.prototype.forwardPopupClosedToFlowRootRenderer=zQ.prototype.forwardPopupClosedToFlowRootRenderer;zQ.prototype.onYtRendererstamperFinished=zQ.prototype.onYtRendererstamperFinished;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],zQ.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],zQ.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],zQ.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"data",void 0);
_.q([_.y({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.x("design:type",Object)],zQ.prototype,"headerData",void 0);_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"secondaryHeaderData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"visibility",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"contentEmpty",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"scrimmed",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"dialog",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"dropdown",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"darkerPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"matchContentTheme",void 0);_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"disableAutoFill",void 0);
_.q([_.y({reflectToAttribute:!0,value:_.f("optimal_reading_width_comments_ep")}),_.x("design:type",Boolean)],zQ.prototype,"optimalReadingWidthComments",void 0);_.q([_.y(),_.x("design:type",Number)],zQ.prototype,"hideDelayMs",void 0);_.q([_.y({selector:_.LB,reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"isFullscreen",void 0);_.q([_.y({selector:_.hp,reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"isTheaterMode",void 0);
_.q([_.y(),_.x("design:type",Number)],zQ.prototype,"showDelayMs",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.targetId"),_.x("design:type",Object),_.x("design:paramtypes",[])],zQ.prototype,"targetId",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],zQ.prototype,"webSize",null);_.q([_.y(),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],zQ.prototype,"hideFooterBorder",null);
_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"isWatch",void 0);_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"originalTheaterState",void 0);_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"theaterDisablementPanelIdentifier",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"modernPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"isWatchWhilePanel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"shortsPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"liveChatEngagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"learningChatEngagementPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"liveChatReplyPanel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"enableAnchoredPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],zQ.prototype,"disableBackdropFilter",void 0);_.q([_.y(),_.x("design:type",Object)],zQ.prototype,"trackEngagementPanelVisibility",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],zQ.prototype,"headerElement",void 0);_.q([_.fr("#header > *"),_.x("design:type",HTMLElement)],zQ.prototype,"header",void 0);
_.q([_.fr("ytd-section-list-renderer"),_.x("design:type",Object)],zQ.prototype,"sectionListRendererElement",void 0);_.q([_.fr("panel-ad-header-image-lockup-view-model"),_.x("design:type",HTMLElement)],zQ.prototype,"adHeaderImageLockupViewModel",void 0);_.q([_.fr("#content"),_.x("design:type",HTMLElement)],zQ.prototype,"contentElement",void 0);
_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"onYtRendererstamperFinished",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.q([_.rd("data","isFullscreen","isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"dataChanged",null);
_.q([_.Gm("isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"isTheaterModeChanged",null);_.q([_.Gm("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"isFullscreenChanged",null);_.q([_.Gm("visibility"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"visibilityChanged",null);
_.q([_.h({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],zQ);
_.L(zQ,"ytd-engagement-panel-section-list-renderer",function(){if(qxB!==void 0)return qxB;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qxB=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var GIJ;var Sr=function(){var D=_.N.apply(this,arguments)||this;D.lastRenderedPanelIds=new Set;D.visiblePanels=[];D.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.n(Sr,_.N);_.u=Sr.prototype;_.u.dataChanged=function(){if(this.data){for(var D=[],Y=_.a(this.data),R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0,t=void 0,X=(Z=R)==null?void 0:(t=Z.engagementPanelSectionListRenderer)==null?void 0:t.visibility;t=Z=void 0;((Z=R)==null?0:(t=Z.engagementPanelSectionListRenderer)==null?0:t.targetId)&&X!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&D.push(R)}this.visiblePanels=D}else this.visiblePanels=[]};
_.u.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}}};
_.u.withoutVisiblePanelById=function(D){return this.visiblePanels.filter(function(Y){var R;return((R=Y.engagementPanelSectionListRenderer)==null?void 0:R.targetId)!==D})};
_.u.onYtChangeEngagementPanelVisibilityAction=function(D){var Y=this,R=_.A(D,_.wP_);if(this.data&&(R==null?0:R.targetId)&&(R==null?0:R.visibility)){var Z,t=(Z=this.data.find(function(M){var W;return((W=M.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===R.targetId}))==null?void 0:Z.engagementPanelSectionListRenderer;
if(t){var X=this.withoutVisiblePanelById(R.targetId);R.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(D=this.data.find(function(M){var W;return((W=M.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===R.targetId}))&&(X=[D].concat(_.oK(X)));
this.hideDelayMs&&R.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&X.length===0?_.yc.addJob(function(){t.visibility=R.visibility;Y.visiblePanels=X},10,this.hideDelayMs):(t.visibility=R.visibility,this.visiblePanels=X);
_.WC(this.hostElement,"yt-engagement-panels-visible-changed",[X])}}};
_.u.onRendererstamperFinished=function(){var D=new Set(this.visiblePanels.map(function(Y){var R;return(R=Y.engagementPanelSectionListRenderer)==null?void 0:R.targetId}));
this.handlePanelVisibilityChange(D,this.lastRenderedPanelIds);this.lastRenderedPanelIds=D};
_.u.handlePanelVisibilityChange=function(D,Y){D=D===void 0?new Set:D;Y=Y===void 0?new Set:Y;if(this.data)for(var R=_.a(this.data),Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=void 0,X=void 0,M=(t=Z)==null?void 0:(X=t.engagementPanelSectionListRenderer)==null?void 0:X.targetId;if(M&&(t=Y.has(M),X=D.has(M),M=void 0,!t&&X?(X=t=void 0,M=(t=Z)==null?void 0:(X=t.engagementPanelSectionListRenderer)==null?void 0:X.onShowCommands):t&&!X&&(X=t=void 0,M=(t=Z)==null?void 0:(X=t.engagementPanelSectionListRenderer)==
null?void 0:X.onHideCommands),M))for(Z=_.a(M),M=Z.next();!M.done;M=Z.next())this.ytComponentBehavior.resolveCommand(M.value)}};
Sr.prototype.onRendererstamperFinished=Sr.prototype.onRendererstamperFinished;Sr.prototype.dataChanged=Sr.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Sr.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Sr.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Sr.prototype,"lastRenderedPanelIds",void 0);_.q([_.y(),_.x("design:type",Number)],Sr.prototype,"hideDelayMs",void 0);_.q([_.y(),_.x("design:type",Array)],Sr.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Array)],Sr.prototype,"visiblePanels",void 0);_.q([_.y(),_.x("design:type",Boolean)],Sr.prototype,"isWatchWhilePanel",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sr.prototype,"dataChanged",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sr.prototype,"onRendererstamperFinished",null);_.q([_.h({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Sr);
_.L(Sr,"ytd-watch-engagement-panels",function(){if(GIJ!==void 0)return GIJ;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return GIJ=D},{mode:1});var VwE;var TQ=function(){return _.N.apply(this,arguments)||this};
_.n(TQ,_.N);TQ.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.iT(_.aU(this.hostElement).querySelector("#text"),_.zY1(_.jz4,this.data.companionLegalText))};
TQ.prototype.computeAutoScrollEnabled=function(D,Y){return D&&!Y};
TQ.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
TQ.prototype.onToggleTap=function(){this.expanded=!this.expanded};
TQ.prototype.expandedChanged=TQ.prototype.expandedChanged;TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.MMb),_.x("design:type",Object)],TQ.prototype,"ytdAutoScrollBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],TQ.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],TQ.prototype,"expanded",void 0);
_.q([_.y({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.x("design:type",Boolean)],TQ.prototype,"autoScrollEnabled",void 0);_.q([_.y(),_.x("design:type",String)],TQ.prototype,"expanderIcon",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TQ.prototype,"dataChanged",null);
_.q([_.Gm("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TQ.prototype,"expandedChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],TQ);
_.L(TQ,"ytd-companion-legal-text-renderer",function(){if(VwE!==void 0)return VwE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return VwE=D},{mode:1});var f7T;var jr=function(){var D=_.N.apply(this,arguments)||this;D.buttonUpdate=_.f("web_modern_buttons");D.kevlarWatchGrid=_.f("kevlar_watch_grid");D.centerAlignDescription=_.f("action_companion_center_align_description");D.truncateDomain=_.f("action_companion_truncate_domain");return D};
_.n(jr,_.N);_.u=jr.prototype;_.u.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.u.getOnLayoutVisibleCallback=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.u.getLayoutId=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.u.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",jr.JSC$22711_DEFAULT_AD_BADGE_RENDERER);var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.u.getButtonRenderer=function(D){return D.actionButton&&_.A(D.actionButton,_.qv)?(delete _.A(D.actionButton,_.qv).navigationEndpoint,_.A(D.actionButton,_.qv)):{}};
_.u.onClick=function(D){var Y=this;if((!_.f("web_modern_buttons")||!_.Yc(_.O$(D),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){D=_.sm();var R=this.getLayoutId();D&&R&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(Z){(new _.vz(Z)).executeCommand(Y.data.navigationEndpoint,R)}):_.f("kevlar_companion_resolve_command_killswitch")?_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.CX(this.hostElement,"yt-companion-ad-clicked",["action-companion",R])}};
_.YF.Object.defineProperties(jr.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?0:(Y=D.detailsLine)==null?0:(R=Y.adRating)==null?0:R.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 D,Y,R,Z;return((D=this.data)==null?0:(Y=D.detailsLine)==null?0:(R=Y.adRating)==null?0:(Z=R.ratingIcon)==null?0:Z.iconType)?_.IT(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return((D=this.data)==null?0:(Y=D.detailsLine)==null?0:(R=Y.texts)==null?0:(Z=R[0])==null?0:Z.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 D,Y;return((D=this.data)==null?0:(Y=D.description)==null?0:Y.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var D=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return D?D.indexOf("/default_banner")!==-1:!0}}});
jr.prototype.onClick=jr.prototype.onClick;jr.prototype.dataChanged=jr.prototype.dataChanged;jr.JSC$22711_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],jr.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jr.prototype,"rendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jr.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],jr.prototype,"buttonUpdate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],jr.prototype,"kevlarWatchGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],jr.prototype,"centerAlignDescription",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],jr.prototype,"truncateDomain",void 0);
_.q([_.y({computed:"computeButtonOverride(buttonUpdate)"}),_.x("design:type",Object)],jr.prototype,"buttonOverride",void 0);_.q([_.b("data.detailsLine.adRating.ratingText"),_.x("design:type",Object),_.x("design:paramtypes",[])],jr.prototype,"getRating",null);_.q([_.b("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jr.prototype,"computeRatingHidden",null);
_.q([_.b("data.detailsLine.adRating.ratingIcon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],jr.prototype,"iconType",null);_.q([_.b("data.detailsLine.texts.0.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],jr.prototype,"getDetailsLine",null);_.q([_.b("getDetailsLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jr.prototype,"computeDetailsLineHidden",null);
_.q([_.b("data.description.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],jr.prototype,"getDescriptionText",null);_.q([_.b("getDescriptionText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jr.prototype,"computeDescriptionTextHidden",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],jr.prototype,"interactionLoggingClientData",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jr.prototype,"hideBanner",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jr.prototype,"dataChanged",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],jr.prototype,"onClick",null);_.q([_.h({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],jr);
_.L(jr,"ytd-action-companion-ad-renderer",function(){if(f7T!==void 0)return f7T;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return f7T=D},{mode:_.zD("kevlar_poly_si_batch_j067")?1:2});var e3g;var AZZ;var Ix=function(){var D=_.N.apply(this,arguments)||this;D.buttonUpdate=_.f("web_modern_buttons");D.hideLegacyBanner=_.f("enable_dsa_one_click_ata_translators_infeed_elements");D.adInfoButtonStyle="mono";D.adInfoButtonType="text";D.noDotAdBadge=!0;return D};
_.n(Ix,_.N);_.u=Ix.prototype;_.u.getOnLayoutVisibleCallback=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.u.getLayoutId=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.u.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 D=this.data.image.thumbnail.thumbnails[0];this.imageSrc=D.url?_.Jf(D.url):void 0;this.imageWidth=D.width||0;this.imageHeight=D.height||0}this.data.clickthroughEndpoint&&_.A(this.data.clickthroughEndpoint,_.Qj)&&(D=_.A(this.data.clickthroughEndpoint,_.Qj).url,_.f("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
D||"":D?(D=_.Jf(D),this.clickThroughUrl=_.oJ(D)):this.clickThroughUrl=void 0);(D=this.getOnLayoutVisibleCallback())&&D()}};
_.u.onClick=function(D){_.Yc(_.O$(D),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(D)};
_.u.handleClick=function(){var D=this;this.data&&this.data.clickthroughEndpoint&&(_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(Y){D.macroReplacementBehavior.sendServiceRequestAction([Y])}),_.CX(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.u.onLoad=function(){_.WC(this.hostElement,"yt-refit-popups-action")};
_.YF.Object.defineProperties(Ix.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
Ix.prototype.onLoad=Ix.prototype.onLoad;Ix.prototype.onClick=Ix.prototype.onClick;Ix.prototype.dataChanged=Ix.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ix.prototype,"rendererBehavior",void 0);_.q([_.v(E7J.YtMacroReplacementBehavior),_.x("design:type",Object)],Ix.prototype,"macroReplacementBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ix.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ix.prototype,"buttonUpdate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ix.prototype,"hideLegacyBanner",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ix.prototype,"adInfoButtonStyle",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ix.prototype,"adInfoButtonType",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ix.prototype,"macros",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ix.prototype,"interactionLoggingClientData",null);_.q([_.y(),_.x("design:type",String)],Ix.prototype,"clickThroughUrl",void 0);_.q([_.y(),_.x("design:type",_.wg)],Ix.prototype,"imageSrc",void 0);_.q([_.y(),_.x("design:type",Number)],Ix.prototype,"imageWidth",void 0);_.q([_.y(),_.x("design:type",Number)],Ix.prototype,"imageHeight",void 0);_.q([_.y(),_.x("design:type",Object)],Ix.prototype,"noDotAdBadge",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ix.prototype,"dataChanged",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ix.prototype,"onClick",null);_.q([_.Fv("load"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ix.prototype,"onLoad",null);_.q([_.h({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Ix);
_.L(Ix,"ytd-image-companion-renderer",function(){if(AZZ!==void 0)return AZZ;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return AZZ=D},{mode:_.zD("kevlar_poly_si_batch_j067")?1:2});var n2N;var Fy=function(){return _.N.apply(this,arguments)||this};
_.n(Fy,_.N);_.u=Fy.prototype;_.u.dataChanged=function(){this.set("data.adBadge",Fy.JSC$22720_DEFAULT_AD_BADGE_RENDERER);if(this.data){var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.u.getOnLayoutVisibleCallback=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.u.getLayoutId=function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.u.onCompanionClicked=function(D){this.data&&(D.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.CX(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.u.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var D=_.sm(),Y=this.getLayoutId(),R=this.data.clickToAdvSiteEndpoint;D&&Y&&_.f("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(Z){(new _.vz(Z)).executeCommand(R,Y)}):_.MX(this.hostElement,"yt-navigate",{endpoint:R})}};
_.u.sendTrackingPings=function(D){if(D&&D.length!==0&&D[0].loggingUrls&&(D=D[0].loggingUrls.map(this.getBaseUrl)))for(var Y=0;Y<D.length;Y++)_.qs(D[Y])};
_.u.getBaseUrl=function(D){return D.baseUrl||""};
_.YF.Object.defineProperties(Fy.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.mf("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
Fy.prototype.onCompanionClicked=Fy.prototype.onCompanionClicked;Fy.prototype.dataChanged=Fy.prototype.dataChanged;Fy.JSC$22720_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.fX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fy.prototype,"data",void 0);_.q([_.fr("#title"),_.x("design:type",HTMLElement)],Fy.prototype,"shopTitle",void 0);
_.q([_.rd("data.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fy.prototype,"dataChanged",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fy.prototype,"interactionLoggingClientData",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Fy.prototype,"onCompanionClicked",null);
_.q([_.h({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Fy);
_.L(Fy,"ytd-shopping-companion-renderer",function(){if(n2N!==void 0)return n2N;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return n2N=D},{mode:1});_.at(_.RT(function(D){var Y=D.data;D=_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4});var R=_.BK(function(){return Y().interaction},I_N);
_.oe(function(){var Z,t;t=(t=_.mf("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(Z=t)==null||Z()});
return _.S("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.F4(function(Z){_.WC(Z.currentTarget,"yt-refit-popups-action")}),
el:_.tp(D,R),"aria-label":function(){var Z,t;return(Z=Y().interaction)==null?void 0:(t=Z.accessibility)==null?void 0:t.label}},_.S("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(Z){return _.S(_.Fg,{data:Z.data,
targetHeight:80,customCommandResolver:I_N})}})),_.S("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.S("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.S(_.vK,{data:function(){return Y().adBadge}},{adBadgeViewModel:function(Z){return _.S(_.M6,{data:Z.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.S("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.S(_.vK,{data:function(){return Y().menu}},{buttonViewModel:_.TV}))))},"ck"),"banner-image-layout-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;D=_.Zq({visibilityCallback:function(Z){var t,X=(t=Y().interaction)==null?void 0:t.onFirstVisible;Z&&X&&_.BL(X)},
showOption:_.R4});var R=_.BK(function(){return Y().interaction},F7y);
_.oe(function(){var Z,t;t=(t=_.mf("yt.www.ads.eventcache.getLastCompanionData"))?(t=t())&&t.onLayoutVisibleCallback:null;(Z=t)==null||Z()});
return _.S("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.tp(D,R)},_.S("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.S(_.vK,{data:function(){return Y().adImage}},{adImageViewModel:function(Z){return _.S(_.Fg,{data:Z.data,
targetHeight:80,customCommandResolver:F7y})}})),_.S("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.S("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.S(_.vK,{data:function(){return Y().adAvatarLockup}},{adAvatarLockupViewModel:function(Z){return _.S(jIB,{data:Z.data,
customCommandResolver:F7y})}})),_.S(_.vK,{data:function(){return Y().adButton}},{adButtonViewModel:function(Z){return _.S(_.t8,{data:Z.data,
customCommandResolver:F7y})}}),_.S("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.S(_.vK,{data:function(){return Y().menu}},{buttonViewModel:_.TV}))))},"dk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.cs}});var rZB={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"},GQ=function(){var D=_.N.apply(this,arguments)||this;D.updateCompanionDataJobId=0;D.contentVideoId=null;D.player=null;D.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return D};
_.n(GQ,_.N);_.u=GQ.prototype;_.u.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:rZB}}};
_.u.attached=function(){var D=this,Y=_.sm();Y&&Y.getPlayerPromise().then(function(R){D.getCachedDataAndListen(R)})};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.u.updateRendererStamper=function(){var D={};if(this.data)for(var Y in rZB)if(this.data[Y]){D[Y]=this.data[Y];break}if(this.oneofRenderer!=void 0||Object.keys(D).length)this.oneofRenderer=D};
_.u.getCachedDataAndListen=function(D){var Y=this.retrieveCachedCompanionData();Y&&Object.keys(Y).length&&this.receiveCompanionData(Y);this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=D};
_.u.retrieveCachedCompanionData=function(){return _.ZU.yt&&_.ZU.yt.www&&_.ZU.yt.www.ads&&_.ZU.yt.www.ads.eventcache&&_.ZU.yt.www.ads.eventcache.getLastCompanionData?_.ZU.yt.www.ads.eventcache.getLastCompanionData():null};
_.u.receiveCompanionData=function(D){D&&Object.keys(D).length?(this.contentVideoId=D.contentVideoId,this.setCompanionData(D)):this.setCompanionData(D)};
_.u.setCompanionData=function(D){this.cancelPendingCompanionAdJobs();if(D){this.updateCompanionDataJobId=0;for(var Y in rZB)rZB.hasOwnProperty(Y)&&(this.data[Y]=void 0);D.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",D.shoppingCompanionCarouselRenderer):D.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",D.imageCompanionAdRenderer):D.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",D.actionCompanionAdRenderer),_.WC(this.hostElement,
"yt-hide-unlimited-offer-module"),_.WC(this.hostElement,"yt-hide-tvfilm-offer-module")):D.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",D.bannerImageLayoutViewModel):D.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",D.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.u.dataChanged=function(){var D=this,Y=_.sm();Y?Y.getPlayerPromise().then(function(R){D.contentVideoId&&R.getVideoUrl().includes("v="+D.contentVideoId)||(D.cancelPendingCompanionAdJobs(),D.updateRendererStamper())}):_.qJ(Error("Co"))};
_.u.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.yc.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.u.handleCompanionAdClicked=function(D,Y){this.player.onAdUxClicked(D,Y);this.player.pauseVideo()};
GQ.prototype.dataChanged=GQ.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],GQ.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],GQ.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],GQ.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],GQ.prototype,"oneofRenderer",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GQ.prototype,"dataChanged",null);_.q([_.h({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],GQ);
_.L(GQ,"ytd-companion-slot-renderer",function(){if(e3g!==void 0)return e3g;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return e3g=D},{mode:_.zD("kevlar_poly_si_batch_j067")?
1:2});var w8J;var V2=function(){return _.N.apply(this,arguments)||this};
_.n(V2,_.N);V2.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
V2.prototype.dataChanged=V2.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],V2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],V2.prototype,"companionSlotData",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V2.prototype,"dataChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],V2);
_.L(V2,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(w8J!==void 0)return w8J;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return w8J=D},{mode:1});var $1J;var fE=function(){var D=_.N.apply(this,arguments)||this;D.skinnyMode=!1;D.COMPACT_EVENT_COUNT=4;D.onShelfToggleButtonTap=function(){D.logTap(D.data);D.showingMore=!D.showingMore};
D.onShelfToggleButtonFocus=function(){D.showingMore||(D.logTap(D.data),D.showingMore=!0,_.cy(D,function(){var Y=D.COMPACT_EVENT_COUNT-1,R;(R=_.aU(D.hostElement).querySelector("#event-"+Y))==null||R.focus()}))};
return D};
_.n(fE,_.N);_.u=fE.prototype;_.u.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.u.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.u.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.jN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.jN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.jN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.jN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.jN(this.infoTooltip,this.infoTooltip.hide))};
_.u.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.jN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.jN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.jN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.jN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.jN(this.infoTooltip,this.infoTooltip.hide))};
_.u.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)};
_.u.onShowingMoreChanged=function(){var D;this.showingMoreChanged((D=this.showingMore)!=null?D:!1)};
_.u.showingMoreChanged=function(D){var Y=this.get("data.events")||[];this.set("restEvents",Y.slice(1,D?Y.length:this.COMPACT_EVENT_COUNT).map(function(R){return R.ticketEventRenderer}));
Y.slice(0,D?Y.length:this.COMPACT_EVENT_COUNT).forEach(function(R){var Z=_.K2();R=R.ticketEventRenderer.trackingParams;_.Ud()&&Z&&R&&(R=_.oT(R),Z&&_.pX(Z,R))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.u.computeAriaLabel=function(D){return D.subtitle1+", "+D.subtitle2};
_.u.logTap=function(D){_.Ud()&&this.ytRendererBehavior.logExplicitClick(D)};
_.u.isKeyboardAction=function(D){return this.get("detail.x",D)===0&&this.get("detail.y",D)===0};
_.u.onFirstEventTap=function(D){D.target&&this.handleTap(D.target,this.firstEvent,this.isKeyboardAction(D))};
_.u.onTicketLinkTap=function(D){D.target&&this.handleTap(D.target,D.model.item,this.isKeyboardAction(D))};
_.u.handleTap=function(D,Y,R){if(Y.buttonCommand)if(Y.hasMultipleOffers)Object.assign(_.A(Y.buttonCommand,_.bS),{properties:{source:R?"keyboard":"tap"}}),this.logTap(Y),this.popupPositionTarget=D,_.Se(this.hostElement,[Y.buttonCommand],this.hostElement);else{var Z;if((Z=_.A(Y.buttonCommand,_.Qj))==null?0:Z.url)this.logTap(Y),_.QB(window,_.A(Y.buttonCommand,_.Qj).url)}};
fE.prototype.onShowingMoreChanged=fE.prototype.onShowingMoreChanged;fE.prototype.dataChanged=fE.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fE.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],fE.prototype,"firstEvent",void 0);_.q([_.y(),_.x("design:type",Object)],fE.prototype,"restEvents",void 0);_.q([_.y(),_.x("design:type",String)],fE.prototype,"imageUrl",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],fE.prototype,"showingMore",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],fE.prototype,"canShowMore",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],fE.prototype,"skinnyMode",void 0);_.q([_.y(),_.x("design:type",HTMLElement)],fE.prototype,"popupPositionTarget",void 0);_.q([_.fr("#banner-info-tooltip"),_.x("design:type",Object)],fE.prototype,"infoTooltip",void 0);
_.q([_.fr("#info-container"),_.x("design:type",HTMLElement)],fE.prototype,"infoContainer",void 0);_.q([_.fr("#shelf-toggler"),_.x("design:type",HTMLElement)],fE.prototype,"shelfToggleButton",void 0);_.q([_.fr("#separator"),_.x("design:type",HTMLDivElement)],fE.prototype,"separator",void 0);_.q([_.y(),_.x("design:type",String)],fE.prototype,"shelfTogglerLabelText",void 0);_.q([_.y(),_.x("design:type",String)],fE.prototype,"shelfTogglerIcon",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fE.prototype,"dataChanged",null);_.q([_.rd("showingMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fE.prototype,"onShowingMoreChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],fE);
_.L(fE,"ytd-ticket-shelf-renderer",function(){if($1J!==void 0)return $1J;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $1J=D},{mode:1});var v2J;var o2B;var er=function(){return _.N.apply(this,arguments)||this};
_.n(er,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],er.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],er);
_.L(er,"ytd-comments-entry-point-message-renderer",function(){if(o2B!==void 0)return o2B;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return o2B=D},{mode:1});var b0T;var Ae=function(){return _.N.apply(this,arguments)||this};
_.n(Ae,_.N);_.YF.Object.defineProperties(Ae.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.teaserAvatar)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ae.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ae.prototype,"hasAvatar",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Ae);
_.L(Ae,"ytd-comments-entry-point-teaser-renderer",function(){if(b0T!==void 0)return b0T;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return b0T=D},{mode:1});var yZB;var nE=function(){return _.N.apply(this,arguments)||this};
_.n(nE,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nE.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],nE);
_.L(nE,"ytd-comments-simplebox-renderer",function(){if(yZB!==void 0)return yZB;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return yZB=D},{mode:1});var r5=function(){var D=_.N.apply(this,arguments)||this;D.fullHeight=!_.f("comment_teaser_full_height_kill_switch")&&_.f("kevlar_watch_grid");return D};
_.n(r5,_.N);r5.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"}}}};
r5.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
r5.prototype.onTap=function(){var D=this.tapCommand;D&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(D))};
r5.prototype.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.YF.Object.defineProperties(r5.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.onTap)return this.data.onTap;var Y,R;if(((Y=this.data)==null?0:Y.teaserContent)||((R=this.data)==null?0:R.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
r5.prototype.onKeyUp=r5.prototype.onKeyUp;r5.prototype.onTap=r5.prototype.onTap;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],r5.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],r5.prototype,"fullHeight",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"tapCommand",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"simpleboxPlaceholder",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r5.prototype,"hasSimpleboxPlaceholder",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"simpleboxAvatar",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"teaserContent",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r5.prototype,"hasTeaserContent",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"teaserAvatar",null);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r5.prototype,"hasTeaserAvatar",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"messageText",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],r5.prototype,"contentRenderer",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r5.prototype,"hasContents",null);
_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r5.prototype,"hasContentRenderer",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r5.prototype,"onTap",null);_.q([_.Fv("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[_.FQ]),_.x("design:returntype")],r5.prototype,"onKeyUp",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],r5);
_.L(r5,"ytd-comments-entry-point-header-renderer",function(){if(v2J!==void 0)return v2J;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return v2J=D},{mode:1});var NXB;_.f("web_enable_sink_animated_rolling_character_and_number")?_.at(_.I8V,"yt-animated-rolling-number",{props:{numberText:_.cs,numberValue:_.cs,heightPx:_.cs,fontSizeMultiplier:_.cs,shouldAnimate:_.cs,forceRollUp:_.cs}}):_.It(_.jjU,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var l7g=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),JZg={numberText:"",heightPx:2*l7g,shouldAnimate:!1},w5=function(){var D=_.N.apply(this,arguments)||this;D.usingAnimatedComponents=!0;D.wasDetailed=!1;D.JSC$22757_browserSupportsAnimation=_.f("web_supports_animations_api");D.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};D.detailed=!1;D.shouldAnimate=!1;D.viewCountProps=JZg;D.dateTextProps=
JZg;D.metadataBadgesInDescription=_.f("web_metadata_badges_in_description");return D};
_.n(w5,_.N);_.u=w5.prototype;_.u.resetAnimationState=function(){this.shouldAnimate=!1};
_.u.updateDynamicMetadata=function(){if(this.JSC$22757_browserSupportsAnimation){if(!this.detailed){var D,Y,R,Z;var t=(D=this.videoPrimaryInfoRenderer)==null?void 0:(Y=D.viewCount)==null?void 0:(R=Y.videoViewCountRenderer)==null?void 0:(Z=R.extraShortViewCount)==null?void 0:Z.simpleText;var X,M,W,z;var I=(X=this.videoPrimaryInfoRenderer)==null?void 0:(M=X.viewCount)==null?void 0:(W=M.videoViewCountRenderer)==null?void 0:(z=W.shortViewCount)==null?void 0:z.simpleText}if(!I){var F,G,V,e;t=(F=this.videoPrimaryInfoRenderer)==
null?void 0:(G=F.viewCount)==null?void 0:(V=G.videoViewCountRenderer)==null?void 0:(e=V.unlabeledViewCountValue)==null?void 0:e.simpleText;var r,l,U,K;I=(r=this.videoPrimaryInfoRenderer)==null?void 0:(l=r.viewCount)==null?void 0:(U=l.videoViewCountRenderer)==null?void 0:(K=U.viewCount)==null?void 0:K.simpleText}var H,c,Q;D=Number((H=this.videoPrimaryInfoRenderer)==null?void 0:(c=H.viewCount)==null?void 0:(Q=c.videoViewCountRenderer)==null?void 0:Q.originalViewCount);var E,B;H=(E=this.videoPrimaryInfoRenderer)==
null?void 0:(B=E.relativeDateText)==null?void 0:B.simpleText;var O;E=!((O=this.videoPrimaryInfoRenderer)==null||!O.relativeDateText);if(t&&I&&D&&(H||!E)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;O=I.split(new RegExp("("+t+")"));t=nEN(O[0]);var Wo;I={numberText:(Wo=O[1])!=null?Wo:"",numberValue:D,heightPx:2*l7g,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Sb;Wo=((Sb=O[2])!=null?Sb:"")+"  ";this.setViewCount(I,t,nEN(Wo));if(!this.detailed&&
E){t=H.split(/(\d+)/);Sb=nEN(t[0]);var VU;Wo={numberText:(VU=t[1])!=null?VU:"",heightPx:2*l7g,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var AS;VU=((AS=t[2])!=null?AS:"")+"  ";this.setDateText(Wo,Sb,nEN(VU))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.u.setViewCount=function(D,Y,R){_.OM(Y)!==_.OM(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=Y);this.viewCountProps.numberText!==(D==null?void 0:D.numberText)&&(this.viewCountProps=D||JZg);_.OM(R)!==_.OM(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=R)};
_.u.setDateText=function(D,Y,R){_.OM(Y)!==_.OM(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=Y);this.dateTextProps.numberText!==(D==null?void 0:D.numberText)&&(this.dateTextProps=D||JZg);_.OM(R)!==_.OM(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=R)};
_.u.onYtUpdateViewershipAction=function(D){this.videoPrimaryInfoRenderer&&(_.A(D,$ko).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.A(D,$ko).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.A(D,$ko).viewCount)))};
_.u.onYtUpdateDateTextAction=function(D){if(this.videoPrimaryInfoRenderer){D=_.A(D,_.r9S).dateText;this.shouldAnimate=!0;var Y;((Y=this.videoPrimaryInfoRenderer)==null?0:Y.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",D):this.set("videoPrimaryInfoRenderer.dateText",D)}};
_.YF.Object.defineProperties(w5.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return A1G(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.OM(A1G(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.OM(this.viewCountPreNumberText),this.viewCountProps.numberText,_.OM(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.OM(this.dateTextPreNumberText),this.dateTextProps.numberText,_.OM(this.dateTextPostNumberText)].join("")}}});
w5.prototype.updateDynamicMetadata=w5.prototype.updateDynamicMetadata;w5.prototype.resetAnimationState=w5.prototype.resetAnimationState;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],w5.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],w5.prototype,"videoPrimaryInfoRenderer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"detailed",void 0);_.q([_.y(),_.x("design:type",Object)],w5.prototype,"shouldAnimate",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"viewCountPreNumberText",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"viewCountProps",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"viewCountPostNumberText",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"dateTextPreNumberText",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"dateTextProps",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"dateTextPostNumberText",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],w5.prototype,"metadataBadgesInDescription",void 0);_.q([_.b("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.x("design:type",Object),_.x("design:paramtypes",[])],w5.prototype,"infoText",null);
_.q([_.b("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.x("design:type",String),_.x("design:paramtypes",[])],w5.prototype,"descriptionInfoTooltipText",null);_.q([_.b("detailed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],w5.prototype,"showDescriptionInfoTooltip",null);
_.q([_.b("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],w5.prototype,"animatedViewCountAccessibilityLabel",null);_.q([_.b("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],w5.prototype,"animatedDateTextAccessibilityLabel",null);
_.q([_.Gm("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w5.prototype,"resetAnimationState",null);_.q([_.Gm("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w5.prototype,"updateDynamicMetadata",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-watch-info-text"})],w5);
_.L(w5,"ytd-watch-info-text",function(){if(NXB!==void 0)return NXB;var D=document.createElement("template");_.w(D,'\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  <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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return NXB=D},{mode:1});var kI$;var U1y="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var KJT=_.RT(function(D){var Y=D.data;var R=D.setTapCommand;_.r2(function(){var Z=_.HL(Y().onTap);R(Z)},"X4onJd");
return _.S("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz}),_.S("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.S("span",null,function(){return Y().simpleboxText})))},"ek");var h3B=_.RT(function(D){return _.S("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.S(_.T,{cond:function(){return _.A(D.data().avatar,_.qP)},
then:function(Y){return _.S(_.Jz,{data:Y,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.S("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.S(_.y_,{text:function(){return D.data().teaserText}})))},"fk");var LJE=_.RT(function(D){var Y=D.data;var R=D.setTapCommand;_.r2(function(){var Z=_.HL(Y().onTap);R(Z)},"PmAol");
return _.S("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.S(_.vK,{data:function(){return Y().teasers}},{commentsEntryPointTeaserViewModel:h3B}))},"gk");var m1f=_.RT(function(D){var Y=D.data;var R=D.setTapCommand;_.r2(function(){var Z=_.HL(Y().onTap);R(Z)},"Nh3Hjd");
return _.S("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.S(_.y_,{text:function(){return Y().messageText}}))},"hk");var qGf=_.RT(function(D){var Y=D.data;var R=D.setTapCommand;var Z=D.isDisabled;_.r2(function(){var t=(Z==null?0:Z())?void 0:_.HL(Y().onTap);R(t)},"omeiWe");
return _.S("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.S(_.nB,{icon:function(){return Y().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.S(_.T,{cond:function(){return Y().image},
then:function(t){return _.S(_.Rt,{data:t,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.S(_.y_,{text:function(){return Y().text},
className:function(){return Y().image||Y().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.S(_.vK,{data:function(){return Y().button}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Z==null?void 0:Z()}}})}}))},"ik");var H0f=_.RT(function(D){var Y=D.data;var R=D.itemIndex;var Z=D.selectedIndex;var t=D.indexUpdatedCallback;var X=D.observer;D=D.title;var M=_.dI("yt-carousel-item-view-model",function(G){X&&X().observe(G)}),W=function(G){R()===Z()&&t(G)},z=_.qW(cS7),I=_.qW(_.u5M),F=function(){var G,V,e;
return((G=Y())==null?void 0:G.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!z()||((V=Y())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&I().includes("PAposts_by_host")||((e=Y())==null?void 0:e.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&I().includes("PAyouchat")};
return _.S("yt-carousel-item-view-model",{el:M,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":D},_.S(_.vK,{data:function(){var G,V;return(V=(G=_.A(Y().carouselItem,EEZ))==null?void 0:G.textCarousel)!=null?V:Y().carouselItem}},{textCarouselItemViewModel:function(G){return _.S(qGf,{data:G.data,
setTapCommand:W,isDisabled:F})},
commentTeaserCarouselItemViewModel:function(G){return _.S(LJE,{data:G.data,setTapCommand:W})},
commentInputBoxCarouselItemViewModel:function(G){return _.S(KJT,{data:G.data,setTapCommand:W})},
commentsEntryPointMessageViewModel:function(G){return _.S(m1f,{data:G.data,setTapCommand:W})}}))},"jk");var x1f=_.RT(function(D){var Y=D.numDots;var R=D.activeIndex;return _.S("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.S(_.G6,{each:function(){return Array.from({length:Y()})},
keyBy:"INDEX"},function(Z,t){return _.S("div",{class:function(){var X={};return _.kc("ytCarouselDotsShapeDot",(X.ytCarouselDotsShapeDotActive=t===R(),X))}})}))},"kk");var Pmf=_.RT(function(D){var Y=D.data;var R=D.handleCarouselNavigation;var Z=D.numItems;var t=D.selectedIndex;var X=function(){return{disabled:t()===0}},M=function(){return{disabled:t()===Z()-1}};
return _.S("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.S("div",null,_.S("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return Y().title}),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(W){return _.S("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return Y().subtitleAccessibilityText}},W)}})),_.S(_.T,{cond:function(){return Z()>1},
then:function(){return _.S("div",{class:"ytCarouselTitleViewModelNavigation"},_.S(x1f,{numDots:Z,activeIndex:t}),_.S(_.T,{cond:function(){return Y().previousButton},
then:function(W){return _.S(_.vK,{data:W},{buttonViewModel:function(z){return _.S(_.TV,{data:z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return R(-1)},
buttonOverrides:X})}})}}),_.S(_.T,{cond:function(){return Y().nextButton},
then:function(W){return _.S(_.vK,{data:W},{buttonViewModel:function(z){return _.S(_.TV,{data:z.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return R(1)},
buttonOverrides:M})}})}}))}}))},"lk");_.at(_.RT(function(D){var Y=D.data;var R,Z=_.dI("yt-video-metadata-carousel-view-model"),t=_.dI("div",function(E){var B=function(){var O=E.offsetWidth*l(),Wo=24*(l()-1);V(O+Wo)};
B();window.ResizeObserver&&(R=new ResizeObserver(B),R.observe(E))}),X=_.JQ("HTML_DIR")==="rtl",M=!1,W=0,z=0;
D=_.a(_.ae(0,void 0,"fCZdg"));var I=D.next().value,F=D.next().value;D=_.a(_.ae(0,void 0,"FQiAle"));var G=D.next().value,V=D.next().value;D=_.a(_.ae(!1,void 0,"O4owzd"));var e=D.next().value,r=D.next().value,l=function(){var E,B,O;return(O=(E=Y())==null?void 0:(B=E.carouselTitles)==null?void 0:B.length)!=null?O:0},U=function(){t.value&&t.value.scrollLeft!==W&&F((X?t.value.scrollLeft<W:t.value.scrollLeft>W)?Math.min(I()+1,l()-1):Math.max(I()-1,0))},K;
window.IntersectionObserver&&(K=new IntersectionObserver(function(E){E=_.a(E);for(var B=E.next();!B.done;B=E.next())if(B.value.isIntersecting){if(M){M=!1;break}U()}else F(z)},{threshold:.2}));
_.r2(function(){if(t.value){var E=(X?-1:1)*(G()/l()+12)*(e()&&K?z:I());typeof t.value.scrollTo==="function"?t.value.scrollTo({left:E,behavior:"smooth"}):t.value.scrollLeft=E;W=E;z=e()&&K?z:I()}},"oi9Jzd");
var H,c=function(E){H=E};
_.w2(function(){var E;(E=R)==null||E.disconnect();var B;(B=K)==null||B.disconnect()});
var Q=function(E){E=I()+E;E>=0&&E<l()&&(M=!0,F(E))};
return _.S("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:Z,"on:click":_.F4(function(E){if(_.KH(_.Um(E),Z.value,["BUTTON".toString()])||!H)return!1;_.DH().resolve(_.Yw).resolveCommand(H,{forceClickLogging:!0});return!1}),
"on:touchstart":_.F4(function(){r(!0);return!1}),
"on:touchend":_.F4(function(){K||U();r(!1);return!1}),
hidden:function(){var E,B;return!((E=Y())==null?0:(B=E.carouselItems)==null?0:B.length)}},_.S("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.S(_.T,{cond:function(){return Y().carouselTitles},
then:function(E){return _.S(_.vK,{data:function(){return E()[e()&&K?z:I()]}},{carouselTitleViewModel:function(B){return _.S(Pmf,{data:B.data,
handleCarouselNavigation:Q,numItems:l,selectedIndex:I})}})}})),_.S("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:t},_.S("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+G()+"px;"}},_.S(_.T,{cond:function(){return Y().carouselItems},
then:function(E){return _.S(_.G6,{each:E},function(B,O){return _.S(_.vK,{data:function(){return B}},{carouselItemViewModel:function(Wo){return _.S(H0f,{data:Wo.data,
itemIndex:O,selectedIndex:I,indexUpdatedCallback:c,observer:K,title:function(){a:{var Sb=O();var VU,AS=(VU=Y())==null?void 0:VU.carouselTitles;if(AS&&(Sb=AS[Sb])){var nM;Sb=(nM=_.A(Sb,p4f))==null?void 0:nM.title;break a}Sb=void 0}return Sb}})}})})}}))))},"mk"),"yt-video-metadata-carousel-view-model",{props:{data:_.cs}});var QIS=_.f("web_action_buttons_update_owner_width")?32:12,$A=function(){var D=_.N.apply(this,arguments)||this;D.isHovering=!1;D.enableColorSampling=_.f("web_delhi_colorful_sd");D.metadataBadgesInDescription=_.f("web_metadata_badges_in_description");D.descriptionCollapsed=!0;D.useFadedScrimDescription=_.f("kevlar_enable_faded_scrim_on_description");D.skinnyMode=!1;D.playlist=!1;D.isDark=document.documentElement.hasAttribute("dark");D.disableVideoOwnerOnTap=_.f("swatchie_video_owner_on_tap_ks");D.swatcherooDelayLoad=
_.f("swatcheroo_enable_ghost_cards");D.primaryMenuWidth=0;D.videoId="";D.titleHeadlineXs=_.f("web_watch_typography_title_headline_xs");D.titleHeadlineS=_.f("web_watch_typography_title_headline_s");D.titleHeadlineM=_.f("web_watch_typography_title_headline_m");D.titleHashtagBlackLinkified=_.f("web_title_hashtag_black_linkified");D.titleHashtagGreyLinkified=_.f("web_title_hashtag_grey_linkified");D.actionButtonsUpdateOwnerWidth=_.f("web_action_buttons_update_owner_width");D.shouldForceIconOnly=!1;D.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};D.isFullscreen=!1;D.isTheaterMode=!1;return D};
_.n($A,_.N);_.u=$A.prototype;_.u.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.u.updateOwnerAndDescriptionPosition=function(){_.f("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.KR(this.bottomRowElement,this.ownerElement)):(_.KR(this.bottomRowElement,this.descriptionElement),_.KR(this.topRowElement,this.ownerElement)))};
_.u.titleOnTap=function(D){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Y;((Y=window.getSelection())==null?0:Y.toString().length)||this.handleExpandDescriptionCommands()}};
_.u.videoOwnerOnTap=function(D){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.u.detached=function(){var D=this,Y;return _.C(function(R){(Y=D.resizeObserver)==null||Y.disconnect();_.V9(R)})};
_.u.maybeAttachResizeObserver=function(){var D=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.gq(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){D.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.u.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var D=this.hostElement.clientWidth,Y=Math.max(this.largerItemWrap?400:350,D/2-QIS);if(_.f("web_action_buttons_update_owner_width")){var R;Y=(((R=document.getElementById("owner"))==null?void 0:R.clientWidth)||0)+QIS}this.actionsOnSeparateLine=this.primaryMenuWidth>D-Y?!0:!1}};
_.u.stripAttributedDescription=function(D){return{content:D.content.replace(/[\r\n]{2,}/g,"\n")}};
_.u.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.f("web_modern_buttons"),forceIconButton:!_.f("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:_.f("web_action_buttons_minimize_subscribe")},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"}}}};
_.u.videoPrimaryInfoRendererChanged=function(){var D;if((D=this.videoPrimaryInfoRenderer)==null?0:D.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.u.videoSecondaryInfoRendererChanged=function(){var D,Y;(Y=(D=this.descriptionInlineExpander).collapse)==null||Y.call(D);this.descriptionExpandClientVe=_.TP(110509);this.descriptionCollapseClientVe=_.TP(110510);D=_.K2();Y=_.Ud();D&&Y&&(_.f("combine_ve_grafts")?(_.jF(_.n8(),this.descriptionExpandClientVe,Y),_.jF(_.n8(),this.descriptionCollapseClientVe,Y)):_.BC(D,Y,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.u.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.u.updateTopLevelIconsOnly=function(){var D=this;_.f("top_level_update_killswitch")||this.menu&&_.yc.addLowPriorityJob(function(){D.menu.topLevelIconsOnly=D.skinnyMode},_.ZH("swathceroo_delay_flexible_menu_update",100))};
_.u.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.f("web_action_buttons_minimize_subscribe")};
_.u.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.u.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.u.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.u.onYtTextInlineExpanderExpandedChanged=function(){if(!_.f("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var D,Y;(Y=(D=this.structuredDescriptionContentRendererElement).resize)==null||Y.call(D)}};
_.u.onRenderStamperFinished=function(D){(D==null?void 0:D.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.u.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.u.onYtExpanderLessTapped=function(){var D,Y=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showLessCommand;Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.u.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.u.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.u.onDescriptionClick=function(D){if(!_.Yc(_.O$(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Y;((Y=window.getSelection())==null?0:Y.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.f("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.u.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.u.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.u.logCollapseClick=function(){var D=_.K2();D&&this.descriptionCollapseClientVe&&_.dC(D,this.descriptionCollapseClientVe)};
_.u.logExpandClick=function(){var D=_.K2();D&&this.descriptionExpandClientVe&&_.dC(D,this.descriptionExpandClientVe)};
_.u.collapseDescription=function(){this.descriptionCollapsed=!0};
_.u.scrollToTopOfContainer=function(){_.CX(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.u.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.u.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.u.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.u.resize=function(){if(this.descriptionInlineExpander){var D,Y;(Y=(D=this.descriptionInlineExpander).resize)==null||Y.call(D)}else _.Jk(new _.AT("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var R;(R=this.menu)==null||R.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.f("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.u.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var D,Y,R,Z,t=_.f("web_action_buttons_update_owner_width")?(R=(D=_.aU(this.menu).querySelector("#button-shape"))==null?void 0:D.clientWidth)!=null?R:0:(Z=(Y=_.aU(this.menu).querySelector("#button"))==null?void 0:Y.clientWidth)!=null?Z:0,X,M;D=((M=(X=_.aU(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:X.clientWidth)!=null?M:0)+8+t;var W,z;t=(z=(W=_.aU(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:W.children.length)!=null?z:2;D<=8*t||(this.primaryMenuWidth=D)}};
_.u.onYtUpdateTitleAction=function(D){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.A(D,wuT).title)};
_.u.onYtUpdateDescriptionAction=function(D){if(D=_.A(D,_.EZV)){var Y,R=!((Y=this.videoSecondaryInfoRenderer)==null||!Y.attributedDescription);D.isEmpty||!D.description&&!D.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):D.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",D.attributedDescription):D.description&&(R?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.K8(D.description)):this.set("videoSecondaryInfoRenderer.description",D.description))}};
_.u.onYtDarkModeToggledAction=function(D){this.isDark=D};
_.u.registerPanel=function(){if(!_.f("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var D=_.f("web_watch_imax_theater_mode")&&this.isTheaterMode;D=_.f("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D;var Y=_.DH().resolve(_.b6);Y&&!D&&Y.registerPanel("engagement-panel-structured-description",this)}};
_.u.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.u.parseColorSamplingData=function(){var D;if(_.f("web_delhi_colorful_sd")&&((D=this.structuredDescriptionContentRenderer)==null?0:D.items)&&(D=this.structuredDescriptionContentRenderer.items.find(function(t){return!!_.A(t,h_)}))){var Y,R;
this.hoverColor={lightTheme:(Y=_.A(D,h_))==null?void 0:Y.lightThemeColorPalette,darkTheme:(R=_.A(D,h_))==null?void 0:R.darkThemeColorPalette};var Z;this.hoverText=(Z=_.A(D,h_))==null?void 0:Z.colorSampledDescriptionBodyText}};
_.u.updateHoverColor=function(){if(_.f("web_delhi_colorful_sd")){var D=this.hoverColor,Y={},R;D=(R=this.isDark?D==null?void 0:D.darkTheme:D==null?void 0:D.lightTheme)!=null?R:{};R=_.a(U1y);for(var Z=R.next();!Z.done;Z=R.next()){Z=Z.value;var t=D[Z];Y["--yt-saturated-"+_.f2(Z)]=t?_.xI(t):"initial"}_.SN(this.hostElement,Y)}};
_.u.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.u.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.u.showPanel=function(D){this.expandDescription();var Y=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;Y.resize();var R,Z=D==null?void 0:(R=D.sectionListEngagementPanelExtras)==null?void 0:R.scrollToItemSectionIdentifier;Z?_.yc.addJob(function(){Y==null||Y.scrollToSection(Z)},8):this.scrollToTopOfContainer()};
_.u.isVisible=function(){return!this.descriptionCollapsed};
_.u.getReloadContinuation=function(){};
_.u.hidePanel=function(){};
_.u.updatePanel=function(){};
_.YF.Object.defineProperties($A.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var D;return _.f("web_delhi_colorful_sd")&&(D=this.structuredDescriptionContentRenderer)!=null&&D.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(Y){return!_.A(Y,h_)&&!_.A(Y,oKy)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.structuredDescriptionContentRendererComputed)!=null&&D.items){var Y;D=_.a((Y=this.structuredDescriptionContentRendererComputed)==null?void 0:Y.items);for(Y=D.next();!Y.done;Y=D.next())if(Y=_.A(Y.value,_.QhL))return Y}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoPrimaryInfoRenderer)==null?0:D.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!!((D=this.videoSecondaryInfoRenderer)==null?0:(Y=D.owner)==null?0:(R=Y.videoOwnerRenderer)==null?0:R.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var D,Y;if((D=this.videoSecondaryInfoRenderer)==null?0:(Y=D.attributedDescription)==null?0:Y.content){var R,Z;return(Z=this.stripAttributedDescription((R=this.videoSecondaryInfoRenderer)==null?void 0:R.attributedDescription))!=null?Z:{runs:[]}}}if(_.f("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var t,X,M,W;return(W=(M=(t=this.videoSecondaryInfoRenderer)==
null?void 0:t.description)!=null?M:(X=this.videoSecondaryInfoRenderer)==null?void 0:X.attributedDescription)!=null?W:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.headerRuns)!=null?Y:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentsEntryPointHeaderRenderer)==null||!D.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoMetadataCarousel)==null||!D.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.ZH("swatchie_desc_lines",3):this.hasTeaserCarousel?_.ZH("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(Y=D.metadataRowContainer)==null?void 0:Y.metadataRowContainerRenderer);if(R&&R.rows&&R.collapsedItemCount!==void 0&&!(R.rows.length<=R.collapsedItemCount))return R.rows=R.rows.slice(R.collapsedItemCount),R.collapsedItemCount=0,R}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var D,Y,R=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(Y=D.metadataRowContainer)==null?void 0:Y.metadataRowContainerRenderer);if(R&&R.rows&&R.collapsedItemCount!==void 0)return R.rows=R.rows.slice(0,R.collapsedItemCount),R.collapsedItemCount=R.rows.length,R}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!((D=this.structuredDescriptionContentRendererComputed)==null?0:(Y=D.items)==null?0:Y.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 D;return(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.videoSecondaryInfoRenderer)==null?0:(Y=D.owner)==null?0:(R=Y.videoOwnerRenderer)==null?0:R.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return!!((D=this.videoPrimaryInfoRenderer)==null?0:(Y=D.videoActions)==null?0:(R=Y.menuRenderer)==null?0:(Z=R.flexibleItems)==null?0:Z.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.cL(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.cL(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var D=this;if(_.f("web_title_hashtag_grey_delinkified")){var Y,R=_.y7.unsafeClone((Y=this.videoPrimaryInfoRenderer)==null?void 0:Y.title);(Y=R==null?void 0:R.runs)&&Y.forEach(function(Z){if(Z==null?0:Z.navigationEndpoint)Z.textColor=4284506208,D.isDark&&(Z.textColor=4289374890)});
return R}return(R=this.videoPrimaryInfoRenderer)==null?void 0:R.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.f("web_title_hashtag_black_delinkified")||_.f("web_title_hashtag_grey_delinkified")}}});
$A.prototype.updateHoverColor=$A.prototype.updateHoverColor;$A.prototype.parseColorSamplingData=$A.prototype.parseColorSamplingData;$A.prototype.resetDescriptionState=$A.prototype.resetDescriptionState;$A.prototype.registerPanel=$A.prototype.registerPanel;$A.prototype.onYtExpanderLessTapped=$A.prototype.onYtExpanderLessTapped;$A.prototype.onYtExpanderMoreTapped=$A.prototype.onYtExpanderMoreTapped;$A.prototype.onRenderStamperFinished=$A.prototype.onRenderStamperFinished;
$A.prototype.onYtTextInlineExpanderExpandedChanged=$A.prototype.onYtTextInlineExpanderExpandedChanged;$A.prototype.onYtTextInlineExpanderCollapseClicked=$A.prototype.onYtTextInlineExpanderCollapseClicked;$A.prototype.onYtTextInlineExpanderExpandClicked=$A.prototype.onYtTextInlineExpanderExpandClicked;$A.prototype.moveActionsElement=$A.prototype.moveActionsElement;$A.prototype.updateShouldForceIconOnly=$A.prototype.updateShouldForceIconOnly;$A.prototype.updateTopLevelIconsOnly=$A.prototype.updateTopLevelIconsOnly;
$A.prototype.structuredDescriptionContentRendererChanged=$A.prototype.structuredDescriptionContentRendererChanged;$A.prototype.videoSecondaryInfoRendererChanged=$A.prototype.videoSecondaryInfoRendererChanged;$A.prototype.videoPrimaryInfoRendererChanged=$A.prototype.videoPrimaryInfoRendererChanged;$A.prototype.maybeUpdateActionsOnSeparateLine=$A.prototype.maybeUpdateActionsOnSeparateLine;$A.prototype.updateOwnerAndDescriptionPosition=$A.prototype.updateOwnerAndDescriptionPosition;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],$A.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],$A.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],$A.prototype,"ytdReduxBehavior",void 0);_.q([_.fr("#above-the-fold"),_.x("design:type",HTMLElement)],$A.prototype,"aboveTheFoldContainer",void 0);_.q([_.fr("#menu ytd-menu-renderer"),_.x("design:type",Object)],$A.prototype,"menu",void 0);_.q([_.fr("#description-inline-expander"),_.x("design:type",Object)],$A.prototype,"descriptionInlineExpander",void 0);
_.q([_.fr("#faded-structured-description"),_.x("design:type",Object)],$A.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.q([_.fr("#structured-description"),_.x("design:type",Object)],$A.prototype,"structuredDescriptionContentRendererElement",void 0);_.q([_.fr("#title"),_.x("design:type",HTMLElement)],$A.prototype,"titleElement",void 0);_.q([_.fr("#description"),_.x("design:type",HTMLElement)],$A.prototype,"descriptionElement",void 0);
_.q([_.fr("#description-interaction"),_.x("design:type",Object)],$A.prototype,"descriptionInteraction",void 0);_.q([_.fr("#owner"),_.x("design:type",HTMLElement)],$A.prototype,"ownerElement",void 0);_.q([_.fr("#top-row"),_.x("design:type",HTMLElement)],$A.prototype,"topRowElement",void 0);_.q([_.fr("#bottom-row"),_.x("design:type",HTMLElement)],$A.prototype,"bottomRowElement",void 0);_.q([_.fr("#actions"),_.x("design:type",HTMLElement)],$A.prototype,"actionsElement",void 0);
_.q([_.fr("#bottom-actions"),_.x("design:type",HTMLElement)],$A.prototype,"bottomActionsElement",void 0);_.q([_.fr("#ytd-watch-info-text"),_.x("design:type",Object)],$A.prototype,"watchInfoTextElement",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"videoPrimaryInfoRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"videoSecondaryInfoRenderer",void 0);
_.q([_.y(),_.x("design:type",Object)],$A.prototype,"commentsEntryPointHeaderRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"videoMetadataCarousel",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"structuredDescriptionContentRenderer",void 0);_.q([_.b("structuredDescriptionContentRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"structuredDescriptionContentRendererComputed",null);
_.q([_.y(),_.x("design:type",Object)],$A.prototype,"videoSummary",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"merchShelf",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"infoPanelBelowMetadata",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"hoverColor",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"hoverText",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"isHovering",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"enableColorSampling",void 0);_.q([_.b("structuredDescriptionContentRendererComputed"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"productShelf",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"metadataBadgesInDescription",void 0);_.q([_.b("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"shouldHideBadges",null);
_.q([_.b("productShelf","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"shouldShowProductShelf",null);_.q([_.y(),_.x("design:type",Boolean)],$A.prototype,"isWatchFlexy",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"descriptionCollapsed",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],$A.prototype,"useFadedScrimDescription",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"skinnyMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"largerItemWrap",null);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"playlist",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"clarifyBox",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"playerAds",void 0);
_.q([_.y(),_.x("design:type",Boolean)],$A.prototype,"isDark",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],$A.prototype,"actionsOnSeparateLine",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"disableVideoOwnerOnTap",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"swatcherooDelayLoad",void 0);_.q([_.y(),_.x("design:type",Boolean)],$A.prototype,"suppressTopLevelMetadataRows",void 0);
_.q([_.y(),_.x("design:type",Object)],$A.prototype,"primaryMenuWidth",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"videoId",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"titleHeadlineXs",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"titleHeadlineS",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"titleHeadlineM",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"titleHashtagBlackLinkified",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"titleHashtagGreyLinkified",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.q([_.y(),_.x("design:type",Object)],$A.prototype,"shouldForceIconOnly",void 0);
_.q([_.rd("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"updateOwnerAndDescriptionPosition",null);_.q([_.rd("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.q([_.b("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"descriptionText",null);_.q([_.b("videoSecondaryInfoRenderer.headerRuns"),_.x("design:type",Array),_.x("design:paramtypes",[])],$A.prototype,"headerRuns",null);
_.q([_.y({value:!1}),_.b("commentsEntryPointHeaderRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"hasTeaser",null);_.q([_.y({value:!1,reflectToAttribute:!0}),_.b("videoMetadataCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"hasTeaserCarousel",null);_.q([_.y({value:3}),_.b("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"descriptionMaxLines",null);
_.q([_.b("videoSecondaryInfoRenderer.metadataRowContainer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"collapsibleMetadataRows",null);_.q([_.b("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"alwaysVisibleMetadataRows",null);
_.q([_.b("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"hasInlineStructuredDescription",null);_.q([_.b("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"showInlineStructuredDescription",null);
_.q([_.b("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"descriptionExpandCommand",null);_.q([_.b("videoSecondaryInfoRenderer.owner"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"videoOwnerCommand",null);_.q([_.y({reflectToAttribute:!0}),_.b("videoPrimaryInfoRenderer.videoActions"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"flexMenuEnabled",null);
_.q([_.y({selector:_.LB,reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"isFullscreen",void 0);_.q([_.y({selector:_.hp,reflectToAttribute:!0}),_.x("design:type",Object)],$A.prototype,"isTheaterMode",void 0);_.q([_.b("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"showAttributedStringDescription",null);
_.q([_.b("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"showFormattedStringDescription",null);_.q([_.b("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$A.prototype,"showFadedStructuredDescription",null);
_.q([_.rd("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"videoPrimaryInfoRendererChanged",null);_.q([_.b("videoPrimaryInfoRenderer.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"videoTitle",null);_.q([_.b("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],$A.prototype,"noEndpoints",null);
_.q([_.rd("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"videoSecondaryInfoRendererChanged",null);_.q([_.Gm("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"structuredDescriptionContentRendererChanged",null);
_.q([_.Gm("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"updateTopLevelIconsOnly",null);_.q([_.Gm("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"updateShouldForceIconOnly",null);_.q([_.Gm("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"moveActionsElement",null);
_.q([_.Fv("yt-text-inline-expander-expand-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"onYtTextInlineExpanderExpandClicked",null);_.q([_.Fv("yt-text-inline-expander-collapse-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.q([_.Fv("yt-text-inline-expander-expanded-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$A.prototype,"onRenderStamperFinished",null);
_.q([_.Fv("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"onYtExpanderMoreTapped",null);_.q([_.Fv("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"onYtExpanderLessTapped",null);
_.q([_.Gm("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"registerPanel",null);_.q([_.Gm("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"resetDescriptionState",null);
_.q([_.Gm("structuredDescriptionContentRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"parseColorSamplingData",null);_.q([_.Gm("hoverColor","isDark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"updateHoverColor",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-watch-metadata"})],$A);
_.L($A,"ytd-watch-metadata",function(){if(kI$!==void 0)return kI$;var D=document.createElement("template");_.w(D,'\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    <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]]" class="style-scope ytd-watch-metadata"> </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    <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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return kI$=D},{mode:2});_.cZS=function(D){_.AE.call(this);this.JSC$22782_watchApi=D;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;BX$(this);p8N(this);E2f(this);g2B(this);d17(this);i0o(this);O0f(this)};
_.n(_.cZS,_.AE);var E2f=function(D){var Y=function(){_.f("kevlar_is_pupi_enabled")||vv(D)};
D.JSC$22782_watchApi.getRoot().addEventListener("yt-player-updated",Y);D.addOnDisposeCallback(function(){D.JSC$22782_watchApi.getRoot().removeEventListener("yt-player-updated",Y)})},d17=function(D){if(_.f("kevlar_endscreen_auto_theater_mode")){var Y=D.JSC$22782_watchApi.subscribeToActiveChanged(function(){DCB(D)},!1);
D.addOnDisposeCallback(Y)}},BX$=function(D){var Y,R,Z,t,X;
_.C(function(M){if(M.nextAddress==1)return M.yield(D.JSC$22782_watchApi.playerApi,2);Y=M.yieldResult;R=function(W){W=!!W;ox(D)&&(W=W?2:1,_.tG.getInstance().setState(W,!0,!1))};
Z=function(W){W&&_.OMB(_.Dl().getState())&&(_.CX(D.JSC$22782_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),D.temporaryTheaterMode=!0)};
t=function(W){_.f("kevlar_player_update_autonav_on_new_data")&&W.type==="newdata"&&(_.f("kevlar_is_pupi_enabled")||vv(D))};
X=function(W){D.onPlayerStateChange(W)};
_.f("kevlar_endscreen_auto_theater_mode")&&Y.addEventListener("onAutonavCancelled",Z);Y.addEventListener("onAutonavChangeRequest",R);Y.addEventListener("onVideoDataChange",t);Y.addEventListener("onStateChange",X);D.addOnDisposeCallback(function(){Y.removeEventListener("onAutonavChangeRequest",R);Y.removeEventListener("onVideoDataChange",t);Y.removeEventListener("onStateChange",X);_.f("kevlar_endscreen_auto_theater_mode")&&Y.removeEventListener("onAutonavCancelled",Z)});
_.V9(M)})},p8N=function(D){D.JSC$22782_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){D.autonavCancelledBySignal=!0;
_.f("kevlar_is_pupi_enabled")||vv(D)});
D.JSC$22782_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(Y,R,Z){R&&vv(D,Z)});
D.JSC$22782_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){ox(D)&&_.tG.getInstance().setState(2,!0,!0)});
D.JSC$22782_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){ox(D)&&_.tG.getInstance().setState(1,!0,!0)});
D.addOnDisposeCallback(function(){D.JSC$22782_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");D.JSC$22782_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");D.JSC$22782_watchApi.unregisterActionHandler("yt-enable-autoplay-command");D.JSC$22782_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},g2B=function(D){var Y=D.JSC$22782_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){O0f(D)}),R=D.JSC$22782_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){i0o(D)});
D.addOnDisposeCallback(function(){D.JSC$22782_watchApi.unsubscribeByKey(Y);D.JSC$22782_watchApi.unsubscribeByKey(R)})},O0f=function(D){D.autonavCancelledBySignal=!1;
_.f("kevlar_is_pupi_enabled")||vv(D)},i0o=function(D){var Y=D.JSC$22782_watchApi.getWatchNextResponse(),R,Z;
var t=(Y=(Z=_.A(Y==null?void 0:(t=Y.playerOverlays)==null?void 0:(R=t.playerOverlayRenderer)==null?void 0:R.autonavToggle,_.dxU))==null?void 0:Z.enabled)?2:1;_.f("kevlar_is_pupi_enabled")?_.tG.getInstance().setState(t,!1,!1):vv(D);_.f("web_persist_server_autonav_state_on_client")&&typeof Y==="boolean"&&_.eRo(t===2)},ox=function(D){if(D.autonavCancelledBySignal)return!1;
var Y,R,Z,t;return!!((Y=D.JSC$22782_watchApi.getWatchNextResponse())==null?0:(R=Y.contents)==null?0:(Z=R.twoColumnWatchNextResults)==null?0:(t=Z.autoplay)==null?0:t.autoplay)};
_.cZS.prototype.onPlayerStateChange=function(D){if(D===0){D=!_.tG.getInstance().isAutoplaySetExplicitly();var Y=this.JSC$22782_watchApi.getWatchNextResponse(),R,Z,t,X;Y=_.A(Y==null?void 0:(R=Y.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(t=Z.autoplay)==null?void 0:(X=t.autoplay)==null?void 0:X.autoplayExplicitChoiceDialogRenderer,_.FML);ox(this)&&D&&Y&&_.GD.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:Y},popupType:"DIALOG"}})}else DCB(this)};
var DCB=function(D){D.temporaryTheaterMode&&(D.temporaryTheaterMode=!1,_.CX(D.JSC$22782_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},vv=function(D,Y){Y=Y===void 0?!1:Y;
var R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22782_watchApi.playerApi,2);R=Z.yieldResult;ox(D)?R.setAutonavState(_.tG.getInstance().getState(),Y):R.setAutonavState(1,Y);_.V9(Z)})};var YWJ={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"};_.ZGZ=function(D){_.AE.call(this);var Y=this;this.JSC$22787_watchApi=D;var R=this.JSC$22787_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){R7f(Y)});
this.addOnDisposeCallback(function(){Y.JSC$22787_watchApi.unsubscribeByKey(R)});
R7f(this)};
_.n(_.ZGZ,_.AE);var R7f=function(D){var Y=D.JSC$22787_watchApi.getPlayerResponse(),R=D.JSC$22787_watchApi.getWatchNextResponse();if(!_.vHU(Y==null?void 0:Y.playabilityStatus,R==null?void 0:R.playerOverlays)){var Z;var t=Y==null?void 0:(Z=Y.playabilityStatus)==null?void 0:Z.errorScreen}D.JSC$22787_watchApi.provideRenderingData("ERROR_SCREEN",t)};var tHB=_.RT(function(D){var Y=D.data;D=_.f("web_watch_video_details_hide_subtitle");var R=_.f("web_watch_video_details_single_line_title"),Z=_.F4(function(){var W=Y().onTap;W&&_.DH().resolve(_.Yw).resolveCommand(W)}),t={},X={},M={};
return _.S("yt-player-overlay-video-details-renderer",{class:_.e7("ytPlayerOverlayVideoDetailsRendererHost",(t.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.f("web_watch_video_details_transparent_background"),t)),"on:click":Z,role:"button"},_.S("h2",{class:_.e7("ytPlayerOverlayVideoDetailsRendererTitle",(X.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return R},X))},_.S(_.y_,{text:function(){return Y().title}})),_.S("div",{class:_.e7("ytPlayerOverlayVideoDetailsRendererSubtitle",
(M.ytPlayerOverlayVideoDetailsRendererHideSubtitle=D,M))},_.S(_.y_,{text:function(){return Y().subtitle}})))},"nk");var bN={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},s0g=_.RT(function(D){var Y=D.data;var R=_.qW(_.LB),Z=_.f("web_watch_action_bar_resize_buttons"),t=_.f("delhi_modern_web_player_icons")&&!_.f("enable_web_delhi_icons"),X=function(){return Z&&!R()?{size:"M"}:void 0};
D={};return _.S("yt-player-quick-action-buttons",{class:_.e7("ytPlayerQuickActionButtonsHost",(D.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!R()},D))},_.S(_.G6,{each:function(){if(t){var M=Y();
M=JSON.parse(JSON.stringify(M));for(var W=_.a(M),z=W.next();!z.done;z=W.next()){var I=z.value,F=void 0;z=_.A((F=_.A(I,_.U_))==null?void 0:F.toggleButtonViewModel,_.py);var G=void 0;F=_.A((G=_.A(I,_.kG))==null?void 0:G.toggleButtonViewModel,_.py);G=_.A(I,_.QX);I=_.A(I,_.py);if(z)F=_.A(z.defaultButtonViewModel,_.QX),z=_.A(z.toggledButtonViewModel,_.QX),F&&F.iconName&&(F.iconName=bN[F.iconName]),z&&z.iconName&&(z.iconName=bN[z.iconName]);else if(F)z=_.A(F.defaultButtonViewModel,_.QX),F=_.A(F.toggledButtonViewModel,
_.QX),z&&z.iconName&&(z.iconName=bN[z.iconName]),F&&F.iconName&&(F.iconName=bN[F.iconName]);else if(G)G.iconName&&(G.iconName=bN[G.iconName]);else if(I){z=_.A(I.defaultButtonViewModel,_.QX);F=_.A(I.toggledButtonViewModel,_.QX);I=void 0;if((I=z)==null?0:I.iconName)z.iconName=bN[z.iconName];z=void 0;if((z=F)==null?0:z.iconName)F.iconName=bN[F.iconName]}}}else M=Y();return M}},function(M){return _.S(_.vK,{data:function(){return M}},{buttonViewModel:function(W){return _.S(_.TV,{data:W.data,
buttonOverrides:X})},
likeButtonViewModel:function(W){return _.S(_.h7,{data:W.data,buttonShapeOverrideables:X})},
dislikeButtonViewModel:function(W){return _.S(_.KV,{data:W.data,buttonShapeOverrideables:X})},
toggleButtonViewModel:function(W){return _.S(_.JV,{data:W.data,buttonShapeOverrides:X})}})}))},"ok");_.u_$=function(D){_.AE.call(this);var Y=this;this.JSC$22791_watchApi=D;D=_.a(_.ae({},void 0,"n9wCVe"));this.quickActionsViewModel=D.next().value;this.setQuickActionsViewModel=D.next().value;D=_.a(_.ae({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=D.next().value;this.setPlayerOverlayVideoDetailsRenderer=D.next().value;var R=this.JSC$22791_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XBN(Y)});
this.addOnDisposeCallback(function(){Y.JSC$22791_watchApi.unsubscribeByKey(R)});
XBN(this)};
_.n(_.u_$,_.AE);
var XBN=function(D){var Y,R,Z,t,X,M,W,z,I,F,G,V,e,r;_.C(function(l){if(l.nextAddress==1)return l.yield(D.JSC$22791_watchApi.playerApi,2);Y=l.yieldResult;R=D.JSC$22791_watchApi.getWatchNextResponse();X=(Z=R)==null?void 0:(t=Z.playerOverlays)==null?void 0:t.playerOverlayRenderer;W=_.A((M=X)==null?void 0:M.fullscreenQuickActionsBar,_.OJE);(I=(z=D).setQuickActionsViewModel)==null||I.call(z,W||{});W&&aCB(D,Y);V=(F=X)==null?void 0:(G=F.videoDetails)==null?void 0:G.playerOverlayVideoDetailsRenderer;(r=(e=
D).setPlayerOverlayVideoDetailsRenderer)==null||r.call(e,V||{});V&&MHZ(D,Y);_.V9(l)})},aCB=function(D,Y){if(!D.quickActionButtonsContainer)if(Y.setFullscreenQuickActions){D.quickActionButtonsContainer=document.createElement("div");
Y.setFullscreenQuickActions(D.quickActionButtonsContainer);var R=function(){return D.quickActionsViewModel().quickActionButtons||[]},Z=_.nb(D.quickActionButtonsContainer,function(){return _.S(s0g,{data:R})});
D.addOnDisposeCallback(function(){Y.setFullscreenQuickActions(void 0);Z()})}else _.Jk(new _.AT("setFullscreenQuickActions not defined",{playerApi:Object.keys(Y),
isReady:Y.isReady(),appState:Y.getAppState()}))},MHZ=function(D,Y){if(!D.playerOverlayVideoDetailsRendererContainer)if(Y.setPlayerOverlayVideoDetailsRenderer){D.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
Y.setPlayerOverlayVideoDetailsRenderer(D.playerOverlayVideoDetailsRendererContainer);var R=_.nb(D.playerOverlayVideoDetailsRendererContainer,function(){return _.S(tHB,{data:D.playerOverlayVideoDetailsRenderer})});
D.addOnDisposeCallback(function(){Y.setPlayerOverlayVideoDetailsRenderer(void 0);R()})}else _.Jk(new _.AT("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(Y),
isReady:Y.isReady(),appState:Y.getAppState()}))};_.y2=function(D){_.AE.call(this);var Y=this;this.JSC$22797_watchApi=D;this.JSC$22797_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;D=_.rm(_.Dl(),_.LB,function(R){Y.onFullscreenChanged(R)});
this.addOnDisposeCallback(D);D=_.rm(_.Dl(),_.ow,function(R){Y.onWatchScroll(R)});
this.addOnDisposeCallback(D);_.f("kevlar_watch_while_v2")&&(D=_.rm(_.Dl(),_.Kh,function(R){Cg$(Y,R)}),this.addOnDisposeCallback(D));
WmS(this);z7f(this);SWB();this.onWatchScroll(_.ow(_.Dl().getState()));_.ks("START_IN_FULL_WINDOW_MODE")&&this.JSC$22797_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.n(_.y2,_.AE);var WmS=function(D){D.JSC$22797_watchApi.registerActionHandler("yt-fullscreen-change-action",function(Y){var R=D.JSC$22797_watchApi.isActive();Y&&!R||_.Dl().dispatch(_.u0({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!Y}}))});
D.addOnDisposeCallback(function(){D.JSC$22797_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},z7f=function(D){var Y,R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22797_watchApi.playerApi,2);Y=Z.yieldResult;R=function(){D.onFullerscreenEduClicked()};
Y.addEventListener("onFullerscreenEduClicked",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onFullerscreenEduClicked",R)});
_.V9(Z)})};
_.y2.prototype.onFullscreenChanged=function(D){var Y=this,R;return _.C(function(Z){if(Z.nextAddress==1)return Y.isFullscreen=!!_.t4(),Z.yield(Y.JSC$22797_watchApi.playerApi,2);R=Z.yieldResult;Y.JSC$22797_miniplayerActive||R.setFauxFullscreen(Y.isFullscreen);if(D&&(Y.JSC$22797_watchApi.focusOnPlayer(),!Y.fullerscreenEduButtonShownThisPlayback)){Y.fullerscreenEduButtonShownThisPlayback=!0;var t=_.FJ("yt-fullerscreen-edu-button-shown-count")||0;_.I8("yt-fullerscreen-edu-button-shown-count",t+1,31536E3);
Y.updateFullerscreenEduButtonSubtleModeState()}_.V9(Z)})};
var Cg$=function(D,Y){var R;_.C(function(Z){if(Z.nextAddress==1)return D.JSC$22797_miniplayerActive=Y,Z.yield(D.JSC$22797_watchApi.playerApi,2);R=Z.yieldResult;R.setFauxFullscreen(!D.JSC$22797_miniplayerActive&&D.isFullscreen);_.V9(Z)})};
_.y2.prototype.onWatchScroll=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1)return _.f("external_fullscreen_with_edu")?t.yield(Y.JSC$22797_watchApi.playerApi,2):t.return();R=t.yieldResult;Z=D<=0;Y.shouldShowFullerscreenEdu!==Z&&(Y.shouldShowFullerscreenEdu=Z,R.updateFullerscreenEduButtonVisibility(!Y.shouldShowFullerscreenEdu));_.V9(t)})};
_.y2.prototype.onFullerscreenEduClicked=function(){this.JSC$22797_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var D=_.FJ("yt-fullerscreen-edu-button-click-count")||0;_.I8("yt-fullerscreen-edu-button-click-count",D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.y2.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var D=this,Y,R,Z,t,X,M;return _.C(function(W){if(W.nextAddress==1)return Y=_.FJ("yt-fullerscreen-edu-button-click-count")||0,R=_.FJ("yt-fullerscreen-edu-button-shown-count")||0,Z=_.ZH("external_fullscreen_button_click_threshold"),t=_.ZH("external_fullscreen_button_shown_threshold"),X=Y>=Z||R>=t,W.yield(D.JSC$22797_watchApi.playerApi,2);M=W.yieldResult;M.updateFullerscreenEduButtonSubtleModeState(X);_.V9(W)})};
_.y2.prototype.disposeInternal=function(){_.AE.prototype.disposeInternal.call(this);var D=_.t4();_.f("kevlar_exit_fullscreen_leaving_watch")&&D&&_.s7(D)};
var SWB=function(){if(_.f("web_watch_add_viewport_meta_tag")){var D=document.querySelector("meta[name=viewport]"),Y=document.head;Y&&!D&&(D=document.createElement("meta"),D.name="viewport",D.content="width=device-width, initial-scale=1.0, viewport-fit=cover",Y.appendChild(D))}};_.Ne=function(D){_.AE.call(this);var Y=this;this.JSC$22801_watchApi=D;this.jobId=0;this.pendingRequestId=void 0;var R=this.JSC$22801_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Teo(Y)});
this.addOnDisposeCallback(function(){Y.JSC$22801_watchApi.unsubscribeByKey(R)});
Teo(this)};
_.n(_.Ne,_.AE);var j0T=function(D){_.yc.cancelJob(D.jobId);D.pendingRequestId=void 0},Teo=function(D){j0T(D);
var Y=r1g(D.JSC$22801_watchApi.getWatchNextResponse());if(Y){var R=250,Z,t=(Z=_.A(Y,_.dvU))==null?void 0:Z.initialDelayMs;_.f("web_watch_updated_metadata_server_initial_delay")&&t&&(R=t);D.jobId=_.yc.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(Y)},R)}};
_.Ne.prototype.fetchUpdatedMetadata=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K;return _.C(function(H){switch(H.nextAddress){case 1:Y&&(Z={continuation:Y});if(!_.f("web_get_updated_metadata_fantasy_panel_continuation_params")){H.jumpTo(2);break}t=_.DH().resolve(_.b6);X="PAsports_fantasy";return H.yield(t.isVisible(X,!0),3);case 3:H.yieldResult&&(I=(W=(M=t).getUpdatePanelContinuationData)==null?void 0:(z=W.call(M,X))==null?void 0:z.updatePanelContinuationRequest)&&(Z||(Z={}),Z.clientParams=
{panelContinuationParams:{panelContinuation:I}});case 2:F=_.DH().resolve(_.h6);if(!F)return _.Nb(Error("Do")),H.return();G={};R.pendingRequestId=G;return H.yield(_.d1(F,D,Z),4);case 4:V=H.yieldResult;if(G!==R.pendingRequestId)return H.return();l=(e=V)==null?void 0:(r=e.continuation)==null?void 0:r.timedContinuationData;((U=l)==null?0:U.continuation)&&((K=l)==null?0:K.timeoutMs)&&(R.jobId=_.yc.addLowPriorityJob(function(){return R.fetchUpdatedMetadata(D,l.continuation)},l.timeoutMs));
_.V9(H)}})};
_.Ne.prototype.disposeInternal=function(){_.AE.prototype.disposeInternal.call(this);j0T(this)};var ICB=_.RT(function(D){var Y=_.F4(function(){var Z=D.data().videoId;if(D.active())Z=_.ZQ(Z),_.DH().resolve(_.Yw).resolveCommand(Z);else{var t=D.playerApi(),X=t.getAvailableAudioTracks(),M,W,z=(M=D.sourceVideoConfig().audioTracks)==null?void 0:(W=M.find(function(I){return I.isDefaultForSource}))==null?void 0:W.id;
if(X=X.find(function(I){return I.getLanguageInfo().getId()===z}))t.setAudioTrack(X,!0),t.setCompositeParam({activeVideoId:Z}),D.setActiveSourceId(Z)}}),R={};
return _.S("ytw-composite-source-video-overlay",{class:_.e7("ytwCompositeSourceVideoOverlayHost",(R.ytwCompositeSourceVideoOverlayActive=D.active,R.ytwCompositeSourceVideoOverlayInteracting=D.interacting,R)),style:_.Ap({left:function(){var Z;return((Z=D.data().topLeftCornerX)!=null?Z:0)*100+"%"},
top:function(){var Z;return((Z=D.data().topLeftCornerY)!=null?Z:0)*100+"%"},
width:function(){var Z;return((Z=D.data().width)!=null?Z:0)*100+"%"},
height:function(){var Z;return((Z=D.data().height)!=null?Z:0)*100+"%"}}),
"on:click":Y},_.S("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"pk");var FmS=_.RT(function(D){var Y=_.a(_.fB(function(){var M,W=(M=D.data().sources)==null?void 0:M.find(function(z){return z.isActive});
if(W)return W.videoId})),R=Y.next().value,Z=Y.next().value;
Y=_.a(_.ae(!1,void 0,"WI4BUb"));var t=Y.next().value,X=Y.next().value;return _.S("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.F4(function(){X(!0)}),
"on:mouseout":_.F4(function(){X(!1)})},_.S(_.T,{cond:function(){return D.data().sources},
then:function(M){return _.S(_.G6,{each:M},function(W){return _.S(ICB,{data:W,active:function(){return W.videoId===R()},
setActiveSourceId:Z,interacting:t,playerApi:D.playerApi,sourceVideoConfig:function(){return w4g(D.compositeVideoConfig(),W.videoId)}})})}}))},"qk");_.fCN=function(D){_.AE.call(this);this.JSC$22817_watchApi=D;D=_.a(_.ae({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=D.next().value;this.setCompositeVideoOverlayRenderer=D.next().value;D=_.a(_.ae({},void 0,"OlaJpc"));this.compositeVideoConfig=D.next().value;this.setCompositeVideoConfig=D.next().value;G_g(this);VHT(this)};
_.n(_.fCN,_.AE);var G_g=function(D){var Y=D.JSC$22817_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){VHT(D)});
D.addOnDisposeCallback(function(){D.JSC$22817_watchApi.unsubscribeByKey(Y)})},e7o=function(D){var Y;
return _.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$22817_watchApi.playerApi,2);Y=R.yieldResult;Y.setCompositeVideoOverlayRendererComponent(D.container);_.V9(R)})},AEy=function(D){var Y;
return _.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$22817_watchApi.playerApi,2);Y=R.yieldResult;Y.setCompositeVideoOverlayRendererComponent(void 0);_.V9(R)})},nhf=function(D){var Y,R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22817_watchApi.playerApi,2);Y=Z.yieldResult;D.container=document.createElement("div");R=_.nb(D.container,function(){return _.S(FmS,{data:D.compositeVideoOverlayRenderer,compositeVideoConfig:D.compositeVideoConfig,playerApi:Y})});
D.addOnDisposeCallback(R);_.V9(Z)})},VHT=function(D){var Y,R,Z,t,X,M,W,z;
_.C(function(I){return I.nextAddress==1?(Y=D.JSC$22817_watchApi.getPlayerResponse(),X=_.A((R=Y)==null?void 0:(Z=R.overlay)==null?void 0:(t=Z.playerControlsOverlayRenderer)==null?void 0:t.compositeVideoOverlay,j9J),z=(M=Y)==null?void 0:(W=M.playerConfig)==null?void 0:W.compositeVideoConfig,X&&D.setCompositeVideoOverlayRenderer(X),z&&D.setCompositeVideoConfig(z),X&&z?D.container?I.jumpTo(6):I.yield(nhf(D),6):rES(D)?I.yield(AEy(D),0):I.jumpTo(0)):rES(D)?I.jumpTo(0):I.yield(e7o(D),0)})},rES=function(D){var Y;
return!((Y=D.container)==null||!Y.parentElement)};
_.fCN.prototype.disposeInternal=function(){rES(this)&&AEy(this);_.AE.prototype.disposeInternal.call(this)};_.bGJ=function(D){_.AE.call(this);var Y=this;this.JSC$22823_watchApi=D;var R=this.JSC$22823_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Z=Y.JSC$22823_watchApi.getPlayerResponse();if(Z){var t,X;if(Z=_.A((t=Z.endscreen)==null?void 0:(X=t.endscreenRenderer)==null?void 0:X.hideButton,_.py)){var M;(M=Y.setEndscreenHideButton)==null||M.call(Y,Z);wBT(Y)}}});
this.addOnDisposeCallback(function(){Y.JSC$22823_watchApi.unsubscribeByKey(R)});
D=_.a(_.ae({},void 0,"ER3tqb"));this.endscreenHideButton=D.next().value;this.setEndscreenHideButton=D.next().value;$Cf(this);vho(this);oho(this)};
_.n(_.bGJ,_.AE);var wBT=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return D.creatorEndscreenHideButtonContainer?Z.return():Z.yield(D.JSC$22823_watchApi.playerApi,2);Y=Z.yieldResult;D.creatorEndscreenHideButtonContainer=document.createElement("div");_.PB(D.creatorEndscreenHideButtonContainer,!1);Y.setCreatorEndscreenHideButton(D.creatorEndscreenHideButtonContainer);R=_.nb(D.creatorEndscreenHideButtonContainer,function(){return _.S(_.JV,{data:D.endscreenHideButton,useOutlinedIcon:!0})});
D.addOnDisposeCallback(function(){R();var t;(t=Y)==null||t.setCreatorEndscreenHideButton(void 0)});
_.V9(Z)})},$Cf=function(D){var Y,R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22823_watchApi.playerApi,2);Y=Z.yieldResult;R=function(){D.creatorEndscreenHideButtonContainer&&_.PB(D.creatorEndscreenHideButtonContainer,!0)};
Y.addEventListener("endscreenelementshown",R);D.addOnDisposeCallback(function(){var t;(t=Y)==null||t.removeEventListener("endscreenelementshown",R)});
_.V9(Z)})},vho=function(D){var Y=function(){D.creatorEndscreenHideButtonContainer&&_.PB(D.creatorEndscreenHideButtonContainer,!1)},R=D.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",Y),Z=D.JSC$22823_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",Y);
D.addOnDisposeCallback(function(){D.JSC$22823_watchApi.unsubscribeByKey(R);D.JSC$22823_watchApi.unsubscribeByKey(Z)})},oho=function(D){D.JSC$22823_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(Y){var R=_.A(Y,M0G);
D.JSC$22823_watchApi.playerApi.then(function(Z){Z==null||Z.setCreatorEndscreenVisibility(!!R.hide)})});
D.addOnDisposeCallback(function(){D.JSC$22823_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Ne7=function(D){_.AE.call(this);this.JSC$22829_watchApi=D;yE7(this)};
_.n(_.Ne7,_.AE);var yE7=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22829_watchApi.playerApi,2);Y=Z.yieldResult;R=function(t){_.Dl().dispatch(_.u0({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:t}}))};
Y.addEventListener("onRetroModeChanged",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onRetroModeChanged",R)});
_.V9(Z)})};var J_=0,lL=0,kJ=0;var lCf;lCf=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.lN=function(D){_.AE.call(this);this.JSC$22842_watchApi=D;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;JEo(this)};
_.n(_.lN,_.AE);
var JEo=function(D){var Y,R,Z;_.C(function(t){if(t.nextAddress==1)return t.yield(D.JSC$22842_watchApi.playerApi,2);Y=t.yieldResult;if(D.isDisposed())return t.return();D.sessionStorage=_.o7E("yt-sleep-timer");D.sessionStorage||_.Jk(new _.AT("SessionStorage for Sleep Timer is undefined."));((R=D.sessionStorage)==null?void 0:R.get("yt-sleep-timer"))==="true"&&(UUo(),(Z=D.sessionStorage)==null||Z.remove("yt-sleep-timer"),Y.syncVolume());k_f(D,Y);UC$(D,Y);KmG(D,Y);_.V9(t)})},k_f=function(D,Y){var R=function(I){D.onSleepTimerSettingsChanged(I,
Y)},Z=function(I){D.onPlayerStateChange(I,Y)},t=function(){D.onLoopChange(Y)},X=function(){D.onCloseMiniplayer(Y)},M=function(){Nzg(Y,(0,_.DO)(),K7y(Y),D.selectedOption==="End of video",Y.getPlayerState()!==1)},W=function(){D.onSeekComplete(Y)},z=function(){_.yc.cancelJob(lL);
var I=Y.getCurrentTime()>=Y.getDuration(),F=D.selectedOption==="End of video"||D.selectedOption==="End of playlist"&&!oEf(D.playlistId);I&&F&&h77(D,Y)};
Y.addEventListener("onSleepTimerSettingsChanged",R);Y.addEventListener("onLoopChange",t);Y.addEventListener("onLoopRangeChange",t);Y.addEventListener("onStateChange",Z);Y.addEventListener("onCloseMiniplayer",X);Y.addEventListener("onSleepTimerFeatureAvailable",M);Y.addEventListener("SEEK_COMPLETE",W);Y.addEventListener("onAdStart",z);D.addOnDisposeCallback(function(){Y.removeEventListener("onSleepTimerSettingsChanged",R);Y.removeEventListener("onLoopChange",t);Y.removeEventListener("onLoopRangeChange",
t);Y.removeEventListener("onStateChange",Z);Y.removeEventListener("onCloseMiniplayer",X);Y.removeEventListener("onSleepTimerFeatureAvailable",M);Y.removeEventListener("SEEK_COMPLETE",W);Y.removeEventListener("onAdStart",z)})},UC$=function(D,Y){var R=D.JSC$22842_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Z=Y.getVideoData().video_id,t,X=(t=$UE(D.JSC$22842_watchApi))==null?void 0:t.playlistId;
D.pauseAutonavPlayback&&(Y.pauseVideo(),Y.syncVolume(),D.pauseAutonavPlayback=!1);if(D.selectedOption==="End of video"&&Z!==D.videoId)Je(D,Y);else{if(D.selectedOption==="End of playlist"){t=oEf(D.playlistId);if(X!==D.playlistId){Je(D,Y);break a}t?t&&LmE(D,Y):mCy(D,Y)}D.videoId=Z;D.playlistId=X}}});
D.addOnDisposeCallback(function(){D.JSC$22842_watchApi.unsubscribeByKey(R)})},KmG=function(D,Y){var R=_.DH().resolve(_.xZ),Z=_.rm(R,_.x8U,function(X){X&&D.selectedOption!=="Off"&&Je(D,Y)}),t=D.JSC$22842_watchApi.subscribeToActiveChanged(function(X){var M,W;
return _.C(function(z){if(z.nextAddress==1)return z.yield(_.AG().navigationFinishPromise,2);M=!_.We_();W=_.DH().resolve(_.mL).isMiniplayerActive();X||!Nh(D.selectedOption)||W||M||Je(D,Y);_.V9(z)})},!1);
R=_.rm(R,function(X){return X.entities.playlistLoopStateEntity||{}},function(X){X=X===void 0?{}:X;
var M=vEB(D.JSC$22842_watchApi);if(M){var W;((W=X[M])==null?void 0:W.state)==="PLAYLIST_LOOP_STATE_ALL"&&Nh(D.selectedOption)&&Je(D,Y)}});
D.addOnDisposeCallback(Z);D.addOnDisposeCallback(R);D.addOnDisposeCallback(t)};
_.lN.prototype.onSleepTimerSettingsChanged=function(D,Y){switch(D){case "Off":this.selectedOption!=="Off"&&Je(this,Y);break;case "End of video":case "End of playlist":qWf(this,D,Y);break;default:qWf(this,D,Y,lCf.get(D))}};
_.lN.prototype.onLoopChange=function(D){(D.getLoopVideo()||D.getLoopRange())&&Nh(this.selectedOption)&&Je(this,D)};
_.lN.prototype.onCloseMiniplayer=function(D){Nh(this.selectedOption)&&Je(this,D)};
var qWf=function(D,Y,R,Z){HG$(D,R);D.selectedOption=Y;D.videoId=R.getVideoData().video_id;D.playlistId="";var t;(t=D.sessionStorage)==null||t.set("yt-sleep-timer","true");D.adjustmentsCount++;Nzg(R,(0,_.DO)(),K7y(R),D.selectedOption==="End of video");if(D.selectedOption==="End of video")mCy(D,R),xCT(D,R);else if(D.selectedOption==="End of playlist"){xCT(D,R);var X,M;D.playlistId=(M=(X=$UE(D.JSC$22842_watchApi))==null?void 0:X.playlistId)!=null?M:"";oEf(D.playlistId)||mCy(D,R)}else Z&&(D.presetFadeSchedulerId=
_.NP(_.yc,function(){J1Z(R,15E3)},Z-15E3),D.presetPauseSchedulerId=_.NP(_.yc,function(){h77(D,R)},Z),l_Z(R,(0,_.DO)(),Z))},h77=function(D,Y){if(D.JSC$22842_watchApi.isActive()){var R={dismissDialogEndpoint:{}};
var Z={commandExecutorCommand:{commands:[R,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};R={buttonViewModel:{title:_.fX("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:R}}};Z={buttonViewModel:{title:_.fX("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Z}}};var t={dialogHeaderViewModel:{headline:{content:_.fX("SLEEP_TIMER_ENDED_TITLE")}}},
X={basicContentViewModel:{paragraphs:[{text:{content:_.fX("SLEEP_TIMER_ENDED_TEXT")}}]}};R={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:t,content:X,footer:{panelFooterViewModel:{primaryButton:R,secondaryButton:Z,shouldHideDivider:!0}}}}}}};_.DH().resolve(_.Yw).resolveCommand(R,{form:{element:D}})}else UUo();PgT(D,!1);Q0S(D,Y);Y.pauseVideo();_.tG.getInstance().getState()===2&&Y.getPlayerState()===5&&(D.pauseAutonavPlayback=!0)},Je=function(D,Y){PgT(D,!0);
Q0S(D,Y);UUo()},Q0S=function(D,Y){HG$(D,Y);
D.selectedOption="Off";D.videoId="";D.playlistId="";D.adjustmentsCount=0;var R;(R=D.sessionStorage)==null||R.remove("yt-sleep-timer");_.yc.cancelJob(J_);Y.resetSleepTimerMenuSettings()},PgT=function(D,Y){Y={timer_length_adjustment_times_during_session:D.adjustmentsCount-1,
is_session_cancelled:Y};switch(D.selectedOption){case "Off":Y.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":Y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":Y.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:Y.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",Y.option_duration_in_minutes=lCf.get(D.selectedOption)/6E4}_.bo("sleepTimerSessionFinishEvent",Y)};
_.lN.prototype.onPlayerStateChange=function(D,Y){D===1?Nzg(Y,(0,_.DO)(),K7y(Y),this.selectedOption==="End of video"):D===0?(_.yc.cancelJob(lL),Y.setVideoTimeLeft(y1B(0,0))):D===2&&_.yc.cancelJob(lL);this.selectedOption==="End of video"?D===0?h77(this,Y):D===2&&kEf(Y):this.selectedOption!=="End of playlist"||oEf(this.playlistId)||(D===0?h77(this,Y):D===2&&kEf(Y))};
_.lN.prototype.onSeekComplete=function(D){D.getPlayerState()===2&&Nzg(D,(0,_.DO)(),K7y(D),this.selectedOption==="End of video",!0)};
_.lN.prototype.onCueRangeEnter=function(D,Y){D==="sleep-timer-fade-audio"&&J1Z(Y,(Y.getDuration()-Y.getProgressState().current)*1E3)};
_.lN.prototype.onCueRangeExit=function(D,Y){D==="sleep-timer-fade-audio"&&Y.getPlayerState()!==0&&kEf(Y,!0)};
var mCy=function(D,Y){Y.addCueRange("sleep-timer-fade-audio",Y.getDuration()-15,Y.getDuration());Y.addEventListener("onCueRangeEnter",function(R){D.onCueRangeEnter(R,Y)});
Y.addEventListener("onCueRangeExit",function(R){D.onCueRangeExit(R,Y)})},LmE=function(D,Y){Y.removeCueRange("sleep-timer-fade-audio");
Y.removeEventListener("onCueRangeEnter",function(R){D.onCueRangeEnter(R,Y)});
Y.removeEventListener("onCueRangeExit",function(R){D.onCueRangeExit(R,Y)})},HG$=function(D,Y){Nh(D.selectedOption)?LmE(D,Y):(_.yc.cancelJob(D.presetPauseSchedulerId),_.yc.cancelJob(D.presetFadeSchedulerId),D.presetPauseSchedulerId=0,D.presetFadeSchedulerId=0);
kEf(Y,!0)},xCT=function(D,Y){Y.setLoop(!1);
Y.setLoopVideo(!1);Y.setLoopRange(null);(D=vEB(D.JSC$22842_watchApi))&&_.DH().resolve(_.xZ).dispatch(_.oP("playlistLoopStateEntity",D,{key:D,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ghZ=function(D){_.AE.call(this);this.JSC$22845_watchApi=D;BeS(this);pBT(this);EhE(this);D=D.getRoot();if(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-grid")D.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.DUf();_.f("web_watch_log_theater_mode_cookie_state")&&_.FW.get("wide","0")==="1"&&_.Fno("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.n(_.ghZ,_.AE);var BeS=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22845_watchApi.playerApi,2);Y=Z.yieldResult;R=function(t){dCJ(D,!!t)};
Y.addEventListener("SIZE_CLICKED",R);D.addOnDisposeCallback(function(){Y.removeEventListener("SIZE_CLICKED",R)});
_.V9(Z)})},pBT=function(D){D.JSC$22845_watchApi.registerActionHandler("yt-toggle-theater-mode",function(Y,R){dCJ(D,Y,R===void 0?!0:R)});
D.addOnDisposeCallback(function(){D.JSC$22845_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ghZ.prototype.getState=function(){return _.hp(_.Dl().getState())};
var dCJ=function(D,Y,R){R=R===void 0?!0:R;var Z,t,X,M=_.f("enable_player_resize_transition")&&!!D.JSC$22845_watchApi.getWatchNextResponse()&&!((Z=D.JSC$22845_watchApi.getWatchNextResponse())==null?0:(t=Z.contents)==null?0:(X=t.twoColumnWatchNextResults)==null?0:X.conversationBar);_.UCt(function(){_.Dl().dispatch(_.u0({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:Y}}));_.f("theater_mode_scroll_to_top_killswitch")||D.JSC$22845_watchApi.scrollWatchTo(0,!1);_.t4()&&_.f("external_fullscreen")&&_.s7(document.documentElement);
EhE(D);R&&_.GZ("wide",Y?"1":"0",-1);_.CX(D.JSC$22845_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);D.JSC$22845_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:Y});Y&&_.DUf()},{shouldWrap:M})},EhE=function(D){var Y;
_.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$22845_watchApi.playerApi,2);Y=R.yieldResult;Y.setSizeStyle(!0,D.getState());_.V9(R)})};var cEg=function(D){_.AE.call(this);var Y=this;this.playerApi=D;this.timeToPanelSyncKeyMap={};var R;if(D==null?0:(R=D.isReady)==null?0:R.call(D)){R=_.rm(_.DH().resolve(_.xZ),function(t){return t.entities.timedMarkersListSyncEntity||{}},function(t,X){t=t===void 0?{}:t;
X=X===void 0?{}:X;for(var M=_.a(Object.keys(X)),W=M.next();!W.done;W=M.next())W=W.value,t[W]!==X[W]&&iGB(Y,X[W]);X=_.a(Object.keys(t));for(M=X.next();!M.done;M=X.next())M=M.value,W=t[M],Y.timeToPanelSyncKeyMap[M]&&OGT(Y,W)});
this.addOnDisposeCallback(R);var Z=function(t){Y.onCueRangeEnter(t)};
D.addEventListener("onCueRangeEnter",Z);this.addOnDisposeCallback(function(){var t;(t=D.removeEventListener)==null||t.call(D,"onCueRangeEnter",Z)})}};
_.n(cEg,_.AE);
var OGT=function(D,Y){var R,Z;if((R=D.playerApi)==null?0:(Z=R.isReady)==null?0:Z.call(R)){var t;if((R=Y==null?void 0:(t=Y.timedListData)==null?void 0:t.sections)&&Y!=null&&Y.key)for(t=_.a(R),R=t.next();!R.done;R=t.next())if(R=R.value,R.timedSyncDataList&&R.sectionId)for(Z=0;Z<R.timedSyncDataList.length;Z++){var X=R.timedSyncDataList[Z];X.syncItemId&&D.playerApi.addCueRange(R.sectionId+"_"+Y.key+"_"+X.syncItemId,Number(X.videoTimeMs)/1E3,Z===R.timedSyncDataList.length-1?0x8000000000000:Number(R.timedSyncDataList[Z+
1].videoTimeMs)/1E3)}}},iGB=function(D,Y){var R,Z;
if((R=D.playerApi)==null?0:(Z=R.isReady)==null?0:Z.call(R)){var t;if((R=Y==null?void 0:(t=Y.timedListData)==null?void 0:t.sections)&&Y!=null&&Y.key)for(t=_.a(R),R=t.next();!R.done;R=t.next())if(R=R.value,R.timedSyncDataList&&R.sectionId){Z=_.a(R.timedSyncDataList);for(var X=Z.next();!X.done;X=Z.next())X=X.value,X.syncItemId&&D.playerApi.removeCueRange(R.sectionId+"_"+Y.key+"_"+X.syncItemId)}}};
cEg.prototype.onCueRangeEnter=function(D){for(var Y=_.a(Object.keys(this.timeToPanelSyncKeyMap)),R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=_.a(D.split("_"+R+"_")),t=Z.next().value;Z=Z.next().value;if(t&&Z){D=_.DH().resolve(_.xZ);Y=this.timeToPanelSyncKeyMap[R];var X=_.oXi(D.getState(),Y);R=Dag(R,t,Z);if(R===-1)break;R={activeSyncId:Z,activeItemIndex:R,activeSectionInfo:{sectionIdentifier:t}};X?D.dispatch(_.k6("markersEngagementPanelSyncEntity",Y,R)):D.dispatch(_.oP("markersEngagementPanelSyncEntity",
Y,Object.assign({},{key:Y},R)));break}}};
var Dag=function(D,Y,R){var Z=_.DH().resolve(_.xZ),t,X;D=(t=gnZ(Z.getState(),D))==null?void 0:(X=t.timedListData)==null?void 0:X.sections;if(!D)return-1;t=0;X=_.a(D);for(D=X.next();!D.done;D=X.next()){D=D.value;Z=D.timedSyncDataList||[];if(D.sectionId===Y)return Y=Z.findIndex(function(M){return M.syncItemId===R}),Y===-1?Y:t+Y;
t+=Z.length}return-1};_.Z4T=function(D){_.AE.call(this);var Y=this;this.JSC$22858_watchApi=D;this.unresolvedCommands=[];this.JSC$22858_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(R){YUB(Y,R)});
this.addOnDisposeCallback(function(){Y.JSC$22858_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Rpf(this)};
_.n(_.Z4T,_.AE);var Rpf=function(D){var Y;_.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$22858_watchApi.playerApi,2);Y=R.yieldResult;if(D.isDisposed())return R.return();D.timedSyncObserver=new cEg(Y);D.unresolvedCommands.length&&(D.unresolvedCommands.forEach(function(Z){return YUB(D,Z)}),D.unresolvedCommands=[]);
_.WB(D,D.timedSyncObserver);_.V9(R)})},YUB=function(D,Y){if(D.timedSyncObserver){var R=_.A(Y,WhZ);
if(R&&R.timedSyncEntityKey&&R.panelSyncEntityKey){D=D.timedSyncObserver;Y=R.timedSyncEntityKey;var Z=R.panelSyncEntityKey;R=!!R.isEnabled;R=R===void 0?!0:R;var t=_.DH().resolve(_.xZ);t=gnZ(t.getState(),Y);R?D.timeToPanelSyncKeyMap[Y]||(D.timeToPanelSyncKeyMap[Y]=Z,OGT(D,t)):(delete D.timeToPanelSyncKeyMap[Y],iGB(D,t))}}else D.unresolvedCommands.push(Y)};var tiS=_.RT(function(D){var Y=D.data,R=D.maybeLogSmartSkipClientData,Z=null,t=null,X=_.f("web_enable_auto_focus_for_timely_action_button"),M=function(){Z=document.activeElement},W=function(){Y().smartSkipMetadata&&(Z=document.activeElement,_.rdb(function(){return t}))},z=function(F){if(Y().smartSkipMetadata&&(!F||F.key!=="Enter")){Z&&Z.isConnected&&(_.rdb(function(){return Z}),Z=null);
var G;(G=t)==null||G.blur()}};
D=_.F4(function(){R==null||R(!0,Y());return!1});
var I=_.tp(_.mp(function(){return Y().rendererContext},{onTap:function(F,G){G({disableClickTracking:!0})}}),_.Zq({visibilityCallback:function(F){if(X)F?t&&Y().smartSkipMetadata&&(W(),document.addEventListener("focusin",M)):(document.removeEventListener("focusin",M),z());
else if(F){F=_.hx(Y().rendererContext);var G=Number(Y().maxVisibleDurationMilliseconds),V,e=(V=_.A(Y().rendererContext,_.ny))==null?void 0:V.label;F&&G&&e&&(V={label:e,command:F,durationMs:G},_.DH().resolve(_.bO).enqueue(V))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.rf(function(){if(X){var F;if((t=(F=I.value)==null?void 0:F.querySelector("button"))&&Y().smartSkipMetadata){var G;(G=I.value)==null||G.addEventListener("keydown",z)}}});
_.w2(function(){X&&(t&&Y().smartSkipMetadata&&t.removeEventListener("keydown",z),document.removeEventListener("focusin",M),z())});
return _.S("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:I,"on:click":D},_.S(_.vK,{data:function(){return Y().content}},{buttonViewModel:_.TV}))},"rk");var seG=_.RT(function(D){var Y=D.data,R=D.playerApi,Z=_.DH().resolve(_.wob);D=_.a(_.fB(function(){Y()}));
var t=D.next().value,X=D.next().value,M=function(){return L7f(Y(),t())},W=function(I,F){var G,V,e=(G=_.A(F==null?void 0:F.rendererContext,_.rs))==null?void 0:(V=G.loggingDirectives)==null?void 0:V.trackingParams;
if((F=F==null?void 0:F.smartSkipMetadata)&&F.loggingData&&(V=F.loggingData,F=V.algorithmId,G=V.startMilliseconds,V=V.endMilliseconds,F&&G!==void 0&&V!==void 0)){var r,l;I={smartSkipData:Object.assign({},{versionName:F,startMediaTimeMs:G,endMediaTimeMs:V},I&&{userInteractionMediaTimeMs:(Math.floor(((r=_.sm())==null?void 0:(l=r.getPlayer())==null?void 0:l.getCurrentTime())||0)*1E3).toString()})};r=_.K2();var U;e&&(U=_.oT(e));r&&U&&_.O7(r,U,I)}},z=function(I,F){var G=L7f(Y(),I);
if(G){var V=_.A(G,UO),e;if(e=F)e=R(),G=_.A(G,UO),e=G!=null&&G.smartSkipMetadata?!(e==null?0:e.isSameMarkerTypeVisible((G==null?void 0:G.smartSkipMetadata.markerKey)||"")):!0;if(e){var r,l;(V==null?0:(r=V.smartSkipMetadata)==null?0:(l=r.loggingData)==null?0:l.isCounterfactual)||(W(!1,V),X(I))}else F||t()!==I||X(void 0)}};
_.r2(function(){var I=Y().timelyActions;if(I){I=_.a(I);for(var F=I.next();!F.done;F=I.next()){F=_.A(F.value,UO);var G=void 0;(G=F)!=null&&G.cueRangeId&&Z.timelyActionsMap.set(F.cueRangeId,z)}_.w2(function(){Z.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.S("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.S(_.vK,{data:M},{timelyActionViewModel:function(I){return _.S(tiS,{data:I.data,maybeLogSmartSkipClientData:function(){W(!0,_.A(M(),UO))}})}}))},"sk");_.uDT=function(D){_.AE.call(this);this.JSC$22870_watchApi=D;D=_.a(_.ae({},void 0,"UN7k5e"));this.timelyActionsOverlay=D.next().value;this.setTimelyActionsOverlay=D.next().value;X_S(this)};
_.n(_.uDT,_.AE);var X_S=function(D){var Y,R,Z,t;_.C(function(X){if(X.nextAddress==1)return aeB(D),Miy(D),D.timelyActionsContainer=document.createElement("div"),X.yield(D.JSC$22870_watchApi.playerApi,2);Y=X.yieldResult;(Z=(R=Y).insertTimelyActionUi)==null||Z.call(R,D.timelyActionsContainer);t=_.nb(D.timelyActionsContainer,function(){return _.S(seG,{data:D.timelyActionsOverlay,playerApi:Y})});
D.addOnDisposeCallback(t);_.V9(X)})},Miy=function(D){var Y=D.JSC$22870_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aeB(D)});
D.addOnDisposeCallback(function(){D.JSC$22870_watchApi.unsubscribeByKey(Y)})},aeB=function(D){var Y=D.JSC$22870_watchApi.getWatchNextResponse();
if(Y){var R,Z;if(Y=_.A((R=Y.playerOverlays)==null?void 0:(Z=R.playerOverlayRenderer)==null?void 0:Z.timelyActionsOverlayViewModel,zKo)){var t;(t=D.setTimelyActionsOverlay)==null||t.call(D,Y)}}};_.Wg7=function(D){_.AE.call(this);this.JSC$22874_watchApi=D;CMT(this)};
_.n(_.Wg7,_.AE);var CMT=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22874_watchApi.playerApi,2);Y=Z.yieldResult;R=function(t){_.GD.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.A(t,_.FXK)},popupType:"TOAST"}})};
Y.addEventListener("onYtShowToast",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onYtShowToast",R)});
_.V9(Z)})};var zpf,jeT,feo,SUJ,T2g,Vio,Fgo,Gky,epZ,AtE;zpf=!1;_.IeN=function(D){_.AE.call(this);this.JSC$22877_watchApi=D;this.fullscreen=this.theater=!1;SUJ(this);T2g(this);jeT(this)};
_.n(_.IeN,_.AE);jeT=function(D){var Y,R,Z;_.C(function(t){if(t.nextAddress==1)return t.yield(D.JSC$22877_watchApi.playerApi,2);Y=t.yieldResult;if(D.isDisposed())return t.return();R=D.JSC$22877_watchApi.getElement("CINEMATICS");if(!R)return t.return();D.JSC$22877_cinematicController=new _.uL(R,Y);_.WB(D,D.JSC$22877_cinematicController);_.me0(D.JSC$22877_cinematicController);Fgo(D,_.FTM());Z=D.JSC$22877_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(X){Gky(D,X)});
D.addOnDisposeCallback(function(){D.JSC$22877_watchApi.unsubscribeByKey(Z)});
Vio(D);Gky(D,D.JSC$22877_cinematicController.isAllowed());_.f("web_cinematic_manager_redux_killswitch")?_.kA(D,D.fullscreen,D.theater):feo(D);epZ(D);_.V9(t)})};
feo=function(D){D.fullscreen=_.LB(_.Dl().getState());D.theater=_.hp(_.Dl().getState());_.kA(D,D.fullscreen,D.theater);var Y=_.rm(_.Dl(),_.LB,function(Z){D.fullscreen=Z;_.kA(D,D.fullscreen,D.theater)}),R=_.rm(_.Dl(),_.hp,function(Z){D.theater=Z;
_.kA(D,D.fullscreen,D.theater)});
D.addOnDisposeCallback(Y);D.addOnDisposeCallback(R)};
SUJ=function(D){var Y=D.JSC$22877_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vio(D)});
D.addOnDisposeCallback(function(){D.JSC$22877_watchApi.unsubscribeByKey(Y)})};
T2g=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22877_watchApi.playerApi,2);Y=Z.yieldResult;R=function(t){Fgo(D,t)};
Y.addEventListener("cinematicSettingsToggleChange",R);D.addOnDisposeCallback(function(){Y.removeEventListener("cinematicSettingsToggleChange",R)});
_.V9(Z)})};
Vio=function(D){var Y=D.JSC$22877_watchApi.getWatchNextResponse(),R;Y=_.A(Y==null?void 0:(R=Y.pageVisualEffects)==null?void 0:R[0],_.lw);var Z;(Z=D.JSC$22877_cinematicController)==null||_.HEI(Z,Y)};
Fgo=function(D,Y){var R;(R=D.JSC$22877_cinematicController)==null||_.qp9(R,Y);AtE(D)};
Gky=function(D,Y){var R;_.C(function(Z){if(Z.nextAddress==1)return _.f("kevlar_watch_cinematics_invisible")&&(Y=!1),Z.yield(D.JSC$22877_watchApi.playerApi,2);R=Z.yieldResult;R.updateCinematicSettings(Y);AtE(D);_.V9(Z)})};
epZ=function(D){var Y=_.nX();if(_.f("kevlar_measure_ambient_mode_idle")&&!Y.getFlag(192)&&!zpf){zpf=!0;var R=_.Ak(_.yc,function(){_.DH().resolve(_.$yh).start(1E4)},5E3);
D.addOnDisposeCallback(function(){_.yc.cancelJob(R);_.DH().resolve(_.$yh).stop()})}};
_.kA=function(D,Y,R){D.fullscreen=Y;D.theater=R;var Z;(Z=D.JSC$22877_cinematicController)==null||Z.setFullscreen(D.fullscreen,D.theater);if(_.f("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(D.theater||D.fullscreen){var t;(t=D.JSC$22877_cinematicController)==null||_.xeb(t)}else if((D=D.JSC$22877_cinematicController)!=null){var X;(X=D.currentCinematicEffect)==null||X.pause()}};
AtE=function(D){if(_.f("web_cinematic_theater_mode")||_.f("web_cinematic_fullscreen")){var Y;D.JSC$22877_watchApi.getRoot().toggleCinematicsActive(!((Y=D.JSC$22877_cinematicController)==null||!Y.isEnabled()))}};_.$ag=function(D){_.AE.call(this);var Y=this;this.JSC$22880_watchApi=D;this.commentsReady=!1;this.setCommentsJobId=0;D=_.rm(_.Dl(),_.ow,function(){ndE(Y)});
this.addOnDisposeCallback(D);var R=this.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rtf(Y)}),Z=this.JSC$22880_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){rtf(Y)});
this.addOnDisposeCallback(function(){Y.JSC$22880_watchApi.unsubscribeByKey(R);Y.JSC$22880_watchApi.unsubscribeByKey(Z)});
var t=function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&w_E(Y,"false")};
this.JSC$22880_watchApi.getRoot().addEventListener("yt-page-data-will-update",t);this.addOnDisposeCallback(function(){Y.JSC$22880_watchApi.getRoot().removeEventListener("yt-page-data-will-update",t)});
rtf(this)};
_.n(_.$ag,_.AE);var rtf=function(D){D.commentsReady=!1;_.yc.cancelJob(D.setCommentsJobId);D.setCommentsJobId=_.Ak(_.yc,function(){ndE(D)},1E3)},ndE=function(D){if(!D.commentsReady){_.KX("cmi");
_.yc.cancelJob(D.setCommentsJobId);var Y,R,Z,t,X=(Y=D.JSC$22880_watchApi.getWatchNextResponse())==null?void 0:(R=Y.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(t=Z.results)==null?void 0:t.results.contents;Y=void 0;if(X&&X.length)for(X=_.a(X),R=X.next();!R.done;R=X.next())if(R=R.value,t=Z=void 0,((Z=R)==null?void 0:(t=Z.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section"){_.f("web_watch_provide_undefined_comments")?Y=R.itemSectionRenderer:D.JSC$22880_watchApi.provideRenderingData("COMMENTS",
R.itemSectionRenderer);w_E(D,"true");break}_.f("web_watch_provide_undefined_comments")&&D.JSC$22880_watchApi.provideRenderingData("COMMENTS",Y);D.commentsReady=!0;D.JSC$22880_watchApi.dispatchEvent("yt-watch-comments-ready")}},w_E=function(D,Y){var R;
(R=D.JSC$22880_watchApi.getElement("COMMENTS"))==null||R.setAttribute("canScheduleJobs",Y)};_.ytB=function(D){_.AE.call(this);var Y=this;this.JSC$22883_watchApi=D;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.f("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.f("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.f("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.ZH("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)vdo(this);
else{var R=this.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Up(Y);KE(Y)}),Z=this.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){he(Y);
KE(Y)});
this.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"&&_.f("swatcheroo_pbs_load_grid")&&(odZ(this),b4$(this));this.addOnDisposeCallback(function(){Y.JSC$22883_watchApi.unsubscribeByKey(R);Y.JSC$22883_watchApi.unsubscribeByKey(Z);_.yc.cancelJob(Y.provideRichGridJobId)});
Up(this);he(this)}};
_.n(_.ytB,_.AE);var vdo=function(D){var Y=D.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){D.providePlayerJobId=_.$c(_.yc,function(){Up(D);KE(D)},D.provideAllDataDelayMs)}),R=D.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){D.provideWatchNextJobId=_.$c(_.yc,function(){he(D);
KE(D)},D.provideAllDataDelayMs)}),Z=D.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){D.provideWatchNextJobId=_.$c(_.yc,function(){he(D);
KE(D)},D.provideAllDataDelayMs)});
D.JSC$22883_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ak(_.yc,function(){Up(D);he(D);KE(D)},100)});
D.JSC$22883_watchApi.addPageDisposeJob(function(){_.yc.cancelJob(D.provideWatchNextJobId);_.yc.cancelJob(D.providePlayerJobId)});
D.addOnDisposeCallback(function(){D.JSC$22883_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");D.JSC$22883_watchApi.unsubscribeByKey(Y);D.JSC$22883_watchApi.unsubscribeByKey(R);D.JSC$22883_watchApi.unsubscribeByKey(Z);_.yc.cancelJob(D.providePlayerJobId);_.yc.cancelJob(D.provideWatchNextJobId)});
Up(D);he(D)},Up=function(D){var Y=D.JSC$22883_watchApi.getPlayerResponse(),R,Z,t=(Z=Y==null?void 0:(R=Y.playabilityStatus)==null?void 0:R.messageRenderers)!=null?Z:[],X,M;
Y=(M=Y==null?void 0:(X=Y.playabilityStatus)==null?void 0:X.messages)!=null?M:[];X=_.a(Y);for(M=X.next();!M.done;M=X.next())t.push({alertRenderer:{text:_.i0(M.value),type:"WARNING"}});D.JSC$22883_watchApi.provideRenderingData("ALERTS",t)},he=function(D){var Y=[],R,Z,t,X=D.JSC$22883_watchApi.getWatchNextResponse(),M,W,z,I,F=X==null?void 0:(M=X.contents)==null?void 0:(W=M.twoColumnWatchNextResults)==null?void 0:(z=W.results)==null?void 0:(I=z.results)==null?void 0:I.contents;
if(F)for(M=_.a(F),W=M.next();!W.done;W=M.next())if(W=W.value,W.videoPrimaryInfoRenderer)var G=W;else if(W.videoSecondaryInfoRenderer){var V=W;I=z=void 0;W=Object.assign({},(z=W.videoSecondaryInfoRenderer)==null?void 0:(I=z.metadataRowContainer)==null?void 0:I.metadataRowContainerRenderer);if(W.rows&&W.collapsedItemCount!==void 0){W.rows=W.rows.slice(0,W.collapsedItemCount).filter(function(YK){return!!YK.richMetadataRowRenderer});
W.collapsedItemCount=W.rows.length;var e={metadataRowContainerRenderer:W}}}else if(W.merchandiseShelfRenderer)var r=W;else if(W.ticketShelfRenderer)var l=W;else if(W.expandableMetadataRenderer)var U=W;else if(W.itemSectionRenderer)if(z=W.itemSectionRenderer.contents,I=void 0,D.directlyProvideComments&&((I=W.itemSectionRenderer)==null?void 0:I.sectionIdentifier)==="comment-item-section")_.KX("cmi"),D.JSC$22883_watchApi.provideRenderingData("COMMENTS",W.itemSectionRenderer);else if(z)for(W=_.a(z),z=
W.next();!z.done;z=W.next())if(z=z.value,z.commentsEntryPointHeaderRenderer)var K=z;else if(z.clarificationRenderer||z.infoPanelContainerRenderer||z.infoPanelContentRenderer||z.emergencyOneboxRenderer){Y.push(z);var H=H||!!V}else z.limitedStateMessageRenderer?Z=z:z.videoMetadataCarouselViewModel&&(t=z);if(_.f("web_watch_merch_in_sd_when_ticket_shelf_present")&&r&&l){var c=r;r=void 0}if(D.provideWatchNextSecondaryResults){var Q,E,B;D.JSC$22883_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
X==null?void 0:(Q=X.contents)==null?void 0:(E=Q.twoColumnWatchNextResults)==null?void 0:(B=E.secondaryResults)==null?void 0:B.secondaryResults)}if(D.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"){var O,Wo;D.JSC$22883_watchApi.provideRenderingData("LIVE_CHAT",X==null?void 0:(O=X.contents)==null?void 0:(Wo=O.twoColumnWatchNextResults)==null?void 0:Wo.conversationBar)}var Sb,VU,AS,nM;(Q=X==null?void 0:(Sb=X.contents)==null?void 0:(VU=Sb.twoColumnWatchNextResults)==null?void 0:(AS=VU.secondaryResults)==
null?void 0:(nM=AS.secondaryResults)==null?void 0:nM.offerModule)&&(Q.donationShelfRenderer||Q.donationUnavailableRenderer)&&D.JSC$22883_watchApi.getRoot().is!=="ytd-watch-grid"&&(R=Q);Sb=D.JSC$22883_watchApi.getPlayerResponse();if(!Sb||!_.vHU(Sb.playabilityStatus,X==null?void 0:X.playerOverlays)){var Ho;if(X==null?0:(Ho=X.contents)==null?0:Ho.singleColumnWatchNextResults){var KM,Xb;var kE=X==null?void 0:(KM=X.contents.singleColumnWatchNextResults.results)==null?void 0:(Xb=KM.results)==null?void 0:
Xb.contents}else{var SD,co,GE,TE;Ho=!!(F==null?0:(SD=F[0])==null?0:(co=SD.itemSectionRenderer)==null?0:(GE=co.contents)==null?0:(TE=GE[0])==null?0:TE.backgroundPromoRenderer);var yV,vu;SD=!!(X==null?0:(yV=X.contents)==null?0:(vu=yV.twoColumnWatchNextResults)==null?0:vu.secondaryResults);Ho&&!SD&&(kE=F)}}F=Y[0];yV=Y[1];H&&Y.length===1&&(yV=F,F=void 0);D.JSC$22883_watchApi.provideRenderingData("PRIMARY_INFO",G);D.JSC$22883_watchApi.provideRenderingData("SECONDARY_INFO",V);D.JSC$22883_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
K);D.JSC$22883_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",t);D.JSC$22883_watchApi.provideRenderingData("CLARIFICATION",F);D.JSC$22883_watchApi.provideRenderingData("RICH_METADATA",e);D.JSC$22883_watchApi.provideRenderingData("MERCH_SHELF",r);_.f("web_watch_merch_in_sd_when_ticket_shelf_present")&&D.JSC$22883_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",c);D.JSC$22883_watchApi.provideRenderingData("TICKET_SHELF",l);D.JSC$22883_watchApi.provideRenderingData("LIMITED_STATE",Z);D.JSC$22883_watchApi.getRoot().is!==
"ytd-watch-grid"&&D.JSC$22883_watchApi.provideRenderingData("DONATION_SHELF",R);D.JSC$22883_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",kE);D.JSC$22883_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",yV);D.JSC$22883_watchApi.provideRenderingData("EXPANDABLE_METADATA",U);if(D.swatcherooProvideAllDataOnScheduledJob){var dz,sy,D_,fL,zT,eD;G=X==null?void 0:(dz=X.contents)==null?void 0:(sy=dz.twoColumnWatchNextResults)==null?void 0:(D_=sy.secondaryResults)==null?void 0:(fL=D_.secondaryResults)==
null?void 0:(zT=fL.results)==null?void 0:(eD=zT[0])==null?void 0:eD.richGridRenderer;D.JSC$22883_watchApi.provideRenderingData("RICH_GRID_RENDERER",G)}};
_.ytB.prototype.hasCompanionAds=function(D){var Y,R;return(R=D==null?void 0:(Y=D.adPlacements)==null?void 0:Y.some(function(Z){var t,X,M,W;return(Z==null?void 0:(t=Z.adPlacementRenderer)==null?void 0:(X=t.renderer)==null?void 0:X.actionCompanionAdRenderer)||(Z==null?void 0:(M=Z.adPlacementRenderer)==null?void 0:(W=M.renderer)==null?void 0:W.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?R:!1};
var KE=function(D){if(!_.f("swaterdoo_ps_wn_handle_ks")){D.swatcherooProvideAllDataOnScheduledJob||b4$(D,3E3);var Y=D.JSC$22883_watchApi.getPlayerResponse(),R,Z,t,X,M,W=(R=D.JSC$22883_watchApi.getWatchNextResponse())==null?void 0:(Z=R.contents)==null?void 0:(t=Z.twoColumnWatchNextResults)==null?void 0:(X=t.secondaryResults)==null?void 0:(M=X.secondaryResults)==null?void 0:M.offerModule;Y=D.hasCompanionAds(Y);var z,I;R=(W==null?void 0:(z=W.tvfilmOfferModuleRenderer)==null?void 0:z.clientShouldSuppressIfCompanionAdDisplayed)||
(W==null?void 0:(I=W.unlimitedOfferModuleRenderer)==null?void 0:I.suppressIfCompanionAds);z=Y&&R;D.JSC$22883_watchApi.getRoot().is==="ytd-watch-grid"&&D.JSC$22883_watchApi.provideRenderingData("OFFER_MODULE",z?void 0:W)}},b4$=function(D,Y){_.f("swatcheroo_pbs_load_grid")&&(D.provideRichGridJobId&&_.yc.cancelJob(D.provideRichGridJobId),D.provideRichGridJobId=_.$c(_.yc,function(){D.provideRichGridJobId=0;
var R,Z,t,X,M,W,z,I=(R=D.JSC$22883_watchApi.getWatchNextResponse())==null?void 0:(Z=R.contents)==null?void 0:(t=Z.twoColumnWatchNextResults)==null?void 0:(X=t.secondaryResults)==null?void 0:(M=X.secondaryResults)==null?void 0:(W=M.results)==null?void 0:(z=W[0])==null?void 0:z.richGridRenderer;I&&D.JSC$22883_watchApi.provideRenderingData("RICH_GRID_RENDERER",I)},Y))},odZ=function(D){var Y,R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22883_watchApi.playerApi,2);Y=Z.yieldResult;R=function(){D.onPlaybackStart()};
Y.addEventListener("onPlaybackStartExternal",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onPlaybackStartExternal",R)});
_.V9(Z)})};
_.ytB.prototype.onPlaybackStart=function(){b4$(this)};_.leS=function(D){_.AE.call(this);var Y=this;this.JSC$22893_watchApi=D;D.playerApi.then(function(R){Y.player=R});
this.gestures=new _.zu(this.JSC$22893_watchApi.getRoot(),D.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.d$S(_.Dl().getState())&&_.ow(_.Dl().getState())<=0)if(_.LB(_.Dl().getState())){var R;(R=Y.player)==null||R.toggleFullscreen()}else _.CX(Y.JSC$22893_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
N2S(this)};
_.n(_.leS,_.AE);var N2S=function(D){var Y=_.rm(_.Dl(),_.LB,function(R){D.onFullscreenChanged(R)});
D.addOnDisposeCallback(Y);Y=_.rm(_.Dl(),_.ow,function(R){D.gestures&&(R>0?D.gestures.detach():D.gestures.attach())});
D.addOnDisposeCallback(Y)};
_.leS.prototype.onFullscreenChanged=function(D){this.gestures&&this.gestures.update(D)};_.kkN=function(D){_.AE.call(this);var Y=this;this.JSC$22896_watchApi=D;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(D.subscribeToActiveChanged(function(R){Y.onActiveChanged(R)}));
JtB(this)};
_.n(_.kkN,_.AE);var UaB=function(D){if(_.f("swatcheroo_page_dispose_all_watch_data"))D.pageDisposalDataTypes=Object.values(YWJ).filter(function(R){return R!=="PLAYLIST"});
else if(_.f("swatcheroo_page_dispose_rich_grid")){var Y;(Y=D.pageDisposalDataTypes)==null||Y.push("RICH_GRID_RENDERER")}},JtB=function(D){_.f("swatcheroo_enable_ghost_cards")&&(UaB(D),D.JSC$22896_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.yc.cancelJob(D.clearDataJobId);
D.clearDataJobId=0}),D.runPageDisposeJob=function(){var Y=_.DH().resolve(_.Z4).getDestinationPageType()==="watch";
D.clearDataJobId=_.$c(_.yc,D.runClearDataJob,Y?0:_.ZH("web_watch_delay_page_dispose_ms",1E4))},D.runClearDataJob=function(){KgT(D)},D.runOnYtNavigateAwayFinish=function(){D.clearDataJobId&&(_.yc.cancelJob(D.clearDataJobId),D.clearDataJobId=0,KgT(D))},document.addEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish),D.JSC$22896_watchApi.addPageDisposeJob(D.runPageDisposeJob),D.addOnDisposeCallback(function(){D.JSC$22896_watchApi.removePageDisposeJob(D.runPageDisposeJob);
D.JSC$22896_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish)}))},KgT=function(D){D.pageDisposalDataTypes.forEach(function(Y){D.JSC$22896_watchApi.provideRenderingData(Y,void 0)});
D.clearDataJobId=0};
_.kkN.prototype.onActiveChanged=function(D){D&&((D=document.querySelector("#watch-page-skeleton"))&&_.F_(D),hpS(this),document.body.removeAttribute("no-y-overflow"),_.ks("IS_SHELL_LOAD")&&_.Pcb())};
var hpS=function(D){_.C(function(Y){if(Y.nextAddress==1)return Y.yield(D.JSC$22896_watchApi.playerApi,2);_.Bl();_.V9(Y)})};var LgN;LgN=_.f("kevlar_watch_while_counterfactual")?0:.25;_.xaf=function(D){_.AE.call(this);this.JSC$22899_watchApi=D;this.JSC$22899_watchWhileEnabled=_.f("kevlar_watch_while_v2");this.pipEnabled=_.f("web_enable_pip_on_miniplayer");maf(this);qUT(this);H4$(this)};
_.n(_.xaf,_.AE);var maf=function(D){D.JSC$22899_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){PMB(D)});
D.addOnDisposeCallback(function(){D.JSC$22899_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},qUT=function(D){var Y,R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22899_watchApi.playerApi,2);Y=Z.yieldResult;R=function(){PMB(D)};
Y.addEventListener("onCollapseMiniplayer",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onCollapseMiniplayer",R)});
_.V9(Z)})},H4$=function(D){var Y=D.JSC$22899_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&Y&&D.JSC$22899_watchWhileEnabled&&(D.playerIntersectionObserver=new IntersectionObserver(function(R){D.handleIntersect(R)},{threshold:[LgN]}),D.playerIntersectionObserver.observe(Y),D.addOnDisposeCallback(function(){var R;
(R=D.playerIntersectionObserver)==null||R.disconnect()}))},PMB=function(D){var Y,R,Z;
_.C(function(t){if(t.nextAddress==1){Y=_.DH().resolve(_.Z4);R=Y.data;Z=_.k5(R.response,!1,R.playerResponse);_.AG().miniplayerButtonActivation=!0;if(D.pipEnabled)return _.AG().watchPipActivation=!0,t.jumpTo(2);_.DH().resolve(_.mL).collapse();return t.yield(_.AG().navigationFinishPromise,2)}if(t.nextAddress!=4)return _.AG().currentEndpoint=Z.watchEndpoint||null,t.yield(_.DH().resolve(_.mL).activate(D.JSC$22899_watchApi.getElement("PLAYER"),Z,R),4);_.AG().userActivation=!0;_.V9(t)})};
_.xaf.prototype.handleIntersect=function(D){Qey(this,D[D.length-1])};
var Qey=function(D,Y){D.watchWhileJobId&&_.yc.cancelJob(D.watchWhileJobId);D.watchWhileJobId=_.yc.addLowPriorityJob(function(){var R,Z;return _.C(function(t){if(t.nextAddress==1)return D.watchWhileJobId=void 0,R=_.DH().resolve(_.mL),Y.intersectionRatio>LgN?R.isMiniplayerActive()?t.yield(R.deactivate(),0):t.jumpTo(0):(Z=!R.isMiniplayerActive())?t.yield(B2B(D),5):t.jumpTo(4);t.nextAddress!=4&&(Z=t.yieldResult);if(!Z)return t.jumpTo(0);_.AG().watchWhileActivation=!0;return t.yield(p_g(D),0)})},100)},
B2B=function(D){return _.C(function(Y){return Y.nextAddress==1?_.f("kevlar_watch_while_paused")?Y.return(!0):Y.yield(D.isPlayerPlaying(),2):Y.return(Y.yieldResult)})};
_.xaf.prototype.isPlayerPlaying=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$22899_watchApi.playerApi,2);Y=R.yieldResult;return R.return(Y.getPlayerStateObject().isPlaying)})};
var p_g=function(D){var Y,R;return _.C(function(Z){Y=_.DH().resolve(_.Z4).data;R=_.k5(Y.response,!1,Y.playerResponse);_.AG().currentEndpoint=R.watchEndpoint||null;return Z.yield(_.DH().resolve(_.mL).activate(D.JSC$22899_watchApi.getElement("PLAYER"),R,Y),0)})};_.da$=function(D){_.AE.call(this);this.JSC$22903_watchApi=D;Edf(this);gd$(this)};
_.n(_.da$,_.AE);var gd$=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22903_watchApi.playerApi,2);Y=Z.yieldResult;R=function(t){var X;t.sessionData&&t.sessionData.itct&&(X=t.sessionData.itct);var M=t.watchEndpoint;if(M&&t.sessionData&&t.sessionData.autonav)M=_.Q3U(M,X);else{var W;M=_.ZQ(t.videoId,(W=t.listId)!=null?W:void 0,X)}X={endpoint:M};t.sessionData&&(X.tempData=t.sessionData);D.JSC$22903_watchApi.dispatchEvent("yt-navigate",X)};
Y.addEventListener("onPlayVideo",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onPlayVideo",R)});
_.V9(Z)})},Edf=function(D){var Y=function(R){D.onYtNavigate(R)};
D.JSC$22903_watchApi.getRoot().addEventListener("yt-navigate",Y);D.addOnDisposeCallback(function(){D.JSC$22903_watchApi.getRoot().removeEventListener("yt-navigate",Y)})};
_.da$.prototype.onYtNavigate=function(D){var Y=this,R,Z,t,X,M,W,z,I,F;return _.C(function(G){if(G.nextAddress==1){if(!((R=D.detail)==null?0:(Z=R.endpoint)==null?0:Z.watchEndpoint))return G.return();t=D.detail.endpoint.watchEndpoint;X=Y.JSC$22903_watchApi.getWatchNextResponse();W=_.A((M=X)==null?void 0:M.currentVideoEndpoint,_.Od);if(!W)return G.return();if(t.videoId!==W.videoId||t.playlistId&&t.playlistId!==W.playlistId||typeof t.startTimeSeconds!=="number")return G.jumpTo(0);D.stopPropagation();
(z=_.f("kevlar_watch_while_v2")&&!_.f("kevlar_watch_while_counterfactual"))&&_.DH().resolve(_.mL).isMiniplayerActive()||Y.JSC$22903_watchApi.scrollWatchTo(0,!0);return G.yield(Y.JSC$22903_watchApi.playerApi,3)}I=G.yieldResult;F=t.startTimeSeconds;I.seekTo(F,void 0,void 0,void 0,84);I.wakeUpControls();F<I.getDuration()&&I.playVideo();_.V9(G)})};_.O4J=function(D){_.AE.call(this);var Y=this;this.JSC$22906_watchApi=D;var R=this.JSC$22906_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){i4f(Y)});
this.addOnDisposeCallback(function(){Y.JSC$22906_watchApi.unsubscribeByKey(R)});
i4f(this)};
_.n(_.O4J,_.AE);var i4f=function(D){var Y=D.JSC$22906_watchApi.getWatchNextResponse();if(Y){var R,Z=[].concat(_.oK((R=Y==null?void 0:Y.engagementPanels)!=null?R:[]));Z.unshift.apply(Z,_.oK(ctZ(Y)));D.JSC$22906_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Z)}},DJN=function(D){var Y,R,Z,t=(Y=D.engagementPanels)==null?void 0:(R=Y.find(function(e){var r;
return((r=e.engagementPanelSectionListRenderer)==null?void 0:r.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Z=R.engagementPanelSectionListRenderer.content)==null?void 0:Z.structuredDescriptionContentRenderer,X;
if(_.A(t==null?void 0:(X=t.items)==null?void 0:X.find(function(e){return!!_.A(e,btS)}),btS))return!0;
var M,W,z,I;if(D=(((M=D.contents)==null?void 0:(W=M.twoColumnWatchNextResults)==null?void 0:(z=W.results)==null?void 0:(I=z.results)==null?void 0:I.contents)||[]).find(function(e){return e.videoPrimaryInfoRenderer})){var F,G,V;
return(((F=D.videoPrimaryInfoRenderer)==null?void 0:(G=F.videoActions)==null?void 0:(V=G.menuRenderer)==null?void 0:V.flexibleItems)||[]).some(function(e){e=_.A(e,_.VBV);if(!e)return!1;var r,l;e=(r=e.topLevelButton)==null?void 0:(l=r.buttonViewModel)==null?void 0:l.onTap;if(!e)return!1;r=_.HL(e);if(!r)return!1;var U;return((U=_.A(r,_.l$))==null?void 0:U.panelIdentifier)==="PAyouchat"})}return!1},ctZ=function(D){var Y=[];
if(!_.f("web_watch_inject_placeholder_fantasy_panel_killswitch")){var R,Z,t,X=(R=D.engagementPanels)==null?void 0:(Z=R.find(function(W){var z;return((z=W.engagementPanelSectionListRenderer)==null?void 0:z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(t=Z.engagementPanelSectionListRenderer.content)==null?void 0:t.structuredDescriptionContentRenderer,M;
_.A(X==null?void 0:(M=X.items)==null?void 0:M.find(function(W){return!!_.A(W,XuB)}),XuB)&&(R=_.z_M("PAsports_fantasy"),R.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y.push(R))}DJN(D)&&(D=_.z_M("PAyouchat"),D.engagementPanelSectionListRenderer.targetId="PAyouchat",D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y.push(D));
return Y};_.RtB=function(D){_.AE.call(this);this.JSC$22909_watchApi=D;Y3J(this)};
_.n(_.RtB,_.AE);var Y3J=function(D){D.JSC$22909_watchApi.registerActionHandler("yt-loop-command",function(Y){ZbB(D,Y)});
D.JSC$22909_watchApi.registerActionHandler("yt-repeat-chapter-command",function(Y){tjf(D,Y)});
D.addOnDisposeCallback(function(){D.JSC$22909_watchApi.unregisterActionHandler("yt-loop-command");D.JSC$22909_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ZbB=function(D,Y){var R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22909_watchApi.playerApi,2);R=Z.yieldResult;_.A(Y,apT).loop?(R.setLoopRange({startTimeMs:Number(_.A(Y,apT).startTimeMs),endTimeMs:Number(_.A(Y,apT).endTimeMs),postId:_.A(Y,apT).postId,type:"clips"}),R.playVideo()):R.setLoopRange(null);_.V9(Z)})},tjf=function(D,Y){var R,Z;
_.C(function(t){if(t.nextAddress==1)return t.yield(D.JSC$22909_watchApi.playerApi,2);R=t.yieldResult;Z=_.A(Y,SzE).repeat;Z==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(R.setLoopRange({startTimeMs:Number(_.A(Y,SzE).startTimeMs),endTimeMs:Number(_.A(Y,SzE).endTimeMs),type:"repeatChapter"}),R.playVideo()):Z==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&R.setLoopRange(null);_.V9(t)})};_.uPg=function(D){_.AE.call(this);this.JSC$22914_watchApi=D;XDy(this)};
_.n(_.uPg,_.AE);var XDy=function(D){D.JSC$22914_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(Y){a1f(D,Y)});
D.addOnDisposeCallback(function(){D.JSC$22914_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},a1f=function(D,Y){var R,Z,t,X,M,W,z,I,F,G,V;
_.C(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22914_watchApi.playerApi,2);R=e.yieldResult;if(X=(t=(Z=_.A(Y,Tby))==null?void 0:Z.highlightedMenuItemKey)!=null?t:"")(W=(M=R).highlightSettingsMenuItem)==null||W.call(M,X);if(F=(I=(z=_.A(Y,Tby))==null?void 0:z.openMenuItemKey)!=null?I:"")(V=(G=R).openSettingsMenuItem)==null||V.call(G,F);_.V9(e)})};var MjZ=_.TL("/youtube/app/watch/player_state","playerStateEntity");_.WfS=function(D){_.AE.call(this);this.JSC$22917_watchApi=D;C1Z(this)};
_.n(_.WfS,_.AE);var ztT=function(D){switch(D){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"}},C1Z=function(D){var Y,R;
_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22917_watchApi.playerApi,2);Y=Z.yieldResult;R=function(t){D.onPlayerStateChange(t)};
Y.addEventListener("onStateChange",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onStateChange",R)});
_.V9(Z)})};
_.WfS.prototype.onPlayerStateChange=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(Y.JSC$22917_watchApi.playerApi,2);R=t.yieldResult;Z=R.getVideoData().video_id;_.Og().dispatch(_.oP("playerStateEntity",MjZ,{key:MjZ,playerState:ztT(D),videoId:Z}));_.V9(t)})};_.TfJ=function(D){_.AE.call(this);var Y=this;this.JSC$22921_watchApi=D;this.enableExternalPlaylistPanelInPlayer=_.f("delhi_web_player_use_external_playlist_panel");_.DH().resolve(_.xW).setPlayer(this.JSC$22921_watchApi.getElement("PLAYER"));D=this.JSC$22921_watchApi.subscribeToActiveChanged(function(R){Y.onActiveChanged(R)});
this.addOnDisposeCallback(D);S3G(this)};
_.n(_.TfJ,_.AE);var S3G=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return D.enableExternalPlaylistPanelInPlayer?Z.yield(D.JSC$22921_watchApi.playerApi,2):Z.return();Y=Z.yieldResult;R=function(){if(D.playlistPanelElement)D.playlistPanelElement.onToggleExpanded()};
Y.addEventListener("onToggleExternalPlaylistPanel",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onToggleExternalPlaylistPanel",R)});
_.V9(Z)})};
_.TfJ.prototype.onActiveChanged=function(D){var Y=this,R=_.DH().resolve(_.xW),Z=function(){jpf(Y)};
D?(this.playlistPanelElement=this.JSC$22921_watchApi.getElement("PLAYLIST_PANEL"))?(R.setPlaylistComponent(this.playlistPanelElement),R.addEventListener("yt-playlist-data-updated",Z),this.addOnDisposeCallback(function(){R.removeEventListener("yt-playlist-data-updated",Z)}),jpf(this)):_.qJ(Error("Eo")):(R.removeEventListener("yt-playlist-data-updated",Z),R.cancelVideoSkip())};
var jpf=function(D){var Y=_.DH().resolve(_.xW);D.JSC$22921_watchApi.provideRenderingData("PLAYLIST",Y.getPlaylistData())};_.LE=function(D){_.AE.call(this);var Y=this;this.JSC$22924_watchApi=D;this.onPageScroll=function(){Y.scrollThrottle.fire();Y.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.gq(this.onThrottledScroll,200,this);_.WB(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.gq(this.onMastheadThrottledScroll,50,this);_.WB(this,this.mastheadScrollThrottle);this.animation=new _.Bi(function(R){Y.JSC$22924_watchApi.getRoot().setScrollTop(R)});
D=_.rm(_.Dl(),_.LB,function(){Y.onFullscreenChanged()});
this.addOnDisposeCallback(D);I1f(this);FfJ(this);this.onThrottledScroll()};
_.n(_.LE,_.AE);
_.LE.prototype.onFullscreenChanged=function(){var D=this,Y=this.JSC$22924_watchApi.getRoot();!this.pageScrollElement&&Y.pageScrollElement?(this.pageScrollElement=Y.pageScrollElement,Y.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){D.pageScrollElement&&D.pageScrollElement.removeEventListener("scroll",D.onPageScroll)})):this.pageScrollElement&&!Y.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var I1f=function(D){window.addEventListener("scroll",D.onPageScroll);D.addOnDisposeCallback(function(){window.removeEventListener("scroll",D.onPageScroll)})},FfJ=function(D){D.JSC$22924_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(Y){a:{var R;
if(R=D.JSC$22924_watchApi.getRoot().contains(Y)&&!D.animation.isAnimating()){R=Y.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Z,t,X=(Y==null?void 0:(Z=Y.parentElement)==null?void 0:(t=Z.parentElement)==null?void 0:t.id)==="fixed-secondary";R=!(R&&X)}if(R){if(_.f("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Z=Y.offsetTop;else for(Z=0,t=Y;t!==null;)Z+=t.offsetTop,Z-=t.scrollTop,t=t.offsetParent;t=Z;Z=t-24;Y=t+Y.offsetHeight+24;t=D.JSC$22924_watchApi.getRoot().getPageScrollingElement();
R=D.JSC$22924_watchApi.getRoot().getScrollTop();X=R+t.clientHeight-56;if(Z<R+56)Y=Z-56;else if(Y>X)Y-=t.clientHeight;else break a;D.scrollWatchTo(Math.max(0,Y),!0)}}});
D.addOnDisposeCallback(function(){D.JSC$22924_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.LE.prototype.onThrottledScroll=function(){var D=_.Dl(),Y=D.dispatch,R=this.JSC$22924_watchApi.getRoot().getScrollTop();Y.call(D,_.u0({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:R}}))};
_.LE.prototype.onMastheadThrottledScroll=function(){this.JSC$22924_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22924_watchApi.getRoot().getScrollTop())};
_.LE.prototype.scrollWatchTo=function(D,Y){(Y===void 0?0:Y)?this.animation.start(this.JSC$22924_watchApi.getRoot().getScrollTop(),Math.max(0,D),500):this.JSC$22924_watchApi.getRoot().setScrollTop(D)};_.f1S=function(D){_.AE.call(this);var Y=this;this.JSC$22927_watchApi=D;var R=this.JSC$22927_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G67(Y)}),Z=this.JSC$22927_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vj$(Y)});
this.addOnDisposeCallback(function(){Y.JSC$22927_watchApi.unsubscribeByKey(R);Y.JSC$22927_watchApi.unsubscribeByKey(Z)});
G67(this);Vj$(this)};
_.n(_.f1S,_.AE);
var G67=function(D){var Y,R,Z,t=(Z=(Y=D.JSC$22927_watchApi.getPlayerResponse())==null?void 0:(R=Y.videoDetails)==null?void 0:R.title)!=null?Z:"";D.JSC$22927_watchApi.dispatchEvent("yt-update-title",t)},Vj$=function(D){var Y,R,Z,t,X,M,W,z=(W=((M=(Y=D.JSC$22927_watchApi.getWatchNextResponse())==null?void 0:(R=Y.contents)==null?void 0:(Z=R.twoColumnWatchNextResults)==null?void 0:(t=Z.results)==null?void 0:(X=t.results)==null?void 0:X.contents)!=null?M:[]).find(function(I){return!!I.videoPrimaryInfoRenderer}))==null?
void 0:W.videoPrimaryInfoRenderer;
(Y=_.OM(z==null?void 0:z.title))&&D.JSC$22927_watchApi.dispatchEvent("yt-update-title",Y)};_.AQf=function(D){_.AE.call(this);this.JSC$22930_watchApi=D;et7(this)};
_.n(_.AQf,_.AE);var et7=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$22930_watchApi.playerApi,2);Y=Z.yieldResult;R=function(){D.onYpcContentRequest()};
Y.addEventListener("onYpcContentRequest",R);D.addOnDisposeCallback(function(){Y.removeEventListener("onYpcContentRequest",R)});
_.V9(Z)})};
_.AQf.prototype.onYpcContentRequest=function(){var D,Y,R,Z,t,X=(D=this.JSC$22930_watchApi.getWatchNextResponse())==null?void 0:(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.secondaryResults)==null?void 0:(t=Z.secondaryResults)==null?void 0:t.offerModule,M,W,z,I;D=(I=(z=(W=(M=X==null?void 0:X.episodeOfferModuleRenderer)!=null?M:X==null?void 0:X.movieOfferModuleRenderer)!=null?W:X==null?void 0:X.unlimitedOfferModuleRenderer)!=null?z:X==null?void 0:X.liveOfferModuleRenderer)!=
null?I:X==null?void 0:X.tvfilmOfferModuleRenderer;var F,G,V;X=(V=X==null?void 0:(F=X.tvfilmOfferModuleRenderer)==null?void 0:(G=F.actionButtons)==null?void 0:G.length)!=null?V:0;G=Math.max(X-1,0);var e,r,l;F=(l=D==null?void 0:(e=D.offerButton)==null?void 0:e.buttonRenderer)!=null?l:D==null?void 0:(r=D.actionButtons)==null?void 0:r[G].buttonRenderer;var U,K;(e=(K=(U=F==null?void 0:F.navigationEndpoint)!=null?U:F==null?void 0:F.serviceEndpoint)!=null?K:F==null?void 0:F.command)&&_.GD.instance.resolveCommand(e)};
}catch(e){_._DumpException(e)}
try{
var Tup,WBI,MYK;_.Cyu=function(){var D=_.y7.clone(aqK),Y;return(new _.zz(function(R,Z){D.onSuccess=function(t){_.kAr(t)?R(new MYK(t)):Z(new _.zv("Request failed, status="+_.an(t),"net.badstatus",t))};
D.onError=function(t){Z(new _.zv("Unknown request error","net.unknown",t))};
D.onTimeout=function(t){Z(new _.zv("Request timed out","net.timeout",t))};
Y=_.S$("//googleads.g.doubleclick.net/pagead/id",D)})).thenCatch(function(R){if(R instanceof _.x6){var Z;
(Z=Y)==null||Z.abort()}return _.lf(R)})};
_.zMK=function(D){a:{var Y="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Y="EMBEDDED_PLAYER_MODE_PFL");var R=D.raw_embedded_player_response;if(!R&&(D=D.embedded_player_response))try{R=JSON.parse(D)}catch(t){break a}if(R)b:for(var Z in WBI)if(WBI[Z]==R.embeddedPlayerMode){Y=WBI[Z];break b}}return Y==="EMBEDDED_PLAYER_MODE_PFL"};
_.SwE=function(){if(_.f("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("mf");if(!_.RRr())return Error("nf");var D=_.JQ("PLAYER_VARS",{});if(_.y7.get(D,"privembed",!1)=="1")return Error("of");if(_.zMK(D))return Error("pf")};
Tup=function(D){switch(D){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:_.qU(D,"unknown result type")}};
_.jDK=function(D,Y,R){Y=_.R8l[Y];R={detected:D===0,source:Y.d7y,detectionResult:Tup(D),contentCpn:R};_.bo("biscottiBasedDetection",R);_.YJE.increment(Y.d7y,D);Y.ezz!==void 0&&_.l1("CATSTAT",_.Df5(D,Y))};
_.Sl=function(D,Y){var R={};R.key=D;R.value=Y;return _.Ufo().then(function(Z){return new Promise(function(t,X){try{var M=Z.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(R);M.onsuccess=function(){t()};
M.onerror=function(){X()}}catch(W){X(W)}})})};
_.FB0=function(){var D=_.ZH("user_engagement_experiments_rate_limit_ms"),Y=IqI.get("last-user-engagement-exp-trigger-timestamp");return!Y||(0,_.DO)()>=Y+D?(IqI.set("last-user-engagement-exp-trigger-timestamp",(0,_.DO)()),!0):!1};
_.Tv=function(D,Y,R,Z,t){Y=Y===void 0?null:Y;R=R===void 0?null:R;Z=Z===void 0?null:Z;t=t===void 0?null:t;D={youThereEventType:D};R&&(D.lactThresholdMs=R.lactThresholdMs,D.mediaPosSec=R.promptDelaySec,D.lactServerRequestMs=R.lactServerRequestMs,D.triggerReason=R.triggerReason);t!=null&&(D.renderingMediaPosSec=Math.round(t));Y||(Y=_.K2());Y&&(D.clientScreenNonce=Y);Z&&(D.clientPlaybackNonce=Z);_.bo("youThere",D)};
WBI={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"};MYK=function(D){this.xhr=D};
_.zv=function(D,Y,R){_.Yn.call(this,D+", errorCode="+Y);this.errorCode=Y;this.xhr=R;this.name="PromiseAjaxError"};
_.n(_.zv,_.Yn);var aqK={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var IqI=new _.U1("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.uou=function(D){return _.u0({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:D})};
}catch(e){_._DumpException(e)}
try{
var xA,Qpf,pDB,EsZ,gsS,dJf,ObG,uWg,aHf,M$Z,ibf,Bf7,Rrf,YKB,zrB;_.P1T=function(){var D=window.location.hash;D.charAt(0)==="#"&&(D=D.charAt(1)==="!"?D.substring(2):D.substring(1));return _.PD(D)};
xA=function(D,Y,R){var Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(Y(),2);Z=t.yieldResult;R(Z,D);_.V9(t)})};
Qpf=function(){return _.C(function(D){return D.nextAddress==1?D.yield((_.SwE()!==void 0?_.lf(Error("qf")):_.Cyu()).then(function(){return 1},function(Y){if(Y.message==="Biscotti id is disabled")return 3;
_.Jk("Failed fetching bid");return 0}),2):D.return(D.yieldResult)})};
pDB=function(){var D=_.t6("OThhdjZrcGU3eXQtaGF2ZW4tZW1iZWQtcGxheWVyIzIwZQ=="),Y=_.t6("amZkN2NpZnJhbWUjMWNvNjZ6dQ==");return document.querySelector(Y+Bf7+D)?0:1};
EsZ=function(){return _.qY5(_.is)};
gsS=function(){return _.HSl()===0?0:_.xDo()};
dJf=function(){return _.E$j(_.M5$([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
ObG=function(){return _.l6l(ibf)};
_.cQB=function(D){_.C(function(Y){switch(Y.nextAddress){case 1:return Y.yield(xA("b.f_",Qpf,D),2);case 2:return Y.yield(xA("j.s_",_.yUU,D),3);case 3:return Y.yield(xA("r.s_",_.v$i,D),4);case 4:return Y.yield(xA("e.h_",ObG,D),5);case 5:if(!_.f("ab_det_sc_inj")){Y.jumpTo(6);break}return Y.yield(xA("s.i_",_.Lby,D),6);case 6:if(_.f("ab_deg_unex_thr")){Y.jumpTo(8);break}return Y.yield(xA("a.o_",_.Kby,D),8);case 8:if(_.f("ks_get_o_pp")){Y.jumpTo(10);break}return Y.yield(xA("g.o_",_.UDn,D),10);case 10:if(_.f("ks_det_gpbl")){Y.jumpTo(12);
break}return Y.yield(xA("p.i_",_.k2y,D),12);case 12:return Y.yield(xA("f.i_",_.I6o,D),14);case 14:return Y.yield(xA("a.b_",_.wHl,D),15);case 15:return Y.yield(xA("p.m_",_.V5i,D),16);case 16:if(!_.f("ab_det_el_h_v2")){Y.jumpTo(17);break}return Y.yield(xA("n.h_",dJf,D),17);case 17:return Y.yield(xA("o.p_",EsZ,D),19);case 19:return Y.yield(xA("e.i_",pDB,D),20);case 20:if(_.f("ab_det_apm"))return Y.yield(xA("o.a_",gsS,D),0);Y.jumpTo(0)}})};
_.DET=function(D,Y){D={videoId:D};Y&&(D.playlistId=Y);return D};
_.ZvB=function(){if(_.RRr()){var D=_.JQ("PLAYER_VARS",{});if(_.y7.get(D,"privembed",!1)!="1"&&!_.zMK(D)){var Y=function(){YKB=!0;"google_ad_status"in window?_.l1("DCLKSTAT",1):_.l1("DCLKSTAT",2)};
try{_.PO(_.uyU,Y)}catch(R){}Rrf.push(_.yc.addLowPriorityJob(function(){if(!(YKB||"google_ad_status"in window)){try{_.ESU(_.uyU.toString(),Y)}catch(R){}YKB=!0;_.l1("DCLKSTAT",3)}},5E3))}}};
_.t$o=function(D,Y,R){R=R===void 0?!1:R;var Z=Math.max(D.width,_.Nbo);if(_.f("kevlar_watch_feed_big_thumbs")&&D.width>=1550-_.g6()&&D.height>=800)Z-=_.hKg;else if(D.width>=_.mN){var t=_.lp7+_.J9o+_.LR;_.f("kevlar_watch_feed_big_thumbs")&&(t=_.Kh7);Z-=t}else Z-=_.lp7;Z=Math.min(Z,_.kTo);t=240;R&&(t=380);Y<.5624||(!_.f("kevlar_watch_flexy_disable_small_window_sizing")&&(D.height<630&&D.width>=657||D.height>=630&&D.width>=_.mN&&D.width<1327)?t=360:!_.f("kevlar_watch_flexy_disable_large_window_sizing")&&
D.height>=630&&D.width>=1327&&(t=480));var X=Math.min(Z*Y,D.height-(56+_.y9$+_.Ukg));X=Math.max(X,t);Y<1?Z=X/Y:D.width>=_.mN&&(Z=_.t$o(D,.5625,R).width);return new _.FL(Math.round(Z),Math.round(X))};
_.snJ=function(D){var Y=0;D.indexOf("h")!=-1&&(D=D.split("h"),Y=D[0]*60*60,D=D[1]);D.indexOf("m")!=-1&&(D=D.split("m"),Y=D[0]*60+Y,D=D[1]);D.indexOf("s")!=-1?(D=D.split("s"),Y=D[0]*1+Y):Y=D*1+Y;return Y};
_.XrJ=function(){_.ZH("service_worker_push_logged_out_prompt_watches")!=-1&&_.GM("WatchCount").then(function(D){D>=100||_.Sl("WatchCount",D+1)})};
uWg=function(D){var Y=D.externalVideoId||"";return Y?D.isShortsEligible?"https://www.youtube.com/shorts/"+Y:"https://www.youtube.com/watch?v="+Y:""};
aHf=function(D){var Y=[];D.viewCount&&Y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:D.viewCount});D.likeCount&&Y.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:D.likeCount});return Y};
M$Z=function(D){var Y,R,Z={"@context":"https://schema.org","@type":"VideoObject",description:_.OM(D.description),duration:"PT"+(D.lengthSeconds||"0")+"S",embedUrl:D.embed?D.embed.iframeUrl:"",name:_.OM(D.title),thumbnailUrl:((Y=D.thumbnail)==null?void 0:(R=Y.thumbnails)==null?void 0:R.map(function(F){return F&&F.url||""}))||[],
uploadDate:D.publishDate};_.f("mweb_video_schema_id_killswitch")||(Z["@id"]=uWg(D));Y=aHf(D);Y.length&&(Z.interactionStatistic=Y);D.category&&(Z.genre=D.category);D.ownerChannelName&&(Z.author=D.ownerChannelName);D.liveBroadcastDetails&&(Z.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:D.liveBroadcastDetails.startTimestamp,endDate:D.liveBroadcastDetails.endTimestamp}]);if(D.learningResource){D=D.learningResource;Z["@type"]=["VideoObject","LearningResource"];var t;if((t=D.learningResourceType)==
null?0:t.length)Z.learningResourceType=D.learningResourceType[0];var X;if((X=D.educationalAlignment)==null?0:X.length)Z.educationalAlignment={"@type":"AlignmentObject",targetName:D.educationalAlignment[0]};var M;if((M=D.educationalLevel)==null?0:M.length){t=D.educationalLevel[0];var W;if((W=D.educationalLevelCountry)==null?0:W.length)t+=" ("+D.educationalLevelCountry+")";Z.educationalLevel=t}var z,I;if(((z=D.learningResourceType)==null?0:z.length)&&D.learningResourceType[0]==="Problem walkthrough"&&
((I=D.problemDescriptions)==null?0:I.length))for(Z.hasPart=[],W=_.a(D.problemDescriptions),z=W.next();!z.done;z=W.next())t=z.value,z=t.problemDescriptionText,I=t.startOffset,t=t.url,z&&I!==void 0&&t&&Z.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:z,text:z,startOffset:I,url:t})}return Z};
_.CxE=function(D){return _.u0({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:D}})};
ibf=[[["ZHE5cHJpbWFyeSNxeXZ3MXl1cWE=",null,null],[null,["Y29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2hhYXBqenU4bjZvbHl0ZC10d28t","LXNjb3BlI216MTB2dzYzNWs4c3N0eWxl"],null],["ZWFkLWFkI3c3enRnYXl6cXNwZ21hc3Ro",["NXE2enNxZnB5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3k4M3Q="],null],[null,["MTJqaTdwM2h5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2x4Ync=","LXNjb3BlI3RzbTRxZ3U2cmlpOHN0eWxl"],null],[null,["cWI1c3R5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzllYmZuNGU=","LXNjb3BlI2hkeDg4OHplOThnNXN0eWxl"],null],[null,["ciN5dzN5cnA2eDlseXRkLWFkLXNsb3QtcmVuZGVyZQ=="],
null]],[["eWVyLWFkcyNyejQwYjIzZXV6M3lwbGE=",null,null]],[["I3hrMHhlcmhkZHcxcmRlc2NyaXB0aW9uLWlubmVy",null,null],[null,null,"dHp5eWZyeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI2w1eGdhMA=="],["YzVnMmxvNHlpbWFpbiM3czU=",["bnJwZmZkeXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyIzFlazJobw=="],null]]];Bf7="#";Rrf=[];YKB=!1;_.Wzo=["engagement-panel-ads"];zrB=new _.Dv("updateSentimentBarStateCommand");_.SKJ=new _.Dv("showSurveyCommand");_.Pv=new _.Dv("changeMarkersVisibilityCommand");var jng,IHf,fHo,V$B,GZT,Q2;_.TPf=function(D,Y){this.playerProvider_=D;this.actionSenderElement_=Y;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.TPf.prototype.reset=function(){jng(this);this.isUserPredictedAbsent_=!1};
jng=function(D,Y){!D.youThereData_||D.showWarningJob_||Y!==void 0&&Y||(_.Tv("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.K2(),D.youThereData_,D.clientPlaybackNonce_),_.yj());_.yc.cancelJob(D.showWarningJob_);D.showWarningJob_=0;_.yc.cancelJob(D.showBlockingWarningJob_);D.showBlockingWarningJob_=0;_.yc.cancelJob(D.pausePlaybackJob_);D.pausePlaybackJob_=0;D.youThereData_=null;D.clientPlaybackNonce_=void 0;D.inYouThereFlow_=!1};
_.Fzg=function(D,Y){var R,Z,t;_.C(function(X){if(X.nextAddress==1)return D.reset(),X.yield(D.playerProvider_().getPlayerPromise(),2);R=X.yieldResult;D.clientPlaybackNonce_=R.getVideoData().cpn;D.youThereData_=Y.configData.youThereData;if(!D.youThereData_)return X.return();if(D.youThereData_.triggerReason&&D.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.FB0())return _.Tv("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.K2(),D.youThereData_,D.clientPlaybackNonce_),X.return();Z=D.youThereData_.promptDelaySec;
t=R.getCurrentTime();D.showWarningJob_=_.yc.addLowPriorityJob(function(){return _.C(function(M){D.showWarningJob_=0;return M.yield(IHf(D),0)})},Math.max(Z-t,0)*1E3);
_.V9(X)})};
IHf=function(D){var Y,R,Z,t,X,M;return _.C(function(W){if(W.nextAddress==1)return W.yield(D.playerProvider_().getPlayerPromise(),2);if(W.nextAddress!=3)return Y=W.yieldResult,R=Y.getCurrentTime(),W.yield(GZT(D),3);Z=W.yieldResult;if(!Z||!D.youThereData_)return W.return();if(_.f("check_user_lact_at_prompt_shown_time_on_web")&&(t=parseInt(D.youThereData_.lactThresholdMs,10),_.Ro()<t))return _.Tv("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.K2(),D.youThereData_,D.clientPlaybackNonce_),W.return();if(D.youThereData_.playbackPauseDelayMs<=
0)return V$B(D),W.return();!_.f("external_fullscreen")&&(X=_.t4())&&(D.ignoreFullscreenExitUserActivity_=!0,_.yc.addLowPriorityJob(function(){D.ignoreFullscreenExitUserActivity_=!1},2E3),_.s7(X));
D.youThereData_.showToastWarningPrompt&&(Q2(D,D.youThereData_.showWarningActions),D.inYouThereFlow_=!0,_.Tv("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.K2(),D.youThereData_,D.clientPlaybackNonce_,R),_.Tv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.K2(),D.youThereData_,D.clientPlaybackNonce_,R));M=0;D.youThereData_.blockingPromptDelayMs&&(M=D.youThereData_.blockingPromptDelayMs);D.showBlockingWarningJob_=_.yc.addLowPriorityJob(function(){return _.C(function(z){D.showBlockingWarningJob_=0;return z.yield(fHo(D),
0)})},M);
_.V9(W)})};
fHo=function(D){var Y,R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield(GZT(D),2);Y=t.yieldResult;if(!D.youThereData_)return t.return();Y&&(D.youThereData_.showBlockingWarningAction&&(_.Tv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.K2(),D.youThereData_,D.clientPlaybackNonce_),(R=_.A(D.youThereData_.showBlockingWarningAction,_.je))?Q2(D,R.commands):Q2(D,[D.youThereData_.showBlockingWarningAction]),D.inYouThereFlow_=!0),Z=D.youThereData_.playbackPauseDelayMs,D.pausePlaybackJob_=
_.yc.addLowPriorityJob(function(){return _.C(function(X){D.pausePlaybackJob_=0;return X.yield(V$B(D),0)})},Z));
_.V9(t)})};
V$B=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(GZT(D),2);Y=R.yieldResult;if(!D.youThereData_)return R.return();Y&&(_.Tv("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.K2(),D.youThereData_,D.clientPlaybackNonce_),Q2(D,D.youThereData_.showPausedActions),D.inYouThereFlow_=!0);_.V9(R)})};
_.TPf.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var D=_.A(this.youThereData_.userActiveDuringFlowAction,_.je);D?Q2(this,D.commands):Q2(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Tv("YOU_THERE_EVENT_TYPE_LACT_RESET",_.K2(),this.youThereData_,this.clientPlaybackNonce_),_.yj());jng(this,!0)}_.erG(this,!1)};
_.ATZ=function(D){_.Tv("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.K2(),D.youThereData_,D.clientPlaybackNonce_)};
GZT=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.playerProvider_().getPlayerPromise(),2);Y=Z.yieldResult;R=Y.getPlayerState();return Z.return(R==-1||R==1||R==3)})};
_.erG=function(D,Y){var R;_.C(function(Z){if(Z.nextAddress==1){if(D.isUserPredictedAbsent_==Y)return Z.jumpTo(0);D.isUserPredictedAbsent_=Y;return Z.yield(D.playerProvider_().getPlayerPromise(),3)}R=Z.yieldResult;R.setUserEngagement(Y);Y&&_.Tv("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.K2(),D.youThereData_,D.clientPlaybackNonce_);_.V9(Z)})};
Q2=function(D,Y){if(_.f("handle_service_request_actions")||_.f("kevlar_youthere_service_endpoint_actions_killswitch"))_.Se(D.actionSenderElement_,Y,D.actionSenderElement_);else{Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())R=R.value,R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.sendPost?_.zA(D.actionSenderElement_,[R]):_.Se(D.actionSenderElement_,[R],D.actionSenderElement_)}};var nwg;var rTB;var Bv=function(){var D=_.N.apply(this,arguments)||this;D.systemIcons=_.f("kevlar_system_icons");D.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return D};
_.n(Bv,_.N);Bv.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var D=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(D=this.data.percentIfLiked||0,this.activated=!0):(D=this.data.percentIfIndifferent||0,this.activated=!1);_.aU(this.hostElement).querySelector("#like-bar").style.width=D+"%"}};
Bv.prototype.handleUpdateSentimentBarStateCommand=function(D){this.data&&this.set("data.likeStatus",_.A(D,zrB).likeStatus)};
Bv.prototype.observeLikeStatus=Bv.prototype.observeLikeStatus;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Bv.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Bv.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Bv.prototype,"activated",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Bv.prototype,"systemIcons",void 0);_.q([_.Gm("data.likeStatus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bv.prototype,"observeLikeStatus",null);_.q([_.h({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Bv);
_.L(Bv,"ytd-sentiment-bar-renderer",function(){if(rTB!==void 0)return rTB;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rTB=D},{mode:1});var wrS;var pE=function(){var D=_.N.apply(this,arguments)||this;D.small=!0;return D};
_.n(pE,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pE.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],pE.prototype,"small",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],pE);
_.L(pE,"ytd-video-view-count-renderer",function(){if(wrS!==void 0)return wrS;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return wrS=D},{mode:_.zD("kevlar_poly_si_batch_j080")?1:2});var Ep=function(){var D=_.N.apply(this,arguments)||this;D.infoFormattedStrings=[];D.wrapVideoActions=_.f("kevar_watch_wrap_video_actions");D.hideSentimentBar=_.f("kevlar_watch_hide_sentiment_bar");D.actionMap={};return D};
_.n(Ep,_.N);_.u=Ep.prototype;_.u.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.f("web_modern_buttons"),forceIconButton:!_.f("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.u.dataChanged=function(){_.f("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.u.computeInfoFormattedStrings=function(D){if(!D)return[];var Y=[];D.dateText&&Y.push(D.dateText);D.stationName&&Y.push(D.stationName);D.rating&&Y.push(D.rating);D.startEndTimeTemplate&&D.startTimeUtcMillis&&D.endTimeUtcMillis&&Y.push(_.i0(_.YLB(_.OM(D.startEndTimeTemplate),Number(D.startTimeUtcMillis),Number(D.endTimeUtcMillis))));D.upNextProgramText&&Y.push(D.upNextProgramText);return Y};
_.u.scheduleInitialUpdatedMetadataRequest=function(){var D,Y=(D=this.data)==null?void 0:D.updatedMetadataEndpoint;if(Y){var R;D=Number((R=_.A(Y,_.dvU))==null?void 0:R.initialDelayMs);R=isNaN(D)?250:D;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),R)}};
_.u.setSentimentBarWidth=function(){var D=this;_.cy(this,function(){var Y=_.aU(D.hostElement).querySelector("ytd-menu-renderer");if(Y){Y=Y.topLevelButtons;for(var R=0,Z=0;Z<Y.length;Z++){var t=Y[Z],X=D.get("toggleButtonSupportedData.toggleButtonIdData.id",t.data);if(X==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||X==="TOGGLE_BUTTON_ID_TYPE_LIKE")R+=t.clientWidth+8;else break}R&&(D.sentiment.style.width=R-8+" px")}})};
_.u.fetchUpdatedMetadata=function(D){var Y;D&&(Y={continuation:D});var R;(D=(R=this.data)==null?void 0:R.updatedMetadataEndpoint)&&_.DH().resolve(_.Yw).resolveCommand(D,{form:Object.assign({},Y,{element:this.hostElement})})};
_.u.onYtServiceRequestSent=function(D,Y){Y.endpoint&&_.A(Y.endpoint,_.Hl)&&(this.hasUpdateSentimentBarStateCommands()&&!_.f("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.A(Y.endpoint,_.Hl).status),this.setSentimentBarWidth())};
_.u.hasUpdateSentimentBarStateCommands=function(){var D,Y,R,Z,t=(Z=(D=this.data)==null?void 0:(Y=D.videoActions)==null?void 0:(R=Y.menuRenderer)==null?void 0:R.topLevelButtons)!=null?Z:[];D=_.a(t);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;t=Z=R=void 0;var X=(R=Y.toggleButtonRenderer)==null?void 0:(Z=R.toggleButtonSupportedData)==null?void 0:(t=Z.toggleButtonIdData)==null?void 0:t.id;if(X==="TOGGLE_BUTTON_ID_TYPE_LIKE"||X==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Z=R=void 0;Y=(Z=_.A((R=Y.toggleButtonRenderer)==
null?void 0:R.defaultServiceEndpoint,_.je))==null?void 0:Z.commands;if(!Y)break;Y=_.a(Y);for(R=Y.next();!R.done;R=Y.next())if(_.A(R.value,zrB))return!0}}return!1};
_.u.onYtServiceRequestCompleted=function(D,Y){var R;(D=(R=Y.data)==null?void 0:R.loggingDirectives)&&_.f0j(_.n8(),D);this.get("continuation.timedContinuationData",Y.data)&&this.data&&this.data.updatedMetadataEndpoint&&(Y=Y.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,Y.continuation),Y.timeoutMs))};
_.u.computeHasDateText=function(D){return!!D&&!!D.dateText};
_.YF.Object.defineProperties(Ep.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return!((Z=(D=this.data)==null?void 0:(Y=D.videoActions)==null?void 0:(R=Y.menuRenderer)==null?void 0:R.flexibleItems)==null||!Z.length)}}});
Ep.prototype.onYtServiceRequestCompleted=Ep.prototype.onYtServiceRequestCompleted;Ep.prototype.onYtServiceRequestSent=Ep.prototype.onYtServiceRequestSent;Ep.prototype.dataChanged=Ep.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ep.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.tV.YtTaskEmitterBehavior),_.x("design:type",Object)],Ep.prototype,"ytTaskEmitterBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ep.prototype,"data",void 0);_.q([_.y({computed:"computeInfoFormattedStrings(data)"}),_.x("design:type",Array)],Ep.prototype,"infoFormattedStrings",void 0);
_.q([_.y({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Ep.prototype,"hasDateText",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ep.prototype,"wrapVideoActions",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ep.prototype,"hideSentimentBar",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ep.prototype,"flexMenuEnabled",null);
_.q([_.fr("#sentiment"),_.x("design:type",Object)],Ep.prototype,"sentiment",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ep.prototype,"dataChanged",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],Ep.prototype,"onYtServiceRequestSent",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],Ep.prototype,"onYtServiceRequestCompleted",null);
_.L(Ep,"ytd-video-primary-info-renderer",function(){if(nwg===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);nwg=D}D=nwg;return D},{mode:1});var $E$;var g5=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.n(g5,_.N);_.u=g5.prototype;_.u.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"}}}};
_.u.dataChanged=function(){var D;this.descriptionToggled=!((D=this.data)==null||!D.defaultExpanded);var Y;this.collapsed=this.descriptionAlwaysCollapsed||!((Y=this.data)==null?0:Y.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.TP(110509);this.showLessClientVe=_.TP(110510);D=_.K2();Y=_.Ud();D&&Y&&_.BC(D,Y,[this.showMoreClientVe,this.showLessClientVe])};
_.u.onYtExpanderMoreTapped=function(){var D,Y=(D=this.data)==null?void 0:D.showMoreCommand;Y&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(Y);(D=_.K2())&&this.showMoreClientVe&&_.dC(D,this.showMoreClientVe)};
_.u.onYtExpanderLessTapped=function(){var D=_.K2();D&&this.showLessClientVe&&_.dC(D,this.showLessClientVe);var Y;(D=(Y=this.data)==null?void 0:Y.showLessCommand)&&this.componentBehavior.resolveCommand(D)};
_.u.handleUpdateDateTextAction=function(D){this.data&&this.data.dateText&&this.set("data.dateText",_.A(D,_.r9S).dateText)};
_.u.handleUpdateDescriptionAction=function(D){if(D=_.A(D,_.EZV))D.isEmpty||!D.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.K8(D.description)):this.set("data.description",D.description)};
_.u.onYtChangeEngagementPanelVisibilityAction=function(D){if(_.f("web_structured_description_show_more")||_.f("web_engagement_panel_open_description")){var Y,R=(Y=_.A(D,_.wP_))==null?void 0:Y.targetId,Z;D=((Z=_.A(D,_.wP_))==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";R==="engagement-panel-structured-description"&&D&&(this.descriptionToggled=!0)}};
_.u.updateCollapsedFromBinding=function(D){this.collapsed=D.detail.value};
_.u.updateDescriptionToggledFromBinding=function(D){this.descriptionToggled=D.detail.value};
_.u.updateCanCollapseFromBinding=function(D){this.canCollapse=D.detail.value};
_.YF.Object.defineProperties(g5.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.metadataRowContainer)==null?void 0:Y.metadataRowContainerRenderer;return!!R&&!!R.rows&&R.rows.length>R.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.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}}});
g5.prototype.onYtExpanderLessTapped=g5.prototype.onYtExpanderLessTapped;g5.prototype.onYtExpanderMoreTapped=g5.prototype.onYtExpanderMoreTapped;g5.prototype.dataChanged=g5.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],g5.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],g5.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],g5.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],g5.prototype,"collapsed",void 0);_.q([_.y(),_.x("design:type",Boolean)],g5.prototype,"descriptionToggled",void 0);
_.q([_.y(),_.x("design:type",Boolean)],g5.prototype,"canCollapse",void 0);_.q([_.y(),_.x("design:type",Object)],g5.prototype,"subscribeButtonData",void 0);_.q([_.y(),_.x("design:type",Number)],g5.prototype,"descriptionCollapsedHeight",void 0);_.q([_.y(),_.x("design:type",Object)],g5.prototype,"structuredDescriptionContentRenderer",void 0);_.q([_.y({value:function(){return _.f("web_watch_description_always_collapsed")}}),
_.x("design:type",Boolean)],g5.prototype,"descriptionAlwaysCollapsed",void 0);_.q([_.fr("#description"),_.x("design:type",HTMLDivElement)],g5.prototype,"description",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g5.prototype,"dataChanged",null);_.q([_.Fv("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g5.prototype,"onYtExpanderMoreTapped",null);
_.q([_.Fv("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g5.prototype,"onYtExpanderLessTapped",null);_.q([_.b("data.metadataRowContainer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g5.prototype,"metadataCollapsible",null);_.q([_.b("data","structuredDescriptionContentRenderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g5.prototype,"hasInlineStructuredDescription",null);
_.q([_.b("data.attributedDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g5.prototype,"hasAttributedDescription",null);_.q([_.b("hasInlineStructuredDescription","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g5.prototype,"loadStructuredDescription",null);_.q([_.b("data","structuredDescriptionContentRenderer","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g5.prototype,"showInlineStructuredDescription",null);
_.q([_.b("data","hasInlineStructuredDescription","metadataCollapsible"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g5.prototype,"descriptionAlwaysCollapsible",null);
_.L(g5,"ytd-video-secondary-info-renderer",function(){if($E$===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);$E$=D}D=$E$;return D},{mode:2});var vwE;var d5=function(){return _.N.apply(this,arguments)||this};
_.n(d5,_.N);d5.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:_.f("web_modern_buttons"),forceIconButton:!_.f("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
d5.prototype.activate=function(D){D.appendTo(this.player);D.getPlayerPromise().then(function(Y){Y.setMinimized(!0)});
this.active=!0};
d5.prototype.deactivate=function(){var D=this.player.firstElementChild;D.getPlayerPromise().then(function(Y){Y.setMinimized(!1)});
this.active=!1;return D};
d5.prototype.onScrollUpTap=function(){var D=_.DH().resolve(_.Z4).getCurrentPage();D&&D.setScrollTop(0)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],d5.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],d5.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],d5.prototype,"active",void 0);
_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.x("design:type",Boolean)],d5.prototype,"darkLaunch",void 0);_.q([_.fr("#player"),_.x("design:type",HTMLDivElement)],d5.prototype,"player",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],d5);
_.L(d5,"ytd-miniplayer-bar-renderer",function(){if(vwE!==void 0)return vwE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return vwE=D},{mode:1});_.at(_.RT(function(D){var Y=_.dI("script");_.r2(function(){var R;if(R=JSON)R=M$Z(D.data()),R=_.EN(JSON.stringify(R).replace(/</g,"\\u003C"));var Z=D.data(),t=_.OM(Z.title).trim().length===0,X=!Z.publishDate||Z.publishDate.trim().length===0,M,W,z,I,F=!((M=Z.thumbnail)==null?0:(W=M.thumbnails)==null?0:W.length)||!((z=Z.thumbnail)==null?0:z.thumbnails[0].url)||((I=Z.thumbnail)==null?void 0:I.thumbnails[0].url.trim().length)===0;Y.value&&R&&!(t||X||F)&&_.gg(Y.value,R)},"I9AhLd");
return _.S("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.S("script",{el:Y,type:"application/ld+json"}))},"tk"),"player-microformat-renderer",{props:{data:_.uq}});
}catch(e){_._DumpException(e)}
try{
var rQf;_.nso=function(D){return D.watch.watchWindowSize};
rQf=function(D,Y,R,Z){if(D.isLockupToWatchTransitionEnabled){if(Y){var t={};D.viewTransitionCoordinator.registerElement(Y,(t["lockup-to-watch"]="player-lockup-to-watch",t["watch-next-appears"]="player-watch-next-loaded",t))}R&&(Y={},D.viewTransitionCoordinator.registerElement(R,(Y["lockup-to-watch"]="below-lockup-to-watch",Y["watch-next-appears"]="below-watch-next-loaded",Y)));Z&&(R={},D.viewTransitionCoordinator.registerElement(Z,(R["watch-next-appears"]="secondary-watch-next-loaded",R)))}};
_.wDy=function(D){return _.u0({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:D}})};var vsB=function(D){_.AE.call(this);this.JSC$22934_watchApi=D;$Jf(this)};
_.n(vsB,_.AE);var $Jf=function(D){_.C(function(Y){if(Y.nextAddress==1)return Y.yield(osf(D),2);bbZ(D);_.V9(Y)})},osf=function(D){var Y,R,Z,t;
return _.C(function(X){if(X.nextAddress==1)return X.yield(D.JSC$22934_watchApi.playerApi,2);Y=X.yieldResult;D.JSC$22934_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){yQG(D)});
R=D.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){bbZ(D)});
Z=function(M){D.onCueRangeEnter(M)};
Y.addEventListener("onCueRangeEnter",Z);t=function(M){D.onCueRangeExit(M)};
Y.addEventListener("onCueRangeExit",t);D.addOnDisposeCallback(function(){D.JSC$22934_watchApi.unsubscribeByKey(R);Y.removeEventListener("onCueRangeEnter",Z);Y.removeEventListener("onCueRangeExit",t)});
_.V9(X)})},Nff=function(D){var Y,R,Z,t,X,M,W,z,I;
return(X=(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.results)==null?void 0:(t=Z.results)==null?void 0:t.contents)==null?void 0:(M=X.find(function(F){var G,V,e;return(G=F.itemSectionRenderer)==null?void 0:(V=G.contents)==null?void 0:(e=V[0])==null?void 0:e.shoppingTimelyShelfViewModel}))==null?void 0:(W=M.itemSectionRenderer)==null?void 0:(z=W.contents)==null?void 0:(I=z[0])==null?void 0:I.shoppingTimelyShelfViewModel},bbZ=function(D){var Y;
_.C(function(R){if(R.nextAddress==1)return(Y=D.JSC$22934_watchApi.getWatchNextResponse())?R.yield(yQG(D),2):R.return();D.shoppingTimelyShelfViewModel=Nff(Y);l17(D);JQG(D);_.V9(R)})},l17=function(D){var Y,R=(Y=D.shoppingTimelyShelfViewModel)==null?void 0:Y.offerIdToVariants;
R&&(Y=R.filter(function(Z){return Z.key&&Z.value}).map(function(Z){return[Z.key,
Z.value]}),D.variantsMap=new Map(Y))},JQG=function(D){var Y,R,Z,t,X,M;
_.C(function(W){if(W.nextAddress==1)return(R=(Y=D.shoppingTimelyShelfViewModel)==null?void 0:Y.cueRanges)?W.yield(D.JSC$22934_watchApi.playerApi,2):W.return();Z=W.yieldResult;D.cueRanges=R;t=_.a(R);for(X=t.next();!X.done;X=t.next())M=X.value,M.startTime!==void 0&&M.endTime!==void 0&&M.id!==void 0&&Z.addCueRange("shopping_timely_shelf"+M.id,k6N(M.startTime),k6N(M.endTime));_.V9(W)})},k6N=function(D){return Number(D.seconds||0)+(D.nanos||0)/1E9};
vsB.prototype.onCueRangeEnter=function(D){if(D.startsWith("shopping_timely_shelf")){var Y=D.substring(21),R,Z;D=(R=this.variantsMap)==null?void 0:(Z=R.get(Y))==null?void 0:Z.shelf;if(_.f("web_enable_shopping_timely_shelf_client_overwrite")){var t,X,M,W,z;R=D==null?void 0:(t=D.shoppingTimelyShelfContentViewModel)==null?void 0:(X=t.button)==null?void 0:(M=X[1])==null?void 0:(W=M.buttonViewModel)==null?void 0:(z=W.onTap)==null?void 0:z.innertubeCommand;var I,F;if(R==null?0:(I=R.menuEndpoint)==null?0:
(F=I.menu)==null?0:F.menuRenderer)R.openPopupAction=R.menuEndpoint,R.openPopupAction.popup=R.openPopupAction.menu,R.openPopupAction.popup.menuPopupRenderer=R.openPopupAction.popup.menuRenderer,R.openPopupAction.popupType="DROPDOWN",delete R.menuEndpoint,delete R.openPopupAction.menu,delete R.openPopupAction.popup.menuRenderer}D&&this.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",D)}};
vsB.prototype.onCueRangeExit=function(D){D.startsWith("shopping_timely_shelf")&&this.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var yQG=function(D){var Y,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return M.yield(D.JSC$22934_watchApi.playerApi,2);Y=M.yieldResult;if(D.cueRanges)for(R=_.a(D.cueRanges),Z=R.next();!Z.done;Z=R.next())t=Z.value,t.id&&(X="shopping_timely_shelf"+t.id,Y.removeCueRange(X));D.JSC$22934_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});D.shoppingTimelyShelfViewModel=void 0;D.cueRanges=void 0;D.variantsMap=void 0;_.V9(M)})};var mJo=function(D){_.AE.call(this);var Y=this;this.JSC$22941_watchApi=D;D=_.rm(_.Dl(),_.Xpi,function(){UJy(Y)});
this.addOnDisposeCallback(D);D=_.rm(_.Dl(),_.nso,function(){UJy(Y)});
this.addOnDisposeCallback(D);KfE(this);htf(this);LfT()};
_.n(mJo,_.AE);var KfE=function(D){var Y=function(Z){_.Dl().dispatch(_.PUf(Z.matches))},R=window.matchMedia("(max-width: "+(999+_.g6())+"px)");
R.addListener(Y);D.addOnDisposeCallback(function(){R.removeListener(Y)});
Y(R)},htf=function(D){D.JSC$22941_watchApi.registerActionHandler("yt-window-resized",function(){LfT()});
D.addOnDisposeCallback(function(){D.JSC$22941_watchApi.unregisterActionHandler("yt-window-resized")})},LfT=function(){var D=_.w$();
_.Dl().dispatch(_.u0({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:D.width,height:D.height}}}))},UJy=function(D){var Y;
_.C(function(R){if(R.nextAddress==1)return R.yield(D.JSC$22941_watchApi.playerApi,2);Y=R.yieldResult;Y.setSize(NaN,NaN);_.V9(R)})};var q3Z=function(D){_.AE.call(this);var Y=_.DH().resolve(_.f1);rQf(Y,D.getElement("PLAYER_CONTAINER"),D.getElement("BELOW_THE_PLAYER"),D.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var R=D.getElement("PLAYER_CONTAINER"),Z=D.getElement("BELOW_THE_PLAYER"),t=D.getElement("SECONDARY");Y.isLockupToWatchTransitionEnabled&&(R&&_.Qi(Y.viewTransitionCoordinator,R),Z&&_.Qi(Y.viewTransitionCoordinator,Z),t&&_.Qi(Y.viewTransitionCoordinator,t))})};
_.n(q3Z,_.AE);_.mX=function(D){_.If.call(this);var Y=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(R){Y.initOrDisposeActiveModules(R)}));
this.onAttached()};
_.n(_.mX,_.If);_.u=_.mX.prototype;_.u.getRoot=function(){return this.rootElement};
_.u.getElement=function(D){return this.rootElement.getElement(D)};
_.u.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.u.getPlayerResponse=function(){return this.playerResponse};
_.u.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.u.getWatchNextResponse=function(){return this.watchNextResponse};
_.u.registerActionHandler=function(D,Y){var R=this;if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.pI(_.Bm.getInstance(),(Z[D]=Y,Z),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),Z={},_.pI(_.Bm.getInstance(),(Z[D]=function(){var t=_.UN.apply(0,arguments);return(R.actionHandlers.get(D)||[]).map(function(X){return X.apply(null,_.oK(t))})},Z),this.getRoot())),this.actionHandlers.get(D).push(Y)};
_.u.unregisterActionHandler=function(D){if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var Y={};_.E9(_.Bm.getInstance(),(Y[D]=!0,Y),this.getRoot())}else(Y=this.actionHandlers.get(D))?(Y.pop(),Y.length===0&&(Y={},_.E9(_.Bm.getInstance(),(Y[D]=!0,Y),this.getRoot()),this.actionHandlers.delete(D))):_.Jk(new _.AT("Attempted to unregister an action handler which is not registered.",D))};
_.u.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AS9(this.rootElement.pageDisposeJobs,D)};
_.u.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.m5(this.rootElement.pageDisposeJobs,D)};
_.u.dispatchEvent=function(D,Y){_.MX(this.rootElement,D,Y)};
_.u.provideRenderingData=function(D,Y){this.rootElement.provideRenderingData(D,Y)};
_.u.scrollWatchTo=function(D,Y){var R;(R=this.watchScrollManager)==null||R.scrollWatchTo(D,Y)};
_.u.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.cy(D,function(){if(D&&D.firstElementChild){var Y=D.querySelector(".html5-video-player");Y&&(_.t7(_.DH().resolve(_.bq)),Y.focus())}else _.Jk(Error("Fo"))})};
_.u.updateCinematicFullscreenConfig=function(){if(_.f("web_cinematic_manager_redux_killswitch")){var D=!!this.rootElement.theater,Y=!!this.rootElement.fullscreen,R;(R=this.watchCinematicManager)==null||_.kA(R,Y,D)}};
_.u.subscribeToActiveChanged=function(D,Y){Y=Y===void 0?!0:Y;var R=_.rm(_.Dl(),_.d$S,function(Z){D(Z)});
Y&&D(_.d$S(_.Dl().getState()));return R};
_.u.isActive=function(){return _.d$S(_.Dl().getState())};
_.u.onAttached=function(){var D=_.f("external_fullscreen");_.f("use_unified_flag_accessor")&&(D=_.DH().resolve(_.sJE).retriever.getFlag(_.xCU));(D||_.ks("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var HbS=function(D){return D.getRoot().is==="ytd-watch-flexy"||D.getRoot().is==="ytd-watch-grid"},qe=function(D){return D.getRoot().is==="ytd-watch-fixie"};
_.mX.prototype.initPersistentModules=function(){if(qe(this)||HbS(this)&&_.f("kevlar_watch_flexy_theater_manager")){var D=new _.ghZ(this);_.WB(this,D)}D=new _.kkN(this);_.WB(this,D);D=new _.y2(this);_.WB(this,D);D=new _.ytB(this);_.WB(this,D);D=new _.WfS(this);_.WB(this,D);D=new _.lN(this);_.WB(this,D);if(qe(this)||HbS(this)&&_.f("kevlar_watch_flexy_playlist_manager"))D=new _.TfJ(this),_.WB(this,D);_.f("web_thumbnail_to_watch_transition")&&(D=new q3Z(this),_.WB(this,D))};
_.mX.prototype.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.LE(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.da$(this)),_.f("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new vsB(this)),this.activeModules.push(new _.cZS(this)),qe(this)&&this.activeModules.push(new mJo(this)),this.activeModules.push(new _.f1S(this)),this.activeModules.push(new _.xaf(this)),(qe(this)||_.f("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.ZGZ(this)),this.activeModules.push(new _.RtB(this)),(qe(this)||_.f("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.AQf(this)),(qe(this)||_.f("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Wg7(this)),_.f("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.IeN(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.f("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uPg(this)),
_.f("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.leS(this)),D=_.f("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.f("kevlar_watch_flexy_comments_manager")&&!D&&this.activeModules.push(new _.$ag(this)),_.f("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Ne(this)),this.activeModules.push(new _.Z4T(this)),this.activeModules.push(new _.O4J(this)),_.f("web_enable_timely_actions")&&this.activeModules.push(new _.uDT(this)),
_.f("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.bGJ(this)),_.f("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.fCN(this)),_.f("web_fullscreen_components")&&this.activeModules.push(new _.u_$(this)),_.f("web_player_rtr_ctrls")&&this.activeModules.push(new _.Ne7(this))):(_.c8(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.mX.prototype.disposeInternal=function(){_.If.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.YF.Object.defineProperties(_.mX.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var B_9,k9,p0T,Ee9,d2E,iPh,geE,OPK;B_9=function(){var D=_.wC();D.info||(D.info={});return D.info};
k9=function(D){return Math.round(_.bi()+D)};
p0T=function(){var D;if(_.f("csi_use_performance_navigation_timing")){var Y,R,Z,t=_.ob==null?void 0:(D=_.ob.getEntriesByType)==null?void 0:(Y=D.call(_.ob,"navigation"))==null?void 0:(R=Y[0])==null?void 0:(Z=R.toJSON)==null?void 0:Z.call(R);t?(t.requestStart=k9(t.requestStart),t.responseEnd=k9(t.responseEnd),t.redirectStart=k9(t.redirectStart),t.redirectEnd=k9(t.redirectEnd),t.domainLookupEnd=k9(t.domainLookupEnd),t.connectStart=k9(t.connectStart),t.connectEnd=k9(t.connectEnd),t.responseStart=k9(t.responseStart),
t.secureConnectionStart=k9(t.secureConnectionStart),t.domainLookupStart=k9(t.domainLookupStart),t.isPerformanceNavigationTiming=!0,D=t):D=_.ob.timing}else D=_.f("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.ob.timing)):_.ob.timing;return D};
Ee9=function(){if(_.ob.getEntriesByType){var D=_.ob.getEntriesByType("paint");if(D=_.JS(D,function(R){return R.name==="first-paint"}))return k9(D.startTime)}var Y;
_.f("csi_use_performance_navigation_timing")?Y=_.ob.getEntriesByType("first-paint")[0].startTime:Y=_.ob.timing.msFirstPaint;return Y?Math.max(0,Y):0};
d2E=function(){var D=window.location.protocol,Y=_.ob.getEntriesByType("resource");Y=_.ac(Y,function(R){return R.name.indexOf(D+"//fonts.gstatic.com/s/")===0});
(Y=geE(Y,function(R,Z){return Z.duration>R.duration?Z:R}))&&Y.startTime>0&&Y.responseEnd>0&&(_.yk("wffs",k9(Y.startTime)),_.yk("wffe",k9(Y.responseEnd)))};
iPh=function(D,Y){D=document.querySelector(D);if(!D)return!1;var R="",Z=D.nodeName;Z==="SCRIPT"?(R=D.src,R||(R=D.getAttribute("data-timing-href"))&&(R=window.location.protocol+R)):Z==="LINK"&&(R=D.href);_.BZ(document)&&D.setAttribute("nonce",_.BZ(document));return R?(D=_.ob.getEntriesByName(R))&&D[0]&&(D=D[0],R=_.bi(),_.yk("rsf_"+Y,R+Math.round(D.fetchStart)),_.yk("rse_"+Y,R+Math.round(D.responseEnd)),D.transferSize!==void 0&&D.transferSize===0)?!0:!1:!1};
_.Uu=function(D,Y){_.Lb(function(){_.vC("").info.actionType=D;Y&&_.l1("TIMING_AFT_KEYS",Y);_.l1("TIMING_ACTION",D);var R=_.pXr(_.JQ("TIMING_INFO",{}));Object.keys(R).length>0&&_.NX(R);R={isNavigation:!0,actionType:_.Jw$(_.JQ("TIMING_ACTION"))};var Z=_.JQ("PREVIOUS_ACTION");Z&&(R.previousAction=_.Jw$(Z));if(Z=_.JQ("CLIENT_PROTOCOL"))R.httpProtocol=Z;if(Z=_.JQ("CLIENT_TRANSPORT"))R.transportProtocol=Z;(Z=_.K2())&&Z!=="UNDEFINED_CSN"&&(R.clientScreenNonce=Z);Z=_.B7U();if(Z===1||Z===-1)R.isVisible=!0;
Z=_.wXj().loadType==="cold";var t=B_9();Z||(Z=t.yt_lt==="cold");if(Z){R.loadType="cold";Z=B_9();t=p0T();var X=_.bi(),M=_.JQ("CSI_START_TIMESTAMP_MILLIS",0);M>0&&!_.f("embeds_web_enable_csi_start_override_killswitch")&&(X=M);X&&(_.yk("srt",t.responseStart),Z.prerender!==1&&_.Lwo(X));Z=Ee9();Z>0&&_.yk("fpt",Z);Z=p0T();Z.isPerformanceNavigationTiming&&_.NX({performanceNavigationTiming:!0},void 0);_.yk("nreqs",Z.requestStart,void 0);_.yk("nress",Z.responseStart,void 0);_.yk("nrese",Z.responseEnd,void 0);
Z.redirectEnd-Z.redirectStart>0&&(_.yk("nrs",Z.redirectStart,void 0),_.yk("nre",Z.redirectEnd,void 0));Z.domainLookupEnd-Z.domainLookupStart>0&&(_.yk("ndnss",Z.domainLookupStart,void 0),_.yk("ndnse",Z.domainLookupEnd,void 0));Z.connectEnd-Z.connectStart>0&&(_.yk("ntcps",Z.connectStart,void 0),_.yk("ntcpe",Z.connectEnd,void 0));Z.secureConnectionStart>=_.bi()&&Z.connectEnd-Z.secureConnectionStart>0&&(_.yk("nstcps",Z.secureConnectionStart,void 0),_.yk("ntcpe",Z.connectEnd,void 0));_.ob&&"getEntriesByType"in
_.ob&&d2E();Z=[];if(document.querySelector&&_.ob&&_.ob.getEntriesByName)for(var W in OPK)OPK.hasOwnProperty(W)&&(t=OPK[W],iPh(W,t)&&Z.push(t));if(Z.length>0)for(R.resourceInfo=[],W=_.a(Z),Z=W.next();!Z.done;Z=W.next())R.resourceInfo.push({resourceCache:Z.value})}_.NX(R);R=_.$8();R.preLoggedGelInfos||(R.preLoggedGelInfos=[]);W=R.preLoggedGelInfos;R=_.vL5();Z=void 0;for(t=0;t<W.length;t++)if(X=W[t],X.loadType){Z=X.loadType;break}if(_.wXj().loadType==="cold"&&(R.loadType==="cold"||Z==="cold")){Z=_.$0U();
t=_.$8();t=t.gelTicks?t.gelTicks:t.gelTicks={};for(var z in Z)if(!(z in t))if(typeof Z[z]==="number")_.yk(z,_.li(z));else if(_.f("log_repeated_ytcsi_ticks"))for(X=_.a(Z[z]),M=X.next();!M.done;M=X.next())M=M.value,_.yk(z.slice(1),M);z={};Z=!1;W=_.a(W);for(t=W.next();!t.done;t=W.next())Z=t.value,_.qA(R,Z),_.qA(z,Z),Z=!0;Z&&_.NX(z)}_.iD5(!0);z=_.JQ("TIMING_ACTION");_.mf("ytglobal.timingready_")&&z&&_.aSj()&&_.d0U()&&_.Pjb()})()};
geE=function(D,Y){return Array.prototype.reduce.call(D,Y,{duration:0})};
OPK={'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"};var cLk={};cLk.YtVisibilityRootBehavior=[_.gq4.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.OG(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.JQ("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var D=_.JQ("INNERTUBE_CLIENT_NAME")!=="WEB";_.f("kevlar_use_vimio_behavior")&&D&&_.pVY()}}];_.Kz={};_.Kz.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(D){D.detail.contextProvider=this;D.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
cLk.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.iq();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(D){var Y=this;this.pageCount+=1;_.f("kevlar_use_vimio_behavior")&&(_.JQ("INNERTUBE_CLIENT_NAME")==="WEB"?_.yc.addJob(function(){Y.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(D)},
loadPage_:function(D){this.data=D},
ytPageBehaviorActiveObserver_:function(D){var Y=this;_.f("kevlar_use_vimio_behavior")&&(D?_.JQ("INNERTUBE_CLIENT_NAME")==="WEB"?_.yc.addJob(function(){Y.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(D){if(!this.setScrollTopJobId_){var Y=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){Y.setScrollTopJobId_=0;var R=_.DH().resolve(_.cD(_.bq));R&&_.t7(R);this.getPageScrollingElement().scrollTop=D}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.$r(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var QL9;var Jd=function(){var D=_.N.apply(this,arguments)||this;D.playerListenerConfig=null;D.actionMap={"yt-show-watch-page-survey":"openSurvey"};return D};
_.n(Jd,_.N);_.u=Jd.prototype;_.u.dataChanged=function(){var D=this,Y=_.sm();Y&&Y.getPlayerPromise().then(function(Z){D.maybeRemovePlayerListeners(Z)});
var R=this.data&&this.data.survey;R&&((R=(R=R.singleOptionSurveyRenderer||R.checkboxSurveyRenderer||R.multiStageSurveyRenderer)&&R.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(Y,R):this.openSurvey())};
_.u.triggerWatchPageSurvey=function(D,Y){var R=this,Z,t,X,M,W,z,I,F,G;return _.C(function(V){if(V.nextAddress==1)return D?V.yield(D.getPlayerPromise(),2):V.return();R.player=V.yieldResult;if(!R.player)return V.return();Z={};t=_.a(Y);for(X=t.next();!X.done;X=t.next())M=X.value,W=_.a(R.createEventListenerPair(M)),z=W.next().value,I=W.next().value,F=z,G=I,F&&G&&(Z[F]=G,R.ytPlayerListenerBehavior.listenToPlayerEvent(R.player,F,G));R.playerListenerConfig=Z;_.V9(V)})};
_.u.createEventListenerPair=function(D){var Y=D.playbackEventTrigger;return Y?this.handlePlaybackTrigger(Y):(D=D.watchTimeTrigger)?this.handleWatchTimeTrigger(D):[void 0,void 0]};
_.u.handleWatchTimeTrigger=function(D){var Y=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var R=D.videoWatchFraction,Z=D.watchTimeSec;return Z&&R?["onVideoProgress",function(){Y.player&&Y.isWatchTimeConditionMet(Y.player,R,Z)&&Y.showSurvey()}]:[void 0,
void 0]};
_.u.isWatchTimeConditionMet=function(D,Y,R){var Z=D.getProgressState(),t=Z.current-this.lastKnownPlaybackPosition;t<5&&(this.accumulatedMediaTime+=t);this.lastKnownPlaybackPosition=Z.current;Z=Math.round(this.accumulatedMediaTime/Z.duration*1E3)/1E3;return D.getPresentingPlayerType&&D.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>R||Z>Y)};
_.u.handlePlaybackTrigger=function(D){var Y=this;D=D.playbackEvent;if(D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var R="onStateChange";var Z=function(t){t===0&&Y.showSurvey()}}else D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(R="onVideoProgress",Z=function(t){Y.player&&Y.player.getPresentingPlayerType&&Y.player.getPresentingPlayerType()===1&&t&&Y.showSurvey()}):D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(R="onAdEnd",Z=this.showSurvey);
return[R,Z]};
_.u.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.u.openSurvey=function(){var D=this,Y=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.uou(!!Y));_.yc.addJob(function(){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:Y}})},0,0)};
_.u.maybeRemovePlayerListeners=function(D){if(this.playerListenerConfig){for(var Y=_.a(Object.keys(this.playerListenerConfig)),R=Y.next();!R.done;R=Y.next())R=R.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(D,R,this.playerListenerConfig[R]);this.playerListenerConfig=null}};
Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],Jd.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],Jd.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Jd.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Jd.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Jd.prototype,"playerListenerConfig",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],Jd.prototype,"lastKnownPlaybackPosition",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],Jd.prototype,"accumulatedMediaTime",void 0);_.q([_.y(),_.x("design:type",Object)],Jd.prototype,"player",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jd.prototype,"dataChanged",null);_.q([_.h({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Jd);
_.L(Jd,"ytd-survey-trigger-renderer",function(){if(QL9!==void 0)return QL9;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return QL9=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var JSg=new _.Dv("promotedSparklesWebRenderer");var kUf=new _.Dv("relatedChipCommand");var U$f;var K5f;var Vh=function(){return _.N.apply(this,arguments)||this};
_.n(Vh,_.N);Vh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Vh.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Vh);
_.L(Vh,"ytd-compact-tvfilm-entry-point-renderer",function(){if(K5f!==void 0)return K5f;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return K5f=D},{mode:1});var hj$;var L5S;var m$S;var fR=function(){return _.N.apply(this,arguments)||this};
_.n(fR,_.N);fR.prototype.ready=function(){this.initializeDefs()};
fR.prototype.initializeDefs=function(){var D=this.meta.byKey("yt-icons"),Y=_.aU(D).querySelector("#star"),R=_.aU(D).querySelector("#star_half");D=_.aU(D).querySelector("#star_border");Y&&this.defs.appendChild(Y.cloneNode(!0));R&&this.defs.appendChild(R.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0))};
fR.prototype.percentChanged=function(){for(var D=this.rating;D.firstChild;)D.removeChild(D.firstChild);var Y=Math.round(this.percent/10);D=Math.floor(Y/2);Y%=2;var R=5-D-Y;this.appendStars("star",D,0);this.appendStars("star_half",Y,D);this.appendStars("star_border",R,D+Y)};
fR.prototype.appendStars=function(D,Y,R){for(var Z=0;Z<Y;Z++){var t=(18+this.spacing)*(Z+R),X=document.createElementNS("http://www.w3.org/2000/svg","use");_.UaE(X,"#"+D);X.setAttribute("x",""+t);X.setAttribute("y","0");this.rating.appendChild(X)}};
fR.prototype.percentChanged=fR.prototype.percentChanged;_.q([_.fr("#defs"),_.x("design:type",HTMLElement)],fR.prototype,"defs",void 0);_.q([_.fr("#rating"),_.x("design:type",HTMLElement)],fR.prototype,"rating",void 0);_.q([_.y(),_.x("design:type",Number)],fR.prototype,"percent",void 0);_.q([_.y({value:6}),_.x("design:type",Number)],fR.prototype,"spacing",void 0);_.q([_.y({value:_.w7.create("iron-meta",{type:"iconset"})}),_.x("design:type",_.o1)],fR.prototype,"meta",void 0);
_.q([_.Gm("percent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fR.prototype,"percentChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-ratings"})],fR);
_.L(fR,"ytd-ratings",function(){if(m$S!==void 0)return m$S;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return m$S=D},{mode:1});var eW=function(){return _.N.apply(this,arguments)||this};
_.n(eW,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eW.prototype,"data",void 0);_.q([_.h({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],eW);
_.L(eW,"ytd-offer-review-renderer",function(){if(L5S!==void 0)return L5S;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return L5S=D},{mode:1});var A_=function(){var D=_.N.apply(this,arguments)||this;D.badges=[{textBadge:{label:_.i0("CC")}}];return D};
_.n(A_,_.N);_.u=A_.prototype;_.u.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.u.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(D&&D.commandMetadata&&_.A(D.commandMetadata,_.yX)&&_.A(D.commandMetadata,_.yX).fireAutomatically)_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}});else{var Y;D&&((Y=_.A(D,_.yX))==null?0:Y.fireAutomatically)&&_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})}};
_.u.isEmptyContent=function(D){return this.isStorefrontEntryPointEmpty(D)&&this.shouldHideOfferModule(D)};
_.u.isStorefrontEntryPointEmpty=function(D){return!D||!D.storefrontEntryPoint};
_.u.shouldHideOfferModule=function(D){return!!D.hideVideoDetails};
_.u.isOfferModuleNavigationInactive=function(D){return!D.navigationEndpoint&&!D.serviceEndpoint};
_.u.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
A_.prototype.dataChanged=A_.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],A_.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.x("design:type",Boolean)],A_.prototype,"hidden",void 0);
_.q([_.y(),_.x("design:type",Object)],A_.prototype,"badges",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],A_.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],A_);
_.L(A_,"ytd-movie-offer-module-renderer",function(){if(hj$!==void 0)return hj$;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hj$=D},{mode:1});var qyB;var nR=function(){return _.N.apply(this,arguments)||this};
_.n(nR,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],nR.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nR.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],nR);
_.L(nR,"ytd-media-masthead-renderer",function(){if(qyB!==void 0)return qyB;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qyB=D},{mode:1});var HM$;_.at(_.CwD,"course-metadata-view-model",{props:{data:_.uq,isOverlay:_.uq}});var rE=function(){var D=_.N.apply(this,arguments)||this;D.isMetadataVisible=!1;D.modernPanels=_.f("kevlar_watch_modern_panels");D.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return D};
_.n(rE,_.N);_.u=rE.prototype;
_.u.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"}}}}};
_.u.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.u.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.u.expanderChanged=function(){var D;if((D=this.data)==null?0:D.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.u.isExpandButtonToggled=function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.expandMetadataButton,_.py))==null?void 0:Y.isToggled};
_.u.onVisibilityButtonClick=function(){var D;if((D=this.data)==null?0:D.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.u.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
rE.prototype.expanderChanged=rE.prototype.expanderChanged;rE.prototype.dataChanged=rE.prototype.dataChanged;rE.prototype.descriptionChanged=rE.prototype.descriptionChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v([_.Va.YtActionHandlerBehavior]),_.x("design:type",Object)],rE.prototype,"actionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],rE.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],rE.prototype,"isMetadataVisible",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],rE.prototype,"modernPanels",void 0);_.q([_.fr("#expander"),_.x("design:type",Object)],rE.prototype,"expander",void 0);_.q([_.Gm("data.description"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rE.prototype,"descriptionChanged",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rE.prototype,"dataChanged",null);_.q([_.Gm("isMetadataVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rE.prototype,"expanderChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],rE);
_.L(rE,"ytd-tvfilm-offer-module-renderer",function(){if(HM$!==void 0)return HM$;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return HM$=D},{mode:2});var x$Z;var wE=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return D};
_.n(wE,_.N);wE.prototype.dataChanged=function(){this.hostElement.hidden=!1};
wE.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
wE.prototype.onThumbnailTap=function(D){this.data&&this.data.serviceEndpoint&&(_.DH().resolve(_.Yw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),D.stopPropagation())};
wE.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
wE.prototype.dataChanged=wE.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wE.prototype,"rendererBehaviors",void 0);_.q([_.v([_.Va.YtActionHandlerBehavior]),_.x("design:type",Object)],wE.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wE.prototype,"data",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wE.prototype,"dataChanged",null);_.q([_.h({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],wE);
_.L(wE,"ytd-unlimited-offer-module-renderer",function(){if(x$Z!==void 0)return x$Z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return x$Z=D},{mode:1});var P9f;var QlN;var $J=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return D};
_.n($J,_.N);$J.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
$J.prototype.handleRelatedChipCommand=function(D){D=_.A(D,kUf);var Y=D.contents;Y?_.WC(this.hostElement,"yt-item-section-replace-action",[Y,D.targetSectionIdentifier]):_.WC(this.hostElement,"yt-item-section-continuation-action",[D.continuationData,D.targetSectionIdentifier])};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],$J.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$J.prototype,"data",void 0);_.q([_.Lr({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],$J);
_.L($J,"yt-related-chip-cloud-renderer",function(){if(QlN===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;P9f===void 0&&(P9f=document.createElement("template"));var Z=P9f;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);QlN=D}D=QlN;return D},{mode:2});var vY=function(){var D=_.N.apply(this,arguments)||this;D.isTwoColumns=!0;D.hideOfferModules=!1;D.watchFeedBigThumbs=_.f("kevlar_watch_feed_big_thumbs");D.watchFeedBigThumbsOnLockup=_.f("web_watch_next_big_thumbs");D.watchNextGridHideChips=_.f("kevlar_watch_grid_hide_chips");D.eligibleToSwitchToGrid=_.f("web_watch_eligible_to_switch_to_grid");D.disableShortsShelfHeightOverride=_.f("web_shorts_wn_shelf_ratio_tuning");D.isWatchNextGrid=!1;D.reuseComponents=!_.f("kevlar_watch_grid");D.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return D};
_.n(vY,_.N);_.u=vY.prototype;
_.u.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:!_.f("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}}};
_.u.getItemsPath=function(){return"data.results"};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.u.created=function(){this.ytLazyListBehavior.initialCount=1};
_.u.ready=function(){_.SN(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.u.resultsChanged=function(){if(this.data&&this.data.results){for(var D=this.data.results,Y=null,R=null,Z=0;Z<D.length;Z++)D[Z].relatedChipCloudRenderer?Y=D[Z].relatedChipCloudRenderer:D[Z].itemSectionRenderer&&(R=D[Z].itemSectionRenderer);if(Y&&R)for(this.set("data.continuations",[]),D=_.A(Y.content,_.AhV).chips,Y=0;Y<D.length;Y++)if(Z=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",D[Y]),Z.loadCached||!Z.contents){Z.contents=R.contents;break}}};
_.u.dataChanged=function(){var D=this,Y;if((Y=this.data)!=null&&Y.results&&this.hasAllowedInstreamAd(this.playerData)){if(Y=this.data.results.filter(function(W){return!!W.promotedSparklesWebRenderer})){for(var R=0;R<Y.length;R++){var Z=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",Y[R]);
if(Z)for(var t=0;t<Z.length;t++)Z[t]&&Z[t].baseUrl&&_.qs(Z[t].baseUrl)}this.set("data.results",this.data.results.filter(function(W){return!W.promotedSparklesWebRenderer}))}if(Y=this.data.results.filter(function(W){return!!D.getSparklesAd(W)})){Y=_.a(Y);
for(t=Y.next();!t.done;t=Y.next())if(Z=R=void 0,t=(R=this.getSparklesAd(t.value))==null?void 0:(Z=R.errorCommand)==null?void 0:Z.loggingUrls)for(R=_.a(t),Z=R.next();!Z.done;Z=R.next())(Z=Z.value)&&Z.baseUrl&&_.qs(Z.baseUrl);var X,M;this.set("data.results",(X=this.data)==null?void 0:(M=X.results)==null?void 0:M.filter(function(W){return!W.adSlotRenderer}))}}};
_.u.getSparklesAd=function(D){var Y,R;D=_.A((Y=D.adSlotRenderer)==null?void 0:(R=Y.fulfillmentContent)==null?void 0:R.fulfilledLayout,_.r0E);return _.A(D==null?void 0:D.renderingContent,JSg)};
_.u.hasAllowedInstreamAd=function(D){D=this.get("adPlacements",D)||[];for(var Y=0;Y<D.length;Y++){var R=this.get("adPlacementRenderer.config.adPlacementConfig",D[Y]);if(R&&R.suppressDisplayAd)return!0}return!1};
_.u.computeHideUnlimitedOfferModule=function(D,Y){return D&&D.offerModule&&Y&&D.offerModule.unlimitedOfferModuleRenderer&&D.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(Y)?!0:!1};
_.u.hideUnlimitedOfferModuleChanged=function(){var D=_.aU(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");D&&(D.hidden=this.hideUnlimitedOfferModule)};
_.u.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var Y;(Y=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||Y.forEach(function(R){R.containerType=D})}};
_.u.computeHideTvfilmOfferModule=function(D,Y){var R,Z;return!!((D==null?0:(R=D.offerModule)==null?0:(Z=R.tvfilmOfferModuleRenderer)==null?0:Z.clientShouldSuppressIfCompanionAdDisplayed)&&Y&&this.hasCompanionAds(Y))};
_.u.hideTvfilmOfferModuleChanged=function(){var D=_.aU(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");D&&(D.hidden=this.hideTvfilmOfferModule)};
_.u.hasCompanionAds=function(D){D=this.get("adPlacements",D)||[];for(var Y=0;Y<D.length;Y++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",D[Y]))return!0;var R=void 0,Z=void 0,t=void 0;if(!_.f("web_watch_top_banner_companion_check_killswitch")&&((R=D[Y])==null?0:(Z=R.adPlacementRenderer)==null?0:(t=Z.renderer)==null?0:t.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.u.hasSuppressedResults=function(D){return D==null?!0:D.filter(function(Y){return!Y.continuationItemRenderer&&!Y.compactPromotedVideoRenderer&&!Y.promotedSparklesWebRenderer}).length===0};
_.u.computeShowButton=function(D,Y){return this.isWatchNextGrid?D:D||this.hasSuppressedResults(Y)};
_.u.showButtonChanged=function(){if(this.isWatchNextGrid){var D=_.aU(this.hostElement).querySelector("ytd-rich-grid-renderer");D&&this.showButton!==null&&(D.continuationShowButton=this.showButton)}else{D=_.aU(this.hostElement).querySelector("yt-next-continuation");var Y=_.aU(this.hostElement).querySelector("ytd-continuation-item-renderer"),R=_.aU(this.hostElement).querySelector("ytd-item-section-renderer");D&&(D.showButton=this.showButton);Y&&(Y.showButton=this.showButton);R&&(R.continuationShowButton=
this.showButton)}};
_.u.continuationTap=function(D){var Y;if(((Y=this.data)==null?void 0:Y.continuations)!=null&&D.target.tagName==="TP-YT-PAPER-BUTTON")for(D=this.data.continuations,Y=0;Y<D.length;Y++)D[Y].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(D[Y].nextContinuationData||{})};
_.u.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("shown-items-changed",this.shownItems))};
_.YF.Object.defineProperties(vY.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 D;return!((D=this.shownItems)==null||!D.some(function(Y){return!!Y.lockupViewModel||Y.compactVideoRenderer}))}}});
vY.prototype.shownItemsChangedForBinding=vY.prototype.shownItemsChangedForBinding;vY.prototype.showButtonChanged=vY.prototype.showButtonChanged;vY.prototype.hideTvfilmOfferModuleChanged=vY.prototype.hideTvfilmOfferModuleChanged;vY.prototype.updateLockupContainerTypes=vY.prototype.updateLockupContainerTypes;vY.prototype.hideUnlimitedOfferModuleChanged=vY.prototype.hideUnlimitedOfferModuleChanged;vY.prototype.dataChanged=vY.prototype.dataChanged;vY.prototype.resultsChanged=vY.prototype.resultsChanged;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],vY.prototype,"ytLazyListBehavior",void 0);_.q([_.v(_.Bz.YtNextContinuationBehavior),_.x("design:type",Object)],vY.prototype,"ytNextContinuationBehavior",void 0);
_.q([_.v(_.Qw),_.x("design:type",Object)],vY.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],vY.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vY.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],vY.prototype,"playerData",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],vY.prototype,"autoFill",void 0);_.q([_.y({value:60}),_.x("design:type",Number)],vY.prototype,"targetFramerate",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],vY.prototype,"isTwoColumns",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],vY.prototype,"hideOfferModules",void 0);_.q([_.y(),_.x("design:type",Object)],vY.prototype,"shownItems",void 0);_.q([_.y({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.x("design:type",Boolean)],vY.prototype,"hideUnlimitedOfferModule",void 0);
_.q([_.y({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.x("design:type",Boolean)],vY.prototype,"hideTvfilmOfferModule",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],vY.prototype,"watchFeedBigThumbs",void 0);_.q([_.y(),_.x("design:type",Object)],vY.prototype,"watchFeedBigThumbsOnLockup",void 0);_.q([_.y(),_.x("design:type",Object)],vY.prototype,"watchNextGridHideChips",void 0);_.q([_.y(),_.x("design:type",Object)],vY.prototype,"eligibleToSwitchToGrid",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],vY.prototype,"disableShortsShelfHeightOverride",void 0);_.q([_.y({selector:_.mI,reflectToAttribute:!0}),_.x("design:type",Object)],vY.prototype,"isGridViewEnabled",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],vY.prototype,"showMoreButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],vY.prototype,"isWatchNextGrid",void 0);
_.q([_.y({computed:"computeShowButton(showMoreButton, data.results)"}),_.x("design:type",Boolean)],vY.prototype,"showButton",void 0);_.q([_.rd("data.results.*"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vY.prototype,"resultsChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vY.prototype,"dataChanged",null);
_.q([_.Gm("hideUnlimitedOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vY.prototype,"hideUnlimitedOfferModuleChanged",null);_.q([_.b("isGridViewEnabled","containsLockups","data"),_.y({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],vY.prototype,"lockupContainerType",null);
_.q([_.Gm("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],vY.prototype,"updateLockupContainerTypes",null);_.q([_.Gm("hideTvfilmOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vY.prototype,"hideTvfilmOfferModuleChanged",null);_.q([_.Gm("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vY.prototype,"showButtonChanged",null);
_.q([_.Gm("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vY.prototype,"shownItemsChangedForBinding",null);_.q([_.b("shownItems"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vY.prototype,"containsLockups",null);
_.L(vY,"ytd-watch-next-secondary-results-renderer",function(){if(U$f===void 0){var D=document.createElement("template");_.w(D,'\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" hidden="[[hideOfferModules]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);U$f=D}D=U$f;return D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var kd0=new _.Dv("replaceFeedContentAction");var U2k;var Kjk;var wF=function(){return _.N.apply(this,arguments)||this};
_.n(wF,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wF.prototype,"data",void 0);_.q([_.h({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],wF);
_.L(wF,"ytd-sub-feed-option-renderer",function(){if(Kjk!==void 0)return Kjk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Kjk=D},{mode:1});var hTh;var $9=function(){return _.N.apply(this,arguments)||this};
_.n($9,_.N);$9.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$9.prototype,"ytRendererStamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$9.prototype,"data",void 0);_.q([_.h({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],$9);
_.L($9,"ytd-sub-feed-selector-renderer",function(){if(hTh!==void 0)return hTh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hTh=D},{mode:1});var vq=function(){return _.N.apply(this,arguments)||this};
_.n(vq,_.N);
vq.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}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vq.prototype,"data",void 0);_.q([_.h({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],vq);
_.L(vq,"ytd-browse-feed-actions-renderer",function(){if(U2k!==void 0)return U2k;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return U2k=D},{mode:1});var Lj0;var m2k;var od=function(){return _.N.apply(this,arguments)||this};
_.n(od,_.N);od.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],od.prototype,"data",void 0);_.q([_.h({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],od);
_.L(od,"ytd-mini-channel-renderer",function(){if(m2k!==void 0)return m2k;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return m2k=D},{mode:1});var q29;var bw=function(){return _.N.apply(this,arguments)||this};
_.n(bw,_.N);bw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bw.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],bw);
_.L(bw,"ytd-vertical-channel-section-renderer",function(){if(q29!==void 0)return q29;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return q29=D},{mode:1});var yS=function(){return _.N.apply(this,arguments)||this};
_.n(yS,_.N);yS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yS.prototype,"data",void 0);_.q([_.h({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],yS);
_.L(yS,"ytd-browse-secondary-contents-renderer",function(){if(Lj0!==void 0)return Lj0;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return Lj0=D},{mode:1});var HPT;var NR=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};D.notActive=!1;D.isConstrainedList=!1;return D};
_.n(NR,_.N);_.u=NR.prototype;
_.u.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]]"},matcher:function(D){var Y;return(D==null?void 0:(Y=D.webComponentHint)==null?void 0:Y.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}}}}};
_.u.getPath=function(D,Y){var R="data.tabs.#"+Y+".";D.tabs[Y].tabRenderer?R+="tabRenderer.":D.tabs[Y].expandableTabRenderer&&(R+="expandableTabRenderer.");return R+"content.sectionListRenderer"};
_.u.computeDisplayedContent=function(D){this.unlinkPaths("content");if(D&&D.tabs)for(var Y=D.tabs.length,R=0;R<Y;R++){var Z=D.tabs[R].tabRenderer||D.tabs[R].expandableTabRenderer;if(Z.selected&&Z.content)return this.linkPaths("content",this.getPath(D,R)),Z.content}return null};
_.u.computeHasSecondaryColumnData=function(D){return!!D&&!!D.secondaryContents};
_.u.onRetrieveLocation=function(D,Y){Y.locationRetrieved(Y.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);D.stopPropagation()};
_.u.onYtServiceRequestSent=function(D,Y){_.f("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Y)};
_.u.onYtServiceRequestCompleted=function(D,Y){_.f("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Y)};
_.u.onReplaceFeedContentAction=function(D){if(!_.f("replace_feed_content_action_killswitch")&&!this.notActive){var Y;(D=(Y=_.A(D,kd0))==null?void 0:Y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(D)}};
_.u.handleServiceRequestActions=function(D){if(D=D.actions){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=void 0;((R=_.A(Y,kd0))==null?0:R.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.A(Y,kd0).items)}}};
NR.prototype.onYtServiceRequestCompleted=NR.prototype.onYtServiceRequestCompleted;NR.prototype.onYtServiceRequestSent=NR.prototype.onYtServiceRequestSent;NR.prototype.onRetrieveLocation=NR.prototype.onRetrieveLocation;_.q([_.v(_.PH),_.x("design:type",Object)],NR.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],NR.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],NR.prototype,"data",void 0);_.q([_.y({computed:"computeDisplayedContent(data)"}),_.x("design:type",Object)],NR.prototype,"content",void 0);
_.q([_.y({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],NR.prototype,"hasSecondaryColumnData",void 0);_.q([_.y({value:function(){return window.outerHeight>1024?3:2}}),
_.x("design:type",Number)],NR.prototype,"initialCount",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],NR.prototype,"pageSubtype",void 0);_.q([_.fr("ytd-section-list-renderer"),_.x("design:type",Object)],NR.prototype,"listRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],NR.prototype,"notActive",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],NR.prototype,"isConstrainedList",void 0);
_.q([_.y(),_.x("design:type",String)],NR.prototype,"responsiveSizing",void 0);_.q([_.Fv("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],NR.prototype,"onRetrieveLocation",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],NR.prototype,"onYtServiceRequestSent",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],NR.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],NR);
_.L(NR,"ytd-two-column-browse-results-renderer",function(){if(HPT!==void 0)return HPT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return HPT=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var owB=function(D){if((D==null?void 0:D.value)===void 0||D==null||!D.unit)return"initial";a:{switch(D.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var Y="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":Y="%";break a}Y=void 0}return Y?""+D.value+Y:"initial"},bvB=new _.Dv("shoppingContentLineItemViewModel");var yT7=_.RT(function(D){var Y=_.YC(D,{}).data;return _.S("yt-shopping-content-line-item-view-model",{class:_.e7("ytShoppingContentLineItemViewModelHost")},_.S(_.y_,{text:function(){var R;return(R=Y().text)==null?void 0:R.attributedString}}))},"uk");var NP7=_.RT(function(D){D=_.YC(D,{});var Y=D.data;return _.S("yt-shopping-content-line-view-model",{class:_.e7("ytShoppingContentLineViewModelHost",D.className),style:_.Ap({"--shopping-content-line-gap":function(){return Y().itemGap?Y().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return Y().lineHeight?Y().lineHeight+"px":void 0}})},_.S(_.G6,{each:function(){return(Y().items||[]).map(function(R){return _.A(R,bvB)}).filter(function(R){return!!R})}},function(R){return _.S(yT7,{data:R})}))},"vk");_.at(_.RT(function(D){var Y=_.YC(D,{}).data,R=function(){var t;return((t=Y().image)==null?void 0:t.width)||40},Z=function(){var t;
return((t=Y().image)==null?void 0:t.height)||40};
return _.S("yt-shopping-timely-shelf-content-view-model",{el:_.tp(_.mp(function(){var t;return(t=Y())==null?void 0:t.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.e7("ytShoppingTimelyShelfContentViewModelHost"),style:_.Ap({"--shopping-timely-shelf-content-padding-top":function(){var t;return owB((t=Y().padding)==null?void 0:t.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var t;return owB((t=Y().padding)==null?void 0:t.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var t;return owB((t=Y().padding)==null?void 0:t.start)},
"--shopping-timely-shelf-content-padding-end":function(){var t;return owB((t=Y().padding)==null?void 0:t.end)}})},_.S(_.T,{cond:function(){var t;
return(t=Y().image)==null?void 0:t.image},
then:function(t){return _.S(_.Rt,{preserveHeight:!0,preserveWidth:!0,width:R,height:Z,data:t,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz}),_.S("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.S(_.vK,{data:function(){return Y().line1}},{shoppingContentLineViewModel:function(t){return _.S(NP7,{data:t.data})}}),_.S(_.vK,{data:function(){return Y().line2}},{shoppingContentLineViewModel:function(t){return _.S(NP7,
{data:t.data})}})),_.S("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.S(_.G6,{each:function(){var t;
return(t=Y().button)!=null?t:[]}},function(t){return _.S(_.vK,{data:function(){return t}},{buttonViewModel:_.TV})})))},"wk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.cs}});_.lHB={};
_.lHB.YtdWatchBehavior=[_.p.YtRendererBehavior,_.iH.YtPlayerListenerBehavior,_.a$.YtRendererstamperBehavior,_.Va.YtActionHandlerBehavior,_.Kz.YtPageBehavior,_.GV.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 _.ks("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.f("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("full_bleed_single_column_default_player")}},
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 _.ks("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)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_error_screen_fix")}},
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,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 _.f("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.f("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 _.ZH("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ZH("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)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.f("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.f("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.f("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},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);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var D={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:_.OZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.OZ(["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"||_.f("swa_prov_panels_ks")?D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},D.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return D},
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 D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.f("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=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;_.f("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.f("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.TPf(function(){return _.tx(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.f("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.W6;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;_.f("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));_.f("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.jN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.f("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.f("kevlar_watch_while_v2")&&!_.f("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.MX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var Y=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var R;(R=this.watchController)==null||R.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.k8({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.KX("nw");this.loading=!1;_.Ak(_.yc,function(){Y.initDclkstatus_();var Z,t=((Z=Y.player)==null?void 0:Z.getVideoData().cpn)||"";_.cQB(function(X,M){_.jDK(X,M,t)})})},
onPageLoadWithSameData_:function(){_.f("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 D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;if(_.f("kevlar_watch_frame0_loading_state")){var Y,R,Z;D=(Y=this.loadingData)==null?void 0:(R=Y.endpoint)==null?void 0:(Z=R.watchEndpoint)==null?void 0:Z.videoId;var t;D&&(t="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.aU(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.aU(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Y,R;(R=(Y=this.watchMetadata).updateSentimentBarWidth)==
null||R.call(Y);var Z,t;(t=(Z=this.watchMetadata).resize)==null||t.call(Z)}_.f("kevlar_watch_frame0_loading_state")&&(_.aU(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(D){var Y=_.aU(this.hostElement).querySelector(D);Y?_.Xa(Y,!1):_.Jk(new _.AT("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var Y=_.aU(this.hostElement).querySelector(D);Y?_.ui(Y):_.Jk(new _.AT("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.f("web_thumbnail_to_watch_transition")&&!_.$ck||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.f("web_thumbnail_to_watch_transition")&&!_.$ck||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(D){var Y=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.yc.addLowPriorityJob(function(){Y.onWindowResized_(_.w$(!0))})},
updateTheaterModeState_:function(D){if(!_.f("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.DUf()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.f("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var D=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.f("external_fullscreen")&&this.fullscreen&&(D=!0);_.f("web_watch_error_screen_fix")&&(D=this.fullBleedPlayer);D=D?_.aU(this.hostElement).querySelector("#player-full-bleed-container"):_.aU(this.hostElement).querySelector("#player-container-inner");var Y=this.getPlayerContainer(),R=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip");Y.parentElement!==D&&(R&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.tx(this).appendTo(D,Y),_.f("web_watch_error_screen_fix")||D.appendChild(_.aU(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var D=_.aU(this.hostElement).querySelector("#error-screen"),Y=this.fullBleedPlayer?_.aU(this.hostElement).querySelector("#player-full-bleed-container"):_.aU(this.hostElement).querySelector("#player");D.parentElement!==Y&&Y.appendChild(D)},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.DH().resolve(_.mL).deactivate(),2);D.updatePlayerLocation();_.V9(Y)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var Y=this.getCinematicsLocationContainer();D.parentElement!==Y&&Y.appendChild(D);var R;(R=this.watchController)==null||R.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.aU(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.aU(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(D,Y,R){var Z=document.documentElement.hasAttribute("dark"),t=Z&&_.f("web_cinematic_theater_mode"),X=Z&&_.f("web_cinematic_fullscreen");Z=!Z&&this.cinematicLightTheme;return R||D&&t||Y&&X||(Y||D)&&Z},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D=this,Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data);_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.DH().resolve(_.xW).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.f("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.yc.addLowPriorityJob(function(){_.WC(D.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.f("web_watch_start_chat_in_theater_mode")){var R,Z,t;if((R=this.data)==null?0:(Z=R.contents)==null?0:(t=Z.twoColumnWatchNextResults)==null?0:t.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var X,M;((X=this.data)==null?0:(M=X.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(D){var Y;(Y=this.watchController)==null||Y.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(Y=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),Y&&!D||_.cy(this,function(){_.KX("pbu")}));
this.setPlayerAds_();_.WC(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(D,Y){if((_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"))&&this.playerData&&Y)return this.playerData.videoDetails},
watchPageActiveChanged_:function(D){_.Dl().dispatch(_.wDy(this.active));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new _.mX(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);_.f("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Y=_.tx(this);_.f("kevlar_disable_prepare_player")||
Y.preparePlayer();_.f("kevlar_watch_flexy_playlist_manager")||_.DH().resolve(_.xW).setPlayer(Y);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();Y={"--ytd-watch-flexy-scrollbar-width":_.g6()+"px"};this.is==="ytd-watch-grid"&&(Y["--ytd-watch-flexy-sidebar-width"]=_.J9o+"px",Y["--ytd-watch-grid-horizontal-page-margins"]=_.LR+"px",Y["--ytd-watch-grid-columns-top-margins"]=_.y9$+"px",Y["--ytd-watch-grid-min-player-height-medium"]="360px");!_.ZH("kv_pl_mx_sz_ks")&&
_.ZH("kevlar_watch_max_player_width")&&(Y["--ytd-watch-flexy-max-player-width-wide-screen"]=_.kTo+"px");_.ZH("kevlar_watch_flexy_metadata_height")&&(Y["--ytd-watch-flexy-space-below-player"]=_.Ukg+"px");this.safeUpdateStyles(Y);_.f("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.zu(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.aU(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var D=_.g6(),Y=_.mN+D,R=Y;this.fixedPanels&&(Y+=_.J9o);var Z=657+D;D=1327+D;_.aU(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Y+"px)";_.aU(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(Y+"px) and (max-width: ")+(D+"px)");_.aU(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.aU(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+R+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var D=_.aU(this.hostElement).querySelector("#miniplayer-bar").firstChild,Y=this.squeezeback&&!_.f("web_watch_squeezeback_player_size_killswitch");return D&&D.active||this.theater||_.f("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||Y||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.FL(NaN,NaN):_.t$o(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.t$o(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.OG(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.w$());_.f("browse_skeleton_removal_on_watch_killswitch")||_.ks("IS_SHELL_LOAD")&&_.Pcb();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Y=_.tx(this);Y.addEventListener("yt-player-updated",_.jN(this,this.onPlayerUpdated_));Y.getPlayerPromise().then(function(R){D.playerApiReady_(R)});
_.f("kevlar_watch_flexy_playlist_manager")||(Y=_.DH().resolve(_.xW),_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.addEventListener("yt-navigate",_.jN(this,this.onYtNavigate_)),Y.setPlaylistComponent(_.aU(this.hostElement).querySelector("#playlist")),Y.addEventListener("yt-playlist-data-updated",_.jN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.yc.addLowPriorityJob(function(){_.MX(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.tx(this).removeEventListener("yt-player-updated",_.jN(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.f("kevlar_watch_flexy_playlist_manager")){var D=_.DH().resolve(_.xW);_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.jN(this,this.onYtNavigate_));
D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.jN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.MX(this.hostElement,"yt-autonav-pause-player",!1);D=_.t4();_.f("kevlar_exit_fullscreen_leaving_watch")&&D&&_.s7(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.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(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,Y){Y.hasComments?Y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Y.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,Y){this.player&&(Y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Uu("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.aU(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.aU(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.f("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.f("kevlar_unified_player")||_.f("kevlar_player_new_bootstrap_adoption"))&&_.Bl()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,Y){Y=Y===void 0?!0:Y;_.t4()&&_.f("external_fullscreen")&&_.s7(document.documentElement);this.theaterRequested_=D;Y&&_.GZ("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.CX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.MX(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(D){_.kN(D,typeof this.player),this.player&&_.kN(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.CX(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,Y){return this.loading?Y:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.youThereRenderer&&_.Fzg(this.youThereManager_,Y.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Y=this.youThereManager_;_.Ro()<D.lowEngagementThresholdMs||_.erG(Y,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.CX(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,Y,R){return!!D&&!this.isVideoPlayable_(D,R)&&!Y},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,Y){if(!D)return!1;var R=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var t;Y=Y==null?void 0:(t=Y.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!R||!!Z||!!D||!!Y},
hasWatchNextResponseErrorRenderer:function(D){var Y=this.getPageContents(D),R,Z,t,X,M;return!(D==null?0:(R=D.contents)==null?0:(Z=R.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((t=Y[0])==null?0:(X=t.itemSectionRenderer)==null?0:(M=X.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,Y,R){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.f("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&t.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var X=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);X==void 0&&(X=!0);!R||this.isVideoPlayable_(D,this.getPlayerOverlays_(Y))||
Z||t||!X||_.DH().resolve(_.xW).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.XrJ()},
onPlayerFeedbackStartRequest_:function(D){_.CX(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.CX(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,Y,R,Z,t,X,M,W,z=((D=this.data)==null?NaN:(Y=D.contents)==null?NaN:(R=Y.twoColumnWatchNextResults)==null?NaN:(Z=R.secondaryResults)==null?NaN:(t=Z.secondaryResults)==null?NaN:(X=t.offerModule)==null?NaN:(M=X.tvfilmOfferModuleRenderer)==null?NaN:(W=M.actionButtons)==null?NaN:W.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(z>=0?z:0)+".buttonRenderer."];Y=_.a(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(R=Y.next();!R.done;R=Y.next())for(R=R.value,Z=_.a(D),t=Z.next();!t.done;t=Z.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+R+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.Vu(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.MX(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.MX(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.Dl().dispatch(_.u24(D))},
onPlayerSubscribe_:function(D){_.CX(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.CX(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.CX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
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(D){return!_.f("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.f("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.f("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var D,Y,R,Z;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.secondaryResults)==null?void 0:Z.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.f("swatcheroo_pbs_load_grid")&&!_.f("swatcheroo_provide_all_data_on_scheduled_job")){_.yc.cancelJob(this.setRichGridJobId_);var D,Y,R,Z,t,X,M;this.setRichGridRendererData((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.secondaryResults)==null?void 0:(t=Z.secondaryResults)==null?void 0:(X=t.results)==null?void 0:(M=X[0])==null?
void 0:M.richGridRenderer)}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,Y=(D=this.data)==null?void 0:D.engagementPanels;if(Y==null?0:Y.length){D=null;Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;if(((Z=R.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){D=R;break}}var t,X,M;D=(t=D)==null?void 0:(X=t.engagementPanelSectionListRenderer)==null?void 0:(M=X.content)==null?void 0:M.structuredDescriptionContentRenderer;if(D==null?0:D.items){t=
[];X=_.a(D.items);for(M=X.next();!M.done;M=X.next()){M=M.value;if(!_.f("sd_horizontal_list_show_nav_killswitch")){var W=Z=R=Y=D=void 0,z=void 0,I=(D=M.horizontalCardListRenderer)==null?void 0:(Y=D.header)==null?void 0:(R=Y.richListHeaderRenderer)==null?void 0:(Z=R.navigationButton)==null?void 0:(W=Z.buttonRenderer)==null?void 0:(z=W.command)==null?void 0:z.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(F){return!_.A(F,_.dUg)}))}(!M.expandableVideoDescriptionBodyRenderer&&
!M.videoDescriptionHeaderRenderer||_.f("web_delhi_colorful_sd"))&&t.push(M)}return{items:t}}}},
constructWarning_:function(D){return{text:_.i0(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.MX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Y=this.getScrollTop()>0;this.gestures_&&(Y?this.gestures_.detach():this.gestures_.attach());Y!==this.showFullerscreenEdu_&&_.f("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Y,_.tx(this).getPlayerPromise().then(function(R){R.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.MX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.yc.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ak(_.yc,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.f("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.KX("cmi");_.yc.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,this.get("itemSectionRenderer.sectionIdentifier",Y)==="comment-item-section"){this.comments=Y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.MX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.KX("cmc")},
doRemoveComments_:function(){this.comments={};_.f("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.yc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.yc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,Y){var R=_.A(Y.endpoint,_.Od);R&&(!(Y=this.get("data.currentVideoEndpoint.watchEndpoint"))||R.videoId!==Y.videoId||R.playlistId&&R.playlistId!==Y.playlistId||R.index!==void 0&&R.index!==Y.index||typeof R.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.tx(this).getPlayerPromise().then(function(Z){var t=R.startTimeSeconds;Z.seekTo(t);Z.wakeUpControls();t<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.P1T();"t"in D&&(D=_.snJ(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var Y,R;(D=_.OM(D==null?void 0:(Y=D[0])==null?void 0:(R=Y.videoPrimaryInfoRenderer)==null?void 0:R.title))&&_.MX(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.MX(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,Y,R){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===R&&(R=Z.list,_.f("polymer_enable_mdx_queue")&&R&&R.startsWith("RQ")&&(R=void 0),Z.video_id!==D||R!=Y)){var t;_.f("kevlar_player_watch_endpoint_navigation")?t=_.Q3U(_.DET(D,Y)):t=this.buildWatchEndpoint_(D,Y);_.MX(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,Y,R){return _.ZQ(D,Y,R)},
initDclkstatus_:function(){_.ZvB()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var Y=D.querySelector("#primary-info"),R=D.querySelector("#secondary-info"),Z=D.querySelector("#related");Y&&_.aU(this.hostElement).querySelector("#info-skeleton").appendChild(Y);R&&_.aU(this.hostElement).querySelector("#meta-skeleton").appendChild(R);Z&&(_.aU(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.F_(D)}},
handlePlayerUpdated_:function(){_.tx(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,Y){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof Y!=="undefined"){var R=this.watchNextSkeletonEl_.children,Z=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,R.length);Y||(Z=0,D=R.length);for(Y=Z;Y<D;Y++)R[Y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.f("external_fullscreen")||_.CX(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var Y=_.tx(this);Y.getPlayerPromise().then(function(R){R.setFauxFullscreen(!!_.t4())});
this.updateFullBleedElementLocations();D&&(Y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,Y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Y},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,Y){return Y&&!!D},
computeResponseHasComments:function(D){var Y,R,Z,t,X;return!!(D==null?0:(Y=D.contents)==null?0:(R=Y.twoColumnWatchNextResults)==null?0:(Z=R.results)==null?0:(t=Z.results)==null?0:(X=t.contents)==null?0:X.some(function(M){var W;return(M==null?void 0:(W=M.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,Y,R,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Z?!1:!!D&&!!Object.keys(D).length&&!Y},
identity:_.kn,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var Y=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.tx(this).getPlayerPromise().then(function(R){var Z=R.getPlayerState();Z!==5&&Z!==0&&(R=1/R.getVideoAspectRatio(),Y.videoHeightToWidthRatio_!==R&&(Y.videoHeightToWidthRatio_=R))})},
schedulePlayerSizeUpdate_:function(D){var Y=this,R=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"),Z=function(){if(Y.watchMetadata){var t,X;(X=(t=Y.watchMetadata).resize)==null||X.call(t)}_.tx(Y).getPlayerPromise().then(function(M){if(_.f("kevlar_set_internal_player_size")){if(!R||!Y.isMiniplayerActive()){var W=Y.calculateCurrentPlayerSize_();M.setInternalSize(W.width,W.height)}}else M.setSize(NaN,NaN);_.f("kevlar_watch_while")&&Y.updateWatchWhileScrollThreshold_()})};
D?Z():_.$c(_.yc,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.A(D,_.SKJ).survey)},
onDownloadedVideoDeleted:function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1){if(!Y.active||(R=Y.playerData)==null||!R.offlineState||Y.videoId!==D)return t.return();(Z=Y.player)==null||Z.stopVideo();_.AG().navigatingAwayFromWatchDeletedVideo=!0;_.Vu(_.hzU,Y.hostElement);return t.yield(_.AG().navigationFinishPromise,2)}_.AG().navigatingAwayFromWatchDeletedVideo=!1;_.V9(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.UR(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.aU(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var Y=this.windowSize_.height>=624,R=this.active?this.getScrollTop():0;!D.active&&Y&&R>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!Y||R<this.watchWhileScrollThreshold_&&!_.t4())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var D=_.aU(this.hostElement).querySelector("#secondary-inner");if(D){var Y=_.aU(this.hostElement).querySelector("#below"),R=_.aU(this.hostElement).querySelector("#secondary"),Z=_.aU(this.hostElement).querySelector("#comments");Z&&R&&Y&&(this.defaultTwoColumnLayout?(D.appendChild(Z),R.appendChild(D)):(Y.appendChild(Z),_.KR(Y,D)))}}},
isTwoColumnsChanged_:function(D,Y){if(D!==!0||Y!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(D=_.aU(this.hostElement).querySelector("#secondary-inner"))){Y=_.aU(this.hostElement).querySelector("#below");var R=_.aU(this.hostElement).querySelector("#secondary"),Z=_.aU(this.hostElement).querySelector("#comments");Z&&R&&Y&&(this.isTwoColumns_?(D.appendChild(Z),R.appendChild(D)):(Y.appendChild(Z),
_.KR(Y,D)))}}else{D=!_.f("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);Y=_.aU(this.hostElement).querySelector("#panels");var t=_.aU(this.hostElement).querySelector("#alerts");R=_.aU(this.hostElement).querySelector("#playlist");Z=_.aU(this.hostElement).querySelector("#related");var X=_.aU(this.hostElement).querySelector("#donation-shelf"),M=_.aU(this.hostElement).querySelector("#comments");this.isTwoColumns_?(t=_.aU(this.hostElement).querySelector("#secondary-inner"),
D&&(t.appendChild(Y),t.appendChild(R)),t.appendChild(X),t.appendChild(Z)):(D&&(_.Nq(Y,t),_.Nq(R,t)),_.Nq(X,t),M&&_.Nq(Z,M));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.f("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.f("web_watch_enable_fs_squeezeback_panels")&&_.f("web_watch_theater_chat")){var D=_.aU(this.hostElement).querySelector("#chat-container"),Y=this.theater&&!this.fullscreen||_.f("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Y?(Y=_.aU(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==Y&&Y.append(D),this.fixedPanels=!0):(this.fixedPanels=
!1,Y=_.aU(this.hostElement).querySelector("#playlist"),D&&Y?_.l3(D,Y):_.Jk(new _.AT("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!Y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,Y){return _.f("sw_metadata_vis_toggle_ks")?!0:!!D||!!Y},
computeForceDarkPanelTheme:function(D){return _.f("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.SN(this.hostElement,D)}catch(Y){_.Jk(Y)}},
videoHeightToWidthRatioChanged_:function(D,Y){Y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.tx(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.tx(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ATZ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var Y=_.FJ(D)||0;_.I8(D,Y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.FJ("yt-fullerscreen-edu-button-click-count")||0,Y=_.FJ("yt-fullerscreen-edu-button-shown-count")||0,R=_.ZH("external_fullscreen_button_shown_threshold"),Z=D>=_.ZH("external_fullscreen_button_click_threshold")||Y>=R;_.tx(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,Y){return Y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.DH().resolve(_.xW).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var D=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.yc.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.yc.addLowPriorityJob(function(){D.fullHeightPanelPositionUpdateJobId=0;var Y=_.aU(D.hostElement).querySelector("#secondary"),R=_.aU(D.hostElement).querySelector("#fixed-secondary");Y=Y.getBoundingClientRect();var Z=Y.width;D.swatcherooSqueezeback&&
(Z+=_.LR);if(D.swatcherooSqueezeback){var t=_.aU(D.hostElement).querySelector("#squeezeback-constraining-container");t.style.width=Z+"px";t.style.flex="0 0 "+Z+"px"}R.style.width=Z+"px";R.style.left=Y.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.yc.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.yc.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var Y;!D.isTwoColumns_||D.theater||D.fullscreen?Y=460:Y=D.calculateNormalPlayerSize_().height;var R=Y+"px";_.f("live_chat_taller_height")&&!D.theater&&(R="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.f("live_chat_medium_height")&&!D.theater&&(R="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.f("live_chat_scaled_height")&&!D.theater&&(R="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Y+"px","--ytd-watch-flexy-chat-max-height":R,"--ytd-watch-flexy-structured-description-max-height":Y+"px","--ytd-watch-flexy-comments-panel-max-height":Y+"px","--ytd-comments-engagement-panel-content-height":Y+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Se(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var Y=_.aU(this.hostElement).querySelector("#engagement-panel-scrim");D?Y.addEventListener("tap",_.jN(this,this.onEngagementPanelScrimClick_)):Y.removeEventListener("tap",_.jN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var Y=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var R=this.getPageScrollingElement(),Z=this.getScrollTop(),t=Z+R.clientHeight-56;if(Y<Z+56)Y-=56;else if(D>t)Y=D-R.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.f("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.GI().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,Y,R){if(this.active&&this.trackEngagementPanelVisibility&&!_.Wzo.includes(R)){if(Y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.WC(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var Z=_.DH().resolve(_.b6);this.visiblePanelIdentifiers_.forEach(function(t){t!==R&&Z.hidePanel(t)})}this.visiblePanelIdentifiers_.add(R)}Y!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(R);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeIsSingleColumn:function(D,Y){return Y&&!D},
computeFullBleedPlayer:function(D,Y,R){return _.f("web_watch_error_screen_fix")?_.f("external_fullscreen")&&D||Y||this.enableFullBleedSingleColumnDefaultPlayer&&R:D||Y||this.enableFullBleedSingleColumnDefaultPlayer&&R},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,Y){return!D&&Y},
updatePanelsLocation:function(){if(_.f("web_watch_enable_fs_squeezeback_panels")){var D=_.aU(this.hostElement).querySelector("#below"),Y=_.aU(this.hostElement).querySelector("#panels"),R=_.aU(this.hostElement).querySelector("#playlist"),Z=_.aU(this.hostElement).querySelector("#chat-container"),t=_.aU(this.hostElement).querySelector("#panels-full-bleed-container"),X=_.aU(this.hostElement).querySelector("#secondary-inner");if(D&&Y&&R&&Z&&t&&X){var M=this.fullscreen||this.theater&&this.iMaxTheaterMode,
W=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;M?(t.appendChild(Y),t.appendChild(Z),t.appendChild(R)):this.isTwoColumns_?(W?(D=_.aU(this.hostElement).querySelector("#columns"),(Z==null?void 0:Z.parentElement)!==D&&D.append(Z),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.KR(X,Z),_.KR(X,Y),_.KR(X,R)):(D.appendChild(Y),D.appendChild(Z),D.appendChild(R))}}},
swatcherooUpdatePanelsLocation:function(D,Y,R,Z,t,X){if(this.is==="ytd-watch-grid"){Y=D&&!Y;this.swatcherooSplitScroll&&(Y?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));R=_.aU(this.hostElement).querySelector("#panels");var M=_.aU(this.hostElement).querySelector("#playlist"),W=_.aU(this.hostElement).querySelector("#fixed-secondary"),z=_.aU(this.hostElement).querySelector("#fixed-below"),
I=_.aU(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),F=_.aU(this.hostElement).querySelector("#chat-container");X&&(D?W.appendChild(R):z.appendChild(R));t?D?W.appendChild(F):z.appendChild(F):_.l3(F,I);Z?D?W.appendChild(M):z.appendChild(M):_.l3(M,I);this.swatcherooSplitScroll&&(D=_.aU(this.hostElement).querySelector("#secondary"),Z=_.aU(this.hostElement).querySelector("#columns"),t=_.aU(this.hostElement).querySelector("#fixed-columns-secondary"),Y?
t.appendChild(D):Z.appendChild(D))}},
computeMetadataSkinnyMode:function(D,Y,R){return this.is!=="ytd-watch-grid"?!1:D?R:Y},
computeWatchWhilePanelsActive:function(D,Y){return D||Y},
computeNoBorderOnChat:function(D){return _.f("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,Y){return D&&!Y},
computePanelExpanded:function(D,Y,R){return D||Y||R},
computeSqueezeback:function(D,Y,R,Z){if(_.f("web_watch_enable_fs_squeezeback_panels")){var t=this.iMaxTheaterMode&&this.theater;return(D||Y||R)&&(Z||t)}},
computeSwatcherooSqueezeback:function(D,Y,R){return this.is!=="ytd-watch-grid"||_.f("ww_squeezeback_killswitch")?!1:D&&Y&&R},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(D){_.tx(this).getPlayerPromise().then(function(Y){var R;(R=Y.changeMarkerVisibility)==null||R.call(Y,_.A(D,_.Pv).isVisible||!1,_.A(D,_.Pv).entityKeys||[],_.A(D,_.Pv).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.Dl().dispatch(_.CxE(D.detail));if(!this.liveChatCollapsed&&this.squeezeback){var Y=_.DH().resolve(_.b6);this.visiblePanelIdentifiers_.forEach(function(R){Y.hidePanel(R)})}},
onSetPlaylistCollapsed:function(D){_.f("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!D)},
provideRenderingData:function(D,Y){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Y;break;case "PRIMARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Y);this.videoPrimaryInfoRendererValue=Y==null?void 0:Y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Y);this.videoSecondaryInfoRendererValue=Y==null?void 0:Y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Y;break;case "CLARIFICATION":this.clarifyBoxValue=Y;break;case "LIVE_CHAT":this.conversationBar=Y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Y;break;case "PLAYLIST":this.externalPlaylistData_=Y!=null?Y:{};break;case "MERCH_SHELF":this.merchShelfValue=Y==null?void 0:Y.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=Y;break;case "TICKET_SHELF":this.ticket=Y;break;case "OFFER_MODULE":this.offerModule=Y;break;case "LIMITED_STATE":this.limitedStateValue=
Y;break;case "DONATION_SHELF":this.donation=Y;break;case "ALERTS":this.alertsValue=Y;break;case "COMMENTS":this.comments=Y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
Y;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=Y}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.DH().resolve(_.mL).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var VYk;_.Gyt=function(D){if(!(0,_.LNl)(D))throw Error("K``"+String(D));};
_.fqz=function(D){return D.findIndex(function(Y){return VYk.indexOf(Y.tagName)>-1})>-1};
_.eMb=function(){var D=_.DH().resolve(_.rt);_.KQn(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(D.isFullscreenEnabled()?_.s7(document.documentElement):_.MRM(document.documentElement))};
VYk=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Ft=new Map;_.Ft.set(32,59972);_.Ft.set(27,50765);_.Ft.set(70,60102);_.Ft.set(76,60221);_.Ft.set(77,60222);_.Ft.set(74,60223);_.Ft.set(84,60224);_.Ft.set(38,61941);_.Ft.set(40,61942);_.Ft.set(73,62521);_.Ft.set(67,62522);_.Ft.set(80,63390);_.Ft.set(78,63397);_.Ft.set(75,59972);_.Ft.set(188,63385);_.Ft.set(190,63384);_.Ft.set(36,63387);
_.Ft.set(35,63386);_.Ft.set(37,63388);_.Ft.set(39,63389);_.Ft.set(79,63423);_.Ft.set(87,63424);_.Ft.set(107,63426);_.Ft.set(109,63425);_.Ft.set(65,63428);_.Ft.set(83,63430);_.Ft.set(68,63429);_.Ft.set(221,63431);_.Ft.set(219,63432);_.Ft.set(97,63439);_.Ft.set(98,63440);_.Ft.set(99,63441);_.Ft.set(100,63442);_.Ft.set(101,63443);_.Ft.set(102,63444);_.Ft.set(103,63445);_.Ft.set(104,63446);_.Ft.set(105,63447);_.Gv=new Map;_.Gv.set(80,63390);_.Gv.set(78,63397);_.Gv.set(188,63400);_.Gv.set(190,63401);
_.Gv.set(191,60765);_.Gv.set(13,247917);_.V1=new Map;_.el=new Map;
}catch(e){_._DumpException(e)}
try{
var WgK,T2b,jek,Iez;_.uDk=function(D){return D.ui.guideIsVisibleButNotPersistent};
_.aeE=function(D){return D.ui.tabGesturesIsActive};
_.Mik=function(){var D=_.XW("service_worker_scope");try{return navigator.serviceWorker.getRegistration(D)}catch(Y){return Promise.reject(Y)}};
_.CMk=function(D){return!(!D||!D.pushManager)};
WgK=function(){return _.Mik().then(_.CMk).catch(function(){return!1})};
_.zp9=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?WgK():Promise.resolve(!1)};
_.SU9=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
T2b=function(){var D,Y,R;return _.C(function(Z){switch(Z.nextAddress){case 1:return Z.yield(_.N8.getInstance(),2);case 2:D=Z.yieldResult;if(!D){Y=void 0;Z.jumpTo(3);break}return Z.yield(D.get("lmqf"),4);case 4:Y=Z.yieldResult;case 3:switch((R=Y)||(R="SD"),R){case "HD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
jek=function(D){var Y,R,Z;return _.C(function(t){if(t.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.f("disable_av1_setting")){var X=window.localStorage["yt-player-av1-pref"];X=X==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":X==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else X="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(Y=D===X)return t.jumpTo(2);Z=R=D;return t.yield(T2b(),3)}t.nextAddress!=2&&(Y=Z===t.yieldResult);return t.return(Y)})};var FgT;var Gkk=_.$l.IronButtonState,ViT=(0,_.r7)(HTMLElement);
_.Jj({_template:function(){if(FgT!==void 0)return FgT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Iez===void 0&&(Iez=document.createElement("template"));var Z=Iez;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return FgT=D},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Gkk,_.rp,_.v6,_.ym],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(D){var Y=(0,_.Vt)(this);Y.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:D});Y.shadowRoot.appendChild(D);return ViT.prototype._attachDom.call(this,D)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.oR(this.$.content).getDistributedNodes(),Y=0,R=D.length;Y<R;Y++)if(D[Y].nodeType===Node.ELEMENT_NODE)return D[Y]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var Y="";D?Y=D.label||D.getAttribute("label")||D.textContent.trim():Y="";this.value=Y;this._setSelectedItemLabel(Y)},
_computeMenuVerticalOffset:function(D,Y){return Y?Y:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",Y=this.contentElement;Y&&Y.setAttribute("aria-expanded",D)}});_.a7=new _.Dv("navigateAction");var feT=new _.Dv("formRenderer");var Mm=function(){var D=_.Aj.apply(this,arguments)||this;D.showInput=!1;return D};
_.n(Mm,_.Aj);_.u=Mm.prototype;_.u.detached=function(){this.showInput&&window.removeEventListener("click",_.jN(this,this.closeOnOutsideClick_))};
_.u.stopPropagation_=function(D){this.showInput&&D.stopPropagation()};
_.u.closeOnOutsideClick_=function(D){this.closeOnOutsideClickCondition(D)&&(this.showInput=!1,window.removeEventListener("click",_.jN(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.u.closeOnOutsideClickCondition=function(){return!0};
_.u.closeOnOutsideClickHandler=function(){};
_.u.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.jN(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.u.openOnClickHandler=function(){};
_.u.showInputChanged=function(){};
_.u.setShowInput=function(D){this.showInput=D};
Mm.prototype.setShowInput=Mm.prototype.setShowInput;Mm.prototype.showInputChanged=Mm.prototype.showInputChanged;Mm.prototype.openOnClickHandler=Mm.prototype.openOnClickHandler;Mm.prototype.openOnClick_=Mm.prototype.openOnClick_;Mm.prototype.closeOnOutsideClickHandler=Mm.prototype.closeOnOutsideClickHandler;Mm.prototype.closeOnOutsideClickCondition=Mm.prototype.closeOnOutsideClickCondition;Mm.prototype.closeOnOutsideClick_=Mm.prototype.closeOnOutsideClick_;Mm.prototype.stopPropagation_=Mm.prototype.stopPropagation_;
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mm.prototype,"showInput",void 0);_.q([_.Fv("click"),_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Mm.prototype,"stopPropagation_",null);_.q([_.Gm("showInput"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],Mm.prototype,"showInputChanged",null);_.q([_.nr()],Mm);_.epu=[Mm.prototype];var AtK;var ndK;var Ce=function(){return _.N.apply(this,arguments)||this};
_.n(Ce,_.N);_.u=Ce.prototype;_.u.computePreselectedOption=function(D,Y){return Y===this.itemSelected_?D:void 0};
_.u.dataChanged_=function(){var D=this;this.preselectedSubreason=this.itemSelected_=-1;var Y;(Y=this.data)!=null&&Y.key&&_.cy(this,function(){var R,Z=Number((R=D.data)==null?void 0:R.key);!Number.isNaN(Z)&&(D.itemSelected_=Z,R=(R=(D.data.items||[])[Z])&&R.optionSelectableItemRenderer&&R.optionSelectableItemRenderer.preselectedIndex)&&(D.preselectedSubreason=R)})};
_.u.isSubReasonHidden_=function(D,Y){return D!=Y};
_.u.onTopItemSelected_=function(D,Y){for(var R=_.aU(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Z=0,t=R.length;Z<t;Z++)R[Z].select(0);_.CX(this.hostElement,"yt-report-form-update",[Y.item.value]);D.stopPropagation()};
_.u.onItemSelected_=function(D,Y){_.CX(this.hostElement,"yt-report-form-update",[Y.item.value]);D.stopPropagation()};
_.u.getItem_=function(D){return D.serviceItem?D.serviceItem:D.navigationItem?D.navigationItem:D.optionSelectableItemRenderer?D.optionSelectableItemRenderer:null};
_.u.computeText_=function(D){return(D=this.getItem_(D))?this.ytRendererBehavior.getSimpleString(D.text):null};
_.u.validate=function(){return this.itemSelected_!==-1};
_.u.computeAriaLabel_=function(D){var Y=_.OM(D.text);(D=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label)&&(Y+=". "+D);return Y};
_.u.computeItemSelected_=function(D){return D};
_.u.preventSelection_=function(D){D.stopPropagation();this.tooltipTapped=!0};
_.u.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.u.updateItemSelectedFromBinding=function(D){this.itemSelected_=D.detail.value};
_.u.save=function(){var D;this.validate()&&(D=this.data)!=null&&D.items&&(D=this.data.items[this.itemSelected_],D!=null&&D.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(D.optionSelectableItemRenderer.submitEndpoint)||_.zA(this.hostElement,[D.optionSelectableItemRenderer.submitEndpoint])))};
Ce.prototype.onPaperRippleTransitionEnd_=Ce.prototype.onPaperRippleTransitionEnd_;Ce.prototype.dataChanged_=Ce.prototype.dataChanged_;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Ce.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ce.prototype,"data",void 0);_.q([_.y({value:-1}),_.x("design:type",Number)],Ce.prototype,"itemSelected_",void 0);
_.q([_.y({computed:"computeItemSelected_(itemSelected_)"}),_.x("design:type",Number)],Ce.prototype,"value",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Ce.prototype,"restoreFocusOnClose",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Ce.prototype,"tooltipTapped",void 0);_.q([_.y({value:-1}),_.x("design:type",Number)],Ce.prototype,"preselectedSubreason",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ce.prototype,"dataChanged_",null);_.q([_.Fv("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ce.prototype,"onPaperRippleTransitionEnd_",null);_.q([_.Lr({is:"yt-options-renderer",disableElementRegistration:!0})],Ce);
_.L(Ce,"yt-options-renderer",function(){if(ndK===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;AtK===void 0&&(AtK=document.createElement("template"));var Z=AtK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ndK=D}D=ndK;return D},{mode:2});var rt0;var w_K;var $ab;var vdT;var odu;var b4t;var Wb=function(){return _.N.apply(this,arguments)||this};
_.n(Wb,_.N);Wb.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Wb.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Wb.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.CX(this.hostElement,"yt-share-panel-can-select-contact-action")[0])D&&D.detail&&(D.detail.x||D.detail.y)&&_.aU(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:D?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.CX(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.q([_.y({observer:"onDataChanged"}),_.x("design:type",Object)],Wb.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],Wb.prototype,"componentTitle",void 0);_.q([_.fr("#thumbnail"),_.x("design:type",Object)],Wb.prototype,"thumbnail",void 0);_.q([_.Lr({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Wb);
_.L(Wb,"yt-enrolled-contact-renderer",function(){if(b4t===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;odu===void 0&&(odu=document.createElement("template"));var Z=odu;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);b4t=D}D=b4t;return D},{mode:2});var ytE;var N2h;var zM=function(){return _.N.apply(this,arguments)||this};
_.n(zM,_.N);zM.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
zM.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
zM.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.CX(this.hostElement,"yt-share-panel-can-select-contact-action")[0])D&&D.detail&&(D.detail.x||D.detail.y)&&_.aU(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:D?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.CX(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.q([_.y({observer:"onDataChanged"}),_.x("design:type",Object)],zM.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],zM.prototype,"componentTitle",void 0);_.q([_.fr("#thumbnail"),_.x("design:type",Object)],zM.prototype,"thumbnail",void 0);_.q([_.Lr({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],zM);
_.L(zM,"yt-suggested-contact-renderer",function(){if(N2h===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;ytE===void 0&&(ytE=document.createElement("template"));var Z=ytE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);N2h=D}D=N2h;return D},{mode:2});var Sp=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-share-panel-reset-action":"onReset"};return D};
_.n(Sp,_.N);Sp.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"}}}}}};
Sp.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.CX(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Sp.prototype.onReset=function(){for(var D=_.aU(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),Y=D.length-1;Y>=0;Y--)D[Y].classList.toggle("selected")};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Sp.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({observer:"onDataChanged"}),_.x("design:type",Object)],Sp.prototype,"data",void 0);
_.q([_.Lr({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Sp);
_.L(Sp,"yt-contact-section-renderer",function(){if(vdT===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;$ab===void 0&&($ab=document.createElement("template"));var Z=$ab;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);vdT=D}D=vdT;return D},{mode:2});var TM=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return D};
_.n(TM,_.N);_.u=TM.prototype;_.u.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"}}}};
_.u.onYtRefreshFormCommand=function(D){var Y;(D=_.A((Y=_.A(D,_.UZz))==null?void 0:Y.formRenderer,feT))&&this.set("data",D)};
_.u.reset=function(){var D=_.aU(this.hostElement).querySelector("#fields").children;D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.reset&&Y.reset()};
_.u.getForm=function(){var D={},Y=_.aU(this.hostElement).querySelector("#fields").children;Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;if(!R.validate())return null;D[R.data.key]=R.value}return D};
_.u.submitFormFields=function(){if(this.fields)for(var D=_.a(this.fields),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?Y.save():Y.nodeName==="YT-OPTIONS-RENDERER"&&Y.save()};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],TM.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],TM.prototype,"data",void 0);_.q([_.eN("#fields > *"),_.x("design:type",Array)],TM.prototype,"fields",void 0);
_.q([_.Lr({is:"yt-form-renderer",disableElementRegistration:!0})],TM);
_.L(TM,"yt-form-renderer",function(){if(w_K===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;rt0===void 0&&(rt0=document.createElement("template"));var Z=rt0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);w_K=D}D=w_K;return D},{mode:2});var leh;var jp=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return D};
_.n(jp,_.N);jp.prototype.onCheckboxChange=function(D){this.data&&(D=(this.checked=_.cG(D).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})};
jp.prototype.handleUpdateCheckboxCommand=function(D){(D=_.A(D,_.clV))&&this.data&&this.data.id===D.id&&(this.set("data.disabled",D.disabled),this.set("data.title",D.title))};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],jp.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jp.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],jp.prototype,"checked",void 0);_.q([_.h({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],jp);
_.L(jp,"ytd-settings-checkbox-renderer",function(){if(leh!==void 0)return leh;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return leh=D},{mode:1});var JtI;var I7=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return D};
_.n(I7,_.N);I7.prototype.dataChanged=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return D.radio.removeAttribute("checked"),!D.data||!D.data.id||D.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.SU9()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(Y=D.data&&D.data.id)?R.yield(jek(D.data.id),4):R.jumpTo(3):(D.set("data.hidden",!0),R.jumpTo(0));R.nextAddress!=3&&(Y=R.yieldResult);Y&&_.CX(D.hostElement,"yt-select-settings-radio-option",[D.data.id]);_.V9(R)})};
I7.prototype.onButtonChanged=function(D){_.cG(D).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.CX(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
I7.prototype.onSelectOption=function(D){this.data&&this.data.id&&(this.data.id===D?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
I7.prototype.dataChanged=I7.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],I7.prototype,"ytActionHandlerBehavior",void 0);_.q([_.fr("#radio"),_.x("design:type",Object)],I7.prototype,"radio",void 0);_.q([_.y(),_.x("design:type",Object)],I7.prototype,"data",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],I7.prototype,"dataChanged",null);_.q([_.h({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],I7);
_.L(I7,"ytd-settings-radio-option-renderer",function(){if(JtI!==void 0)return JtI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return JtI=D},{mode:1});var kkz;var FM=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return D};
_.n(FM,_.N);
FM.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"}}}};
FM.prototype.handleUpdateTextCommand=function(D){(D=_.A(D,_.DlD))&&this.data&&this.data.id===D.id&&this.set("data",D)};
FM.prototype.handleUpdateConnectedAppRendererCommand=function(D){if(_.A(D,_.ZfL)&&this.data){var Y,R;if(D=(Y=_.A(D,_.ZfL))==null?void 0:(R=Y.newConnectedAppRenderer)==null?void 0:R.connectedAppRenderer)this.data=D}};
FM.prototype.computeConnectedAppStyle=function(D){return D.style?D.style.toLowerCase().replace(/_/g,"-"):""};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],FM.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],FM.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.x("design:type",String)],FM.prototype,"connectedAppStyle",void 0);_.q([_.h({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],FM);
_.L(FM,"ytd-connected-app-renderer",function(){if(kkz!==void 0)return kkz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return kkz=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.bg("iuT5Oc");

_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("L3n37");
var mEN=function(D){return D.watch.isLearningJourneyActive},qKN=_.TP(115994),HvG=_.TP(115993),xEN=function(D,Y,R){var Z=this;
var t=R.dragDownAction;this.layer=0;this.JSC$23010_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$23010_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var X=_.n8();_.Ii(X,qKN,this.layer);_.Ii(X,HvG,this.layer);this.dragDownAction=function(){t();_.pB(X,{visualElement:Z.fullscreen?qKN:HvG})};
this.gesture=new _.T1(D,Y,this.JSC$23010_watchConfig,"pandown");this.attach()};
xEN.prototype.attach=function(){this.gesture.attach()};
xEN.prototype.detach=function(){this.gesture.detach()};
xEN.prototype.update=function(D){this.fullscreen=D;this.gesture.config=D?this.JSC$23010_watchFullScreenConfig:this.JSC$23010_watchConfig};var PxS=function(D){_.If.call(this);var Y=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Y.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(R){Y.initOrDisposeActiveModules(R)}));
this.onAttached()};
_.n(PxS,_.If);_.u=PxS.prototype;_.u.getRoot=function(){return this.rootElement};
_.u.getElement=function(D){return this.rootElement.getElement(D)};
_.u.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.u.getPlayerResponse=function(){return this.playerResponse};
_.u.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.u.getWatchNextResponse=function(){return this.watchNextResponse};
_.u.registerActionHandler=function(D,Y){var R=this;if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.pI(_.Bm.getInstance(),(Z[D]=Y,Z),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),Z={},_.pI(_.Bm.getInstance(),(Z[D]=function(){var t=_.UN.apply(0,arguments);return(R.actionHandlers.get(D)||[]).map(function(X){return X.apply(null,_.oK(t))})},Z),this.getRoot())),this.actionHandlers.get(D).push(Y)};
_.u.unregisterActionHandler=function(D){if(_.f("web_watch_controller_reg_multiple_handlers_killswitch")){var Y={};_.E9(_.Bm.getInstance(),(Y[D]=!0,Y),this.getRoot())}else(Y=this.actionHandlers.get(D))?(Y.pop(),Y.length===0&&(Y={},_.E9(_.Bm.getInstance(),(Y[D]=!0,Y),this.getRoot()),this.actionHandlers.delete(D))):_.Jk(new _.AT("Attempted to unregister an action handler which is not registered.",D))};
_.u.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AS9(this.rootElement.pageDisposeJobs,D)};
_.u.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.m5(this.rootElement.pageDisposeJobs,D)};
_.u.dispatchEvent=function(D,Y){_.MX(this.rootElement,D,Y)};
_.u.provideRenderingData=function(D,Y){this.rootElement.provideRenderingData(D,Y)};
_.u.scrollWatchTo=function(D,Y){var R;(R=this.watchScrollManager)==null||R.scrollWatchTo(D,Y)};
_.u.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.cy(D,function(){if(D&&D.firstElementChild){var Y=D.querySelector(".html5-video-player");Y&&(_.t7(_.DH().resolve(_.bq)),Y.focus())}else _.Jk(Error("Fo"))})};
_.u.updateCinematicFullscreenConfig=function(){var D=!!this.rootElement.theater,Y=!!this.rootElement.fullscreen,R;(R=this.watchCinematicManager)==null||_.kA(R,Y,D)};
_.u.subscribeToActiveChanged=function(D,Y){Y=Y===void 0?!0:Y;var R=_.rm(_.Dl(),mEN,function(Z){D(Z)});
Y&&D(mEN(_.Dl().getState()));return R};
_.u.isActive=function(){return mEN(_.Dl().getState())};
_.u.onAttached=function(){var D=_.f("external_fullscreen");_.f("use_unified_flag_accessor")&&(D=_.DH().resolve(_.sJE).retriever.getFlag(_.xCU));(D||_.ks("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.u.initPersistentModules=function(){if(_.f("kevlar_watch_flexy_theater_manager")){var D=new _.ghZ(this);_.WB(this,D)}D=new _.kkN(this);_.WB(this,D);D=new _.y2(this);_.WB(this,D);D=new _.ytB(this);_.WB(this,D);D=new _.WfS(this);_.WB(this,D);D=new _.lN(this);_.WB(this,D);_.f("kevlar_watch_flexy_playlist_manager")&&(D=new _.TfJ(this),_.WB(this,D))};
_.u.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.LE(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.da$(this)),this.activeModules.push(new _.cZS(this)),this.activeModules.push(new _.f1S(this)),this.activeModules.push(new _.xaf(this)),_.f("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.ZGZ(this)),this.activeModules.push(new _.RtB(this)),_.f("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.AQf(this)),
_.f("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Wg7(this)),_.f("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.IeN(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.f("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uPg(this)),_.f("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.leS(this)),D=_.f("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.f("kevlar_watch_flexy_comments_manager")&&!D&&this.activeModules.push(new _.$ag(this)),_.f("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Ne(this)),this.activeModules.push(new _.Z4T(this)),this.activeModules.push(new _.O4J(this)),_.f("web_enable_timely_actions")&&this.activeModules.push(new _.uDT(this)),_.f("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.bGJ(this)),_.f("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.fCN(this)),
_.f("web_fullscreen_components")&&this.activeModules.push(new _.u_$(this)),_.f("web_player_rtr_ctrls")&&this.activeModules.push(new _.Ne7(this))):(_.c8(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.u.disposeInternal=function(){_.If.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.YF.Object.defineProperties(PxS.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var QnB={},BPS=["learning-journey-engagement-panel","PAlearning_chat"];
QnB.YtdLearningJourneyWatchBehavior=[_.p.YtRendererBehavior,_.iH.YtPlayerListenerBehavior,_.a$.YtRendererstamperBehavior,_.Va.YtActionHandlerBehavior,_.Kz.YtPageBehavior,_.GV.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 _.ks("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.f("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 _.ks("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 _.f("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.f("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 _.ZH("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ZH("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)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.f("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_rounded_player_large")||_.f("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 _.f("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.f("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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 _.f("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.f("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:_.OZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.OZ(["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 D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.f("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.f("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.f("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.TPf(function(){return _.tx(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.f("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
_.f("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.W6;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;_.f("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.f("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));_.f("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.jN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.f("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.f("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.f("kevlar_watch_while_v2")&&!_.f("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.MX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.f("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var Y=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var R;(R=this.watchController)==null||R.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.k8({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.KX("nw");this.loading=!1;_.Ak(_.yc,function(){Y.initDclkstatus_();var Z,t=((Z=Y.player)==null?void 0:Z.getVideoData().cpn)||"";_.cQB(function(X,M){_.jDK(X,M,t)})})},
onPageLoadWithSameData_:function(){_.f("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 D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;var Y,R,Z;D=(Y=this.loadingData)==null?void 0:(R=Y.endpoint)==null?void 0:(Z=R.watchEndpoint)==null?void 0:Z.videoId;var t;D&&(t="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.aU(this.hostElement).querySelector("#player").style.backgroundImage=t?"url("+t+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.aU(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Y,R;(R=(Y=this.watchMetadata).updateSentimentBarWidth)==
null||R.call(Y);var Z,t;(t=(Z=this.watchMetadata).resize)==null||t.call(Z)}_.aU(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(D){var Y=_.aU(this.hostElement).querySelector(D);Y?_.Xa(Y,!1):_.Jk(new _.AT("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var Y=_.aU(this.hostElement).querySelector(D);Y?_.ui(Y):_.Jk(new _.AT("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?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(D){var Y=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.yc.addLowPriorityJob(function(){Y.onWindowResized_(_.w$(!0))})},
updateTheaterModeState_:function(D){if(!_.f("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.DUf()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var D=this.theater;_.f("external_fullscreen")&&this.fullscreen&&(D=!0);D=D?_.aU(this.hostElement).querySelector("#player-full-bleed-container"):_.aU(this.hostElement).querySelector("#player-container-inner");var Y=this.getPlayerContainer(),R=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip");Y.parentElement!==D&&(R&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.tx(this).appendTo(D,Y),D.appendChild(_.aU(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.DH().resolve(_.mL).deactivate(),2);D.updatePlayerLocation();_.V9(Y)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var Y=this.getCinematicsLocationContainer();D.parentElement!==Y&&Y.appendChild(D);var R;(R=this.watchController)==null||R.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.aU(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.aU(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(D,Y){var R=document.documentElement.hasAttribute("dark"),Z=R&&_.f("web_cinematic_theater_mode"),t=R&&_.f("web_cinematic_fullscreen");R=!R&&this.cinematicLightTheme;return D&&Z||Y&&t||(Y||D)&&R},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data);_.f("kevlar_watch_flexy_comments_manager")||this.initComments_();_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.DH().resolve(_.xW).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.f("web_watch_start_chat_in_theater_mode")){var Y,
R,Z;if((Y=this.data)==null?0:(R=Y.contents)==null?0:(Z=R.twoColumnWatchNextResults)==null?0:Z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var t,X;((t=this.data)==null?0:(X=t.contents)==null?0:X.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(D){var Y;(Y=this.watchController)==null||Y.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(Y=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),Y&&!D||_.cy(this,function(){_.KX("pbu")}));
this.setPlayerAds_();_.WC(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(D){_.Dl().dispatch(_.u0({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new PxS(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.f("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Y=_.tx(this);_.f("kevlar_disable_prepare_player")||Y.preparePlayer();_.f("kevlar_watch_flexy_playlist_manager")||_.DH().resolve(_.xW).setPlayer(Y);this.updatePageMediaQueries();Y={"--ytd-watch-flexy-scrollbar-width":_.g6()+
"px"};!_.ZH("kv_pl_mx_sz_ks")&&_.ZH("kevlar_watch_max_player_width")&&(Y["--ytd-watch-flexy-max-player-width-wide-screen"]=_.kTo+"px");_.ZH("kevlar_watch_flexy_metadata_height")&&(Y["--ytd-watch-flexy-space-below-player"]=_.Ukg+"px");this.safeUpdateStyles(Y);_.f("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new xEN(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
_.f("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.aU(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var D=_.g6(),Y=_.mN+D,R=Y;this.fixedPanels&&(Y+=_.J9o);var Z=657+D;D=1327+D;_.aU(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Y+"px)";_.aU(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(Y+"px) and (max-width: ")+(D+"px)");_.aU(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.aU(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+R+"px)"},
calculateCurrentPlayerSize_:function(){var D=_.aU(this.hostElement).querySelector("#miniplayer-bar").firstChild;return D&&D.active||this.theater||_.f("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.FL(NaN,NaN):_.t$o(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.t$o(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.OG(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.w$());_.f("browse_skeleton_removal_on_watch_killswitch")||_.ks("IS_SHELL_LOAD")&&_.Pcb();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Y=_.tx(this);Y.addEventListener("yt-player-updated",_.jN(this,this.onPlayerUpdated_));Y.getPlayerPromise().then(function(R){D.playerApiReady_(R)});
_.f("kevlar_watch_flexy_playlist_manager")||(Y=_.DH().resolve(_.xW),_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.addEventListener("yt-navigate",_.jN(this,this.onYtNavigate_)),Y.setPlaylistComponent(_.aU(this.hostElement).querySelector("#playlist")),Y.addEventListener("yt-playlist-data-updated",_.jN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.yc.addLowPriorityJob(function(){_.MX(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.tx(this).removeEventListener("yt-player-updated",_.jN(this,this.onPlayerUpdated_));if(!_.f("kevlar_watch_flexy_playlist_manager")){var D=_.DH().resolve(_.xW);_.f("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.jN(this,this.onYtNavigate_));D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.jN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.f("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.MX(this.hostElement,"yt-autonav-pause-player",!1);D=_.t4();_.f("kevlar_exit_fullscreen_leaving_watch")&&D&&_.s7(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.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(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,Y){Y.hasComments?Y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Y.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,Y){this.player&&(Y?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Uu("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.aU(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.aU(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.f("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.f("kevlar_unified_player")||_.f("kevlar_player_new_bootstrap_adoption"))&&_.Bl()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,Y){Y=Y===void 0?!0:Y;_.t4()&&_.f("external_fullscreen")&&_.s7(document.documentElement);this.theaterRequested_=D;Y&&_.GZ("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.CX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.MX(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(D){_.kN(D,typeof this.player),this.player&&_.kN(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.CX(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,Y){return this.loading?Y:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.youThereRenderer&&_.Fzg(this.youThereManager_,Y.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Y=this.youThereManager_;_.Ro()<D.lowEngagementThresholdMs||_.erG(Y,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.CX(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,Y,R){return!!D&&!this.isVideoPlayable_(D,R)&&!Y},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,Y){if(!D)return!1;var R=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var t;Y=Y==null?void 0:(t=Y.playerOverlayRenderer)==null?void 0:t.gatedActionsOverlayRenderer;return!!R||!!Z||!!D||!!Y},
hasWatchNextResponseErrorRenderer:function(D){var Y=this.getPageContents(D),R,Z,t,X,M;return!(D==null?0:(R=D.contents)==null?0:(Z=R.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((t=Y[0])==null?0:(X=t.itemSectionRenderer)==null?0:(M=X.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,Y,R){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y),t=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];t=_.f("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&t.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var X=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);X==void 0&&(X=!0);!R||this.isVideoPlayable_(D,this.getPlayerOverlays_(Y))||
Z||t||!X||_.DH().resolve(_.xW).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.XrJ()},
onPlayerFeedbackStartRequest_:function(D){_.CX(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.CX(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,Y,R,Z,t,X,M,W,z=((D=this.data)==null?NaN:(Y=D.contents)==null?NaN:(R=Y.twoColumnWatchNextResults)==null?NaN:(Z=R.secondaryResults)==null?NaN:(t=Z.secondaryResults)==null?NaN:(X=t.offerModule)==null?NaN:(M=X.tvfilmOfferModuleRenderer)==null?NaN:(W=M.actionButtons)==null?NaN:W.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(z>=0?z:0)+".buttonRenderer."];Y=_.a(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(R=Y.next();!R.done;R=Y.next())for(R=R.value,Z=_.a(D),t=Z.next();!t.done;t=Z.next())if(t="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+R+t.value,t=this.get(t+"navigationEndpoint",this.data)||this.get(t+"serviceEndpoint",this.data)||this.get(t+"command",this.data)){_.Vu(t,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.MX(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.MX(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.Dl().dispatch(_.u24(D))},
onPlayerSubscribe_:function(D){_.CX(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.CX(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.CX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(D){return!_.f("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.f("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var D,Y,R,Z;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(Y=D.contents)==null?void 0:(R=Y.twoColumnWatchNextResults)==null?void 0:(Z=R.secondaryResults)==null?void 0:Z.secondaryResults}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,Y=(D=this.data)==null?void 0:D.engagementPanels;if(Y==null?0:Y.length){D=null;Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;if(((Z=R.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){D=R;break}}var t,X,M;D=(t=D)==null?void 0:(X=t.engagementPanelSectionListRenderer)==null?void 0:(M=X.content)==null?void 0:M.structuredDescriptionContentRenderer;if(D==null?0:D.items){t=
[];X=_.a(D.items);for(M=X.next();!M.done;M=X.next()){M=M.value;if(!_.f("sd_horizontal_list_show_nav_killswitch")){var W=Z=R=Y=D=void 0,z=void 0,I=(D=M.horizontalCardListRenderer)==null?void 0:(Y=D.header)==null?void 0:(R=Y.richListHeaderRenderer)==null?void 0:(Z=R.navigationButton)==null?void 0:(W=Z.buttonRenderer)==null?void 0:(z=W.command)==null?void 0:z.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(F){return!_.A(F,_.dUg)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||t.push(M)}return{items:t}}}},
constructWarning_:function(D){return{text:_.i0(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.MX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Y=this.getScrollTop()>0;this.gestures_&&(Y?this.gestures_.detach():this.gestures_.attach());Y!==this.showFullerscreenEdu_&&_.f("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Y,_.tx(this).getPlayerPromise().then(function(R){R.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.MX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.yc.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ak(_.yc,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.f("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.KX("cmi");_.yc.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,this.get("itemSectionRenderer.sectionIdentifier",Y)==="comment-item-section"){this.comments=Y.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.MX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.f("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.f("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.KX("cmc")},
doRemoveComments_:function(){this.comments={};_.f("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.yc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.yc.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,Y){var R=_.A(Y.endpoint,_.Od);R&&(!(Y=this.get("data.currentVideoEndpoint.watchEndpoint"))||R.videoId!==Y.videoId||R.playlistId&&R.playlistId!==Y.playlistId||R.index!==void 0&&R.index!==Y.index||typeof R.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.tx(this).getPlayerPromise().then(function(Z){var t=R.startTimeSeconds;Z.seekTo(t);Z.wakeUpControls();t<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.P1T();"t"in D&&(D=_.snJ(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var Y,R;(D=_.OM(D==null?void 0:(Y=D[0])==null?void 0:(R=Y.videoPrimaryInfoRenderer)==null?void 0:R.title))&&_.MX(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.MX(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,Y,R){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===R&&(R=Z.list,_.f("polymer_enable_mdx_queue")&&R&&R.startsWith("RQ")&&(R=void 0),Z.video_id!==D||R!=Y)){var t;_.f("kevlar_player_watch_endpoint_navigation")?t=_.Q3U(_.DET(D,Y)):t=this.buildWatchEndpoint_(D,Y);_.MX(this.hostElement,"yt-navigate",{endpoint:t,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,Y,R){return _.ZQ(D,Y,R)},
initDclkstatus_:function(){_.ZvB()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var Y=D.querySelector("#primary-info"),R=D.querySelector("#secondary-info"),Z=D.querySelector("#related");Y&&_.aU(this.hostElement).querySelector("#info-skeleton").appendChild(Y);R&&_.aU(this.hostElement).querySelector("#meta-skeleton").appendChild(R);Z&&(_.aU(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.F_(D)}},
handlePlayerUpdated_:function(){_.tx(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,Y){if(this.watchNextSkeletonEl_&&typeof Y!=="undefined"){var R=this.watchNextSkeletonEl_.children,Z=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,R.length);Y||(Z=0,D=R.length);for(Y=Z;Y<D;Y++)R[Y].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.f("external_fullscreen")||_.CX(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var Y=_.tx(this);Y.getPlayerPromise().then(function(R){R.setFauxFullscreen(!!_.t4())});
this.updateFullBleedElementLocations();D&&(Y.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,Y){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Y},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,Y){return Y&&!!D},
computeResponseHasComments:function(D){var Y,R,Z,t,X;return!!(D==null?0:(Y=D.contents)==null?0:(R=Y.twoColumnWatchNextResults)==null?0:(Z=R.results)==null?0:(t=Z.results)==null?0:(X=t.contents)==null?0:X.some(function(M){var W;return(M==null?void 0:(W=M.itemSectionRenderer)==null?void 0:W.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,Y){this.responseHasComments=this.computeResponseHasComments(this.data);return!!D&&!!Object.keys(D).length&&!Y},
identity:_.kn,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.f("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var Y=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.tx(this).getPlayerPromise().then(function(R){var Z=R.getPlayerState();Z!==5&&Z!==0&&(R=1/R.getVideoAspectRatio(),Y.videoHeightToWidthRatio_!==R&&(Y.videoHeightToWidthRatio_=R))})},
schedulePlayerSizeUpdate_:function(D){var Y=this,R=_.f("kevlar_watch_while_v2")||_.f("web_watch_pip"),Z=function(){if(Y.watchMetadata){var t,X;(X=(t=Y.watchMetadata).resize)==null||X.call(t)}_.tx(Y).getPlayerPromise().then(function(M){if(_.f("kevlar_set_internal_player_size")){if(!R||!Y.isMiniplayerActive()){var W=Y.calculateCurrentPlayerSize_();M.setInternalSize(W.width,W.height)}}else M.setSize(NaN,NaN);_.f("kevlar_watch_while")&&Y.updateWatchWhileScrollThreshold_()})};
D?Z():_.$c(_.yc,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.A(D,_.SKJ).survey)},
onDownloadedVideoDeleted:function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1){if(!Y.active||(R=Y.playerData)==null||!R.offlineState||Y.videoId!==D)return t.return();(Z=Y.player)==null||Z.stopVideo();_.AG().navigatingAwayFromWatchDeletedVideo=!0;_.Vu(_.hzU,Y.hostElement);return t.yield(_.AG().navigationFinishPromise,2)}_.AG().navigatingAwayFromWatchDeletedVideo=!1;_.V9(t)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.UR(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.aU(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var Y=this.windowSize_.height>=624,R=this.active?this.getScrollTop():0;!D.active&&Y&&R>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!Y||R<this.watchWhileScrollThreshold_&&!_.t4())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(D,Y){if(D!==!0||Y!==void 0){D=!_.f("live_chat_over_engagement_panels");Y=_.aU(this.hostElement).querySelector("#chat-container");var R=_.aU(this.hostElement).querySelector("#plj-sidebar"),Z=_.aU(this.hostElement).querySelector("#panels"),t=_.aU(this.hostElement).querySelector("#plj-panels"),X=_.aU(this.hostElement).querySelector("#plj-playlist"),M=_.aU(this.hostElement).querySelector("#alerts"),W=_.aU(this.hostElement).querySelector("#playlist"),z=_.aU(this.hostElement).querySelector("#related"),
I=_.aU(this.hostElement).querySelector("#donation-shelf"),F=_.aU(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.aU(this.hostElement).querySelector("#secondary-inner"),M.appendChild(R),R.appendChild(X),X.appendChild(W),R.appendChild(t),D&&M.appendChild(Z),_.f("web_watch_theater_chat")||M.appendChild(Y),D||M.appendChild(Z),M.appendChild(I),M.appendChild(z)):(D&&_.Nq(Z,M),_.Nq(W,M),_.f("web_watch_theater_chat")||_.Nq(Y,M),D||_.Nq(Z,M),_.Nq(I,M),F&&(t&&_.Nq(t,F),_.Nq(z,F)));_.f("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.f("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.f("web_watch_theater_chat")){var D=_.aU(this.hostElement).querySelector("#chat-container"),Y=this.theater&&!this.fullscreen||_.f("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Y?_.f("web_watch_theater_chat_beside_player")?(Y=_.aU(this.hostElement).querySelector("#panels-full-bleed-container"),(D==null?void 0:D.parentElement)!==Y&&Y.append(D),this.panelsBesidePlayer=!0):_.f("web_watch_theater_fixed_chat")&&
(Y=_.aU(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==Y&&Y.append(D),this.fixedPanels=!0):(_.f("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.f("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),Y=_.aU(this.hostElement).querySelector("#playlist"),D&&Y?_.l3(D,Y):_.Jk(new _.AT("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!Y})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,Y){return _.f("sw_metadata_vis_toggle_ks")?!0:!!D||!!Y},
computeForceDarkPanelTheme:function(D){return _.f("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.SN(this.hostElement,D)}catch(Y){_.Jk(Y)}},
videoHeightToWidthRatioChanged_:function(D,Y){Y&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.f("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.tx(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.tx(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ATZ(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var Y=_.FJ(D)||0;_.I8(D,Y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.FJ("yt-fullerscreen-edu-button-click-count")||0,Y=_.FJ("yt-fullerscreen-edu-button-shown-count")||0,R=_.ZH("external_fullscreen_button_shown_threshold"),Z=D>=_.ZH("external_fullscreen_button_click_threshold")||Y>=R;_.tx(this).getPlayerPromise().then(function(t){t.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,Y){return Y},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.DH().resolve(_.xW).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.panelMaxHeightUpdateJob_&&_.yc.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.yc.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var Y;!D.isTwoColumns_||D.theater||D.fullscreen?Y=460:Y=D.calculateNormalPlayerSize_().height;var R=Y+"px";_.f("live_chat_taller_height")&&!D.theater&&(R="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.f("live_chat_medium_height")&&
!D.theater&&(R="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.f("live_chat_scaled_height")&&!D.theater&&(R="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Y+"px","--ytd-watch-flexy-chat-max-height":R,"--ytd-watch-flexy-structured-description-max-height":Y+"px","--ytd-watch-flexy-comments-panel-max-height":Y+"px","--ytd-comments-engagement-panel-content-height":Y+"px"})})},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Se(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var Y=_.aU(this.hostElement).querySelector("#engagement-panel-scrim");D?Y.addEventListener("tap",_.jN(this,this.onEngagementPanelScrimClick_)):Y.removeEventListener("tap",_.jN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var Y=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var R=this.getPageScrollingElement(),Z=this.getScrollTop(),t=Z+R.clientHeight-56;if(Y<Z+56)Y-=56;else if(D>t)Y=D-R.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.f("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.GI().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,Y,R){this.active&&this.trackEngagementPanelVisibility&&!_.Wzo.includes(R)&&(Y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(R),Y!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Y!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(R),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeFullBleedPlayer:function(D,Y){return D||Y},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,Y){return!D&&Y},
computeWatchWhilePanelsActive:function(D,Y){return D||Y},
computeNoBorderOnChat:function(D){return _.f("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,Y){return D&&!Y},
computePanelExpanded:function(D,Y,R){return D||Y||R},
onChangeMarkersVisibility:function(D){_.tx(this).getPlayerPromise().then(function(Y){var R;(R=Y.changeMarkerVisibility)==null||R.call(Y,_.A(D,_.Pv).isVisible||!1,_.A(D,_.Pv).entityKeys||[],_.A(D,_.Pv).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.Dl().dispatch(_.CxE(D.detail))},
provideRenderingData:function(D,Y){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Y;break;case "PRIMARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Y);this.videoPrimaryInfoRendererValue=Y==null?void 0:Y.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.f("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Y);this.videoSecondaryInfoRendererValue=Y==null?void 0:Y.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Y;break;case "CLARIFICATION":this.clarifyBoxValue=Y;break;case "LIVE_CHAT":this.conversationBar=Y;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Y;break;case "PLAYLIST":this.externalPlaylistData_=Y!=null?Y:{};break;case "MERCH_SHELF":this.merchShelfValue=Y==null?void 0:Y.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=Y;break;case "OFFER_MODULE":this.offerModule=Y;break;case "LIMITED_STATE":this.limitedStateValue=Y;break;case "DONATION_SHELF":this.donation=Y;break;
case "ALERTS":this.alertsValue=Y;break;case "COMMENTS":this.comments=Y;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Y;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Y;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Y;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Y;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Y;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=Y}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.DH().resolve(_.mL).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(D){return BPS.map(function(Y){return D.find(function(R){var Z;return(R==null?void 0:(Z=R.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)===Y})}).filter(function(Y){return Y!==void 0})},
getNonLearningJourneyEngagementPanels:function(D){return D.filter(function(Y){var R;return!BPS.includes((Y==null?void 0:(R=Y.engagementPanelSectionListRenderer)==null?void 0:R.targetId)||"")})}}];var prf;var cv=function(){var D=_.N.apply(this,arguments)||this;D.flexy=!0;D.learningJourney=!0;D.roundedInfoPanel=!0;D.viewTransitionEnabled=_.f("enable_player_resize_transition");D.smallerChatMinHeight=_.f("live_chat_smaller_min_height");D.cinematicTheaterMode=_.f("web_cinematic_theater_mode");D.transparentTheaterMode=_.f("web_transparent_theater_mode");D.cinematicFullscreen=_.f("web_cinematic_fullscreen");D.useLargerMaxPlayerValue=_.f("kevlar_flexy_use_larger_player_value");D.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");
D.isDarkTheme=document.documentElement.hasAttribute("dark");D.theaterLargerPlayer=_.f("web_watch_theater_larger_player");D.defaultCollapsePlaylist=_.f("web_watch_default_collapse_playlist");D.enableCanvasLayout=_.f("web_enable_canvas_on_learning_journey");return D};
_.n(cv,_.N);_.u=cv.prototype;_.u.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.u.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.u.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.u.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.u.ready=function(){var D=this,Y=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",Y);this.secondary.addEventListener("scroll",Y)};
_.u.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.u.updateIsTwoColumnsFromBinding=function(D){_.f("web_watch_update_narrow_width_killswitch")||_.Dl().dispatch(_.PUf(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.u.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.u.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.u.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.u.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.u.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.u.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23019_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23019_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.YF.Object.defineProperties(cv.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 D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var Y=0;Y<this.data.pageVisualEffects.length;Y++)if(D=_.A(this.data.pageVisualEffects[Y],_.lw))return Y=void 0,(Y=D.config)==null?void 0:Y.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.learningJourneyEngagementPanels)==null?void 0:D.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var D,Y=(D=this.learningJourneyEngagementPanels)==null?void 0:D.find(function(V){var e;return(V==null?void 0:(e=V.engagementPanelSectionListRenderer)==null?void 0:e.panelIdentifier)==="learning-journey-engagement-panel"});
if(Y){var R,Z,t,X,M,W,z,I,F;if(D=(I=((z=(M=((X=Y==null?void 0:(R=Y.engagementPanelSectionListRenderer)==null?void 0:(Z=R.content)==null?void 0:(t=Z.sectionListRenderer)==null?void 0:t.contents)!=null?X:[])[0])==null?void 0:(W=M.itemSectionRenderer)==null?void 0:W.contents)!=null?z:[])[0])==null?void 0:(F=I.accordionViewModel)==null?void 0:F.onTitleTap){var G=_.HL(D);if(G)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.GD.instance.resolveCommand(G)}}}}}}});
_.YF.Object.defineProperties(cv,{template:{configurable:!0,enumerable:!0,get:function(){if(prf===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);prf=D}D=prf;return D}}});
cv.prototype.updateMiniplayerIsActiveValue=cv.prototype.updateMiniplayerIsActiveValue;cv.prototype.updateScrollTopValue=cv.prototype.updateScrollTopValue;cv.prototype.updateFullscreenValue=cv.prototype.updateFullscreenValue;cv.prototype.updateTheaterValue=cv.prototype.updateTheaterValue;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],cv.prototype,"ytComponentBehavior",void 0);
_.q([_.v(QnB.YtdLearningJourneyWatchBehavior),_.x("design:type",Object)],cv.prototype,"ytdWatchBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],cv.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cv.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],cv.prototype,"playerData",void 0);_.q([_.y(),_.x("design:type",Object)],cv.prototype,"browseData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"flexy",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"learningJourney",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"roundedInfoPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"viewTransitionEnabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"smallerChatMinHeight",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"cinematicTheaterMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"transparentTheaterMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"cinematicFullscreen",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"useLargerMaxPlayerValue",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"cinematicFullscreenV2",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"isDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],cv.prototype,"theaterLargerPlayer",void 0);_.q([_.y(),_.x("design:type",Object)],cv.prototype,"defaultCollapsePlaylist",void 0);_.q([_.y(),_.x("design:type",Object)],cv.prototype,"enableCanvasLayout",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("playerData","browseData","enableCanvasLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cv.prototype,"showBrowseResponse",null);_.q([_.y({reflectToAttribute:!0}),_.b("playerData","enableCanvasLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cv.prototype,"showWatchResponse",null);_.q([_.y({selector:_.hp}),_.x("design:type",Object)],cv.prototype,"theaterValue",void 0);
_.q([_.y({selector:_.LB}),_.x("design:type",Object)],cv.prototype,"fullscreenValue",void 0);_.q([_.y({selector:_.ow}),_.x("design:type",Object)],cv.prototype,"scrollTopValue",void 0);_.q([_.y({selector:_.Kh}),_.x("design:type",Object)],cv.prototype,"miniplayerIsActiveValue",void 0);_.q([_.fr("#ytd-plj-player"),_.x("design:type",HTMLElement)],cv.prototype,"ytdPlayer",void 0);_.q([_.fr("#playlist"),_.x("design:type",HTMLElement)],cv.prototype,"JSC$23019_ytdPlaylistPanelRenderer",void 0);
_.q([_.jl("ytd-comments"),_.x("design:type",HTMLElement)],cv.prototype,"ytdComments",void 0);_.q([_.fr("#primary"),_.x("design:type",HTMLElement)],cv.prototype,"primary",void 0);_.q([_.fr("#secondary"),_.x("design:type",HTMLElement)],cv.prototype,"secondary",void 0);_.q([_.fr("#player-container"),_.x("design:type",HTMLElement)],cv.prototype,"playerContainer",void 0);_.q([_.fr("#cinematics"),_.x("design:type",HTMLElement)],cv.prototype,"JSC$23019_cinematics",void 0);
_.q([_.Gm("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cv.prototype,"updateTheaterValue",null);_.q([_.Gm("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cv.prototype,"updateFullscreenValue",null);_.q([_.Gm("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cv.prototype,"updateScrollTopValue",null);
_.q([_.Gm("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cv.prototype,"updateMiniplayerIsActiveValue",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cv.prototype,"cinematicLightTheme",null);_.q([_.y({reflectToAttribute:!0}),_.b("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],cv.prototype,"hasLearningJourneyPanels",null);
_.q([_.b("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],cv.prototype,"backButtonData",null);_.q([_.h({is:"ytd-watch-learning-journey"})],cv);_.z5.registerService(_.xR5,cv);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("Tm0L3c");
var kZB;var UEN;var KzJ=function(){return _.N.apply(this,arguments)||this};
_.n(KzJ,_.N);_.q([_.h({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],KzJ);
_.L(KzJ,"ytd-ghost-comments-renderer",function(){if(UEN===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);UEN=D}D=UEN;return D},{mode:1});var hr7;var Lzy=function(){return _.N.apply(this,arguments)||this};
_.n(Lzy,_.N);_.q([_.h({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Lzy);
_.L(Lzy,"ytd-ghost-watch-metadata-renderer",function(){if(hr7===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);hr7=D}D=hr7;return D},{mode:1});var Op=function(){var D=_.N.apply(this,arguments)||this;D.ghostGridRenderer={rows:6};D.roundedInfoPanel=!0;D.hideOfferModules=!0;D.smallerChatMinHeight=_.f("live_chat_smaller_min_height");D.cinematicTheaterMode=_.f("web_cinematic_theater_mode");D.transparentTheaterMode=_.f("web_transparent_theater_mode");D.darkerPanels=_.f("web_watch_darker_panels");D.cinematicFullscreen=_.f("web_cinematic_fullscreen");D.cinematicFullscreenV2=_.f("web_cinematic_fullscreen_v2");D.isDarkTheme=document.documentElement.hasAttribute("dark");
return D};
_.n(Op,_.N);_.u=Op.prototype;_.u.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.u.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.u.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.u.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.u.ready=function(){var D=this,Y=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",Y);this.secondary.addEventListener("scroll",Y)};
_.u.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.u.updateIsTwoColumnsFromBinding=function(D){this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.u.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.u.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.u.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.u.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.u.updateShownItemsFromBinding=function(D){_.f("swatcheroo_direct_use_rich_grid")||(D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value)};
_.u.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23007_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23007_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.YF.Object.defineProperties(Op.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var Y=0;Y<this.data.pageVisualEffects.length;Y++)if(D=_.A(this.data.pageVisualEffects[Y],_.lw))return Y=void 0,(Y=D.config)==null?void 0:Y.enableInLightTheme;return!1}}});
Op.prototype.updateMiniplayerIsActiveValue=Op.prototype.updateMiniplayerIsActiveValue;Op.prototype.updateScrollTopValue=Op.prototype.updateScrollTopValue;Op.prototype.updateFullscreenValue=Op.prototype.updateFullscreenValue;Op.prototype.updateTheaterValue=Op.prototype.updateTheaterValue;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Op.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.lHB.YtdWatchBehavior),_.x("design:type",Object)],Op.prototype,"ytdWatchBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Op.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Op.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Op.prototype,"ghostGridRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],Op.prototype,"playerData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"roundedInfoPanel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"hideOfferModules",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"smallerChatMinHeight",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"cinematicTheaterMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"transparentTheaterMode",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"darkerPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"cinematicFullscreen",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"cinematicFullscreenV2",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Op.prototype,"isDarkTheme",void 0);_.q([_.y({selector:_.hp}),_.x("design:type",Object)],Op.prototype,"theaterValue",void 0);
_.q([_.y({selector:_.LB}),_.x("design:type",Object)],Op.prototype,"fullscreenValue",void 0);_.q([_.y({selector:_.ow}),_.x("design:type",Object)],Op.prototype,"scrollTopValue",void 0);_.q([_.y({selector:_.Kh}),_.x("design:type",Object)],Op.prototype,"miniplayerIsActiveValue",void 0);_.q([_.fr("#ytd-player"),_.x("design:type",HTMLElement)],Op.prototype,"ytdPlayer",void 0);_.q([_.fr("#playlist"),_.x("design:type",HTMLElement)],Op.prototype,"JSC$23007_ytdPlaylistPanelRenderer",void 0);
_.q([_.fr("#ytd-comments"),_.x("design:type",HTMLElement)],Op.prototype,"ytdComments",void 0);_.q([_.fr("#primary"),_.x("design:type",HTMLElement)],Op.prototype,"primary",void 0);_.q([_.fr("#secondary"),_.x("design:type",HTMLElement)],Op.prototype,"secondary",void 0);_.q([_.fr("#player-container"),_.x("design:type",HTMLElement)],Op.prototype,"playerContainer",void 0);_.q([_.fr("#cinematics"),_.x("design:type",HTMLElement)],Op.prototype,"JSC$23007_cinematics",void 0);
_.q([_.Gm("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Op.prototype,"updateTheaterValue",null);_.q([_.Gm("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Op.prototype,"updateFullscreenValue",null);_.q([_.Gm("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Op.prototype,"updateScrollTopValue",null);
_.q([_.Gm("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Op.prototype,"updateMiniplayerIsActiveValue",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Op.prototype,"cinematicLightTheme",null);
_.L(Op,"ytd-watch-grid",function(){if(kZB===void 0){var D=document.createElement("template");_.w(D,'\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-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);kZB=D}D=kZB;return D},{mode:2});_.z5.registerService(_.HzS,Op);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("CF909");
var JTT;var iN=function(){var D=_.N.apply(this,arguments)||this;D.flexy=!0;D.roundedInfoPanel=!0;D.viewTransitionEnabled=_.f("enable_player_resize_transition");D.smallerChatMinHeight=_.f("live_chat_smaller_min_height");D.cinematicTheaterMode=_.f("web_cinematic_theater_mode");D.transparentTheaterMode=_.f("web_transparent_theater_mode");D.cinematicFullscreen=_.f("web_cinematic_fullscreen");D.useLargerMaxPlayerValue=_.f("kevlar_flexy_use_larger_player_value");D.isDarkTheme=document.documentElement.hasAttribute("dark");
D.defaultCollapsePlaylist=_.f("web_watch_default_collapse_playlist");D.retroModeReduxValue=!1;return D};
_.n(iN,_.N);_.u=iN.prototype;_.u.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.u.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.u.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.u.updateRetroModeReduxValue=function(){_.f("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.u.ready=function(){var D=this,Y=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",Y);this.secondary.addEventListener("scroll",Y)};
_.u.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.u.updateIsTwoColumnsFromBinding=function(D){_.f("web_watch_update_narrow_width_killswitch")||_.Dl().dispatch(_.PUf(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.u.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.u.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.u.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.u.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.u.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.u.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23002_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23002_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.YF.Object.defineProperties(iN.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var Y=0;Y<this.data.pageVisualEffects.length;Y++)if(D=_.A(this.data.pageVisualEffects[Y],_.lw))return Y=void 0,(Y=D.config)==null?void 0:Y.enableInLightTheme;return!1}}});
_.YF.Object.defineProperties(iN,{template:{configurable:!0,enumerable:!0,get:function(){if(JTT===void 0){var D=document.createElement("template");_.w(D,'\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">\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"></div>\n      </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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);JTT=D}D=JTT;return D}}});
iN.prototype.updateRetroModeReduxValue=iN.prototype.updateRetroModeReduxValue;iN.prototype.updateScrollTopValue=iN.prototype.updateScrollTopValue;iN.prototype.updateFullscreenValue=iN.prototype.updateFullscreenValue;iN.prototype.updateTheaterValue=iN.prototype.updateTheaterValue;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],iN.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.lHB.YtdWatchBehavior),_.x("design:type",Object)],iN.prototype,"ytdWatchBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],iN.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iN.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],iN.prototype,"playerData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"flexy",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"roundedInfoPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"viewTransitionEnabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"smallerChatMinHeight",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"cinematicTheaterMode",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"transparentTheaterMode",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"cinematicFullscreen",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"useLargerMaxPlayerValue",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],iN.prototype,"isDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],iN.prototype,"defaultCollapsePlaylist",void 0);
_.q([_.y({selector:_.hp}),_.x("design:type",Object)],iN.prototype,"theaterValue",void 0);_.q([_.y({selector:_.LB}),_.x("design:type",Object)],iN.prototype,"fullscreenValue",void 0);_.q([_.y({selector:_.ow}),_.x("design:type",Object)],iN.prototype,"scrollTopValue",void 0);_.q([_.y({selector:_.Kh}),_.x("design:type",Object)],iN.prototype,"miniplayerIsActive",void 0);_.q([_.y({selector:function(D){return D.watch.isWatchRetroMode}}),
_.x("design:type",Object)],iN.prototype,"retroModeReduxValue",void 0);_.q([_.jl("ytd-player"),_.x("design:type",HTMLElement)],iN.prototype,"ytdPlayer",void 0);_.q([_.fr("#playlist"),_.x("design:type",HTMLElement)],iN.prototype,"JSC$23002_ytdPlaylistPanelRenderer",void 0);_.q([_.jl("ytd-comments"),_.x("design:type",HTMLElement)],iN.prototype,"ytdComments",void 0);_.q([_.fr("#primary"),_.x("design:type",HTMLElement)],iN.prototype,"primary",void 0);
_.q([_.fr("#secondary"),_.x("design:type",HTMLElement)],iN.prototype,"secondary",void 0);_.q([_.fr("#player-container"),_.x("design:type",HTMLElement)],iN.prototype,"playerContainer",void 0);_.q([_.fr("#below"),_.x("design:type",HTMLElement)],iN.prototype,"below",void 0);_.q([_.fr("#cinematics"),_.x("design:type",HTMLElement)],iN.prototype,"JSC$23002_cinematics",void 0);
_.q([_.Gm("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iN.prototype,"updateTheaterValue",null);_.q([_.Gm("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iN.prototype,"updateFullscreenValue",null);_.q([_.Gm("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iN.prototype,"updateScrollTopValue",null);
_.q([_.Gm("retroModeReduxValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iN.prototype,"updateRetroModeReduxValue",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],iN.prototype,"cinematicLightTheme",null);_.q([_.h({is:"ytd-watch-flexy"})],iN);_.z5.registerService(_.quU,iN);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("nmfa2d");
var xJo;var Hv=function(){var D=_.N.apply(this,arguments)||this;D.hidden=!1;D.errorScreen=null;D.playlistData={};return D};
_.n(Hv,_.N);_.u=Hv.prototype;_.u.getPlayer=function(){return this.ytdPlayer};
_.u.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:_.OZ(["aa","eocs"])}}};
_.u.onActiveChanged=function(){_.Dl().dispatch(_.wDy(this.ytPageBehavior.active))};
_.u.playerDataChanged=function(){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData)};
_.u.dataChanged=function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)};
_.u.sizeChanged=function(){var D,Y;(Y=(D=this.metadata).resize)==null||Y.call(D)};
_.u.attached=function(){this.watchController=new _.mX(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.u.detached=function(){_.OG(this.watchController);this.watchController=void 0};
_.u.getPlayerContainer=function(){return this.playerContainer};
_.u.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.u.provideRenderingData=function(D,Y){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=Y;break;case "ERROR_SCREEN":this.errorScreen=Y!=null?Y:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=Y;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=Y;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=Y;break;case "RICH_METADATA":this.richMetadataRowContainer=Y;break;case "CLARIFICATION":this.clarificationData=Y;break;case "PLAYLIST":this.playlistData=
Y!=null?Y:{};break;case "MERCH_SHELF":this.merchShelf=Y;break;case "TICKET_SHELF":this.ticketShelf=Y;break;case "LIMITED_STATE":this.limitedState=Y;break;case "DONATION_SHELF":this.donationShelf=Y;break;case "ALERTS":this.alerts=Y}};
_.YF.Object.defineProperties(Hv.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return!this.hidden&&!!((D=this.data)==null?0:(Y=D.contents)==null?0:(R=Y.twoColumnWatchNextResults)==null?0:R.conversationBar)}}});
Hv.prototype.sizeChanged=Hv.prototype.sizeChanged;Hv.prototype.dataChanged=Hv.prototype.dataChanged;Hv.prototype.playerDataChanged=Hv.prototype.playerDataChanged;Hv.prototype.onActiveChanged=Hv.prototype.onActiveChanged;_.q([_.v(_.Kz.YtPageBehavior),_.x("design:type",Object)],Hv.prototype,"ytPageBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Hv.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Hv.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"playerData",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Hv.prototype,"hidden",void 0);_.q([_.fr("#ytd-player"),_.x("design:type",HTMLElement)],Hv.prototype,"ytdPlayer",void 0);_.q([_.fr("#player-container"),_.x("design:type",HTMLElement)],Hv.prototype,"playerContainer",void 0);_.q([_.fr("#metadata"),_.x("design:type",Object)],Hv.prototype,"metadata",void 0);_.q([_.fr("#playlist"),_.x("design:type",HTMLElement)],Hv.prototype,"playlistPanel",void 0);
_.q([_.y({selector:_.OMB,reflectToAttribute:!0}),_.x("design:type",Object)],Hv.prototype,"fixie",void 0);_.q([_.y({selector:_.iMT,reflectToAttribute:!0}),_.x("design:type",Object)],Hv.prototype,"singleColumn",void 0);_.q([_.y({selector:function(D){return _.hp(D)&&!_.LB(D)},
reflectToAttribute:!0}),_.x("design:type",Object)],Hv.prototype,"theater",void 0);_.q([_.y({selector:_.LB,reflectToAttribute:!0}),_.x("design:type",Object)],Hv.prototype,"fullscreen",void 0);_.q([_.y({selector:_.nso}),_.x("design:type",Object)],Hv.prototype,"windowSize",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"singleColumnContents",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"errorScreen",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"playlistData",void 0);
_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"videoPrimaryInfoRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"videoSecondaryInfoRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"richMetadataRowContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"clarificationData",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"commentsEntryPointHeaderRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"ticketShelf",void 0);
_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"merchShelf",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"donationShelf",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"limitedState",void 0);_.q([_.y(),_.x("design:type",Object)],Hv.prototype,"alerts",void 0);_.q([_.b("playlistData"),_.x("design:type",Object),_.x("design:paramtypes",[])],Hv.prototype,"hasPlaylistData",null);
_.q([_.b("data","hidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hv.prototype,"hasChat",null);_.q([_.Gm("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hv.prototype,"onActiveChanged",null);_.q([_.Gm("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hv.prototype,"playerDataChanged",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hv.prototype,"dataChanged",null);_.q([_.Gm("windowSize","singleColumn"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hv.prototype,"sizeChanged",null);
_.L(Hv,"ytd-watch-fixie",function(){if(xJo===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);xJo=D}D=xJo;return D},{mode:1});_.z5.registerService(_.mRr,Hv);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("xwEKAe");
var PN0=function(D){return _.gR(D)?D.getAttribute("jsname")==="coFSxe":!1},QxK=function(D,Y){Y.id||(Y.id="ow"+_.Ey(Y));
D.setAttribute("jsowner",Y.id);D.__owner=Y;var R=_.K0(Y,PN0);R&&(_.ZI4.has(R)||_.ZI4.set(R,[]),_.ZI4.get(R).push(D));(R=_.Rk4.get(Y))||_.Rk4.set(Y,R=[]);R.includes(D)||R.push(D);Y.setAttribute("__IS_OWNER",!0)},B5h=function(){var D=_.APn(1);
D=_.de(D,_.oQn);if(!(_.e29(D)||D[_.EFU]&&!D.__hasBeenSet))return D.value},pvk=function(D){var Y=_.nX();
if(Y.getFlag(202))Y=Y.getFlag(201);else{var R;Y=(D==null?void 0:(R=D.config)==null?void 0:R.settingOnByDefault)!==void 0?D.config.settingOnByDefault:!_.f("web_shorts_cinematics_disabled_by_default")}return Y},EA9=function(D){var Y=_.nX();
_.rC(0,201,D);_.rC(0,202,!0);Y.save()},gAk=function(D){return(D=_.z5n(D))?_.Tw$(D):0},dek=function(D){return D.shorts.isSmallScreenSqueezeback},iE9=function(D){return D.shorts.isPlaybackStarted},D$g=function(D){var Y=_.APn(2),R=new Set;
_.w2(function(){return void R.forEach(function(Z){return void Z()})});
return function(Z){var t=_.ge(Y);try{var X=OEb(ceT(D),Z);R.add(X);return function(){X();R.delete(X)}}finally{_.ge(t)}}},Yyy=function(D){var Y=D.children;
var R=D.root;_.rf(function(){var Z=D$g(R)(Y);_.w2(Z)});
return document.createTextNode("")},OEb=function(D,Y){var R=Rjf(D);
(D=B5h())&&QxK(R,D);Y=_.a(_.Ixn(Y,!0));D=Y.next().value;var Z=Y.next().value;R.append.apply(R,_.oK(D));return function(){Z();R.remove()}},ceT=function(D){if(typeof D==="string")return D=document.querySelector(D),_.Gyt(D),D;
if(_.Ys(D)&&D.nodeType===Node.ELEMENT_NODE)return D;if(!D.__value&&!D.__optional){var Y=_.dAi.USE_ELEMENT_NOT_ASSIGNED(D.__expectedTagName);D.__hasErrored=!0;throw Y;}return D.value},Rjf=function(D){var Y=document.createElementNS(D.namespaceURI,D.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return D.appendChild(Y)},ZMB=function(D,Y,R,Z){D=Y-D;
R=Z-R;return Math.sqrt(D*D+R*R)},tbZ=function(D,Y){D&&_.DH().resolve(_.Yw).resolveCommand(D,{forceClickLogging:!0,
form:{element:Y}})},sl7=function(D,Y,R,Z){D=Y-D;
R=Z-R;return Math.sqrt(D*D+R*R)},Xoo=function(D,Y){D&&_.DH().resolve(_.Yw).resolveCommand(D,{forceClickLogging:!0,
form:{element:Y}})},uiB=function(){return _.DH().resolve(_.rt).dismissedIndices},aUE=function(D,Y){var R,Z,t,X,M,W,z,I,F;
return _.C(function(G){if(G.nextAddress==1){R=_.DH().resolve(_.P90);X=(Z=R)==null?void 0:(t=Z.reelWatchEndpointMap)==null?void 0:t.reelWatchSequence;W=(M=D.innertubeTransportService)!=null?M:_.DH().resolve(_.h6);if(!X)return G.jumpTo(2);z=X();return(I=z.JSC$13015_getRequest(Y,{}))?G.yield(_.Hk(W,I.innerTubeRequest,I.input,Y.clickTrackingParams,I.config),4):G.jumpTo(2)}return G.nextAddress!=2?(F=G.yieldResult,G.return(F)):G.return(void 0)})},Mbf=function(D){return _.u0({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:D}})},C9T=function(D){return _.u0({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:D}})},aw=function(D){return _.u0({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:D}})};var Mh=function(D,Y){if(D instanceof Mh)this.array_=D.array_;else{var R;if(R=_.xn(D))a:{for(var Z=R=0;Z<D.length;Z++){if(!_.xn(D[Z])||R>0&&D[Z].length!=R){R=!1;break a}for(var t=0;t<D[Z].length;t++)if(typeof D[Z][t]!=="number"){R=!1;break a}R==0&&(R=D[Z].length)}R=R!=0}if(R)this.array_=_.q$(D);else if(D instanceof _.FL)this.array_=W5G(D.height,D.width);else if(typeof D==="number"&&typeof Y==="number"&&D>0&&Y>0)this.array_=W5G(D,Y);else throw Error("so");}this.size_=new _.FL(this.array_[0].length,
this.array_.length)},zjG=function(D,Y,R){for(var Z=0;Z<D.getSize().height;Z++)for(var t=0;t<D.getSize().width;t++)Y.call(R,D.array_[Z][t],Z,t,D)},Syg=function(D,Y){var R=new Mh(D.getSize());
zjG(D,function(Z,t,X){R.array_[t][X]=Y.call(void 0,Z,t,X,D)});
return R},W5G=function(D,Y){for(var R=[],Z=0;Z<D;Z++){R[Z]=[];
for(var t=0;t<Y;t++)R[Z][t]=0}return R};
Mh.prototype.add=function(D){if(!_.IrT(this.size_,D.getSize()))throw Error("to");return Syg(this,function(Y,R,Z){return Y+D.array_[R][Z]})};
Mh.prototype.equals=function(D,Y){if(this.size_.width!=D.size_.width||this.size_.height!=D.size_.height)return!1;Y=Y||0;for(var R=0;R<this.size_.height;R++)for(var Z=0;Z<this.size_.width;Z++)if(!_.jxh(this.array_[R][Z],D.array_[R][Z],Y))return!1;return!0};
Mh.prototype.getSize=function(){return this.size_};
var CR=function(D,Y,R){return Y>=0&&Y<D.size_.height&&R>=0&&R<D.size_.width?D.array_[Y][R]:null};
Mh.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var WY=function(D,Y,R,Z){if(!(Y>=0&&Y<D.size_.height&&R>=0&&R<D.size_.width))throw Error("uo`"+Y+"`"+R+"`"+D.size_.height+"`"+D.size_.width);D.array_[Y][R]=Z};
Mh.prototype.multiply=function(D){if(D instanceof Mh){if(this.size_.width!=D.getSize().height)throw Error("vo");return TrN(this,D)}if(typeof D==="number")return jl$(this,D);throw Error("wo");};
var TrN=function(D,Y){var R=new Mh(D.size_.height,Y.getSize().width);zjG(R,function(Z,t,X){for(var M=Z=0;M<this.size_.width;M++)Z+=CR(this,t,M)*CR(Y,M,X);WY(R,t,X,Z)},D);
return R},jl$=function(D,Y){return Syg(D,function(R){return R*Y})};var IUN=new _.Dv("inlineSurveyRenderer");var F5f=new _.Dv("interstitialViewModel");var GUG=new _.Dv("reelNavigateCommand");var VbB=new _.Dv("reelNonVideoContentDismissalCommand");var fUo=new _.Dv("showReelsCommentsOverlayCommand");var ejN=new _.Dv("shortsSuggestedActionViewModel");var AST=new _.Dv("videoInteractionPopUpRenderer");var nnG;var rSB;var wog;var zh=function(){var D=_.N.apply(this,arguments)||this;D.ctaVisualElement=null;D.currentCsn=null;return D};
_.n(zh,_.N);_.u=zh.prototype;_.u.onDataChanged=function(){this.maybeLogShows()};
_.u.computeButtonShape=function(){var D=this;if(this.data)return{buttonText:_.OM(this.data.text),state:"active",onTap:function(){D.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.u.maybeCreateCtaVe=function(){var D;if((D=this.data)!=null&&D.badgeInteractionLogging){var Y;if(D=(Y=this.data.badgeInteractionLogging)==null?void 0:Y.trackingParams)this.ctaVisualElement=_.oT(D)}};
_.u.maybeLogClicks=function(){this.currentCsn=_.K2(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.dC(this.currentCsn,this.ctaVisualElement)};
_.u.maybeLogShows=function(){this.currentCsn=_.K2(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.E7(this.currentCsn,[this.ctaVisualElement])};
_.u.onTap=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var Y;this.ytComponentBehavior.resolveCommand((Y=this.data)==null?void 0:Y.onClickCommand);this.maybeLogClicks()}};
zh.prototype.onDataChanged=zh.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],zh.prototype,"ytComponentBehavior",void 0);_.q([_.y({}),_.x("design:type",Object)],zh.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zh.prototype,"onDataChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],zh);
_.L(zh,"ytd-shopping-overlay-badge-renderer",function(){if(wog!==void 0)return wog;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return wog=D},{mode:1});_.at(_.$kT,"reel-sound-metadata-view-model",{props:{data:_.uq,overlayDensity:_.uq}});_.at(_.AZu,"player-disclosure-view-model",{props:{data:_.cs}});_.at(_.IyL,"pivot-button-view-model",{props:{data:_.uq,className:_.uq}});_.at(_.F8D,"reel-action-bar-view-model",{props:{data:_.cs,buttonShapeOverrideables:_.cs}});_.at(_.RT(function(D){function Y(){var Wo,Sb,VU,AS,nM=(Sb=_.A((Wo=c())==null?void 0:Wo.command,_.ri))==null?void 0:(VU=Sb.item)==null?void 0:(AS=VU.notificationTextRenderer)==null?void 0:AS.successResponseText;if(nM)_.CX(Z.value,"yt-open-popup-action",[_.RQ(nM),Z.value]);else if(Q())tbZ(Q(),r.value);else{var Ho;tbZ((Ho=c())==null?void 0:Ho.command,r.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var R=D.data;var Z=_.dI("yt-player-overlay-video-interactions");D=_.a(_.ae("0px",void 0,"O1N7Ce"));var t=D.next().value,X=D.next().value;D=_.a(_.ae("0px",void 0,"tTDBdb"));var M=D.next().value,W=D.next().value;D=_.a(_.ae(0,void 0,"fh8Zkc"));var z=D.next().value,I=D.next().value;D=_.a(_.ae(0,void 0,"CUjqGd"));var F=D.next().value,G=D.next().value,V=function(){var Wo;if(((Wo=_.IP())==null?void 0:Wo.getPlayerState())!==-1){Z.value.style.display="inherit";var Sb;(Sb=_.IP())==null||Sb.removeEventListener("onStateChange",
V)}e()},e=function(){var Wo=document.querySelector("video");
if(Wo){I(Wo.getBoundingClientRect().width);G(Wo.getBoundingClientRect().height);var Sb;X((Wo==null?void 0:(Sb=Wo.style)==null?void 0:Sb.left)||"0px");var VU;W((Wo==null?void 0:(VU=Wo.style)==null?void 0:VU.top)||"0px")}};
_.r2(function(){var Wo,Sb,VU;if(((Wo=_.IP())==null?void 0:Wo.getPlayerState())===-1&&Math.round(((VU=(Sb=_.IP())==null?void 0:Sb.getVideoAspectRatio())!=null?VU:0)*100)!==Math.round(z()/F()*100)){Z.value.style.display="none";var AS,nM;G(z()/((nM=(AS=_.IP())==null?void 0:AS.getVideoAspectRatio())!=null?nM:1))}},"VB5m5");
_.rf(function(){var Wo;(Wo=_.IP())==null||Wo.addEventListener("onStateChange",V);window.addEventListener("resize",e);e();var Sb,VU,AS;if((AS=(Sb=R())==null?void 0:(VU=Sb.regions)==null?void 0:VU[0])==null||!AS.transformationMatrix)throw Error("Ao");var nM;if((nM=R())==null?0:nM.trackingParams){var Ho;_.n8().graftServerVe((Ho=R().trackingParams)!=null?Ho:"")}_.w2(function(){var KM;(KM=_.IP())==null||KM.removeEventListener("onStateChange",V);window.removeEventListener("resize",e)})});
var r=_.dI("svg"),l=_.a(_.ae(!1,void 0,"TPsTce"));D=l.next().value;var U=l.next().value,K=_.a(_.ae(!1,void 0,"Uz6CHf"));l=K.next().value;var H=K.next().value,c=function(){var Wo;return _.A((Wo=R())==null?void 0:Wo.popUp,AST)},Q=function(){var Wo;
return(Wo=R())==null?void 0:Wo.command},E=function(){return _.A(Q(),_.bI)!==void 0};
K=_.F4(function(){Y();return!1});
var B={},O={};return _.S("yt-player-overlay-video-interactions",{el:Z},_.S("svg",{"on:mouseover":_.F4(function(){E()&&U(!0);H(!0);return!1}),
"on:mouseout":_.F4(function(){U(!1);H(!1);return!1}),
"on:keydown":_.F4(function(Wo){Wo.key==="Enter"&&Y();return!1}),
"on:focus":_.F4(function(){E()&&U(!0);return!1}),
"on:blur":_.F4(function(){E()&&U(!1);return!1}),
el:r,tabindex:0,"aria-label":function(){var Wo;return(Wo=R())==null?void 0:Wo.a11yString},
id:"player-overlay-video-interaction-svg",class:_.e7("yt-player-overlay-video-interactions__interactions-svg",(B["yt-player-overlay-video-interactions__interactions-svg-hover"]=D,B),(O["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=l,O)),role:"button",style:function(){var Wo,Sb,VU,AS=(VU=(Wo=R())==null?void 0:(Sb=Wo.regions)==null?void 0:Sb[0].transformationMatrix)!=null?VU:[];Wo=z();Sb=F();VU=[];for(var nM=0,Ho=-1;nM<AS.length;nM++)nM%3===0&&(Ho++,VU[Ho]=[]),VU[Ho].push(AS[nM]);
AS=new Mh(VU);VU=new Mh([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);VU=AS.multiply(VU);AS=new Mh([[0,0],[0,0],[0,0],[0,0]]);for(nM=0;nM<VU.getSize().width;nM++){Ho=CR(VU,0,nM);var KM=CR(VU,1,nM);if(Ho===null||KM===null)throw Error("zo`"+(nM+1).toString());WY(AS,nM,0,Ho*Wo);WY(AS,nM,1,KM*Sb)}Wo=CR(AS,0,0);nM=CR(AS,1,0);Sb=CR(AS,0,1);Ho=CR(AS,1,1);if(Wo===null||nM===null||Sb===null||Ho===null)throw Error("xo");VU=ZMB(Wo,nM,Sb,Ho);KM=CR(AS,3,0);AS=CR(AS,3,1);if(KM===null||AS===null)throw Error("yo");AS=ZMB(Wo,
KM,Sb,AS);Ho=(Number((Ho*-1).toFixed(2))-Number((Sb*-1).toFixed(2)))/(Number(nM.toFixed(2))-Number(Wo.toFixed(2)));KM=Math.atan(Ho)*180/Math.PI;nM=Ho===Number.POSITIVE_INFINITY?-90:Ho===Number.NEGATIVE_INFINITY?90:Object.is(Ho,-0)?180:Ho===0?0:Ho>0?KM*-1:Wo<nM?KM*-1:Math.abs(KM)+180;return"left:calc("+Wo+"px + "+t()+"); top:calc("+(Sb+"px + "+M()+"); width:")+(VU+"px; height:")+(AS+"px; transform:rotate(")+(nM+"deg);")},
"on:click":K}))},"Kj"),"yt-player-overlay-video-interactions",{props:{data:_.cs}});_.at(_.v29,"yt-reel-metapanel-view-model",{props:{data:_.cs,overlayDensity:_.cs}});var $$7=_.RT(function(D){var Y=D.children;var R=D.region;D=_.a(_.ae(void 0,void 0,"rwJZyc"));var Z=D.next().value,t=D.next().value;D=_.a(_.ae("0px",void 0,"H14H5c"));var X=D.next().value,M=D.next().value;D=_.a(_.ae("0px",void 0,"Mn8Uvf"));var W=D.next().value,z=D.next().value;D=_.a(_.ae(0,void 0,"QQCIqc"));var I=D.next().value,F=D.next().value;D=_.a(_.ae(0,void 0,"HyEvh"));var G=D.next().value,V=D.next().value,e=function(){var c=Z();if(c){var Q;if(((Q=_.IP())==null?void 0:Q.getPlayerState())!==-1){c.style.display=
"inherit";var E;(E=_.IP())==null||E.removeEventListener("onStateChange",e)}l()}},r=function(){var c=document.querySelectorAll("video");
return Array.from(c).find(function(Q){var E;return Q==null?void 0:(E=Q.style)==null?void 0:E.width})},l=function(){var c=r();
if(c){F(c.getBoundingClientRect().width);V(c.getBoundingClientRect().height);var Q;M((c==null?void 0:(Q=c.style)==null?void 0:Q.left)||"0px");var E;z((c==null?void 0:(E=c.style)==null?void 0:E.top)||"0px")}};
_.r2(function(){var c=Z();if(c){var Q,E,B;if(((Q=_.IP())==null?void 0:Q.getPlayerState())===-1&&Math.round(((B=(E=_.IP())==null?void 0:E.getVideoAspectRatio())!=null?B:0)*100)!==Math.round(I()/G()*100)){c.style.display="none";var O,Wo;V(I()/((Wo=(O=_.IP())==null?void 0:O.getVideoAspectRatio())!=null?Wo:1))}}},"RdGxIf");
var U=function(){l()},K;
_.rf(function(){l();var c;if(!(R==null?0:(c=R())==null?0:c.transformationMatrix))throw Error("Ao");var Q;(Q=_.IP())==null||Q.addEventListener("onStateChange",e);if(window.ResizeObserver){if(c=r())K=new ResizeObserver(U),K.observe(c)}else window.addEventListener("resize",l);_.w2(function(){var E;(E=_.IP())==null||E.removeEventListener("onStateChange",e);K?K.disconnect():window.removeEventListener("resize",l)})});
var H=function(){var c,Q,E=(Q=R==null?void 0:(c=R())==null?void 0:c.transformationMatrix)!=null?Q:[];c=I();Q=G();for(var B=[],O=0,Wo=-1;O<E.length;O++)O%3===0&&(Wo++,B[Wo]=[]),B[Wo].push(E[O]);E=new Mh(B);B=new Mh([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);B=E.multiply(B);E=new Mh([[0,0],[0,0],[0,0],[0,0]]);for(O=0;O<B.getSize().width;O++){Wo=CR(B,0,O);var Sb=CR(B,1,O);if(Wo===null||Sb===null)throw Error("zo`"+(O+1).toString());WY(E,O,0,Wo*c);WY(E,O,1,Sb*Q)}c=CR(E,0,0);O=CR(E,1,0);Q=CR(E,0,1);Wo=CR(E,1,1);
if(c===null||O===null||Q===null||Wo===null)throw Error("xo");B=sl7(c,O,Q,Wo);Sb=CR(E,3,0);E=CR(E,3,1);if(Sb===null||E===null)throw Error("yo");E=sl7(c,Sb,Q,E);Wo=(Number((Wo*-1).toFixed(2))-Number((Q*-1).toFixed(2)))/(Number(O.toFixed(2))-Number(c.toFixed(2)));Sb=Math.atan(Wo)*180/Math.PI;O=Wo===Number.POSITIVE_INFINITY?-90:Wo===Number.NEGATIVE_INFINITY?90:Object.is(Wo,-0)?180:Wo===0?0:Wo>0?Sb*-1:c<O?Sb*-1:Math.abs(Sb)+180;return"left:calc("+c+"px + "+X()+"); top:calc("+(Q+"px + "+W()+"); width:")+
(B+"px; height:")+(E+"px; transform:rotate(")+(O+"deg);")};
return _.S(Yyy,{root:"#sticker-layer"},function(){return _.S("yt-overlay-sticker",{el:_.tp(t),style:H,class:"ytOverlayStickerHost"},Y)})},"Lj");var vnE=_.RT(function(D){function Y(){var e,r,l,U,K=(r=_.A((e=z())==null?void 0:e.command,_.ri))==null?void 0:(l=r.item)==null?void 0:(U=l.notificationTextRenderer)==null?void 0:U.successResponseText;if(K)_.CX(Z.value,"yt-open-popup-action",[_.RQ(K),Z.value]);else if(I())Xoo(I(),Z.value);else{var H;Xoo((H=z())==null?void 0:H.command,Z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var R=D.data;var Z=_.dI("svg"),t=_.a(_.ae(!1,void 0,"T9Bq7b"));D=t.next().value;var X=t.next().value,M=_.a(_.ae(!1,void 0,"iMHq9c"));t=M.next().value;var W=M.next().value,z=function(){var e;return _.A((e=R())==null?void 0:e.popUp,AST)},I=function(){var e;
return(e=R())==null?void 0:e.command},F=function(){return _.A(I(),_.bI)!==void 0};
M=_.F4(function(){Y();return!1});
var G={},V={};return _.S("svg",{"on:mouseover":_.F4(function(){F()&&X(!0);W(!0);return!1}),
"on:mouseout":_.F4(function(){X(!1);W(!1);return!1}),
"on:keydown":_.F4(function(e){e.key==="Enter"&&Y();return!1}),
"on:focus":_.F4(function(){F()&&X(!0);return!1}),
"on:blur":_.F4(function(){F()&&X(!1);return!1}),
el:Z,tabindex:0,"aria-label":function(){var e;return(e=R())==null?void 0:e.a11yString},
id:"player-overlay-video-interaction-svg",class:_.e7("ytPlayerOverlayInteractionInteractionsSvg",(G.ytPlayerOverlayInteractionInteractionsSvgHover=D,G),(V.ytPlayerOverlayInteractionInteractionsSvgHideOutline=t,V)),role:"button","on:click":M})},"Nj");_.at(_.RT(function(D){var Y=D.data;_.rf(function(){var R;if((R=Y())==null?0:R.trackingParams){var Z;_.n8().graftServerVe((Z=Y().trackingParams)!=null?Z:"")}});
return _.S("yt-player-overlay-interaction",null,_.S($$7,{region:function(){var R,Z;return(R=Y())==null?void 0:(Z=R.regions)==null?void 0:Z[0]}},_.S(vnE,Object.assign({},D))))},"Mj"),"yt-player-overlay-interaction",{props:{data:_.cs}});var SW=function(){var D=_.N.apply(this,arguments)||this;D.showScrubber=!1;D.isWatchWhileMode=!1;D.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");D.enableNewStickers=_.f("use_shorts_sticker_overlay_web");D.anchoredPanelActive=!1;D.enableLivingroomLayout=_.f("reels_enable_livingroom_layout");D.enablePlayerMetadataContainer=_.f("reels_web_enable_metadata_container");D.enableSqueezebackPanels=_.f("web_shorts_enable_squeezeback_panels");D.useAspectRatio=_.f("web_use_aspect_ratio");D.isSqueezebackActive=
!1;D.smallScreenSqueezeback=!1;D.isPlayerStarted=!1;D.overlayDensity=0;D.isOverlay=!1;D.isImmersive=!1;D.isImmersiveHorizontal=!1;D.isFullscreen=!1;D.onWindowResized=function(){var Y;D.set("isImmersive",((Y=window.getComputedStyle(D.hostElement))==null?void 0:Y.getPropertyValue("--immersive-mode-on"))==="1");D.set("isImmersiveHorizontal",D.isImmersive&&D.enableLivingroomLayout&&!D.isWatchWhileMode)};
return D};
_.n(SW,_.N);_.u=SW.prototype;_.u.updateIsOverlay=function(D){this.isOverlay=D.detail.value};
_.u.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.f("web_enable_flexible_overlay")||_.f("web_enable_format_first")||_.f("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.u.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.u.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.u.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.u.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.u.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.u.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.u.ready=function(){(_.f("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"))&&(!_.f("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.XW("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.XW("reels_action_justified_content")||"flex-start")};
_.u.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.u.setFakeLoadingButtons=function(){_.f("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.fX("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.fX("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.fX("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.fX("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.fX("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()};
_.u.setEmptyOverlayMetadata=function(){_.f("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}))};
_.YF.Object.defineProperties(SW.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoPanel)}}});
SW.prototype.onIsActiveChanged=SW.prototype.onIsActiveChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],SW.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],SW.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],SW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],SW.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],SW.prototype,"isActive",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],SW.prototype,"hidden",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],SW.prototype,"useShortsIcon",void 0);_.q([_.y({value:"left"}),_.x("design:type",String)],SW.prototype,"buttonTooltipPosition",void 0);
_.q([_.y({value:_.f("reels_enable_livingroom_layout")?"top":"left"}),_.x("design:type",String)],SW.prototype,"likeButtonTooltipPosition",void 0);_.q([_.y({value:"none"}),_.x("design:type",String)],SW.prototype,"textTransform",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"showScrubber",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"isWatchWhileMode",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.infoPanel"),_.x("design:type",Object),_.x("design:paramtypes",[])],SW.prototype,"hasInfoPanel",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"enableAnchoredPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"enableNewStickers",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"anchoredPanelActive",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"enableLivingroomLayout",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],SW.prototype,"enablePlayerMetadataContainer",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"enableSqueezebackPanels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"useAspectRatio",void 0);
_.q([_.y({selector:_.qCr,reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"isSqueezebackActive",void 0);_.q([_.y({selector:dek,reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"smallScreenSqueezeback",void 0);_.q([_.y({selector:iE9}),_.x("design:type",Object)],SW.prototype,"isPlayerStarted",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"overlayDensity",void 0);_.q([_.y(),_.x("design:type",Object)],SW.prototype,"isOverlay",void 0);
_.q([_.y({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.x("design:type",Boolean)],SW.prototype,"isShortsOverlay",void 0);_.q([_.y(),_.x("design:type",Object)],SW.prototype,"isImmersive",void 0);_.q([_.y(),_.x("design:type",Object)],SW.prototype,"isImmersiveHorizontal",void 0);_.q([_.y({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.x("design:type",Boolean)],SW.prototype,"isShortsImmersive",void 0);
_.q([_.y({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.x("design:type",Object)],SW.prototype,"buttonOverride",void 0);_.q([_.y({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.x("design:type",Object)],SW.prototype,"actionBarButtonOverride",void 0);_.q([_.y({selector:_.MV,reflectToAttribute:!0}),_.x("design:type",Object)],SW.prototype,"isFullscreen",void 0);
_.q([_.Gm("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SW.prototype,"onIsActiveChanged",null);_.q([_.h({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],SW);
_.L(SW,"ytd-reel-player-overlay-renderer",function(){if(rSB!==void 0)return rSB;var D=document.createElement("template");_.w(D,'\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="[[!enableNewStickers]]" 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-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" 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">\n        </yt-player-overlay-interaction>\n      </template>\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]]" 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    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rSB=D},{mode:1});var ong;var Th=function(){var D=_.N.apply(this,arguments)||this;D.videoDuration=0;D.playedTime=0;D.isActive=!1;D.JSC$22198_playerEvents=new Map;return D};
_.n(Th,_.N);_.u=Th.prototype;_.u.created=function(){this.JSC$22198_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22198_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.u.attached=function(){this.getPlayerAndInitializeListeners()};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22198_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.jN(this,this.onPageChanged))};
_.u.getPlayerAndInitializeListeners=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return Y=_.sm(),Y?R.yield(Y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.jN(D,D.onPageChanged)),R.jumpTo(0));D.player=R.yieldResult;D.initializePlayerListeners();_.V9(R)})};
_.u.onPageChanged=function(D){var Y=this;return _.C(function(R){if(R.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?R.return():R.yield(_.XU().getPlayerPromise(),2);Y.player=R.yieldResult;Y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.jN(Y,Y.onPageChanged));_.V9(R)})};
_.u.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22198_playerEvents)};
_.u.onVideoDataChange=function(D){var Y=this;return _.C(function(R){if(!Y.player||D.type!=="newdata")return R.return();Y.videoDuration=_.f("web_shorts_use_progress_state_for_gapless")?Y.player.getProgressState(D.playertype).seekableEnd:Y.player.getDuration(D.playertype);Y.playedTime=0;_.V9(R)})};
_.u.onVideoProgress=function(D){var Y=this,R,Z;return _.C(function(t){if(!Y.player)return t.return();R=Y.player.getPresentingPlayerType();Z=Y.player.getPlayerState();Y.videoDuration=_.f("web_shorts_use_progress_state_for_gapless")?Y.player.getProgressState(R).seekableEnd:Y.player.getDuration(R);Y.playedTime=Z===0?Y.videoDuration:D;_.V9(t)})};
_.u.getPercentPlayed=function(D,Y){return D?_.UR(Y/D,0,1):0};
_.YF.Object.defineProperties(Th.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 D="";return D=this.videoDuration&&this.playedTime?D+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):D+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Th.prototype,"componentBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],Th.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Th.prototype,"player",void 0);_.q([_.y(),_.x("design:type",Object)],Th.prototype,"videoDuration",void 0);_.q([_.y(),_.x("design:type",Object)],Th.prototype,"playedTime",void 0);_.q([_.y(),_.x("design:type",Object)],Th.prototype,"isActive",void 0);
_.q([_.b("videoDuration","playedTime"),_.x("design:type",Number),_.x("design:paramtypes",[])],Th.prototype,"percentPlayed",null);_.q([_.b("videoDuration","playedTime"),_.x("design:type",Object),_.x("design:paramtypes",[])],Th.prototype,"percentPlayedStyle",null);_.q([_.b("videoDuration","isActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"hideProgressBar",null);
_.L(Th,"ytd-progress-bar-line",function(){if(ong===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);ong=D}D=ong;return D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var bMg;_.at(_.X_h,"ytm-closed-captioning-button",{props:{captionIconType:_.cs,onClick:_.uq,ariaLabel:_.cs,ariaPressed:_.cs,isOverlay:_.uq,isModern:_.uq}});_.at(_.e3b,"desktop-shorts-volume-controls",{props:{orientation:_.cs}});var jW=function(){var D=_.N.apply(this,arguments)||this;D.playerState=null;D.isMuted=!1;D.shortsModernControlsEnabled=_.f("web_shorts_modern_controls");D.volumeControlsOrientationState=_.f("web_shorts_modern_controls")?"vertical_down":"horizontal_right";D.isOverlay=!0;D.captionIconType=-1;D.ariaLabel="";D.overlayDensity=0;D.JSC$22201_playerEvents=new Map;D.onClosedCaptionsButtonClick=function(){D.player&&_.YV(D.player)&&(D.player.toggleSubtitles(),D.updateCaptionIconType())};
return D};
_.n(jW,_.N);_.u=jW.prototype;_.u.created=function(){this.JSC$22201_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22201_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22201_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.u.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.TP(28662);this.playPauseButtonClientVE=_.TP(36842);this.fullscreenButtonToggleOffClientVE=_.TP(222256);this.fullscreenButtonToggleOnClientVE=_.TP(222257);var D=_.K2(),Y=_.Ud();D&&Y&&(_.f("combine_ve_grafts")?(_.jF(_.n8(),this.muteButtonClientVE,Y),_.jF(_.n8(),this.playPauseButtonClientVE,Y)):_.BC(D,Y,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22201_playerEvents),this.player=null)};
_.u.updateCaptionIconType=function(){var D=-1,Y=void 0,R=_.fX("CLOSED_CAPTIONS_DISABLED");this.player&&_.YV(this.player)&&(_.EhK(this.player)?(Y=!0,R=_.fX("CLOSED_CAPTIONS_ON"),D=1):(Y=!1,R=_.fX("CLOSED_CAPTIONS_OFF"),D=0));this.captionIconType=D;this.ariaPressedState=Y;this.ariaLabel=R};
_.u.getPlayerAndInitializeListeners=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return Y=_.sm(),Y?R.yield(Y.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.jN(D,D.onPageChanged)),R.jumpTo(0));D.player=R.yieldResult;D.initializePlayerListeners();_.V9(R)})};
_.u.onPageChanged=function(D){var Y=this;return _.C(function(R){if(R.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?R.return():R.yield(_.XU().getPlayerPromise(),2);Y.player=R.yieldResult;Y.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.jN(Y,Y.onPageChanged));_.V9(R)})};
_.u.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22201_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.u.onPlayerStateChange=function(D){this.playerState=D};
_.u.onPlayerVolumeChange=function(D){this.isMuted=D.muted};
_.u.onPlayPauseButtonClick=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.XU().getPlayerPromise(),2);Y=Z.yieldResult;(R=_.K2())&&D.playPauseButtonClientVE&&_.dC(R,D.playPauseButtonClientVE);Y.getPlayerState()!==1?Y.playVideo():Y.pauseVideo();_.V9(Z)})};
_.u.computePlayPauseIcon=function(D){return D===2||D===-1||D===5?_.f("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.f("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.f("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.u.computeFullscreenLabel=function(D){return D?_.fX("FULLSCREEN_EXIT_LABEL"):_.fX("FULLSCREEN_ENTER_LABEL")};
_.u.computePlayPauseLabel=function(D){return D===1||D===3?_.fX("PLAYER_LABEL_PAUSE"):_.fX("PLAYER_LABEL_PLAY")};
_.u.onMuteButtonClick=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.XU().getPlayerPromise(),2);Y=Z.yieldResult;(R=_.K2())&&D.muteButtonClientVE&&_.dC(R,D.muteButtonClientVE);Y.isMuted()?Y.unMute(!0):Y.mute(!0);_.V9(Z)})};
_.u.computeMuteIcon=function(D){return D?"miniplayer:volume-off":"miniplayer:volume-up"};
_.u.computeMuteLabel=function(D){return D?_.fX("PLAYER_LABEL_UNMUTE"):_.fX("PLAYER_LABEL_MUTE")};
_.u.onFullscreenButtonClick=function(){var D=_.K2();D&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.dC(D,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.dC(D,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.eMb()};
_.YF.Object.defineProperties(jW.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var D=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(){D.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
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?_.f("web_shorts_modern_controls")?"player_full_exit_alt":_.f("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.f("web_shorts_modern_controls")?"player_full_enter_alt":_.f("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],jW.prototype,"componentBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],jW.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],jW.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"player",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"playerState",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"isMuted",void 0);
_.q([_.y({computed:"computePlayPauseIcon(playerState)"}),_.x("design:type",String)],jW.prototype,"playPauseIcon",void 0);_.q([_.y({computed:"computeMuteIcon(isMuted)"}),_.x("design:type",String)],jW.prototype,"muteIcon",void 0);_.q([_.y({selector:_.MV}),_.x("design:type",Boolean)],jW.prototype,"isFullscreen",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],jW.prototype,"shortsModernControlsEnabled",void 0);
_.q([_.y(),_.x("design:type",Object)],jW.prototype,"volumeControlsOrientationState",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"isOverlay",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"captionIconType",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"ariaLabel",void 0);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"ariaPressedState",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],jW.prototype,"overlayDensity",void 0);
_.q([_.b("playerState"),_.x("design:type",Object),_.x("design:paramtypes",[])],jW.prototype,"playPauseButtonData",null);_.q([_.b("isFullscreen"),_.x("design:type",Object),_.x("design:paramtypes",[])],jW.prototype,"fullscreenButtonData",null);_.q([_.y(),_.x("design:type",Object)],jW.prototype,"onClosedCaptionsButtonClick",void 0);_.q([_.b("isFullscreen"),_.x("design:type",String),_.x("design:paramtypes",[])],jW.prototype,"fullscreenIcon",null);
_.L(jW,"ytd-shorts-player-controls",function(){if(bMg===void 0){var D=document.createElement("template");_.w(D,'\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<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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-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    <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  <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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);bMg=D}D=bMg;return D},{mode:1});var ySB;_.at(_.YpL,"yt-interstitial-view-model",{props:{data:_.cs}});var NrB=_.RT(function(D){var Y=D.data;return _.S("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.S("h1",{class:"reelWatchBreakViewModelHostTitle"},_.S(_.y_,{text:function(){return Y().title}})),_.S("h2",{class:"reelWatchBreakViewModelHostBody"},_.S(_.y_,{text:function(){return Y().body},
isOverlay:!0})),_.S(_.vK,{data:function(){return Y().buttons}},{buttonViewModel:function(R,Z){return _.S("div",{class:function(){return Z()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.S(_.TV,{data:R.data}))}}))},"Oj");
NrB.idomCompat=!0;_.at(NrB,"reel-watch-break-view-model",{props:{data:_.cs}});var Iw=function(){return _.N.apply(this,arguments)||this};
_.n(Iw,_.N);Iw.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}}};
_.YF.Object.defineProperties(Iw.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.A((D=this.data)==null?void 0:D.renderer,IUN)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.A((D=this.data)==null?void 0:D.renderer,F5f)}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Iw.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Iw.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Iw.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iw.prototype,"isSurvey",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Iw.prototype,"isInterstitialViewModel",null);_.q([_.h({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Iw);
_.L(Iw,"ytd-reel-non-video-content-renderer",function(){if(ySB!==void 0)return ySB;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return ySB=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var lUg;_.at(_.f7k,"desktop-shorts-player-controls",{});var Fz=function(){var D=_.N.apply(this,arguments)||this;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.showPlayerControls=!1;D.showScrubber=!1;D.autoHideJobId=0;D.modern=_.f("web_button_rework");D.overlayType=_.XW("web_shorts_expanded_overlay_type");D.panelData=void 0;D.isWatchWhileMode=!1;D.hasError=!1;D.panelShowDelayMs=1;D.scrubberComponent={};D.isFullscreen=!1;D.shouldHideOverlay=!1;D.enableAnchoredPanel=_.f("desktop_shorts_v2_anchored_panel");D.enablePersistentAnchoredPanel=_.f("desktop_shorts_v2_persistent_anchored_panel");
D.hideWatchWhilePanel=_.f("web_shorts_hide_watch_while_panel");D.useAspectRatio=_.f("web_use_aspect_ratio");D.isPersistentPanelActive=!1;D.anchoredPanelActive=!1;D.isShortsPipActive=!1;D.smallScreenSqueezeback=!1;D.enableFlexibleOverlay=_.f("web_enable_flexible_overlay");D.overlayDensity=0;D.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};D.onWindowResized=function(){_.pr(D,
"calculateOverlayDensity",function(){D.calculateOverlayDensity()},100)};
return D};
_.n(Fz,_.N);_.u=Fz.prototype;_.u.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.u.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.u.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var D=_.DH().resolve(_.b6);this.isWatchWhileMode&&(_.f("web_enable_shorts_new_carousel")?_.yc.addJob(function(){D.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):D.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.u.handleShowReelsCommentsOverlayCommand=function(D){D=_.A(D,fUo);this.isActive&&(D==null?0:D.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))};
_.u.updateEngagementPanelVisibility=function(D,Y){D&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:Y?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:D}})};
_.u.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.u.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.DH().resolve(_.rt).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.u.handleWatchWhilePanelScrimClick=function(){var D=_.DH().resolve(_.b6);this.activeWatchWhilePanel&&(D.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.u.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.u.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority: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]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.f("web_enable_shorts_new_carousel")?0:void 0}}};
_.u.handlePlayerClick=function(D){var Y=this,R,Z;if((Z=(R=window).matchMedia)!=null&&Z.call(R,"(any-pointer: coarse)").matches||!D)this.showPlayerControls=!0,_.yc.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ak(_.yc,function(){Y.showPlayerControls=!1},4E3)};
_.u.isFirstReel=function(){return this.index===0};
_.u.handleMouseenter=function(){_.yc.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.u.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.u.handleScrubberEnter=function(){this.showScrubber=!0};
_.u.handleScrubberLeave=function(){this.showScrubber=!1};
_.u.maybeLogNonDefaultAspectRatio=function(){var D;(D=this.data)!=null&&D.thumbnail&&this.isActive&&.5625!==gAk(this.data.thumbnail)&&_.Fno("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.u.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var D=document.querySelector("#shorts-container");if(D){D=D.offsetWidth/2-this.playerContainer.offsetWidth/2;D=D>=368?1:D>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&D===1&&(D=0);this.isPersistentPanelActive&&(D=0);window.innerWidth<=599&&(D=2);this.overlayDensity=D;var Y;(Y=this.onOverlayDensityChanged)==null||Y.call(this,this.index,this.overlayDensity)}}};
_.u.onOverlayDensityChange=function(){var D;(D=this.onOverlayDensityChanged)==null||D.call(this,this.index,this.overlayDensity);(D=_.aU(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&D.set("overlayDensity",this.overlayDensity);if(D=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))D.overlayDensity=this.overlayDensity};
_.u.isVideoContent=function(D){_.DH().resolve(_.rt);return!!_.A(D,_.$I)};
_.u.isNonVideoContent=function(D){_.DH().resolve(_.rt);return!!_.A(D,_.Ly)};
_.u.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.YF.Object.defineProperties(Fz.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var D,Y;return _.f("web_enable_format_first")||((D=this.data)==null?void 0:D.adsOverlay)&&_.f("web_enable_format_first_ads_only")||((Y=this.data)==null?void 0:Y.reelPlayerOverlayRenderer)&&_.f("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.f("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isActive||!this.isPlayerStarted||(D=this.data)!=null&&D.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.command)&&this.isVideoContent(this.data.command)){var Y,R;if(((Y=this.data)==null?0:Y.adsOverlay)&&Object.keys((R=this.data)==null?void 0:R.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Z,t;if(((Z=this.data)==null?0:Z.reelPlayerOverlayRenderer)&&Object.keys((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Fz.prototype.onOverlayDensityChange=Fz.prototype.onOverlayDensityChange;Fz.prototype.calculateOverlayDensity=Fz.prototype.calculateOverlayDensity;Fz.prototype.maybeLogNonDefaultAspectRatio=Fz.prototype.maybeLogNonDefaultAspectRatio;Fz.prototype.onEngagementPanelsChanged=Fz.prototype.onEngagementPanelsChanged;Fz.prototype.onScrubberDataChange=Fz.prototype.onScrubberDataChange;Fz.prototype.updateShouldHideOverlay=Fz.prototype.updateShouldHideOverlay;
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Fz.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Fz.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],Fz.prototype,"index",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Fz.prototype,"isActive",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Fz.prototype,"isHiddenInDom",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"isPlayerPaused",void 0);_.q([_.y({selector:iE9}),_.x("design:type",Object)],Fz.prototype,"isPlayerStarted",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"showPlayerControls",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"showScrubber",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"autoHideJobId",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"overlayType",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Fz.prototype,"ytdReduxBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Fz.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"watchWhileEngagementPanels",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"panelData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"isWatchWhileMode",void 0);_.q([_.y(),_.x("design:type",String)],Fz.prototype,"activeWatchWhilePanel",void 0);
_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"hasError",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"panelShowDelayMs",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"scrubberComponent",void 0);_.q([_.y({selector:_.MV,reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"isFullscreen",void 0);_.q([_.y(),_.x("design:type",Object)],Fz.prototype,"shouldHideOverlay",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"enableAnchoredPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"enablePersistentAnchoredPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"hideWatchWhilePanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"useAspectRatio",void 0);
_.q([_.y({selector:_.qCr,reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"isPersistentPanelActive",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"anchoredPanelActive",void 0);_.q([_.y({selector:_.C9,reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"isShortsPipActive",void 0);_.q([_.y({selector:dek,reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"smallScreenSqueezeback",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fz.prototype,"enableFormatFirst",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"enableFlexibleOverlay",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Fz.prototype,"overlayDensity",void 0);_.q([_.y(),_.x("design:type",Function)],Fz.prototype,"onOverlayDensityChanged",void 0);
_.q([_.y(),_.b("isActive","hasError","isPlayerStarted"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fz.prototype,"shouldRenderPlayerElements",null);_.q([_.y(),_.b("isActive","isWatchWhileMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fz.prototype,"watchWhileOrPersistentActive",null);_.q([_.Gm("isActive","hasError","showingExpandedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"updateShouldHideOverlay",null);
_.q([_.y({reflectToAttribute:!0}),_.b("isActive","isPlayerStarted","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fz.prototype,"shouldRenderScrubber",null);_.q([_.Gm("shouldRenderScrubber"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"onScrubberDataChange",null);_.q([_.b("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fz.prototype,"overlayComponent",null);
_.q([_.Gm("watchWhileEngagementPanels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"onEngagementPanelsChanged",null);_.q([_.fr("#player-container"),_.x("design:type",HTMLElement)],Fz.prototype,"playerContainer",void 0);_.q([_.fr("#cinematic-container"),_.x("design:type",HTMLElement)],Fz.prototype,"cinematicContainer",void 0);
_.q([_.Gm("isPersistentPanelActive","data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"maybeLogNonDefaultAspectRatio",null);_.q([_.Gm("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"calculateOverlayDensity",null);_.q([_.Gm("overlayDensity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fz.prototype,"onOverlayDensityChange",null);
_.q([_.h({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Fz);
_.L(Fz,"ytd-reel-video-renderer",function(){if(lUg!==void 0)return lUg;var D=document.createElement("template");_.w(D,'\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 disable-upgrade="[[!isActive]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return lUg=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var Gh=function(){var D=_.N.apply(this,arguments)||this;D.isPreviousPageShorts=!1;D.index=0;D.delayedActiveIndex=0;D.playablePreviousIndex=null;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.intersectionObserverThreshold=.6;D.fitToVisibleBounds=!1;D.pageSubtype="shorts";D.enablePreviousContinuation=_.f("shorts_in_playlists_web");D.shortsPipEnabled=_.f("web_shorts_pip");D.isDark=document.documentElement.hasAttribute("dark");D.shortsViewTransitions=_.f("web_shorts_view_transitions");D.isFullscreen=!1;D.isShortsPipActive=
!1;D.buttonOverride={iconPosition:"icon-only",size:"XL"};D.anchoredPanelActive=!1;D.isActive=!1;D.smallScreenPersistentPanel=!1;D.isPersistentPanelActive=!1;D.smallScreenSqueezeBack=!1;D.enableScrollIntoViewCenter=_.f("web_scroll_into_view_center");D.formatFirst=_.f("web_enable_format_first")||_.f("web_enable_format_first_ads_only")||_.f("web_enable_format_first_organic_only");D.enableFlexibleOverlay=_.f("web_enable_flexible_overlay");D.useAspectRatio=_.f("web_use_aspect_ratio");D.isShortsInitialized=
!1;D.hidePreviousButtonImmediately=!1;D.showPreviousButtonImmediately=!1;D.endOfNextContinuation=!1;D.currentPlayerIndex=0;D.nextReelVe=_.TP(56921);D.prevReelVe=_.TP(56922);D.loopToggleOffVe=_.TP(198013);D.loopToggleOnVe=_.TP(198014);D.ambientModeToggleVe=_.TP(227860);D.reelPlayerPausedStateRendererVe=_.TP(141313);D.storedPlaybackSpeed=null;D.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"};D.onOverlayDensityChanged=function(Y,R){var Z;(Z=D.getActiveReelVideo(Y))==null||Z.setAttribute("overlay-density",String(R))};
return D};
_.n(Gh,_.N);_.u=Gh.prototype;
_.u.deflateInactivePreviousSlides=function(){var D=_.ZH("web_shorts_deflate_inactive_slides_aggressive_distance");if(D>0&&this.shortsProcessedSequence&&this.activeIndex){D=this.activeIndex-D;for(var Y=0;Y<=D;Y++){var R=void 0;((R=this.shortsProcessedSequence[Y].reelPlayerOverlayRenderer)==null?0:R.metapanel)&&this.set("shortsProcessedSequence."+Y+".reelPlayerOverlayRenderer",{});R=void 0;((R=this.shortsProcessedSequence[Y].adsOverlay)==null?0:R.adSlotMetadata)&&this.set("shortsProcessedSequence."+Y+
".adsOverlay",{})}}};
_.u.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.u.onResize=function(){var D=_.Dl(),Y=D.dispatch,R=this.calculateIsSmallWidth();Y.call(D,_.u0({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:R}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.u.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.f("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.u.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var D=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,Y=D,R=0;D<250&&(Y=D+this.shortsInnerContainer.clientWidth,R=24);_.SN(this.hostElement,{"--ytd-shorts-header-width":Y+"px","--ytd-shorts-top-spacing":R+"px"})}};
_.u.isFirstShorts=function(D){return D?this.index===-D.length:this.index===0};
_.u.isActiveReel=function(D,Y,R){R&&(Y=this.calculatePrevIndex(Y,R));return D===Y};
_.u.onFullscreenChange=function(){if(_.f("web_fullscreen_shorts")){var D;(D=this.getActiveReelVideo(this.activeIndex))==null||D.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.DH().resolve(_.mL).close(!0)}};
_.u.engagementPanelsChanged=function(){var D;this.watchWhileEngagementPanels=(D=this.data)==null?void 0:D.engagementPanels};
_.u.unregisterPanels=function(){var D=_.DH().resolve(_.b6);if(this.watchWhileEngagementPanels)for(var Y=_.a(this.watchWhileEngagementPanels),R=Y.next();!R.done;R=Y.next()){var Z=R.value,t=void 0,X=void 0;R=(t=Z.engagementPanelSectionListRenderer)==null?void 0:(X=t.identifier)==null?void 0:X.tag;Z=this.getPanelContentIdentifier(Z.engagementPanelSectionListRenderer);D&&(R&&D.panelMap.delete(R),Z&&_.f("web_shorts_panel_caching_bugfix")&&(t=R=void 0,(t=(R=D).unregisterPanelContent)==null||t.call(R,Z)))}};
_.u.isVideoContent=function(D){return this.isVideoContentCommand(D==null?void 0:D.command)};
_.u.getActiveReelVideo=function(D){return _.aU(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+D+'"]')};
_.u.calculatePrevIndex=function(D,Y){return Y?D-((Y==null?void 0:Y.length)||0):-1};
_.u.onKeydown=function(D){var Y=_.O$(D)||[];if(!_.fqz(Y))if(D.code==="ArrowUp")D.preventDefault(),this.handlePrevButtonClick();else if(D.code==="ArrowDown")D.preventDefault(),this.handleNextButtonClick();else if(D.code==="KeyM")this.toggleMuteUnmuteVideo();else if(D.code==="KeyK"||D.code==="Space")this.togglePlayPauseVideo();else if((D.code==="KeyA"||D.code==="ArrowLeft")&&_.f("web_shorts_keyboard_enable_seek_shortcuts")){var R;(R=this.player)==null||R.seekBy(-5)}else if((D.code==="KeyD"||D.code===
"ArrowRight")&&_.f("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Z;(Z=this.player)==null||Z.seekBy(5)}};
_.u.onServiceRequestCompleted=function(D,Y){D=Y.data;D.continuationEndpoint&&D.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:D.entries,continuationEndpoint:D.continuationEndpoint}}):D.prevContinuationEndpoint&&D.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:D.prevEntries,prevContinuationEndpoint:D.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.u.handleEngagementPanelVisibilityChanged=function(D,Y){var R=_.DH().resolve(_.b6);if(D&&R){var Z=this.getPanelIdentifier(D);if(Y==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Z){R.hidePanel(this.activePanel);var t;this.activePanel=((t=D.identifier)==null?void 0:t.tag)||D.panelIdentifier}else this.isPersistentPanelActive=!0,_.Dl().dispatch(Mbf(!0)),this.anchoredPanelActive=!0,this.activePanel=Z;else Y==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
Z&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Dl().dispatch(Mbf(!1)))}};
_.u.handlePanelScrimClick=function(){var D=_.DH().resolve(_.b6);this.activePanel&&(D.hidePanel(this.activePanel),_.Dl().dispatch(Mbf(!1)))};
_.u.getShortsLoopSetting=function(){var D,Y,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return _.f("kevlar_shorts_auto_advance")?X.yield(_.N8.getInstance(),2):X.return(!0);case 2:return(D=X.yieldResult)?X.yield(D.get("sfvles"),3):X.return(!0);case 3:return R=(Y=X.yieldResult)!=null?Y:!1,X.yield(D.get("sfvle"),4);case 4:return t=(Z=X.yieldResult)!=null?Z:!0,R?X.return(t):X.return(!0)}})};
_.u.handleSignalActionToggleLoopShortsOff=function(){var D=this,Y,R,Z;return _.C(function(t){switch(t.nextAddress){case 1:if(!D.player)return t.return();D.player.setLoopVideo(!1);Y=_.n8();_.Fq(Y,D.loopToggleOffVe);return t.yield(_.N8.getInstance(),2);case 2:return(R=t.yieldResult)?t.yield(R.set("sfvle",!1),3):t.return();case 3:return t.yield(R.set("sfvles",!0),4);case 4:Z=_.nX(),_.rC(0,203,!1),_.rC(0,204,!0),Z.save(),_.V9(t)}})};
_.u.handleSignalActionToggleLoopShortsOn=function(){var D=this,Y,R,Z;return _.C(function(t){switch(t.nextAddress){case 1:if(!D.player)return t.return();D.player.setLoopVideo(!0);Y=_.n8();_.Fq(Y,D.loopToggleOnVe);return t.yield(_.N8.getInstance(),2);case 2:return(R=t.yieldResult)?t.yield(R.set("sfvle",!0),3):t.return();case 3:return t.yield(R.set("sfvles",!0),4);case 4:Z=_.nX(),_.rC(0,203,!0),_.rC(0,204,!0),Z.save(),_.V9(t)}})};
_.u.handleSignalActionToggleCinematicShortsOn=function(){EA9(!0);var D;(D=this.JSC$22225_cinematicController)==null||_.qp9(D,!0);_.Fq(_.n8(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.u.handleSignalActionToggleCinematicShortsOff=function(){EA9(!1);var D;(D=this.JSC$22225_cinematicController)==null||_.qp9(D,!1);_.Fq(_.n8(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.u.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.u.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.u.unhideCurrentOverlay=function(){if(this.overlayContainer){var D=this.overlayContainer.querySelector("#experiment-overlay");D&&_.yc.addLowPriorityJob(function(){D.style.display="unset"},100)}};
_.u.getCurrentShort=function(){if(this.currentEndpoint){var D=this.currentEndpoint;if(this.isNonVideoContentCommand(D)){var Y=_.A(D,_.Ly);return{reelNonVideoContentRenderer:_.A(Y==null?void 0:Y.renderer,_.WM4),command:D}}if(this.data){var R;Y=(R=_.A(this.currentEndpoint,_.$I))==null?void 0:R.thumbnail;var Z;R=(Z=this.data.overlay)==null?void 0:Z.reelPlayerOverlayRenderer;_.DH().resolve(_.rt);D=this.data;var t,X;Z=(t=D.overlay)==null?void 0:(X=t.shortsAdsRenderer)==null?void 0:X.adSlots;if(Z!==void 0)Z.length===
0?(_.dq("Shorts ads returned no ad slots."),D=void 0):(Z.length>1&&_.dq("Shorts ads has more than one ad slots."),D=_.A(Z[0],_.$qD));else{var M,W;D=_.A((M=D.overlay)==null?void 0:(W=M.shortsAdsRenderer)==null?void 0:W.overlay,_.$qD)}M=D;D=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.A(this.currentEndpoint,_.$I),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:R,thumbnail:Y,command:D,adsOverlay:M}}}};
_.u.created=function(){var D=this;this.scrollToVideoThrottle=new _.gq(function(Y){var R;(R=D.getActiveReelVideo(Y))==null||R.scrollIntoView({behavior:"smooth",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.gq(function(Y){var R;(R=D.getActiveReelVideo(Y))==null||R.scrollIntoView({behavior:"auto",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.u.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.u.attached=function(){var D=this;_.DH().resolve(_.rt).registerRootElement(this);this.pageScrollElement=_.aU(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.jN(this,this.processResetAction));_.f("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var Y=D.getActiveReelVideo(D.activeIndex);D.maybeCreateIntersectionObserver();Y==null||Y.scrollIntoView({behavior:"instant",
block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"});D.shortsContainer.style.overflowY="scroll"}))};
_.u.updateReelWatchSequenceResponse=function(){var D=this;if(_.f("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&_.A(this.currentEndpoint,_.$I).sequenceParams&&!this.reelWatchSequenceResponse){var Y=_.DH().resolve(_.rt);Y&&aUE(Y,this.currentEndpoint).then(function(R){R&&(D.reelWatchSequenceResponse=R,_.yc.addLowPriorityJob(function(){D.maybeCreateIntersectionObserver(!0)}))})}};
_.u.calculateSqueezebackPanelSize=function(){var D=this,Y=window.innerWidth-456-(window.innerHeight-106)*.5625;_.yc.addLowPriorityJob(function(){Y<360?_.Dl().dispatch(C9T(!0)):(D.hostElement.style.setProperty("--anchored-panel-width",Math.min(Y,480)+"px"),_.Dl().dispatch(C9T(!1)))})};
_.u.detached=function(){var D=_.DH().resolve(_.rt);D.rootElement=void 0;var Y;(Y=D.unsubscribeFromStore)==null||Y.call(D);D.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.jN(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.u.onResizeFinished=function(D,Y){var R=this,Z=new ResizeObserver(function(){R.shortsContainer.style.overflowY="hidden";_.yc.addLowPriorityJob(function(){Y()},100)});
Z.observe(D);return Z};
_.u.resetDocumentScrollTop=function(){var D,Y;if((D=document)==null?0:(Y=D.scrollingElement)==null?0:Y.scrollTop)document.scrollingElement.scrollTop=0};
_.u.loadPage_=function(D){var Y=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),D){var R;!_.f("web_enable_delay_shorts_sequence_call")&&((R=_.A(this.currentEndpoint,_.$I))==null?0:R.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=D;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){Y.isPlayerStarted&&(Y.handleOnPlaybackCommand(),Y.afterPlayerStarted=function(){})};
this.registerPanel(D)}};
_.u.afterPlayerStarted=function(){};
_.u.handleOnPlaybackCommand=function(){if(_.f("web_shorts_comment_stickers")&&this.isPlayerStarted){var D,Y=(D=_.A(this.currentEndpoint,_.$I))==null?void 0:D.onPlaybackCommand;Y&&this.ytComponentBehavior.resolveCommand(Y)}};
_.u.maybeCreateIntersectionObserver=function(D){var Y=this;D=D===void 0?!1:D;var R=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==R||D){this.intersectionObserverThreshold=R;D={rootMargin:"0px",threshold:R};var Z;(Z=this.intersectionObserver)==null||Z.disconnect();this.intersectionObserver=new IntersectionObserver(function(t){t=_.a(t);for(var X=t.next();!X.done;X=t.next())if(X=X.value,X.intersectionRatio>R){X=Number(X.target.id);if(isNaN(X))break;
if(X===Y.index)break;_.ZJ$();Y.loadVideo(X);_.LX("r_vtc")}},D);
this.observeShorts()}};
_.u.observeShorts=function(){var D=[].concat(_.oK(_.aU(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=void 0;(R=this.intersectionObserver)==null||R.observe(Y)}};
_.u.initCsi=function(){_.Uu("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var D={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"}},Y,R;if((Y=this.playerData)==null?0:(R=Y.cacheMetadata)==null?0:R.isCacheHit)D.isCacheHit=!0;var Z;if(Y=(Z=_.A(this.currentEndpoint,_.$I))==null?void 0:
Z.prefetchTaskId)D.prefetchInfo={taskId:Y};_.k8(D)};
_.u.isAd=function(){var D,Y;return!!((D=_.A(this.currentEndpoint,_.$I))==null?0:(Y=D.adClientParams)==null?0:Y.isAd)};
_.u.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.u.getPlayerContainer=function(){var D;return(D=_.aU(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:D.playerContainer};
_.u.onPlayerStateChange=function(D){var Y=this;this.isPlayerPaused=D===2;D!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?D===1&&this.index===0&&(this.isPlayerStarted||_.Dl().dispatch(aw(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Dl().dispatch(aw(!0)));this.player&&!this.player.getLoopVideo()&&_.yc.addLowPriorityJob(function(){Y.getShortsLoopSetting().then(function(R){var Z;(Z=Y.player)==null||Z.setLoopVideo(R)})});
this.isPlayerPaused&&_.f("web_shorts_paused_state_logging")&&_.E7(_.K2(),[this.reelPlayerPausedStateRendererVe])};
_.u.isInBackground=function(){var D=window.document.visibilityState;return!(!D||D==="visible")};
_.u.isShortPlayable=function(){if(_.f("kevlar_playable_short_killswitch"))return!0;var D;return(D=this.playerData)!=null&&D.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.u.setNormalPlaybackSpeed=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.getPlayer().getPlayerPromise(),2);Y=Z.yieldResult;R=Y.getPlaybackRate();R!==1&&(D.storedPlaybackSpeed=R,Y.setPlaybackRate(1));_.V9(Z)})};
_.u.restorePlaybackSpeed=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1)return D.storedPlaybackSpeed===null?R.jumpTo(0):R.yield(D.getPlayer().getPlayerPromise(),3);Y=R.yieldResult;Y.setPlaybackRate(D.storedPlaybackSpeed);D.storedPlaybackSpeed=null;_.V9(R)})};
_.u.playerDataChanged=function(){var D=this,Y,R,Z,t,X,M,W,z,I;return _.C(function(F){if(F.nextAddress==1){Y=D.getPlayer();(R=D.intersectionObserver)==null||R.disconnect();if(D.playerData){if(((Z=D.playerData.videoDetails)==null?void 0:Z.videoId)!==((t=Y.getPlayer())==null?void 0:t.getVideoData().video_id)){X={};if(M=_.A(D.currentEndpoint,_.$I))X.watch_endpoint=M,M.endTimeSeconds&&(X.end=M.endTimeSeconds);Y.loadVideoWithPlayerResponse(D.playerData,X)}}else return F.return();return D.player?F.jumpTo(2):
F.yield(Y.getPlayerPromise(),3)}F.nextAddress!=2&&(D.player=F.yieldResult,D.JSC$22225_playerStateChangeListener=D.onPlayerStateChange.bind(D),D.player.addEventListener("onStateChange",D.JSC$22225_playerStateChangeListener),_.f("kevlar_client_enable_shorts_player_bootstrap")&&_.Bl(),D.scrollToVideoThrottle.fire(D.index),D.movePlayerToVideo(D.index),_.yc.addLowPriorityJob(function(){D.getShortsLoopSetting().then(function(G){var V;(V=D.player)==null||V.setLoopVideo(G)})}),_.OaL.resolve(D.player),D.player.syncVolume(),
D.getPlayer().focusOnPlayer());
_.yc.addLowPriorityJob(function(){D.observeShorts()},100);
W=D.player.getPlayerState(D.player.getPresentingPlayerType());W!==1||D.isPlayerStarted||_.Dl().dispatch(aw(!0));D.updateBackNavContainerWidth();z=_.A(D.currentEndpoint,_.$I);((I=z)==null?0:I.startTimeSeconds)&&D.player.seekTo(z.startTimeSeconds);if(D.JSC$22225_cinematicController||D.cinematicsInitializeJobId)return F.return();D.cinematicsInitializeJobId=_.yc.addLowPriorityJob(function(){D.initCinematicController();D.cinematicsInitializeJobId=void 0});
_.V9(F)})};
_.u.onShortUndoDismiss=function(){var D=this,Y=uiB().pop();Y!==void 0&&(_.cy(this,function(){D.showCardWithIndex(Y)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.u.onShortsDismiss=function(D){if(D=D.detail.reelDismissalActionRenderer)(D=_.A(D.onDismissalCompletionRenderer,_.FXK))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:D}}}),this.scrollAndDismissCard()};
_.u.processReelNonVideoContentDismissalCommand=function(D){var Y=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);D=_.A(D,VbB);this.activeDimissalTimeout=setTimeout(function(){Y.scrollAndDismissCard()},Number(D==null?void 0:D.delayMs))};
_.u.scrollAndDismissCard=function(){var D=this,Y=this.index;uiB().push(Y);_.cy(this,function(){var R=D.getPlayableNextIndex();R!==null&&(R=D.getActiveReelVideo(R),D.hideCardWithIndex(Y),R==null||R.scrollIntoView({behavior:"smooth",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"}))})};
_.u.hideCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!0};
_.u.showCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!1};
_.u.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.u.activeChanged=function(D){_.Dl().dispatch(_.u0({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:D}}));if(D)document.addEventListener("keydown",_.jN(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var Y;(Y=this.player)==null||Y.sendAbandonmentPing()}var R;(R=this.player)==null||R.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.jN(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.u.graftClientVisualElements=function(){if(this.data){var D=_.n8();_.iVE(D,_.TA({response:this.reelWatchSequenceResponse}));_.jF(D,this.nextReelVe);_.jF(D,this.prevReelVe);_.f("kevlar_shorts_auto_advance")&&(_.jF(D,this.loopToggleOffVe),_.jF(D,this.loopToggleOnVe));_.jF(D,this.ambientModeToggleVe);_.E7(_.K2(),[this.nextReelVe,this.prevReelVe]);_.f("web_shorts_paused_state_logging")&&_.jF(D,this.reelPlayerPausedStateRendererVe)}};
_.u.graftNvcRenderer=function(){var D,Y,R,Z,t=this.index<0?(D=this.shortsProcessedPrevSequence)==null?void 0:(Y=D[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Y.command:(R=this.shortsProcessedSequence)==null?void 0:(Z=R[this.index])==null?void 0:Z.command;if(t&&this.isNonVideoContentCommand(t)){D=_.A(t,_.Ly);var X,M;(D=(X=_.A(D==null?void 0:D.renderer,_.WM4))==null?void 0:(M=X.loggingDirectives)==null?void 0:M.trackingParams)&&_.n8().graftServerVe(D)}};
_.u.setActiveIndex=function(){_.DH().resolve(_.rt).setActiveIndex(this.index)};
_.u.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.u.lazyUpdateMiniplayerData=function(){var D=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.yc.addLowPriorityJob(function(){D.updateMiniplayerData();D.updateMiniplayerDataJobId=void 0}))};
_.u.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.yc.cancelJob(this.updateMiniplayerDataJobId)};
_.u.updateMiniplayerData=function(){var D,Y,R,Z=_.DH().resolve(_.mL),t={shortsData:this.getCurrentShort(),previousButtonDisabled:!((D=this.prevButtonData)==null||!D.isDisabled),nextButtonDisabled:!((Y=this.nextButtonData)==null||!Y.isDisabled),playabilityStatus:(R=this.playerData)==null?void 0:R.playabilityStatus};_.PW(Z,t)};
_.u.resetPlayerLocation=function(){var D=this.getPlayer();this.initialPlayerContainer&&D.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.u.movePlayerToVideo=function(D,Y){var R=this;Y=Y===void 0?!0:Y;var Z=this.getActiveReelVideo(D),t=this.getPlayer();if(Z){this.overlayContainer?Z.appendChild(this.overlayContainer):(this.overlayContainer=_.aU(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,Z.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||t.appendTo(this.overlayContainer.playerContainer,void 0,!0));var X;(X=this.player)==null||X.setSize(NaN,NaN);this.isActive||_.Ak(_.yc,function(){R.isActive=
!0});
t.style.visibility="visible";_.f("reels_web_disable_rtr_tick")||_.f("reels_web_use_pbs_first_shorts")&&D===0||_.KX("r_tr");this.currentPlayerIndex=D;Z.appendChild(this.errorScreenContainer);var M;(M=this.JSC$22225_cinematicController)==null||_.xeb(M)}else Y?_.yc.addLowPriorityJob(function(){R.movePlayerToVideo(R.index,!1)}):Math.random()<=_.ZH("web_shorts_error_logging_threshold")&&_.lo(new _.AT("Trying to movePlayerToVideo with undefined container.",{firstAttempt:Y,
index:D}))};
_.u.enableFormatFirst=function(D){return _.f("web_enable_format_first")||D.adsOverlay&&_.f("web_enable_format_first_ads_only")||D.reelPlayerOverlayRenderer&&_.f("web_enable_format_first_organic_only")};
_.u.getAspectRatio=function(D){if(D!=null&&D.thumbnail&&this.enableFormatFirst(D))return"--ytd-shorts-player-ratio: "+gAk(D.thumbnail)};
_.u.getBackgroundImage=function(D){if(D!=null&&D.thumbnail)return(D=_.CB(D.thumbnail.thumbnails))?'background-image:url("'+D+'");':"background-color:black;"};
_.u.onPersistentPanelActiveChanged=function(){var D=this.getCurrentShort();if(D&&this.enableFormatFirst(D)&&(D==null?0:D.thumbnail)&&gAk(D.thumbnail)!==.5625){var Y;(Y=this.player)==null||Y.setSize(NaN,NaN)}};
_.u.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.u.moveCinematicsToVideo=function(){var D=_.aU(this.hostElement).querySelector("ytd-reel-video-renderer");(D==null?0:D.cinematicContainer)&&D.cinematicContainer!==this.shortsCinematicContainer.parentElement&&D.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.u.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.u.updatePrevButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(D){var Y;this.prevButtonData=D=Object.assign({},D,{accessibility:{label:_.fX("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:D.isDisabled||this.index===-(((Y=this.shortsProcessedPrevSequence)==null?void 0:Y.length)||0),tooltip:this.isUpArrowHidden?"":_.fX("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=D=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.u.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.u.updateNextButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(D){var Y;this.nextButtonData=D=Object.assign({},D,{accessibility:{label:_.fX("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:D.isDisabled||this.index===((Y=this.shortsProcessedSequence)==null?void 0:Y.length),tooltip:_.fX("NEXT_VIDEO_LABEL")||""})}};
_.u.getPlayablePreviousIndex=function(){for(var D,Y=this.index-1;Y>=-(((D=this.prevShortsSequence)==null?void 0:D.length)||0);Y--)if(!uiB().includes(Y))return Y;return null};
_.u.getIndexInSequence=function(D,Y){return D.findIndex(function(R){var Z;return((Z=_.A(R.command,_.$I))==null?void 0:Z.videoId)===Y})};
_.u.handlePrevButtonClick=function(D){var Y=this,R,Z;return _.C(function(t){R=Y.getPlayablePreviousIndex();if(R===null)return t.return();Y.gestureType=((Z=D)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";R===0&&(Y.hidePreviousButtonImmediately=!0);if(Y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Y.transitionToVideoThrottle.fire(R)}),t.return();
Y.scrollToVideoThrottle.fire(R);_.V9(t)})};
_.u.getPlayableNextIndex=function(){for(var D,Y=this.index+1;Y<(((D=this.shortsProcessedSequence)==null?void 0:D.length)||0);Y++)if(!uiB().includes(Y))return Y;return null};
_.u.handleNextButtonClick=function(D,Y){var R=this,Z,t;return _.C(function(X){Z=R.getPlayableNextIndex();if(Z===null)return X.return();Z===1&&(R.showPreviousButtonImmediately=!0);R.gestureType=((t=D)==null?void 0:t.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Y&&(R.gestureType=Y);if(R.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){R.transitionToVideoThrottle.fire(Z)}),X.return();
R.scrollToVideoThrottle.fire(Z);_.V9(X)})};
_.u.handleReelNavigateCommand=function(D,Y,R){(D=_.A(D,GUG))&&Y&&D.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(R)};
_.u.loadVideo=function(D,Y){Y=Y===void 0?!1:Y;if(D!==this.currentPlayerIndex){_.Dl().dispatch(aw(!1));if(this.isAd()&&!Y){var R;(R=this.player)==null||R.notifyShortsAdSwipeEvent()}if((Y=this.JSC$22225_cinematicController)!=null){var Z;(Z=Y.currentCinematicEffect)==null||Z.pause()}if((Z=this.JSC$22225_cinematicController)!=null){var t;(t=Z.currentCinematicEffect)==null||t.clear()}Z=D>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Z));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var X,M,W,z;t=D<0?(X=this.shortsProcessedPrevSequence)==null?void 0:(M=X[this.shortsProcessedPrevSequence.length+D])==null?void 0:M.command:(W=this.shortsProcessedSequence)==null?void 0:(z=W[D])==null?void 0:z.command;this.index=D;this.gestureType||(this.gestureType=Z?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
t&&this.isVideoContentCommand(t)&&(this.ytComponentBehavior.resolveCommand(t,{form:{createScreenConfig:{clickedVisualElement:Z?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(t&&this.isNonVideoContentCommand(t)){this.currentEndpoint=t;this.data=void 0;X=_.n8();M=_.A(t,_.Ly);var I,F;(M=(I=_.A(M==null?void 0:M.renderer,_.WM4))==null?void 0:(F=I.screenLoggingData)==null?void 0:F.screenVeType)&&_.TJ(X,M);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(I=this.getActiveReelVideo(D))&&I.appendChild(this.overlayContainer)}var G,V;if(((G=this.reelWatchSequenceResponse)==null?0:G.continuationEndpoint)&&((V=this.reelWatchSequenceResponse)==null?0:V.entries)&&D===this.reelWatchSequenceResponse.entries.length-1){var e,r;G={contentPlaybackContext:_.bX({},(r=_.A((e=this.currentEndpoint)==null?void 0:e.commandMetadata,_.GA))==null?void 0:r.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:G})}var l,U,K;((l=this.reelWatchSequenceResponse)==null?0:l.prevContinuationEndpoint)&&D===-(((U=this.reelWatchSequenceResponse)==null?void 0:(K=U.prevEntries)==null?void 0:K.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.u.setMiniplayerPreview=function(D){D=(D===void 0?0:D)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var Y,R,Z=_.DH().resolve(_.mL),t={shortsData:void 0,shortsPreviewThumbnail:D?(Y=this.shortsProcessedSequence)==null?void 0:(R=Y[D])==null?void 0:R.thumbnail:void 0};_.PW(Z,t)};
_.u.updateTitle=function(D){var Y,R;D=(D==null?0:D.adSlots)?"":(R=D==null?void 0:(Y=D.videoDetails)==null?void 0:Y.title)!=null?R:"";_.MX(this.hostElement,"yt-update-title",D)};
_.u.registerPanel=function(D){var Y=_.DH().resolve(_.b6);if(Y){D=_.a(D.engagementPanels||[]);for(var R=D.next();!R.done;R=D.next()){R=R.value;var Z=this.getPanelContentIdentifier(R.engagementPanelSectionListRenderer),t=void 0,X=void 0;(X=(t=Y).registerPanelContent)==null||X.call(t,Z,R)}}};
_.u.getPanelIdentifier=function(D){var Y;return(D==null?void 0:(Y=D.identifier)==null?void 0:Y.tag)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:D.targetId)};
_.u.getPanelContentIdentifier=function(D){var Y;return(D==null?void 0:D.targetId)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:(Y=D.identifier)==null?void 0:Y.tag)};
_.u.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Dl().dispatch(aw(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Dl().dispatch(Mbf(!1));var D=_.DH().resolve(_.rt);D.dismissedIndices=[];D.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.DH().resolve(_.mL).close(!0)};
_.u.processAppendReelWatchSequenceContinuationEntriesAction=function(D){var Y=this,R;(R=this.intersectionObserver)==null||R.disconnect();D=D.appendReelWatchSequenceContinuationEntriesAction;if(D==null?0:D.entries){var Z;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.oK(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.entries)||[]),_.oK(D.entries)),continuationEndpoint:D.continuationEndpoint})}else if(D==null?0:D.prevEntries){var t;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.oK(((t=this.reelWatchSequenceResponse)==null?void 0:t.prevEntries)||[]),_.oK(D.prevEntries)),prevContinuationEndpoint:D.prevContinuationEndpoint});_.yc.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index);var X;(X=Y.getActiveReelVideo(Y.index))==null||X.scrollIntoView({block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.yc.addLowPriorityJob(function(){Y.observeShorts()},100)};
_.u.processWatchSequence=function(D){var Y=this;return D.map(function(R){R=R.command;if(Y.isVideoContentCommand(R)){var Z=_.A(R,_.$I);return{reelPlayerOverlayRenderer:_.A(Z==null?void 0:Z.overlay,_.zOL),thumbnail:Z.thumbnail,command:R}}return Y.isNonVideoContentCommand(R)?(Z=_.A(R,_.Ly),{reelNonVideoContentRenderer:_.A(Z==null?void 0:Z.renderer,_.WM4),command:R}):{command:R}})};
_.u.calculateIntersectionObserverThreshold=function(){var D=_.aU(this.hostElement).querySelector("ytd-reel-video-renderer"),Y=1;(D==null?0:D.offsetHeight)&&(D==null?0:D.offsetWidth)&&(Y=Math.min(D.offsetHeight,this.shortsContainer.offsetHeight)/D.offsetHeight*(Math.min(D.offsetWidth,this.shortsContainer.offsetWidth)/D.offsetWidth));return Math.round(Y*.6*10)/10};
_.u.isVideoContentCommand=function(D){_.DH().resolve(_.rt);return!!_.A(D,_.$I)};
_.u.isNonVideoContentCommand=function(D){_.DH().resolve(_.rt);return!!_.A(D,_.Ly)};
_.u.initCinematicController=function(){var D=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22225_cinematicController=new _.uL(this.shortsCinematicContainer,this.player);var Y,R=_.A((Y=this.data)==null?void 0:Y.background,_.lw);_.HEI(this.JSC$22225_cinematicController,R);_.qp9(this.JSC$22225_cinematicController,pvk(R));_.me0(this.JSC$22225_cinematicController);_.yc.addLowPriorityJob(function(){D.moveCinematicsToVideo()})}};
_.u.handleMiniplayerNavigateShorts=function(D){D==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():D==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.u.handleSignalActionToggleShortsPictureInPicture=function(){if(_.DH().resolve(_.mL).pictureInPictureSupported()){var D=_.DH().resolve(_.rt);if(_.f("web_shorts_pip")){var Y=_.DH().resolve(_.mL);D.isShortsPipActive()?Y.deactivate():Y.isMiniplayerActive()||(_.AG().shortsPipActivation=!0,_.NXE(Y))}}else(D=this.player)==null||D.togglePictureInPicture()};
_.YF.Object.defineProperties(Gh.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.prevEntries)return this.processWatchSequence([].concat(_.oK(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var D=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!D)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var Y=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.oK(this.prevShortsSequence.slice(0,Y)),[D],_.oK(this.prevShortsSequence.slice(Y+
1)))}Y=this.index+this.shortsProcessedPrevSequence.length;D.thumbnail=this.shortsProcessedPrevSequence[Y].thumbnail;return[].concat(_.oK(this.shortsProcessedPrevSequence.slice(0,Y)),[D],_.oK(this.shortsProcessedPrevSequence.slice(Y+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var D=this.getCurrentShort();if(!D||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[D];if(D==null||!D.reelNonVideoContentRenderer){var Y=this.getIndexInSequence(this.shortsSequence,_.A(this.currentEndpoint,_.$I).videoId);if(this.index===0&&Y!==-1)return this.currentPlayerIndex=this.index=Y,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.oK(this.shortsSequence.slice(0,this.index)),[D],_.oK(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){D.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var R,Z,t,X;Y=((Z=_.A((R=this.shortsProcessedSequence[0])==null?void 0:R.command,_.$I))==null?void 0:Z.videoId)===((X=_.A((t=this.shortsSequence[0])==null?void 0:t.command,_.$I))==null?void 0:X.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.oK(this.shortsProcessedSequence.slice(0,
this.index)),[D],_.oK(this.shortsSequence.slice(Y)))}return[D].concat(_.oK(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var D=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;D&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(D)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var D,Y;return this.index===((D=this.reelWatchSequenceResponse)==null?void 0:(Y=D.entries)==null?void 0:Y.length)}var R;return!((R=this.reelWatchSequenceResponse)==null?0:R.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var D;(D=this.delayedActiveIndexUpdateDebouncer)==null||D.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return this.isShortPlayable()||((Y=_.A((D=this.data)==null?void 0:D.watchStatus,_.eOz))==null?void 0:(R=Y.style)==null?void 0:R.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var D=this,Y=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),R;if((this.data||Y)&&(((R=this.data)==null?0:R.engagementPanels)||this.isAd()||Y)){Y=!1;this.activePanel="shorts-comments-panel";var Z;R=_.a(((Z=this.data)==null?void 0:Z.engagementPanels)||[]);for(Z=R.next();!Z.done;Z=R.next())if(this.getPanelIdentifier(Z.value.engagementPanelSectionListRenderer)===this.activePanel){Y=!0;break}if(this.isPersistentPanelActive){var t=
_.DH().resolve(_.b6);_.Ak(_.yc,function(){t.showPanel(D.activePanel,void 0,void 0,void 0,null)},100)}var X;
Z=[].concat(_.oK(Object.values(((X=this.data)==null?void 0:X.engagementPanels)||{})));if(_.f("enable_preview_panel_for_shorts_search_suggested_action")){var M,W,z,I,F;((I=_.A((M=this.data)==null?void 0:(W=M.overlay)==null?void 0:(z=W.reelPlayerOverlayRenderer)==null?void 0:z.metapanel,_.CSV))==null?void 0:(F=I.metadataItems)==null?void 0:F.find(function(G){var V,e;return((V=_.A(G,ejN))==null?void 0:(e=V.icon)==null?void 0:e.iconType)==="SEARCH"}))!==void 0&&Z.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}X=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);M=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return X===void 0&&M===void 0||(X==null?0:X.isDisabled)||(M==null?void 0:M.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!Y?(Y=Z==null?void 0:Z.findIndex(function(G){var V,
e;return((V=G.engagementPanelSectionListRenderer)==null?void 0:(e=V.identifier)==null?void 0:e.tag)==="shorts-comments-panel"}),Y===-1||Y===void 0||Z!=null&&Z.splice(Y,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.fX("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.fX("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:_.fX("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.fX("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(_.oK(Object.values(Z||
{})))):Z}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.shortsProcessedSequence)==null?void 0:D[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var D=this,Y,R,Z;if((Y=this.playerData)==null?0:(R=Y.playabilityStatus)==null?0:(Z=R.errorScreen)==null?0:Z.playerInterstitialRenderer)return _.yc.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.playerData.playabilityStatus.errorScreen;
var t,X;return((t=this.data)==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((X=this.data)==null?0:X.watchStatus)&&_.A(this.data.watchStatus,_.SF_)?(_.yc.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.YF.Object.defineProperties(Gh,{template:{configurable:!0,enumerable:!0,get:function(){if(nnG===void 0){var D=document.createElement("template");_.w(D,'\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="[[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    <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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);nnG=D}D=nnG;return D}}});
Gh.prototype.onNextButtonDataChange=Gh.prototype.onNextButtonDataChange;Gh.prototype.onPrevButtonDataChange=Gh.prototype.onPrevButtonDataChange;Gh.prototype.onPersistentPanelActiveChanged=Gh.prototype.onPersistentPanelActiveChanged;Gh.prototype.lazyUpdateMiniplayerData=Gh.prototype.lazyUpdateMiniplayerData;Gh.prototype.onShortsPipActiveChanged=Gh.prototype.onShortsPipActiveChanged;Gh.prototype.setActiveIndex=Gh.prototype.setActiveIndex;Gh.prototype.graftNvcRenderer=Gh.prototype.graftNvcRenderer;
Gh.prototype.graftClientVisualElements=Gh.prototype.graftClientVisualElements;Gh.prototype.onActiveChanged=Gh.prototype.onActiveChanged;Gh.prototype.onShortsDismiss=Gh.prototype.onShortsDismiss;Gh.prototype.onShortUndoDismiss=Gh.prototype.onShortUndoDismiss;Gh.prototype.playerDataChanged=Gh.prototype.playerDataChanged;Gh.prototype.afterPlayerStarted=Gh.prototype.afterPlayerStarted;Gh.prototype.updateReelWatchSequenceResponse=Gh.prototype.updateReelWatchSequenceResponse;
Gh.prototype.unhideCurrentOverlay=Gh.prototype.unhideCurrentOverlay;Gh.prototype.onServiceRequestCompleted=Gh.prototype.onServiceRequestCompleted;Gh.prototype.engagementPanelsChanged=Gh.prototype.engagementPanelsChanged;Gh.prototype.onFullscreenChange=Gh.prototype.onFullscreenChange;Gh.prototype.onResize=Gh.prototype.onResize;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Gh.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.Kz.YtPageBehavior),_.x("design:type",Object)],Gh.prototype,"ytPageBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Gh.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],Gh.prototype,"ironResizableBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Gh.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],Gh.prototype,"ytdDismissibleItemBehavior",void 0);
_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Gh.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Gh.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"playerData",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"reelWatchSequenceResponse",void 0);
_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"cachedReelWatchSequenceResponse",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"cachedSequenceParams",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"cachedSequenceProvider",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"currentEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"nextButtonData",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"prevButtonData",void 0);
_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"isPreviousPageShorts",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"index",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"delayedActiveIndex",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"playablePreviousIndex",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"player",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"isPlayerPaused",void 0);
_.q([_.y({selector:iE9}),_.x("design:type",Object)],Gh.prototype,"isPlayerStarted",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"intersectionObserver",void 0);_.q([_.y(),_.x("design:type",Number)],Gh.prototype,"cinematicsInitializeJobId",void 0);_.q([_.y(),_.x("design:type",Number)],Gh.prototype,"updateMiniplayerDataJobId",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"fitToVisibleBounds",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"pageSubtype",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gh.prototype,"enablePreviousContinuation",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"shortsPipEnabled",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"isDark",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"shortsViewTransitions",void 0);
_.q([_.y({selector:_.MV,reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"isFullscreen",void 0);_.q([_.y({selector:_.C9,reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"isShortsPipActive",void 0);_.q([_.fr("#shorts-inner-container"),_.x("design:type",HTMLElement)],Gh.prototype,"shortsInnerContainer",void 0);_.q([_.fr("#back-nav-button ytd-button-renderer"),_.x("design:type",_.tU)],Gh.prototype,"backNavButton",void 0);
_.q([_.fr("#shorts-container"),_.x("design:type",HTMLElement)],Gh.prototype,"shortsContainer",void 0);_.q([_.jl("error-screen"),_.x("design:type",HTMLElement)],Gh.prototype,"errorScreenContainer",void 0);_.q([_.jl("player"),_.x("design:type",Object)],Gh.prototype,"playerElement",void 0);_.q([_.jl("shorts-cinematic-container"),_.x("design:type",HTMLElement)],Gh.prototype,"shortsCinematicContainer",void 0);
_.q([_.jl("initial-player-container"),_.x("design:type",HTMLElement)],Gh.prototype,"initialPlayerContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"buttonOverride",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"anchoredPanelActive",void 0);_.q([_.y(),_.x("design:type",String)],Gh.prototype,"activePanel",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"isActive",void 0);
_.q([_.y({selector:dek,reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"smallScreenPersistentPanel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"isPersistentPanelActive",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"smallScreenSqueezeBack",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"enableScrollIntoViewCenter",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"formatFirst",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"enableFlexibleOverlay",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gh.prototype,"useAspectRatio",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"panelContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"overlayContainer",void 0);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"isShortsInitialized",void 0);
_.q([_.b("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"prevShortsSequence",null);_.q([_.b("data","prevShortsSequence"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"shortsProcessedPrevSequence",null);_.q([_.b("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"shortsSequence",null);
_.q([_.b("data","shortsSequence"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"shortsProcessedSequence",null);_.q([_.y({reflectToAttribute:!0}),_.b("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gh.prototype,"isUpArrowHidden",null);
_.q([_.y({reflectToAttribute:!0}),_.b("reelWatchSequenceResponse","index","endOfNextContinuation"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gh.prototype,"isDownArrowHidden",null);_.q([_.y(),_.b("index"),_.x("design:type",Number),_.x("design:paramtypes",[])],Gh.prototype,"activeIndex",null);_.q([_.b("isShortPlayable","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gh.prototype,"shouldRenderOfflineContent",null);
_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onResize",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"anchoredEngagementPanels",null);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"watchWhileEngagementPanels",void 0);_.q([_.Gm("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onFullscreenChange",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"engagementPanelsChanged",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],Gh.prototype,"onServiceRequestCompleted",null);_.q([_.b("data","shortsSequence","index"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"activeReel",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"unhideCurrentOverlay",null);_.q([_.Gm("currentEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"updateReelWatchSequenceResponse",null);_.q([_.Gm("isPlayerStarted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"afterPlayerStarted",null);
_.q([_.b("playerData","reelWatchSequenceResponse","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gh.prototype,"errorScreen",null);_.q([_.b("errorScreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gh.prototype,"hasError",null);_.q([_.Gm("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Gh.prototype,"playerDataChanged",null);
_.q([_.Fv("yt-dismissible-item-undo-feedback"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onShortUndoDismiss",null);_.q([_.Fv("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Gh.prototype,"onShortsDismiss",null);_.q([_.rd("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onActiveChanged",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"graftClientVisualElements",null);_.q([_.Gm("currentPlayerIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"graftNvcRenderer",null);_.q([_.Gm("index"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"setActiveIndex",null);
_.q([_.Gm("isShortsPipActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onShortsPipActiveChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"lazyUpdateMiniplayerData",null);_.q([_.y(),_.x("design:type",Object)],Gh.prototype,"onOverlayDensityChanged",void 0);
_.q([_.Gm("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onPersistentPanelActiveChanged",null);_.q([_.Gm("index","data","isUpArrowHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onPrevButtonDataChange",null);_.q([_.Gm("index","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onNextButtonDataChange",null);
_.q([_.h({is:"ytd-shorts"})],Gh);_.z5.registerService(_.L6j,Gh);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("JzFVk");
var H7I=function(D){return _.S("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},qVu(D.data.ctaButton,{buttonViewModel:{}}),_.S(_.y_,{text:D.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var xnI;var PWp;var KP=function(){return _.N.apply(this,arguments)||this};
_.n(KP,_.N);KP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
KP.prototype.computeBlueBottomLink=function(D){return D};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],KP.prototype,"data",void 0);_.q([_.y({computed:"computeIcon_(data.bottomIcon)"}),_.x("design:type",String)],KP.prototype,"bottomIcon",void 0);
_.q([_.y({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.x("design:type",Boolean)],KP.prototype,"enableBlueBottomLink",void 0);_.q([_.h({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],KP);
_.L(KP,"ytd-web-answer-renderer",function(){if(PWp!==void 0)return PWp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return PWp=D},{mode:_.zD("kevlar_poly_si_batch_j035")?1:2});var QBb;var hL=function(){var D=_.N.apply(this,arguments)||this;D.hasChipBar=!1;return D};
_.n(hL,_.N);hL.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}}};
hL.prototype.computeHasChipBar=function(D){return!(D==null||!D.chipBar)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hL.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.x("design:type",Object)],hL.prototype,"hasChipBar",void 0);_.q([_.h({is:"ytd-search-header-renderer",disableElementRegistration:!0})],hL);
_.L(hL,"ytd-search-header-renderer",function(){if(QBb!==void 0)return QBb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return QBb=D},{mode:1});var BA0;var LP=function(){return _.N.apply(this,arguments)||this};
_.n(LP,_.N);LP.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],LP.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-page-continuation"})],LP);
_.L(LP,"ytd-page-continuation",function(){if(BA0!==void 0)return BA0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return BA0=D},{mode:1});var pTE;var Eiu;var git;var mj=function(){return _.N.apply(this,arguments)||this};
_.n(mj,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mj.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],mj);
_.L(mj,"ytd-watch-card-one-vs-one-event",function(){if(git!==void 0)return git;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return git=D},{mode:1});var q2=function(){return _.N.apply(this,arguments)||this};
_.n(q2,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],q2.prototype,"data",void 0);_.q([_.h({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],q2);
_.L(q2,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Eiu!==void 0)return Eiu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Eiu=D},{mode:1});var dnh;var H0=function(){return _.N.apply(this,arguments)||this};
_.n(H0,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],H0.prototype,"data",void 0);_.q([_.h({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],H0);
_.L(H0,"ytd-banner-and-box-hero-image-renderer",function(){if(dnh!==void 0)return dnh;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dnh=D},{mode:1});var i79;var xe=function(){var D=_.N.apply(this,arguments)||this;D.modern=_.f("web_modern_buttons");return D};
_.n(xe,_.N);xe.prototype.computeIcon=function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.icon)==null?void 0:Y.iconType;if(R)return _.IT(R)};
xe.prototype.computeButtonShape=function(){var D;return{buttonText:_.OM((D=this.data)==null?void 0:D.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.YF.Object.defineProperties(xe.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"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xe.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xe.prototype,"modern",void 0);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.b("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],xe.prototype,"buttonColor",null);
_.q([_.h({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],xe);
_.L(xe,"ytd-call-to-action-button-renderer",function(){if(i79!==void 0)return i79;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return i79=D},{mode:1});var O7p;var P0=function(){return _.N.apply(this,arguments)||this};
_.n(P0,_.N);P0.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.aU(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.MW(this.data.leftThumbnail.thumbnails,216)+")")};
P0.prototype.onLeftThumbnailChanged=P0.prototype.onLeftThumbnailChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],P0.prototype,"data",void 0);_.q([_.Gm("data.leftThumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P0.prototype,"onLeftThumbnailChanged",null);_.q([_.h({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],P0);
_.L(P0,"ytd-collage-hero-image-renderer",function(){if(O7p!==void 0)return O7p;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return O7p=D},{mode:1});var cMp;var Qd=function(){return _.N.apply(this,arguments)||this};
_.n(Qd,_.N);Qd.prototype.computeStyle=function(D){return D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Qd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Qd.prototype,"componentStyle",void 0);_.q([_.h({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Qd);
_.L(Qd,"ytd-single-hero-image-renderer",function(){if(cMp!==void 0)return cMp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return cMp=D},{mode:1});var DeT;var B0=function(){return _.N.apply(this,arguments)||this};
_.n(B0,_.N);_.u=B0.prototype;
_.u.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:_.f("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.u.computeSubtitle=function(D){if(this.data){var Y;if(this.data.upcomingEventData){D=_.OM(D.subtitle);var R=Number(this.data.upcomingEventData.startTime);isNaN(R)||(Y=_.i0(_.lI(D,R)))}else Y=D.subtitle;return Y}};
_.u.onHeroTap=function(D){D.preventDefault();var Y=this.data&&this.data.navigationEndpoint;!Y||!_.Yc(_.O$(D),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Yc(_.O$(D),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.f("kevlar_watchcard_hero_video_renderer_killswitch")?_.MX(this.hostElement,"yt-navigate",{navigationEndpoint:Y}):this.ytComponentBehavior.resolveCommand(Y))};
_.u.computeHeroTabIndex=function(D){return D&&D.simpleText?-1:0};
_.u.computeHeroRole=function(D){return D&&D.simpleText?"":"link"};
_.u.computeIsReminderButtonPresent=function(D){return!(!D||!D.reminderButton)};
_.u.computeHideBottomItems=function(D){return!(this.computeIsReminderButtonPresent(D)||D.subtitle)};
_.u.dataChanged=function(){var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Y;((Y=_.A(D==null?void 0:D.commandMetadata,_.yX))==null?0:Y.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D)};
B0.prototype.dataChanged=B0.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],B0.prototype,"data",void 0);
_.q([_.y({computed:"computeSubtitle(data)"}),_.x("design:type",String)],B0.prototype,"subtitle",void 0);_.q([_.y({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],B0.prototype,"isReminderButtonPresent",void 0);_.q([_.y({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],B0.prototype,"hideBottomItems",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B0.prototype,"dataChanged",null);_.q([_.h({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],B0);
_.L(B0,"ytd-watch-card-hero-video-renderer",function(){if(DeT!==void 0)return DeT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return DeT=D},{mode:1});var Ypz;var pP=function(){return _.N.apply(this,arguments)||this};
_.n(pP,_.N);_.u=pP.prototype;_.u.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"}}}};
_.u.computeTitleBadges=function(D){return D?[D]:[]};
_.u.computeHeaderStyle=function(D){return D?D.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.u.computeAvatarAriaLabel=function(D){if(D){var Y,R,Z,t;return(t=(Y=D.avatar)==null?void 0:(R=Y.accessibility)==null?void 0:(Z=R.accessibilityData)==null?void 0:Z.label)!=null?t:_.OM(D==null?void 0:D.title)}};
_.u.computeAvatarHeight=function(D){return D==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.u.computeBadgeRowClass=function(D){return(D==null?0:D[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pP.prototype,"data",void 0);_.q([_.y({computed:"computeTitleBadges(data.titleBadge)"}),_.x("design:type",Array)],pP.prototype,"titleBadges",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.x("design:type",String)],pP.prototype,"headerStyle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.x("design:type",String)],pP.prototype,"badgeRowClass",void 0);_.q([_.h({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],pP);
_.L(pP,"ytd-watch-card-rich-header-renderer",function(){if(Ypz!==void 0)return Ypz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ypz=D},{mode:1});var RWb;var ZEp;var E2=function(){return _.N.apply(this,arguments)||this};
_.n(E2,_.N);E2.prototype.onMetadataTap=function(D){var Y=this.data&&this.data.navigationEndpoint;Y&&!_.Yc(_.O$(D),this.hostElement,["A".toString()])&&_.MX(this.hostElement,"yt-navigate",{endpoint:Y})};
_.YF.Object.defineProperties(E2.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 D;if(this.data.upcomingEventData){var Y=_.OM(this.data.subtitle),R=Number(this.data.upcomingEventData.startTime);isNaN(R)||(D=_.i0(_.lI(Y,R)))}else D=this.data.subtitle;return D}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],E2.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data.style"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],E2.prototype,"isCondensed",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],E2.prototype,"subtitle",null);
_.q([_.h({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],E2);
_.L(E2,"ytd-watch-card-compact-video-renderer",function(){if(ZEp!==void 0)return ZEp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ZEp=D},{mode:1});var tr9;var g_=function(){return _.N.apply(this,arguments)||this};
_.n(g_,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],g_.prototype,"data",void 0);_.q([_.h({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],g_);
_.L(g_,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(tr9!==void 0)return tr9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return tr9=D},{mode:1});var d_=function(){return _.N.apply(this,arguments)||this};
_.n(d_,_.N);d_.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}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],d_.prototype,"ytRendererStamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],d_.prototype,"data",void 0);_.q([_.h({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],d_);
_.L(d_,"ytd-vertical-watch-card-list-renderer",function(){if(RWb!==void 0)return RWb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return RWb=D},{mode:1});var sxb;var ic=function(){var D=_.N.apply(this,arguments)||this;D.ariaExpanded="false";return D};
_.n(ic,_.N);_.u=ic.prototype;_.u.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.u.dataChanged=function(){var D;this.currentSeasonIndex=((D=this.data)==null?void 0:D.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.u.computeEpisodesInfo=function(D,Y,R){if(D!==void 0&&Y.length===D.length)return D[R]};
_.u.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.u.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.u.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.u.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.u.getUppercaseSimpleString=function(D){return this.ytRendererBehavior.getSimpleString(D).toUpperCase()};
_.u.updateCurrentSeasonIndexFromBinding=function(D){this.currentSeasonIndex=D.detail.value};
ic.prototype.onIronOverlayClosed=ic.prototype.onIronOverlayClosed;ic.prototype.currentSeasonIndexChanged=ic.prototype.currentSeasonIndexChanged;ic.prototype.dataChanged=ic.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ic.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",String)],ic.prototype,"label",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],ic.prototype,"currentSeasonIndex",void 0);_.q([_.y({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.x("design:type",Object)],ic.prototype,"episodesInfo",void 0);_.q([_.y({value:"false"}),_.x("design:type",Object)],ic.prototype,"ariaExpanded",void 0);_.q([_.fr("#lists"),_.x("design:type",Object)],ic.prototype,"lists",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ic.prototype,"dataChanged",null);_.q([_.rd("currentSeasonIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ic.prototype,"currentSeasonIndexChanged",null);_.q([_.Fv("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],ic.prototype,"onIronOverlayClosed",null);
_.q([_.h({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],ic);
_.L(ic,"ytd-watch-card-section-dropdown-renderer",function(){if(sxb!==void 0)return sxb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return sxb=D},{mode:1});var XvK;var O2=function(){var D=_.N.apply(this,arguments)||this;D.isSearch=!1;return D};
_.n(O2,_.N);O2.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}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],O2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],O2.prototype,"isSearch",void 0);_.q([_.h({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],O2);
_.L(O2,"ytd-watch-card-section-sequence-renderer",function(){if(XvK!==void 0)return XvK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return XvK=D},{mode:1});var qVu=_.bE({buttonViewModel:_.TV});_.tN(H7I);var uyk=_.RT(function(D){return _.S("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.S(_.vK,{data:function(){return D.data().ctaButton}},{buttonViewModel:_.TV}),_.S(_.y_,{text:function(){return D.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Ij"),ark=_.f("web_enable_sink_ytd_button_banner_view_model_ks")?H7I:uyk,Mrk=_.f("web_enable_sink_ytd_button_banner_view_model_ks")?_.Vv(H7I):uyk;
uyk.idomCompat=!0;_.f("web_enable_sink_ytd_button_banner_view_model_ks")?_.It(ark,"ytd-button-banner-view-model",{propNames:["data"]}):_.at(Mrk,"ytd-button-banner-view-model",{props:{data:_.cs}});var c0=function(){var D=_.N.apply(this,arguments)||this;D.isSearch=!1;return D};
_.n(c0,_.N);
c0.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"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],c0.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],c0.prototype,"rounded",void 0);_.q([_.y(),_.x("design:type",Object)],c0.prototype,"isSearch",void 0);
_.q([_.h({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],c0);
_.L(c0,"ytd-universal-watch-card-renderer",function(){if(pTE!==void 0)return pTE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return pTE=D},{mode:1});var CNk;_.at(_.RT(function(D){var Y=D.data;var R;D=!((R=_.DH().resolve(_.cD(_.O4)))==null||!R());R={};return _.S("overview-message-view-model",{class:_.e7("ytwOverviewMessageViewModelHost",(R.ytwOverviewMessageViewModelDarkBackground=D,R.ytwOverviewMessageViewModelLightBackground=!D,R))},_.S(_.T,{cond:function(){return Y().primaryImage},
then:function(Z){return _.S(_.Rt,{data:Z,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.S(_.T,{cond:function(){return Y().primaryText},
then:function(){return _.S("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.S(_.y_,{text:function(){return Y().primaryText}}))}}),_.S(_.T,{cond:function(){return Y().secondaryText},
then:function(){return _.S("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.S(_.y_,{text:function(){return Y().secondaryText}}))}}))},"Jj"),"overview-message-view-model",{props:{data:_.cs}});_.at(_.AdD,"ytd-overview-answer-view-model",{props:{data:_.cs}});var DP=function(){return _.N.apply(this,arguments)||this};
_.n(DP,_.N);DP.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"}}}};
DP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],DP.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DP.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],DP.prototype,"isSearch",void 0);
_.q([_.h({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],DP);
_.L(DP,"ytd-secondary-search-container-renderer",function(){if(CNk!==void 0)return CNk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return CNk=D},{mode:1});var WXE;var YJ=function(){var D=_.N.apply(this,arguments)||this;D.renderSecondarySearchContainer=!1;D.isSearch=!1;return D};
_.n(YJ,_.N);_.u=YJ.prototype;_.u.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"}}}};
_.u.created=function(){var D=this;this.boundStampSecondarySearchContainerIfFits=function(){D.stampSecondarySearchContainerIfFits()};
_.l1("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.u.computeIsSearchFrictionPage=function(D){var Y,R,Z,t,X;D=D==null?void 0:(Y=D.primaryContents)==null?void 0:(R=Y.sectionListRenderer)==null?void 0:(Z=R.contents)==null?void 0:(t=Z[0])==null?void 0:(X=t.itemSectionRenderer)==null?void 0:X.contents;if(!D)return!1;Y=_.a(D);for(R=Y.next();!R.done;R=Y.next())if(Z=void 0,(Z=R.value)==null?0:Z.searchFrictionViewModel)return!0;return!1};
_.u.computeShowSecondaryColumn=function(D,Y){return!!(Y&&Y.secondaryContents&&D)};
_.u.activeChanged=function(){var D=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.jN(this,this.debounceStampSecondarySearchContainerIfFits)),_.BE(function(){D.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.jN(this,this.debounceStampSecondarySearchContainerIfFits))};
_.u.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.u.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.u.debounceStampSecondarySearchContainerIfFits=function(){_.pr(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.u.onRetrieveLocation=function(D,Y){Y.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);D.stopPropagation()};
_.u.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
YJ.prototype.dataChanged=YJ.prototype.dataChanged;YJ.prototype.onRetrieveLocation=YJ.prototype.onRetrieveLocation;YJ.prototype.persistentGuideChanged=YJ.prototype.persistentGuideChanged;YJ.prototype.activeChanged=YJ.prototype.activeChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],YJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],YJ.prototype,"ironResizableBehavior",void 0);_.q([_.y(),_.x("design:type",Boolean)],YJ.prototype,"active",void 0);_.q([_.y(),_.x("design:type",Object)],YJ.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.f("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],YJ.prototype,"useBiggerThumbs",void 0);_.q([_.y({reflectToAttribute:!0,value:function(){return _.XW("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],YJ.prototype,"biggerThumbsStyle",void 0);_.q([_.y(),_.x("design:type",Object)],YJ.prototype,"renderSecondarySearchContainer",void 0);_.q([_.y({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.x("design:type",Boolean)],YJ.prototype,"showSecondaryColumn",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.x("design:type",Boolean)],YJ.prototype,"isSearchFrictionPage",void 0);
_.q([_.y(),_.x("design:type",Object)],YJ.prototype,"isSearch",void 0);_.q([_.Gm("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YJ.prototype,"activeChanged",null);_.q([_.Gm("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YJ.prototype,"persistentGuideChanged",null);
_.q([_.Fv("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],YJ.prototype,"onRetrieveLocation",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YJ.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],YJ);
_.L(YJ,"ytd-two-column-search-results-renderer",function(){if(WXE!==void 0)return WXE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return WXE=D},{mode:1});var Rw=function(){var D=_.N.apply(this,arguments)||this;D.hasSearchHeader=!1;D.hasSecondaryContent=!1;D.hasBiggerThumbs=_.f("enable_desktop_search_bigger_thumbs");D.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return D};
_.n(Rw,_.N);_.u=Rw.prototype;_.u.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:_.OZ(["aa","eocs"])}}};
_.u.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.u.loadPage_=function(D){this.initCsi();D&&(this.data=D,_.l1("REFINEMENTS_TUPLE",["FromSearchResponse",D.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.pq(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.u.initCsi=function(){_.Uu("results",["ol","cpt"])};
_.u.updateTitle=function(){var D=_.LG(window.location.href,"q");D||(D=_.LG(window.location.href,"search_query"));_.MX(this.hostElement,"yt-update-title",D||"")};
_.u.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.u.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.f("web_srp_data_changed_terminate_imp_killswitch")||_.CX(this.hostElement,"yt-terminate-video-preview-action")};
_.u.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.u.computeHasSearchHeader=function(D){var Y;D=D==null?void 0:(Y=D.header)==null?void 0:Y.searchHeaderRenderer;return!!D&&(!!D.searchFilterButton||!!D.chipBar)};
_.u.computeHasSecondaryContent=function(D){var Y,R;return!!(D==null?0:(Y=D.contents)==null?0:(R=Y.twoColumnSearchResultsRenderer)==null?0:R.secondaryContents)};
_.YF.Object.defineProperties(Rw,{template:{configurable:!0,enumerable:!0,get:function(){if(xnI===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);xnI=D}D=xnI;return D}}});
Rw.prototype.onReloadContinuationFinish=Rw.prototype.onReloadContinuationFinish;Rw.prototype.dataChanged=Rw.prototype.dataChanged;_.q([_.v(_.Kz.YtPageBehavior),_.x("design:type",Object)],Rw.prototype,"ytPageBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Rw.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],Rw.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Rw.prototype,"data",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],Rw.prototype,"monitorScroll",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rw.prototype,"hasSearchHeader",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rw.prototype,"hasSecondaryContent",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Rw.prototype,"hasBiggerThumbs",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rw.prototype,"dataChanged",null);
_.q([_.Fv("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rw.prototype,"onReloadContinuationFinish",null);_.q([_.h({is:"ytd-search"})],Rw);_.z5.registerService(_.hhU,Rw);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("h8y2qb");
var Dhk=function(D){if(D=_.z5n(D)){var Y;(Y=D.sources)!=null&&Y[0]?(Y=_.Tw$(D),Y=Y<1?"VERTICAL":Y>1?"HORIZONTAL":"SQUARE"):Y=void 0;return Y}},hd=function(D){_.nf.call(this,"upload");
this.opts.query=D},RC0=function(D,Y){return _.S(YOk,{data:D,
onYtNavigate:Y})},ZRk=function(D,Y){return _.jC(D.entities,"pageHeaderEntity",Y)},swk=function(D,Y){return D.map(function(R){if(R.tabRenderer)return tWz(R.tabRenderer);
if(R.expandableTabRenderer&&Y){var Z=R.expandableTabRenderer;return{customTabRenderable:function(){return Y(Z)}}}return{}})},tWz=function(D){return{identifier:D.tabIdentifier,
aTagConfig:_.PL({innertubeCommand:D.endpoint,forceNewState:!0}),title:D.title,selected:D.selected,disabled:D.unselectable,icon:D.icon}},XYE=function(D){return _.u0({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:D})},uzk=function(D){if(!_.uI(document,"gtm-noscript")){var Y=document.createElement("noscript");
Y.id="gtm-noscript";Y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+D+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Y)}};_.XN(hd,_.nf);hd.prototype.JSC$10042_setLabel=function(D){hd.superClass_.JSC$10042_setLabel.call(this,D);return this};
hd.prototype.addUploadMetadata=function(D,Y){hd.superClass_.addUploadMetadata.call(this,D,Y);return this};var aP9=function(D){if(D!=="youtubebanner"&&D!=="youtube-channel-banner")throw Error("oo");hd.call(this,D)};
_.n(aP9,hd);aP9.prototype.JSC$10042_setLabel=function(D){hd.prototype.JSC$10042_setLabel.call(this,D);return this};
aP9.prototype.addUploadMetadata=function(D,Y){hd.prototype.addUploadMetadata.call(this,D,Y);return this};var MWz=[_.l_,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(D){_.oR(D).path[0]!==this&&(this.resetLayout(),D.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var D=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.CD(this._layoutDebouncer,_.NI,D);_.WX(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var D=this;requestAnimationFrame(function(){D.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(D){this.resizerShouldNotify(D)&&this._notifyDescendant(D)},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 CLk=[_.WpU,{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(D,Y){var R=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[D];if(!R)throw new ReferenceError(this._getUndefinedMsg(D));D=this._boundEffect(R,Y||{});D.setUp();return D},
_effectsChanged:function(D,Y,R){this._tearDownEffects();D&&R&&(D.split(" ").forEach(function(Z){var t;Z!==""&&((t=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Z])?this._effects.push(this._boundEffect(t,Y[Z])):console.warn(this._getUndefinedMsg(Z)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(D,Y){Y=Y||{};var R=parseFloat(Y.startsAt||0),Z=parseFloat(Y.endsAt||1),t=Z-R,X=function(){};
Z=R===0&&Z===1?D.run:function(M,W){D.run.call(this,Math.max(0,(M-R)/t),W)};
return{setUp:D.setUp?D.setUp.bind(this,Y):X,run:D.run?Z.bind(this):X,tearDown:D.tearDown?D.tearDown.bind(this):X}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(D){D.setUp()!==!1&&this._effectsRunFn.push(D.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(D){D.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(D,Y){this._effectsRunFn&&this._effectsRunFn.forEach(function(R){R(D,Y)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var D=this._clampedScrollTop;this._updateScrollState(D);this.threshold>0&&this._setThresholdTriggered(D>=this.threshold)}},
_getDOMRef:function(D){console.warn("_getDOMRef","`"+D+"` is undefined")},
_getUndefinedMsg:function(D){return"Scroll effect `"+D+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+D+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("po`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(D){var Y={};D=parseFloat(D.scalar);Y.background=this._getDOMRef("background");Y.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");Y.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");Y.deltaBg=Y.backgroundFrontLayer.offsetHeight-Y.background.offsetHeight;Y.deltaBg===0?(isNaN(D)&&(D=.8),Y.deltaBg=(this._dHeight||0)*D):(isNaN(D)&&(D=
1),Y.deltaBg*=D);this._fxParallaxBackground=Y},
run:function(D){var Y=this._fxParallaxBackground;this.transform("translate3d(0px, "+Y.deltaBg*Math.min(1,D)+"px, 0px)",Y.backgroundFrontLayer);Y.backgroundRearLayer&&this.transform("translate3d(0px, "+Y.deltaBg*Math.min(1,D)+"px, 0px)",Y.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var WN0;var zCz;var SOK=function(){};
_.u=SOK.prototype;_.u._scrollTargetChanged=function(){};
_.u.scroll=function(){};
_.u._isValidScrollTarget=function(){};
_.u._toggleScrollListener=function(){};
_.u.toggleScrollListener=function(){};
_.u.createEffect=function(){};
_.u._effectsChanged=function(){};
_.u._layoutIfDirty=function(){};
_.u._boundEffect=function(){};
_.u._setUpEffect=function(){};
_.u._tearDownEffects=function(){};
_.u._runEffects=function(){};
_.u._scrollHandler=function(){};
_.u._scrollStateChanged=function(){};
_.u._getUndefinedMsg=function(){};
_.u.notifyResize=function(){};
_.u.assignParentResizable=function(){};
_.u.stopResizeNotificationsFor=function(){};
_.u._subscribeIronResize=function(){};
_.u._unsubscribeIronResize=function(){};
_.u.resizerShouldNotify=function(){};
_.u._onDescendantIronResize=function(){};
_.u._fireResize=function(){};
_.u._onIronRequestResizeNotifications=function(){};
_.u._parentResizableChanged=function(){};
_.u._notifyDescendant=function(){};
_.u._requestResizeNotifications=function(){};
_.u._findParent=function(){};
_.u._appResetLayoutHandler=function(){};
_.u.resetLayout=function(){};
_.u._notifyLayoutChanged=function(){};
_.u._notifyDescendantResize=function(){};
_.u._setThresholdTriggered=function(){};
SOK=_.Jj({_template:function(){if(zCz!==void 0)return zCz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;WN0===void 0&&(WN0=document.createElement("template"));var Z=WN0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return zCz=D},
is:"tp-yt-app-header",behaviors:[CLk,MWz],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 D=_.oR(this.$.slot).getDistributedNodes(),Y=0,R;R=D[Y];Y++)if(R.nodeType===Node.ELEMENT_NODE)if(R.hasAttribute("sticky")){this._stickyElRef=R;break}else this._stickyElRef||(this._stickyElRef=R);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var D=this._clampedScrollTop,Y=this._height===0||D===0,R=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;Y||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();Y?this._updateScrollState(D,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=R}},
_updateScrollState:function(D,Y){if(this._height!==0){var R=0,Z=this._top;var t=this._maxHeaderTop;var X=D-this._lastScrollTop,M=Math.abs(X),W=D>this._lastScrollTop,z=performance.now();this._mayMove()&&(R=this._clamp(this.reveals?Z+X:D,0,t));D>=this._dHeight&&(R=this.condenses&&!this.fixed?Math.max(this._dHeight,R):R,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&M<100){if(z-this._initTimestamp>300||this._wasScrollingDown!==W)this._initScrollTop=D,this._initTimestamp=z;D>=t&&
(Math.abs(this._initScrollTop-D)>30||M>10?(W&&D>=t?R=t:!W&&D>=this._dHeight&&(R=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((R-Z)/(X/(z-this._lastTimestamp)),0,300)+"ms"):R=this._top)}t=this._dHeight===0?D>0?1:0:R/this._dHeight;Y||(this._lastScrollTop=D,this._top=R,this._wasScrollingDown=W,this._lastTimestamp=z);if(Y||t!==this._progress||Z!==R||D===0)this._progress=t,this._runEffects(t,R),this._transformHeader(R)}},
_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(D){this.translate3d(0,-D+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&D>=this._stickyElTop?Math.min(D,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(D,Y,R){return Math.min(R,Math.max(Y,D))},
_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),_.oR(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(D){switch(D){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.oR(this).querySelector("[main-title]");case "condensedTitle":return _.oR(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var TEK;var jwI;_.Jj({_template:function(){if(jwI!==void 0)return jwI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;TEK===void 0&&(TEK=document.createElement("template"));var Z=TEK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return jwI=D},
is:"tp-yt-app-header-layout",behaviors:[MWz],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.oR(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var D=this.header;if(this.isAttached&&D){this.$.wrapper.classList.remove("initializing");D.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)D.style.left=
"",D.style.right="";else{var Y=this.getBoundingClientRect(),R=document.documentElement.clientWidth-Y.right;D.style.left=Y.left+"px";D.style.right=R+"px"}Y=this.$.contentContainer.style;R=D.offsetHeight;D.fixed&&!D.condenses&&this.hasScrollingRegion?(Y.marginTop=R+"px",Y.paddingTop=""):(Y.paddingTop=R+"px",Y.marginTop="")}}});var IPK=new _.Dv("alertCommand");var FNk=new _.Dv("manageLabsStateCommand");var Ghk=new _.Dv("inlineFormRenderer");var Lz=new _.Dv("playlistSidebarPrimaryInfoRenderer");var VWk=new _.Dv("productDetailsThumbnailRenderer"),fPK=new _.Dv("productDetailsVariantRenderer"),eC0=new _.Dv("productDetailsVariantOptionRenderer"),A_b=new _.Dv("productDetailsOffersContainerRenderer"),nJ9=new _.Dv("productDetailsOfferRenderer");var r_I=new _.Dv("shoppingFlaggingRenderer");var wYu=new _.Dv("playlistBylineRenderer");var $hE=new _.Dv("insertChannelTabCommand");var m6=function(){return _.Aj.apply(this,arguments)||this};
_.n(m6,_.Aj);_.u=m6.prototype;_.u.activeChanged=function(){if(this.active){var D=_.aU(this.hostElement).querySelector("#header");D&&_.MX(D,"iron-resize");window.addEventListener("scroll",_.jN(this,this.onScroll))}else window.removeEventListener("scroll",_.jN(this,this.onScroll)),_.MX(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.u.guideVisibleChanged=function(){var D=_.aU(this.hostElement).querySelector("#header");D&&_.MX(D,"iron-resize")};
_.u.onScroll=function(){var D=this;_.pr(this,"onScroll",function(){var Y=_.aU(D.hostElement).querySelector("#header");Y&&Y.polymerController&&(Y=Y.polymerController.getScrollState().progress===1?"standard":"seamed",_.MX(D.hostElement,"yt-request-panel-mode-change",{mode:Y}))},10)};
_.u.tabsChanged=function(){if(this.tabs){for(var D=null,Y=0,R=this.tabs.length;Y<R;++Y){var Z=this.tabs[Y].tabRenderer;if(Z&&Z.selected){D=Y;break}}this.selected=D}};
_.u.onTabsActivate=function(D){_.MX(this.hostElement,"yt-navigate",{endpoint:this.tabs[D.detail.selected].tabRenderer.endpoint})};
m6.prototype.tabsChanged=m6.prototype.tabsChanged;m6.prototype.guideVisibleChanged=m6.prototype.guideVisibleChanged;m6.prototype.activeChanged=m6.prototype.activeChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],m6.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.y(),_.x("design:type",Array)],m6.prototype,"tabs",void 0);
_.q([_.y(),_.x("design:type",Object)],m6.prototype,"selected",void 0);_.q([_.y(),_.x("design:type",Boolean)],m6.prototype,"active",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],m6.prototype,"disableHeaderFluidWidth",void 0);_.q([_.Gm("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m6.prototype,"activeChanged",null);
_.q([_.Gm("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m6.prototype,"guideVisibleChanged",null);_.q([_.Gm("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m6.prototype,"tabsChanged",null);_.q([_.nr()],m6);var vJ9=[_.p.YtRendererBehavior,_.BH.YtdGuideStateAwareBehavior,m6.prototype];var oJ0=2/3,bRz=_.TP(130749),y_b=function(D,Y){var R=this;this.element=D;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){R.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:oJ0,moveAction:function(Z){R.moveAction(Z)},
triggerAction:function(){R.element.isReloading=!0;_.pB(_.n8(),{visualElement:bRz});_.GD.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:R.element}})}}}};
_.Ii(_.n8(),bRz,this.layer);this.gesture=new _.T1(D,Y,this.refreshConfig,"pan-down");this.attach()};
_.u=y_b.prototype;_.u.attach=function(){this.gesture.attach()};
_.u.detach=function(){this.gesture.detach()};
_.u.reset=function(){this.element.close()};
_.u.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.u.moveAction=function(D){this.element.rotation=D*360};var NEb=_.TP(130750),qR=function(D,Y,R,Z,t){var X=this;this.element=D;this.parent=R;this.channelHeader=Z;this.ytdReduxDispatch=t;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){X.tabsStartAtInPx=X.channelHeader.clientHeight-48;var M;(M=X.selectedTab)!=null&&M.title&&(M=_.DH().resolve(_.cD(_.Z4)))&&(M=M.getCurrentPage(),X.lastVisitedTabScrollPosition=M.getScrollTop(),X.previousTab&&
((X.lastVisitedTabScrollPosition===void 0?0:X.lastVisitedTabScrollPosition<X.channelHeader.clientHeight-48)?X.scrollPositionForTabs.has(X.selectedTab.title)&&X.scrollPositionForTabs.delete(X.selectedTab.title):X.scrollPositionForTabs.set(X.selectedTab.title,M.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:lP9(),triggerAction:function(){X.navigate(X.previousTab)},
moveAction:function(M,W){X.moveAction(M,W)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-lP9(),triggerAction:function(){X.navigate(X.nextTab)},
moveAction:function(M,W){X.moveAction(M,W)}}}};
_.Ii(_.n8(),NEb,this.layer);this.gesture=new _.T1(D,Y,this.tabConfig);this.attach()};
qR.prototype.attach=function(){this.gesture.attach()};
qR.prototype.detach=function(){this.gesture.detach()};
qR.prototype.tabsChanged=function(D){if(D){var Y=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;D=_.a(D);for(var R=D.next();!R.done;R=D.next()){R=R.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=R);var Z=void 0;if((Z=R)==null?0:Z.selected)this.previousTab=Y,this.selectedTab=R;Y=R}Y=this.gesture;D=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}});
Y.config=D;this.scrollPositionNeedsUpdate=!0}};
qR.prototype.moveAction=function(D,Y){if(!this.tabsElement){var R;this.tabsElement=(R=this.parent.header)==null?void 0:R.tabsElement;Y==="right"&&this.previousTab?_.Evz(_.$Z.instance,this.previousTab.endpoint,{},""):Y==="left"&&this.nextTab&&_.Evz(_.$Z.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}R=this.tabsElement._pos;Y==="right"&&(D*=-1);this.tabsElement._positionBar(R.width,R.left*1+R.width*D)};
var lP9=function(){var D,Y;return(Y=(D=_.DH().resolve(_.Z4).getCurrentPage())==null?void 0:D.clientWidth)!=null?Y:0};
qR.prototype.navigate=function(D){this.element.data=void 0;if(D=D==null?void 0:D.endpoint)this.ytdReduxDispatch(XYE(!0)),_.pB(_.n8(),{visualElement:NEb}),_.GD.instance.resolveCommand({navigateAction:{endpoint:D}},{form:{element:this.element}})};var J_K;var khh;var Hq=function(){return _.N.apply(this,arguments)||this};
_.n(Hq,_.N);Hq.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Hq.prototype,"data",void 0);_.q([_.h({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Hq);
_.L(Hq,"ytd-labs-edit-renderer",function(){if(khh!==void 0)return khh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return khh=D},{mode:1});var UhI;var x9=function(){var D=_.N.apply(this,arguments)||this;D.dark=!1;D.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(x9,_.N);x9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
x9.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.setBackgroundImage(D);this.dark=D};
x9.prototype.onDarkModeToggledAction=function(D){this.setBackgroundImage(D);this.dark=D};
x9.prototype.setBackgroundImage=function(D){_.SN(this.hostElement,{"--yt-labs-header-background":"url("+(D?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],x9.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],x9.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],x9.prototype,"dark",void 0);
_.q([_.h({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],x9);
_.L(x9,"ytd-labs-header-renderer",function(){if(UhI!==void 0)return UhI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return UhI=D},{mode:1});var KNt;var Pq=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return D};
_.n(Pq,_.N);Pq.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"}}}}}};
Pq.prototype.onYtToggleButton=function(D){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",D.detail.toggled)};
Pq.prototype.onManageLabsState=function(D){if(D=_.A(D,FNk))D.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?D.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&D.labsItemId===this.data.labsItemId&&(D.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.CX(this.hostElement,"yt-check-labs-opted-in-state").some(function(Y){return Y})&&this.data.confirmationDialogCommand?_.Se(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.DH().resolve(_.Yw).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&D.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.DH().resolve(_.Yw).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Pq.prototype.onCheckLabsOptedInState=function(){var D=this.get("data.primaryButton.toggleButtonRenderer");return D?D.isToggled:!1};
_.YF.Object.defineProperties(Pq.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Pq.prototype.onYtToggleButton=Pq.prototype.onYtToggleButton;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Pq.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Pq.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pq.prototype,"itemStyle",null);_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Pq.prototype,"onYtToggleButton",null);_.q([_.h({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Pq);
_.L(Pq,"ytd-labs-item-renderer",function(){if(KNt!==void 0)return KNt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return KNt=D},{mode:1});var hCk;var LN9;var QS=function(){return _.N.apply(this,arguments)||this};
_.n(QS,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QS.prototype,"data",void 0);_.q([_.h({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],QS);
_.L(QS,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(LN9!==void 0)return LN9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return LN9=D},{mode:1});var mhz;var Bq=function(){return _.N.apply(this,arguments)||this};
_.n(Bq,_.N);Bq.prototype.observeSuperchatChip=function(){if(this.data){var D={"--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)};_.SN(this.hostElement,D)}};
Bq.prototype.colorFromDecimal=function(D){return _.xI(Number(D||0))};
Bq.prototype.observeSuperchatChip=Bq.prototype.observeSuperchatChip;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Bq.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bq.prototype,"observeSuperchatChip",null);_.q([_.h({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Bq);
_.L(Bq,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(mhz!==void 0)return mhz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return mhz=D},{mode:1});var pz=function(){return _.N.apply(this,arguments)||this};
_.n(pz,_.N);pz.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"}}}};
_.YF.Object.defineProperties(pz.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.HH),_.x("design:type",Object)],pz.prototype,"ytdDismissibleItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pz.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pz.prototype,"hideMessageBlock",null);
_.q([_.h({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],pz);
_.L(pz,"ytd-live-chat-history-entry-renderer",function(){if(hCk!==void 0)return hCk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hCk=D},{mode:1});var qOk;var Eu=function(){return _.N.apply(this,arguments)||this};
_.n(Eu,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Eu.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Eu);
_.L(Eu,"ytd-channel-options-renderer",function(){if(qOk!==void 0)return qOk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qOk=D},{mode:1});var HRb;var gF=function(){return _.N.apply(this,arguments)||this};
_.n(gF,_.N);gF.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gF.prototype,"data",void 0);_.q([_.h({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],gF);
_.L(gF,"ytd-settings-email-item-renderer",function(){if(HRb!==void 0)return HRb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return HRb=D},{mode:1});var xhT;var dF=function(){return _.N.apply(this,arguments)||this};
_.n(dF,_.N);dF.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"}}}};
dF.prototype.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
dF.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.YF.Object.defineProperties(dF.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],dF.prototype,"data",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],dF.prototype,"expanded",void 0);_.q([_.b("expanded"),_.x("design:type",String),_.x("design:paramtypes",[])],dF.prototype,"emailListExpanded",null);
_.q([_.fr("#options"),_.x("design:type",Object)],dF.prototype,"options",void 0);_.q([_.h({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],dF);
_.L(dF,"ytd-settings-email-list-renderer",function(){if(xhT!==void 0)return xhT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xhT=D},{mode:1});var PLb;var iw=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.n(iw,_.N);iw.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"}}}};
iw.prototype.handleSignalActionSubmitForm=function(){var D,Y=(D=this.formRenderer)==null?void 0:D.getForm();Y&&this.data.serviceEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},Y,{element:this.hostElement})})};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],iw.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iw.prototype,"data",void 0);_.q([_.fr("yt-form-renderer"),_.x("design:type",Object)],iw.prototype,"formRenderer",void 0);
_.q([_.h({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],iw);
_.L(iw,"ytd-settings-gaia-link-renderer",function(){if(PLb!==void 0)return PLb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return PLb=D},{mode:1});var Qwk;var Ou=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return D};
_.n(Ou,_.N);Ou.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.SU9()&&this.set("data.hidden",!1)};
Ou.prototype.onSwitchReady=function(){var D=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.f("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.zp9().then(function(Y){Y&&(Notification.permission==="default"?D.set("data.hidden",!1):Notification.permission==="granted"&&_.GM("NotificationsDisabled").then(function(R){R||_.CX(D.hostElement,"yt-toggle-settings-switch",[D.data.id,!R]);D.set("data.hidden",!1)}).catch(function(){}))})})};
Ou.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}}}}};
Ou.prototype.handleUpdateOptionsCommand=function(D){(D=_.A(D,_.YSE))&&this.data&&this.data.id===D.id&&(this.set("data.hidden",D.hidden),D.text!==void 0&&this.set("data.text",D.text),D.clearOptions&&this.set("data.options",[]))};
Ou.prototype.onSwitchReady=Ou.prototype.onSwitchReady;Ou.prototype.dataChanged=Ou.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ou.prototype,"data",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ou.prototype,"dataChanged",null);_.q([_.Fv("yt-settings-switch-ready"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ou.prototype,"onSwitchReady",null);_.q([_.h({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Ou);
_.L(Ou,"ytd-settings-options-renderer",function(){if(Qwk!==void 0)return Qwk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Qwk=D},{mode:1});var BET;var cq=function(){return _.N.apply(this,arguments)||this};
_.n(cq,_.N);cq.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cq.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
cq.prototype.onYtExpanderMoreTapped=cq.prototype.onYtExpanderMoreTapped;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],cq.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cq.prototype,"data",void 0);
_.q([_.Fv("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cq.prototype,"onYtExpanderMoreTapped",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],cq);
_.L(cq,"ytd-product-details-description-renderer",function(){if(BET!==void 0)return BET;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return BET=D},{mode:1});var pYu;var Dw=function(){var D=_.N.apply(this,arguments)||this;D.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";D.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";D.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";D.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return D};
_.n(Dw,_.N);Dw.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.YF.Object.defineProperties(Dw.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.offerData)==null?void 0:Y.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?void 0:D.purchaseButtonRenderers)!==void 0&&((Y=this.data)==null?void 0:Y.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.formattedFromMerchantText)&&(!((Y=this.data)==null||!Y.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Dw.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Dw.prototype,"data",void 0);
_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Dw.prototype,"shippingIcon",void 0);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Dw.prototype,"shippingAddressIcon",void 0);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Dw.prototype,"googleGuaranteeIcon",void 0);
_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Dw.prototype,"returnPolicyIcon",void 0);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Dw.prototype,"showAdditionalFees",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Dw.prototype,"showMultiPurchaseButtons",null);
_.q([_.b("data","showMultiPurchaseButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Dw.prototype,"showPurchaseData",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Dw);
_.L(Dw,"ytd-product-details-hero-offer-renderer",function(){if(pYu!==void 0)return pYu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return pYu=D},{mode:1});var EJK;var gJp;var Ye=function(){return _.N.apply(this,arguments)||this};
_.n(Ye,_.N);_.u=Ye.prototype;_.u.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.u.onKeyDown=function(D){D=D.keyCode;D!==13&&D!==32||this.handleSelection()};
_.u.onMouseEnterImage=function(){var D;((D=this.data)==null?void 0:D.thumbnailDetails)!==void 0&&_.WC(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.u.onMouseLeaveImage=function(){_.WC(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.u.handleSelection=function(){this.data&&_.MX(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.YF.Object.defineProperties(Ye.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ye.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ye.prototype,"isSelected",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Ye);
_.L(Ye,"ytd-product-details-thumbnail-renderer",function(){if(gJp!==void 0)return gJp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return gJp=D},{mode:1});var RL=function(){var D=_.N.apply(this,arguments)||this;var Y={};D.actionMap=(Y["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",Y["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",Y);D.selectedThumbnailIndex=0;D.selectItem=function(R){R.target.onKeyDown(R)};
return D};
_.n(RL,_.N);_.u=RL.prototype;_.u.handlePreviewImageSelect=function(D){this.hoverThumbnail=D};
_.u.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.u.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.u.onThumbnailSelected=function(D,Y){this.selectedThumbnailIndex=Y};
_.u.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.u.updateOffset=function(){var D=_.aU(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_()};
_.YF.Object.defineProperties(RL.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.imageRenderer){var Y,R;return((Y=this.data)==null?void 0:(R=Y.imageRenderer)==null?void 0:R.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var D;if((D=this.data)==null?0:D.imageRenderer){var Y;return(Y=_.A(this.data.imageRenderer[this.selectedThumbnailIndex],VWk))==null?void 0:Y.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var D=this,Y,R,Z,t=(Z=(Y=this.data)==null?void 0:(R=Y.imageRenderer)==null?void 0:R.map(function(X,M){return{productDetailsThumbnailRenderer:Object.assign({},_.A(X,VWk),{index:M,isSelected:M===D.selectedThumbnailIndex})}}))!=null?Z:[];
return Object.assign({},this.data,{imageRenderer:t})}}});
RL.prototype.updateOffset=RL.prototype.updateOffset;RL.prototype.dataChanged=RL.prototype.dataChanged;RL.prototype.onThumbnailSelected=RL.prototype.onThumbnailSelected;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.aX.YtdHorizontalListBehavior),_.x("design:type",Object)],RL.prototype,"ytdHorizontalListBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],RL.prototype,"componentBehavior",void 0);_.q([_.v([_.Va.YtActionHandlerBehavior]),_.x("design:type",Object)],RL.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],RL.prototype,"data",void 0);_.q([_.y({value:"$.items.children"}),_.x("design:type",String)],RL.prototype,"itemsPath",void 0);_.q([_.y({value:3}),_.x("design:type",Number)],RL.prototype,"initialCount",void 0);
_.q([_.fr("#items"),_.x("design:type",Object)],RL.prototype,"items",void 0);_.q([_.y(),_.x("design:type",Object)],RL.prototype,"selectedThumbnailIndex",void 0);_.q([_.y(),_.x("design:type",Object)],RL.prototype,"hoverThumbnail",void 0);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],RL.prototype,"showThumbnails",null);
_.q([_.Fv("ytd-product-details-thumbnail-renderer-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Number]),_.x("design:returntype")],RL.prototype,"onThumbnailSelected",null);_.q([_.b("data","selectedThumbnailIndex","hoverThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],RL.prototype,"thumbnailDetails",null);_.q([_.b("data","selectedThumbnailIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],RL.prototype,"populatedData",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RL.prototype,"dataChanged",null);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RL.prototype,"updateOffset",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],RL);
_.L(RL,"ytd-product-details-image-carousel-renderer",function(){if(EJK!==void 0)return EJK;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return EJK=D},{mode:_.zD("kevlar_poly_si_batch_j079")?1:2});var dhu;var Zw=function(){return _.N.apply(this,arguments)||this};
_.n(Zw,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Zw.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Zw.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Zw);
_.L(Zw,"ytd-product-details-offer-renderer",function(){if(dhu!==void 0)return dhu;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return dhu=D},{mode:1});var iRu;var tL=function(){var D=_.N.apply(this,arguments)||this;D.isOffersHidden=!0;return D};
_.n(tL,_.N);tL.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var D,Y=_.A((D=this.data)==null?void 0:D.viewOffersButton,_.qv);Y&&this.ytRendererBehavior.logExplicitClick(Y)};
tL.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.YF.Object.defineProperties(tL.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z;return(R=_.A((D=this.data)==null?void 0:(Y=D.offers)==null?void 0:Y[0],nJ9))==null?void 0:(Z=R.offerData)==null?void 0:Z.vendorLogoUrl}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],tL.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tL.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],tL.prototype,"isOffersHidden",void 0);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],tL.prototype,"firstOfferVendorLogoUrl",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],tL);
_.L(tL,"ytd-product-details-offers-container-renderer",function(){if(iRu!==void 0)return iRu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return iRu=D},{mode:1});var OR0;var c_u;var s2=function(){return _.N.apply(this,arguments)||this};
_.n(s2,_.N);s2.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
s2.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.WC(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
s2.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.WC(this,"ytd-product-details-variant-image-unselect")};
_.YF.Object.defineProperties(s2.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 D;return((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?void 0:D.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((Y=this.data)==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((R=this.data)==null?void 0:R.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var D;if(((D=this.data)==null?void 0:D.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,Y;return this.isUnavailable?(D=this.data)==null?void 0:D.variantOptionUnavailableAccessibilityLabel:(Y=this.data)==null?void 0:Y.variantOptionAccessibilityLabel}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],s2.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],s2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],s2.prototype,"displayType",void 0);
_.q([_.b("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],s2.prototype,"isImageButton",null);_.q([_.b("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],s2.prototype,"isPillButton",null);_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],s2.prototype,"isActive",null);
_.q([_.b("data"),_.y({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],s2.prototype,"isUnavailable",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],s2.prototype,"thumbnailDetails",null);_.q([_.b("isUnavailable","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],s2.prototype,"accessibilityLabel",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],s2);
_.L(s2,"ytd-product-details-variant-option-renderer",function(){if(c_u!==void 0)return c_u;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return c_u=D},{mode:1});var DnK;var Xr=function(){var D=_.N.apply(this,arguments)||this;D.variantsExpanded=!1;D.hideShowMoreLessVariantButton=!0;D.initialized=!1;D.computeVariantsDebouncer=null;D.computeVariants=function(Y){Y=Y===void 0?!1:Y;D.variantsExpanded||D.showOptions()||!Y||(D.variantsExpanded=!0);if(D.variantsExpanded){Y=_.a(D.items.children);for(var R=Y.next();!R.done;R=Y.next())R.value.hidden=!1}D.initialized=!0};
return D};
_.n(Xr,_.N);_.u=Xr.prototype;_.u.ready=function(){var D=this;setTimeout(function(){D.computeVariants(!0)})};
_.u.showOptions=function(){for(var D=_.a(this.items.children),Y=D.next();!Y.done;Y=D.next())Y.value.hidden=!0;var R=this.container.getBoundingClientRect().width,Z=0,t=D=0;Y=!1;for(var X=_.a(this.items.children),M=X.next();!M.done;M=X.next()){M=M.value;M.hidden=!1;var W=M.getBoundingClientRect().width;if(Z+W<R)Z+=W;else if(++t<2)Z=W;else break;D+=1;M.hasAttribute("is-active")&&(Y=!0)}for(R=D;R<this.items.children.length;R++)this.items.children[R].hidden=!0;this.hideShowMoreLessVariantButton=D===this.items.children.length;
return Y};
_.u.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.CD(this.computeVariantsDebouncer,_.OF.after(100),this.computeVariants)};
_.u.onShowMoreLessVariantsButtonClick=function(){var D;(D=this.data)!=null&&D.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.u.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.YF.Object.defineProperties(Xr.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.variantOptionRenderers)==null?void 0:Y.find(function(X){return _.A(X,eC0).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Z,t;
return(t=(Z=_.A(R,eC0))==null?void 0:Z.name)!=null?t:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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"}}}});
Xr.prototype.debouncedComputeVariants=Xr.prototype.debouncedComputeVariants;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Xr.prototype,"componentBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],Xr.prototype,"ironResizableBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Xr.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Xr.prototype,"variantsExpanded",void 0);_.q([_.y(),_.x("design:type",Object)],Xr.prototype,"hideShowMoreLessVariantButton",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Xr.prototype,"initialized",void 0);_.q([_.fr("#items"),_.x("design:type",HTMLDivElement)],Xr.prototype,"items",void 0);_.q([_.fr("#container"),_.x("design:type",HTMLDivElement)],Xr.prototype,"container",void 0);
_.q([_.fr("#more-variants-button"),_.x("design:type",HTMLElement)],Xr.prototype,"moreVariantsButton",void 0);_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Xr.prototype,"selectedOptionName",null);_.q([_.Gm("data","variantsExpanded"),_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xr.prototype,"debouncedComputeVariants",null);
_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Xr.prototype,"displayType",null);_.q([_.b("displayType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xr.prototype,"variantItemsClassname",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Xr);
_.L(Xr,"ytd-product-details-variant-renderer",function(){if(DnK!==void 0)return DnK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return DnK=D},{mode:1});var uc=function(){return _.N.apply(this,arguments)||this};
_.n(uc,_.N);
uc.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"}}}};
_.YF.Object.defineProperties(uc.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(Y=_.A((D=this.data)==null?void 0:D.offersContainerRenderer,A_b))==null?void 0:Y.offers;return R!==void 0&&(R==null?void 0:R.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 D,Y,R;return((R=(D=this.data)==null?void 0:(Y=D.variants)==null?void 0:Y.map(function(Z){var t,X;Z=(X=(t=_.A(Z,fPK))==null?void 0:t.variantOptionRenderers)==null?void 0:X.find(function(W){var z;return((z=_.A(W,eC0))==null?void 0:z.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var M;return(M=_.A(Z,eC0))==null?void 0:M.name}).filter(function(Z){return typeof Z==="string"}))!=null?R:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var D,Y,R,Z=(Y=_.A((D=this.data)==null?void 0:D.shoppingFlaggingRenderer,r_I))==null?void 0:(R=Y.reportButton)==null?void 0:R.buttonRenderer;if(Z)return{text:Z.text,command:Z.command,icon:{iconType:"FLAG"},accessibilityData:Z.accessibilityData,trackingParams:Z.trackingParams,loggingDirectives:Z.loggingDirectives}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],uc.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uc.prototype,"data",void 0);_.q([_.fr("#image-carousel-renderer"),_.x("design:type",Object)],uc.prototype,"imageCarouselRenderer",void 0);
_.q([_.fr("#hero-offer-renderer"),_.x("design:type",Object)],uc.prototype,"productDetailsHeroOfferRenderer",void 0);_.q([_.fr("#variants"),_.x("design:type",Object)],uc.prototype,"productDetailsVariantRenderer",void 0);_.q([_.fr("#offers"),_.x("design:type",Object)],uc.prototype,"productDetailsOffersContainerRenderer",void 0);_.q([_.fr("#description-renderer"),_.x("design:type",Object)],uc.prototype,"productDetailsDescriptionRenderer",void 0);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uc.prototype,"showPurchaseData",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uc.prototype,"showHeroOfferRenderer",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uc.prototype,"showBrandText",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uc.prototype,"showOffers",null);
_.q([_.b("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uc.prototype,"showBuySeparator",null);_.q([_.b("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uc.prototype,"showBuyCard",null);_.q([_.b("data"),_.x("design:type",String),_.x("design:paramtypes",[])],uc.prototype,"selectedVariantsText",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],uc.prototype,"shoppingReportingButtonData",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],uc);
_.L(uc,"ytd-product-details-renderer",function(){if(OR0!==void 0)return OR0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return OR0=D},{mode:1});var YVh;var RZE;var Z70;var aL=function(){return _.N.apply(this,arguments)||this};
_.n(aL,_.N);aL.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.YF.Object.defineProperties(aL.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aL.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],aL.prototype,"formattedAmount",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],aL.prototype,"ariaLabel",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],aL.prototype,"vcBalanceWidgetStyle",null);_.q([_.Lr({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],aL);
_.L(aL,"yt-vc-balance-renderer",function(){if(Z70===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;RZE===void 0&&(RZE=document.createElement("template"));var Z=RZE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Z70=D}D=Z70;return D},{mode:2});_.UD("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var M2=function(){return _.N.apply(this,arguments)||this};
_.n(M2,_.N);_.YF.Object.defineProperties(M2.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:""}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],M2.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],M2.prototype,"data",void 0);_.q([_.y({selectorArgs:["data.vcBalanceEntityKey"],selector:function(D,Y){return _.jC(D.entities,"vcBalanceEntity",Y)}}),
_.x("design:type",Object)],M2.prototype,"vcBalanceEntity",void 0);_.q([_.b("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],M2.prototype,"formattedAmount",null);_.q([_.b("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],M2.prototype,"vcBalanceAriaLabel",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],M2);
_.L(M2,"ytd-vc-balance-renderer",function(){if(YVh!==void 0)return YVh;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return YVh=D},{mode:1});var tou;var CP=function(){var D=_.N.apply(this,arguments)||this;D.rotation=0;D.isReloading=!1;return D};
_.n(CP,_.N);CP.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
CP.prototype.reset=function(){this.hostElement.style.opacity=""};
CP.prototype.close=function(){var D=this;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(D.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.hostElement.style.opacity="0";_.V9(Y)})};
CP.prototype.rotationChanged=CP.prototype.rotationChanged;_.q([_.y(),_.x("design:type",Object)],CP.prototype,"rotation",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],CP.prototype,"isReloading",void 0);_.q([_.fr("#icon"),_.x("design:type",HTMLElement)],CP.prototype,"icon",void 0);_.q([_.Gm("rotation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CP.prototype,"rotationChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-refresh"})],CP);
_.L(CP,"ytd-refresh",function(){if(tou!==void 0)return tou;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return tou=D},{mode:1});var sBk;var W0=function(){return _.N.apply(this,arguments)||this};
_.n(W0,_.N);W0.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"}}}};
W0.prototype.dataChanged=function(){if(this.data){var D=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var Y=_.MW(this.data.banner.thumbnails,this.hostElement.clientWidth);Y&&(Y.indexOf("//")===0&&(Y="https:"+Y),this.hasBannerArt=!0,_.SN(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+Y+")"}))}this.hasBannerArt!==D&&_.aU(this.hostElement).querySelector("#header").fire("iron-resize")}};
W0.prototype.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
W0.prototype.dataChanged=W0.prototype.dataChanged;_.q([_.v(vJ9),_.x("design:type",Object)],W0.prototype,"ytdTabbedHeaderBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.PH),_.x("design:type",Object)],W0.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],W0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],W0.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],W0.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],W0.prototype,"selected",void 0);_.q([_.y(),_.x("design:type",Boolean)],W0.prototype,"active",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],W0.prototype,"hasBannerArt",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],W0.prototype,"dataChanged",null);_.q([_.h({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],W0);
_.L(W0,"ytd-interactive-tabbed-header-renderer",function(){if(sBk!==void 0)return sBk;var D=document.createElement("template");_.w(D,'\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 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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return sBk=D},{mode:1});var XTK;var zd=function(){return _.N.apply(this,arguments)||this};
_.n(zd,_.N);zd.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zd.prototype.computeActionsAlignment=function(D){return(D==null?void 0:D.actionsAlignment)||""};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],zd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],zd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.x("design:type",String)],zd.prototype,"actionsAlignment",void 0);_.q([_.h({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],zd);
_.L(zd,"ytd-page-footer-renderer",function(){if(XTK!==void 0)return XTK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return XTK=D},{mode:1});var ukE;var aZk;var SM=function(){var D=_.N.apply(this,arguments)||this;D.isEditing=!1;D.useSlot=!1;D.isMultiline=!1;return D};
_.n(SM,_.N);_.u=SM.prototype;_.u.onKeydown=function(D){if(D.keyCode===13&&!this.isMultiline)this.onSave();else if(D.keyCode===27)this.onCancel()};
_.u.computeComponentStyle=function(D){return(D==null?0:D.style)?D.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.u.computeisMultiline=function(D){if(this.multilineOverride!==void 0)return this.multilineOverride;var Y,R;return!!(D==null?0:(Y=D.formField)==null?0:(R=Y.textInputFormFieldRenderer)==null?0:R.isMultiline)};
_.u.computeTextDisplayed=function(D,Y){if(D)return D;if(Y)return Y};
_.u.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.u.onSave=function(){if(this.textForm.validate()){this.textForm.save();var D=this.textForm.value;if(D)this.set("data.textDisplayed",_.i0(D));else{var Y;((Y=this.data)==null?0:Y.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.dH("inline-form-changed",this.data));this.isEditing=!1}};
_.u.onCancel=function(){var D=_.OM(this.data.textDisplayed);D===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(D);this.isEditing=!1};
SM.prototype.onKeydown=SM.prototype.onKeydown;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],SM.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],SM.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],SM.prototype,"isEditing",void 0);_.q([_.y(),_.x("design:type",Object)],SM.prototype,"useSlot",void 0);_.q([_.y(),_.x("design:type",Boolean)],SM.prototype,"multilineOverride",void 0);_.q([_.y(),_.x("design:type",Boolean)],SM.prototype,"enableOverlayTheme",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.x("design:type",String)],SM.prototype,"componentStyle",void 0);
_.q([_.y({computed:"computeisMultiline(data)"}),_.x("design:type",Object)],SM.prototype,"isMultiline",void 0);_.q([_.fr("#text-form"),_.x("design:type",Object)],SM.prototype,"textForm",void 0);_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],SM.prototype,"onKeydown",null);_.q([_.h({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],SM);
_.L(SM,"ytd-inline-form-renderer",function(){if(aZk!==void 0)return aZk;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return aZk=D},{mode:1});var MoK;var Td=function(){var D=_.N.apply(this,arguments)||this;D.previousSelectValue=void 0;D.selectedItemMessage=void 0;return D};
_.n(Td,_.N);Td.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Td.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var D,Y,R,Z,t=(D=this.data)==null?void 0:(Y=D.dropdown)==null?void 0:(R=Y.dropdownRenderer)==null?void 0:(Z=R.entries)==null?void 0:Z.map(function(W){return W.privacyDropdownItemRenderer});
D=_.a(t!=null?t:[]);for(Y=D.next();!Y.done;Y=D.next())if((Y=Y.value)&&Y.int32Value===this.selectedValue){this.selectedItemMessage=Y.itemMessage;break}}else this.selectedItemMessage=void 0;var X;(X=this.onValueChanged)==null||X.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var M;(M=this.data)!=null&&M.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Td.prototype.onValueChangedForSelectedValue=function(D){this.selectedValue=D.detail.value};
Td.prototype.selectedValueChanged=Td.prototype.selectedValueChanged;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],Td.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Td.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Td.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],Td.prototype,"theme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Number)],Td.prototype,"selectedValue",void 0);_.q([_.y(),_.x("design:type",Function)],Td.prototype,"onValueChanged",void 0);
_.q([_.rd("selectedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Td.prototype,"selectedValueChanged",null);_.q([_.h({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Td);
_.L(Td,"ytd-dropdown-form-field-renderer",function(){if(MoK!==void 0)return MoK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return MoK=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var CW9;var jM=function(){return _.N.apply(this,arguments)||this};
_.n(jM,_.N);_.YF.Object.defineProperties(jM.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var D=[],Y=_.a(this.data||[]),R=Y.next();!R.done;R=Y.next())(R=_.A(R.value,wYu))&&D.push(R);return D}}});
_.q([_.y(),_.x("design:type",Array)],jM.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],jM.prototype,"byline",null);_.q([_.h({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],jM);
_.L(jM,"ytd-playlist-byline-renderer",function(){if(CW9!==void 0)return CW9;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return CW9=D},{mode:1});var WHh;var IL=function(){var D=_.N.apply(this,arguments)||this;D.rtlBullet=_.f("web_playlist_stats_rtl_bullet_icon_killswitch");D.modern=_.f("web_modern_buttons");D.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return D};
_.n(IL,_.N);_.u=IL.prototype;_.u.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"}}}}};
_.u.attached=function(){};
_.u.computeIsCustomThumbnail=function(D){return D?!!D.playlistCustomThumbnailRenderer:!1};
_.u.onYtNavigate=function(D,Y){if(Y&&Y.actions&&Y.actions.indexOf("shuffle")>-1){D=_.DH().resolve(_.xW);var R=Y.tempData||{};R.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);Y.tempData=R;D.isShuffleNextPlaylist=!0}};
_.u.onUpdatePlaylistAction=function(D){var Y;D=(Y=_.A(D,_.yl1))==null?void 0:Y.updatedRenderer;if(Y=_.A(D,Lz))this.data=Y};
_.u.computeStyleType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeThumbnailWidth=function(D){return D==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.u.computeHideThumbnailAria=function(D){if(D==null?0:D.thumbnailOverlays)for(var Y=0;Y<D.thumbnailOverlays.length;Y++){var R=void 0;if((R=D.thumbnailOverlays[Y])==null?0:R.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
IL.prototype.onYtNavigate=IL.prototype.onYtNavigate;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],IL.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],IL.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],IL.prototype,"rtlBullet",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.x("design:type",String)],IL.prototype,"styleType",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],IL.prototype,"thumbnailWidth",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],IL.prototype,"modern",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.x("design:type",Boolean)],IL.prototype,"isCustomThumbnail",void 0);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],IL.prototype,"onYtNavigate",null);_.q([_.h({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],IL);
_.L(IL,"ytd-playlist-sidebar-primary-info-renderer",function(){if(WHh!==void 0)return WHh;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return WHh=D},{mode:1});var zZI;var Fr=function(){return _.N.apply(this,arguments)||this};
_.n(Fr,_.N);Fr.prototype.computeOwnerVisibility=function(D){return!(!D.videoOwner&&!D.button)};
Fr.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fr.prototype,"data",void 0);_.q([_.h({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Fr);
_.L(Fr,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(zZI!==void 0)return zZI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return zZI=D},{mode:1});var SVp;var Gd=function(){var D=_.N.apply(this,arguments)||this;D.expanded=!1;D.isCompact=!1;return D};
_.n(Gd,_.N);_.u=Gd.prototype;_.u.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.u.dataChanged=function(){this.data&&_.iT(_.aU(this.text),_.zY1(_.jz4,_.OM(this.data.text||null)))};
_.u.computeAutoScrollEnabled=function(D,Y){return D&&!Y};
_.u.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.u.toggleOnTap=function(){this.expanded=!this.expanded};
Gd.prototype.expandedChanged=Gd.prototype.expandedChanged;Gd.prototype.dataChanged=Gd.prototype.dataChanged;_.q([_.v(_.MMb),_.x("design:type",Object)],Gd.prototype,"ytdAutoScrollBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gd.prototype,"expanded",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Gd.prototype,"isCompact",void 0);_.q([_.y({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.x("design:type",Boolean)],Gd.prototype,"autoScrollEnabled",void 0);_.q([_.fr("#text"),_.x("design:type",Object)],Gd.prototype,"text",void 0);_.q([_.fr("#expander-icon"),_.x("design:type",Object)],Gd.prototype,"expanderIcon",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gd.prototype,"dataChanged",null);_.q([_.Gm("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gd.prototype,"expandedChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Gd);
_.L(Gd,"ytd-channel-legal-info-renderer",function(){if(SVp!==void 0)return SVp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return SVp=D},{mode:1});var TAp;var jB9=_.fX("DOWNLOAD",{},"Download"),IZT=_.fX("DOWNLOADING",{},"Downloading"),FHz=_.fX("DOWNLOADED",{},"Downloaded"),Vd=function(){var D=_.N.apply(this,arguments)||this;D.downloadProgress=0;D.isDownloadComplete=!1;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.n(Vd,_.N);_.u=Vd.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.dataChanged=function(){var D;(D=this.data)!=null&&D.tooltip||(D=_.qw(_.Dl().getState(),this.playlistId),this.updateButtonState(D))};
_.u.computePlaylistId=function(D){return D};
_.u.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.u.updateButtonState=function(D){if(this.data&&(this.data.tooltip!==IZT||!_.rL(D))){this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=jB9;var Y="OFFLINE_DOWNLOAD";var R="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":D=FHz;Y="OFFLINE_PIN";R="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":D=IZT;Y="OFFLINE_DOWNLOADING_ZERO";R="ACTION_REMOVE_WITH_PROMPT";
break;default:D=jB9,Y="OFFLINE_DOWNLOAD",R="ACTION_ADD"}var Z=Object.assign({},this.data);Z.tooltip=D;Z.accessibilityData={accessibilityData:{label:D}};Z.icon={iconType:Y};Z.size="SIZE_DEFAULT";_.A(Z.command,_.eG)&&(_.A(Z.command,_.eG).action=R);this.set("data",Z)}};
_.u.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?D="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var Y;D!==((Y=this.data.icon)==null?void 0:Y.iconType)&&(Y=Object.assign({},this.data),Y.tooltip=IZT,Y.accessibilityData={accessibilityData:{label:IZT}},Y.icon={iconType:D},_.A(Y.command,_.eG)&&(_.A(Y.command,_.eG).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Y))}};
Vd.prototype.updateProgress=Vd.prototype.updateProgress;Vd.prototype.onTransferStateChanged=Vd.prototype.onTransferStateChanged;Vd.prototype.dataChanged=Vd.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Vd.prototype,"ytdReduxBehavior",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Vd.prototype,"forceIconButton",void 0);
_.q([_.y({value:!0}),_.x("design:type",Boolean)],Vd.prototype,"forceIconOnly",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Vd.prototype,"overrides",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Vd.prototype,"buttonTooltipPosition",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Vd.prototype,"styleActionButton",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Vd.prototype,"disableTextTransform",void 0);
_.q([_.y({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.x("design:type",String)],Vd.prototype,"playlistId",void 0);_.q([_.y(),_.x("design:type",Object)],Vd.prototype,"data",void 0);_.q([_.y({selector:_.cGj,selectorArgs:["playlistId"]}),_.x("design:type",Object)],Vd.prototype,"downloadProgress",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Vd.prototype,"isDownloadComplete",void 0);
_.q([_.y({selector:_.qw,selectorArgs:["playlistId"]}),_.x("design:type",String)],Vd.prototype,"transferState",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],Vd.prototype,"showTooltips",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],Vd.prototype,"sendCommandWhenDisabled",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Vd.prototype,"disabled",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vd.prototype,"dataChanged",null);_.q([_.rd("transferState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vd.prototype,"onTransferStateChanged",null);_.q([_.rd("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vd.prototype,"updateProgress",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Vd);
_.L(Vd,"ytd-download-playlist-button-renderer",function(){if(TAp!==void 0)return TAp;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return TAp=D},{mode:1});var Guu;_.at(_.BjD,"thumbnail-overlay-button-view-model",{props:{data:_.cs,lockupExperiments:_.cs}});var fP=function(){var D=_.N.apply(this,arguments)||this;D.isSquare=!1;D.isVertical=!1;return D};
_.n(fP,_.N);fP.prototype.computeIsSquare=function(D){return D!=null&&D.thumbnail?Dhk(D.thumbnail)==="SQUARE":!1};
fP.prototype.computeIsVertical=function(D){return D!=null&&D.thumbnail?Dhk(D.thumbnail)==="VERTICAL":!1};
fP.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.x("design:type",Object)],fP.prototype,"isSquare",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.x("design:type",Object)],fP.prototype,"isVertical",void 0);
_.q([_.y(),_.x("design:type",Object)],fP.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],fP);
_.L(fP,"ytd-hero-playlist-thumbnail-renderer",function(){if(Guu!==void 0)return Guu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Guu=D},{mode:1});var eM=function(){var D=_.N.apply(this,arguments)||this;D.isDarkTheme=!1;D.isUltraWide=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return D};
_.n(eM,_.N);_.u=eM.prototype;_.u.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.DH();var D;(D=_.DH().resolve(_.cD(_.aS)))!=null&&(D.headerElement=this.hostElement)};
_.u.detached=function(){var D;(D=_.DH().resolve(_.cD(_.aS)))!=null&&(D.headerElement=void 0)};
_.u.onUpdateHeader=function(D){(D=D.detail)&&this.set("data",D)};
_.u.computeTextDisplayed=function(D){if(D)return D.textDisplayed?D.textDisplayed:D.placeholder};
_.u.gradientColorToLinearGradientStop=function(D){var Y=this.isDarkTheme?D.darkThemeColor:D.lightThemeColor;return Y?_.xI(Y)+" "+((D==null?void 0:D.startLocation)||0)*100+"%":"transparent"};
_.u.onWindowResize=function(){var D;((D=this.data)==null?0:D.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.u.onIronResize=function(D){this.isUltraWide=!D.detail.value};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.onUpdatePlaylistName=function(D){var Y=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},D.detail.value));_.cy(this,function(){var R;(R=Y.editableTitle)==null||R.resize()})};
_.u.onUpdatePlaylistDescription=function(D){var Y=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},D.detail.value));_.cy(this,function(){var R;(R=Y.editableDescriptionInlineExpander)==null||R.resize()})};
_.u.getCinematicData=function(D){return _.A(D==null?void 0:D.cinematicContainer,_.lw)};
_.YF.Object.defineProperties(eM.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 D,Y=(D=this.getCinematicData(this.data))==null?void 0:D.config;return(D=this.isDarkTheme?Y==null?void 0:Y.darkThemeBackgroundColor:Y==null?void 0:Y.lightThemeBackgroundColor)?"background-color:"+_.HG(D)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var D;return _.A((D=this.data)==null?void 0:D.descriptionForm,Ghk)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var D=this,Y,R,Z;return"background:linear-gradient(to bottom, "+(((Z=(Y=this.getCinematicData(this.data))==null?void 0:(R=Y.gradientColorConfig)==null?void 0:R.map(function(t){return D.gradientColorToLinearGradientStop(t)}))==null?void 0:Z.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var D;return _.OM((D=this.data)==null?void 0:D.descriptionTapText)}}});
eM.prototype.onUpdateHeader=eM.prototype.onUpdateHeader;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],eM.prototype,"actionHandlerBehavior",void 0);_.q([_.fr("#description-inline-expander"),_.x("design:type",Object)],eM.prototype,"descriptionInlineExpander",void 0);
_.q([_.fr("#editable-description-inline-expander"),_.x("design:type",Object)],eM.prototype,"editableDescriptionInlineExpander",void 0);_.q([_.y(),_.x("design:type",Object)],eM.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],eM.prototype,"isUltraWide",void 0);_.q([_.fr("#editable-title-display"),_.x("design:type",Object)],eM.prototype,"editableTitle",void 0);_.q([_.b("isUltraWide"),_.x("design:type",Object),_.x("design:paramtypes",[])],eM.prototype,"maxDescriptionLines",null);
_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eM.prototype,"noCinematicData",null);_.q([_.Fv("yt-new-playlist-header"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eM.prototype,"onUpdateHeader",null);_.q([_.b("data","isDarkTheme"),_.x("design:type",Object),_.x("design:paramtypes",[])],eM.prototype,"backgroundStyle",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eM.prototype,"descriptionFormData",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eM.prototype,"getDropdownTheme",null);_.q([_.b("data","isDarkTheme"),_.x("design:type",String),_.x("design:paramtypes",[])],eM.prototype,"gradientStyle",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eM.prototype,"descriptionTapText",null);
_.q([_.h({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],eM);
_.L(eM,"ytd-playlist-header-renderer",function(){if(ukE!==void 0)return ukE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ukE=D},{mode:_.zD("kevlar_poly_si_batch_j078")?1:2});var Voh;var fZT;var AL=function(){return _.N.apply(this,arguments)||this};
_.n(AL,_.N);AL.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],AL.prototype,"data",void 0);_.q([_.h({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],AL);
_.L(AL,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(fZT!==void 0)return fZT;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return fZT=D},{mode:1});var nP=function(){return _.N.apply(this,arguments)||this};
_.n(nP,_.N);
nP.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}}}}};
nP.prototype.computeUsePremiumShowStyle=function(D){if(!D||!D.items)return!1;for(var Y=0;Y<D.items.length;Y++)if(_.A(D.items[Y],Lz)){var R=void 0;return((R=_.A(D.items[Y],Lz))==null?void 0:R.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nP.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.x("design:type",Boolean)],nP.prototype,"usePremiumShowStyle",void 0);
_.q([_.h({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],nP);
_.L(nP,"ytd-playlist-sidebar-renderer",function(){if(Voh!==void 0)return Voh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Voh=D},{mode:1});var eZt;var AMk;var nit=function(D,Y,R,Z,t,X,M,W){this.minWidth=D;this.minHeight=Y;this.recommendedWidth=R;this.recommendedHeight=Z;this.JSC$22005_maxFileSize=t;this.title=X;this.bannerGalleryTitle=M;this.channelId=W;this.picker_=null;D=_.$fS("yt-banner");Y=D.addView;R=(new aP9("youtubebanner")).addUploadMetadata("silo_id","19");R.opts.ytMaxFileSize=this.JSC$22005_maxFileSize;Z=this.recommendedHeight;R.opts.ytRecWidth=this.recommendedWidth;R.opts.ytRecHeight=Z;Y.call(D,R);D.addView(new _.$O);Y=D.addView;R=new _.$O;
R.opts.type="ytbanner";Y.call(D,R.JSC$10042_setLabel(this.bannerGalleryTitle));Y=D.setTitle(this.title).setSize(1E3);Y.urlParamMap_.set("thumbs","orig");R=this.minWidth;Z=this.minHeight;if(isNaN(R)||isNaN(Z))throw Error("gb`"+R+"`"+Z);Y.urlParamMap_.set("minSize",R+"x"+Z);Y.urlParamMap_.set("cropMode","ytcb");this.builder_=D};
nit.prototype.open=function(){var D=this;return new _.zz(function(Y,R){_.YKV(D.builder_,function(Z){Z.action=="picked"?Y(Z):Z.action=="cancel"&&R(Error("qo"))});
D.picker_&&D.picker_.dispose();D.picker_=D.builder_.build();D.picker_.setVisible(!0)})};
nit.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var rMp=function(D){this.channelId=D};
rMp.prototype.upload=function(D){var Y="";D.viewToken&&(Y=D.viewToken[2].type);var R=D.docs[0];D=R.crop;Y={channel_id:this.channelId,fife_url:R.thumbnails[0].url,photo_id:R.id,is_gallery_image:Y=="ytbanner"};D&&(Y.crop_top=D.top,Y.crop_right=D.right,Y.crop_bottom=D.bottom,Y.crop_left=D.left);return _.Xtb("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:Y})};var r_=function(){var D=_.N.apply(this,arguments)||this;D.ariaLabel=null;return D};
_.n(r_,_.N);_.u=r_.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.detached=function(){this.picker&&this.picker.dispose()};
_.u.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.u.computeAriaLabel=function(D){return D};
_.u.onTap=function(){var D=this,Y;if((Y=this.data)==null||!Y.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new nit(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 R;(R=this.picker)==null||R.open().then(function(Z){D.handleBannerPicked(Z)},function(){})}};
_.u.handleBannerPicked=function(D){var Y=this;this.uploader||(this.uploader=new rMp(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(D).then(function(R){Y.handleBannerUploadSucceeded(R)},function(R){Y.handleBannerUploadFailed(R)})};
_.u.handleBannerUploadSucceeded=function(D){D&&D.errors?this.handleBannerUploadFailed(D):(_.MX(this.hostElement,"yt-banner-updated",D),this.message=null)};
_.u.handleBannerUploadFailed=function(D){this.message=D&&D.errors&&D.errors.length?D.errors[0]:null};
r_.prototype.dataChanged=r_.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],r_.prototype,"componentBehavior",void 0);_.q([_.v(_.kl),_.x("design:type",Object)],r_.prototype,"ironButtonState",void 0);_.q([_.y(),_.x("design:type",Object)],r_.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.x("design:type",Object)],r_.prototype,"ariaLabel",void 0);
_.q([_.y(),_.x("design:type",Object)],r_.prototype,"message",void 0);_.q([_.y(),_.x("design:type",Object)],r_.prototype,"picker",void 0);_.q([_.y(),_.x("design:type",Object)],r_.prototype,"uploader",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r_.prototype,"dataChanged",null);_.q([_.h({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],r_);
_.L(r_,"ytd-channel-banner-editor-renderer",function(){if(AMk!==void 0)return AMk;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return AMk=D},{mode:1});var wTk;var $nT=_.gY(["#"]),w_=function(){return _.N.apply(this,arguments)||this};
_.n(w_,_.N);w_.prototype.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D,!0)||_.O$$($nT)};
w_.prototype.dataChanged=function(){var D=this.data;D&&D.targetId&&_.CvU(_.bB(),D.targetId,this.moreIcon)};
w_.prototype.dataChanged=w_.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],w_.prototype,"data",void 0);_.q([_.fr("#more-icon"),_.x("design:type",Object)],w_.prototype,"moreIcon",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w_.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],w_);
_.L(w_,"ytd-channel-tagline-renderer",function(){if(wTk!==void 0)return wTk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return wTk=D},{mode:1});var vib;var $e=function(){return _.N.apply(this,arguments)||this};
_.n($e,_.N);_.u=$e.prototype;_.u.ready=function(){var D=this;_.aU(this.hostElement).querySelector("#form").addEventListener("submit",function(Y){D.onSubmit(Y)})};
_.u.onDataChanged=function(){var D;((D=this.data)==null?0:D.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.u.onIconButtonKeydown=function(D){D.keyCode===13&&this.iconButton.click()};
_.u.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.u.openOnClickHandler=function(){this.input.focus()};
_.u.onSubmit=function(D){D.preventDefault();return!1};
_.u.submitOnEnterKeyUp=function(D){var Y;if(D.keyCode===13&&((Y=this.data)==null?0:Y.expandedText)){D=this.data.endpoint;Y=_.y7.unsafeClone(D);var R;((R=_.A(Y==null?void 0:Y.commandMetadata,_.GA))==null?0:R.url)?(_.A(Y.commandMetadata,_.GA).url=_.LI(_.A(Y.commandMetadata,_.GA).url,"query",this.data.expandedText),_.A(Y,_.A6)&&(_.A(Y,_.A6).query=this.data.expandedText),_.MX(this.hostElement,"yt-navigate",{endpoint:Y,tempData:{disableCache:!0}})):(R=new _.AT("Error: Trying to navigate to an endpoint without url",
D),_.Nb(R))}};
_.u.updateDataExpandedTextFromBinding=function(D){this.set("data.expandedText",D.detail.value)};
_.YF.Object.defineProperties($e.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
$e.prototype.onDataChanged=$e.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.epu),_.x("design:type",Object)],$e.prototype,"ytdExpandableInputBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$e.prototype,"data",void 0);_.q([_.fr("#input"),_.x("design:type",Object)],$e.prototype,"input",void 0);_.q([_.fr("#icon-button"),_.x("design:type",HTMLElement)],$e.prototype,"iconButton",void 0);
_.q([_.y(),_.x("design:type",String),_.x("design:paramtypes",[])],$e.prototype,"searchIcon",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$e.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],$e);
var YOk=_.WL()($e,"ytd-expandable-tab-renderer",function(){if(vib===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);vib=D}D=vib;return D},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var oik;var v0=function(){var D=_.N.apply(this,arguments)||this;D.avatarSize=80;D.ariaLabel=_.fX("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return D};
_.n(v0,_.N);v0.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
v0.prototype.computeHref=function(D){var Y;return((Y=_.A(D,_.Qj))==null?0:Y.url)?this.componentBehavior.computeHref_(D):null};
v0.prototype.onTap=function(){var D,Y;(D=this.data)==null||!D.editAvatarServiceEndpoint||((Y=_.A(this.data.editAvatarServiceEndpoint,_.Qj))==null?0:Y.url)||_.DH().resolve(_.Yw).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.q([_.v(_.kl),_.x("design:type",Object)],v0.prototype,"ironButtonState",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],v0.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],v0.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],v0.prototype,"avatarSize",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],v0.prototype,"ariaLabel",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],v0);
_.L(v0,"ytd-channel-avatar-editor",function(){if(oik!==void 0)return oik;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return oik=D},{mode:1});var b7k=_.RT(function(D){var Y=D.data;var R=D.noPadding;var Z=D.enableBanner;var t=D.cinematicContainerTopbarOffset;var X=D.allowCinematicContainerOverflow;var M=D.displayAsSidebar;D=D.className;_.r2(function(){Y().tagManagerId&&(_.J$(Y().tagManagerId,_.JQ("GL")),uzk(Y().tagManagerId))},"xVTVTe");
var W=_.Ax(ZRk,function(){return Y().pageHeaderEntityKey});
return _.S("yt-page-header-renderer",{class:_.e7("page-header-renderer-wiz",D)},_.S(_.vK,{data:function(){var z;return((z=W())==null?0:z.header)?W().header:(M==null?0:M())&&Y().sidebarContent?Y().sidebarContent:Y().content}},{pageHeaderViewModel:function(z){return _.S(_.TFz,{data:z.data,
noPadding:R,enableBanner:Z,cinematicContainerTopbarOffset:t,allowCinematicContainerOverflow:X,displayAsSidebar:function(){return(M==null?void 0:M())&&Y().enableSidebarView}})}}))},"Gj");
b7k.idomCompat=!0;_.at(b7k,"yt-page-header-renderer",{props:{data:_.cs,noPadding:_.cs,enableBanner:_.cs,cinematicContainerTopbarOffset:_.cs,allowCinematicContainerOverflow:_.cs,displayAsSidebar:_.cs,className:_.cs}});_.at(_.xj,"yt-image-banner-view-model",{props:{data:_.cs,isPositionRelative:_.cs}});_.at(_.JdE,"yt-tab-group-shape",{props:{shape:_.cs}});var oL=function(){var D=_.N.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(Y){return RC0(Y,function(){return void D.onSearchNavigate()})};
D.isRichGrid=!1;D.isConstrainedList=!1;D.richGridMiniMode=!1;D.richGridStyle="RICH_GRID_STYLE_UNKNOWN";D.isRichGridShorts=!1;D.responsiveSizing="COMPACT";D.disableGridStateAware=!1;D.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return D};
_.n(oL,_.N);_.u=oL.prototype;_.u.computeHeaderDisabled=function(D,Y){return Y||!D||this.tabsHidden};
_.u.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.u.computeIsRichGridShorts=function(D){return D==="RICH_GRID_STYLE_SHORTS_GRID"||D==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.u.computeImageBannerViewModel=function(){var D,Y;return _.A((Y=_.A((D=this.data)==null?void 0:D.content,_.lkE))==null?void 0:Y.banner,_.e4L)};
_.u.computeHasCinematicContainer=function(){var D,Y;return!((Y=_.A((D=this.data)==null?void 0:D.content,_.lkE))==null||!Y.background)};
_.u.handleHeaderResize=function(){var D=_.aU(this.hostElement).querySelector("#header");D&&_.MX(D,"iron-resize")};
_.u.handleInsertTabCommand=function(D){var Y=_.A(D,$hE);Y&&(Y.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(R){return R.tabRenderer&&R.tabRenderer.tabIdentifier===Y.tabIdentifier})||this.splice("tabs",Y.tabIndex||-1,0,Y.tab))};
_.u.handleRefreshChannelTabAction=function(D){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===D&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.u.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.SN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.u.observerRichGridSlimItemsPerRow=function(){_.SN(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.u.updateCssVars=function(){this.richGridItemsPerRow&&_.SN(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ZH("rich_grid_max_item_width",500))+16)-16+"px"})};
_.u.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.SN(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.u.onDataChanged=function(){this.handleHeaderResize()};
_.u.onWindowResize=function(){this.handleHeaderResize()};
_.u.onFocusedChanged=function(D){(D=_.cG(D))&&D.is==="tp-yt-paper-tab"&&D.hasRipple()&&(D.getRipple().holdDown=!D.pointerDown&&D.focused)};
_.u.updateSelectedFromBinding=function(D){this.ytdTabbedHeaderBehavior.selected=D.detail.value};
_.u.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.YF.Object.defineProperties(oL.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:swk(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.imageBannerViewModel)==null?void 0:D.style)==="IMAGE_BANNER_STYLE_INSET"}}});
oL.prototype.onDataChanged=oL.prototype.onDataChanged;oL.prototype.updateCssVarsForResponsiveGrid=oL.prototype.updateCssVarsForResponsiveGrid;oL.prototype.updateCssVars=oL.prototype.updateCssVars;oL.prototype.observerRichGridSlimItemsPerRow=oL.prototype.observerRichGridSlimItemsPerRow;oL.prototype.observerRichGridItemsPerRow=oL.prototype.observerRichGridItemsPerRow;_.q([_.v(_.PH),_.x("design:type",Object)],oL.prototype,"ytdGridStateAwareBehavior",void 0);
_.q([_.v(vJ9),_.x("design:type",Object)],oL.prototype,"ytdTabbedHeaderBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],oL.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],oL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],oL.prototype,"ytdReduxBehavior",void 0);_.q([_.fr("#tabs"),_.x("design:type",Object)],oL.prototype,"tabsElement",void 0);_.q([_.y(),_.x("design:type",Array)],oL.prototype,"tabs",void 0);_.q([_.y(),_.x("design:type",Object)],oL.prototype,"expandableCustomTabRenderable",void 0);_.q([_.b("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],oL.prototype,"tabGroupShape",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oL.prototype,"isRichGrid",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oL.prototype,"isConstrainedList",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Object)],oL.prototype,"richGridMiniMode",void 0);_.q([_.y({selector:function(D){return D.ui.richGridStyle}}),
_.x("design:type",Object)],oL.prototype,"richGridStyle",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.x("design:type",Object)],oL.prototype,"isRichGridShorts",void 0);_.q([_.y({selector:_.UM}),_.x("design:type",Number)],oL.prototype,"richGridItemsPerRow",void 0);_.q([_.y({selector:function(D){return D.ui.richGridContainerWidth}}),
_.x("design:type",Number)],oL.prototype,"richGridContainerWidth",void 0);_.q([_.y({selector:_.LOb}),_.x("design:type",Number)],oL.prototype,"richGridSlimItemsPerRow",void 0);_.q([_.y(),_.x("design:type",Object)],oL.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oL.prototype,"responsiveSizing",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],oL.prototype,"disableGridStateAware",void 0);
_.q([_.y({computed:"computeImageBannerViewModel(data)"}),_.x("design:type",Object)],oL.prototype,"imageBannerViewModel",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.x("design:type",Boolean)],oL.prototype,"hasCinematicContainer",void 0);_.q([_.y({selector:_.uDk,reflectToAttribute:!0}),_.x("design:type",Boolean)],oL.prototype,"guideIsVisibleButNotPersistent",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],oL.prototype,"hasBanner",null);_.q([_.y({reflectToAttribute:!0}),_.b("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],oL.prototype,"hasInsetBanner",null);_.q([_.y({computed:"computeTabsHidden(tabs)",value:!0}),_.x("design:type",Boolean)],oL.prototype,"tabsHidden",void 0);
_.q([_.Gm("richGridItemsPerRow","isRichGrid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oL.prototype,"observerRichGridItemsPerRow",null);_.q([_.Gm("richGridSlimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oL.prototype,"observerRichGridSlimItemsPerRow",null);
_.q([_.Gm("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oL.prototype,"updateCssVars",null);_.q([_.Gm("richGridContainerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oL.prototype,"updateCssVarsForResponsiveGrid",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oL.prototype,"onDataChanged",null);
_.q([_.h({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],oL);
_.L(oL,"ytd-tabbed-page-header",function(){if(eZt!==void 0)return eZt;var D=document.createElement("template");_.w(D,'\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 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return eZt=D},{mode:1});var yMh;var bc=function(){return _.N.apply(this,arguments)||this};
_.n(bc,_.N);bc.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.SN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.YF.Object.defineProperties(bc.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var D,Y;return this.componentBehavior.computeIcon_(((Y=_.A((D=this.data)==null?void 0:D.badge,_.zXb))==null?void 0:Y.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.badge,_.zXb))==null?void 0:Y.label}}});
bc.prototype.observerRichGridItemsPerRow=bc.prototype.observerRichGridItemsPerRow;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],bc.prototype,"componentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],bc.prototype,"ytdReduxBehavior",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.kx}),_.x("design:type",Boolean)],bc.prototype,"richGridMiniMode",void 0);
_.q([_.y({selector:_.UM}),_.x("design:type",Number)],bc.prototype,"richGridItemsPerRow",void 0);_.q([_.y(),_.x("design:type",Object)],bc.prototype,"data",void 0);_.q([_.Gm("richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bc.prototype,"observerRichGridItemsPerRow",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bc.prototype,"badgeIconName",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bc.prototype,"badgeLabel",null);_.q([_.h({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],bc);
_.L(bc,"ytd-member-hub-profile-renderer",function(){if(yMh!==void 0)return yMh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return yMh=D},{mode:1});var NAK;var yd=function(){return _.N.apply(this,arguments)||this};
_.n(yd,_.N);yd.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yd.prototype,"data",void 0);_.q([_.h({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],yd);
_.L(yd,"ytd-settings-sidebar-renderer",function(){if(NAK!==void 0)return NAK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return NAK=D},{mode:1});var lZ9;var N2=function(){var D=_.N.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(Y){return RC0(Y,function(){return void D.onSearchNavigate()})};
return D};
_.n(N2,_.N);N2.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
N2.prototype.onSearchNavigate=function(){this.selected=void 0};
N2.prototype.onTabsChange=function(){var D,Y=(D=this.tabs)==null?void 0:D.findIndex(function(R){var Z;return R==null?void 0:(Z=R.tabRenderer)==null?void 0:Z.selected});
Y!==void 0&&(this.selected=Y)};
N2.prototype.onTabsActive=function(D){if(this.tabs!==void 0){var Y,R;(D=(Y=this.tabs[D.detail.selected])==null?void 0:(R=Y.tabRenderer)==null?void 0:R.endpoint)&&_.MX(this.hostElement,"yt-navigate",{endpoint:D})}};
_.YF.Object.defineProperties(N2.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:swk(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
N2.prototype.onTabsChange=N2.prototype.onTabsChange;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.PH),_.x("design:type",Object)],N2.prototype,"ytdGridStateAwareBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],N2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],N2.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Array)],N2.prototype,"tabs",void 0);_.q([_.y(),_.x("design:type",Number)],N2.prototype,"selected",void 0);_.q([_.b("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],N2.prototype,"tabGroupShape",null);_.q([_.y(),_.x("design:type",Object)],N2.prototype,"expandableCustomTabRenderable",void 0);
_.q([_.b("tabs"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],N2.prototype,"tabsEnabled",null);_.q([_.rd("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N2.prototype,"onTabsChange",null);_.q([_.h({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],N2);
_.L(N2,"ytd-topic-channel-details-renderer",function(){if(lZ9!==void 0)return lZ9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return lZ9=D},{mode:1});var JMK;var lc=function(){var D=_.N.apply(this,arguments)||this;D.disableGridStateAware=!1;return D};
_.n(lc,_.N);lc.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]]"}}}}}};
lc.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
lc.prototype.updateCssVars=function(){_.SN(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ZH("rich_grid_max_item_width",500))+16)-16+"px"})};
lc.prototype.updateCssVars=lc.prototype.updateCssVars;lc.prototype.activeChanged=lc.prototype.activeChanged;_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],lc.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],lc.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lc.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Array)],lc.prototype,"tabs",void 0);_.q([_.y(),_.x("design:type",Boolean)],lc.prototype,"active",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lc.prototype,"disableGridStateAware",void 0);
_.q([_.y({selector:_.UM}),_.x("design:type",Number)],lc.prototype,"richGridItemsPerRow",void 0);_.q([_.y({selector:_.kx}),_.x("design:type",Boolean)],lc.prototype,"richGridMiniMode",void 0);_.q([_.fr("ytd-carousel-item-renderer"),_.x("design:type",Object)],lc.prototype,"carousel",void 0);_.q([_.Gm("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lc.prototype,"activeChanged",null);
_.q([_.Gm("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lc.prototype,"updateCssVars",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],lc);
_.L(lc,"ytd-carousel-header-renderer",function(){if(JMK!==void 0)return JMK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return JMK=D},{mode:1});var kuk;var UnE=_.gY(["https://www.google-analytics.com/analytics.js"]),JL=function(){var D=_.N.apply(this,arguments)||this;D.scriptAnalyticsAdded=!1;return D};
_.n(JL,_.N);JL.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var D,Y=(D=this.data)==null?void 0:D.tagManagerId;Y&&(_.J$(Y,_.JQ("GL")),uzk(Y))};
JL.prototype.sendGoogleAnalyticsPageview=function(D){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var R=_.UN.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(R)};
var Y=window.ga;Y("set","page",window.location.pathname);Y.l=+new Date;Y("set","forceSSL",!0);Y("create",D,"'auto'");Y("send","pageview")};
JL.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var D=_.I0("SCRIPT");D.name="ga-analytics";var Y=_.tZ(UnE);_.dg(D,Y);D.async=!0;_.aU(this.hostElement).appendChild(D)};
JL.prototype.dataChanged=JL.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],JL.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JL.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],JL);
_.L(JL,"ytd-channel-metadata-renderer",function(){if(kuk!==void 0)return kuk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return kuk=D},{mode:1});var KHh;var hZb;var ke=function(){var D=_.N.apply(this,arguments)||this;D.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"]);D.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"]);D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return D};
_.n(ke,_.N);_.u=ke.prototype;_.u.attached=function(){this.requestElementsPerRow()};
_.u.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_]]"}}}}}};
_.u.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.u.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.u.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.u.computeAlertStyle_=function(D){return D};
_.u.observerElementsPerRow=function(){this.elementsPerRow&&_.SN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.u.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.u.requestElementsPerRow=function(){_.MX(this.hostElement,"yt-request-elements-per-row")};
ke.prototype.onIsVisibleChanged_=ke.prototype.onIsVisibleChanged_;ke.prototype.observerElementsPerRow=ke.prototype.observerElementsPerRow;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ke.prototype,"actionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],ke.prototype,"data",void 0);_.q([_.y({value:6,reflectToAttribute:!0}),_.x("design:type",Number)],ke.prototype,"elementsPerRow",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ke.prototype,"wrapButtons",void 0);_.q([_.y({value:_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],ke.prototype,"isMusic",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.x("design:type",String)],ke.prototype,"alertStyle",void 0);_.q([_.y({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.x("design:type",Function)],ke.prototype,"dismissBoundButtonTap_",void 0);_.q([_.y({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.x("design:type",Function)],ke.prototype,"acceptBoundButtonTap_",void 0);_.q([_.Gm("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ke.prototype,"observerElementsPerRow",null);_.q([_.Gm("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ke.prototype,"onIsVisibleChanged_",null);_.q([_.Lr({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],ke);
_.L(ke,"yt-alert-with-actions-renderer",function(){if(hZb===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;KHh===void 0&&(KHh=document.createElement("template"));var Z=KHh;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);hZb=D}D=hZb;return D},{mode:2});_.at(_.RT(function(D){function Y(V){var e={};return _.S(_.y_,{text:V,className:_.e7("ytPersonalGreetingViewModelHeadline",(e.ytPersonalGreetingViewModelHeadlineSmall=function(){return W()===48},e))})}
function R(V,e){return _.S("span",{el:V,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},Y(e))}
var Z=_.tp(_.mp(function(){var V;return(V=D.data())==null?void 0:V.rendererContext},void 0,void 0,void 0,!0)),t=_.dI("span"),X=_.dI("span"),M=function(){return D.data().canvasPromoData},W=function(){var V;
return(V=D.data().bannerHeight)!=null?V:56},z=_.bx5(Z,{throttleMs:100}),I=_.bx5(t,{throttleMs:100}),F=_.bx5(X,{throttleMs:100}),G=function(){return I.width()-z.width()>1};
return _.S("yt-personal-greeting-view-model",{el:Z,"aria-hidden":G,class:_.e7(D.className,"ytPersonalGreetingViewModelHost"),style:_.Ap({height:(0,_.kj)(function(){return G()?0:W()})})},_.S(_.T,{cond:function(){return D.data().avatar&&!(F.width()+(D.data().avatar?48:0)-z.width()>1)},
then:function(){return _.S(_.vK,{data:function(){return D.data().avatar}},{decoratedAvatarViewModel:function(V){return _.S(_.kk,{data:V.data,
className:_.e7("ytPersonalGreetingViewModelAvatar")})}})}}),_.S("h1",null,Y(function(){var V;
return(M==null?void 0:(V=M())==null?void 0:V.headline)||(F.width()+(D.data().avatar?48:0)-z.width()>1?D.data().shorterGreeting:D.data().greeting)})),R(X,function(){return D.data().greeting}),R(t,function(){return D.data().shorterGreeting}))},"Hj"),"yt-personal-greeting-view-model",{props:{data:_.cs,
className:_.cs}});var U2=function(){var D=_.N.apply(this,arguments)||this;D.hidden=!1;D.isConstrainedList=!1;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.responsiveSizing="COMPACT";D.attachedPlayers=_.f("kevlar_channel_trailer_multi_attach")?[]:void 0;D.player=null;D.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return D};
_.n(U2,_.N);_.u=U2.prototype;
_.u.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}}}}};
_.u.created=function(){var D=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){D.disposeMastheadAd()}]};
_.u.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new y_b(this.refresh,this.contents))};
_.u.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.u.activeChanged=function(){var D=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=D)};
_.u.tabsChanged=function(){var D=this,Y,R;if(this.pageSubtype==="channels"||_.f("kevlar_tab_gestures_for_tabbed_header_data")&&((Y=this.data)==null?0:(R=Y.header)==null?0:R.carouselHeaderRenderer))this.tabGestures=new qR(this.contents,this.contents,this.hostElement,this.header,function(M){D.ytdReduxBehavior.dispatch(M)});
var Z,t,X;Y=(Z=this.data)==null?void 0:(t=Z.contents)==null?void 0:(X=t.twoColumnBrowseResultsRenderer)==null?void 0:X.tabs;this.tabGestures&&this.tabGestures.tabsChanged(Y)};
_.u.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.u.engagementPanelsChanged=function(){var D=_.DH().resolve(_.b6);if(D){if(this.engagementPanels)for(var Y=_.a(this.engagementPanels),R=Y.next();!R.done;R=Y.next()){var Z=void 0;(R=(Z=R.value.identifier)==null?void 0:Z.tag)&&D.panelMap.delete(R)}this.engagementPanels=[];var t;Y=_.a(((t=this.data)==null?void 0:t.panels)||[]);for(t=Y.next();!t.done;t=Y.next()){t=_.A(t.value,_.Y2h);var X=R=void 0,M=void 0,W=void 0;if(Z=((R=t)==null?void 0:R.targetId)||((X=t)==null?void 0:X.panelIdentifier)||((M=t)==
null?void 0:(W=M.identifier)==null?void 0:W.tag))X=R=void 0,(X=(R=D).registerPanelContent)==null||X.call(R,Z,{engagementPanelSectionListRenderer:t}),this.engagementPanels.push(t)}}};
_.u.onStampFinished=function(){var D=this;_.cy(this,function(){if(D.tabGestures){var Y=D.tabGestures;if(Y.scrollPositionNeedsUpdate){var R=_.DH().resolve(_.cD(_.Z4)),Z;if((Z=Y.selectedTab)!=null&&Z.title&&R&&(Z=R.getCurrentPage())){if(Y.scrollPositionForTabs.has(Y.selectedTab.title)){var t,X;R=(X=(t=R.getCurrentPage())==null?void 0:t.clientHeight)!=null?X:0;t=Y.scrollPositionForTabs.get(Y.selectedTab.title);Z.setScrollTop(t);R>t+100&&(Y.scrollPositionNeedsUpdate=!1)}else Z.setScrollTop(Math.min(Y.lastVisitedTabScrollPosition!==
void 0?Y.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,Y.tabsStartAtInPx)),Y.scrollPositionNeedsUpdate=!1;Y.ytdReduxDispatch(XYE(!1))}}}})};
_.u.loadPage_=function(D){this.initCsi();D&&(this.data=D);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.u.getTitle=function(D){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",D))return this.get("microformat.microformatDataRenderer.title",D);if(this.get("header.feedTabbedHeaderRenderer.title",D))return _.OM(this.get("header.feedTabbedHeaderRenderer.title",D));if(this.get("header.interactiveTabbedHeaderRenderer.title",D))return this.get("header.interactiveTabbedHeaderRenderer.title",D);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
D))return _.OM(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",D));var Y,R;return(D==null?0:(Y=D.header)==null?0:(R=Y.pageHeaderRenderer)==null?0:R.pageTitle)?D.header.pageHeaderRenderer.pageTitle:""};
_.u.updateTitle=function(D){_.MX(this.hostElement,"yt-update-title",this.getTitle(D))};
_.u.initCsi=function(){_.Uu(this.pageSubtype||"browse",["ol","cpt"])};
_.u.getPlayer=function(){if(_.f("kevlar_channel_trailer_multi_attach")){for(var D=_.a(this.attachedPlayers),Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.isConnected||_.hE(this.hostElement,Y))return Y;return null}return this.player};
_.u.getPlayerContainer=function(){return null};
_.u.onPlayerAttached=function(D,Y){_.f("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(Y):this.player=Y};
_.u.onPlayerDetached=function(D,Y){_.f("kevlar_channel_trailer_multi_attach")?(D=this.attachedPlayers.indexOf(Y),D<0||this.attachedPlayers.splice(D,1)):this.player=null};
_.u.getServiceTrackingParams=function(){var D,Y;return((D=this.data)==null?void 0:(Y=D.responseContext)==null?void 0:Y.serviceTrackingParams)||[]};
_.u.setMastheadAd=function(D){D&&D.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=D&&D.mastheadAd};
_.u.dataChanged=function(){var D=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Pcb();_.cy(this,function(){_.WC(D.hostElement,"ytd-update-grid-state-action")})};
_.u.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.u.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(Y){return!!Y.alertWithActionsRenderer})}};
_.u.computeGreetingData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(Y){return!!Y.personalGreetingViewModel})}};
_.u.computeHasMemberHubProfileRenderer=function(D){var Y;return!!(D==null?0:(Y=D.header)==null?0:Y.memberHubProfileRenderer)};
_.u.handleAlertCommand=function(D){this.get("alertCommand.alert.alertWithActionsRenderer",D)&&(D=_.A(D,IPK),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",D.alert))};
_.u.handleYtPlaylistDeletionRedirect=function(D){D=this.get("playlistDeletionRedirectCommand.redirectEndpoint",D);_.MX(this.hostElement,"yt-navigate",{endpoint:D})};
_.u.computeFluidWidth=function(D,Y,R){if(Y==="mini_app"||R)return!0;var Z,t,X;D=D==null?void 0:(Z=D.contents)==null?void 0:(t=Z.twoColumnBrowseResultsRenderer)==null?void 0:(X=t.tabs)==null?void 0:X.find(function(z){var I;return z==null?void 0:(I=z.tabRenderer)==null?void 0:I.selected});
if(!D)return!1;var M,W;return!!((M=D.tabRenderer)==null?0:(W=M.content)==null?0:W.richGridRenderer)&&!["channel","channels","playables"].includes(Y)};
_.u.computeHeaderFluidWidth=function(D){return D==="hashtag-landing-page"};
_.u.computeHasSidebar=function(D){var Y;return!!(D.sidebar||((Y=D.header)==null?0:Y.playlistHeaderRenderer))};
_.u.computeHasPageHeaderSidebar=function(D){var Y,R;return!!((Y=D.header)==null?0:(R=Y.pageHeaderRenderer)==null?0:R.enableSidebarView)};
_.u.computeUseUnifiedShowPageLayout=function(D){if(!D||this.pageSubtype!=="show"||!D.sidebar||!D.sidebar.playlistSidebarRenderer)return!1;D=D.sidebar.playlistSidebarRenderer;if(!D.items)return!1;for(var Y=0;Y<D.items.length;Y++)if(_.A(D.items[Y],Lz)){var R=void 0;return((R=_.A(D.items[Y],Lz))==null?void 0:R.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.u.computeIsConstrainedList=function(D){return _.f("web_enable_constrained_list_subscriptions_channels")&&D==="subscriptions-channels"};
_.u.computeResponsiveSizing=function(D){return D==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.YF.Object.defineProperties(U2.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y;return((D=this.data)==null?0:(Y=D.header)==null?0:Y.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(!((D=this.data)==null?0:(Y=D.sidebar)==null?0:Y.playlistSidebarRenderer))return!1;var R;return(R=this.data)!=null&&R.header?!1:!0}}});
_.YF.Object.defineProperties(U2,{template:{configurable:!0,enumerable:!0,get:function(){if(J_K===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);J_K=D}D=J_K;return D}}});
U2.prototype.dataChanged=U2.prototype.dataChanged;U2.prototype.onPlayerDetached=U2.prototype.onPlayerDetached;U2.prototype.onPlayerAttached=U2.prototype.onPlayerAttached;U2.prototype.onStampFinished=U2.prototype.onStampFinished;U2.prototype.engagementPanelsChanged=U2.prototype.engagementPanelsChanged;U2.prototype.scrollAtTopChanged=U2.prototype.scrollAtTopChanged;U2.prototype.tabsChanged=U2.prototype.tabsChanged;U2.prototype.activeChanged=U2.prototype.activeChanged;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],U2.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],U2.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],U2.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Kz.YtPageBehavior),_.x("design:type",Object)],U2.prototype,"ytPageBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],U2.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],U2.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],U2.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],U2.prototype,"hidden",void 0);
_.q([_.y(),_.x("design:type",Object)],U2.prototype,"mastheadAdData",void 0);_.q([_.y({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.x("design:type",Object)],U2.prototype,"alertBannerData",void 0);_.q([_.y({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.x("design:type",Object)],U2.prototype,"greetingData",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],U2.prototype,"pageSubtype",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.x("design:type",Boolean)],U2.prototype,"hasMemberHubProfileRenderer",void 0);_.q([_.y({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],U2.prototype,"hasSidebar",void 0);_.q([_.y({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],U2.prototype,"hasPageHeaderSidebar",void 0);
_.q([_.y({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],U2.prototype,"roundedContainer",void 0);_.q([_.y({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],U2.prototype,"useUnifiedShowPageLayout",void 0);_.q([_.y({computed:"computeIsConstrainedList(pageSubtype)"}),_.x("design:type",Object)],U2.prototype,"isConstrainedList",void 0);
_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],U2.prototype,"usePlaylistHeaderRenderer",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],U2.prototype,"useOldPlaylistSidebarRenderer",null);_.q([_.y({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.x("design:type",Boolean)],U2.prototype,"fluidWidth",void 0);_.q([_.y({selector:function(D){return D.ui.scrollAtTop}}),
_.x("design:type",Boolean)],U2.prototype,"scrollAtTop",void 0);_.q([_.y({selector:_.aeE}),_.x("design:type",Boolean)],U2.prototype,"tabGesturesIsActive",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],U2.prototype,"darkerDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.x("design:type",Boolean)],U2.prototype,"disableHeaderFluidWidth",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.x("design:type",String)],U2.prototype,"responsiveSizing",void 0);_.q([_.fr("ytd-two-column-browse-results-renderer"),_.x("design:type",HTMLElement)],U2.prototype,"contents",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],U2.prototype,"header",void 0);_.q([_.fr("ytd-refresh"),_.x("design:type",Object)],U2.prototype,"refresh",void 0);
_.q([_.Gm("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U2.prototype,"activeChanged",null);_.q([_.Gm("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U2.prototype,"tabsChanged",null);_.q([_.Gm("scrollAtTop"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U2.prototype,"scrollAtTopChanged",null);
_.q([_.y(),_.x("design:type",Object)],U2.prototype,"engagementPanels",void 0);_.q([_.Gm("data.panels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U2.prototype,"engagementPanelsChanged",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U2.prototype,"onStampFinished",null);
_.q([_.Fv("yt-player-attached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],U2.prototype,"onPlayerAttached",null);_.q([_.Fv("yt-player-detached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],U2.prototype,"onPlayerDetached",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U2.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-browse"})],U2);_.z5.registerService(_.K6i,U2);
_.yJ();
}catch(e){_._DumpException(e)}
try{
_.bg("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 Ab,rNk,wyE,$7k,vMh,oME,bFI,yN0,Nu9,lqt,JNk,ky0,KBK,hMk,m79,qwt,HFu,Py9,QDh,BuI,pyt,ns,gMk,rN,d7k,iF0,OF9,cNT,DAp,Roh,tP0,Ydz,U7h,sR0,XOT,u3k,aak,MPz,Clp,Sdb,TZI,jRu,IaK,GKt,VP0,eop,nFh,r5k,wOu,vFK,b29,y5t,NZ9,lah,J5T,kKk,UAE,KU9,hoT,LUb,mAh,qd9,H2b,xA9,PlT,QRK,BZE,pOk,EFT,dAE,i2E,O2t,c5u,DXK,Y7k,Rbk,ZXE,teu,sbb,XCh,ua0,aiK,Me0,CiT,W3u,zbb,S7I,TCb,jbK,IiT,F3T,GAh,Vez,fik,ebb,A4k,n8K,r4K,wC9,Jb,$Xp,v8u,o8k,y4K,NCt,liu,J4b,kAb,UXu,K30,mXT,g80,c40,Dw0,skz,XUh,tCE,R1u,C0k,SMh,VCK,YMk,jkE,WWb,mn,e19,
ruk,vxk,wUK,$wI,oxE,lQE,yu9,Juk,kL9,NLt,bhp,UwT,P9,Q1,Hhz,xwK,B9,P0t,QkT,BLu,Ohb,cuk,ps,Et,Y$9,D3p,Rsk,Znk,tIt,gN,dN,i2,zsp,S$E,T$T,c9,VII,jQT,Ga0,flI,IlI,A6I,FV0,wGp,nI0,r6z,Dz,vIT,$3k,N$z,U3t,tY,s6,J6b,hsz,ka9,KVI,uF,MY,C3,Ww,sUh,gIK,ahK,MNk,CPz,W40,SgK,PXz,QQ9,TN,pGp,zN,Sz,EIz,zJT,XET,B$k,IY,jU0,Ihh,F4T,VNu,eJE,AjK,nyz,rjI,$B9,wEK,oyE,brK,Ndh,lhb,kmI,UBT,K49,hJt,L4u,qgz,HrI,xBE,PPp,QUu,pE9,EyK,dBE,ir0,Ork,cjk,DIp,RU9,Y49,Z8p,tv9,GN,sTT,XLh,Vs,uK9,aX9,Mvh,Cfp,WQp,zUE,S49,Tst,jTh,FQT,f3,GDT,Vvt,
Aib,riT,wL0,vCh,$IK,oCK,b8T,yit,lXb,Jiu,kDk,UIu,KQK,hUk,LQK,mIT,q4b,H8b,xIu,PfK,ECk,gC9,Bst,pLI,QTE,dIk,ci0,i80,O8K,Rl9,DWT,YDu,ZBI,t7h,stk,XN9,aTK,M7t,CqE,zlb,SDh,jtk,FIp,V7h,elI,nP0,wNK,vPI,bBk,lTI,Jp0,kfz,KIp,UWE,LI9,mWI,qDh,HBz,AY,xWk,PqE,QtT,Ym9,ZHT,tGt,a4I,MGh,CIu,Wpk,SmK,zF9,Tqu,jP9,I4h,FpE,GPK,ka,VGE,vw,fTt,f4K,eF0;
Ab=function(D){if(!D)return"browse";var Y=D.page,R=D.url,Z,t,X,M=(Z=D.response)==null?void 0:(t=Z.responseContext)==null?void 0:(X=t.webResponseContextExtensionData)==null?void 0:X.pageTheme;if(M)Y=M.toLowerCase().replace(/_/g,"-");else if(Y!=="watch"&&Y!=="learning_journey_watch"){var W,z;if((Y==="browse"||Y==="settings")&&((W=D.response)==null?0:(z=W.sidebar)==null?0:z.settingsSidebarRenderer))Y="WEB_PAGE_TYPE_SETTINGS";else{var I,F;Y==="browse"&&((I=D.response)==null?0:(F=I.metadata)==null?0:F.channelMetadataRenderer)?
Y="channel":R&&(Y=_.fn(R)||Y)}}return Y};
rNk=function(){var D=_.mf("yt.aba.att");return D?D:_.z0.instance!==void 0?_.z0.instance.xlU.bind(_.z0.instance):null};
wyE=function(D,Y){var R;return _.C(function(Z){return(R=rNk())?Z.return(R(D,Y,6E4)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
$7k=function(D,Y,R,Z,t){Y=Y===void 0?[]:Y;t=t?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:t}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.tu(D),dialogMessages:Y.map(function(X){return _.tu(X)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tu(R),serviceEndpoint:t}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tu(Z)}}}}}};
vMh=function(D){var Y=!!_.EH().queueProxy;var R,Z,t;D=D==null?void 0:(R=D.response)==null?void 0:(Z=R.currentVideoEndpoint)==null?void 0:(t=Z.watchEndpoint)==null?void 0:t.playlistId;return!(!Y&&!D)};
oME=function(D,Y){var R=_.AG();if(vMh(D))return R.playlistWatchPageActivation=!0;switch(Ab(Y)){case "yts-products":return R.productDetailsPageActivation=!0;case "mini_app":return R.miniAppPageActivation=!0;case "playables":return R.playablesDestPageActivation=!0;default:return!1}};
bFI=function(D,Y,R){for(var Z=typeof D==="string"?D.split(""):D,t=D.length-1;t>=0;--t)t in Z&&Y.call(R,Z[t],t,D)};
yN0=function(D,Y){Y=_.fUU(D,Y);Y>=0&&_.nnU(D,Y)};
Nu9=function(D){return Array.prototype.concat.apply([],arguments)};
lqt=function(D){var Y=0;Y=Y===void 0?0:Y;if(!_.B4(D))throw _.Oy("uint64");var R=typeof D;switch(Y){case 512:switch(R){case "string":return _.$Uj(D);case "bigint":return String((0,_.Mk)(64,D));default:return _.r1r(D)}case 1024:switch(R){case "string":return _.vEi(D);case "bigint":return _.J1((0,_.Mk)(64,D));default:return _.w4r(D)}case 0:switch(R){case "string":return _.$Uj(D);case "bigint":return _.J1((0,_.Mk)(64,D));default:return _.nEy(D)}default:return _.qU(Y,"Unknown format requested type for int64")}};
JNk=function(D){D!=null&&(D=D.JSC$8788_value_||"",D=typeof D==="string"?D:new Uint8Array(D));return D};
ky0=function(D,Y){if(/-[a-z]/.test(Y))return null;if(_.y9L&&D.dataset){if(_.W5U()&&!(Y in D.dataset))return null;D=D.dataset[Y];return D===void 0?null:D}return D.getAttribute("data-"+_.f2(Y))};
KBK=function(){var D=U7h;_.mf("yt.ads.biscotti.getId_")||_.ix("yt.ads.biscotti.getId_",D)};
hMk=function(D){_.ix("yt.ads.biscotti.lastId_",D)};
m79=function(){var D={};for(_.vr=new LB0(D.handleError===void 0?_.lo:D.handleError,D.logEvent===void 0?_.bo:D.logEvent);_.on.length>0;)switch(D=_.on.shift(),D.type){case "ERROR":_.vr.logError(D.payload);break;case "EVENT":_.vr.logEvent(D.eventType,D.payload)}};
qwt=function(D,Y,R){return _.h19(function(Z){return R?Z.userIdentifier!==void 0&&!D.includes(Z.userIdentifier)&&R.includes(Z.publicName):Z.userIdentifier!==void 0&&!D.includes(Z.userIdentifier)},Y)};
HFu=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Y=_.fv("YtIdbMeta hasAnyMeta other"),Z.yield(_.h19(function(t){return t.userIdentifier!==void 0&&t.userIdentifier!==Y},D),2);
R=Z.yieldResult;return Z.return(R.length>0)})};
Py9=function(D,Y){x7t||(x7t=_.yc.addLowPriorityJob(function(){var R,Z,t,X,M;return _.C(function(W){switch(W.nextAddress){case 1:return W.yield(_.OK(),2);case 2:R=W.yieldResult;if(!R)return W.return();Z=!0;_.SX(W,3);return W.yield(qwt(D,R,Y),5);case 5:t=W.yieldResult;if(!t.length){Z=!1;W.jumpTo(6);break}X=t[0];return W.yield(_.Pr(X.actualName),7);case 7:return W.yield(_.pv(X.actualName,R),6);case 6:_.xw(W,4);break;case 3:M=_.Gl(W),_.bx(M),Z=!1;case 4:_.yc.cancelJob(x7t),x7t=0,Z&&Py9(D,Y),_.V9(W)}})}))};
QDh=function(){var D;return _.C(function(Y){return Y.nextAddress==1?Y.yield(_.OK(),2):(D=Y.yieldResult)?Y.return(HFu(D)):Y.return(!1)})};
BuI=function(D){var Y=100;Y=Y===void 0?500:Y;var R,Z,t,X,M,W;return _.C(function(z){return z.nextAddress==1?(R=_.JQ("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[R,(0,_.DO)()-2592E6],t=[R,(0,_.DO)()],X=IDBKeyRange.bound(Z,t),z.yield(_.CfU(D),2)):z.nextAddress!=3?(M=z.yieldResult,W=[],z.yield(_.Br(M,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(I){W.length=0;return _.YQ(I.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:X,direction:"prev"},function(F){if(F.getValue()&&W.length<
Y)return W.push(F.getValue()),F.delete().then(function(){return F.continue()})})}),3)):z.return(W)})};
pyt=function(){var D;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.OK(),2);D=Y.yieldResult;if(!D||!_.e$()&&!_.f("nwl_init_require_datasync_id_killswitch")||!_.b8U())return Y.jumpTo(0);_.NsU=!0;_.yiM.isNwlInitialized=_.NsU;return Y.yield(_.cNE().awaitInitialization(),0)})};
ns=function(D,Y){_.EC9[D]=!0;var R=_.ZL();R&&R.publish.apply(R,arguments);_.EC9[D]=!1};
gMk=function(){if(_.wEj()&&!EMK){var D=function(R){R=R.data;if(R.op==="serializedGelBatch"){var Z=_.gP9.get(R.key);Z&&(_.iB5(R.serializedBatch,Z.client,Z.resolve,Z.networklessOptions,Z.isIsolated,Z.useVSSEndpoint,Z.dangerousLogToVisitorSession,Z.requestsOutstanding),_.gP9.delete(R.key))}},Y=_.rjU();
Y&&(Y.addEventListener("message",D),Y.onerror=function(){_.gP9.clear()});
EMK=!0}};
rN=function(){this.relativeTimeStart_=_.sb()};
d7k=function(D,Y){D!=null&&this.append.apply(this,arguments)};
iF0=function(){return _.HO("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
OF9=function(D,Y,R){R=R===void 0?!1:R;var Z,t,X,M,W;return _.C(function(z){switch(z.nextAddress){case 1:_.GZ("SOCS",D,34128E3,"youtube.com",!0);if(_.TX)return t=fetch(Y,{method:"POST",mode:_.Ed(Y),credentials:_.p2(Y),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),X=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Ed("/upgrade_visitor_cookie?eom=1"),credentials:_.p2("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),z.yield(Promise.all([t,X]).then(function(I){return I[1]}),5);
fetch(Y,{method:"POST",mode:_.Ed(Y),credentials:_.p2(Y),cache:"no-store",headers:{"Content-Type":"text/plain"}});return z.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Ed("/upgrade_visitor_cookie?eom=1"),credentials:_.p2("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Z=z.yieldResult;z.jumpTo(3);break;case 5:Z=M=z.yieldResult;case 3:if(!Z.ok)throw Error("lf");return z.yield(Z.text(),7);case 7:W=z.yieldResult,
!W.includes('"state_switch":true')&&!R||W.includes("skip_reload_for_test")||window.location.reload(),_.V9(z)}})};
cNT=function(D){return _.C(function(Y){return Y.nextAddress==1?Y.yield(OF9(D.socsCookie,D.savePreferenceUrl,!0),2):Y.return()})};
DAp=function(D){return _.C(function(Y){return Y.nextAddress==1?Y.yield(OF9(D.socsCookie,D.savePreferenceUrl),2):Y.return()})};
Roh=function(D){D=D.xhr.responseText;if(!_.Xi(D,")]}'"))throw new wN;D=JSON.parse(D.substr(4));if((D.type||1)>1)throw new wN;D=D.id;hMk(D);$a=_.O_(D);Ydz(18E5,2);return D};
tP0=function(D,Y){Y=new Z2z(Y);hMk("");$a=_.xQL(Y);D>0&&Ydz(12E4,D-1);throw Y;};
Ydz=function(D,Y){_.ME(function(){_.Cyu().then(Roh,function(R){return tP0(Y,R)}).thenCatch(_.Vy)},D)};
U7h=function(){var D=_.SwE();if(D!==void 0)return _.lf(D);$a||($a=_.Cyu().then(Roh).thenCatch(function(Y){return tP0(2,Y)}));
return $a};
sR0=function(){var D=document;return _.JS(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Y){return"on"+Y.toLowerCase()in D})};
XOT=function(D){D.addEventListener("click",function(Y){var R=Y.target;R&&R.getAttribute("href")&&(R=R.getAttribute("href"),_.QB(window,R,"_blank"),Y.preventDefault(),Y.stopImmediatePropagation())})};
u3k=function(D){var Y,R,Z,t=(Z=(R=((Y=D.mainDownloadsListEntity)!=null?Y:{})[_.yGl])==null?void 0:R.refresh)!=null?Z:"",X;D=(X=D.refresh)==null?void 0:X[t];t=D!=null?D:{};return(t==null?0:t.refreshTime)?Number(t==null?void 0:t.refreshTime):0};
aak=function(D,Y){var R=_.b0(D);return Y.every(function(Z){var t;Z=Z==null?void 0:(t=Z.playbackDataEntity)==null?void 0:t.key;if(!Z)return!1;t=_.TL(_.Mw(Z).entityId,"mainVideoEntity");return!!R[t]})};
MPz=function(D){D=_.$x(D.entities);return _.Q5r(D).length};
Clp=function(D,Y){if(Y){var R;D=(R=_.jC(D.entities,"downloadQualityPickerEntity",Y))!=null?R:void 0}else D=void 0;return D};
Sdb=function(){WUu||(_.dL=_.bc5,WUu=new zo0);return WUu};
TZI=function(D){var Y=document.getElementsByTagName("ytd-enforcement-message-view-model");Y.length===0||getComputedStyle(Y[0]).display==="none"?D(0,"p.h_"):D(1,"p.h_")};
jRu=function(){v9=0;var D=[_.w$(!0)];of&&_.WC(of,"yt-window-resized",D)};
IaK=function(){v9||(v9=_.yc.addLowPriorityJob(jRu,200))};
GKt=function(){b2=0;FUI=_.Nzz(document);var D=[FUI];of&&_.WC(of,"yt-window-scrolled",D)};
VP0=function(){b2||(b2=_.yc.addLowPriorityJob(GKt,200))};
eop=function(D){D=D===void 0?null:D;fa9.push(_.O1(window,"resize",IaK));fa9.push(_.O1(window,"scroll",VP0));D&&(of=D)};
nFh=function(){var D={isWide:_.FW.get("wide","0")==="1"},Y=_.nX();if(Y=Y.getFlag(165)||Y.getFlag(174))D.theme=_.N3(!0);if(_.fun()){var R=_.yb()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D.systemTheme=R}!Y&&_.f("parent_tools_enable_app_settings")&&_.QL(window.location.href).theme!==void 0&&(D.theme=_.N3());if((Y=y1)?!_.y7.equals(Y,D):D)Y={currentValue:D},A5k&&(Y.timeSinceLastSnapshotSecs=Math.round(((0,_.DO)()-A5k)/1E3)),y1&&(Y.previousValue=y1),_.bo("appSettingsCaptured",Y),y1=D,A5k=
(0,_.DO)()};
r5k=function(D){_.C(function(Y){if(Y.nextAddress==1)return Y.yield(D.delete("yt-appshell-assets"),2);_.V9(Y)})};
wOu=function(D){return _.Qf((0,_.V4U)(),D)};
vFK=function(){var D;_.C(function(Y){return Y.nextAddress==1?Y.yield(NG.getInstance(),2):(D=Y.yieldResult)?Y.yield($At(D),0):Y.jumpTo(0)})};
b29=function(){var D;_.C(function(Y){return Y.nextAddress==1?Y.yield(l2.getInstance(),2):(D=Y.yieldResult)?Y.yield(oFu(D),0):Y.jumpTo(0)})};
y5t=function(D){r5k(D);vFK();b29()};
NZ9=function(D){var Y,R;return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(_.xf5(D),2);if(Y=Z.yieldResult){var t;a:{if(Y.headers&&(t=Y.headers.get("date"))&&(t=Date.parse(t),!isNaN(t))){t=Math.round((0,_.DO)()-t);break a}t=-1}R=t;if(R>-1)return Z.return(R)}return Z.return(-1)})};
lah=function(){var D=_.ZU.caches,Y=_.ks("IS_SHELL_LOAD"),R,Z;_.C(function(t){if(t.nextAddress==1)return R=-1,Y?t.yield(NZ9(D),3):(Z=_.bi(),R=Math.round((0,_.DO)()-Z),t.jumpTo(2));t.nextAddress!=2&&(R=t.yieldResult);R>=0&&R<2147483648&&_.k8({appInstallDataAgeMs:R});_.V9(t)})};
J5T=function(D){var Y=_.qC(_.ZU.location.href),R={};"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(Z){var t=Y.JSC$10000_queryData_.getValues(Z);if(t==null?0:t.length)R[Z]=t});
return _.sG(D,new Map(Object.entries(R)))};
kKk=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
UAE=function(D){if(_.uC5()){var Y=Object.keys(window.localStorage);Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=kKk(R);Z===void 0||D.includes(Z)||self.localStorage.removeItem(R)}}};
KU9=function(){if(!_.uC5())return!1;var D=_.fv(),Y=Object.keys(window.localStorage);Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())if(R=kKk(R.value),R!==void 0&&R!==D)return!0;return!1};
hoT=function(D){return _.Sl("NotificationsDisabled",D)};
LUb=function(){return Notification.permission!="granted"?Promise.resolve():_.Mik().then(function(D){return D?D.pushManager.getSubscription().then(function(Y){if(Y)return Promise.resolve();Y={userVisibleOnly:!0,applicationServerKey:_.dr("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return D.pushManager.subscribe(Y).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
mAh=function(D){return _.Mik().then(function(Y){if(!Y||!Y.active)return Promise.reject(new _.AT("serviceworker.postMessage",D,Y));try{return Y.active.postMessage(D),Promise.resolve()}catch(R){return Promise.reject(R)}})};
qd9=function(){mAh({type:"notifications_register",data:_.JQ("ID_TOKEN")})};
H2b=function(){if(!_.ks("LOGGED_IN"))return Promise.resolve(!1);var D=_.XW("service_worker_push_force_notification_prompt_tag");return D?_.GM("PromptTags").then(function(Y){if(!Y)return!0;var R=[];try{R=JSON.parse(Y)}catch(Z){return!1}return R&&R.indexOf(D)==-1}):Promise.resolve(!1)};
xA9=function(){var D=_.ZH("service_worker_push_prompt_delay_microseconds");return D?_.GM("PromptTime").then(function(Y){return Promise.resolve(Date.now()-D>(Y||0))}):Promise.resolve(!0)};
PlT=function(){var D=_.ZH("service_worker_push_logged_out_prompt_watches");return D==-1?Promise.resolve(!1):_.GM("WatchCount").then(function(Y){return Y>=D})};
QRK=function(){var D=_.uI(document,"yt-push-prompt-modal-bg");D&&_.F_(D)};
BZE=function(){return _.ZH("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.GM("PromptCount").then(function(D){D||(D=0);return Promise.resolve(D<_.ZH("service_worker_push_prompt_cap"))})};
pOk=function(D){return _.ks("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.ks("LOGGED_IN")&&(D===void 0?0:D)?H2b().then(function(Y){if(Y)return!0;Y=[BZE(),xA9()];_.ks("LOGGED_IN")||Y.push(PlT());return Promise.all(Y).then(function(R){return R.every(function(Z){return Z})})}):Promise.resolve(!1)};
EFT=function(){_.GM("PromptCount").then(function(D){return _.Sl("PromptCount",D+1)}).then(function(){return _.Sl("PromptTime",Date.now())}).then(function(){var D=_.XW("service_worker_push_force_notification_prompt_tag");
if(D)return _.GM("PromptTags").then(function(Y){var R=[];if(Y)try{R=JSON.parse(Y)}catch(Z){return!1}R||(R=[]);R.push(D);return _.Sl("PromptTags",JSON.stringify(R))})})};
dAE=function(){gFp||QRK()};
i2E=function(D){D.style.zIndex=2147483648;D.style.pointerEvents="auto";D.style.backgroundColor="rgba(0, 0, 0, 0.6)";D.style.width="100%";D.style.height="100vh";D.style.position="absolute";D.style.top="0";D.style.left="0";D.style.border="none"};
O2t=function(){var D=_.uI(document,"yt-push-prompt-modal-bg");gFp=_.f("service_worker_push_prompt_modal_ignore_click");D?i2E(D):(D=_.vj("div",{id:"yt-push-prompt-modal-bg"}),i2E(D),document.body.appendChild(D),_.Pfn(document,"click",dAE))};
c5u=function(){var D=arguments;_.f("service_worker_push_prompt_modal_enable")&&O2t();return Notification.requestPermission().then(function(Y){QRK();var R=document.getElementById("ticker");R&&(R.className=R.classList.remove("show"));if(Y=="granted")return LUb().then(function(){hoT(!1);qd9();return Promise.resolve(!0)});
Y=="denied"&&qd9();return Promise.resolve(!1)}).catch(function(){QRK();
return Promise.reject.apply(Promise,_.oK(D))})};
DXK=function(D){D=D===void 0?!1:D;var Y=_.wVo().client;if(Y&&Y.browserVersion){var R=Y.browserVersion,Z=Y.browserName=="CHROME"&&_.jb(R,"50.0.0")<0;Y=Y.browserName=="OPERA"&&_.jb(R,"42.0.0")<0;if(Z||Y)return Promise.resolve()}return _.zp9().then(function(t){if(!t)return Promise.resolve();t=LUb().then(function(){return mAh({type:"notifications_check_registration",data:_.JQ("ID_TOKEN")})});
return Notification.permission!="default"?t.catch(function(){}):t.then(function(){return pOk(D)}).then(function(X){if(X)return EFT(),c5u().then(function(){})}).catch(function(){})})};
Y7k=function(D){return _.CMk(D)?DXK():Promise.resolve()};
Rbk=function(D){var Y=D.installing||D.waiting;return D.active||!Y?Promise.resolve(D):new Promise(function(R){var Z=function(t){t=t.target;if(t.state==="activated"||t.state==="redundant")Y.removeEventListener("statechange",Z),R(D)};
Y.addEventListener("statechange",Z)})};
ZXE=function(){var D=new _.kSU("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Wf(D,{mainAppWeb:_.E$()});var Y=_.KrE;_.f("service_worker_forward_exp_params")&&(Y=J5T(Y));try{var R=_.vky(Y).catch(function(){_.z3(D,"FAILURE");return new Promise(function(){})});
_.f("service_worker_push_enabled")&&R.then(function(Z){_.z3(D,"SUCCESS");return Z}).then(Rbk).then(Y7k)}catch(Z){if(_.z3(D,"FAILURE"),Z.name!=="SecurityError")throw Z;
}};
teu=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&ZXE()};
sbb=function(D,Y){var R={};Y&&(R.serializedYpcFamilyCreateLoggingParams=Y);_.bo(D,R);_.yj()};
XCh=function(D,Y){var R={};R.serializedYpcRefundFlowLoggingParams=Y;D&&(R.eventType=D);_.bo("ypcRefundFlowEvent",R);_.yj()};
ua0=function(D){D&&_.ba5("transactionFlowSucceeded",D)};
aiK=function(D){D&&_.iO("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Me0=function(D){D.currentTarget._data&&_.JsU(D.currentTarget._data)};
CiT=function(D,Y){if(Y=_.A(Y,_.Qj))(Y==null?void 0:Y.target)==="TARGET_NEW_WINDOW"&&(D.target="_blank"),Y.nofollow&&(D.rel="nofollow")};
W3u=function(D){D=_.A(D==null?void 0:D.commandMetadata,_.GA);return(D==null?0:D.url)?D.url:null};
zbb=function(D){var Y,R,Z,t,X,M,W;_.C(function(z){if(z.nextAddress==1)return z.yield(_.zgn(),2);if(z.nextAddress!=3){if(!z.yieldResult)return z.return(!1);Y=[];return z.yield(_.Tf.keys(),3)}R=z.yieldResult;Z=_.a(R);for(t=Z.next();!t.done;t=Z.next())X=t.value,M=_.Ceb(X),W=M.datasyncId,!W||D.includes(W)||Y.push(_.Tf.delete(X));return z.return(Promise.all(Y).then(function(I){return I.some(function(F){return F})}))})};
S7I=function(){var D,Y,R,Z,t,X,M;return _.C(function(W){if(W.nextAddress==1)return W.yield(_.zgn(),2);if(W.nextAddress!=3){if(!W.yieldResult)return W.return(!1);D=_.fv("cache contains other");return W.yield(_.Tf.keys(),3)}Y=W.yieldResult;R=_.a(Y);for(Z=R.next();!Z.done;Z=R.next())if(t=Z.value,X=_.Ceb(t),(M=X.datasyncId)&&M!==D)return W.return(!0);return W.return(!1)})};
TCb=function(){var D=_.DH().resolve(_.cD(_.J31));return D?D.getCurrentTime():0};
jbK=function(){var D,Y,R,Z,t,X,M,W,z,I,F,G,V,e;return _.C(function(r){switch(r.nextAddress){case 1:D={},Y=_.May(),R=_.a(Object.entries(Y)),Z=R.next();case 4:if(Z.done){r.jumpTo(3);break}t=Z.value;X=_.a(t);M=X.next().value;W=X.next().value;z=M;I=W;if(!I){r.jumpTo(5);break}return r.yield(I(),8);case 8:D[z]=r.yieldResult;case 5:Z=R.next();r.jumpTo(4);break;case 2:F=_.a(void 0),G=F.next();case 9:if(G.done){r.jumpTo(3);break}V=G.value;e=Y[V];if(!e){r.jumpTo(10);break}return r.yield(e(),13);case 13:D[V]=
r.yieldResult;case 10:G=F.next();r.jumpTo(9);break;case 3:return r.return(D)}})};
IiT=function(){var D;_.C(function(Y){if(Y.nextAddress==1)return Y.yield(jbK(),2);D=Y.yieldResult;return Y.yield(navigator.clipboard.writeText(JSON.stringify(D,null,2)),0)})};
F3T=function(D,Y){return _.jC(D.entities,"superThanksSelectedTierEntity",Y)};
GAh=function(D,Y){var R=_.$P();_.wf(function(){var Z=D.value;if(Z)return _.Jb9(Z,Y),_.kvj(Z,Y,void 0,void 0,void 0,R)},[Y])};
Vez=function(D){var Y;return(Y=D.sharedUi)==null?void 0:Y.currentPageType};
fik=function(D,Y){return{popup:{searchSuggestionReportDialog:{searchQuery:D,title:_.fX("SBOX_INAPPROPRIATE_TITLE"),suggestions:Y,categoryLabel:_.fX("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.fX("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.fX("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.fX("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.fX("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.fX("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.fX("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.fX("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.fX("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.fX("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
ebb=function(D){var Y,R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c;return _.C(function(Q){switch(Q.nextAddress){case 1:return Q.yield(_.GL(),2);case 2:return(Y=Q.yieldResult)?Q.yield(_.Yly(Y),3):Q.return();case 3:R=Q.yieldResult;if(!R)return Q.return();t=((Z=R.offlineVideos)==null?void 0:Z.length)||0;M=((X=R.offlinePlaylists)==null?void 0:X.length)||0;if(t===0&&M===0)return Q.return();W=0;if(R.offlineVideos)for(z=_.a(R.offlineVideos),I=z.next();!I.done;I=z.next())F=I.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
F.videoState&&(W+=1);D.offline_videos_count=t.toString();_.f("kevlar_log_offline_current_network_type_ks")||(D.offline_current_network_type=(G=_.z1M())!=null?G:"CONN_INVALID");_.f("kevlar_log_updated_time_for_smart_downloads")&&(V=_.Dl().getState().entities,e=_.Ju(V),r=u3k(V),D.offline_smart_downloads_last_sync_time_ms=e.toString(),D.offline_smart_downloads_next_sync_time_ms=r.toString());D.offline_videos_playable=W.toString();D.offline_playlists_count=M.toString();R.offlineVideos&&(l=R.offlineVideos.reduce(function(E,
B){B.downloadedBytes&&(E+=Number(B.downloadedBytes));return E},0).toString())&&(D.offline_used_disk_space_bytes=l);
if(!((U=navigator)==null?0:(K=U.storage)==null?0:K.estimate)){Q.jumpTo(4);break}return Q.yield(navigator.storage.estimate(),5);case 5:H=Q.yieldResult,D.offline_free_disk_space_bytes=(((c=H)==null?void 0:c.quota)||0).toString();case 4:D.offline_client_state=JSON.stringify(R),_.V9(Q)}})};
A4k=function(D){D=_.a(D);for(var Y=D.next(),R={};!Y.done;R={setter$jscomp$5:void 0},Y=D.next()){var Z=Y.value;Y=Z.params;Z=Z.service;Y&&Z&&(R.setter$jscomp$5=_.Mfk[Z],R.setter$jscomp$5&&Y.forEach(function(t){return function(X){var M=X.key;X=X.value;M&&X&&(0,t.setter$jscomp$5)(M,X)}}(R)))}};
n8K=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
r4K=function(D){if(_.u7M()){var Y=Object.keys(window.sessionStorage);Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=n8K(R);Z===void 0||D.includes(Z)||self.sessionStorage.removeItem(R)}}};
wC9=function(){if(!_.u7M())return!1;var D=_.fv(),Y=Object.keys(window.sessionStorage);Y=_.a(Y);for(var R=Y.next();!R.done;R=Y.next())if(R=n8K(R.value),R!==void 0&&R!==D)return!0;return!1};
Jb=function(D,Y,R){(_.f("desktop_keyboard_shortcut_usage_log")||R&&_.f("web_shorts_keyboard_shortcut_usage_log"))&&(Y?_.Gv.get(D):_.Ft.get(D))&&(D=Y?_.el.get(D):_.V1.get(D))&&_.dC(_.K2(),D)};
$Xp=function(D,Y){return D.findIndex(function(R){return R.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(Y.keyCode):!1};
v8u=function(){var D,Y;return typeof CSS!=="undefined"&&((Y=(D=CSS).supports)==null?void 0:Y.call(D,"selector(:has(*))"))};
o8k=function(D){return D.visibility!=="hidden"&&D.display!=="none"};
y4K=function(D){if(v8u()||D.tagName!=="DETAILS"?!D.matches(bXt):D.querySelector("summary")!==null)return-1;D=D.getAttribute("tabindex")||"0";return Number(D)};
NCt=function(D){return D.some(function(Y){return y4K(Y)>0})};
liu=function(D){if(D.textContent)return!0;if(D instanceof HTMLInputElement){if(!D.labels)return!1;D=_.a(D.labels);for(var Y=D.next();!Y.done;Y=D.next())if(Y.value.textContent)return!0}return!1};
J4b=function(D){return D.sort(function(Y,R){return y4K(R)-y4K(Y)})};
kAb=function(D){D=Array.from(D.querySelectorAll(bXt)).filter(function(Y){return(o8k(Y.style)?o8k(window.getComputedStyle(Y)):!1)&&liu(Y)});
return NCt(D)?J4b(D):D};
UXu=function(D){D=kAb(D);D.length>0&&D[0].focus()};
K30=function(D,Y){Y.stack&&(D.stack+="\n"+Y.stack);return D};
mXT=function(D){var Y=ka(D,"Content-Type");if(!Y)return null;Y=Y.toLowerCase();if(Y.startsWith("application/json"))return Y.startsWith("application/json+protobuf")?new hbI:new _.a1;if(Y.startsWith("application/x-protobuf")){D=ka(D,"Content-Transfer-Encoding");if(!D)return new Ut;if(D.toLowerCase()=="base64")return new L3k}return null};
g80=function(D,Y,R,Z){var t=new q7T(function(W,z){return HXK.has(z)?W.sentinel==="gal"&&W.event!==void 0:!1},function(W){W.event?(W=xX9(W.event),W=!W||Pip(Z,W)?!0:_.es(D.lastEvent,Ks,2,hb)?!_.es(W,Ls,1,hb)&&!_.es(W,Ks,2,hb):!_.es(W,Ls,1,hb)&&!_.es(W,Ks,3,hb)):W=!0;
return W});
R=_.sG(D.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Qbz(R)]]));if(D.nestedOrigins!==void 0)for(var X=_.a(D.nestedOrigins),M=X.next();!M.done;M=X.next())R=_.sG(R,new Map([["origin",M.value]]));return BCp(t,R,Y).then(function(W){W=pCT(W.event);if(_.es(W,Ls,1,hb)){var z,I=(z=_.Ub(W,Ls,1,hb))==null?void 0:_.lh(z,2);I&&Z.JSC$19232_logErrorEvent(E8T(I));z=_.Ub(W,Ls,1,hb);_.lh(z,2)===4?(W=_.Ub(W,Ls,1,hb),W={statusCode:11,statusMessage:_.Np(W,
3)}):(W=_.Ub(W,Ls,1,hb),W={statusCode:12,statusMessage:_.Np(W,3)});return W}_.es(W,Ks,3,hb)?(W=_.Ub(W,Ks,3,hb),W={statusCode:1,consentLanguageKeys:_.Np(W,2)}):W={statusCode:1};return W}).catch(function(W){return W.errorCode!==void 0?{statusCode:W.errorCode,
statusMessage:W.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
c40=function(D){var Y={};if(D===void 0||D===null)return Y;D.getToken()!==void 0&&dXK(D.getToken())&&dXK(D.getToken()).length>0&&(Y.scopes=new Set(dXK(D.getToken())));D.getToken()!==void 0&&iXh(D.getToken())&&iXh(D.getToken()).length>0&&(Y.capabilities=new Set(iXh(D.getToken())));_.Np(D,3)!==void 0&&(Y.consistencyKey=_.Np(D,3));D.getName()!==void 0&&D.getName()!==""&&(Y.linkName=D.getName());_.fw(D,OXK,4)&&(D=_.tP(D,OXK,4),D=Object.assign({},_.Np(D,1)&&{userId:_.Np(D,1)},_.Np(D,2)&&{displayName:_.Np(D,
2)},_.Np(D,3)&&{email:_.Np(D,3)},_.Np(D,5)&&{username:_.Np(D,5)},_.Np(D,4)&&{profilePicture:_.Np(D,4)}),Y.profile=D);return Y};
Dw0=function(D,Y){var R=D.flowParams,Z;return{serviceId:R.serviceId,sessionId:R.sessionId,currentFlow:D.currentFlow,googleScopesString:Y,linkingSessionSerialized:D.session.serialize(),consentLanguageKeys:R.consentLanguageKeys,callerState:D.callerState,dynamicUrlParameters:R.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(Z=R.partnerConfigMinReadTimestamp)==null?void 0:Z.serialize()}};
skz=function(D){var Y=D.googleScopes!==void 0?Array.from(D.googleScopes).join(","):"";YMk(Dw0(D,Y));Y=R1u(D);return Y===null?Promise.resolve(Zht):Y.start().then(function(R){var Z,t=(Z=R.link)==null?void 0:Z.consistencyKey;return R.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&t!==void 0?(Z=D.flowParams,tCE(Z.serviceId,Z.sessionId,D.googleScopes,t,Z.galService,D.config,R)):R})};
XUh=function(D){var Y=R1u(D);return Y===null?Promise.resolve(mn({statusCode:7,statusMessage:"Failed to create flow object"},D.callerState)):Y.complete().then(function(R){var Z,t=(Z=R.link)==null?void 0:Z.consistencyKey;return R.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&t!==void 0?(Z=D.flowParams,tCE(Z.serviceId,Z.sessionId,D.googleScopes,t,Z.galService,D.config,R)):mn(R,D.callerState)},function(R){return mn({statusCode:12,
statusMessage:"Failed to complete the flow: "+R.message},D.callerState)})};
tCE=function(D,Y,R,Z,t,X,M){return ush(t,{serviceId:D,sessionId:Y,googleScopes:R,consistencyKey:Z}).then(function(){return M},function(W){return t.deleteLink({serviceId:D,
sessionId:Y,accountLinkingEntryPoint:X.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+W.message}},function(z){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+z.message}})})};
R1u=function(D){switch(D.currentFlow){case 1:var Y=D.flowParams;D=_.tP(D.session,aQh,1);return qG.createOAuthFlow(Y,D);case 2:case 3:return Y=D.flowParams,D=_.tP(D.session,MCT,6),H9.createStreamlinedFlow(Y,D);default:return null}};
C0k=function(D,Y){D===2&&(D=3);var R=0;xa.indexOf(D)!==-1&&(R=xa.indexOf(D)+1);for(D=R;D<xa.length;D++)if(Y.has(xa[D]))return xa[D]};
SMh=function(D){var Y=D.serviceId;var R=D.sessionId;var Z=D.config;var t=D.galService;var X=D.capabilities;var M=D.scopes;var W=D.loginHint;var z=D.callerState;var I=D.consentLanguageKeys;var F=D.linkName;var G=D.dynamicUrlParameters;var V=D.partnerConfigMinReadTimestamp;D=Z.dataUsageNoticeConfig?Z.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return t.startLinkingSession({serviceId:Y,sessionId:R,capabilities:X,scopes:M,loginHint:W,callerState:z,supportedFlows:WWb(Z.supportedFlows),completionUrl:Z.completionUrl,
accountLinkingEntryPoint:Z.accountLinkingEntryPoint,consentLanguageKeys:I,dataUsageNoticeConfig:D,linkName:F,dynamicUrlParameters:G,partnerConfigMinReadTimestamp:V}).then(function(e){return new z1t(Y,R,Z,t,e,void 0,z,I,G,V)})};
VCK=function(D,Y,R){var Z=(new TLz).getSession(D);if(Z===null)return Promise.resolve({statusCode:2});jkE(D);var t=IQp(Z.linkingSessionSerialized),X=Z.googleScopesString!==""&&Z.googleScopesString!==void 0?new Set(Z.googleScopesString.split(",")):void 0,M=Z.partnerConfigMinReadTimestampSerialized?FWu(Z.partnerConfigMinReadTimestampSerialized):void 0;return GLt(new z1t(D,Z.sessionId,Y,R,t,X,Z.callerState,Z.consentLanguageKeys,Z.dynamicUrlParameters,M),Z.currentFlow,Z.consentLanguageKeys)};
YMk=function(D){var Y=new TLz;Y.storage!==null&&Y.storage.set("SAVED_SESSION",D)};
jkE=function(D){var Y=new TLz;if(Y.storage!==null){var R=Y.storage.get("SAVED_SESSION");R!==void 0&&R.serviceId===D&&Y.storage.remove("SAVED_SESSION")}};
WWb=function(D){var Y=new Set;D=_.a(D);for(var R=D.next();!R.done;R=D.next())R=R.value,R!==1&&fQE.has(R)&&Y.add(fQE.get(R));return Y};
mn=function(D,Y){Y!==void 0&&(D.callerState=Y);return D};
e19=function(D){switch(D){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
ruk=function(D){return new Auh(D,new nxk(D))};
vxk=function(D,Y){Y=Y===void 0?!1:Y;var R=document.createElement("div");D&&(R.style.transform="scaleX(-1)");R.style.backgroundColor=Y?"rgba(138,180,248,.24)":"#e8f0fe";R.style.height="4px";R.style.overflow="hidden";R.style.position="absolute";R.style.top="0";R.style.width="100%";R.style.zIndex="1500";R.setAttribute("aria-label","Loading");R.setAttribute("aria-live","polite");D=document.createElement("style");D.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  }";
R.appendChild(D);D=wUK();D.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";D.style.left="-145.166611%";var Z=$wI(Y);Z.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";D.appendChild(Z);R.appendChild(D);D=wUK();D.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";D.style.left="-54.888891%";Y=$wI(Y);Y.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
D.appendChild(Y);R.appendChild(D);return R};
wUK=function(){var D=document.createElement("div");D.style.height="100%";D.style.position="absolute";D.style.transformOrigin="top left";D.style.width="100%";return D};
$wI=function(D){var Y=document.createElement("span");Y.style.borderTop=D?"4px solid #669df6":"4px solid #4285f4";Y.style.display="inline-block";Y.style.position="absolute";Y.style.width="100%";return Y};
oxE=function(D){return D==null?void 0:_.LhL(D).valueOf()};
lQE=function(D){var Y=document.body,R=!1,Z=function(){R||(R=!0,bhp(t,X),setTimeout(function(){Y.removeChild(X);Y.removeChild(t)},150))},t=yu9(D,getComputedStyle(Y).direction==="rtl",Z),X=NLt(Z);
bhp(t,X);Y.appendChild(X);Y.appendChild(t);window.requestAnimationFrame(function(){X.style.opacity="1";t.style.opacity="1";t.style.transform="translate(-50%, -50%) scale(1)";t.children[0].focus()})};
yu9=function(D,Y,R){var Z=document.createElement("div");Z.style.position="fixed";Z.style.alignItems="center";Z.style.backgroundColor=D?"rgb(32, 33, 36)":"white";Z.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Z.style.display="flex";Z.style.flexDirection="column";Z.style.justifyContent="center";Z.style.left="50%";Z.style.top="50%";Z.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Z.style.zIndex="2002";document.body.clientWidth>=
660?(Z.style.borderRadius="8px",Z.style.minHeight="220px",Z.style.maxHeight="90%",Z.style.maxWidth="90%",Z.style.minWidth="540px"):(Z.style.height="100%",Z.style.width="100%");Z.setAttribute("aria-label","Error");Z.setAttribute("aria-modal","true");Z.setAttribute("role","alertdialog");Z.addEventListener("keydown",function(X){X.key==="Escape"&&R()});
Y=Juk(D,Y,R);Z.appendChild(kL9(Y));Z.appendChild(Y);var t=document.createElement("img");t.src=D?"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";t.style.height="72px";t.style.width="72px";t.style.color="#9aa0a6";t.setAttribute("alt","");Z.appendChild(t);t=document.createElement("h1");t.textContent="Something went wrong.  Try again.";
t.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";t.style.lineHeight="24px";t.style.fontSize="16px";t.style.textAlign="center";t.style.letterSpacing="0.1px";t.style.color=D?"rgb(232,234,237)":"#3c4043";Z.appendChild(t);Z.appendChild(kL9(Y));return Z};
Juk=function(D,Y,R){var Z=document.createElement("button");Z.style.backgroundColor="transparent";Z.style.border="none";Z.style.borderRadius="50%";Z.style.cursor="pointer";Z.style.outline="none";Z.style.padding="12px";Z.setAttribute("aria-label","Close dialog");Z.style.position="absolute";Z.style.top="0";Y?Z.style.right="0":Z.style.left="0";Z.addEventListener("focus",function(){Z.style.backgroundColor=D?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Z.addEventListener("blur",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("mouseenter",function(){Z.style.backgroundColor=D?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Z.addEventListener("mouseleave",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("click",R);Z.addEventListener("keydown",function(t){t.key!=="Enter"&&t.key!=="Space"||R()});
Y=document.createElement("img");Y.src=D?"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";Y.style.display="block";Y.style.height="24px";Y.style.width="24px";Y.setAttribute("alt","");Z.appendChild(Y);return Z};
kL9=function(D){var Y=document.createElement("div");Y.setAttribute("tabindex","0");Y.setAttribute("aria-hidden","true");Y.addEventListener("focus",function(){return void D.focus()});
return Y};
NLt=function(D){var Y=document.createElement("div");Y.style.backgroundColor="rgba(32,33,36,0.6)";Y.style.bottom="0";Y.style.left="0";Y.style.position="fixed";Y.style.right="0";Y.style.top="0";Y.style.transition=" opacity 150 ms linear";Y.style.zIndex="2001";Y.addEventListener("click",D);return Y};
bhp=function(D,Y){Y.style.opacity="0";D.style.opacity="0";D.style.transform="translate(-50%, -50%) scale(0.8)"};
UwT=function(D,Y){D.sandbox&&D.sandbox.add&&(D.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),D.sandbox.add("allow-downloads"));D.src=Y};
P9=function(D){KW0.call(this,D)};
Q1=function(D,Y){Y=Y===void 0?!1:Y;this.parsedImageUrl_=null;D instanceof h1k||(LWK==void 0&&(LWK=new mwb),D=LWK.parse(D.toString(),Y));D=this.parsedImageUrl_=D;D.JSC$19444_parsedOptions_==void 0&&((Y=D.getOptions())||(Y=""),D.JSC$19444_parsedOptions_=(new qMK).parse(Y));KW0.call(this,D.JSC$19444_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;D=this.parsedImageUrl_;Y=D.uri_.JSC$10000_port_;this.JSC$19446_domain_=D.uri_.JSC$10000_domain_+(Y?":"+Y:"");this.JSC$19446_query_=
this.parsedImageUrl_.uri_.JSC$10000_queryData_.toString()};
Hhz=function(D){this.mode=4;this.data=D;this.parsedData=[];D=0;for(var Y=this.data.length;D<Y;D++){var R=[],Z=this.data.charCodeAt(D);Z>65536?(R[0]=240|(Z&1835008)>>>18,R[1]=128|(Z&258048)>>>12,R[2]=128|(Z&4032)>>>6,R[3]=128|Z&63):Z>2048?(R[0]=224|(Z&61440)>>>12,R[1]=128|(Z&4032)>>>6,R[2]=128|Z&63):Z>128?(R[0]=192|(Z&1984)>>>6,R[1]=128|Z&63):R[0]=Z;this.parsedData.push(R)}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))};
xwK=function(D){this.typeNumber=0;this.errorCorrectLevel=D===void 0?2:D;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
B9=function(D,Y){if(D.length==void 0)throw Error("wk`"+D.length+"`"+Y);for(var R=0;R<D.length&&D[R]==0;)R++;this.num=Array(D.length-R+Y);for(Y=0;Y<D.length-R;Y++)this.num[Y]=D[Y+R]};
P0t=function(D,Y){this.totalCount=D;this.dataCount=Y};
QkT=function(){this.buffer=[];this.length=0};
BLu=function(){var D=!1;if(_.jlM()){D=_.Il();var Y="";_.GUU()?(Y=/Windows (?:NT|Phone) ([0-9.]+)/,Y=(D=Y.exec(D))?D[1]:"0.0"):_.yU()?(Y=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Y=(D=Y.exec(D))&&D[1].replace(/_/g,".")):_.F5S()?(Y=/Mac OS X ([0-9_.]+)/,Y=(D=Y.exec(D))?D[1].replace(/_/g,"."):"10"):_.zU(_.Il(),"KaiOS")?(Y=/(?:KaiOS)\/(\S+)/i,Y=(D=Y.exec(D))&&D[1]):_.jlM()?(Y=/Android\s+([^\);]+)(\)|;)/,Y=(D=Y.exec(D))&&D[1]):_.Vbi()&&(Y=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Y=(D=Y.exec(D))&&D[1]);D=
Y||""}return D};
Ohb=function(D,Y){this.JSC$19469__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(Y)for(var R in Y)this.JSC$19469__htOption[R]=Y[R];this.JSC$19469__htOption.useSVG&&(pUI=Ex9);this.JSC$19469__android=BLu();this.JSC$19469__el=D;this._oQRCode=null;this._oDrawing=new pUI(this.JSC$19469__el,this.JSC$19469__htOption);this.JSC$19469__htOption.text&&(D=this.JSC$19469__htOption.text,this._oQRCode=new xwK(this.JSC$19469__htOption.correctLevel),gxt(this._oQRCode,
D),Y=this._oQRCode,dwt(Y,!1,ih9(Y)),this.JSC$19469__el.title=D,this._oDrawing.draw(this._oQRCode),this.makeImage())};
cuk=function(D,Y,R,Z,t){D.save();var X=new Path2D;X.roundRect(Y,R,Z*7,Z*7,Z*2);X.roundRect(Y+Z,R+Z,Z*5,Z*5,Z*1.3);X.roundRect(Y+2*Z,R+2*Z,Z*3,Z*3,Z);D.clip(X,"evenodd");D.fillStyle=t;D.fillRect(0,0,D.canvas.width,D.canvas.height);D.restore()};
ps=function(D,Y){if(typeof D!=="function")throw Error("zk");return _.ZU.setTimeout(function(){D()},Y)};
Et=function(){};
Y$9=function(D,Y,R,Z,t){(new Et).debug("TestLoadImageWithRetries: "+t);if(Z==0)R(!1);else{var X=t||0;Z--;D3p(D,Y,function(M){M?R(!0):_.ZU.setTimeout(function(){Y$9(D,Y,R,Z,X)},X)})}};
D3p=function(D,Y,R){var Z=new Et;Z.debug("TestLoadImage: loading "+D);var t=new Image;t.onload=function(){try{Z.debug("TestLoadImage: loaded"),Rsk(t),R(!0)}catch(X){}};
t.onerror=function(){try{Z.debug("TestLoadImage: error"),Rsk(t),R(!1)}catch(X){}};
t.onabort=function(){try{Z.debug("TestLoadImage: abort"),Rsk(t),R(!1)}catch(X){}};
t.ontimeout=function(){try{Z.debug("TestLoadImage: timeout"),Rsk(t),R(!1)}catch(X){}};
_.ZU.setTimeout(function(){if(t.ontimeout)t.ontimeout()},Y);
t.src=D};
Rsk=function(D){D.onload=null;D.onerror=null;D.onabort=null;D.ontimeout=null};
Znk=function(){this.front_=[];this.back_=[]};
tIt=function(D,Y){_.AE.call(this);this.delay_=new _.re(this.JSC$19595_onTick_,0,this);_.WB(this,this.delay_);this.JSC$19593_interval_=5E3;this.nextTickTime_=0;if(typeof D==="function")Y&&(D=(0,_.nG)(D,Y));else if(D&&typeof D.handleEvent==="function")D=(0,_.nG)(D.handleEvent,D);else throw Error("ya");this.JSC$19595_listener_=D};
gN=function(D,Y,R,Z,t,X,M,W,z,I,F,G,V,e){R=R===void 0?!1:R;Z=Z===void 0?function(){return""}:Z;
t=t===void 0?!1:t;X=X===void 0?!1:X;M=M===void 0?!1:M;W=W===void 0?function(){return _.TA({})}:W;
z=z===void 0?!1:z;F=F===void 0?!1:F;G=G===void 0?!1:G;V=V===void 0?!1:V;e=e===void 0?!1:e;this.JSC$19596_pathPrefix_=D;this.defaultQueryParams_=Y;this.pubsub_=new _.j$;this.reconnectTimer_=new tIt(this.safeReconnect_,this);this.JSC$19596_channel_=null;this.JSC$19596_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19596_pendingMessages_=[];this.enableAsyncTest_=R;this.JSC$19596_getXsrfToken_=Z;this.useAsyncBrowserChannelHandler_=X;this.getAuthorizationHeader_=
W;this.getAuthorizationHeaderSync_=I;this.enableCachedUpdateAuthorizationHeader_=M;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.TA();this.enableLoungeTokenRefresh_=t;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=z;this.disableMdxAuthForNonPlaybackMessages_=F;this.disableMdxAuthForAdMessages_=G;this.enableMdxAuthForConnectionOnly_=V;this.disableMdxAuthForShortsMessages_=e;this.JSC$19596_channelOpenedCounter=new sQK;this.JSC$19596_channelClosedCounter=new XG0;this.channelMessageSentCounter=
new u90;this.JSC$19596_channelMessageReceivedCounter=new alk;this.JSC$19596_channelErrorCounter=new MIk;this.pendingMapsOnClosedCounter=new CXE;this.undeliveredMapsOnClosedCounter=new WVb};
dN=function(D){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;D=D||document.location.href;var Y=Number(_.E3(D)[4]||null)||"";Y&&(this.port=":"+Y);this.domain=_.gf(D)||"";D=_.Il();D.search("MSIE")>=0&&_.jb(D.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
i2=function(D){D=D||{};this.name=D.name||"";this.id=D.id||D.screenId||"";this.token=D.token||D.loungeToken||"";this.uuid=D.uuid||D.dialId||"";this.idType=D.screenIdType||"normal"};
zsp=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var Y=Math.random()*16|0;return(D=="x"?Y:Y&3|8).toString(16)})};
S$E=function(D){return _.N1(D,function(Y){return{key:Y.id,name:Y.name}})};
T$T=function(D,Y){return _.JS(D,function(R){return R||Y?!R!=!Y?!1:R.id==Y.id:!0})};
c9=function(D,Y){return _.JS(D,function(R){return Ot(R,Y)})};
VII=function(){var D=jQT(),Y=IlI();if(FV0()){var R=D,Z=_.onr(R,Y);Z<0&&_.wor(R,-(Z+1),0,Y)}D=Ga0(D);if(D.length==0)try{_.aQ5("remote_sid")}catch(t){}else try{_.GZ("remote_sid",D.join(","),-1)}catch(t){}};
jQT=function(){var D=_.FJ("yt-remote-connected-devices")||[];D.sort(_.vnj);return D};
Ga0=function(D){if(D.length==0)return[];var Y=D[0].indexOf("#"),R=Y==-1?D[0]:D[0].substring(0,Y);return _.N1(D,function(Z,t){return t==0?Z:Z.substring(R.length)})};
flI=function(D){_.I8("yt-remote-connected-devices",D,86400)};
IlI=function(){if(esI)return esI;var D=_.FJ("yt-remote-device-id");D||(D=zsp(),_.I8("yt-remote-device-id",D,31536E3));for(var Y=jQT(),R=1,Z=D;_.LM(Y,Z);)R++,Z=D+"#"+R;return esI=Z};
A6I=function(){return _.FJ("yt-remote-session-browser-channel")};
FV0=function(){return _.FJ("yt-remote-session-screen-id")};
wGp=function(D){D.length>5&&(D=D.slice(D.length-5));var Y=_.N1(nI0(),function(Z){return Z.loungeToken}),R=_.N1(D,function(Z){return Z.loungeToken});
_.t6l(R,function(Z){return!_.LM(Y,Z)})&&r6z();
_.I8("yt-remote-local-screens",D,31536E3)};
nI0=function(){return _.FJ("yt-remote-local-screens")||[]};
r6z=function(){_.I8("yt-remote-lounge-token-expiration",!0,86400)};
Dz=function(D){D||(_.G5("yt-remote-session-screen-id"),_.G5("yt-remote-session-video-id"));VII();D=jQT();_.m5(D,IlI());flI(D)};
vIT=function(){$3k();return YD?!!YD.get("yt-remote-use-staging-server"):!1};
$3k=function(){if(!YD){var D=_.FWo();D&&(YD=new _.nv(D))}};
N$z=function(D,Y,R,Z,t){R=R===void 0?function(){return""}:R;
var X=function(){return new gN(RY(D,"/bc"),Y,!1,R,Z)};
return _.f("enable_mdx_web_channel_desktop")?new oIk(function(){return new bnK(RY(D,"/wc"),Y,R)}):new y6u(X,t)};
U3t=function(){var D=llb;J6b();Zz.push(D);ka9()};
tY=function(D,Y){J6b();var R=KVI(D,String(Y));Zz.length==0?hsz(R):(ka9(),_.xs(Zz,function(Z){Z(R)}))};
s6=function(D){tY("CP",D)};
J6b=function(){Zz||(Zz=_.mf("yt.mdx.remote.debug.handlers_")||[],_.ix("yt.mdx.remote.debug.handlers_",Zz))};
hsz=function(D){var Y=(X0+1)%50;X0=Y;LVE[Y]=D;m3z||(m3z=Y==49)};
ka9=function(){var D=Zz;if(LVE[0]){var Y=m3z?X0:-1,R={};do R={record$jscomp$15:void 0},Y=(Y+1)%50,R.record$jscomp$15=LVE[Y],_.xs(D,function(Z){return function(t){t(Z.record$jscomp$15)}}(R));
while(Y!=X0);LVE=Array(50);X0=-1;m3z=!1}};
KVI=function(D,Y){var R=(Date.now()-q$K)/1E3;R.toFixed&&(R=R.toFixed(3));var Z=[];Z.push("[",R+"s","] ");Z.push("[","yt.mdx.remote","] ");Z.push(D+": "+Y,"\n");return Z.join("")};
uF=function(D){_.If.call(this);this.JSC$19620_logName_=D;this.screens=[]};
MY=function(D){uF.call(this,"LocalScreenService");this.JSC$19627_http_=D;this.loungeTokenRefreshTimer_=NaN;aY(this);this.info("Initializing with "+Hnb(this.screens))};
C3=function(D,Y){Y=Y===void 0?!1:Y;uF.call(this,"ScreenService");this.JSC$19633_http_=D;this.disableAutomaticScreenCache_=Y;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};x3T(this)};
Ww=function(D,Y,R){_.If.call(this);this.JSC$19637_logName_=R;this.JSC$19637_screenService_=D;this.receiver_=Y;this.screen_=null};
sUh=function(D,Y,R){R.disableCastApi?zN("Cannot initialize because disabled by Mdx config."):PXz()?QQ9(D,R)&&(B$k(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?pGp(Y):(window.__onGCastApiAvailable=function(Z,t){Z?pGp(Y):(Sz("Failed to load cast API: "+t),EIz(!1),B$k(!1),_.G5("yt-remote-cast-available"),_.G5("yt-remote-cast-receiver"),gIK(),Y(!1))},R.loadCastApiSetupScript?_.PO(d3I):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
inz()>=60&&Ont():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?c6u():inz()>=89?DBk():(YgI(),RJ9(Zrh.map(tNI))))):zN("Cannot initialize because not running Chrome")};
gIK=function(){zN("dispose");var D=TN();D&&D.dispose();_.ix("yt.mdx.remote.cloudview.instance_",null);XET(!1);_.gCS(uvK);uvK.length=0};
ahK=function(){return!!_.FJ("yt-remote-cast-installed")};
MNk=function(){var D=_.FJ("yt-remote-cast-receiver");return D?D.friendlyName:null};
CPz=function(){zN("clearCurrentReceiver");_.G5("yt-remote-cast-receiver")};
W40=function(){return ahK()?TN()?TN().getCastSession():(Sz("getCastSelector: Cast is not initialized."),null):(Sz("getCastSelector: Cast API is not installed!"),null)};
SgK=function(D,Y){zJT()?TN().setConnectedScreenStatus(D,Y):Sz("setConnectedScreenStatus called before ready.")};
PXz=function(){var D=_.Il().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.js||D};
QQ9=function(D,Y){var R=!1;TN()||(D=new jz(D,Y),D.subscribe("yt-remote-cast2-availability-change",function(Z){_.I8("yt-remote-cast-available",Z);ns("yt-remote-cast2-availability-change",Z)}),D.subscribe("yt-remote-cast2-receiver-selected",function(Z){zN("onReceiverSelected: "+Z.friendlyName);
_.I8("yt-remote-cast-receiver",Z);ns("yt-remote-cast2-receiver-selected",Z)}),D.subscribe("yt-remote-cast2-receiver-resumed",function(Z){zN("onReceiverResumed: "+Z.friendlyName);
_.I8("yt-remote-cast-receiver",Z);ns("yt-remote-cast2-receiver-resumed",Z)}),D.subscribe("yt-remote-cast2-session-change",function(Z){zN("onSessionChange: "+TdI(Z));
Z||_.G5("yt-remote-cast-receiver");ns("yt-remote-cast2-session-change",Z)}),_.ix("yt.mdx.remote.cloudview.instance_",D),R=!0);
zN("cloudview.createSingleton_: "+R);return R};
TN=function(){return _.mf("yt.mdx.remote.cloudview.instance_")};
pGp=function(D){EIz(!0);B$k(!1);TN().init(!1,function(Y){Y?(XET(!0),_.dI9("yt-remote-cast2-api-ready")):(Sz("Failed to initialize cast API."),EIz(!1),_.G5("yt-remote-cast-available"),_.G5("yt-remote-cast-receiver"),gIK());D(Y)})};
zN=function(D){tY("cloudview",D)};
Sz=function(D){tY("cloudview",D)};
EIz=function(D){zN("setCastInstalled_ "+D);_.I8("yt-remote-cast-installed",D)};
zJT=function(){return!!_.mf("yt.mdx.remote.cloudview.apiReady_")};
XET=function(D){zN("setApiReady_ "+D);_.ix("yt.mdx.remote.cloudview.apiReady_",D)};
B$k=function(D){_.ix("yt.mdx.remote.cloudview.initializing_",D)};
IY=function(D){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(D)};
jU0=function(){var D,Y;return _.C(function(R){if(R.nextAddress==1)return(_.lXr()||_.f("use_new_nwl"))&&_.oCn().isNetworkAvailable()?R.yield(_.OK(),2):R.return();if(R.nextAddress!=3)return(D=R.yieldResult)?R.yield(BuI(D),3):R.return();Y=R.yieldResult;if(!Y.length)return R.return();Y.forEach(function(Z){var t={timestamp:Z.timestamp};Z=Z.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Z.appShellAssetLoadReport,options:t}:Z.clientError?{payloadName:"clientError",payload:Z.clientError,
options:t}:void 0;Z&&_.bo(Z.payloadName,Z.payload,Z.options)});
Y.length===100&&_.yc.addLowPriorityJob(jU0);_.V9(R)})};
Ihh=function(D){if(D.playerResponse){if(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(Y){return!(!Y||!Y.mealbarPromoRenderer)}))&&D.mealbarPromoRenderer)return D.mealbarPromoRenderer}else if(D.response&&(D=D.response)&&D.overlay&&D.overlay.mealbarPromoRenderer)return D.overlay.mealbarPromoRenderer};
F4T=function(D){if(D.response){var Y=D.response;if(Y&&Y.overlay&&Y.overlay.tooltipRenderer)return Y.overlay.tooltipRenderer}if(D.playerResponse&&(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(R){return!(!R||!R.tooltipRenderer)}))&&D.tooltipRenderer))return D.tooltipRenderer};
VNu=function(D){if(!GmI&&(D=D||_.JQ("ZWIEBACK_PING_URLS"))&&D.length){GmI=!0;for(var Y=0;Y<D.length;Y++)_.qs(D[Y])}};
eJE=function(D){if(_.y7.get(_.JQ("PLAYER_VARS",{}),"privembed",!1)!="1"){D&&KBK();try{fhu().then(function(){},function(){}),_.ME(eJE,18E5)}catch(Y){_.hQ(Y)}}};
AjK=function(){var D=_.nX(),Y=D.getFlag(119),R=window.devicePixelRatio>1;document.body&&_.xB(document.body,"exp-invert-logo")&&(R&&!_.xB(document.body,"inverted-hdpi")?_.ZT(document.body,"inverted-hdpi"):!R&&_.xB(document.body,"inverted-hdpi")&&_.YP(document.body,"inverted-hdpi"));Y!=R&&(_.rC(0,119,R),D.save())};
nyz=function(D){return D.filter(function(Y){return"ypcGetCartEndpoint"in Y||"ypcFixInstrumentEndpoint"in Y})};
rjI=function(D){return D.filter(function(Y){return!_.A(Y,_.vtz)})};
$B9=function(D,Y){var R,Z,t,X,M,W,z;_.C(function(I){switch(I.nextAddress){case 1:R=_.kI.getInstance();Z=_.GD.instance;t=_.ED.instance;if(!t)return wEK(D,Z,Y),I.return();_.SX(I,2);D.onLoadingCommand&&Z.resolveCommand(D.onLoadingCommand);return I.yield(R.getCurrentPositionFromGeolocation(),4);case 4:X=I.yieldResult;if(!D.resolveLocationCommand){I.jumpTo(5);break}M=R.createLocationInfo(X);return I.yield(_.d1(t,D.resolveLocationCommand,{locationInfo:M}),6);case 6:W=I.yieldResult;if(!W||"error"in W&&W.error||
W.errorMetadata)return wEK(D,Z,Y),I.return();var F;if(W==null?0:(F=W.onResponseReceivedActions)==null?0:F.length){F=_.a(W.onResponseReceivedActions);for(var G=F.next();!G.done;G=F.next())Z.resolveCommand(G.value)}(_.A(D.onSuccessCommand,_.Od)||_.A(D.onSuccessCommand,_.A6))&&_.MX(Y.hostElement,"yt-navigate",{endpoint:D.onSuccessCommand,reload:!0});case 5:_.xw(I,0);break;case 2:z=_.Gl(I);if(z instanceof GeolocationPositionError&&z.code===GeolocationPositionError.PERMISSION_DENIED)return D.onDeniedCommand&&
Z.resolveCommand(D.onDeniedCommand),I.return();wEK(D,Z,Y);_.V9(I)}})};
wEK=function(D,Y,R){D.onFailureCommand&&(Y.resolveCommand(D.onFailureCommand),_.CX(R.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
oyE=function(D,Y){var R=_.A(D,_.N3z);if(R&&Y){D=R.videoIds||[R.videoId];var Z;Y=(Z=_.MX(Y,"yt-lockup-requested",{videoIds:D}).detail)==null?void 0:Z.returnValue;var t;R.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?t=Y?Y:D.map(function(X){return{videoId:X,navigationEndpoint:R.videoCommand}}):Y&&(t=Y);
t&&(Z=t.map(function(X){var M=Object,W=M.assign;var z=X.navigationEndpoint;if(!_.A(z,_.$I)){var I=_.A(z,_.Od);if(I){if(delete I.index,delete I.playlistId,I=_.A(z==null?void 0:z.commandMetadata,_.GA),I==null?0:I.url){var F=I.url;F=_.Zi(F,"list");F=_.Zi(F,"index");I.url=F}}else z=void 0}return W.call(M,{},X,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:z})}),vyK(Z,R))}};
brK=function(D){var Y=_.EH();if(D=_.A(D,_.lWL))D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&Y.clearQueue(),D.closeMiniplayer&&_.DH().resolve(_.mL).close(!0)};
Ndh=function(D){yjI(_.EH(),D)};
lhb=function(D){var Y;(D=(Y=_.A(D,_.bgU))==null?void 0:Y.setVideoIds)&&D.forEach(function(R){_.m6L(_.EH(),R)})};
kmI=function(D){JjK(_.EH(),D)};
UBT=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(D){return!1}};
K49=function(D){var Y=["h","m","s"],R=_.q$(Y);R.reverse();var Z={};D=(D.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(M){var W=(M.match(/[hms]/)||[""])[0];return W?(Z[W]=parseInt(M.match(/\d+/)[0],10),!1):!0});
for(D.reverse();D.length&&R.length;){var t=R.shift();t in Z||(Z[t]=parseInt(D.shift(),10))}if(D.length||Z.s>59||Z.m>59||Z.h>9)return null;var X="";Y.forEach(function(M){Z[M]&&(X+=""+Z[M]+M)});
return X||null};
hJt=function(D){D=D.data;return _.S("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.S("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.S(_.Rt,{data:{thumbnails:[{url:D.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.S("div",{class:"profile-badge-view-model-wiz__content"},_.S("div",{class:"profile-badge-view-model-wiz__badge-description"},D.badgeDesc),D.badgeSubtitle?_.S("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},D.badgeSubtitle):
null))};
L4u=function(D){D=D.data;var Y=_.dI("yt-comment-interaction-view-model");GAh(Y,D.rendererContext);return _.S("yt-comment-interaction-view-model",{el:Y,class:"yt-comment-interaction-view-model-wiz"},_.S("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":D.onTapA11yLabel,"on:keydown":_.bsM(),tabindex:0},_.S("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.S("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},D.headerPrefix,' "',D.videoTitle),
_.S("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.S("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.S("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},D.commentContent),_.S("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.S(_.Rt,{data:{thumbnails:[{url:D.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
qgz=function(D){D=D.data;return _.S("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},mBT(D.avatar),_.S("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},D.channelName))};
HrI=function(D,Y){var R=function(Z){Z.preventDefault()};
_.wf(function(){var Z=D.value;if(Z)return(Z._data=Y)?(Z.addEventListener("touchstart",_.l8M,{passive:!0}),Z.addEventListener("click",Me0),Y.clickTrackingParams&&(Z.params={itct:Y.clickTrackingParams}),CiT(Z,Y),_.L$(Z,W3u(Y)||"")):Z.addEventListener("click",R),function(){Y?(Z.removeEventListener("touchstart",_.l8M,{passive:!0}),Z.removeEventListener("click",Me0)):Z.removeEventListener("click",R)}},[Y,
void 0])};
xBE=function(D){D=D.data;var Y;return _.S("div",{class:"yt-profile-info-view-model-wiz__activity"},_.S("div",{class:"yt-profile-info-view-model-wiz__header"},_.S("div",{class:"yt-profile-info-view-model-wiz__section-title"},D.commentsInteractionTitle)),(Y=D.comments)==null?void 0:Y.map(function(R){return _.S("div",{class:"yt-profile-info-view-model-wiz__activity"},F0(R))}))};
PPp=function(D){D=D.data;var Y=_.PL({elementsCommand:D.subscriptionsAccessButtonCommand}),R=_.dI("a");HrI(R,_.HL(D.subscriptionsAccessButtonCommand));var Z;return _.S("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.S("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.S("a",{el:R,"on:click":_.F4(function(t){if(Y==null?0:Y.onclick)Y.onclick(t);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.S("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},D.sharedSubscriptionsTitle),_.S("div",null,F0(D.subscriptionsAccessButton)))),_.S("div",{class:"yt-profile-info-view-model-wiz__subs"},(Z=D.sharedSubscriptions)==null?void 0:Z.slice(0,5).map(function(t){return _.S("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",F0(t))})))};
QUu=function(D){D=D.data;var Y;return _.S("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.S("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.S("h2",{class:"yt-profile-info-view-model-wiz__section-title"},D.sharedSubscriptionsTitle)),_.S("div",{class:"yt-profile-info-view-model-wiz__subs"},(Y=D.sharedSubscriptions)==null?void 0:Y.slice(0,5).map(function(R){return _.S("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",F0(R))})))};
pE9=function(D){D=D.data;return _.S("div",{class:"yt-profile-info-view-model-wiz__activity"},[D.profileBadgeInfoYtWide,D.profileBadgeInfoChannelWide].map(function(Y){var R,Z,t,X,M;return Y?_.S(_.c_,null,_.S("div",{class:"yt-profile-info-view-model-wiz__header"},_.S("div",{class:"yt-profile-info-view-model-wiz__section-title"},Y==null?void 0:Y.profileSectionTitle),_.S("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.S("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},Y==
null?void 0:(R=Y.commentBadge)==null?void 0:R.commentDesc),(Y==null?0:(Z=Y.commentBadge)==null?0:Z.blackHeartDesc)?_.S("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.S("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.S(_.Rt,{data:{thumbnails:[{url:Y==null?void 0:(t=Y.commentBadge)==null?void 0:t.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.S("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
Y==null?void 0:(X=Y.commentBadge)==null?void 0:X.blackHeartDesc))),_.S("div",{class:"yt-profile-info-view-model-wiz__badge"},Y==null?void 0:(M=Y.badges)==null?void 0:M.map(function(W){return _.S(Bdt,{data:W})}))):null}))};
EyK=function(D){D=D.data;return _.S("yt-profile-info-view-model",{class:D.videosHorizontalShelf?"yt-profile-info-view-model-wiz yt-profile-info-view-model-wiz__with-video-shelf":"yt-profile-info-view-model-wiz"},_.S(pE9,{data:D}),D.videosHorizontalShelf?_.S("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},F0(D.videosHorizontalShelf)):null,D.comments?_.S(xBE,{data:D}):null,D.sharedSubscriptionsTitle?D.subscriptionsAccessButtonCommand?_.S(PPp,{data:D}):_.S(QUu,{data:D}):null)};
dBE=function(D){D=D.data;if(D){var Y=D.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";Y=gyp(D.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:Y,isChannelInfoCard:Y}})}else Y=void 0;D=D?gyp(D.profileInfo):void 0;return _.S("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},Y,D)};
ir0=function(D,Y){var R=_.RDV(Y,{},D,!0);return new Promise(function(Z,t){R.listenOnce("n",function(){t(Error("kl`"+R.JSC$29300_getErrorDescription()))});
R.listenOnce("l",function(){var X=R.getResponseCode();if(X!==200)t(Error("ll`"+Y+"`"+D.type+"`"+D.size+"`"+X));else try{Z(JSON.parse(R.getResponseText()).encryptedBlobId)}catch(M){t(M)}});
R.run()})};
Ork=function(D){return D.substring(D.indexOf(":")+1,D.indexOf(";"))};
cjk=function(D){return new Promise(function(Y,R){var Z=new FileReader;Z.onloadend=function(){try{var t=new Uint8Array(Z.result);t.length<8&&R(void 0);var X=t.subarray(0,8);t="";for(var M=0;M<X.length;M++)t+=("0"+X[M].toString(16)).substr(-2);t.startsWith("ffd8ff")?Y("image/jpeg"):t.startsWith("47494638")?Y("image/gif"):t.startsWith("89504e470d0a1a0a")?Y("image/png"):t.startsWith("424d")?Y("image/bmp"):Y(void 0)}catch(W){R(W)}};
Z.onerror=R;Z.readAsArrayBuffer(D)})};
DIp=function(D){return new Promise(function(Y,R){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var t=document.createElement("canvas");t.width=Z.naturalWidth;t.height=Z.naturalHeight;var X=t.getContext("2d");if(!X)throw Error("ml");X.drawImage(Z,0,0);X=Ork(D);t.toBlob(function(M){M?Y(M):R()},X)};
Z.src=D})};
RU9=function(D,Y){var R;if(((R=_.A(D,_.$I))==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z;_.MX((Z=Y.hostElement)!=null?Z:Y,"yt-shorts-reset");_.P8L(_.DH().resolve(_.rt),D).then(function(X){Y49(X,Y,D)})}else{var t;
_.zA((t=Y.hostElement)!=null?t:Y,[D]).then(function(X){X&&Y49(X.data,Y,D)})}};
Y49=function(D,Y,R){if(D){var Z=_.A(D.replacementEndpoint,_.$I);if(Z){D.sequenceContinuation&&(Z.sequenceParams=D.sequenceContinuation);var t;_.MX((t=Y.hostElement)!=null?t:Y,"yt-navigate",{endpoint:D.replacementEndpoint})}else if((D==null?void 0:D.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(D==null?0:D.watchStatus)&&_.A(D.watchStatus,_.SF_)){var X;_.MX((X=Y.hostElement)!=null?X:Y,"yt-navigate",{endpoint:R})}}};
Z8p=function(D){var Y=_.DH().resolve(_.xZ),R=Vez(Y.getState())||"";Y=_.Tjl(Y.getState())||"";R=R==="ytd-browse"&&Y==="home";return _.f("web_guide_entry_enable_cache_for_non_home_pages")?(D=(D==null?void 0:D.navigationEndpoint)&&_.eI(D.navigationEndpoint)==="home",{disableCache:R&&D}):{disableCache:R}};
tv9=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENT-INPUT")return!0}catch(Y){return!1}return tv9(D.parentNode)};
GN=function(D){return D?D.tagName==="A"&&D.href&&D.classList.contains("yt-simple-endpoint"):!1};
sTT=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
XLh=function(D,Y,R){if(!D)return null;var Z=GN(D);if(Z&&R)return Y=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Y);if(Z&&!R)return document.createTextNode("");if(sTT(D))return R=D.alt,D=D.dataset.emojiId,!D&&Y&&(Y=_.zb(Y,R))&&Y.isCustomEmoji&&(D=Y.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(R);Z=D.cloneNode(!1);for(var t=0;t<D.childNodes.length;++t){var X=XLh(D.childNodes[t],Y,R);X&&Z.appendChild(X)}return Z};
Vs=function(D){return D?GN(D)?D:Vs(D.lastChild):null};
uK9=function(D){return D?GN(D)?D:uK9(D.firstChild):null};
aX9=function(D){if(!D)return null;for(var Y=D.previousSibling;Y;)if(Y.nodeType===Node.ELEMENT_NODE&&Y.nodeName==="BR")Y=Y.previousSibling;else if(Y.nodeType===Node.TEXT_NODE&&/\s+/.test(Y.textContent))Y=Y.previousSibling;else break;(Y=Vs(Y))?D=Y:D=(D=D.parentNode)?Vs(D.previousElementSibling):null;return D};
Mvh=function(D){if(!D)return null;for(var Y=D.nextSibling;Y;)if(Y.nodeType===Node.ELEMENT_NODE&&Y.nodeName==="BR")Y=Y.nextSibling;else if(Y.nodeType===Node.TEXT_NODE&&/\s+/.test(Y.textContent))Y=Y.nextSibling;else break;return(Y=uK9(Y))?Y:Mvh(D.parentNode)};
Cfp=function(D){var Y=_.Tb(),R=Y.JSC$11256_getStartNode();if(!tv9(R.parentNode))return null;Y=Y.JSC$11256_getStartOffset();if(R.nodeType===Node.TEXT_NODE){var Z=_.K0(R,GN);if(Z){if(D&&Y===0||!D&&Y===R.length)return Z}else{if(D&&Y===R.length)return!R||R.nodeName==="BR"||R.nextElementSibling&&_.jV(R.nextElementSibling,"display")==="block"?null:uK9(R.nextElementSibling);if(!D&&Y===0)return R?Vs(R.previousElementSibling):null}}if(R.nodeType===Node.ELEMENT_NODE)if(D){if(0<=Y&&Y<R.childNodes.length)return uK9(R.childNodes[Y])}else if(0<
Y&&Y<=R.childNodes.length)return Vs(R.childNodes[Y-1]);return null};
WQp=function(D,Y,R){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(R){var Z=aX9(D);if(Z&&!/^\s+\S/.test(D.wholeText.substr(0,Y)))return Z}else if((Z=Mvh(D))&&!/\S\s+/.test(D.wholeText.substr(Y,D.wholeText.length)))return Z;return D.nodeType===Node.ELEMENT_NODE?R?aX9(D.childNodes[Y]):Mvh(D.childNodes[Y]):WQp(D.parentNode,Y,R)};
zUE=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var Y="";for(D=D.firstChild;D;D=D.nextSibling)Y+=zUE(D);return Y;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
S49=function(D){D=D.data;return _.S("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.S("div",null,_.S(_.y_,{text:D.title})),D.subtitle?_.S("div",{class:"ytd-menu-title-renderer__subtitle"},_.S(_.y_,{text:D.subtitle})):null)};
Tst=function(D){switch(D){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"}};
jTh=function(D){return D.map(function(Y){return{settingsRadioOptionRenderer:{title:_.Xs(Y.name),asideText:_.Xs(Y.approximateSize),id:Tst(Y.format)}}})};
FQT=function(D){if(D&&D.length!==0)return D.filter(IXp()).map(function(Y){return{settingsRadioOptionRenderer:{title:Y.name,asideText:Y.approximateSize,id:Tst(Y.formatType)}}})};
f3=function(D){if(D)return D.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
GDT=function(D,Y){D=new Set(D!=null?D:[]);if(D.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(D.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(D.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(D.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(D.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(Y)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Vvt=function(D){var Y=D.indexOf("(");return Y!==-1?D.substring(Y+1,D.length-1):D};
_.eU0=function(D,Y,R,Z,t){R||(R=fXK);var X;(X=_.A(R.commandMetadata,_.GA))!=null&&X.url||(R=Error("rl`"+JSON.stringify(R)),_.Nb(R),R=fXK);R=_.y7.unsafeClone(R);X=_.LI(_.A(R.commandMetadata,_.GA).url,"search_query",D);_.LG(location.href,"sv")==="1"&&(_.A(R,_.nn).params="EgOAAgE%3D",X=_.LI(X,"sv","1"));_.A(R,_.nn)&&(_.A(R,_.nn).query=D);X=X.replace(/%20/g,"+");_.A(R.commandMetadata,_.GA).url=X;t=_.f("desktop_enable_entity_suggest")?{entityMid:t}:{};_.DH().resolve(_.Yw).resolveCommand(R,{form:{tempData:Object.assign({},
{gs_l:Y,oq:Z!=null?Z:D},t)}})};
Aib=function(D){switch(D){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
riT=function(D,Y,R,Z,t,X){var M=_.y7.clone(nCz);M.locale=_.JQ("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;M.report={description:t||"<empty>"};t=_.JQ("SBOX_SETTINGS",{});Y=Y.join(",");var W=Date.now();D={choice_cc:Z,choice_id_cc:R,choices_sc:Y,gl:t.REQUEST_DOMAIN,hl:t.REQUEST_LANGUAGE,query:D,time:W};X&&(D.choice_additional_comment_cc=X);_.aoD(M,D)};
wL0=function(D){var Y=new Map;Y.set("authuser",_.JQ("SESSION_INDEX","0"));return _.sG(D,Y)};
vCh=function(D){var Y;return _.C(function(R){switch(R.nextAddress){case 1:if(!D||!$IK(D))return R.return(null);Y=null;switch(_.JQ("INNERTUBE_CLIENT_NAME")){case "WEB":return R.jumpTo(2);case "WEB_REMIX":Y=D.getPlayer()}R.jumpTo(3);break;case 2:return R.yield(D.getPlayerPromise(),4);case 4:Y=R.yieldResult;R.jumpTo(3);break;case 3:return R.return(Y)}})};
$IK=function(D){return["ytd-player","ytmusic-player"].includes(String(D.tagName||"").toLowerCase())};
oCK=function(D){D=Math.round(D);return D%2?D-1:D};
b8T=function(D){D=Math.round(D);return D%2===0?D-1:D};
yit=function(D){var Y,R,Z;if(D=(Y=D.createPlaylistDialogFormSchema)==null?void 0:(R=Y.fieldSchemas)==null?void 0:(Z=R.title)==null?void 0:Z.validationSchema)for(Y=[D.syncStep,D.asyncStep].filter(function(t){return t!==void 0}),Y=_.a(Y),R=Y.next();!R.done;R=Y.next()){R=R.value.rules;
if(!R)break;R=_.a(R);for(R=R.next();!R.done;R=R.next())return _.A(R.value,_.Nf9)}};
lXb=function(D){var Y,R,Z;if(D=(Y=D.createPlaylistDialogFormSchema)==null?void 0:(R=Y.fieldSchemas)==null?void 0:(Z=R.visibility)==null?void 0:Z.validationSchema)for(Y=[D.syncStep,D.asyncStep].filter(function(t){return t!==void 0}),Y=_.a(Y),R=Y.next();!R.done;R=Y.next()){R=R.value.rules;
if(!R)break;R=_.a(R);for(Z=R.next();!Z.done;Z=R.next())if(Z=_.A(Z.value,NsT))return Y=void 0,(Y=Z.translations)==null?void 0:Y.visibilityNotValidErrorMessage}};
Jiu=function(){var D,Y;return(Y=(D=_.DH().resolve(_.cD(_.O4)))==null?void 0:D())!=null?Y:!1};
kDk=function(D){var Y=21;if(!D)return Y;Y+=D.headerTitle?27:0;Y+=D.headerTitle&&D.hasHeaderActionHeader?4:0;return Y+=D.headerTitle&&D.headerSubtitle?16:0};
UIu=function(D){var Y=0;if(!D)return Y;Y+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton?48:0;Y+=D.footerTrailingLabel||D.footerLeadingLabel?30:0;return Y+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton||!D.footerTrailingLabel&&!D.footerLeadingLabel?0:12};
KQK=function(D){var Y=new _.j$,R=D;return{subscribe:function(Z){Y.subscribe("changed",Z)},
dispatch:function(Z,t){var X=R;Z==="Touch Start"?R=Object.assign({},X,{isAnimating:!1,initialY:t.event.touches[0].clientY}):Z==="Touch Move"?(Z=Math.min(t.fullContentWrapperHeight,t.contentHeightMap[t.contentWrapperId]+kDk(t.header)-UIu(t.footer)),R=Object.assign({},X,{currentY:Math.max(t.contentScrollable?-1*(X.initialY-24):0,t.event.touches[0].clientY-X.initialY),maxHeightForContentWrapper:Math.min(Z,Math.max(0,(X.isFullScreen?Z:t.contentWrapperHeight)-X.currentY))})):R=Z==="Snap To Full Screen"?
Object.assign({},X,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:t.maxHeight}):Z==="Snap To Neutral Position"?Object.assign({},X,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):Z==="Close Sheet"?Object.assign({},X,{isAnimating:!0,currentY:t.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:t.maxHeight}):X;Y.publish("changed",R)}}};
hUk=function(D){return _.F4(function(Y){D(Y);return!1})};
LQK=function(){_.DH().resolve(_.y$).closeSheet()};
mIT=function(D){var Y,R,Z,t,X,M,W,z,I,F,G;return{headerTitle:(Y=D.headerTitle)==null?void 0:Y.call(D),headerSubtitle:(R=D.headerSubtitle)==null?void 0:R.call(D),headerActionHeader:D.headerActionHeader,footerPrimaryButton:D.footerPrimaryButton,footerSecondaryButton:D.footerSecondaryButton,footerButtonType:(Z=D.footerButtonType)==null?void 0:Z.call(D),footerLeadingLabel:(t=D.footerLeadingLabel)==null?void 0:t.call(D),footerTrailingLabel:(X=D.footerTrailingLabel)==null?void 0:X.call(D),shouldShowIcons:(M=
D.shouldShowIcons)==null?void 0:M.call(D),skipContentClick:(W=D.skipContentClick)==null?void 0:W.call(D),additionalClassName:(z=D.additionalClassName)==null?void 0:z.call(D),onClosedCallback:D.onClosedCallback,focusOnClose:(I=D.focusOnClose)==null?void 0:I.call(D),isDisabled:(F=D.isDisabled)==null?void 0:F.call(D),disabledCommand:(G=D.disabledCommand)==null?void 0:G.call(D),headerFn:D.headerFn,contentFn:D.contentFn,footerFn:D.footerFn,hasHeaderFn:D.hasHeaderFn(),hasContentFn:D.hasContentFn(),hasFooterFn:D.hasFooterFn(),
hasFooterPrimaryButton:D.hasFooterPrimaryButton(),hasFooterSecondaryButton:D.hasFooterSecondaryButton(),hasHeaderActionHeader:D.hasHeaderActionHeader()}};
q4b=function(D){switch(D){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""}};
H8b=function(D){switch(D){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""}};
xIu=function(D){switch(D){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""}};
PfK=function(D,Y,R){Y.forEach(function(Z){_.GJ(_.DH().resolve(_.ya),Z)});
_.CX(D,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",R])};
ECk=function(D,Y,R,Z){var t=_.A(R,_.E_).commandLifeCycleConfig;t&&t.onStartCommand&&_.Se(D,[t.onStartCommand],Y);_.Pl(Y);var X=_.ED.instance;X&&_.g1(X,R)?_.d1(X,R,Z).then(function(M){if(!M||(M==null?0:M.error))return M=_.A(R,_.E_).serializedTransactionFlowLoggingParams,_.Q_(Y),_.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M));_.Q_(Y);return{data:M}}).then(function(M){_.Q_(Y);
QTE(M.data);var W=M.data.command;W&&_.Se(D,[W],Y);W=Bst(R,M.data);if(!W){var z=M.data;M=!1;if(z&&z.command&&_.A(z.command,_.je)){var I;z=((I=_.A(z.command,_.je))==null?void 0:I.commands)||[];for(I=0;I<z.length;I++)if(_.A(z[I],_.CuL)){M=!0;break}}M||_.kZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!W&&t&&t.onSuccessCommand?_.Se(D,[t.onSuccessCommand],Y):W&&t&&t.onFailureCommand&&_.Se(D,[t.onFailureCommand],Y)},function(){_.Q_(Y);
t&&t.onFailureCommand&&_.Se(D,[t.onFailureCommand],Y);pLI(R)}):_.Nb(Error("Dl"),"ERROR")};
gC9=function(D,Y,R){var Z=[Y];R&&Z.push(R);return _.zA(D,Z).then(function(t){var X=_.A(Y,_.E_).serializedTransactionFlowLoggingParams,M=t.data,W=Bst(Y,M);W?t=_.lf(new ez(W,X)):QTE(M);return t},function(){var t=_.A(Y,_.E_).serializedTransactionFlowLoggingParams;
pLI(Y);return _.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",t))})};
Bst=function(D,Y){D=_.A(D,_.E_).serializedTransactionFlowLoggingParams;var R=null;switch(Y.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":R="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":R="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":R="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}R?_.d$(R,D):ua0(D);return R};
pLI=function(D){_.d$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.A(D,_.E_).serializedTransactionFlowLoggingParams)};
QTE=function(D){if(D.trackingParams){var Y=_.K2(),R=_.Ud();Y&&R&&_.Qk(Y,R,_.oT(D.trackingParams))}};
dIk=function(D,Y,R){var Z=_.ED.instance,t=_.v15(_.JQ("YPC_MB_URL")),X=(new _.w2n).init(),M=_.$5r(),W=_.A(R,_.XM1).languageCode;W===void 0?_.Nb(Error("Fi"),"ERROR"):_.w3([X,t]).then(function(){var z={ctk:payments.business.integration.ClientTokenFactory.createClientToken(W,M)};Z&&_.g1(Z,R)?_.d1(Z,R,z).then(function(I){return{data:I}}).then(function(I){_.MX(Y,"yt-service-request-completed",I);
I.code!=="ERROR"&&(I=I.data.command)&&_.Se(D,[I],Y)}):_.Nb(Error("Dl"),"ERROR")})};
ci0=function(D,Y,R,Z){var t=_.ED.instance;t&&_.g1(t,R)?_.d1(t,R,Z).then(function(X){return{data:X}}).then(function(X){i80(D,Y,R,X)},function(){O8K(R)}):(t=_.DH().resolve(_.cD(_.Kn)))&&t.requestDataForServiceEndpoint(R,Z).then(function(X){i80(D,Y,R,X)},function(){O8K(R)})};
i80=function(D,Y,R,Z){_.MX(Y,"yt-service-request-completed",Z);if(Z.code&&Z.code=="ERROR")O8K(R);else{(Z=Z.data.commands)&&_.Se(D,Z,Y);var t;(D=(t=_.A(R,_.zuU))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&D&&_.iO("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",D)}};
O8K=function(D){var Y;(D=(Y=_.A(D,_.zuU))==null?void 0:Y.serializedYpcPauseFlowLoggingParams)&&D&&_.iO("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Rl9=function(D,Y,R){var Z=_.ED.instance;Z&&_.g1(Z,R)?_.d1(Z,R).then(function(t){return{data:t}}).then(function(t){DWT(D,Y,R,t)},function(){YDu(R)}):(Z=_.DH().resolve(_.cD(_.Kn)))&&Z.requestDataForServiceEndpoint(R).then(function(t){DWT(D,Y,R,t)},function(){YDu(R)})};
DWT=function(D,Y,R,Z){_.MX(Y,"yt-service-request-completed",Z);Z.code&&Z.code=="ERROR"?YDu(R):((Z=Z.data.commands)&&_.Se(D,Z,Y),(D=_.A(R,_.ScL).serializedYpcResumeFlowLoggingParams)&&D&&_.iO("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",D))};
YDu=function(D){(D=_.A(D,_.ScL).serializedYpcResumeFlowLoggingParams)&&D&&_.iO("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
ZBI=function(D){D=D===void 0?{}:D;_.DH().resolve(_.Ei4).showFeedbackDialog(D.customProductData,D.feedbackContent,D.onFeedbackSubmitted,D.bucket)};
t7h=function(D){D=D===void 0?{}:D;_.DH().resolve(_.Ei4).showHelpDialog(D.helpContext,D.articleId,D.productData)};
stk=function(){t7h()};
XN9=function(){ZBI()};
aTK=function(D,Y,R){var Z,t,X,M,W,z,I;return _.C(function(F){switch(F.nextAddress){case 1:Z=_.A(D,u4T);if((t=Z)==null?0:t.productId){z={productId:Z.productId,bucket:Z.bucket,enableAnonymousFeedback:(W=Z.enableAnonymousFeedback)!=null?W:!0,allowNonLoggedInFeedback:!0};I={feedbackChoice:R.feedbackChoice};if(!_.f("web_collect_offline_state")){F.jumpTo(8);break}_.SX(F,9);return F.yield(ebb(I),11)}M={bucket:(X=Z)==null?void 0:X.bucket};if(!_.f("web_collect_offline_state")){F.jumpTo(4);break}M.customProductData=
{};_.SX(F,5);return F.yield(ebb(M.customProductData),7);case 7:_.xw(F,4);break;case 5:_.Gl(F);case 4:ZBI(M);F.jumpTo(0);break;case 11:_.xw(F,8);break;case 9:_.Gl(F);case 8:_.SIo(I),_.zfS("GFEEDBACK",I),Z.productId==="5295751"&&(I.client_attestation=Number(_.JQ("CATSTAT",0))),Z.productId==="5295751"&&(I.client_time=Date.now()/1E3/3600),Z.productId==="5295751"&&(I.original_playback_id=_.iAL||""),_.aoD(z,I),_.V9(F)}})};
M7t=function(D){if(D=_.A(D,_.nXl)){var Y={bucket:D.bucketIdentifier};D.additionalDatas&&(Y.customProductData={},D.additionalDatas.forEach(function(R){if(R=R.userFeedbackEndpointProductSpecificValueData)Y.customProductData[R.key]=R.value}));
ZBI(Y)}};
CqE=function(D){var Y=_.Bm.getInstance();var R=_.fX("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Z=_.fX("DELETE",void 0,"Delete"),t=_.fX("CANCEL",void 0,"Cancel");R=$7k(R,void 0,Z,t,{signal:"DELETE_ALL_DOWNLOADS"});_.hH(Y,[{openPopupAction:R}],D)};
zlb=function(){return _.C(function(D){return D.nextAddress==1?D.yield(_.DH().resolve(_.Iq),2):D.yield(WIK(),0)})};
SDh=function(D){var Y,R;return _.C(function(Z){return Z.nextAddress==1?(R=(Y=_.A(D,_.qb))==null?void 0:Y.targetId)?Z.yield(_.DH().resolve(_.Iq),3):Z.jumpTo(0):Z.yield(_.DH().resolve(_.ja).deleteVideo(R),0)})};
jtk=function(D){var Y,R;return _.C(function(Z){return Z.nextAddress==1?(R=(Y=_.A(D,_.qb))==null?void 0:Y.targetId)?Z.yield(_.DH().resolve(_.Iq),3):Z.jumpTo(0):Z.yield(T1u(_.DH().resolve(_.ja),R),0)})};
FIp=function(D){var Y,R;return _.C(function(Z){return(R=(Y=_.A(D,_.qb))==null?void 0:Y.targetId)?Z.yield(ITt(R),0):Z.jumpTo(0)})};
V7h=function(){_.f("kevlar_woffle_refresh_dl_load_killswitch")||Gf0()};
elI=function(){_.f("kevlar_woffle")&&_.J6.instance&&fTt()};
nP0=function(D){var Y;if((Y=_.A(D,_.Vi))==null||!Y.videoId)return!1;ApI(_.DH().resolve(_.ja),_.A(D,_.Vi),D.clickTrackingParams);return!0};
wNK=function(D){var Y;if((Y=_.A(D,_.eG))==null||!Y.playlistId)return!1;rpt(_.DH().resolve(_.ja),_.A(D,_.eG),D.clickTrackingParams);return!0};
vPI=function(D){var Y=_.A(D,_.Oy4);(Y==null?void 0:Y.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(Y==null?void 0:Y.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||$Wp(_.DH().resolve(_.ja),_.A(D,_.Oy4))};
bBk=function(D){D=_.A(D,_.bJV);var Y;(D==null?0:(Y=D.actions)==null?0:Y.length)&&oPI(D)};
lTI=function(D){var Y,R;return _.C(function(Z){Y=_.A(D,ypT);return(R=Y)!=null&&R.localWatchHistoryCommandType?Z.yield(N1T(Y),0):Z.return()})};
Jp0=function(D){setTimeout(function(){requestAnimationFrame(D)},80)};
kfz=function(D){return Object.entries(D).map(function(Y){return Y.join(":")}).join(";")};
KIp=function(D){var Y,R,Z;_.C(function(t){if(t.nextAddress==1)return t.yield(UWE(),2);Y=t.yieldResult;R=_.GD.instance;switch(Y){case "granted":Z=D.getLocationCommand;break;case "denied":Z=D.openDeniedDialogAction;break;case "prompt":Z=D.openCollectionDialogAction;break;default:Z=D.openCollectionDialogAction}Z&&R.resolveCommand(Z);_.V9(t)})};
UWE=function(){var D,Y;return _.C(function(R){if(R.nextAddress==1)return D="prompt",navigator.permissions?R.yield(navigator.permissions.query({name:"geolocation"}),3):R.jumpTo(2);R.nextAddress!=2&&(Y=R.yieldResult,D=Y.state);return R.return(D)})};
LI9=function(){_.C(function(D){return D.yield(_.hl9(),0)})};
mWI=function(){var D,Y,R;return _.C(function(Z){if(Z.nextAddress==1)return D=_.DH().resolve(_.h6),D?Z.yield(_.d1(D,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Jk(Error("Gl")),Z.return(void 0));if(Y=Z.yieldResult){if(Y.errorMetadata)return _.Jk(Error("Hl`"+Y.errorMetadata.status+"`"+Y.error)),Z.return(void 0);R=Y.datasyncIds;_.iEz=R.length;return Z.return(R)}_.Jk(Error("Il"));return Z.return(void 0)})};
qDh=function(){mWI().then(function(D){D&&(Py9(D),zbb(D),UAE(D),r4K(D))})};
HBz=function(D){_.yc.addLowPriorityJob(function(){var Y,R,Z,t,X;return _.C(function(M){switch(M.nextAddress){case 1:if(_.f("ytidb_clear_optimizations_killswitch")){M.jumpTo(2);break}Y=_.fv("clear");if(Y.startsWith("V")&&Y.endsWith("||")){var W=[Y];Py9(W);zbb(W);UAE(W);r4K(W);return M.return()}R=KU9();Z=wC9();return M.yield(S7I(),3);case 3:return t=M.yieldResult,M.yield(QDh(),4);case 4:if(X=M.yieldResult,!(R||Z||t||X))return M.return();case 2:D.isNetworkAvailable()?qDh():D.listenOnce("publicytnetworkstatus-online",
qDh),_.V9(M)}})})};
AY=function(D){D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.i0(D)}}}};_.GD.instance&&_.GD.instance.resolveCommand(D)};
xWk=function(D){if(D){var Y=_.n8();_.TJ(Y,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var R=238708;break;case 2:R=238715;break;case 3:R=238710;break;case 6:R=238709}R&&(D=_.Ai(Y,{veType:R}))&&_.Fq(Y,D)}};
PqE=function(D){if(D){var Y=_.n8();_.TJ(Y,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var R=238714;break;case 2:R=238711;break;case 8:R=238709;break;case 7:R=238713;break;case 3:case 4:case 5:R=238712}R&&(D=_.Ai(Y,{veType:R}))&&_.Fq(Y,D)}};
QtT=function(D){switch(D.latencyType){case 0:_.U7("consent_primitive_flow");_.KX("cpit",D.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.KX("cpist",D.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.KX("cprtif",D.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.KX("cprtli",D.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.KX("cprt",D.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.KX("cpdt",D.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.KX("cpjct",D.timestampEpochMillis,"consent_primitive_flow")}};
Ym9=function(D,Y){var R,Z,t,X,M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q,E;return _.C(function(B){switch(B.nextAddress){case 1:_.SX(B,2);(Z=(R=_.A(D,B1K))==null?void 0:R.serializedConsentRequest)||(Z=(t=_.A(D,pNt))==null?void 0:t.serializedConsentRequest);Z&&(X=EP9(_.dr(Z)));if(X===void 0)return B.return();M=gPk(X);M.latencyCallback=QtT;Y&&dWK(M,function(){Y.then(function(O){O.pauseVideo();(new iBh).increment()})});
return((W=_.A(D,B1K))==null?void 0:W.consentAction)==="CONSENT_ACTION_PREWARM"||((z=_.A(D,pNt))==null?void 0:z.consentAction)==="CONSENT_ACTION_PREWARM"?B.yield(OBK(M),5):B.yield(cpt(M),6);case 6:I=B.yieldResult;F=_.r0(I,n3);if(F===1){if(((G=_.Ub(I,rj,1,n3))==null?void 0:_.lh(G,1))===1||((V=_.Ub(I,rj,1,n3))==null?void 0:_.lh(V,1))===2||((e=_.Ub(I,rj,1,n3))==null?void 0:_.lh(e,1))===3)_.A(D,pNt)?AY(_.fX("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
AY(_.fX("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));xWk((r=_.Ub(I,rj,1,n3))==null?void 0:_.lh(r,1),_.Yh(I,DPp,3,_.R0()))}else F===2?(((l=wj(I))==null?void 0:_.lh(l,1))===5?_.A(D,pNt)?AY(_.fX("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):AY(_.fX("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((U=wj(I))==null?void 0:_.lh(U,1))===1||((K=wj(I))==null?void 0:_.lh(K,1))===4?AY(_.fX("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((H=wj(I))==null?void 0:_.lh(H,1))===7&&((c=X)==null?void 0:(Q=_.tP(c,$D,4))==null?void 0:_.lh(Q,4))!==1&&AY(_.fX("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),PqE((E=wj(I))==null?void 0:_.lh(E,1))):AY(_.fX("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));B.jumpTo(5);break;case 5:_.xw(B,0);break;case 2:_.Gl(B),AY(_.fX("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.V9(B)}})};
ZHT=function(){if(!RFK.has("Worker")){RFK.set("Worker",!0);var D={api:"BROWSER_API_WEB_WORKER"};D.available="Worker"in window?!0:!1;_.bo("apiTest",D)}};
tGt=function(D){return typeof D==="undefined"?"-1":String(Math.ceil(D/1048576))};
a4I=function(D,Y){sPK(new XKK(_.A(Y,uUk).addToken,_.A(Y,uUk).commonToken)).then(function(){_.MX(D,"yt-invoke-instrument-manager-action-completed")},function(R){_.MX(D,"yt-invoke-instrument-manager-action-error",R)})};
MGh=function(){var D,Y;return(Y=(D=window).matchMedia)==null?void 0:Y.call(D,"(prefers-reduced-motion: reduce)").matches};
CIu=function(D){var Y=_.DH().resolve(_.cD(_.f1));if(Y&&Y.isAnyTransitionEnabled){var R={};Y.viewTransitionCoordinator.registerElement(D,(R.slide="miniplayer-page-transition",R["lockup-to-watch"]="miniplayer-page-transition",R["learning-journey"]="miniplayer-page-transition",R))}};
Wpk=function(D,Y,R){return{horizontalAlignment:D.x+R.width/2<Y.width/2?"west":"east",verticalAlignment:D.y+R.height/2<Y.height/2?"north":"south"}};
SmK=function(D,Y,R,Z,t){t=t===void 0?new _.lm(0,0):t;D=zF9(D,Y,R,Z);return new _.lm(D.x+t.x,D.y+t.y)};
zF9=function(D,Y,R,Z){return new _.lm(D==="west"?16:R.width-Z.width-16,Y==="north"?16:R.height-Z.height-16)};
Tqu=function(D,Y){var R=0;D&&(R+=76);Y&&(R+=285);return R};
jP9=function(D){return _.qp(D)};
I4h=function(D){var Y=1;D=D.split(":");for(var R=[];Y>0&&D.length;)R.push(D.shift()),Y--;D.length&&R.push(D.join(":"));return R};
FpE=function(D){var Y=new _.MZ;return _.Kw(Y,11,D)};
GPK=function(D){var Y={};D=D.getAllResponseHeaders().split("\r\n");for(var R=0;R<D.length;R++)if(!_.M$(D[R])){var Z=I4h(D[R]),t=Z[0];Z=Z[1];if(typeof Z==="string"){Z=Z.trim();var X=Y[t]||[];Y[t]=X;X.push(Z)}}return _.y7.map(Y,function(M){return M.join(", ")})};
ka=function(D,Y){return D.JSC$9765_xhr_?D.JSC$9765_xhr_.getResponseHeader(Y):null};
VGE=function(D,Y){if(D.isDisposed())throw Error("Ea");D.x6.d6("n");var R=_.Jl(D.x6,function(){return D.hrK([Y.lp,Y.jrl,Y.br9,Y.cMy])},"n");
D.x6.i35(R.length);D.x6.bH();return R};
vw=function(D,Y,R){Array.isArray(R)||(R=[String(R)]);_.hp7(D.JSC$10000_queryData_,Y,R);return D};
fTt=function(){var D=_.J6.instance;_.C(function(Y){return D.deferredInstallPrompt?Y.yield(D.deferredInstallPrompt.prompt(),0):Y.jumpTo(0)})};
f4K=function(D,Y,R){if(_.xn(D))_.xs(D,Y,R);else for(D=_.iIL(D);;){var Z=D.next();if(Z.done)break;Y.call(R,Z.value,void 0,D)}};
eF0={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}"]};
eF0={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 Ax0=function(D,Y){var R=[];f4K(Y,function(Z){try{var t=_.C2.prototype.getWrapper.call(this,Z,!0)}catch(X){if(X=="Storage: Invalid value was encountered")return;throw X;}t===void 0?R.push(Z):_.db7(t)&&R.push(Z)},D);
return R},ncI=function(D,Y){Ax0(D,Y).forEach(function(R){_.C2.prototype.remove.call(this,R)},D)},rxK=function(D){var Y=_.Qm;
Y._minimumZ=Math.max(Y._minimumZ,D)},wKI=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],$Pb=function(D,Y){_.OG(D.vm);D.vm=Y},vch=function(D,Y,R,Z){D.setState(5);
var t=!!D.mrp&&wKI.includes(_.gf(D.mrp)||"");try{var X=new _.kB({program:Y,globalName:R,gl6:{disable:!_.f("att_web_record_metrics")||!_.f("att_skip_metrics_for_cookieless_domains_ks")&&t,yz:"aGIf"}});X.mIM.then(function(){D.setState(6);Z&&Z(Y)});
$Pb(D,X)}catch(M){D.setState(7),M instanceof Error&&_.Jk(M)}},oc0=function(D,Y,R,Z,t,X){var M=M===void 0?"trayride":M;
R?(D.setState(2),_.PO(_.we(R),function(){if(window[M])vch(D,Z,M,t);else{D.setState(3);var W=_.gSy(R),z=document.getElementById(W);z&&(_.O8j(W),z.parentNode.removeChild(z));_.Jk(new _.AT("BL:ULB",R))}},X)):Y?(X=_.I0("SCRIPT"),Y instanceof _.p$?_.gg(X,Y):X.textContent=Y,X.nonce=_.BZ(document),document.head.appendChild(X),document.head.removeChild(X),window[M]?vch(D,Z,M,t):(D.setState(4),_.Jk(new _.AT("BL:ULBJ")))):_.Jk(new _.AT("BL:ULV"))},bH9=function(){this.state=1;
this.vm=null;this.mrp=void 0};
_.u=bH9.prototype;_.u.initialize=function(D,Y,R,Z){this.mrp=Z;if(D.program){var t;Z=(t=D.interpreterUrl)!=null?t:null;if(D.interpreterSafeScript)t=_.fho(D.interpreterSafeScript);else{var X;t=(X=D.interpreterScript)!=null?X:null}D.interpreterSafeUrl&&(Z=_.Ns(D.interpreterSafeUrl).toString());oc0(this,t,Z,D.program,Y,R)}else _.Jk(Error("jf"))};
_.u.isInitialized=function(){return!!this.vm};
_.u.getState=function(){return this.state};
_.u.isLoading=function(){return this.state===2};
_.u.invoke=function(D){D=D===void 0?{}:D;var Y;this.vm?Y=VGE(this.vm,{lp:D}):Y=null;return Y};
_.u.dispose=function(){$Pb(this,null);this.setState(8)};
_.u.setState=function(D){this.state=D};
var yxE=function(D,Y){return D.vm.snapshot(Y)},Nq9=function(D,Y){var R=_.ZH("botguard_async_snapshot_timeout_ms",3E3);
Y=Y===void 0?{}:Y;R=R===void 0?3E3:R;return D.vm?new Promise(function(Z,t){var X=!1,M=_.yc.addJob(function(){X=!0;t(Error("kf"))},1,R);
D.vm?yxE(D,{lp:Y}).then(function(W){_.yc.cancelJob(M);X||Z(W)}).catch(function(W){_.yc.cancelJob(M);
X||t(W)}):(_.yc.cancelJob(M),Z(null))}):Promise.resolve(null)},l4I=["att/log"],fXK;
fXK={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var JxT={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},kPb=function(D,Y){return _.eC(D,{mode:"readwrite",enableRetries:!0},function(R){return _.byo(R,Y,"settingEntity")})},UPu=function(D,Y,R){return _.eC(D,{mode:"readonly",
enableRetries:!0},function(Z){return _.kqY(Z,Y,R)})},Kp9=function(D){if(!D.storage)return!1;
a:{if(D.storage){try{var Y=D.storage.get("TLPQtimestamp")}catch(R){}D=Number(Y);if(!isNaN(D))break a}D=void 0}return D?Date.now()-D<864E5:!1},hFI=function(D){if(D.storage){try{var Y=D.storage.get("TLPQindex")}catch(R){}D=Number(Y);
if(!isNaN(D))return D}},LpI=function(D,Y){D.queueProxy&&Y.forEach(function(R){if(R.videoId&&R.trackingParams&&D.queueProxy instanceof _.mO){var Z=_.K2();
D.queueProxy.attributionData.set(R.videoId,{enqueueingVe:_.oT(R.trackingParams).getAsJson(),enqueueingCsn:Z?Z:void 0,clientEnqueueingTimeMs:Math.floor((0,_.DO)()).toString()})}})},mPK=function(D){var Y=_.jmb(D);
Y!=D.currentSnapState_&&(D.currentSnapState_=Y,D.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},oY=function(D){this.JSC$13067_networkManager_=D;
this.partCallbacks_=[]};
oY.prototype.getCacheKeyForEndpoint=function(D){return _.z8n(D,!1)};
oY.prototype.onPartsCallback_=function(D){this.partCallbacks_.forEach(function(Y){D&&Y(D)})};
var bF=function(D,Y,R){oY.call(this,D);this.player_=Y;this.autoplayData_=R};
_.n(bF,oY);bF.prototype.getCacheKeyForEndpoint=function(D){return _.z8n(D,!!this.autoplayData_)};
bF.prototype.getTempData=function(D,Y){Y=Y.timeBeforeNextVideo;D={itct:D.clickTrackingParams,lact:_.Ro(),pbis:Y,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(D.autonav=1);return D};
bF.prototype.getXhrParams=function(D){return Object.assign({pbj:"prefetch"},D)};
bF.prototype.getParams=function(D){D={frags:D.fragmentsRequested.join(",")};_.f("kevlar_droppable_prefetchable_requests")&&(D.prefetch=1);return D};
var qmI=function(D){D.playerEvents_.forEach(function(Y){D.player.removeEventListener(Y.eventName,Y.callback)});
D.playerEvents_.length=0},ys=function(D,Y,R){this.player=D;
this.JSC$13077_taskManager=Y;this.prefetchDelay=R;this.completionResolver_=null;this.playerEvents_=[]};
ys.prototype.start=function(){var D=this;this.completionResolver_=_.iq();_.$B(this.completionResolver_.promise,function(){qmI(D);D.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var HHT=function(D,Y,R){D.player.addEventListener(Y,R);D.playerEvents_.push({eventName:Y,callback:R})},xPK={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},PI9={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},QPh=function(D,Y,R){ys.call(this,D,Y,R);this.cueId_="playbackTrigger-"+Math.random()};
_.n(QPh,ys);
QPh.prototype.prepareTrigger=function(D){var Y=this,R=this.player.getDuration(),Z=this.player.getVideoData(),t=Z.isLive&&Z.hasProgressBarBoundaries;if(t&&Z.progressBarEndPositionUtcTimeMillis){var X=Z.progressBarEndPositionUtcTimeMillis/1E3;isNaN(X)||(R=X)}var M=0;this.prefetchDelay>=0?t?Z.progressBarStartPositionUtcTimeMillis&&(Z=Z.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Z)||(M=Z+this.prefetchDelay)):M=this.prefetchDelay:M=R+this.prefetchDelay;t?this.player.addUtcCueRange(this.cueId_,M,R):
this.player.addCueRange(this.cueId_,M,R);_.$B(D.promise,function(){Y.player.removeCueRange(Y.cueId_)});
HHT(this,"onCueRangeEnter",function(W){W==Y.cueId_&&D.resolve(R-M)})};
var Bqb=function(D,Y){D.fragmentConfiguration_[Y].requiredKeys.every(function(R){return!!D.prefetchedData_[R]})&&(D.validatedFragments_.push(Y),Y=D.missingFragments_.indexOf(Y),Y!==-1&&D.missingFragments_.splice(Y,1))},pKb=function(D){D.prefetchedFragments_.forEach(function(Y){Bqb(D,Y)})},EcK=function(D,Y,R){this.pageFragments_=D;
this.prefetchedFragments_=Y;this.fragmentConfiguration_=PI9;this.prefetchedData_=R;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;pKb(this)},gct=function(){},dPk=function(D){this.JSC$13091_playlistManager_=D};
_.n(dPk,gct);dPk.prototype.getPrefetchEndpoint=function(){return this.JSC$13091_playlistManager_.getAutoplayEndpoint()};
var iH9=function(D){this.autonavEndpoints_=D};
_.n(iH9,gct);iH9.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var OHz=function(D,Y,R,Z,t){this.autonavEndpoints=D;this.foregroundTrigger=Y;this.backgroundTrigger=R;this.pageType=Z;this.isInPlaylist=t},cxK=function(D,Y){if(D.webPrefetchData&&D.webPrefetchData.navigationEndpoints&&D.webPrefetchData.navigationEndpoints.length){D=D.webPrefetchData.navigationEndpoints;
var R=_.A(D[0],_.Od);if(R.watchEndpointSupportedPrefetchConfig&&R.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Z=R.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;R=Z.playbackRelativeSecondsPrefetchCondition;R=typeof R==="number"&&Math.abs(R)<Y.videoDuration?R:void 0;Z=Z.countdownUiRelativeSecondsPrefetchCondition;Z=typeof Z!=="number"||_.f("prefetch_job_config_cleanup_ks")&&Y.inPlaylist?void 0:Z;if(typeof Z==="number")return new OHz(D,Y.makeUpNextTrigger(Z),Y.makePlaybackTrigger(Z),
"watch",Y.inPlaylist);if(typeof R==="number")return new OHz(D,Y.makePlaybackTrigger(R),null,"watch",Y.inPlaylist)}}},DVk=function(D){return D.prefetchJobConfig_.backgroundTrigger?_.Lb(_.B7U)()==0?D.prefetchJobConfig_.backgroundTrigger:D.prefetchJobConfig_.foregroundTrigger:D.prefetchJobConfig_.foregroundTrigger},Y00=function(D){_.fg(document,"visibilitychange",D.onVisibilityChange_,!1,D)},NY=function(D){oY.call(this,D)};
_.n(NY,oY);NY.prototype.getCacheKeyForEndpoint=function(D){return oY.prototype.getCacheKeyForEndpoint.call(this,D)};
NY.prototype.getTempData=function(){return{}};
NY.prototype.getXhrParams=function(D){return D};
NY.prototype.getParams=function(){return{}};
var RIK=function(D,Y,R){var Z=D.prefetchDelay*1E3;if(Math.abs(Z)>Y)R.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var t=Z,X=Y-Z;Z<0&&(t=Y+Z,X=Math.abs(Z));var M=D.JSC$13077_taskManager.addJob(function(){R.resolve(X/1E3)},10,t);
R.promise.thenCatch(function(){D.JSC$13077_taskManager.cancelJob(M)})}},Z9h=function(D,Y,R){ys.call(this,D,Y,R)};
_.n(Z9h,ys);Z9h.prototype.prepareTrigger=function(D){var Y=this;HHT(this,"onAutonavCoundownStarted",function(R){RIK(Y,R,D)})};
var tVK=function(D){D.pendingPrefetchJob_&&(D.pendingPrefetchJob_.cancel(),D.pendingPrefetchJob_=null)},sZk=function(D,Y,R){if(!D.triggeredTargets.has(Y)){var Z=_.M47(D,Y);
Z.action=R;_.u67(D,Y,Z)}},Xlz=function(D){_.gj_();
_.uel("cpt")&&_.Jk(Error("kh"));_.ZU.requestAnimationFrame(function(){_.ZU.setTimeout(function(){_.KX("cpt");var Y=_.m3("vpl"),R=_.m3("cpt");Y&&R&&_.KX("ol",Math.max(Y,R))})});
try{_.KX("fr_s"),D()}catch(Y){_.Nb(Y)}_.ZU.requestAnimationFrame(function(){_.KX("bcp")})},uFK=function(D,Y){D.serviceEndpointHandlers.push(Y)},axI=function(D,Y){Y=D.pendingPages_.indexOf(Y);
Y>-1&&D.pendingPages_.splice(Y,1)},MVE=function(D,Y){var R=_.VdL.indexOf(Y);
R>-1&&_.VdL.splice(R,1);D.targetPage_==Y?(D.abort(),_.eq_(D)):axI(D,Y)},CEK=function(D,Y,R,Z){Y={challenge:Y};
R&&(Y.webResponse=R);return _.Hk(D.innertubeTransportService,Y,_.YI(l4I),Z)},Wuu=function(D,Y,R){if(!Y.challenge)throw Error("ni");
if(Y.botguardData&&Y.botguardData.program){var Z=new bH9;Z.initialize(Y.botguardData,function(){Nq9(Z,{atr_challenge:Y.challenge}).then(function(t){if(!t)throw Error("oi");return CEK(D,Y.challenge,t,R)}).catch(function(t){_.Jk(t);
return CEK(D,Y.challenge,void 0,R)})},void 0)}else CEK(D,Y.challenge,void 0,R)},zIk=function(D,Y,R){var Z={};
Y.ids&&(Z.ids=[].concat(_.oK(Y.ids)));Y.engagementType&&(Z.engagementType=Y.engagementType);return _.Hk(D.innertubeTransportService,Z,_.YI(_.OOL),R).then(function(t){if(!t)throw new _.AT("GetAttestationChallenge returned falsy");Wuu(D,t,R)}).thenCatch(function(t){_.Nb(t)})},S0z=function(D,Y,R){return new _.zz(function(Z,t){var X;
return _.C(function(M){if(M.nextAddress==1){var W=M.yield,z=Y.engagementType,I=Y.ids,F={};I=_.a(I!=null?I:[]);for(var G=I.next();!G.done;G=I.next())G=G.value,G.encryptedVideoId?F.encryptedVideoId=G.encryptedVideoId:G.externalChannelId?F.externalChannelId=G.externalChannelId:G.commentId?F.commentId=G.commentId:G.externalOwnerId?F.externalOwnerId=G.externalOwnerId:G.artistId?F.artistId=G.artistId:G.playlistId?F.playlistId=G.playlistId:G.externalPostId?F.externalPostId=G.externalPostId:G.shareId&&(F.shareId=
G.shareId);return W.call(M,wyE(z,F),2)}X=M.yieldResult;if(!X.challenge)return _.Jk(Error("pi")),zIk(D,Y,R).then(Z,t),M.return();W=X;z={challenge:W.challenge};z.webResponse=W.webResponse;z.engagementType=Y.engagementType;z.ids=Y.ids;_.Hk(D.innertubeTransportService,z,_.YI(l4I),R).then(Z,t);_.V9(M)})})},JjK=function(D,Y){var R,Z,t,X;
_.C(function(M){if(M.nextAddress==1){R=_.A(Y,_.kgE);if(!(R&&R.listId&&D.response&&D.response.playingVideoId)||D.listId!==R.listId)return M.return();D.index===void 0&&(D.index=0);return M.yield(_.FCU(D.JSC$12822_playlistNetworkManager,R.listId,D.index,D.response.playingVideoId),2)}Z=M.yieldResult;if(!Z)return M.return();t=Z.playlistId;X=Z.playlistPanelRenderer;D.setPlaylistData(t,X,Z.autoplayRenderer);_.V9(M)})},TKz=function(D,Y,R){var Z=D.getParams(R),t=_.bHS(Y,Z),X=D.getTempData(Y,R);
X.endpoint=JSON.stringify(Y);_.f("enable_unknown_lact_fix_on_html5")&&(_.DH().resolve(_.bq),X.lact=_.Ro());var M={headers:{"X-YouTube-STS":_.JQ("STS"),"x-youtube-csoc":1}};_.Rb(t,X);return new _.zz(function(W,z){var I=D.getXhrParams(Z),F;_.f("kevlar_cache_on_ttl_player")&&(F=_.$Z.instance);F&&_.mSU(F,Y)?_.Evz(F,Y,X,window.location.href).then(function(G){G?W(G):z()},z):_.jS4(D.JSC$13067_networkManager_,Y,I,D.onPartsCallback_.bind(D),M).then(function(G){G?W(G):z()},z)})},jZI=function(D,Y){D.triggerPromise_=
Y.start();
D.triggerPromise_.then(function(R){var Z=D.prefetchEndpointProvider_.getPrefetchEndpoint();if(Z){var t=xPK[D.prefetchJobConfig_.pageType].prefetchedFragments;D.prefetchRequestPromise_=TKz(D.JSC$13103_networkPrefetchRequest_,Z,{fragmentsRequested:t,timeBeforeNextVideo:R});D.prefetchResponseCacheKey_=D.JSC$13103_networkPrefetchRequest_.getCacheKeyForEndpoint(Z);Y00(D);D.prefetchRequestPromise_.then(function(X){D.storePrefetchedDataCallback_(D.prefetchResponseCacheKey_,X);if(_.f("web_prefetch_preload_video")&&
t.length===1&&t[0]==="pl"&&X&&!X.playerAds&&!X.adPlacements){var M=_.A(Z,_.$I),W=M!=null,z={raw_player_response:X,watch_endpoint:M};(X=_.DH().resolve(W?_.czU:_.CH))&&Z&&X.then(function(I){W&&_.f("web_queue_preload_video")?(z.prefer_gapless=!0,I.queueNextVideo(z)):I.preloadVideoByPlayerVars(z)})}})}})},lF=function(D,Y,R,Z){this.prefetchEndpointProvider_=D;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=Y;this.prefetchJobConfig_=R;this.JSC$13103_networkPrefetchRequest_=Z;this.prefetchResponseCacheKey_=null};
lF.prototype.enqueue=function(){this.triggerPromise_||(jZI(this,DVk(this)),_.yu(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
lF.prototype.resolve=function(){this.cancel()};
lF.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.");Y00(this)};
lF.prototype.onVisibilityChange_=function(){var D=this;_.Lb(_.B7U)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){D.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||jZI(this,DVk(this))};
var IxK=function(D,Y,R,Z,t){Y&&(Y==null?0:Y.videoId)&&R&&R.entries&&_.f("kevlar_enable_shorts_prefetch_in_sequence")&&(tVK(D),Y=R.entries.map(function(X){var M;return(M=_.A(X.command,_.$I))==null?void 0:M.videoId}).indexOf(Y.videoId),R=R.entries[Y+1],R!=null&&R.command&&!_.A(R==null?void 0:R.command,_.Ly)&&(Z=new OHz([R.command],new QPh(Z,_.yc,1),null,"shorts",!1),D.pendingPrefetchJob_=new lF(new iH9(Z.autonavEndpoints),function(){return!1},Z,new NY(t)),D.pendingPrefetchJob_.enqueue()))},FuK=function(D,
Y,R,Z,t,X){var M=_.tG.getInstance();
if(!_.f("block_all_player_prefetch_requests")){tVK(D);var W=!!R.getPlaylistId(),z=R.getVideoData().isLive&&R.getVideoData().hasProgressBarBoundaries;if((M.getState()==2||W||z)&&(!R.getVideoData().isLive||z)){M={inPlaylist:W,videoDuration:R.getDuration(),makeUpNextTrigger:function(F){return new Z9h(R,_.yc,F)},
makePlaybackTrigger:function(F){return new QPh(R,_.yc,F)}};
var I=cxK(Y,M);I&&(D.pendingPrefetchJob_=new lF(I.isInPlaylist?new dPk(t):new iH9(I.autonavEndpoints),function(F,G){G=new EcK(xPK[I.pageType].pageFragments,xPK[I.pageType].prefetchedFragments,G);return _.OkD(G)?(D.prefetchCache_.set(F,G),!0):!1},I,new bF(Z,R,X,t)),D.pendingPrefetchJob_.enqueue())}}},Gb9=function(){var D=_.EH();
D.signals.parkOrScheduleJob(function(){var Y=D.storage;if(Y.storage)if(Kp9(Y)){var R=Y.getPlaylistId();Y=hFI(Y);R=!!R&&Y!==void 0}else Y.clear(),R=!1;else R=!1;if(R){R=D.pageManager.isOnWatch();a:{var Z=D.storage;if(Z.storage&&Kp9(Z)&&(Y=Z.getPlaylistId(),Z=hFI(Z),Y&&Z!==void 0)){R={recoverPlaylistCommand:{listId:Y,index:Z,openMiniplayer:!R,openListPanel:R,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}R=void 0}R&&_.hH(D.JSC$12822_actionRouter,[R],null)}},0,"ma")},VVE=function(D,Y,R,Z,t,X){var M=
_.TP(7111);
_.jF(D.JSC$18200_screenManager,M,X?_.oT(X):void 0);_.Fq(D.JSC$18200_screenManager,M,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Z,offlineId:Y,offlineabilityFormatType:R,isDefaultFormatType:t==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:t}})},fxE=function(D,Y,R,Z,t){var X,M,W,z,I;
return _.C(function(F){if(F.nextAddress==1)return F.yield(D.JSC$18200_playerApiPromise,2);X=F.yieldResult;VVE(D,Y,R,"OFFLINE_OBJECT_TYPE_PLAYLIST",Z,t);if(W=_.HaU[D.entityTypeMap.listEntityType])I={},M=(I[W]={maximumDownloadQuality:(z=R)!=null?z:void 0},I);return F.yield(X.queueOfflineAction(Y,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)})},eIt=function(D,Y){var R,Z,t,X;
return _.C(function(M){if(M.nextAddress==1)return M.yield(D.JSC$18200_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){R=M.yieldResult;if(!R)return _.Jk(new _.AT("PES is undefined")),M.return();Z=_.TL(Y,"downloadStatusEntity");return M.yield(UPu(R,Z,"downloadStatusEntity"),3)}t=M.yieldResult;return M.return((X=t)==null?void 0:X.downloadState)})},ARK=function(D,Y,R,Z,t){var X,M,W,z,I,F;
return _.C(function(G){switch(G.nextAddress){case 1:return G.yield(D.JSC$18200_playerApiPromise,2);case 2:X=G.yieldResult;VVE(D,Y,R,"OFFLINE_OBJECT_TYPE_VIDEO",Z,t);if(W=_.HaU[D.entityTypeMap.singleEntityType])I={},M=(I[W]={maximumDownloadQuality:(z=R)!=null?z:void 0},I);return G.yield(eIt(D,Y),3);case 3:F=G.yieldResult;if(F!=="DOWNLOAD_STATE_USER_DELETED"){G.jumpTo(4);break}return G.yield(D.deleteVideo(Y),4);case 4:return G.yield(X.queueOfflineAction(Y,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
M),0)}})},n6E=function(D,Y,R,Z,t){return _.C(function(X){return X.nextAddress==1?X.yield(D.deleteVideo(Y,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):X.yield(ARK(D,Y,R,Z,t),0)})},rR9=function(D,Y,R){var Z,t;
return _.C(function(X){if(X.nextAddress==1)return X.yield(D.JSC$18200_playerApiPromise,2);Z=X.yieldResult;t=_.TL(Y,"mainVideoDownloadStateEntity");return X.yield(Z.updateDownloadState(t,R),0)})},ITt=function(D){var Y=_.DH().resolve(_.ja);
return _.C(function(R){if(R.nextAddress==1)return Y.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&Y.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?R.jumpTo(2):R.yield(Y.resumeVideoDownload(D),2);if(R.nextAddress!=4)return R.yield(rR9(Y,D,Y.previousDownloadStateForVideo[D]),4);delete Y.previousDownloadStateForVideo[D];_.V9(R)})},T1u=function(D,Y){var R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$18200_playerApiPromise,2);R=Z.yieldResult;return Z.yield(R.queueOfflineAction(Y,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},WIK=function(){var D=_.DH().resolve(_.ja),Y,R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$18200_playerApiPromise,2);if(Z.nextAddress!=3)return Y=Z.yieldResult,R={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},Z.yield(Y.queueOfflineAction("!*$_ALL_ENTITIES_!*$",D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",R),3);var t=D.JSC$18200_commandHandler,X=t.resolveCommand,M=_.fX("DELETING_ALL",void 0,"Downloads are being deleted");X.call(t,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tu(M)}},
popupType:"TOAST"}});_.V9(Z)})},wlK=function(D,Y){var R,Z,t,X,M,W;
return _.C(function(z){if(z.nextAddress==1)return z.yield(D.JSC$18200_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return R=z.yieldResult,R?z.yield(UPu(R,_.y5,"downloadsPageViewConfigurationEntity"),3):(_.Jk(new _.AT("PES is undefined")),z.return());t=(Z=z.yieldResult)!=null?Z:{};W=(M=(X=t)==null?void 0:X.downloadsUpsellBannerVisibility)!=null?M:{};return W.visibleWithConnection?z.yield(Y.refreshAllStaleEntities(0),0):z.jumpTo(0)})},$VK=function(D){var Y,R;
return _.C(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$18200_prefStorage,2);Y=Z.yieldResult;return Z.return((R=Y)==null?void 0:R.get("sdois"))})},v6h=function(D){var Y,R,Z,t,X,M;
return _.C(function(W){if(W.nextAddress==1)return W.yield(D.JSC$18200_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3){Y=W.yieldResult;if(!Y)return _.Jk(new _.AT("PES is undefined")),W.return();R=_.TL("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return W.yield(UPu(Y,R,"settingEntity"),3)}Z=W.yieldResult;return W.return((M=(t=Z)==null?void 0:(X=t.settingOptionValue)==null?void 0:X.boolValue)!=null?M:!1)})},o6z=function(D,Y){var R,Z,t,X;
return _.C(function(M){switch(M.nextAddress){case 1:return((R=Y)==null?void 0:R.formatType)===void 0?M.return():M.yield(D.JSC$18200_prefStorage,2);case 2:Z=M.yieldResult;if(Z===void 0)return M.return();if(((t=Y)==null?void 0:t.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return M.yield(Z.set("lmqf",Y.formatType),8);if(((X=Y)==null?void 0:X.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){M.jumpTo(0);break}return M.yield(Z.set("lmqf",Y.formatType),6);case 6:return M.yield(Z.set("lmqflst",
Math.floor((0,_.DO)())),0);case 8:return M.yield(Z.remove("lmqflst"),0)}})},b9K=function(D){var Y,R;
return _.C(function(Z){switch(Z.nextAddress){case 1:return Z.yield(D.JSC$18200_prefStorage,2);case 2:Y=Z.yieldResult;if(!Y){Z.jumpTo(3);break}return Z.yield(Y.get("lmqflst"),4);case 4:if(R=Z.yieldResult,R!==void 0)return Z.return(R);case 3:return Z.return(0)}})},yRp=function(D){var Y,R;
return _.C(function(Z){switch(Z.nextAddress){case 1:return Z.yield(D.JSC$18200_prefStorage,2);case 2:Y=Z.yieldResult;if(Y===void 0){Z.jumpTo(3);break}return Z.yield(Y.get("lmqf"),4);case 4:if(R=Z.yieldResult,R!==void 0)return Z.return(R);case 3:return Z.return("SD")}})},rpt=function(D,Y,R){var Z,t,X,M,W,z,I,F;
_.C(function(G){switch(G.nextAddress){case 1:return G.yield(o6z(D,(Z=Y)==null?void 0:Z.actionParams),2);case 2:t=Y.playlistId;if(!t)return G.return();if(Y.action==="ACTION_ADD")return((M=Y.actionParams)==null?0:M.formatType)?G.yield(fxE(D,t,Y.actionParams.formatType,(F=Y.actionParams)==null?void 0:F.settingsAction,R),0):G.yield(D.offlineWebClientEligibility,14);if(Y.action==="ACTION_REMOVE_WITH_PROMPT"){var V=D.JSC$18200_commandHandler,e=V.resolveCommand,r=_.JQ("INNERTUBE_CLIENT_NAME");var l=r===
"WEB_REMIX"?_.fX("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.fX("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var U=r==="WEB_REMIX"?[_.fX("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];r=r==="WEB_REMIX"?_.fX("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.fX("DELETE",void 0,"Delete");var K=_.fX("CANCEL",void 0,"Cancel");l=$7k(l,U,r,K,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:t});e.call(V,{openPopupAction:l});return G.return()}if(Y.action===
"ACTION_REMOVE")return G.yield(T1u(D,t),0);if(Y.action!=="ACTION_SYNC"){G.jumpTo(0);break}return G.yield(D.JSC$18200_playerApiPromise,9);case 9:return X=G.yieldResult,G.yield(X.queueOfflineAction(t,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return W=G.yieldResult,G.yield(yRp(D),15);case 15:return z=G.yieldResult,G.yield(b9K(D),16);case 16:I=G.yieldResult,Y.onAddCommand&&D.JSC$18200_commandHandler.resolveCommand(Y.onAddCommand,{form:{preferredFormatType:z,
offlineWebClientEligibility:W,lastOfflineQualitySettingsSavedMs:I.toString()}}),G.jumpTo(0)}})},ApI=function(D,Y,R){var Z,t,X,M,W,z,I,F,G,V,e,r,l,U;
_.C(function(K){switch(K.nextAddress){case 1:return K.yield(o6z(D,(Z=Y)==null?void 0:Z.actionParams),2);case 2:t=Y.videoId;if(!t)return K.return();if(Y.action==="ACTION_REMOVE_WITH_PROMPT"){var H=D.JSC$18200_commandHandler,c=H.resolveCommand,Q=_.JQ("INNERTUBE_CLIENT_NAME");var E=Q==="WEB_REMIX"?_.fX("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.fX("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var B=Q==="WEB_REMIX"?[_.fX("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];Q=Q==="WEB_REMIX"?_.fX("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.fX("DELETE",void 0,"Delete");var O=_.fX("CANCEL",void 0,"Cancel");E=$7k(E,B,Q,O,{signal:"DELETE_DOWNLOAD",targetId:t});c.call(H,{openPopupAction:E});return K.return()}if(Y.action==="ACTION_ADD")return((V=Y.actionParams)==null?0:V.formatType)?K.yield(ARK(D,t,Y.actionParams.formatType,(U=Y.actionParams)==null?void 0:U.settingsAction,R),0):K.yield(D.offlineWebClientEligibility,23);if(Y.action==="ACTION_RETRY")return K.yield(yRp(D),
19);if(Y.action==="ACTION_PAUSE")return K.yield(D.pauseVideoDownload(t),0);if(Y.action==="ACTION_RESUME")return K.yield(D.resumeVideoDownload(t),0);if(Y.action!=="ACTION_REMOVE"){K.jumpTo(0);break}return K.yield(eIt(D,t),13);case 13:return X=K.yieldResult,D.previousDownloadStateForVideo[t]=(M=X)!=null?M:"DOWNLOAD_STATE_UNKNOWN",K.yield(rR9(D,t,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(D.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&D.previousDownloadStateForVideo[t]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){K.jumpTo(15);break}return K.yield(D.pauseVideoDownload(t),15);case 15:H=_.fX("DELETED_VIDEO",void 0,"Video deleted from downloads.");c=_.fX("UNDO_ACTION",void 0,"Undo");E=_.fX("CLOSE",void 0,"Close");W={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.tu(H),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.tu(c),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:H+" "+c}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:t}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:E}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};D.JSC$18200_commandHandler.resolveCommand(W);
K.jumpTo(0);break;case 19:z=K.yieldResult;z==="UNKNOWN_FORMAT_TYPE"&&(z="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((F=Y.actionParams)==null?0:F.formatType)z=Y.actionParams.formatType,I=(G=Y.actionParams)==null?void 0:G.settingsAction;return K.yield(n6E(D,t,z,I,R),20);case 20:return K.return();case 23:return e=K.yieldResult,K.yield(yRp(D),24);case 24:return r=K.yieldResult,K.yield(b9K(D),25);case 25:l=K.yieldResult,Y.onAddCommand&&D.JSC$18200_commandHandler.resolveCommand(Y.onAddCommand,
{form:{preferredFormatType:r,offlineWebClientEligibility:e,lastOfflineQualitySettingsSavedMs:l.toString()}}),K.jumpTo(0)}})},NKk=function(D,Y){var R,Z,t,X,M,W,z;
return _.C(function(I){if(I.nextAddress==1)return I.yield(D.JSC$18200_persistentStorePromiseAccessor(),2);R=I.yieldResult;if(!R)return _.Jk(new _.AT("PES is undefined")),I.return();if((Z=Y)==null||!Z.settingItemId)return I.return();t=Y;X=t.settingItemId;M=t.boolValue;W=_.TL(X,"settingEntity");z={key:W,settingOptionValue:{boolValue:M}};return I.yield(kPb(R,z),0)})},lxI=function(D,Y){var R,Z,t,X,M,W,z;
return _.C(function(I){switch(I.nextAddress){case 1:return I.yield(D.JSC$18200_prefStorage,2);case 2:return R=I.yieldResult,Z=_.nX(),I.yield(D.JSC$18200_persistentStorePromiseAccessor(),3);case 3:return t=I.yieldResult,R?t?I.yield(R.get("sdois"),4):(_.Jk(new _.AT("PES is undefined")),I.return()):(_.Jk(new _.AT("prefStorage is undefined")),I.return());case 4:X=I.yieldResult;W=(M=Y)==null?void 0:M.boolValue;W===void 0||_.f("kevlar_set_sd_enabled_flag_killswitch")||_.rC(0,197,!0);X===void 0&&W===void 0&&
(W=!1);if(W===void 0){I.jumpTo(0);break}return I.yield(R.set("sdois",W),6);case 6:return _.f("kevlar_set_sd_enabled_flag_killswitch")||(_.rC(0,196,W),Z.save()),z={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:W},I.yield(NKk(D,z),0)}})},JRp=function(D,Y,R){var Z,t,X,M,W;
return _.C(function(z){switch(z.nextAddress){case 1:return z.yield($VK(D),2);case 2:return Z=z.yieldResult,z.yield(lxI(D,R),3);case 3:return z.yield($VK(D),4);case 4:return t=z.yieldResult,X=t!==Z,z.yield(v6h(D),5);case 5:M=z.yieldResult&&!_.f("kevlar_modern_downloads_page");if((W=!t&&!M)||X)return z.yield(Y.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);z.jumpTo(0)}})},Gf0=function(){var D=_.DH().resolve(_.ja),
Y;
_.C(function(R){switch(R.nextAddress){case 1:return R.yield(D.JSC$18200_playerApiPromise,2);case 2:Y=R.yieldResult;if(!_.f("kevlar_force_refresh_smart_downloads")){R.jumpTo(3);break}return R.yield(Y.refreshAllStaleEntities(0),4);case 4:return R.return();case 3:return R.yield(Y.refreshAllStaleEntities(),5);case 5:return R.yield(JRp(D,Y),6);case 6:if(_.f("enable_download_pep_for_premium_countries_web"))return R.yield(wlK(D,Y),0);R.jumpTo(0)}})},$Wp=function(D,Y){var R,Z;
_.C(function(t){switch(t.nextAddress){case 1:return t.yield(D.JSC$18200_playerApiPromise,2);case 2:R=t.yieldResult;switch((Z=Y)==null?void 0:Z.settingItemId){case "SMART_DOWNLOADS_ENABLED":return t.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return t.jumpTo(4)}t.jumpTo(0);break;case 3:return t.yield(JRp(D,R,Y),6);case 6:t.jumpTo(0);break;case 4:return t.yield(NKk(D,Y),7);case 7:t.jumpTo(0)}})},kbt=function(D,Y){var R,Z,t;
return _.C(function(X){if(X.nextAddress==1)return X.yield(D.JSC$18200_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){R=X.yieldResult;if(!R)return _.Jk(new _.AT("PES is undefined")),X.return(!1);if(!Y)return X.return(!1);Z=_.TL(Y,"mainVideoEntity");return X.yield(UPu(R,Z,"mainVideoEntity"),3)}t=X.yieldResult;return X.return(t!==void 0)})},oPI=function(D){var Y=_.DH().resolve(_.ja),R,Z,t,X,M,W,z,I,F,G,V;
_.C(function(e){switch(e.nextAddress){case 1:return e.yield(Y.JSC$18200_playerApiPromise,2);case 2:R=e.yieldResult;t=(Z=D)==null?void 0:Z.actions;if(!t)return e.return();X=_.a(t);M=X.next();case 3:if(M.done){e.jumpTo(0);break}W=M.value;I=z=void 0;if(!(((z=W)==null?0:z.entityKey)&&((I=W)==null?0:I.actionType))){e.jumpTo(4);break}F=_.Mw(W.entityKey);G=F.entityId;V=F.entityType;return e.yield(R.queueOfflineAction(G,V,W.actionType),4);case 4:M=X.next(),e.jumpTo(3)}})},UV9=function(D,Y){var R,Z,t,X,M;
return _.C(function(W){if(W.nextAddress==1)return W.yield(D.JSC$18200_prefStorage,2);if(W.nextAddress!=3)return(R=W.yieldResult)?W.yield(R.get("psi"),3):W.return();Z=W.yieldResult;M={isPaused:Y,lastSyncTimestamp:(X=(t=Z)==null?void 0:t.lastSyncTimestamp)!=null?X:"0"};return W.yield(R.set("psi",M),0)})},N1T=function(D){var Y=_.DH().resolve(_.ja),R,Z,t,X,M,W,z,I;
return _.C(function(F){switch(F.nextAddress){case 1:return F.yield(Y.JSC$18200_playerApiPromise,2);case 2:R=F.yieldResult;t=((Z=D)==null?void 0:Z.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((W=D)==null?void 0:W.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":X="!*$_ALL_ENTITIES_!*$";M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return F.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return F.jumpTo(4)}F.jumpTo(5);break;case 3:return F.yield(UV9(Y,t),6);case 6:F.jumpTo(5);break;case 4:return F.yield(kbt(Y,(z=D)==null?void 0:z.videoId),7);case 7:F.yieldResult&&(X=(I=D)==null?void 0:I.videoId,M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");F.jumpTo(5);break;case 5:if(X&&M)return F.yield(R.queueOfflineAction(X,"videoPlaybackPositionEntity",M),0);F.jumpTo(0)}})},KuI=function(D,Y){var R;
Y!==1||((R=D.currentPersistentToast)==null?0:R.isOpened())?D.openToast():D.currentPersistentToast=void 0},hIk=function(D,Y){var R;
return(R=D.transitionTasksMap.get(Y))!=null?R:[]},Lup=function(D,Y){var R=[];
D.elementTasksMap.forEach(function(Z){(Z=Z.get(Y))&&R.push(Z)});
return R},mVh=function(D,Y,R,Z,t){t=t===void 0?{}:t;
var X=Y.defaultViewTransitionOptions;return Object.assign({},X,t,{beforeTransition:function(){Z.forEach(function(I){I.beforeTransition()});
var M;(M=X.beforeTransition)==null||M.call(X);var W,z;(z=(W=t).beforeTransition)==null||z.call(W);R.forEach(function(I){I.beforeTransition()})},
afterTransition:function(){Z.forEach(function(I){I.afterTransition()});
var M;(M=X.afterTransition)==null||M.call(X);var W,z;(z=(W=t).afterTransition)==null||z.call(W);R.forEach(function(I){I.afterTransition()})},
ignoredErrors:D.config.ignoredErrors})},q0T=function(D,Y,R){D.transitionTasksMap.has(Y)?D.transitionTasksMap.get(Y).push(R):(D=new _.AT("Transition task registered for unknown transition type",Y),_.Nb(D))},H99=function(D,Y,R){if(D.transitionTasksMap.has(Y)){var Z=D.transitionTasksMap.get(Y).filter(function(t){return t!==R});
D.transitionTasksMap.set(Y,Z)}},xV9=function(D,Y){var R=hIk(D,Y);
R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next())Z=Z.value,Z.runOnce&&H99(D,Y,Z);D.elementTasksMap.forEach(function(t,X){t.forEach(function(M,W){M.runOnce&&Y===W&&(t.delete(W),t.size===0&&D.elementTasksMap.delete(X))})})},PEt=function(D,Y,R){var Z,t,X,M,W,z,I,F,G;
_.C(function(V){if(V.nextAddress==1){if(D.config.disableAllTransitions)return V.return(Y());if((Z=R)==null||!Z.transitionType)return V.return(_.UCt(Y,Object.assign({},(t=R)==null?void 0:t.viewTransitionOptions,{ignoredErrors:D.config.ignoredErrors})));X=R;M=X.transitionType;W=X.viewTransitionOptions;z=D.config.transitionConfigs.get(M);if(!z)return V.return(Y());I=hIk(D,M);F=Lup(D,M);G=_.UCt(Y,mVh(D,z,I,F,W));return V.yield(G,2)}xV9(D,M);_.V9(V)})},QZE=function(){var D,Y,R,Z;
return _.C(function(t){if(t.nextAddress==1)return D=navigator,(Y=D.storage)!=null&&Y.persisted?t.yield((R=D.storage)==null?void 0:R.persisted(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");Z=t.yieldResult;return t.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},BK9=function(){var D,Y,R,Z;
return _.C(function(t){if(t.nextAddress==1)return D=navigator,(Y=D.storage)!=null&&Y.persist?t.yield((R=D.storage)==null?void 0:R.persist(),2):t.return("PERSISTED_STATE_NOT_SUPPORTED");Z=t.yieldResult;return t.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},plk=function(){var D,Y;
return _.C(function(R){switch(R.nextAddress){case 1:return D="PERSISTED_STATE_NOT_SUPPORTED",_.SX(R,2),R.yield(QZE(),4);case 4:D=R.yieldResult;if(D!=="PERSISTED_STATE_NOT_GRANTED"){R.jumpTo(5);break}return R.yield(BK9(),6);case 6:D=R.yieldResult;case 5:_.xw(R,3);break;case 2:Y=_.Gl(R),Y instanceof Error&&_.Nb(Y);case 3:return _.bo("persistentStorageStateChecked",{persistedState:D}),R.return(D)}})},E69=function(D,Y){var R=[],Z=!1;
Y=_.a(Y);for(var t=Y.next();!t.done;t=Y.next()){t=D.moduleRegistry[t.value];var X=void 0,M=void 0;((X=t)==null?0:X.isFetching)&&((M=t)==null?0:M.resolver)?(R.push(t.resolver.promise),Z=!0):(t=new _.Ta,t.resolve(void 0),R.push(t.promise))}return Z?Promise.all(R):void 0},g60=function(D,Y,R){if(D.isAnyTransitionEnabled){var Z={beforeTransition:function(){R(!0);
Y.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){Y.style.viewTransitionName&&(Y.style.viewTransitionName="",R(!1))}};
q0T(D.viewTransitionCoordinator,"slide",Z);q0T(D.viewTransitionCoordinator,"lockup-to-watch",Z);q0T(D.viewTransitionCoordinator,"watch-next-appears",Z);q0T(D.viewTransitionCoordinator,"learning-journey",Z)}},dVh=function(D,Y){D.isBrowseTransitionEnabled?PEt(D.viewTransitionCoordinator,Y,{transitionType:"slide"}):(Y(),Promise.resolve())},i9k=function(D,Y){D.isLockupToWatchTransitionEnabled?PEt(D.viewTransitionCoordinator,Y,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){D.registeredLockupThumbnail=void 0;D.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(Y(),Promise.resolve())},O9I=function(D,Y){D.isLockupToWatchTransitionEnabled?PEt(D.viewTransitionCoordinator,Y,{transitionType:"watch-next-appears"}):(Y(),Promise.resolve())},cRT=function(D,Y){D.isLearningJourneyTransitionEnabled?PEt(D.viewTransitionCoordinator,Y,{transitionType:"learning-journey"}):(Y(),Promise.resolve())},Dik=function(D,Y,R){if(D.isInitialized()){var Z=
Ab(R),t=Z==="watch";
Z=Z==="shorts";var X=Ab(Y)==="watch";if(t)X||(D.backgroundPageData=Y),D.watchPipMode&&X||D.deactivate(R.endpoint);else if(Z){if(Ab(Y)!=="shorts"){var M;(M=D.getPlayerElement())==null||M.pause()}}else X&&!D.watchPipMode&&(oME(Y,R)?(D.watchWhileMode&&_.KJk(D,!1),_.yZE(D,Y)):D.isMiniplayerActive()&&D.watchWhileMode&&D.deactivate());X&&_.LJK(D);D.shortsPipMode&&!Z&&(window.focus(),D.deactivate());if(D.pictureInPictureEnabled())if(Z&&D.shortsPipEnabled||t&&D.watchPipEnabled)_.MSj(D.handleMediaSessionPipActivation);
else if(!D.isMiniplayerActive()&&(D.shortsPipEnabled||D.watchPipEnabled)&&window.documentPictureInPicture&&_.vo()&&_.Try("Chromium")>=120){D=_.ajj().mediaSession;try{D.setActionHandler("enterpictureinpicture",null)}catch(W){}}}},YRz=function(D,Y){var R,Z;
_.C(function(t){if(t.nextAddress==1){if(!D||!D.navigationEndpoint)return t.return();_.AG().lockupActivation=!0;var X;Y?X=_.i0(_.fX("QUEUE",void 0,"Queue")):X=D.longBylineText;Z=(R=X)&&D.title?{miniplayerTitle:D.title,miniplayerSubtitle:R,playlistData:null}:void 0;return t.yield(_.X$E(_.DH().resolve(_.mL),D.navigationEndpoint,!0,Z),2)}_.AG().userActivation=!0;_.V9(t)})},yjI=function(D,Y){var R,Z,t,X,M,W;
_.C(function(z){if(z.nextAddress==1){R=_.A(Y,_.Jlz);if(!R||!R.listId)return z.return();D.index=R.index||D.index||0;Z=D.response&&D.response.playingVideoId||void 0;return z.yield(_.FCU(D.JSC$12822_playlistNetworkManager,R.listId,D.index,Z),2)}t=z.yieldResult;if(!t)return z.return();X=t.playlistId;M=t.playlistPanelRenderer;!D.queueProxy&&X&&M&&X.startsWith("TLPQ")&&(D.queueProxy=new _.mO(D.JSC$12822_playlistNetworkManager,X,D.setPlaylistData.bind(D),D.clearQueue.bind(D),_.t5$(M),D.storage));if(R.openMiniplayer&&
(W=_.svn(M))&&!D.pageManager.isOnWatch()){var I=W,F=R.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";D.isMiniplayerActive()?D.openToast(I):YRz(I,F)}D.setPlaylistData(X,M,t.autoplayRenderer);_.V9(z)})},vyK=function(D,Y){var R=_.EH();
R.index===void 0&&(R.index=0);R.temporaryItems.push.apply(R.temporaryItems,_.oK(D));if((Y.videoId||Y.videoIds)&&R.index!==void 0&&Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!R.queueProxy){var Z=[];if(R.response){var t=_.DH().resolve(_.mL).isMiniplayerActive();if(R.response.playlistPanelRenderer&&R.response.playlistId&&!R.response.playlistId.startsWith("TLPQ")){if(R.pageManager.isOnWatch()||t)Z=_.t5$(R.response.playlistPanelRenderer)}else R.response.playingVideoId&&!Y.openMiniplayer?Z.push(R.response.playingVideoId):
t&&R.response.playingVideoId&&Y.openMiniplayer&&Z.push(R.response.playingVideoId)}R.queueProxy=new _.mO(R.JSC$12822_playlistNetworkManager,"",R.setPlaylistData.bind(R),R.clearQueue.bind(R),Z,R.storage);R.queueProxy.JSC$12768_setCurrentIndex(R.index)}R.queueProxy.addVideos(Y.videoIds||[Y.videoId],Y)}LpI(R,D);R.response&&_.gm(R,_.dm(R,R.response.autoplayRenderer));R.pageManager.isOnWatch()?R.isMiniplayerActive()&&R.openToast(D[0]):(D=D[0],Y=Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",R.isMiniplayerActive()?
R.openToast(D):YRz(D,Y))},RG0=function(D){var Y=_.P4(D);
if(Y=="object"||Y=="array"){if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);Y=Y=="array"?[]:{};for(var R in D)Y[R]=RG0(D[R]);return Y}return D},JY=function(D,Y){return _.CUn(_.Vn(D,Y,void 0,_.GX))},kD=function(D,Y){return _.c4(_.Vn(D,Y,void 0,_.GX))},U6=function(D,Y){return _.Nzr(_.Vn(D,Y,void 0,_.GX))},K3=function(D,Y){return _.Vn(D,Y,void 0,_.GX,_.a_U)},ZoE=_.ZG(function(D,
Y,R){if(D.nextWireType_!==0)return!1;
_.tf(Y,R,_.mo(D.decoder_,_.X4o));return!0},_.My,_.PQ),t39=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==0)return!1;
_.nw(Y,R,Z,_.mo(D.decoder_,_.X4o));return!0},_.My,_.PQ),sa9=_.ZG(function(D,Y,R){if(D.nextWireType_!==1)return!1;
var Z=D.decoder_;D=_.HQ(Z);Z=_.HQ(Z);D=_.LL(D,Z);_.tf(Y,R,D);return!0},_.o7i,_.niM),Xfh=_.ZG(function(D,Y,R){if(D.nextWireType_!==5)return!1;
_.tf(Y,R,_.HQ(D.decoder_));return!0},function(D,Y,R){Y=_.SLU(Y);
Y!=null&&(_.sN(D,R,5),_.uT(D.encoder_,Y))},_.AM9),uc9=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;
D=_.Z7b(D.decoder_);_.tf(Y,R,D===!1?void 0:D);return!0},_.b$l,_.Guo),aFT=_.ZG(function(D,Y,R){if(D.nextWireType_!==2)return!1;
D=_.Moj(D);_.tf(Y,R,D===""?void 0:D);return!0},_.Ngy,_.Vo5),M3k=_.ZG(function(D,Y,R){if(D.nextWireType_!==2)return!1;
D=_.CWS(D);_.tf(Y,R,D===_.wz()?void 0:D);return!0},_.JfU,_.$nU),C$z=_.VfS(function(D,Y,R){if(D.nextWireType_!==0&&D.nextWireType_!==2)return!1;
Y=_.oK$(Y,Y[_.sL]|0,R);D.nextWireType_==2?_.WH5(D,jP9,Y):Y.push(_.qp(D.decoder_));return!0},function(D,Y,R){Y=_.Goj(_.c4,Y,!0);
if(Y!=null&&Y.length){R=_.xkM(D,R);for(var Z=0;Z<Y.length;Z++)_.wZl(D.encoder_,Y[Z]);_.Pkl(D,R)}},_.vir),WLb=_.ZG(function(D,Y,R){if(D.nextWireType_!==0)return!1;
D=_.qp(D.decoder_);_.tf(Y,R,D===0?void 0:D);return!0},_.kor,_.vir),zGu=_.ZG(function(D,Y,R,Z){if(D.nextWireType_!==0)return!1;
_.nw(Y,R,Z,_.qp(D.decoder_));return!0},_.kor,_.vir),SRt=function(D){return D.previousElementSibling!==void 0?D.previousElementSibling:_.L71(D.previousSibling,!1)},TY9=function(D,Y){var R=[];
for(Y=Y||0;Y<D.length;Y+=2)_.vKE(D[Y],D[Y+1],R);return R.join("&")},jap=function(D,Y){var R=arguments.length==2?TY9(arguments[1],0):TY9(arguments,1);
return _.$kE(D,R)},FWu=_.zo(_.U0),IFz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(IFz,_.Y7);IFz.prototype.getTypeName=function(){return _.Np(this,1).split("/").pop()};
IFz.prototype.getValue=function(){var D=_.Vn(this,2);if(Array.isArray(D)||D instanceof _.Y7)throw Error("W");return _.Ar(this,2)};
var sQK=function(){var D=_.Cn();this.JSC$9886_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.X_("channel_type"))};
sQK.prototype.increment=function(D){this.JSC$9886_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",D)};
var XG0=function(){var D=_.Cn();this.JSC$9889_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.X_("channel_type"))};
XG0.prototype.increment=function(D){this.JSC$9889_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",D)};
var alk=function(){var D=_.Cn();this.JSC$9892_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.X_("channel_type"))};
alk.prototype.increment=function(D){this.JSC$9892_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",D)};
var u90=function(){var D=_.Cn();this.JSC$9895_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
u90.prototype.increment=function(){this.JSC$9895_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var MIk=function(){var D=_.Cn();this.JSC$9898_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.X_("channel_type"),_.X_("error_type"))};
MIk.prototype.increment=function(D,Y){this.JSC$9898_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",D,Y)};
var CXE=function(){var D=_.Cn();this.JSC$9901_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
CXE.prototype.increment=function(){this.JSC$9901_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var WVb=function(){var D=_.Cn();this.JSC$9904_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
WVb.prototype.increment=function(){this.JSC$9904_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var iBh=function(){var D=_.Cn();this.JSC$9910_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
iBh.prototype.increment=function(){this.JSC$9910_streamzService.JSC$9756_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var FL0=function(D){return D.getCount&&typeof D.getCount=="function"?D.getCount():_.xn(D)||typeof D==="string"?D.length:_.y7.getCount(D)},G39=function(D,Y){if(typeof D.every=="function")return D.every(Y,void 0);
if(_.xn(D)||typeof D==="string")return Array.prototype.every.call(D,Y,void 0);for(var R=_.od4(D),Z=_.Ok(D),t=Z.length,X=0;X<t;X++)if(!Y.call(void 0,Z[X],R&&R[X],D))return!1;return!0},V3I=function(D,Y,R,Z){var t=new _.cO(null);
D&&_.cP(t,D);Y&&_.Ds(t,Y);R&&_.YO(t,R);Z&&_.Rs(t,Z);return t},fFk=function(){var D=_.UK&&_.jb(_.xEL,10)>=0,Y;
if(Y=_.FN9)Y=_.jb(_.Hv_,10)>=0;var R=_.js&&_.jb(_.xEL,85)>=0;return _.WQ||D||Y||R},eGk=function(D){var Y=_.uEL(D);
return Y&&fFk()?-D.scrollLeft:Y&&_.KG(D,"overflowX")!="visible"?D.scrollWidth-D.clientWidth-D.scrollLeft:D.scrollLeft},AnI=function(D,Y){Y=Math.max(Y,0);
_.uEL(D)?fFk()?D.scrollLeft=-Y:D.scrollLeft=D.scrollWidth-Y-D.clientWidth:D.scrollLeft=Y},x7t=0,EMK=!1;
rN.prototype.set=function(D){this.relativeTimeStart_=D};
rN.prototype.reset=function(){this.set(_.sb())};
rN.prototype.get=function(){return this.relativeTimeStart_};
var n5I=null,rnz=function(){n5I||(n5I=new rN)},wfK=function(){n5I||(n5I=new rN)};
_.XN(wfK,rnz);_.u=d7k.prototype;_.u.JSC$11265_buffer_="";_.u.set=function(D){this.JSC$11265_buffer_=""+D};
_.u.append=function(D,Y,R){this.JSC$11265_buffer_+=String(D);if(Y!=null)for(var Z=1;Z<arguments.length;Z++)this.JSC$11265_buffer_+=arguments[Z];return this};
_.u.clear=function(){this.JSC$11265_buffer_=""};
_.u.getLength=function(){return this.JSC$11265_buffer_.length};
_.u.toString=function(){return this.JSC$11265_buffer_};
var $ik=function(){var D={type:"unit",style:"narrow"};this.listType_=D&&D.type?D.type:"conjunction";this.listStyle_=D&&D.style?D.style:"long";this.listSymbols_=eF0;D=0;switch(this.listStyle_){case "short":D=1;break;case "narrow":D=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[D];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[D];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=
this.listSymbols_.AND_END[D];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[D];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[D];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=this.listSymbols_.OR_END[D];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[D],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[D],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[D],this.listEndPattern_=this.listSymbols_.UNIT_END[D]}};
$ik.prototype.format=function(D){return v5k(this,D)};
var v5k=function(D,Y){var R=Y.length;switch(R){case 0:return"";case 1:return String(Y[0]);case 2:return D.listTwoPattern_.replace("{0}",String(Y[0])).replace("{1}",String(Y[1]))}for(var Z=D.listStartPattern_.replace("{0}",String(Y[0])).replace("{1}",String(Y[1])),t=2;t<R-1;++t)Z=D.listMiddlePattern_.replace("{0}",Z).replace("{1}",String(Y[t]));return D.listEndPattern_.replace("{0}",Z).replace("{1}",String(Y[R-1]))},zo0=function(){var D={style:1};
this.style_=(D==null?void 0:D.style)||0;this.durationSymbols_=_.PYD||_.oyb},o5z=function(D,Y){switch(Y){default:case "years":return D.durationSymbols_.YEAR;
case "months":return D.durationSymbols_.MONTH;case "weeks":return D.durationSymbols_.WEEK;case "days":return D.durationSymbols_.DAY;case "hours":return D.durationSymbols_.HOUR;case "minutes":return D.durationSymbols_.MINUTE;case "seconds":return D.durationSymbols_.SECOND}},hY=function(D,Y,R){a:{R=o5z(D,R);
switch(D.style_){case 1:if(R.LONG!=void 0){D=R.LONG;break a}case 2:if(R.NARROW!=void 0){D=R.NARROW;break a}default:D=R.SHORT;break a}D=void 0}return D?(new _.irD("{DURATION_VALUE,plural,"+D+"}")).format({DURATION_VALUE:Y}):""};
zo0.prototype.format=function(D){var Y=[],R=D.years,Z=D.months,t=D.weeks,X=D.days,M=D.hours,W=D.minutes;D=D.seconds;R!=null&&Y.push(hY(this,R,"years"));Z!=null&&Y.push(hY(this,Z,"months"));t!=null&&Y.push(hY(this,t,"weeks"));X!=null&&Y.push(hY(this,X,"days"));M!=null&&Y.push(hY(this,M,"hours"));W!=null&&Y.push(hY(this,W,"minutes"));D!=null&&Y.push(hY(this,D,"seconds"));return(new $ik).format(Y)};
var boE=!1,Z2z=function(D){_.Yn.call(this,D.message||D.description||D.name);this.isMissing=D instanceof wN;this.isTimeout=D instanceof _.zv&&D.errorCode=="net.timeout";this.isCanceled=D instanceof _.x6};
_.n(Z2z,_.Yn);Z2z.prototype.name="BiscottiError";var wN=function(){_.Yn.call(this,"Biscotti ID is missing from server")};
_.n(wN,_.Yn);wN.prototype.name="BiscottiMissingError";var $a=null,fhu=function(){try{var D=_.mf("yt.ads.biscotti.getId_");return D?D():U7h()}catch(Y){return _.lf(Y)}},WUu,ynb=function(D,Y){return _.u0({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:D,command:Y}})},NYK=function(D){return _.u0({type:"SET_GUIDE_IS_EXPANDED",
payload:D})},lFI=function(D){return _.u0({type:"SET_ONLINE_STATUS",
payload:D})},Jnh=function(D,Y){return _.u0({type:"SET_TRANSCRIPTION_STATE",
payload:{high:D,low:Y}})},k3b=function(D){return _.u0({type:"SET_OVERLAY_STATE",
payload:D})},Uiz=0,KLu=function(D,Y,R){var Z=this;
this.priority=Y;this.delay=R;this.jobId=0;this.completionCallback=_.Vy;this.wrappedJob=function(){D();Z.completionCallback()};
this.id=++Uiz};
KLu.prototype.enqueue=function(D){this.completionCallback=D;this.jobId=_.yc.addJob(this.wrappedJob,this.priority,this.delay)};
var L3=function(){_.sF.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.n(L3,_.sF);L3.prototype.addJob=function(D,Y,R){D=new KLu(D,Y,R);this.taskIdToTask.set(D.id,D);this.isActive?hGz(this,D):this.suspendedTasks.add(D);return D.id};
var hGz=function(D,Y){D.scheduledTasks.add(Y);Y.enqueue(function(){D.scheduledTasks.delete(Y)})};
L3.prototype.cancelJob=function(D){(D=this.taskIdToTask.get(D))&&(this.scheduledTasks.delete(D)?_.yc.cancelJob(D.jobId):this.suspendedTasks.delete(D))};
L3.prototype.pause=function(){var D=this;this.isActive=!1;this.scheduledTasks.forEach(function(Y){_.yc.cancelJob(Y.jobId);D.suspendedTasks.add(Y)});
this.scheduledTasks.clear()};
L3.prototype.start=function(){var D=this;this.isActive=!0;this.suspendedTasks.forEach(function(Y){hGz(D,Y)});
this.suspendedTasks.clear()};
L3.prototype.reset=function(){this.scheduledTasks.forEach(function(D){_.yc.cancelJob(D.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var m1=function(D,Y){this.JSC$12951_networkService_=D;this.pageRequestPromise=Y};
m1.prototype.fetchData=function(D){LLK(this,this.JSC$12951_networkService_.fetchData(D))};
m1.prototype.postData=function(D,Y){LLK(this,this.JSC$12951_networkService_.postData(D,Y))};
m1.prototype.requestDataForServiceEndpoint=function(D,Y){LLK(this,this.JSC$12951_networkService_.requestDataForServiceEndpoint(D,Y))};
var LLK=function(D,Y){Y.then(D.pageRequestPromise.onSuccess,D.pageRequestPromise.onFailure,D.pageRequestPromise)};
m1.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var qY=function(D){this.buildNetworkRequest_=D;this.pendingRequests_=new Set};
qY.prototype.reset=function(){this.pendingRequests_.forEach(function(D){D.cancel()});
this.pendingRequests_.clear()};
qY.prototype.fetchData=function(D){var Y=mip(this);Y.fetchData(D);return Y.pageRequestPromise};
qY.prototype.postData=function(D,Y){var R=mip(this);R.postData(D,Y);return R.pageRequestPromise};
qY.prototype.requestDataForServiceEndpoint=function(D,Y){var R=mip(this);R.requestDataForServiceEndpoint(D,Y);return R.pageRequestPromise};
var mip=function(D){var Y=D.buildNetworkRequest_();D.pendingRequests_.add(Y);var R=function(){D.pendingRequests_.delete(Y)};
Y.pageRequestPromise.then(R,R);return Y},qRb=function(D){var Y=new L3;
this.JSC$12958_networkService_=D;this.JSC$12958_taskManager_=Y;this.JSC$12958_networkManager_=new qY(this.networkRequestFactory_.bind(this))};
_.u=qRb.prototype;_.u.networkRequestFactory_=function(){return new m1(this.JSC$12958_networkService_,new _.Mx(this.JSC$12958_taskManager_))};
_.u.reset=function(){this.JSC$12958_taskManager_.reset();this.JSC$12958_networkManager_.reset()};
_.u.start=function(){this.JSC$12958_taskManager_.start()};
_.u.pause=function(){this.JSC$12958_taskManager_.pause()};
_.u.getTaskManager=function(){return this.JSC$12958_taskManager_};
_.u.getNetworkManager=function(){return this.JSC$12958_networkManager_};
var FUI=null,fa9=[],v9=0,b2=0,of=null,Hoh=!1,y1=null,A5k=void 0,xiK=function(){var D=(0,_.ycE)();D&&ncI(D,D.mechanism.__iterator__(!0))},l2=function(D){this.token=D};
l2.getInstance=function(){var D;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.OK(),2);D=Y.yieldResult;if(!D)return Y.return();l2.instance||(l2.instance=new l2(D));return Y.return(l2.instance)})};
var oFu=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(wOu(D.token),2);Y=R.yieldResult;return R.return(Y.clear("resource-manifest-assets"))})},NG=function(D){this.token=D};
NG.getInstance=function(){var D;return _.C(function(Y){if(Y.nextAddress==1)return Y.yield(_.OK(),2);D=Y.yieldResult;if(!D)return Y.return();NG.instance||(NG.instance=new NG(D));return Y.return(NG.instance)})};
var $At=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(wOu(D.token),2);Y=R.yieldResult;return R.yield(Y.clear("auth"),0)})},gFp=!1,P$9=function(D){_.Yn.call(this,D)};
_.n(P$9,_.M1E);var Qak="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(" ");v8u()&&Qak.push("details:not(:has(summary))");var bXt=Qak.join(",");var inz=function(){var D=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return D?parseInt(D[1],10):0},BYk=function(D){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+D)!=-1||document.currentScript.src.indexOf("&"+D)!=-1)},pf9=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},RJ9=function(D){D.length?E50(D.shift(),function(){RJ9(D)}):c6u()},tNI=function(D){return"chrome-extension://"+D+"/cast_sender.js"},E50=function(D,
Y,R){var Z=document.createElement("script");
Z.onerror=Y;R&&(Z.onload=R);_.dg(Z,_.we(D));(document.head||document.documentElement).appendChild(Z)},g5E=function(){var D=inz(),Y=[];
if(D>1){var R=D-1;Y.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js");Y.push("//www.gstatic.com/eureka/clank/"+R+"/cast_sender.js")}return Y},c6u=function(){var D=pf9();
D&&D(!1,"No cast extension found")},YgI=function(){if(di0){var D=2,Y=pf9(),R=function(){D--;
D==0&&Y&&Y(!0)};
window.__onGCastApiAvailable=R;E50("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",c6u,R)}},Ont=function(){YgI();
var D=g5E();D.push("//www.gstatic.com/eureka/clank/cast_sender.js");RJ9(D)},DBk=function(){YgI();
var D=g5E();D.push.apply(D,_.oK(Zrh.map(tNI)));D.push("//www.gstatic.com/eureka/clank/cast_sender.js");RJ9(D)},di0=BYk("loadCastFramework")||BYk("loadCastApplicationFramework"),Zrh=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var ioK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(ioK,_.Y7);var Oo9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Oo9,_.Y7);var cnK=function(){var D=new Oo9;return _.hr(D,1,3)};var Hw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Hw,_.Y7);var OXK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(OXK,_.Y7);var DpT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(DpT,_.Y7);DpT.prototype.getToken=function(){return _.Np(this,1)};
DpT.prototype.setToken=function(D){return _.E0(this,1,D)};
var dXK=function(D){return _.Pu(D,3,_.TT,_.R0())},iXh=function(D){return _.Pu(D,6,_.TT,_.R0())};var xD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(xD,_.Y7);xD.prototype.getToken=function(){return _.tP(this,DpT,2)};
xD.prototype.setToken=function(D){return _.To(this,2,D)};
xD.prototype.getName=function(){return _.Np(this,6)};
var YbK=_.zo(xD);var R9t=function(D,Y,R){this.requestMessage=D;this.methodDescriptor=Y;this.metadata=R};
R9t.prototype.getMetadata=function(){return this.metadata};var ZwT=function(D,Y){Y=Y===void 0?{}:Y;this.responseMessage=D;this.metadata=Y;this.status=null};
ZwT.prototype.getMetadata=function(){return this.metadata};
ZwT.prototype.getStatus=function(){return this.status};var Pw=function(D,Y,R,Z,t){this.name=D;this.methodType="unary";this.requestType=Y;this.responseType=R;this.requestSerializeFn=Z;this.responseDeserializeFn=t},tsK=function(D,Y,R){R=R===void 0?{}:R;
return new R9t(Y,D,R)};
Pw.prototype.getName=function(){return this.name};var Qs=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Qs,_.Y7);Qs.prototype.getHeader=function(){return _.tP(this,Hw,1)};
Qs.prototype.setHeader=function(D){return _.To(this,1,D)};
Qs.prototype.hasHeader=function(){return _.fw(this,Hw,1)};var scI=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(scI,_.Y7);var XQk=new Pw("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Qs,scI,function(D){return D.serialize()},_.zo(scI));var Bw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Bw,_.Y7);Bw.prototype.getHeader=function(){return _.tP(this,Hw,1)};
Bw.prototype.setHeader=function(D){return _.To(this,1,D)};
Bw.prototype.hasHeader=function(){return _.fw(this,Hw,1)};var uNT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(uNT,_.Y7);var aD0=new Pw("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Bw,uNT,function(D){return D.serialize()},_.zo(uNT));var p3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(p3,_.Y7);p3.prototype.getHeader=function(){return _.tP(this,Hw,1)};
p3.prototype.setHeader=function(D){return _.To(this,1,D)};
p3.prototype.hasHeader=function(){return _.fw(this,Hw,1)};var Ms9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Ms9,_.Y7);Ms9.prototype.getLink=function(){return _.tP(this,xD,1)};var Chp=new Pw("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",p3,Ms9,function(D){return D.serialize()},_.zo(Ms9));var E6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(E6,_.Y7);E6.prototype.getHeader=function(){return _.tP(this,Hw,1)};
E6.prototype.setHeader=function(D){return _.To(this,1,D)};
E6.prototype.hasHeader=function(){return _.fw(this,Hw,1)};var WoE=new Pw("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",E6,xD,function(D){return D.serialize()},YbK);var z9E=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(z9E,_.Y7);var Sbp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Sbp,_.Y7);Sbp.prototype.getUrl=function(){return _.Np(this,2)};
Sbp.prototype.setUrl=function(D){return _.E0(this,2,D)};var T00=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(T00,_.Y7);var jc9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(jc9,_.Y7);var IDE=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(IDE,_.Y7);var MCT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(MCT,_.Y7);var aQh=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(aQh,_.Y7);var Fok=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Fok,_.Y7);var IQp=_.zo(Fok);var GX0=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(GX0,_.Y7);var Vs9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Vs9,_.Y7);_.u=Vs9.prototype;_.u.getHeader=function(){return _.tP(this,Hw,1)};
_.u.setHeader=function(D){return _.To(this,1,D)};
_.u.hasHeader=function(){return _.fw(this,Hw,1)};
_.u.getCompletionUrl=function(){return _.Np(this,6)};
_.u.getDeviceId=function(){return _.Np(this,11)};var fDz=new Pw("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Vs9,Fok,function(D){return D.serialize()},IQp);var e9t=new Set(["SAPISIDHASH","APISIDHASH"]);var ArT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(ArT,_.Y7);ArT.prototype.getMessage=function(){return _.Np(this,2)};
var n0k=_.zo(ArT);var gj=function(D,Y){this.xhrNodeReadableStream_=D.nodeReadableStream;this.grpcResponseDeserializeFn_=Y;this.JSC$19159_xhr_=D.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19159_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&rru(this)},yrE=function(D,Y){var R=new wQb;
_.yu(D.JSC$19159_xhr_,"complete",function(){if(D.JSC$19159_xhr_.isSuccess()){var Z=D.JSC$19159_xhr_.getResponseText();var t;if(t=Y)t=D.JSC$19159_xhr_,t.JSC$9765_xhr_&&t.isComplete()?(t=t.JSC$9765_xhr_.getResponseHeader("Content-Type"),t=t===null?void 0:t):t=void 0,t=t==="text/plain";if(t){if(!atob)throw Error("Qj");Z=atob(Z)}try{var X=D.grpcResponseDeserializeFn_(Z)}catch(W){dj(D,K30(new _.oF(13,"Error when deserializing response data; error: "+W+(", response: "+Z)),R));return}Z=_.gs5(D.JSC$19159_xhr_.getStatus());
$pk(D,v0p(D));Z==0?o09(D,X):dj(D,K30(new _.oF(Z,"Xhr succeeded but the status code is not 200"),R))}else{Z=D.JSC$19159_xhr_.getResponseText();X=v0p(D);if(Z){var M=bw9(D,Z);Z=M.code;t=M.details;M=M.metadata}else Z=2,t="Rpc failed due to xhr error. uri: "+String(D.JSC$19159_xhr_.JSC$9765_lastUri_)+", error code: "+D.JSC$19159_xhr_.JSC$9765_lastErrorCode_+", error: "+D.JSC$19159_xhr_.getLastError(),M=X;$pk(D,X);dj(D,K30(new _.oF(Z,t,M),R))}})},rru=function(D){D.xhrNodeReadableStream_.on("data",function(Y){if("1"in
Y){var R=Y["1"];
try{var Z=D.grpcResponseDeserializeFn_(R)}catch(t){dj(D,new _.oF(13,"Error when deserializing response data; error: "+t+(", response: "+R)))}Z&&o09(D,Z)}if("2"in Y)for(Y=bw9(D,Y["2"]),R=0;R<D.onStatusCallbacks_.length;R++)D.onStatusCallbacks_[R](Y)});
D.xhrNodeReadableStream_.on("end",function(){$pk(D,v0p(D));for(var Y=0;Y<D.onEndCallbacks_.length;Y++)D.onEndCallbacks_[Y]()});
D.xhrNodeReadableStream_.on("error",function(){if(D.JSC$19159_onErrorCallbacks_.length!=0){var Y=D.JSC$19159_xhr_.JSC$9765_lastErrorCode_;Y!==0||D.JSC$19159_xhr_.isSuccess()||(Y=6);var R=-1;switch(Y){case 0:var Z=2;break;case 7:Z=10;break;case 8:Z=4;break;case 6:R=D.JSC$19159_xhr_.getStatus();Z=_.gs5(R);break;default:Z=14}$pk(D,v0p(D));Y=_.uLE(Y)+", error: "+D.JSC$19159_xhr_.getLastError();R!=-1&&(Y+=", http status code: "+R);dj(D,new _.oF(Z,Y))}})},v0p=function(D){var Y={},R=GPK(D.JSC$19159_xhr_);
Object.keys(R).forEach(function(Z){Y[Z]=R[Z]});
return Y},bw9=function(D,Y){var R=2,Z={};
try{var t=n0k(Y);R=_.ZC(t,1);var X=t.getMessage();_.Yh(t,IFz,3,_.R0()).length&&(Z["grpc-web-status-details-bin"]=Y)}catch(M){D.JSC$19159_xhr_&&D.JSC$19159_xhr_.getStatus()===404?(R=5,X="Not Found: "+String(D.JSC$19159_xhr_.JSC$9765_lastUri_)):(R=14,X="Unable to parse RpcStatus: "+M)}return{code:R,details:X,metadata:Z}};
gj.prototype.on=function(D,Y){D=="data"?this.onDataCallbacks_.push(Y):D=="metadata"?this.onMetadataCallbacks_.push(Y):D=="status"?this.onStatusCallbacks_.push(Y):D=="end"?this.onEndCallbacks_.push(Y):D=="error"&&this.JSC$19159_onErrorCallbacks_.push(Y);return this};
var iF=function(D,Y){Y=D.indexOf(Y);Y>-1&&D.splice(Y,1)};
gj.prototype.removeListener=function(D,Y){D=="data"?iF(this.onDataCallbacks_,Y):D=="metadata"?iF(this.onMetadataCallbacks_,Y):D=="status"?iF(this.onStatusCallbacks_,Y):D=="end"?iF(this.onEndCallbacks_,Y):D=="error"&&iF(this.JSC$19159_onErrorCallbacks_,Y);return this};
gj.prototype.cancel=function(){this.JSC$19159_xhr_.abort()};
var o09=function(D,Y){for(var R=0;R<D.onDataCallbacks_.length;R++)D.onDataCallbacks_[R](Y)},$pk=function(D,Y){for(var R=0;R<D.onMetadataCallbacks_.length;R++)D.onMetadataCallbacks_[R](Y)},dj=function(D,Y){for(var R=0;R<D.JSC$19159_onErrorCallbacks_.length;R++)D.JSC$19159_onErrorCallbacks_[R](Y)};
gj.prototype.cancel=gj.prototype.cancel;gj.prototype.removeListener=gj.prototype.removeListener;gj.prototype.on=gj.prototype.on;var wQb=function(){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.n(wQb,Error);var O6=function(D){this.JSC$19168_worker_=D.worker||null;this.JSC$19168_streamBinaryChunks_=D.streamBinaryChunks||!1;this.JSC$19168_credentialsMode_=void 0};
_.XN(O6,_.ibb);O6.prototype.createInstance=function(){var D=new cw(this.JSC$19168_worker_,this.JSC$19168_streamBinaryChunks_);this.JSC$19168_credentialsMode_&&D.setCredentialsMode(this.JSC$19168_credentialsMode_);return D};
O6.prototype.setCredentialsMode=function(D){this.JSC$19168_credentialsMode_=D};
var cw=function(D,Y){_.eE.call(this);this.JSC$19172_worker_=D;this.JSC$19172_streamBinaryChunks_=Y;this.JSC$19172_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19172_responseHeaders_=null;this.JSC$19172_method_="GET";this.JSC$19172_url_="";this.inProgress_=!1;this.JSC$19172_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.XN(cw,_.eE);cw.prototype.open=function(D,Y){if(this.readyState!=0)throw this.abort(),Error("Rj");this.JSC$19172_method_=D;this.JSC$19172_url_=Y;this.readyState=1;D2(this)};
cw.prototype.send=function(D){if(this.readyState!=1)throw this.abort(),Error("Sj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Tj");this.inProgress_=!0;var Y={headers:this.requestHeaders_,method:this.JSC$19172_method_,credentials:this.JSC$19172_credentialsMode_,cache:void 0,signal:this.abortController_.signal};D&&(Y.body=D);(this.JSC$19172_worker_||_.ZU).fetch(new Request(this.JSC$19172_url_,Y)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
cw.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Yu(this));this.readyState=0};
cw.prototype.handleResponse_=function(D){if(this.inProgress_&&(this.fetchResponse_=D,this.JSC$19172_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19172_responseHeaders_=D.headers,this.readyState=2,D2(this)),this.inProgress_&&(this.readyState=3,D2(this),this.inProgress_)))if(this.responseType==="arraybuffer")D.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.ZU.ReadableStream!==
"undefined"&&"body"in D){this.currentReader_=D.body.getReader();if(this.JSC$19172_streamBinaryChunks_){if(this.responseType)throw Error("Uj");this.response=[]}else this.response=this.responseText="",this.JSC$19172_textDecoder_=new TextDecoder;N0h(this)}else D.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var N0h=function(D){D.currentReader_.read().then(D.handleDataFromStream_.bind(D)).catch(D.handleSendFailure_.bind(D))};
cw.prototype.handleDataFromStream_=function(D){if(this.inProgress_){if(this.JSC$19172_streamBinaryChunks_&&D.value)this.response.push(D.value);else if(!this.JSC$19172_streamBinaryChunks_){var Y=D.value?D.value:new Uint8Array(0);if(Y=this.JSC$19172_textDecoder_.decode(Y,{stream:!D.done}))this.response=this.responseText+=Y}D.done?Yu(this):D2(this);this.readyState==3&&N0h(this)}};
cw.prototype.handleResponseText_=function(D){this.inProgress_&&(this.response=this.responseText=D,Yu(this))};
cw.prototype.handleResponseArrayBuffer_=function(D){this.inProgress_&&(this.response=D,Yu(this))};
cw.prototype.handleSendFailure_=function(){this.inProgress_&&Yu(this)};
var Yu=function(D){D.readyState=4;D.fetchResponse_=null;D.currentReader_=null;D.JSC$19172_textDecoder_=null;D2(D)};
cw.prototype.setRequestHeader=function(D,Y){this.requestHeaders_.append(D,Y)};
cw.prototype.getResponseHeader=function(D){return this.JSC$19172_responseHeaders_?this.JSC$19172_responseHeaders_.get(D.toLowerCase())||"":""};
cw.prototype.getAllResponseHeaders=function(){if(!this.JSC$19172_responseHeaders_)return"";for(var D=[],Y=this.JSC$19172_responseHeaders_.entries(),R=Y.next();!R.done;)R=R.value,D.push(R[0]+": "+R[1]),R=Y.next();return D.join("\r\n")};
cw.prototype.setCredentialsMode=function(D){this.JSC$19172_credentialsMode_=D};
var D2=function(D){D.onreadystatechange&&D.onreadystatechange.call(D)};
Object.defineProperty(cw.prototype,"withCredentials",{get:function(){return this.JSC$19172_credentialsMode_==="include"},
set:function(D){this.setCredentialsMode(D?"include":"same-origin")}});var lDk=function(D){var Y="";_.y7.forEach(D,function(R,Z){Y+=Z;Y+=":";Y+=R;Y+="\r\n"});
return Y},Jrz=function(D,Y,R){if(_.y7.isEmpty(R))return D;
R=lDk(R);if(typeof D==="string")return _.xr(D,_.HD(Y),R);_.xh(D,Y,R);return D};var kXu=function(){this.isInputValid_=!0;this.JSC$19177_streamPos_=0;this.leftoverInput_=""};
kXu.prototype.isInputValid=function(){return this.isInputValid_};
kXu.prototype.decode=function(D){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Vj`"+this.JSC$19177_streamPos_+"`stream already broken`"+D);this.leftoverInput_+=D;D=Math.floor(this.leftoverInput_.length/4);if(D==0)return null;try{var Y=_.opb(this.leftoverInput_.slice(0,D*4))}catch(R){throw Y=this.leftoverInput_,D=R.message,this.isInputValid_=!1,Error("Vj`"+this.JSC$19177_streamPos_+"`"+D+"`"+Y);}this.JSC$19177_streamPos_+=D*4;this.leftoverInput_=this.leftoverInput_.slice(D*4);return Y};var Ut=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19180_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Ut.prototype.isInputValid=function(){return this.state_!=3};
var RO=function(D,Y,R,Z){D.state_=3;D.errorMessage_="The stream is broken @"+D.JSC$19180_streamPos_+"/"+R+". Error: "+Z+". With input:\n"+Y;throw Error(D.errorMessage_);};
Ut.prototype.acceptsBinaryInput=function(){return!0};
Ut.prototype.parse=function(D){function Y(z){z&128&&RO(X,M,W,"invalid tag");(z&7)!=2&&RO(X,M,W,"invalid wire type");X.tag_=z>>>3;X.tag_!=1&&X.tag_!=2&&X.tag_!=15&&RO(X,M,W,"unexpected tag");X.state_=1;X.length_=0;X.countLengthBytes_=0}
function R(z){X.countLengthBytes_++;X.countLengthBytes_==5&&z&240&&RO(X,M,W,"message length too long");X.length_|=(z&127)<<(X.countLengthBytes_-1)*7;z&128||(X.state_=2,X.countMessageBytes_=0,typeof Uint8Array!=="undefined"?X.messageBuffer_=new Uint8Array(X.length_):X.messageBuffer_=Array(X.length_),X.length_==0&&t())}
function Z(z){X.messageBuffer_[X.countMessageBytes_++]=z;X.countMessageBytes_==X.length_&&t()}
function t(){if(X.tag_<15){var z={};z[X.tag_]=X.messageBuffer_;X.result_.push(z)}X.state_=0}
for(var X=this,M=D instanceof Array?D:new Uint8Array(D),W=0;W<M.length;){switch(X.state_){case 3:RO(X,M,W,"stream already broken");break;case 0:Y(M[W]);break;case 1:R(M[W]);break;case 2:Z(M[W]);break;default:throw Error("Wj`"+X.state_);}X.JSC$19180_streamPos_++;W++}D=X.result_;X.result_=[];return D.length>0?D:null};var L3k=function(){this.errorMessage_=null;this.JSC$19183_streamPos_=0;this.base64Decoder_=new kXu;this.pbParser_=new Ut};
L3k.prototype.isInputValid=function(){return this.errorMessage_===null};
var Upu=function(D,Y,R){D.errorMessage_="The stream is broken @"+D.JSC$19183_streamPos_+". Error: "+R+". With input:\n"+Y;throw Error(D.errorMessage_);};
L3k.prototype.acceptsBinaryInput=function(){return!1};
L3k.prototype.parse=function(D){this.errorMessage_!==null&&Upu(this,D,"stream already broken");var Y=null;try{var R=this.base64Decoder_.decode(D);Y=R===null?null:this.pbParser_.parse(R)}catch(Z){Upu(this,D,Z.message)}this.JSC$19183_streamPos_+=D.length;return Y};var hbI=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19186_streamPos_=0;this.result_=[];this.statusParsed_=!1};
hbI.prototype.isInputValid=function(){return this.errorMessage_===null};
hbI.prototype.acceptsBinaryInput=function(){return!1};
hbI.prototype.parse=function(D){function Y(z){X.state_=6;X.errorMessage_="The stream is broken @"+X.JSC$19186_streamPos_+"/"+M+". Error: "+z+". With input:\n";throw Error(X.errorMessage_);}
function R(){X.jsonStreamParser_=new _.a1({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Z(z){if(z)for(var I=0;I<z.length;I++){var F={};F[1]=z[I];X.result_.push(F)}}
function t(z){if(z){(X.statusParsed_||z.length>1)&&Y("extra status: "+z);X.statusParsed_=!0;var I={};I[2]=z[0];X.result_.push(I)}}
for(var X=this,M=0;M<D.length;){var W;if(W=X.state_!==2){a:{for(;M<D.length;){if(!_.u_(D[M])){W=!0;break a}M++;X.JSC$19186_streamPos_++}W=!1}W=!W}if(W)return null;switch(X.state_){case 6:Y("stream already broken");break;case 0:D[M]==="["?(X.state_=1,M++,X.JSC$19186_streamPos_++):Y("unexpected input token");break;case 1:D[M]==="["?(X.state_=2,R()):D[M]===","||D.slice(M,M+5)=="null,"?X.state_=3:D[M]==="]"?(X.state_=5,M++,X.JSC$19186_streamPos_++):Y("unexpected input token");break;case 2:W=X.jsonStreamParser_.parse(D.substring(M));
Z(W);X.jsonStreamParser_.done()?(X.state_=3,W=X.jsonStreamParser_.JSC$11392_buffer_,X.JSC$19186_streamPos_+=D.length-M-W.length,D=W,M=0):(X.JSC$19186_streamPos_+=D.length-M,M=D.length);break;case 3:D[M]===","||D.slice(M,M+5)=="null,"?(X.state_=4,R(),X.jsonStreamParser_.parse("["),M+=D[M]===","?1:5,X.JSC$19186_streamPos_++):D[M]==="]"&&(X.state_=5,M++,X.JSC$19186_streamPos_++);break;case 4:W=X.jsonStreamParser_.parse(D.substring(M));t(W);X.jsonStreamParser_.done()?(X.state_=5,W=X.jsonStreamParser_.JSC$11392_buffer_,
X.JSC$19186_streamPos_+=D.length-M-W.length,D=W,M=0):(X.JSC$19186_streamPos_+=D.length-M,M=D.length);break;case 5:Y("extra input after stream end")}}return X.result_.length>0?(D=X.result_,X.result_=[],D):null};var Ko0=function(D){this.JSC$19189_xhr_=D;this.JSC$19189_parser_=null;this.status_=this.JSC$19189_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19189_textDecoder_=null;this.JSC$19189_eventHandler_=new _.aR(this);this.JSC$19189_eventHandler_.listen(this.JSC$19189_xhr_,"readystatechange",this.JSC$19191_readyStateChangeHandler_)},Z2=function(D,Y){D.status_!=Y&&(D.status_=Y,D.statusHandler_&&D.statusHandler_())},tq=function(D){D.JSC$19189_eventHandler_.removeAll();
if(D.JSC$19189_xhr_){var Y=D.JSC$19189_xhr_;D.JSC$19189_xhr_=null;Y.abort();Y.dispose()}};
Ko0.prototype.getStatus=function(){return this.status_};
Ko0.prototype.JSC$19191_readyStateChangeHandler_=function(D){D=D.target;try{if(D==this.JSC$19189_xhr_)a:{var Y=_.NZ(this.JSC$19189_xhr_),R=this.JSC$19189_xhr_.JSC$9765_lastErrorCode_,Z=this.JSC$19189_xhr_.getStatus(),t=this.JSC$19189_xhr_.getResponseText();D=[];if(this.JSC$19189_xhr_.getResponse()instanceof Array){var X=this.JSC$19189_xhr_.getResponse();X.length>0&&X[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,D=X)}if(!(Y<3||Y==3&&!t&&D.length==0))if(Z=Z==200||Z==206,Y==4&&(R==8?Z2(this,
7):R==7?Z2(this,8):Z||Z2(this,3)),this.JSC$19189_parser_||(this.JSC$19189_parser_=mXT(this.JSC$19189_xhr_),this.JSC$19189_parser_==null&&Z2(this,5)),this.status_>2)tq(this);else{if(D.length>this.JSC$19189_pos_){var M=D.length;R=[];try{if(this.JSC$19189_parser_.acceptsBinaryInput())for(var W=0;W<M;W++){var z=this.JSC$19189_parser_.parse(Array.from(D[W]));z&&(R=R.concat(z))}else{z="";if(!this.JSC$19189_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Xj");this.JSC$19189_textDecoder_=new TextDecoder}for(W=
0;W<M;W++)z+=this.JSC$19189_textDecoder_.decode(D[W],{stream:Y==4&&W==M-1});R=this.JSC$19189_parser_.parse(z)}D.splice(0,M);R&&this.dataHandler_(R)}catch(F){Z2(this,5);tq(this);break a}}else if(t.length>this.JSC$19189_pos_){W=t.slice(this.JSC$19189_pos_);this.JSC$19189_pos_=t.length;try{var I=this.JSC$19189_parser_.parse(W);I!=null&&this.dataHandler_&&this.dataHandler_(I)}catch(F){Z2(this,5);tq(this);break a}}Y==4?(t.length!=0||this.hasStreamingResponseData_?Z2(this,2):Z2(this,4),tq(this)):Z2(this,
1)}}}catch(F){Z2(this,6),tq(this)}};var h9K=function(D){D=this.xhrReader_=D;var Y=(0,_.nG)(this.onData_,this);D.dataHandler_=Y;D=this.xhrReader_;Y=(0,_.nG)(this.onStatusChange_,this);D.statusHandler_=Y;this.JSC$19193_callbackMap_={};this.callbackOnceMap_={}};
_.u=h9K.prototype;_.u.on=function(D,Y){var R=this.JSC$19193_callbackMap_[D];R||(R=[],this.JSC$19193_callbackMap_[D]=R);R.push(Y);return this};
_.u.addListener=function(D,Y){this.on(D,Y);return this};
_.u.removeListener=function(D,Y){var R=this.JSC$19193_callbackMap_[D];R&&_.m5(R,Y);(D=this.callbackOnceMap_[D])&&_.m5(D,Y);return this};
_.u.once=function(D,Y){var R=this.callbackOnceMap_[D];R||(R=[],this.callbackOnceMap_[D]=R);R.push(Y);return this};
_.u.onData_=function(D){var Y=this.JSC$19193_callbackMap_.data;Y&&Loh(D,Y);(Y=this.callbackOnceMap_.data)&&Loh(D,Y);this.callbackOnceMap_.data=[]};
var Loh=function(D,Y){for(var R={},Z=0;Z<D.length;R={message$jscomp$1002:void 0},Z++)R.message$jscomp$1002=D[Z],Y.forEach(function(t){return function(X){try{X(t.message$jscomp$1002)}catch(M){}}}(R))};
h9K.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:mpI(this,"readable");break;case 5:case 6:case 4:case 7:case 3:mpI(this,"error");break;case 8:mpI(this,"close");break;case 2:mpI(this,"end")}};
var mpI=function(D,Y){var R=D.JSC$19193_callbackMap_[Y];R&&R.forEach(function(Z){try{Z()}catch(t){}});
(R=D.callbackOnceMap_[Y])&&R.forEach(function(Z){Z()});
D.callbackOnceMap_[Y]=[]};var qb9=function(){var D={format:"jspb"};D=D===void 0?{}:D;this.suppressCorsPreflight=D.suppressCorsPreflight||_.mf("suppressCorsPreflight",D)||!1;this.withCredentials=D.withCredentials||_.mf("withCredentials",D)||!1;this.streamInterceptors=D.streamInterceptors||[];this.unaryInterceptors=D.unaryInterceptors||[];this.workerScope=D.workerScope;this.chunkedServerStreaming=D.useFetchDownloadStreams||!1},PhI=function(D,Y,R,Z,t,X){X=X===void 0?{}:X;
var M=Y.substring(0,Y.length-t.name.length),W,z=(W=X)==null?void 0:W.signal;return HwT(function(I){return new Promise(function(F,G){if(z==null?0:z.aborted){var V=new _.oF(1,"Aborted");V.cause=z.reason;G(V)}else{var e={},r=xpz(D,I,M);r.on("error",function(l){return void G(l)});
r.on("metadata",function(l){e=l});
r.on("data",function(l){var U=e;U=U===void 0?{}:U;F(new ZwT(l,U))});
z&&z.addEventListener("abort",function(){r.cancel();var l=new _.oF(1,"Aborted");l.cause=z.reason;G(l)})}})},D.unaryInterceptors).call(D,tsK(t,R,Z)).then(function(I){return I.responseMessage})},sC=function(D,Y,R,Z,t,X){X=X===void 0?{}:X;
return PhI(D,Y,R,Z,t,X)};
qb9.prototype.serverStreaming=function(D,Y,R,Z){var t=this,X=D.substring(0,D.length-Z.name.length);return QcT(function(M){var W=M.methodDescriptor,z=M.getMetadata(),I=B0I(t,!1);z=pQI(t,z,I,X+W.getName());var F=E0E(I,W.responseDeserializeFn,!0);M=W.requestSerializeFn(M.requestMessage);I.send(z,"POST",M);return F},this.streamInterceptors).call(this,tsK(Z,Y,R))};
var xpz=function(D,Y,R){var Z=Y.methodDescriptor,t=Y.getMetadata(),X=B0I(D,!0);D=pQI(D,t,X,R+Z.getName());R=E0E(X,Z.responseDeserializeFn,!1);yrE(R,t["X-Goog-Encode-Response-If-Executable"]==="base64");Y=Z.requestSerializeFn(Y.requestMessage);X.send(D,"POST",Y);return R},B0I=function(D,Y){Y=D.chunkedServerStreaming&&!Y;
return D.workerScope||Y?new _.yF(new O6({worker:D.workerScope,streamBinaryChunks:Y})):new _.yF},pQI=function(D,Y,R,Z){Y["Content-Type"]="application/json+protobuf";
Y["X-User-Agent"]="grpc-web-javascript/0.1";var t=Y.Authorization;if(t&&e9t.has(t.split(" ")[0])||D.withCredentials)R.JSC$9765_withCredentials_=!0;if(D.suppressCorsPreflight)Z=Jrz(Z,"$httpHeaders",Y);else for(D=_.a(Object.keys(Y)),t=D.next();!t.done;t=D.next())t=t.value,R.headers.set(t,Y[t]);return Z},E0E=function(D,Y,R){if(R){R=new Ko0(D);
var Z=new h9K(R)}return new gj({xhr:D,nodeReadableStream:Z},Y)},QcT=function(D,Y){return Y.reduce(function(R,Z){return function(t){return Z.intercept(t,R)}},D)},HwT=function(D,Y){return Y.reduce(function(R,Z){return function(t){return Z.intercept(t,R)}},D)};var g0E=function(D){this.client_=new qb9;this.hostname_=D==void 0?D:D.replace(/\/+$/,"")};
_.u=g0E.prototype;_.u.JSC$19211_depositGoogleCredential=function(D,Y,R){return sC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",D,Y||{},aD0,R)};
_.u.deleteLink=function(D,Y,R){return sC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",D,Y||{},XQk,R)};
_.u.JSC$19211_finishOAuth=function(D,Y,R){return sC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",D,Y||{},Chp,R)};
_.u.getLink=function(D,Y,R){return sC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",D,Y||{},WoE,R)};
_.u.startLinkingSession=function(D,Y,R){return sC(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",D,Y||{},fDz,R)};var dpI=[0,uc9,1,C$z,[0,_.g0,[0,aFT,-1]],[0,M3k],[0,WLb,-1]];var iwh=function(){this.storage=new Map},crE=function(D,Y,R,Z,t){if(!D.storage.has(Y))return null;
D=_.a(D.storage.get(Y));for(Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,!t||Y.linkName===t)if(R&&Y.scopes&&Owb(Y.scopes,R)||Z&&Y.capabilities&&Owb(Y.capabilities,Z))return Y;return null},Dq9=function(D,Y,R){if(!R)D.storage.delete(Y);
else if(D.storage.has(Y)){var Z=D.storage.get(Y).filter(function(t){return t.linkName!==R});
Z.length>0?D.storage.set(Y,Z):D.storage.delete(Y)}},Owb=function(D,Y){Y=_.a(Y);
for(var R=Y.next();!R.done;R=Y.next())if(!D.has(R.value))return!1;return!0};var Yrb=function(){var D=_.JQ("LINK_GAL_DOMAIN");this.alsDomain1p=_.JQ("LINK_GAL_DOMAIN");this.alsDomain3p=D;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},RDI=function(D,Y){D.apiKey=Y;
return D};
Yrb.prototype.build=function(){var D={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Yj");D.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Zj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("$j");D.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(D.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)D.apiKey=
this.apiKey,D.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ak");D.oauthToken=this.oauthToken;D.alsDomain=this.alsDomain3p}D.clientXd3=this.clientXd3;D.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(D.authUser=this.authUser);this.bucket!==void 0&&(D.bucket=this.bucket);this.completionUrl!==void 0&&(D.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(D.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(D.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(D.locale=this.locale);D.loggerType=this.loggerType;D.clientEnvironment=this.clientEnvironment;D.colorScheme=this.colorScheme;D.showCloseOption=this.showCloseOption;return D};var Ks=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Ks,_.Y7);var ZCz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(ZCz,_.Y7);var tUE=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(tUE,_.Y7);var Ls=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Ls,_.Y7);var sgz=function(D){return _.lh(D,1)};var Xjk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Xjk,_.Y7);var pCT=_.zo(Xjk),hb=[1,2,3,4,5];var xX9=function(D){try{return pCT(D)}catch(Y){return null}},uIE=function(){},Pip=function(D,Y){switch(_.r0(Y,hb)){case 4:return(Y=_.Ub(Y,tUE,4,hb))&&D.logStateTransition(_.lh(Y,1)),!0;
case 5:return(Y=_.Ub(Y,ZCz,5,hb))&&D.logInternalEvent(_.lh(Y,1)),!0}return!1},E8T=function(D){switch(D){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.qU(D)}};var q7T=function(D,Y){var R=this;this.validator=D;this.messageListener=Y;this.dismissCallback=function(){ao0(R,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19240_receiveMessage=function(Z){Z.type==="message"&&(Z=Z.event_,Z!==null&&(new URL(R.iframe.src)).origin===Z.origin&&R.validator(Z.data,Z.origin)&&!R.messageListener(Z.data)&&(R.JSC$19240_resolveCb!==void 0&&R.JSC$19240_resolveCb(Z.data),MUk(R)))}},BCp=function(D,Y,R){D.uiHandler!==void 0&&ao0(D,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Z,t){D.JSC$19240_resolveCb=Z;D.JSC$19240_rejectCb=t;D.iframe=document.createElement("iframe");_.x7(D.iframe,Y);D.uiHandler=R.displayContent(D.iframe,D.dismissCallback);_.yu(window,"message",D.JSC$19240_receiveMessage,!1,D)})},ao0=function(D,Y){D.JSC$19240_rejectCb!==void 0&&D.JSC$19240_rejectCb(Y);
MUk(D)},MUk=function(D){D.uiHandler!==void 0&&D.uiHandler.hideContent();
_.fg(window,"message",D.JSC$19240_receiveMessage,!1,D);D.JSC$19240_resolveCb=void 0;D.JSC$19240_rejectCb=void 0;D.uiHandler=void 0;D.iframe=void 0};var C3b=function(D){if(D===2){var Y;D=((Y=window)==null?0:Y.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return D},Qbz=function(D){D=C3b(D);
switch(D){case 0:return"light";case 1:return"dark";default:_.qU(D)}};var HXK=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Wcb=function(D,Y){this.JSC$19252_linkingSession=D;this.noticeConfig=Y;this.displayInfoMap=new Map;var R=new Map;if(_.fw(this.JSC$19252_linkingSession,T00,7))for(D=_.tP(this.JSC$19252_linkingSession,T00,7),D=_.Yh(D,Sbp,1,_.R0()),D=_.a(D),Y=D.next();!Y.done;Y=D.next())Y=Y.value,R.set(_.lh(Y,1),_.WzU(_.tP(Y,_.JOy,3)));if(R.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){Y=this.noticeConfig.enabledDataUsageNoticeUis;D=Y.has(0)?R.get(1):void 0;Y=Y.has(1)?R.get(2):void 0;R=D!==void 0&&Y!==void 0?R.get(3):void 0;var Z=this.noticeConfig.nestedOrigins;var t=new Xjk;var X=new Ks;t=_.jf(t,2,hb,X);X=new Xjk;var M=new Ks;X=_.jf(X,3,hb,M);M=[];D!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:D,lastEvent:t,nestedOrigins:Z}]),M.push({trustedUrl:D,lastEvent:t,nestedOrigins:Z}));Y!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:Y,lastEvent:X,nestedOrigins:Z}]),M.push({trustedUrl:Y,lastEvent:X,nestedOrigins:Z}));R!==void 0?this.displayInfoMap.set(3,[{trustedUrl:R,lastEvent:X,nestedOrigins:Z}]):this.displayInfoMap.set(3,M)}};var zDu=function(D){var Y=new iwh;this.galService=D;this.galCache=Y};
zDu.prototype.getLink=function(D){var Y=D.serviceId;var R=D.scopes;var Z=D.capabilities;var t=D.linkName;var X=this,M;return _.C(function(W){if(Z!==void 0&&R!==void 0)throw Error("bk");M=crE(X.galCache,Y,R,Z,t);return M!==null?W.return(M):W.return(X.galService.getLink({serviceId:Y,sessionId:Math.floor(Math.random()*2147483648),scopes:R,capabilities:Z,linkName:t}).then(function(z){z=c40(z);var I=X.galCache;I.storage.has(Y)?I.storage.get(Y).push(z):I.storage.set(Y,[z]);return z}))})};
zDu.prototype.deleteLink=function(D,Y,R){var Z=this;return _.C(function(t){Dq9(Z.galCache,D,R);return t.return(Z.galService.deleteLink({serviceId:D,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:Y,linkName:R}).then(function(){return!0}))})};var Tyz=function(D,Y){var R=this;this.validator=D;this.msgHandler=Y;this.closedPopupTimeout=this.JSC$19274_rejectCb=this.JSC$19274_resolveCb=this.popup=null;this.JSC$19274_receiveMessage=function(Z){if(Z!==null&&(Z=Z.event_,Z.source===R.popup)){var t=Z.data;if(R.validator(t,Z.origin)){var X;(X=R.msgHandler)!=null&&X.call(R,t)||(R.JSC$19274_resolveCb!==null&&R.JSC$19274_resolveCb(t),Srh(R))}}}};
Tyz.prototype.open=function(D,Y){var R=this;this.popup!==null&&jgE(this);return new Promise(function(Z,t){R.JSC$19274_resolveCb=Z;R.JSC$19274_rejectCb=t;R.popup=_.QB(window,D,"",Y);_.yu(window,"message",R.JSC$19274_receiveMessage,!1,R);IoT(R)})};
var jgE=function(D,Y){D.JSC$19274_rejectCb!==null&&D.JSC$19274_rejectCb(Y);Srh(D)},Srh=function(D){D.closedPopupTimeout&&(D.closedPopupTimeout.cancel(),D.closedPopupTimeout=null);
D.popup&&D.popup.close();_.fg(window,"message",D.JSC$19274_receiveMessage,!1,D);D.popup=null;D.JSC$19274_resolveCb=null;D.JSC$19274_rejectCb=null},IoT=function(D){D.closedPopupTimeout=_.R3E(100).then(function(){D.popup?D.popup.closed?FcT(D):IoT(D):jgE(D,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},FcT=function(D){D.closedPopupTimeout=_.R3E(100).then(function(){jgE(D,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Gtk=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),VUh=function(D,Y,R,Z,t,X,M,W,z,I){var F=this;this.serviceId=D;this.sessionId=Y;this.galService=R;this.oauthDetails=Z;this.galLogger=t;this.interactionMode=X;this.redirectServiceUrl=M;this.consentLanguageKeys=W;this.dynamicUrlParameters=z;this.partnerConfigMinReadTimestamp=I;this.started=!1;this.JSC$19280_dataValidator=function(G,
V){var e=Gtk.has(V);e||F.redirectServiceUrl===void 0||(e=F.redirectServiceUrl===V);return e?G.sentinel==="gdi":!1}};
VUh.prototype.complete=function(){var D=this,Y;return _.C(function(R){if(D.interactionMode!==1)return R.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Y=qG.getRedirectStateFromUri();return Y===null?R.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):R.return(fo9(D,Y))})};
VUh.prototype.start=function(){var D=this,Y;return _.C(function(R){if(D.started)return R.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Np(D.oauthDetails,1))return R.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(D.interactionMode===1)return qG.setLocation(_.Np(D.oauthDetails,1)),R.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));D.started=!0;D.galLogger.logStateTransition(5);
Y=qG.getPostMessagePopup(D.JSC$19280_dataValidator);return R.return(Y.open(_.Np(D.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(Z){D.started=!1;var t=D.galLogger;if((Z==null?void 0:Z.error)!==void 0)throw t.logInternalEvent(59),Error("ck");if((Z==null?void 0:Z.redirect_state)===void 0)throw t.logInternalEvent(131),Error("dk");return fo9(D,Z.redirect_state)}).catch(function(Z){D.started=
!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var fo9=function(D,Y){return _.C(function(R){return R.return(eDT(D.galService,{serviceId:D.serviceId,sessionId:D.sessionId,dynamicUrlParameters:D.dynamicUrlParameters,redirectState:Y,consentLanguageKeys:D.consentLanguageKeys,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp}).then(function(Z){var t={statusCode:1,link:c40(Z.getLink())};JNk(_.Ar(Z,3))!==void 0&&(t.callerState=JNk(_.Ar(Z,3)));D.galLogger.logInternalEvent(134);return t}))})},qG={getPostMessagePopup:function(D){return new Tyz(D)},
getRedirectStateFromUri:function(){var D=_.qC(qG.getLocation()).fragment_;return(new _.X$(D)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(D){_.C4y(window.location,_.Jf(D))},
createOAuthFlow:function(D,Y){return new VUh(D.serviceId,D.sessionId,D.galService,Y,D.galLogger,D.interactionMode,D.redirectServiceUrl,D.consentLanguageKeys,D.dynamicUrlParameters,D.partnerConfigMinReadTimestamp)}};var A0I=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(A0I,_.Y7);var nr9=_.zo(A0I);var r0K=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),wjK=function(D,Y,R,Z,t,X,M,W,z){var I=this;this.serviceId=D;this.sessionId=Y;this.galService=R;this.gsiWebFlowDetails=Z;this.colorScheme=t;this.showCloseOption=X;this.galLogger=M;this.interactionMode=W;this.redirectServiceUrl=z;this.started=!1;this.JSC$19292_dataValidator=function(F,G){var V=r0K.has(G);V||I.redirectServiceUrl===
void 0||(V=I.redirectServiceUrl===G);return V?F.sentinel==="gal":!1};
this.logEventProcessor=function(F){return F.result?(F=xX9(F.result))?Pip(I.galLogger,F):!1:!1}};
wjK.prototype.complete=function(){var D=this,Y,R;return _.C(function(Z){if(D.interactionMode!==1)return Z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Y=H9.getRedirectStateFromUri();if(Y===void 0)return D.galLogger.JSC$19232_logErrorEvent(131),Z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return R=$q0(D,Y),Z.return(vrh(D,R))}catch(t){return Z.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
wjK.prototype.start=function(){var D=this,Y;return _.C(function(R){if(D.started)return R.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Np(D.gsiWebFlowDetails,1))return R.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(D.interactionMode===1)return H9.setLocation(orb(D,_.Np(D.gsiWebFlowDetails,1))),R.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
D.started=!0;Y=H9.getPostMessagePopup(D.JSC$19292_dataValidator,D.logEventProcessor);return R.return(Y.open(orb(D,_.Np(D.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(Z){D.started=!1;if((Z==null?void 0:Z.result)===void 0)throw D.galLogger.JSC$19232_logErrorEvent(131),Error("dk");Z=$q0(D,Z.result);return vrh(D,Z)}).catch(function(Z){D.started=!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var orb=function(D,Y){D=["result_channel",D.interactionMode===1?"2":"1","color_scheme",Qbz(D.colorScheme),"show_close_option",D.showCloseOption];return jap(Y,D)},vrh=function(D,Y){if(Y!==null&&_.fw(Y,Ls,2)){var R,Z=Y==null?void 0:(R=_.tP(Y,Ls,2))==null?void 0:_.lh(R,2);
Z&&D.galLogger.JSC$19232_logErrorEvent(E8T(Z));return sgz(_.tP(Y,Ls,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 D.galService.getLink({serviceId:D.serviceId,sessionId:D.sessionId,consistencyKey:_.Np(Y,1)}).then(function(t){t=c40(t);D.galLogger.logInternalEvent(134);return{statusCode:1,link:t}})},$q0=function(D,Y){Y=nr9(Y);
if(!_.fw(Y,Ls,2)&&_.Np(Y,1)==="")throw D.galLogger.JSC$19232_logErrorEvent(5),Error("ek");return Y},H9={getPostMessagePopup:function(D,Y){return new Tyz(D,Y)},
getRedirectStateFromUri:function(){return _.HB(_.qC(H9.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(D){_.C4y(window.location,_.Jf(D))},
createStreamlinedFlow:function(D,Y){return new wjK(D.serviceId,D.sessionId,D.galService,Y,D.colorScheme,D.showCloseOption,D.galLogger,D.interactionMode,D.redirectServiceUrl)}};var TLz=function(){var D=_.GLM("GAL");this.storage=D?new _.nv(D):null};
TLz.prototype.getSession=function(D){if(this.storage!==null)try{var Y=this.storage.get("SAVED_SESSION");if(Y===void 0)return null;if(Y.serviceId===D)return Y}catch(R){}return null};var Xu=function(){};
_.n(Xu,uIE);Xu.prototype.logStateTransition=function(){};
Xu.prototype.logInternalEvent=function(){};
Xu.prototype.JSC$19232_logErrorEvent=function(){};var bCk=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(bCk,_.Y7);bCk.prototype.getCompletionUrl=function(){return _.Np(this,15)};var ua=function(D,Y,R,Z,t,X){this.serviceId=D;this.environment=Y;this.sessionId=R;this.colorSchemeSelected=Z;this.colorThemeDisplayed=t;this.JSC$19305_transport=X;this.currentState=1};
_.n(ua,uIE);ua.prototype.logStateTransition=function(D){var Y=y0E(this);Y=_.s1(Y,3,this.currentState);Y=_.s1(Y,1,D);this.currentState=D;D=FpE(1);this.dispatch(Y,D)};
ua.prototype.logInternalEvent=function(D){D=FpE(D);this.dispatch(y0E(this),D)};
ua.prototype.JSC$19232_logErrorEvent=function(D){var Y=y0E(this);Y=_.s1(Y,1,10);D=FpE(D);this.dispatch(Y,D)};
var y0E=function(D){var Y=new bCk;Y=_.s1(Y,1,D.currentState);Y=_.ew(Y,7,D.serviceId);var R,Z;var t=((R=window)==null?0:(Z=R.location)==null?0:Z.href)?_.qC(window.location.href).JSC$10000_domain_:"NO_PACKAGE_NAME";R=_.ew(Y,8,t);R=_.s1(R,6,D.environment);R=_.ew(R,5,"100");R=_.s1(R,11,D.colorSchemeSelected);return _.s1(R,12,D.colorThemeDisplayed)};
ua.prototype.dispatch=function(D,Y){Y===void 0&&(Y=new _.MZ);var R=Y;D=D.serialize();R=_.ew(R,8,D);_.fI(R,12,this.sessionId);this.JSC$19305_transport.dispatch(Y)};var Nyp=function(D,Y){this.loggerType=D;this.sessionIndex=Y!=null?Y:0},loI;
Nyp.prototype.create=function(D,Y,R,Z,t){switch(this.loggerType){case 0:return new Xu;case 1:return loI||(loI=(new _.CG(555,this.sessionIndex.toString())).build()),new ua(D,Y,R,Z,t,loI);default:_.qU(this.loggerType,"unknown logger type")}};var xa=[6,2,3,1],fQE=new Map([[4,1],[1,6],[2,2],[3,3]]),Zht={statusCode:7,statusMessage:"Failed to create flow object"},z1t=function(D,Y,R,Z,t,X,M,W,z,I){this.serviceId=D;this.sessionId=Y;this.config=R;this.galService=Z;this.JSC$19312_linkingSession=t;this.googleScopes=X;this.callerState=M;this.consentLanguageKeys=W;this.dynamicUrlParameters=z;this.partnerConfigMinReadTimestamp=I;this.currentFlow=0;Z=this.JSC$19312_linkingSession;t=new Set;_.fw(Z,aQh,1)&&t.add(1);_.fw(Z,IDE,2)&&_.fw(Z,MCT,6)&&t.add(2);
_.fw(Z,jc9,3)&&_.fw(Z,MCT,6)&&t.add(3);_.fw(Z,z9E,4)&&t.add(6);this.supportedFlows=t;Z=R.loggerType;t=R.clientEnvironment;a:{X=R.colorScheme;switch(X){case 0:X=1;break a;case 1:X=2;break a;case 2:X=3;break a;default:_.qU(X)}X=void 0}a:{M=R.colorScheme;M=C3b(M);switch(M){case 0:M=1;break a;case 1:M=2;break a;default:_.qU(M)}M=void 0}this.galLogger=(new Nyp(Z,R.authUser)).create(D,t,Y,X,M)},kt0=function(D){return new Promise(function(Y){var R,Z,t,X,M,W,z,I,F,G;
return _.C(function(V){switch(V.nextAddress){case 1:R=C0k(D.currentFlow,D.supportedFlows),Z=!1,t=new Wcb(D.JSC$19312_linkingSession,D.config.dataUsageNoticeConfig);case 2:if(R===void 0){V.jumpTo(4);break}_.SX(V,5);var e=t,r=R,l=void 0;Z?r===1&&(l=e.displayInfoMap.get(2)):r===2||r===3?l=e.displayInfoMap.get(1):r===1&&(l=e.displayInfoMap.get(3));X=l?l:[];M=D.consentLanguageKeys;W=_.a(X);z=W.next();case 7:if(z.done)return D.currentFlow=R,V.yield(skz(J09(D,M)),11);I=z.value;return V.yield(g80(I,D.config.dataUsageNoticeConfig.uiAdapter,
D.config.colorScheme,D.galLogger),10);case 10:F=V.yieldResult;if(F.statusCode!==1)return jkE(D.serviceId),D.currentFlow=0,Y(mn({statusCode:F.statusCode,statusMessage:F.statusMessage},D.callerState)),V.return();F.consentLanguageKeys!==void 0&&(M=F.consentLanguageKeys);z=W.next();V.jumpTo(7);break;case 11:G=V.yieldResult;if(G.statusCode!==10)return G.statusCode!==6&&(jkE(D.serviceId),D.currentFlow=0),G.statusCode!==1&&D.callerState!==void 0&&(G.callerState=D.callerState),Y(G),V.return();_.xw(V,6);break;
case 5:_.Gl(V);case 6:R=C0k(D.currentFlow,D.supportedFlows);Z=!0;V.jumpTo(2);break;case 4:jkE(D.serviceId),D.currentFlow=0,Y(mn({statusCode:12,statusMessage:"Linking failed"},D.callerState)),_.V9(V)}})})},GLt=function(D,Y,R){D.currentFlow=Y;
return XUh(J09(D,R)).then(function(Z){return Z.statusCode===10&&D.config.interactionMode===1&&C0k(D.currentFlow,D.supportedFlows)!==void 0?kt0(D):Z})},J09=function(D,Y){return{flowParams:{serviceId:D.serviceId,
sessionId:D.sessionId,galService:D.galService,galLogger:D.galLogger,interactionMode:D.config.interactionMode,redirectServiceUrl:D.config.redirectServiceUrl,colorScheme:D.config.colorScheme,consentLanguageKeys:Y,dynamicUrlParameters:D.dynamicUrlParameters,showCloseOption:D.config.showCloseOption,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp},currentFlow:D.currentFlow,config:D.config,session:D.JSC$19312_linkingSession,googleScopes:D.googleScopes,callerState:D.callerState}};var Auh=function(D,Y){this.config=D;this.galService=Y.getService();this.JSC$19325_galRepository=Y.JSC$19343_galRepository};
Auh.prototype.getLink=function(D,Y){return Uq9(this,D,Y)};
var Uq9=function(D,Y,R){return D.JSC$19325_galRepository.getLink({serviceId:Y,scopes:void 0,capabilities:void 0,linkName:R}).then(function(Z){return{statusCode:1,link:Z}}).catch(function(Z){return{statusCode:e19(Z.code),
statusMessage:Z.message}})};
Auh.prototype.deleteLink=function(D,Y){return this.JSC$19325_galRepository.deleteLink(D,this.config.accountLinkingEntryPoint,Y).then(function(){return{statusCode:1}}).catch(function(R){return{statusCode:e19(R.code),
statusMessage:R.message}})};
Auh.prototype.startLinkingSession=function(D){var Y=D.serviceId;var R=D.sessionId;return SMh({serviceId:Y,sessionId:R!==void 0?R:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:D.loginHint,callerState:D.callerState,consentLanguageKeys:D.consentLanguageKeys,linkName:D.linkName,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp})};var aO=function(D,Y,R,Z,t,X,M){this.apiKey=Y;this.authUser=R;this.oauthToken=Z;this.bucket=t;this.locale=X;this.galSdkEventHandler=M;if(Z===void 0){if(Y===void 0)throw Error("fk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new g0E(D)};
aO.prototype.deleteLink=function(D){var Y=D.serviceId;var R=D.sessionId;var Z=D.accountLinkingEntryPoint;var t=D.linkName;var X=this,M;return _.C(function(W){var z=(new Qs).setHeader(X.getHeader(R));var I=KcE({serviceId:Y,linkName:t});z=_.To(z,2,I);M=_.hr(z,3,Z);return W.return(X.makeRequest(X.galServiceClient.deleteLink,M,[1,3],[2,4]))})};
var eDT=function(D,Y){var R=Y.serviceId;var Z=Y.sessionId;var t=Y.dynamicUrlParameters;var X=Y.redirectState;var M=Y.consentLanguageKeys;var W=Y.partnerConfigMinReadTimestamp;var z;return _.C(function(I){var F=(new p3).setHeader(D.getHeader(Z,t));F=_.E0(F,2,R);z=_.E0(F,4,X);M!==void 0&&_.E0(z,5,M);W!==void 0&&_.To(z,6,W);return I.return(D.makeRequest(D.galServiceClient.JSC$19211_finishOAuth,z,[1,3],[2,4]))})};
aO.prototype.getLink=function(D){var Y=D.serviceId;var R=D.sessionId;var Z=D.scopes;var t=D.capabilities;var X=D.consistencyKey;var M=D.linkName;var W=this,z;return _.C(function(I){var F=(new E6).setHeader(W.getHeader(R)),G=KcE({serviceId:Y,scopes:Z,capabilities:t,linkName:M});z=_.To(F,2,G);X!==void 0&&(F=cnK(),F=_.E0(F,2,X),_.To(z,3,F));return I.return(W.makeRequest(W.galServiceClient.getLink,z,[1,3],[2,4]))})};
var ush=function(D,Y){var R=Y.serviceId;var Z=Y.sessionId;var t=Y.googleScopes;var X=Y.consistencyKey;var M;return _.C(function(W){var z=(new Bw).setHeader(D.getHeader(Z));z=_.E0(z,2,R);var I=Array.from(t.values());z=_.Ez(z,3,I,_.Ct);I=cnK();I=_.E0(I,2,X);M=_.To(z,4,I);return W.return(D.makeRequest(D.galServiceClient.JSC$19211_depositGoogleCredential,M,[1,3],[2,4]))})};
aO.prototype.startLinkingSession=function(D){var Y=D.serviceId;var R=D.sessionId;var Z=D.scopes;var t=D.capabilities;var X=D.loginHint;var M=D.supportedFlows;var W=D.completionUrl;var z=D.usePingPong;var I=D.twoWayLinking;var F=D.accountLinkingEntryPoint;var G=D.callerState;var V=D.consentLanguageKeys;var e=D.googleScopes;var r=D.dataUsageNoticeConfig;var l=D.linkName;var U=D.dynamicUrlParameters;var K=D.partnerConfigMinReadTimestamp;var H=this,c,Q;return _.C(function(E){if(t!==void 0&&Z!==void 0)throw Error("bk");
var B=(new Vs9).setHeader(H.getHeader(R,U));c=_.E0(B,2,Y);l!==void 0&&_.E0(c,14,l);if(t!==void 0){B=c;var O=Array.from(t.values());_.Ez(B,5,O,_.Ct)}else Z!==void 0&&(B=c,O=Array.from(Z.values()),_.Ez(B,3,O,_.Ct));W!==void 0&&_.E0(c,6,W);z!==void 0&&_.ll(c,15,z);M!==void 0&&(B=c,O=Array.from(M.values()),_.Ez(B,4,O,_.pL));if(I!==void 0){if(I&&(!e||e.size===0))throw Error("gk");_.ll(c,8,I)}F!==void 0&&_.hr(c,9,F);X!==void 0&&_.E0(c,13,X);G!==void 0&&(B=c,O=(new TextEncoder).encode(G),_.gb(B,12,_.$E(O,
!1),_.wz()));V!==void 0&&_.E0(c,16,V);K!==void 0&&_.To(c,18,K);if(r!==void 0&&r.size>0||e!==void 0&&e.size>0)Q=new GX0,e!==void 0&&e.size>0&&(B=Q,O=Array.from(e.values()),_.Ez(B,1,O,_.Ct)),r!==void 0&&(r.has(0)&&_.Ukr(Q,2,_.pL,1,_.iU),r.has(1)&&_.Ukr(Q,2,_.pL,2,_.iU)),_.To(c,17,Q);return E.return(H.makeRequest(H.galServiceClient.startLinkingSession,c,[1],[2]))})};
aO.prototype.getMetadata=function(){var D=this,Y,R;return _.C(function(Z){Y={};D.useFpa?(Y["X-Goog-Api-Key"]=D.apiKey,Y["X-Goog-AuthUser"]=D.authUser!==void 0?D.authUser.toString():"0",(R=_.PPU([]))&&(Y.Authorization=R)):Y.Authorization="Bearer "+D.oauthToken;D.locale&&(Y["accept-language"]=D.locale);return Z.return(Y)})};
aO.prototype.makeRequest=function(D,Y,R,Z){var t=this,X;return _.C(function(M){if(M.nextAddress==1)return M.yield(t.getMetadata(),2);X=M.yieldResult;hDp(t,R);return M.return(D.bind(t.galServiceClient)(Y,X).finally(function(){hDp(t,Z)}))})};
var hDp=function(D,Y){D.galSdkEventHandler!==void 0&&Y.forEach(function(R){D.galSdkEventHandler.onEvent(R)})};
aO.prototype.getHeader=function(D,Y){var R=new Hw;D=_.gb(R,2,_.OL(D),0);D=_.hr(D,5,3);Y=_.Ez(D,8,Y,_.Ct);this.bucket!==void 0&&_.E0(Y,1,this.bucket);return Y};
var KcE=function(D){var Y=D.serviceId;var R=D.scopes;var Z=D.capabilities;D=D.linkName;if(Z!==void 0&&R!==void 0)throw Error("bk");var t=new ioK;Y=_.E0(t,1,Y);Z!==void 0?(R=Array.from(Z.values()),_.Ez(Y,5,R,_.Ct)):R!==void 0&&(R=Array.from(R.values()),_.Ez(Y,3,R,_.Ct));D!==void 0&&_.E0(Y,6,D);return Y};var nxk=function(D){this.galService=new aO(D.alsDomain,D.apiKey,D.authUser,D.oauthToken,D.bucket,D.locale,D.galSdkEventHandler);this.JSC$19343_galRepository=new zDu(this.galService)};
nxk.prototype.getService=function(){return this.galService};var Lct=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Lct,_.Y7);var mqK=function(D){var Y=new Lct;return _.s1(Y,1,D)};
Lct.prototype.setErrorMessage=function(D){return _.ew(this,2,D)};var qrz=[0,_.ih,_.Eb,_.ih];var MH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(MH,_.Y7);var HCK=[0,[1,2,3],_.d0,[0,ZoE,Xfh,-1],_.d0,[0,sa9,-1],_.LHr];var xq9=[0,_.BQ,1,_.ih,_.Eb,-1,1,_.H7U,_.Qn,_.ih,-1,HCK];var P3p=[0,_.ih,[0,_.H7U,_.Qn,[0,_.Eb]],_.pw,[0,_.ih,-1]];var $D=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n($D,_.Y7);var Qgk=[0,_.Eb,_.ih,-2,_.BQ,_.ih,_.BQ,_.ih,-2,1,_.pw];var By9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(By9,_.Y7);var pju=[0,_.BQ];var Er9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Er9,_.Y7);var gr9=[0,_.ih,P3p,pju,Qgk,xq9];var EP9=_.C$(Er9,gr9);var dqt=[0,dpI];var DPp=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(DPp,_.Y7);var iCb=[0,[1,3],zGu,_.ih,zGu];var rj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(rj,_.Y7);var OCK=[0,_.ih];var c0T=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(c0T,_.Y7);var wj=function(D){return _.Ub(D,Lct,2,n3)},DZ9=function(D){var Y=new c0T;
return _.jf(Y,2,n3,D)},n3=[1,
2];var Ykh=[0,n3,_.d0,OCK,_.d0,qrz,_.g0,iCb,1,_.ih,dqt];var Rc9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Rc9,_.Y7);var tEk=function(D){var Y=new Rc9;return _.jf(Y,3,ZgK,D)},ZgK=[2,
3];var Cl=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(Cl,_.Y7);var sFK=function(D,Y){return _.To(D,2,Y)},XP9=function(D,Y){return _.To(D,8,Y)},uQE=function(D,Y){return _.To(D,3,Y)};var aWb=[0,_.ih,Ykh,gr9,_.itU,[0,[5,6,7],[0,_.ih,-2],[0,_.BQ,_.ih,_.Eb],[0,HCK],[0,_.Eb,_.ih,-1,_.dkL,_.ih],_.d0,[0,[0,_.BQ],_.ih,-1],_.d0,[0,[3,4],_.ih,-1,_.d0,[0,[0,_.ih,_.pw]],_.d0,[0,[0,[0,[1,2],_.d0,[0],_.d0,[0]]]]],_.d0,[0]],_.itU,-1,[0,ZgK,_.ih,_.d0,OCK,_.d0,qrz,_.g0,iCb,[0,dpI]]];var MEz=_.C$(Cl,aWb),CQ9=_.WZ(aWb);var WP9=function(){_.AE.call(this)};
_.n(WP9,_.AE);WP9.prototype.init=function(){};
new WP9;var zcK=_.gY(["data-"]),Skt=_.gY(["aria-"]),T3E=_.gY(["aria-"]),W3=function(D,Y){this.isLatencyMeasurementExperiment=D===void 0?!1:D;this.enableDialogA11yFix=Y===void 0?!1:Y;this.JSC$19372_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.A97(_.ZU.location.href)},dWK=function(D,Y){D.onConsentPrimitiveShownCallback=Y},jFK=function(D,Y){return D.overriddenIframeLoadTimeout?D.overriddenIframeLoadTimeout:Y!==void 0?Y:5E3},OBK=function(D){if(D.prewarmPromise!==void 0)return D.prewarmPromise;
D.prewarmPromise=new Promise(function(Y,R){zG(D,1);IWp(D,FPu(D,!0),GgK(D));D.iframe?D.prewarmChannel||VEK(D,D.iframe,Y):R(Error("hk"))});
D.prewarmPromise.finally(function(){D.prewarmPromise=void 0});
return D.prewarmPromise};
W3.prototype.showPrimitive=function(){var D=this;if(this.consentPromise!==void 0)return this.consentPromise;var Y=Date.now();fWK(this,Y);this.consentPromise=new Promise(function(R,Z){zG(D,0,Y);var t=D.isDarkTheme();D.isLatencyMeasurementExperiment||D.initialLoadingStrategy===1||D.initialLoadingStrategy===2||(D.loadingBar||(D.loadingBar=vxk(getComputedStyle(document.body).direction==="rtl",t),D.loadingBar.style.position="fixed",D.loadingBar.style.zIndex="15000"),document.body.appendChild(D.loadingBar));
IWp(D,FPu(D),GgK(D));D.iframe?D.channel||ecI(D,D.iframe,R,Z):(Alu(D),Z(Error("hk")))});
this.consentPromise.finally(function(){D.consentPromise=void 0});
return this.consentPromise};
var ecI=function(D,Y,R,Z){var t,X;_.C(function(M){switch(M.nextAddress){case 1:zG(D,3);t=!1;setTimeout(function(){if(!t){Alu(D);nB9(D);rlK(D);var W=mqK(7).setErrorMessage("Timeout connecting to iframe");R(XP9(sFK(new Cl,DZ9(W)),tEk(W)))}},jFK(D,wPp(D)));
if(!D.prewarmPromise){M.jumpTo(2);break}_.SX(M,3);return M.yield(D.prewarmPromise,5);case 5:_.xw(M,2);break;case 3:_.Gl(M),X=mqK(4).setErrorMessage("Error while prewarming."),R(XP9(sFK(new Cl,DZ9(X)),tEk(X)));case 2:D.prewarmChannel&&D.prewarmChannel.send(CQ9(uQE(new Cl,D.consentPrimitiveRequest))),D.channel=_.Do({destination:D.JSC$19372_win,iframe:Y,origin:$ZK(D),channelName:"cpw",onEstablished:function(){t=!0;Alu(D);D.isLatencyMeasurementExperiment||(D.JSC$19372_previousBodyOverflow=document.body.style.overflow,
D.JSC$19372_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,D.JSC$19372_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",D.enableDialogA11yFix&&window.addEventListener("blur",D.focusChangeListener));var W=D.iframe;W.style.bottom="0";W.style.position="fixed";W.style.right="0";W.style.border="none";W.style.left="0";W.style.top=
"0";W.style.zIndex="5000";W.style.pointerEvents="";W.style.visibility="";D.initialLoadingStrategy===2||D.initialLoadingStrategy===3?zG(D,4):zG(D,6);var z;(z=D.onConsentPrimitiveShownCallback)==null||z.call(D)},
onMessage:function(W){W=MEz(W.data);switch(_.lh(W,1)){case 1:nB9(D);var z=oxE(_.tP(W,_.U0,7));z&&(D.initialLoadingStrategy!==2&&D.initialLoadingStrategy!==3||zG(D,6,z),zG(D,5,z));if(z=oxE(_.tP(W,_.U0,6)))zG(D,7,z),zG(D,8);var I,F;((I=_.tP(W,c0T,2))==null?void 0:_.r0(I,n3))!==0&&((F=_.tP(W,Rc9,8))==null?void 0:_.r0(F,ZgK))!==0||Z(Error("ik"));R(W);break;case 2:rlK(D)}}}),_.V9(M)}})},VEK=function(D,Y,R){D.prewarmChannel=_.Do({destination:D.JSC$19372_win,
iframe:Y,origin:$ZK(D),channelName:"pwcp",onEstablished:function(){zG(D,2);R()}})},$ZK=function(D){var Y=_.n$(D.src).toString();
return Y&&Y.indexOf("://")<0&&Y.indexOf("//")!==0?D.origin:_.A97(Y)},FPu=function(D,Y){Y=Y===void 0?!1:Y;
var R,Z=new Map([["origin",D.origin],["hl",(R=vBK(D))!=null?R:null]]);Y&&Z.set("pw","1");Y=_.a([["cpr",D.consentPrimitiveRequest.serialize()]]);for(R=Y.next();!R.done;R=Y.next()){var t=_.a(R.value);R=t.next().value;t=t.next().value;Z.set(R,t)}D.isDarkTheme()&&Z.set("color_scheme","dark");return _.sG(D.src,Z)},Alu=function(D){D.isLatencyMeasurementExperiment||D.loadingBar&&document.body.removeChild(D.loadingBar)};
W3.prototype.getSrc=function(){var D=_.gf(this.origin),Y;var R=(Y=_.tP(this.consentPrimitiveRequest,By9,3))==null?void 0:_.ZC(Y,1);Y="consent.google.com";R=R?"/u/"+encodeURIComponent(R.toString()):"";(D==null?0:D.endsWith("youtube.com"))?Y="consent.youtube.com":(D=D==null?void 0:D.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(Y="consent.google."+((D[1]?"co.":"")+encodeURIComponent(D[2])));return _.Af("https://"+Y+"/signedin"+R+"/landing")};
var IWp=function(D,Y,R){D.iframe||(D.iframe=document.createElement("iframe"),D.iframe.style.width="100%",D.iframe.style.height="100%",R!==112496729&&(D.iframe.style.colorScheme="auto"),D.isLatencyMeasurementExperiment&&(D.iframe.style.display="none"),_.x7(D.iframe,Y),D.iframe.setAttribute("jsname","C5o1O"),oBb(D.iframe),document.body.appendChild(D.iframe))},oBb=function(D){D.style.bottom="-200vh";
D.style.position="fixed";D.style.right="-200vw";D.style.border="";D.style.left="";D.style.top="";D.style.zIndex="";D.style.pointerEvents="none";D.style.visibility="hidden"},nB9=function(D){D.iframe&&(D.isLatencyMeasurementExperiment||(D.JSC$19372_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=D.JSC$19372_previousHtmlOverscroll),D.JSC$19372_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=D.JSC$19372_previousBodyOverscroll),D.JSC$19372_previousBodyOverflow!==
void 0&&(document.body.style.overflow=D.JSC$19372_previousBodyOverflow),D.enableDialogA11yFix&&bgk(D,!1)),oBb(D.iframe))};
W3.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(bgk(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var bgk=function(D,Y){var R,Z,t=(R=D.iframe)==null?void 0:(Z=R.parentElement)==null?void 0:Z.children;if(t)for(R=0;R<t.length;R++)Z=t[R],Z!==D.iframe&&(Y?(Z.hasAttribute("aria-hidden")&&_.ON([_.RI(zcK)],Z,"data-old-aria-hidden",Z.getAttribute("aria-hidden")),_.ON([_.RI(Skt)],Z,"aria-hidden","true")):(Z.removeAttribute("aria-hidden"),Z.hasAttribute("data-old-aria-hidden")&&(_.ON([_.RI(T3E)],Z,"aria-hidden",Z.getAttribute("data-old-aria-hidden")),Z.removeAttribute("data-old-aria-hidden"))))},zG=function(D,
Y,R){var Z;
(Z=D.latencyCallback)==null||Z.call(D,{latencyType:Y,timestampEpochMillis:R!=null?R:Date.now()})};var yl9=function(D,Y,R){W3.call(this,Y,R===void 0?!1:R);this.consentPrimitiveRequest=D;D=vBK(this);_.Gyt(D);this.src=this.getSrc();var Z;this.initialLoadingStrategy=(Z=_.tP(this.consentPrimitiveRequest,$D,4))==null?void 0:_.lh(Z,4)},N39;
_.n(yl9,W3);var gPk=function(D){var Y=_.f("enable_primitive_dialog_aria_hide_siblings");D={request:D,enableDialogA11yFix:Y===void 0?!1:Y};N39||(N39=new yl9(D.request,D.isLatencyMeasurementExperiment||_.lh(D.request,1)===2,D.enableDialogA11yFix));return N39},vBK=function(D){var Y;
return(Y=_.tP(D.consentPrimitiveRequest,$D,4))==null?void 0:_.Np(Y,1)},fWK=function(D,Y){if(!_.fw(D.consentPrimitiveRequest,MH,5)){var R=D.consentPrimitiveRequest,Z=new MH;
_.To(R,5,Z)}var t;if((t=_.tP(D.consentPrimitiveRequest,MH,5))==null||_.bL5(_.Vn(t,8))==null){var X;(X=_.tP(D.consentPrimitiveRequest,MH,5))!=null&&_.fI(X,8,Y)}},GgK=function(D){var Y;
return(Y=_.tP(D.consentPrimitiveRequest,MH,5))==null?void 0:_.ZC(Y,1)};
yl9.prototype.isDarkTheme=function(){var D;return((D=_.tP(this.consentPrimitiveRequest,$D,4))==null?void 0:_.lh(D,2))===2};
var wPp=function(D){var Y;return((Y=_.tP(D.consentPrimitiveRequest,$D,4))==null?void 0:_.ZC(Y,5))||void 0},rlK=function(D){D.channel=void 0;
D.prewarmChannel=void 0;D.iframe&&(document.body.contains(D.iframe)&&document.body.removeChild(D.iframe),D.iframe=void 0);N39=void 0},cpt=function(D){return W3.prototype.showPrimitive.call(D).then(function(Y){return _.tP(Y,c0T,2)})};for(var SO={},lWt=(SO[64]="ma",SO[73]="ogb",SO[89]="cr",SO[21]="test",SO[0]="unkn",SO[137]="con",SO[155]="hl",SO[78]="yt",SO[171]="lp",SO[172]="ap",SO[177]="amo",SO[178]="pqe",SO[74]="gg",SO[1]="gm",SO[140]="am",SO[193]="sc",SO),Jl9=_.a(Object.keys(lWt)),kgT=Jl9.next();!kgT.done;kgT=Jl9.next());var UZ9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(UZ9,_.Y7);var KPz=[0,[2,3,4],_.ih,t39,zGu,_.LHr];var hcT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(hcT,_.Y7);var LPu=_.C$(hcT,[0,WLb,_.Eb,_.ih,_.Eb,_.ih,KPz]);var mZT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(mZT,_.Y7);mZT.prototype.getCommand=function(){return _.lh(this,1)};
var qkb=function(){var D=new mZT;return _.hr(D,1,0)};var Hgu=_.WZ([0,WLb,_.Eb,[0,_.ih,_.Eb,-1]]);var xZI=new _.jE("s"),PQb=new _.jE("t"),QFz=new _.jE("u"),B3k=new _.jE("v"),pPI=function(D,Y,R){_.IF.call(this,xZI);this.mediaKey=D;this.photoUrl=Y;this.photoSource=R};
_.n(pPI,_.IF);var EB9=function(){_.IF.call(this,PQb)};
_.n(EB9,_.IF);var gBb=function(D){D=D===void 0?!1:D;_.IF.call(this,QFz);this.isError=D};
_.n(gBb,_.IF);var dZp=function(){_.IF.call(this,B3k)};
_.n(dZp,_.IF);var igt=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,YST=function(D){if(typeof D=="string"){if(D.charAt(0)==".")return OgK(D.substr(1));if(D.charAt(0)=="["){var Y=igt.exec(D);D=D.indexOf("=")==-1?void 0:Y[3];return clI(Y[1],D)}return Dl0(D)}return D},OgK=function(D){return function(Y){return Y.getAttribute&&_.xB(Y,D)}},clI=function(D,Y){return function(R){return Y!==void 0?R.getAttribute&&R.getAttribute(D)==Y:R.hasAttribute&&R.hasAttribute(D)}},Dl0=function(D){D=D.toUpperCase();
return function(Y){return(Y=Y.tagName)&&Y.toUpperCase()==D}},RXb=function(){return!0};var TG=function(D,Y){this.JSC$19400_key_=D;this.JSC$19400_value_=Y},jO=function(D){throw Error("jk`"+D.JSC$19400_key_);
},Zfz=function(D,Y){return new TypeError("kk`"+Y+"`"+D.JSC$19400_key_+"`"+D.JSC$19400_value_+"`"+typeof D.JSC$19400_value_)};
TG.prototype.string=function(D){return arguments.length==0?t_E(this):ss9(this,D)};
var ss9=function(D,Y){var R;return(R=XFt(D))!=null?R:Y},t_E=function(D){var Y=XFt(D);
Y===null&&jO(D);return Y},XFt=function(D){var Y=D.JSC$19400_value_;
if(Y==null)return null;if(typeof Y==="string")return Y;throw Zfz(D,"string");};
TG.prototype.bool=function(D){if(arguments.length==0){var Y=this.optionalBool();Y===null&&jO(this)}else{var R;Y=(R=this.optionalBool())!=null?R:D}return Y};
TG.prototype.optionalBool=function(){var D=this.JSC$19400_value_;if(D==null)return null;if(typeof D==="boolean")return D;if(typeof D==="string"){D=D.toLowerCase();if(D==="true"||D==="1")return!0;if(D==="false"||D==="0")return!1}throw Zfz(this,"boolean");};
TG.prototype.number=function(D){if(arguments.length==0){var Y=u$b(this);Y===null&&jO(this)}else Y=asu(this,D);return Y};
var asu=function(D,Y){var R;return(R=u$b(D))!=null?R:Y},u$b=function(D){var Y=D.JSC$19400_value_;
if(Y==null)return null;if(typeof Y==="number")return Y;if(typeof Y==="string"){var R=Number(Y);if(!isNaN(R)&&(R!==0||Y.trim().length!==0))return R}throw Zfz(D,"number");};
TG.prototype.toString=function(){return t_E(this)};
TG.prototype.enum=function(D,Y){var R=!0,Z=void 0,t;for(t in D){var X=D[t];R&&(R=!1,Z=typeof X==="number"?asu(this,Y):ss9(this,Y));if(X==Z)return Z}JSON.stringify(D);return Z};
TG.prototype.array=function(D){if(arguments.length==0){var Y=M_z(this);Y===null&&jO(this);return Y}Y=M_z(this);return Y==null?D:Y};
var M_z=function(D){var Y=D.JSC$19400_value_;if(Y==null)return null;Array.isArray(Y)||(typeof Y!=="string"?Y=[Y]:(Y=Y.trim(),Y=Y==""?[]:Y.split(",").map(function(R){return R.trim()})));
return CCK(D,Y)},CCK=function(D,Y){var R=D.JSC$19400_key_+"[";
return Array.from(Y,function(Z,t){return new TG(R+t+"]",Z)})};
TG.prototype.object=function(D){var Y=this.JSC$19400_value_;if(Y==null)return D===void 0&&jO(this),D;if(typeof Y==="object"&&Y.constructor===Object){D={};var R=this.JSC$19400_key_+".",Z;for(Z in Y)D[Z]=new TG(R+Z,Y[Z]);return D}throw Zfz(this,"object");};var IO=function(D){this.list_=Wkt(D)},Wkt=function(D){if(D instanceof IO)D=D.list_;
else if(D[0]instanceof IO){for(var Y=new Set,R=0;R<D.length;R++)for(var Z=_.a(D[R].list_),t=Z.next();!t.done;t=Z.next())Y.add(t.value);D=Y}return[].concat(_.oK(D))};
_.u=IO.prototype;_.u.each=function(D,Y,R){((R===void 0?0:R)?bFI:_.xs)(this.list_,D,Y);return this};
_.u.size=function(){return this.list_.length};
_.u.isEmpty=function(){return this.list_.length===0};
_.u.get=function(D){return this.list_[D]||null};
_.u.el=function(){return this.list_[0]||null};
_.u.map=function(D,Y){return _.N1(this.list_,D,Y)};
_.u.equals=function(D){return this===D||_.gr(this.list_,D.list_)};
_.u.first=function(){return this.list_.length==0?null:new Fu(this.list_[0])};
_.u.last=function(){return this.list_.length==0?null:new Fu(this.list_[this.list_.length-1])};
_.u.find=function(D){var Y=[];this.each(function(R){R=R.querySelectorAll(String(D));for(var Z=0;Z<R.length;Z++)Y.push(R[Z])});
return new IO(Y)};
_.u.parent=function(){var D=[];this.each(function(Y){(Y=Y.parentElement||null)&&!_.LM(D,Y)&&D.push(Y)});
return new IO(D)};
_.u.children=function(){var D=[];this.each(function(Y){Y=_.J0(Y);for(var R=0;R<Y.length;R++)D.push(Y[R])});
return new IO(D)};
_.u.filter=function(D){D=_.ac(this.list_,YST(D));return new IO(D)};
_.u.closest=function(D){var Y=[],R=YST(D),Z=function(t){return _.gR(t)&&R(t)};
this.each(function(t){(t=_.K0(t,Z,!0))&&!_.LM(Y,t)&&Y.push(t)});
return new IO(Y)};
_.u.next=function(D){return zXE(this,_.mUL,D)};
_.u.prev=function(D){return zXE(this,SRt,D)};
var zXE=function(D,Y,R){var Z=[];var t=R?YST(R):RXb;D.each(function(X){(X=Y(X))&&t(X)&&Z.push(X)});
return new IO(Z)};
IO.prototype.setClass=function(D){return this.each(function(Y){_.HP(Y,D)})};
var SSE=function(D,Y){return D.each(function(R){_.ZT(R,Y)})},TQK=function(D,Y){return D.each(function(R){_.YP(R,Y)})};
IO.prototype.toggleClass=function(D,Y){return Y===!0?SSE(this,D):Y===!1?TQK(this,D):this.each(function(R){_.xB(R,D)?_.YP(R,D):_.ZT(R,D)})};
IO.prototype.setText=function(D){return this.each(function(Y){_.kr(Y,D)})};
var jsu=function(D){D.each(function(Y){Y.removeAttribute("aria-hidden")})};
IO.prototype.getStyle=function(D){if(this.list_.length>0){var Y=this.list_[0],R=Y.style[_.eP(D)];return typeof R!=="undefined"?R:Y.style[_.c1z(Y,D)]||""}};
IO.prototype.getData=function(D){if(this.list_.length===0)return new TG(D,null);var Y=ky0(this.list_[0],D);return new TG(D,Y)};
IO.prototype.focus=function(D){try{D?this.el().focus(D):this.el().focus()}catch(Y){}return this};
IO.prototype.click=function(){var D=_.k2(this.el());if(D.createEvent){var Y=D.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,D.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(Y)}else D=D.createEventObject(),D.clientX=0,D.clientY=0,D.screenX=0,D.screenY=0,D.altKey=!1,D.ctrlKey=!1,D.shiftKey=!1,D.button=0,this.el().fireEvent("onclick",D)};
var GG=function(D,Y,R,Z){function t(W,z,I){var F=z;z&&z.parentNode&&(F=z.cloneNode(!0));W(F,I)}
Z=Z===void 0?!1:Z;if(D.list_.length==1){var X=D.list_[0],M=function(W){return Y(W,X)};
R instanceof IO?R.each(M,void 0,Z):Array.isArray(R)?(Z?bFI:_.xs)(R,M):M(R);return D}return D.each(function(W){R instanceof IO?R.each(function(z){t(Y,z,W)}):Array.isArray(R)?_.xs(R,function(z){t(Y,z,W)}):t(Y,R,W)})};
_.u=IO.prototype;_.u.append=function(D){return GG(this,function(Y,R){Y&&R.appendChild(Y)},D)};
_.u.appendTo=function(D){(new IO([D])).append(this);return this};
_.u.remove=function(){return GG(this,function(D,Y){_.F_(Y)},null)};
_.u.empty=function(){return GG(this,function(D,Y){_.yy(Y)},null)};
_.u.after=function(D,Y){return GG(this,function(R,Z){R&&_.l3(R,Z)},D,!(Y===void 0||Y))};
_.u.before=function(D){return GG(this,function(Y,R){Y&&_.Nq(Y,R)},D)};
_.u.replaceWith=function(D){return GG(this,function(Y,R){Y&&_.K7U(Y,R)},D)};
_.u.toggle=function(D){return this.each(function(Y){_.PB(Y,D)})};
_.u.show=function(){return this.toggle(!0)};
_.u.hide=function(){return this.toggle(!1)};
_.u.trigger=function(D,Y,R,Z){return Isb(this,D,Y,R,Z)};
var Isb=function(D,Y,R,Z,t){return D.each(function(X){_.Vhb(_.k2(X)).triggerWizEventInternal(X,Y,R,Z,t)})},Fu=function(D,Y){D instanceof IO&&(Y=D.list_,D=null);
this.list_=Wkt(D!=null?[D]:Y)};
_.XN(Fu,IO);_.u=Fu.prototype;_.u.children=function(){return new IO(Array.prototype.slice.call(_.J0(this.list_[0])))};
_.u.each=function(D,Y){D.call(Y,this.list_[0],0);return this};
_.u.size=function(){return 1};
_.u.el=function(){return this.list_[0]};
_.u.first=function(){return this};var VC=function(D,Y){Y=Y===void 0?window:Y;this.hostId=D;this.JSC$19411_win=Y;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$19411_previousHtmlOverscroll=this.JSC$19411_previousBodyOverscroll=this.JSC$19411_previousBodyOverflow="";this.eventTarget=new _.eE;this.JSC$19411_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
V_K=function(D){var Y=FkI(FkI(FkI(new GR9(78),"po"),"hppp"),"hhc");
Y.authUser=Number(_.JQ("SESSION_INDEX","0"));Y.colorScheme=D;return Y};
VC.prototype.getOrigin=function(){return this.origin?this.origin:_.YO(_.Ds(_.cP(new _.cO,this.JSC$19411_win.location.protocol),this.JSC$19411_win.location.hostname),this.JSC$19411_win.location.port).toString()};
VC.prototype.getTargetOrigin=function(){return _.YO(_.Ds(_.cP(new _.cO,this.scheme),this.domain),this.port)};
VC.prototype.preloadIframe=function(D){var Y=this;if(this.iframeLoadPromise===void 0){var R=document.createElement("iframe");this.iframe=R;UwT(R,D);this.iframeLoadPromise=new Promise(function(Z,t){var X=!1,M=function(W){W.stopPropagation();R.removeEventListener("error",M);R.removeEventListener("securitypolicyviolation",M);t(Error("lk",{cause:W}))};
R.addEventListener("error",M);R.addEventListener("securitypolicyviolation",M);setTimeout(function(){X||t(Error("mk"))},3E4);
fsz(Y,R,function(){X=!0;R.removeEventListener("error",M);R.removeEventListener("securitypolicyviolation",M);Z()})});
eXu(this);D=this.getTargetOrigin().toString();R.setAttribute("allow","camera "+D+"; display-capture "+D);this.parentElement.appendChild(R)}return this.iframeLoadPromise};
var rmK=function(D,Y){var R,Z;return _.C(function(t){if(t.nextAddress==1)return R=vxk(getComputedStyle(D.parentElement).direction==="rtl"),D.parentElement.appendChild(R),document.activeElement instanceof HTMLElement&&(D.elementToFocusAfterClose=document.activeElement),_.SX(t,2),t.yield(D.preloadIframe(Y),4);if(t.nextAddress!=2){D.parentElement.removeChild(R);D.JSC$19411_previousBodyOverflow=D.parentElement.style.overflow;D.JSC$19411_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
D.JSC$19411_previousBodyOverscroll=D.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";D.parentElement.style.overscrollBehavior="contain";D.parentElement.style.overflow="hidden";var X=D.iframe;X.style.bottom="0";X.style.border="none";X.style.height="100%";X.style.left="0";X.style.position=D.iframePosition;X.style.right="0";X.style.top="0";X.style.width="100%";X.style.zIndex="2202";X.setAttribute("aria-hidden","false");X.setAttribute("aria-modal","true");
D.opened=!0;Amt(D);return _.xw(t,0)}Z=_.Gl(t);D.parentElement.removeChild(R);lQE(D.isDarkTheme());nOK(D,!1);throw Error("nk",{cause:Z});})},nOK=function(D,Y){Y=Y===void 0?!0:Y;
D.iframe!==void 0&&(wFu(D),document.documentElement.style.overscrollBehavior=D.JSC$19411_previousHtmlOverscroll,D.parentElement.style.overscrollBehavior=D.JSC$19411_previousBodyOverscroll,D.parentElement.style.overflow=D.JSC$19411_previousBodyOverflow,D.elementToFocusAfterClose!==void 0&&(D.elementToFocusAfterClose.focus(),D.elementToFocusAfterClose=void 0),Y?eXu(D):(D.parentElement.removeChild(D.iframe),D.iframe=void 0,D.iframeLoadPromise=void 0,D.mainChannel=void 0),D.opened=!1)},wFu=function(D){D.backgroundElementsAriaHiddenIsNull&&
(jsu(D.backgroundElementsAriaHiddenIsNull),D.backgroundElementsAriaHiddenIsNull=void 0);
D.backgroundElementsAriaHiddenIsFalse&&(D.backgroundElementsAriaHiddenIsFalse.each(function(Y){Y.setAttribute("aria-hidden","false")}),D.backgroundElementsAriaHiddenIsFalse=void 0);
D.backgroundElementsWithoutInert&&(D.backgroundElementsWithoutInert.each(function(Y){Y.removeAttribute("inert")}),D.backgroundElementsWithoutInert=void 0)},Amt=function(D){D.backgroundElementsAriaHiddenIsNull=(new Fu(D.iframe.parentElement)).children().filter(function(Y){return Y.getAttribute("aria-hidden")===null&&Y!==D.iframe});
D.backgroundElementsAriaHiddenIsNull.each(function(Y){Y.setAttribute("aria-hidden","true")});
D.backgroundElementsAriaHiddenIsFalse=(new Fu(D.iframe.parentElement)).children().filter(function(Y){return Y.getAttribute("aria-hidden")==="false"&&Y!==D.iframe});
D.backgroundElementsAriaHiddenIsFalse.each(function(Y){Y.setAttribute("aria-hidden","true")});
D.backgroundElementsWithoutInert=(new Fu(D.iframe.parentElement)).children().filter(function(Y){return!Y.hasAttribute("inert")&&Y!==D.iframe});
D.backgroundElementsWithoutInert.each(function(Y){Y.setAttribute("inert","true")})},eXu=function(D){D=D.iframe;
D.style.bottom="-1000px";D.style.position="fixed";D.style.right="-1000px";D.style.border="";D.style.height="";D.style.left="";D.style.top="";D.style.width="";D.style.zIndex="";D.setAttribute("aria-hidden","true");D.setAttribute("aria-modal","false")};
VC.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var GR9=function(D,Y){VC.call(this,lWt[D],Y);this.options=[];this.style=""};
_.n(GR9,VC);var $lI=function(D){D.style="youtube";return D},vOK=function(D,Y){D.eventTarget.listen(QFz,Y);
return D},oOk=function(D,Y){D.eventTarget.listen(xZI,Y);
return D},FkI=function(D,Y){D.options.push(Y);
return D},bfk=function(D){var Y=[D.getOrigin()];
D.ancestorOrigins&&Y.push.apply(Y,_.oK(D.ancestorOrigins));var R=new _.cO(D.JSC$19411_win.location.href),Z=D.startUrl?D.startUrl:D.options.includes("po")?"profile-picture/art":"profile-picture";Y=vw(_.Rs(D.getTargetOrigin(),Z),"origin",Y);D.startUrl&&_.xh(Y,"startPath",D.startUrl);D.authUser>0&&_.xh(Y,"authuser",D.authUser);D.pageId!==void 0&&_.xh(Y,"pageId",D.pageId);_.xh(Y,"hostId",D.hostId);D.jsMode!==void 0&&_.xh(Y,"jsmode",D.jsMode);D.rectangleRatio!==void 0&&_.xh(Y,"rectangleRatio",D.rectangleRatio);
D.options.length>0&&_.xh(Y,"opts",D.options.join(","));try{for(var t=_.a(["utm_source","utm_medium","utm_campaign","utm_content"]),X=t.next();!X.done;X=t.next()){var M=X.value;_.HB(R,M)&&_.xh(Y,M,_.HB(R,M))}var W,z=(W=D.hl)!=null?W:_.HB(R,"hl");z!==void 0&&_.xh(Y,"hl",z)}catch(I){if(!(I instanceof URIError))throw I;}D.colorScheme&&_.xh(Y,"theme",D.colorScheme);D.style&&_.xh(Y,"style",D.style);return Y},ymk=function(D,Y){D.mainChannel=_.Do({destination:D.JSC$19411_win,
iframe:Y,origin:D.getTargetOrigin().toString(),channelName:"ow",onMessage:function(R){R=LPu(R.data);if(Y===D.iframe)switch(_.lh(R,1)){case 1:D.eventTarget.dispatchEvent(new gBb);nOK(D);break;case 2:D.eventTarget.dispatchEvent(new pPI(_.Np(R,4),_.Np(R,2),_.lh(R,5),_.tP(R,UZ9,6)));break;case 0:var Z;D.eventTarget.dispatchEvent(new EB9(_.Np(R,2),(Z=_.lh(R,3))!=null?Z:0));break;case 3:D.eventTarget.dispatchEvent(new gBb(!0));nOK(D,!1);break;case 4:D.eventTarget.dispatchEvent(new dZp)}}})},fsz=function(D,
Y,R){_.Do({destination:D.JSC$19411_win,
iframe:Y,origin:_.YO(_.Ds(_.cP(new _.cO,D.scheme),D.domain),D.port).toString(),channelName:"owi",onMessage:function(Z){Y===D.iframe&&(R!==void 0&&R(),ymk(D,Y),D.opened&&D.mainChannel.send(Hgu(qkb())),Z.reply(),fsz(D,Y))}})};
GR9.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?VC.prototype.preloadIframe.call(this,bfk(this).toString()):this.iframeLoadPromise};
GR9.prototype.openPicker=function(D){var Y=this;return _.C(function(R){if(R.nextAddress==1)return Y.startUrl=D?D:Y.options.includes("po")?"profile-picture/art":"profile-picture",R.yield(rmK(Y,bfk(Y).toString()),2);if(Y.mainChannel){var Z=Y.mainChannel,t=Z.send;var X=qkb();X=_.ew(X,2,Y.startUrl);t.call(Z,Hgu(X))}_.V9(R)})};var NQ9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(NQ9,_.Y7);_.u=NQ9.prototype;_.u.getSize=function(){return kD(this,1)};
_.u.setSize=function(D){return _.Kw(this,1,D)};
_.u.getWidth=function(){return kD(this,12)};
_.u.getHeight=function(){return kD(this,13)};
_.u.setCenterCrop=function(D){return _.ug(this,20,D)};
_.u.getHtml=function(){return _.oc(this,4)};
_.u.getToken=function(){return _.jH(this,24)};
_.u.setToken=function(D){return _.ew(this,24,D)};
_.u.getBackgroundColor=function(){return kD(this,87)};
_.u.hasBackgroundColor=function(){return _.c4(_.Vn(this,87))!=null};
_.u.getStoryboardLevel=function(){return kD(this,109)};var fl=function(D){this.JSC$19419_value_=void 0;this.childNodes_={};if(D){var Y=_.od4(D);D=_.Ok(D);for(var R=0;R<Y.length;R++)this.set(Y[R],D[R])}};
fl.prototype.set=function(D,Y){lst(this,D,Y,!1)};
fl.prototype.add=function(D,Y){lst(this,D,Y,!0)};
var lst=function(D,Y,R,Z){for(var t=0;t<Y.length;t++){var X=Y.charAt(t);D.childNodes_[X]||(D.childNodes_[X]=new fl);D=D.childNodes_[X]}if(Z&&D.JSC$19419_value_!==void 0)throw Error("ok`"+Y);D.JSC$19419_value_=R},Jmk=function(D,Y){for(var R=0;R<Y.length;R++)if(D=D.childNodes_[Y.charAt(R)],!D)return;
return D};
fl.prototype.get=function(D){return(D=Jmk(this,D))?D.JSC$19419_value_:void 0};
fl.prototype.getValues=function(){var D=[];kRh(this,D);return D};
var kRh=function(D,Y){D.JSC$19419_value_!==void 0&&Y.push(D.JSC$19419_value_);for(var R in D.childNodes_)kRh(D.childNodes_[R],Y)};
fl.prototype.getKeys=function(D){var Y=[];if(D){for(var R=this,Z=0;Z<D.length;Z++){var t=D.charAt(Z);if(!R.childNodes_[t])return[];R=R.childNodes_[t]}Ul9(R,D,Y)}else Ul9(this,"",Y);return Y};
var Ul9=function(D,Y,R){D.JSC$19419_value_!==void 0&&R.push(Y);for(var Z in D.childNodes_)Ul9(D.childNodes_[Z],Y+Z,R)};
_.u=fl.prototype;_.u.containsKey=function(D){return this.get(D)!==void 0};
_.u.containsValue=function(D){if(this.JSC$19419_value_===D)return!0;for(var Y in this.childNodes_)if(this.childNodes_[Y].containsValue(D))return!0;return!1};
_.u.clear=function(){this.childNodes_={};this.JSC$19419_value_=void 0};
_.u.remove=function(D){for(var Y=this,R=[],Z=0;Z<D.length;Z++){var t=D.charAt(Z);if(!Y.childNodes_[t])throw Error("pk`"+D);R.push([Y,t]);Y=Y.childNodes_[t]}D=Y.JSC$19419_value_;for(delete Y.JSC$19419_value_;R.length>0;)if(Z=R.pop(),Y=Z[0],Z=Z[1],Y.childNodes_[Z].isEmpty())delete Y.childNodes_[Z];else break;return D};
_.u.clone=function(){return new fl(this)};
_.u.getCount=function(){return FL0(this.getValues())};
_.u.isEmpty=function(){return this.JSC$19419_value_===void 0&&_.y7.isEmpty(this.childNodes_)};var qMK=function(){if(!Kk9){var D=Kk9=new fl,Y;for(Y in hXz)D.add(Y,hXz[Y])}},Kk9,eO=function(D,Y){this.types=D;
this.setters=Y},hXz={a:new eO([3,
0],[function(D,Y){_.ug(D,21,Y)},
function(D,Y){_.Kw(D,56,Y)}]),
al:new eO([3],[function(D,Y){_.ug(D,74,Y)}]),
b:new eO([3,0],[function(D,Y){_.ug(D,23,Y)},
function(D,Y){_.Kw(D,38,Y)}]),
ba:new eO([0],[function(D,Y){_.Kw(D,85,Y)}]),
bc:new eO([0],[function(D,Y){_.Kw(D,87,Y)}]),
br:new eO([0],[function(D,Y){_.Kw(D,86,Y)}]),
c:new eO([3,0],[function(D,Y){_.ug(D,2,Y)},
function(D,Y){_.Kw(D,39,Y)}]),
cc:new eO([3],[function(D,Y){_.ug(D,51,Y)}]),
ci:new eO([3],[function(D,Y){_.ug(D,32,Y)}]),
ckm:new eO([3],[function(D,Y){_.ug(D,104,Y)}]),
cp:new eO([0],[function(D,Y){_.Kw(D,92,Y)}]),
cr:new eO([3],[function(D,Y){_.ug(D,108,Y)}]),
cv:new eO([0],[function(D,Y){_.Kw(D,94,Y)}]),
d:new eO([3],[function(D,Y){_.ug(D,3,Y)}]),
dc:new eO([5],[function(D,Y){_.ew(D,99,Y)}]),
df:new eO([3],[function(D,Y){_.ug(D,80,Y)}]),
dv:new eO([3],[function(D,Y){_.ug(D,90,Y)}]),
e:new eO([0],[function(D,Y){_.Kw(D,15,Y)}]),
em:new eO([0],[function(D,Y){_.Kw(D,107,Y)}]),
f:new eO([4],[function(D,Y){_.ew(D,16,Y)}]),
fg:new eO([3],[function(D,Y){_.ug(D,34,Y)}]),
fh:new eO([3],[function(D,Y){_.ug(D,30,Y)}]),
fm:new eO([3],[function(D,Y){_.ug(D,84,Y)}]),
fo:new eO([2],[function(D,Y){_.XG(D,79,_.xE(Y))}]),
ft:new eO([3],[function(D,Y){_.ug(D,50,Y)}]),
fv:new eO([3],[function(D,Y){_.ug(D,31,Y)}]),
g:new eO([3],[function(D,Y){_.ug(D,14,Y)}]),
gce:new eO([4],[function(D,Y){_.ew(D,112,Y)}]),
gd:new eO([3],[function(D,Y){_.ug(D,83,Y)}]),
gm:new eO([3],[function(D,Y){_.ug(D,105,Y)}]),
h:new eO([3,0],[function(D,Y){_.ug(D,4,Y)},
function(D,Y){_.Kw(D,13,Y)}]),
i:new eO([3],[function(D,Y){_.ug(D,22,Y)}]),
ic:new eO([0],[function(D,Y){_.Kw(D,71,Y)}]),
id:new eO([3],[function(D,Y){_.ug(D,70,Y)}]),
il:new eO([3],[function(D,Y){_.ug(D,96,Y)}]),
ip:new eO([3],[function(D,Y){_.ug(D,54,Y)}]),
iv:new eO([0],[function(D,Y){_.fI(D,75,Y)}]),
j:new eO([1],[function(D,Y){Y=Y==null?Y:lqt(Y);_.XG(D,29,Y)}]),
k:new eO([3,0],[function(D,Y){_.ug(D,17,Y)},
function(D,Y){_.Kw(D,42,Y)}]),
l:new eO([0],[function(D,Y){_.Kw(D,44,Y)}]),
lf:new eO([3],[function(D,Y){_.ug(D,65,Y)}]),
lo:new eO([3],[function(D,Y){_.ug(D,97,Y)}]),
m:new eO([0],[function(D,Y){_.Kw(D,63,Y)}]),
md:new eO([3],[function(D,Y){_.ug(D,91,Y)}]),
mm:new eO([4],[function(D,Y){_.ew(D,81,Y)}]),
mo:new eO([3],[function(D,Y){_.ug(D,73,Y)}]),
mp:new eO([0],[function(D,Y){_.Kw(D,115,Y)}]),
mv:new eO([3],[function(D,Y){_.ug(D,66,Y)}]),
n:new eO([3],[function(D,Y){D.setCenterCrop(Y)}]),
nc:new eO([3],[function(D,Y){_.ug(D,55,Y)}]),
nd:new eO([3],[function(D,Y){_.ug(D,53,Y)}]),
ng:new eO([3],[function(D,Y){_.ug(D,95,Y)}]),
ngm:new eO([3],[function(D,Y){_.ug(D,106,Y)}]),
no:new eO([3],[function(D,Y){_.ug(D,37,Y)}]),
ns:new eO([3],[function(D,Y){_.ug(D,40,Y)}]),
nt0:new eO([4],[function(D,Y){_.ew(D,36,Y)}]),
ntm:new eO([3],[function(D,Y){_.ug(D,114,Y)}]),
nu:new eO([3],[function(D,Y){_.ug(D,46,Y)}]),
nw:new eO([3],[function(D,Y){_.ug(D,48,Y)}]),
o:new eO([1,3],[function(D,Y){Y=Y==null?Y:lqt(Y);_.XG(D,7,Y)},
function(D,Y){_.ug(D,27,Y)}]),
p:new eO([3,0],[function(D,Y){_.ug(D,19,Y)},
function(D,Y){_.Kw(D,43,Y)}]),
pa:new eO([3],[function(D,Y){_.ug(D,61,Y)}]),
pc:new eO([0],[function(D,Y){_.Kw(D,88,Y)}]),
pd:new eO([3],[function(D,Y){_.ug(D,60,Y)}]),
pf:new eO([3],[function(D,Y){_.ug(D,67,Y)}]),
pg:new eO([3],[function(D,Y){_.ug(D,72,Y)}]),
pi:new eO([2],[function(D,Y){_.XG(D,76,_.xE(Y))}]),
pp:new eO([3],[function(D,Y){_.ug(D,52,Y)}]),
pt:new eO([4],[function(D,Y){_.ew(D,111,Y)}]),
q:new eO([4],[function(D,Y){_.ew(D,28,Y)}]),
r:new eO([3,0],[function(D,Y){_.ug(D,6,Y)},
function(D,Y){_.Kw(D,26,Y)}]),
ra:new eO([3],[function(D,Y){_.ug(D,103,Y)}]),
rf:new eO([3],[function(D,Y){_.ug(D,100,Y)}]),
rg:new eO([3],[function(D,Y){_.ug(D,59,Y)}]),
rh:new eO([3],[function(D,Y){_.ug(D,49,Y)}]),
rj:new eO([3],[function(D,Y){_.ug(D,57,Y)}]),
ro:new eO([2],[function(D,Y){_.XG(D,78,_.xE(Y))}]),
rp:new eO([3],[function(D,Y){_.ug(D,58,Y)}]),
rw:new eO([3],[function(D,Y){_.ug(D,35,Y)}]),
rwa:new eO([3],[function(D,Y){_.ug(D,64,Y)}]),
rwu:new eO([3],[function(D,Y){_.ug(D,41,Y)}]),
s:new eO([3,0],[function(D,Y){_.ug(D,33,Y)},
function(D,Y){D.setSize(Y)}]),
sb:new eO([0],[function(D,Y){_.Kw(D,110,Y)}]),
sc:new eO([0],[function(D,Y){_.Kw(D,89,Y)}]),
sg:new eO([3],[function(D,Y){_.ug(D,82,Y)}]),
sl:new eO([0],[function(D,Y){_.Kw(D,109,Y)}]),
sm:new eO([3],[function(D,Y){_.ug(D,93,Y)}]),
t:new eO([4],[function(D,Y){D.setToken(Y)}]),
tm:new eO([3],[function(D,Y){_.ug(D,113,Y)}]),
u:new eO([3],[function(D,Y){_.ug(D,18,Y)}]),
ut:new eO([3],[function(D,Y){_.ug(D,45,Y)}]),
v:new eO([0],[function(D,Y){_.Kw(D,62,Y)}]),
vb:new eO([0],[function(D,Y){_.fI(D,68,Y)}]),
vf:new eO([4],[function(D,Y){_.ew(D,102,Y)}]),
vl:new eO([0],[function(D,Y){_.fI(D,69,Y)}]),
vm:new eO([3],[function(D,Y){_.ug(D,98,Y)}]),
w:new eO([0],[function(D,Y){_.Kw(D,12,Y)}]),
x:new eO([0],[function(D,Y){_.Kw(D,9,Y)}]),
y:new eO([0],[function(D,Y){_.Kw(D,10,Y)}]),
ya:new eO([2],[function(D,Y){_.XG(D,77,_.xE(Y))}]),
z:new eO([0],[function(D,Y){_.Kw(D,11,Y)}])};
qMK.prototype.parse=function(D){var Y=new NQ9,R=new NQ9;if(D=="")D=!0;else{D=D.split("-");for(var Z=!0,t=0;t<D.length;t++){var X=D[t];if(X.length==0)Z=!1;else{var M=X,W=!1;var z=M;var I=M.charAt(0);I!=I.toLowerCase()&&(W=!0,z=M.charAt(0).toLowerCase()+M.substring(1));var F=Kk9;for(I=1;I<=z.length;++I){var G=F,V=z.substring(0,I);if(V.length==0?G.isEmpty():!Jmk(G,V))break}z=I==1?null:(z=F.get(z.substring(0,I-1)))?{option:M.substring(0,I-1),value:M.substring(I-1),signed:W,attributes:z}:null;if(z){M=
[];W=[];I=!1;for(F=0;F<z.attributes.types.length;F++){G=z.attributes.types[F];var e=z.value;V=t;if(z.signed&&G==1)for(var r=e.length;r<12&&V<D.length-1;)e+="-"+D[V+1],r=e.length,++V;else if(G==2)for(;V<D.length-1&&D[V+1].match(/^[\d\.]/);)e+="-"+D[V+1],++V;r=z.attributes.setters[F];e=Lk9(this,G)(z.option,e,Y,R,r);if(e===null){I=!0;t=V;break}else M.push(G),W.push(e)}if(!I)for(z=0;z<W.length;z++)F=M[z],e=W[z],mlk(this,F)(X,e);Z=Z&&I}else Z=!1}}D=Z}return new qSz(Y,R,D)};
var Aq=function(D,Y,R,Z,t,X){t(R,Y);D=D.charAt(0);X=X(D==D.toUpperCase());t(Z,X)};
_.u=qMK.prototype;_.u.parseAndSetIntOption_=function(D,Y,R,Z,t){if(Y=="")return 0;isFinite(Y)&&(Y=String(Y));Y=typeof Y==="string"?/^\s*-?0x/i.test(Y)?parseInt(Y,16):parseInt(Y,10):NaN;if(isNaN(Y))return 1;Aq(D,Y,R,Z,t,Number);return null};
_.u.logIntParseError_=function(){};
_.u.parseAndSetFloatOption_=function(D,Y,R,Z,t){if(Y=="")return 0;var X=Number(Y);Y=X==0&&_.M$(Y)?NaN:X;if(isNaN(Y))return 1;Aq(D,Y,R,Z,t,Number);return null};
_.u.logFloatParseError_=function(){};
_.u.parseAndSetBoolOption_=function(D,Y,R,Z,t){if(Y!="")return 2;Aq(D,!0,R,Z,t,Boolean);return null};
_.u.logBoolParseError_=function(){};
_.u.parseAndSetStringOption_=function(D,Y,R,Z,t){if(Y=="")return 0;Aq(D,Y,R,Z,t,function(X){return X?"1":""});
return null};
_.u.logStringParseError_=function(){};
_.u.parseAndSetUint64Base64Option_=function(D,Y,R,Z,t){if(Y=="")return 0;Aq(D,Y,R,Z,t,function(X){return X?1:0});
return null};
var Lk9=function(D,Y){switch(Y){case 0:return(0,_.nG)(D.parseAndSetIntOption_,D);case 2:return(0,_.nG)(D.parseAndSetFloatOption_,D);case 3:return(0,_.nG)(D.parseAndSetBoolOption_,D);case 4:return(0,_.nG)(D.parseAndSetStringOption_,D);case 1:return(0,_.nG)(D.parseAndSetUint64Base64Option_,D);default:return function(){}}},mlk=function(D,Y){switch(Y){case 0:return(0,_.nG)(D.logIntParseError_,D);
case 2:return(0,_.nG)(D.logFloatParseError_,D);case 3:return(0,_.nG)(D.logBoolParseError_,D);case 4:case 1:return(0,_.nG)(D.logStringParseError_,D);default:return function(){}}},qSz=function(D,Y,R){this.valueProto_=D;
this.signatureFlagProto_=Y;this.JSC$19431_valid_=R};
qSz.prototype.isValid=function(){return this.JSC$19431_valid_};var KW0=function(D){this.JSC$19432_parser_=null;this.JSC$19432_components_=[];this.JSC$19432_parsedOptions_=null;Hfk(this,D)},xlK=function(D){D.JSC$19432_parser_==null&&(D.JSC$19432_parser_=new qMK);
return D.JSC$19432_parser_},Hfk=function(D,Y){D.JSC$19432_parsedOptions_=Y?typeof Y==="string"?xlK(D).parse(Y):Y:xlK(D).parse("")},nl=function(D,Y){return D==Y?!1:!0};
_.u=KW0.prototype;_.u.JSC$19434_setCrop=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,_.oc(R,2),_.oc(Y.signatureFlagProto_,2))&&_.ug(R,2,D);return this};
_.u.JSC$19434_setCircleCrop=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,JY(R,51),JY(Y.signatureFlagProto_,51))&&_.ug(R,51,D);return this};
_.u.JSC$19434_setImageCrop=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,JY(R,32),JY(Y.signatureFlagProto_,32))&&_.ug(R,32,D);return this};
_.u.JSC$19434_setHeight=function(D){var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,R.getHeight(),Y.signatureFlagProto_.getHeight())&&_.Kw(R,13,D);return this};
_.u.setCenterCrop=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,_.oc(R,20),_.oc(Y.signatureFlagProto_,20))&&R.setCenterCrop(D);return this};
_.u.JSC$19434_setSmartCrop=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,_.oc(R,19),_.oc(Y.signatureFlagProto_,19))&&_.ug(R,19,D);return this};
_.u.JSC$19434_setPad=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,JY(R,60),JY(Y.signatureFlagProto_,60))&&_.ug(R,60,D);return this};
_.u.JSC$19434_setSmartCropUseFace=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,_.oc(R,67),_.oc(Y.signatureFlagProto_,67))&&_.ug(R,67,D);return this};
_.u.JSC$19434_setSmartCropNoClip=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,_.oc(R,52),_.oc(Y.signatureFlagProto_,52))&&_.ug(R,52,D);return this};
_.u.setSize=function(D){var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,R.getSize(),Y.signatureFlagProto_.getSize())&&R.setSize(D);return this};
_.u.setToken=function(D){D=D||void 0;var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,R.getToken(),Y.signatureFlagProto_.getToken())&&R.setToken(D);return this};
_.u.JSC$19434_setWidth=function(D){var Y=this.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(D,R.getWidth(),Y.signatureFlagProto_.getWidth())&&_.Kw(R,12,D);return this};
_.u.clearOptions=function(){Hfk(this,"");return this};
_.u.build=function(){this.JSC$19432_components_.length=0;var D=this.JSC$19432_parsedOptions_,Y=D.valueProto_;D=D.signatureFlagProto_;rx(this,"s",Y.getSize(),D.getSize());rx(this,"w",Y.getWidth(),D.getWidth());wx(this,"c",_.oc(Y,2),_.oc(D,2));wx(this,"d",_.oc(Y,3),_.oc(D,3));rx(this,"h",Y.getHeight(),D.getHeight());wx(this,"s",JY(Y,33),JY(D,33));wx(this,"h",Y.getHtml(),D.getHtml());wx(this,"p",_.oc(Y,19),_.oc(D,19));wx(this,"pp",_.oc(Y,52),_.oc(D,52));wx(this,"pf",_.oc(Y,67),_.oc(D,67));wx(this,"n",
_.oc(Y,20),_.oc(D,20));rx(this,"r",kD(Y,26),kD(D,26));wx(this,"r",_.oc(Y,6),_.oc(D,6));wx(this,"o",JY(Y,27),JY(D,27));var R=_.vQ(Y,7,_.GX);$u(this,"o",R,_.vQ(D,7,_.GX));R=_.vQ(Y,29,_.GX);$u(this,"j",R,_.vQ(D,29,_.GX));rx(this,"x",kD(Y,9),kD(D,9));rx(this,"y",kD(Y,10),kD(D,10));rx(this,"z",kD(Y,11),kD(D,11));wx(this,"g",_.oc(Y,14),_.oc(D,14));rx(this,"e",kD(Y,15),kD(D,15));$u(this,"f",_.jH(Y,16),_.jH(D,16));wx(this,"k",JY(Y,17),JY(D,17));wx(this,"u",JY(Y,18),!0);wx(this,"ut",JY(Y,45),!0);wx(this,"i",
JY(Y,22),!0);wx(this,"a",JY(Y,21),JY(D,21));wx(this,"b",_.oc(Y,23),_.oc(D,23));rx(this,"b",kD(Y,38),kD(D,38));rx(this,"c",kD(Y,39),kD(D,39),16,8);$u(this,"q",_.jH(Y,28),_.jH(D,28));wx(this,"fh",JY(Y,30),JY(D,30));wx(this,"fv",JY(Y,31),JY(D,31));wx(this,"fg",_.oc(Y,34),_.oc(D,34));wx(this,"ci",JY(Y,32),JY(D,32));$u(this,"t",Y.getToken(),D.getToken());$u(this,"nt0",_.jH(Y,36),_.jH(D,36));wx(this,"rw",_.oc(Y,35),_.oc(D,35));wx(this,"rwu",_.oc(Y,41),_.oc(D,41));wx(this,"rwa",_.oc(Y,64),_.oc(D,64));wx(this,
"nw",_.oc(Y,48),_.oc(D,48));wx(this,"rh",_.oc(Y,49),_.oc(D,49));wx(this,"no",_.oc(Y,37),_.oc(D,37));wx(this,"ns",JY(Y,40),JY(D,40));rx(this,"k",kD(Y,42),kD(D,42));rx(this,"p",kD(Y,43),kD(D,43));rx(this,"l",kD(Y,44),kD(D,44));rx(this,"v",kD(Y,62),kD(D,62));wx(this,"nu",JY(Y,46),JY(D,46));wx(this,"ft",JY(Y,50),JY(D,50));wx(this,"cc",JY(Y,51),JY(D,51));wx(this,"nd",JY(Y,53),JY(D,53));wx(this,"ip",JY(Y,54),JY(D,54));wx(this,"nc",JY(Y,55),JY(D,55));rx(this,"a",kD(Y,56),kD(D,56));wx(this,"rj",JY(Y,57),
JY(D,57));wx(this,"rp",JY(Y,58),JY(D,58));wx(this,"rg",JY(Y,59),JY(D,59));wx(this,"pd",JY(Y,60),JY(D,60));wx(this,"pa",JY(Y,61),JY(D,61));rx(this,"m",kD(Y,63),kD(D,63));rx(this,"vb",U6(Y,68),U6(D,68));rx(this,"vl",U6(Y,69),U6(D,69));wx(this,"lf",JY(Y,65),JY(D,65));wx(this,"mv",JY(Y,66),JY(D,66));wx(this,"id",JY(Y,70),JY(D,70));rx(this,"ic",kD(Y,71),!0);wx(this,"pg",_.oc(Y,72),_.oc(D,72));wx(this,"mo",JY(Y,73),JY(D,73));wx(this,"al",JY(Y,74),JY(D,74));rx(this,"iv",U6(Y,75),U6(D,75));rx(this,"pi",K3(Y,
76),K3(D,76));rx(this,"ya",K3(Y,77),K3(D,77));rx(this,"ro",K3(Y,78),K3(D,78));rx(this,"fo",K3(Y,79),K3(D,79));wx(this,"df",JY(Y,80),JY(D,80));$u(this,"mm",_.jH(Y,81),_.jH(D,81));wx(this,"sg",JY(Y,82),JY(D,82));wx(this,"gd",JY(Y,83),JY(D,83));wx(this,"fm",JY(Y,84),JY(D,84));rx(this,"ba",kD(Y,85),kD(D,85));rx(this,"br",kD(Y,86),kD(D,86));rx(this,"bc",Y.getBackgroundColor(),D.getBackgroundColor(),16,8);rx(this,"pc",kD(Y,88),kD(D,88),16,8);rx(this,"sc",kD(Y,89),kD(D,89),16,8);wx(this,"dv",JY(Y,90),JY(D,
90));wx(this,"md",JY(Y,91),JY(D,91));rx(this,"cp",kD(Y,92),kD(D,92));wx(this,"sm",JY(Y,93),JY(D,93));rx(this,"cv",kD(Y,94),kD(D,94));wx(this,"ng",JY(Y,95),JY(D,95));wx(this,"il",JY(Y,96),JY(D,96));wx(this,"lo",JY(Y,97),JY(D,97));wx(this,"vm",JY(Y,98),JY(D,98));$u(this,"dc",_.jH(Y,99),_.jH(D,99));wx(this,"rf",JY(Y,100),JY(D,100));$u(this,"vf",_.jH(Y,102),_.jH(D,102));wx(this,"ra",_.oc(Y,103),_.oc(D,103));wx(this,"ckm",JY(Y,104),JY(D,104));wx(this,"gm",JY(Y,105),JY(D,105));wx(this,"ngm",JY(Y,106),JY(D,
106));rx(this,"em",kD(Y,107),kD(D,107));wx(this,"cr",JY(Y,108),JY(D,108));rx(this,"sl",Y.getStoryboardLevel(),D.getStoryboardLevel());rx(this,"sb",kD(Y,110),kD(D,110));$u(this,"pt",_.jH(Y,111),_.jH(D,111));$u(this,"gce",_.jH(Y,112),_.jH(D,112));wx(this,"tm",JY(Y,113),JY(D,113));wx(this,"ntm",JY(Y,114),JY(D,114));rx(this,"mp",kD(Y,115),kD(D,115));return this.JSC$19432_components_.join("-")};
var rx=function(D,Y,R,Z,t,X){if(R!=null){var M=t==void 0||t!=10&&t!=16?10:t;R=Number(R).toString(M);t=new d7k;t.append(M==16?"0x":"");M=t.append;X==void 0?X="":(X-=R.length,X=X<=0?"":(0,_.ASU)("0",X));M.call(t,X);t.append(R);PCK(D,Y,t.toString(),!!Number(Z))}},wx=function(D,Y,R,Z){R&&PCK(D,Y,"",!!Z)},$u=function(D,Y,R,Z){R&&PCK(D,Y,String(R),!!Number(Z))},PCK=function(D,Y,R,Z){Z&&(Y=Y.charAt(0).toUpperCase()+Y.substring(1));
D.JSC$19432_components_.push(Y+R)};_.XN(P9,KW0);_.u=P9.prototype;_.u.JSC$19434_setCrop=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setCrop.call(this,D)};
_.u.JSC$19434_setHeight=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return P9.superClass_.JSC$19434_setHeight.call(this,D)};
_.u.JSC$19434_setImageCrop=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setImageCrop.call(this,D)};
_.u.JSC$19434_setCircleCrop=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setCircleCrop.call(this,D)};
_.u.setSize=function(D){_.Bo(D)&&(D=Math.max(D.width,D.height));D=D==null||D<0?void 0:D;D!=null&&(this.JSC$19434_setWidth(),this.JSC$19434_setHeight());return P9.superClass_.setSize.call(this,D)};
_.u.JSC$19434_setSmartCrop=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setSmartCrop.call(this,D)};
_.u.JSC$19434_setSmartCropNoClip=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setSmartCropNoClip.call(this,D)};
_.u.JSC$19434_setSmartCropUseFace=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setSmartCropUseFace.call(this,D)};
_.u.setCenterCrop=function(D){D&&v3(this);return P9.superClass_.setCenterCrop.call(this,D)};
_.u.JSC$19434_setPad=function(D){D&&v3(this);return P9.superClass_.JSC$19434_setPad.call(this,D)};
_.u.JSC$19434_setWidth=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return P9.superClass_.JSC$19434_setWidth.call(this,D)};
var Qsh=function(D){D.clearOptions();var Y=D.JSC$19432_parsedOptions_,R=Y.valueProto_;nl(!0,_.oc(R,3),_.oc(Y.signatureFlagProto_,3))&&_.ug(R,3,!0);return D},v3=function(D){D.setCenterCrop();
D.JSC$19434_setCircleCrop();D.JSC$19434_setCrop();D.JSC$19434_setImageCrop();D.JSC$19434_setPad();D.JSC$19434_setSmartCrop();D.JSC$19434_setSmartCropNoClip();D.JSC$19434_setSmartCropUseFace()};
P9.prototype.build=function(){var D=this.JSC$19432_parsedOptions_.valueProto_;JY(D,18)||JY(D,45)?D.getSize()||this.setSize(0):(D=this.JSC$19432_parsedOptions_.valueProto_,D.getSize()||D.getWidth()||D.getHeight()||(this.setSize(),this.JSC$19434_setHeight(),this.JSC$19434_setWidth(),v3(this)));return P9.superClass_.build.call(this)};var BQz=/^[^\/]*\/\//,oO=function(D,Y){Y=Y===void 0?!1:Y;this.original_=D;this.originalPrefix_="";(D=this.original_.match(BQz))&&D[0]?(this.originalPrefix_=D[0],D=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):D="http://"+this.original_;this.uri_=_.qC(D,!0);this.isFreeformUrl_=Y;this.JSC$19438_valid_=!0;this.obfuscated_=!1},pF9=function(D,Y){D.JSC$19440_pathPrefix_=D.JSC$19440_pathPrefix_?D.JSC$19440_pathPrefix_+("/"+Y):Y},ba=function(D){if(D.JSC$19440_components_==
void 0){var Y=D.uri_.getPath().substring(1);
D.JSC$19440_pathPrefix_=null;if(D.isFreeformUrl_){D.JSC$19440_components_=[];if((Y.match(/=/g)||[]).length>1)return D.JSC$19438_valid_=!1,D.JSC$19440_components_;var R=Y.indexOf("=");R!=-1?(D.JSC$19440_components_.push(Y.substr(0,R)),D.JSC$19440_components_.push(Y.substr(R+1))):D.JSC$19440_components_.push(Y);return D.JSC$19440_components_}D.JSC$19440_components_=Y.split("/");Y=D.JSC$19440_components_.length;Y>2&&D.JSC$19440_components_[0]=="u"&&(pF9(D,D.JSC$19440_components_[0]+"/"+D.JSC$19440_components_[1]),
D.JSC$19440_components_.shift(),D.JSC$19440_components_.shift(),Y-=2);if(Y==0||Y==4||Y>7)return D.JSC$19438_valid_=!1,D.JSC$19440_components_;if(Y==2)pF9(D,D.JSC$19440_components_[0]);else if(D.JSC$19440_components_[0]=="image")pF9(D,D.JSC$19440_components_[0]);else if(Y==7||Y==3)return D.JSC$19438_valid_=!1,D.JSC$19440_components_;if(Y<=3){D.obfuscated_=!0;Y==3&&(pF9(D,D.JSC$19440_components_[1]),D.JSC$19440_components_.shift(),--Y);--Y;R=D.JSC$19440_components_[Y];var Z=R.indexOf("=");Z!=-1&&(D.JSC$19440_components_[Y]=
R.substr(0,Z),D.JSC$19440_components_.push(R.substr(Z+1)))}}return D.JSC$19440_components_};
oO.prototype.isValid=function(){ba(this);return this.JSC$19438_valid_};
oO.prototype.isObfuscated=function(){ba(this);return this.obfuscated_};
var EOE=function(D){ba(D);return D.isFreeformUrl_},yC=function(D){ba(D);
D.JSC$19440_pathPrefix_==void 0&&(D.JSC$19440_pathPrefix_=null);return D.JSC$19440_pathPrefix_},gO9=function(D){switch(ba(D).length){case 7:return!0;
case 6:return yC(D)==null;case 5:return!1;case 3:return!0;case 2:return yC(D)==null;case 1:return!1;default:return!1}},NH=function(D,Y){if(EOE(D))a:{switch(Y){case 7:Y=0;
break;case 4:if(!gO9(D)){D=null;break a}Y=1;break;default:D=null;break a}D=ba(D)[Y]}else if(D.isObfuscated())a:{var R=yC(D)!=null?1:0;switch(Y){case 6:Y=R;break;case 4:if(!gO9(D)){D=null;break a}Y=1+R;break;default:D=null;break a}D=ba(D)[Y]}else a:{R=yC(D)!=null?1:0;switch(Y){case 0:Y=R;break;case 1:Y=1+R;break;case 2:Y=2+R;break;case 3:Y=3+R;break;case 4:if(!gO9(D)){D=null;break a}Y=4+R;break;case 5:Y=gO9(D)?1:0;Y=4+R+Y;break;default:D=null;break a}D=ba(D)[Y]}return D};
oO.prototype.getOptions=function(){this.options_==void 0&&(this.options_=NH(this,4));return this.options_};var mwb=function(){};
mwb.prototype.parse=function(D,Y){return new h1k(D,Y===void 0?!1:Y)};
var h1k=function(D,Y){oO.call(this,D,Y===void 0?!1:Y)};
_.n(h1k,oO);_.XN(Q1,P9);var LWK;Q1.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Q1.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var D=Q1.superClass_.build.call(this),Y=[];yC(this.parsedImageUrl_)!=null&&Y.push(yC(this.parsedImageUrl_));var R=EOE(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Z=this.parsedImageUrl_;Z.obfuscatedData_==void 0&&(Z.obfuscatedData_=NH(Z,6));Y.push(Z.obfuscatedData_+(D?"="+D:""))}else if(R){Z=Y.push;var t=this.parsedImageUrl_;t.freeformUrlPath_===void 0&&(t.freeformUrlPath_=NH(t,
7));Z.call(Y,t.freeformUrlPath_);D&&Y.push(D)}else Z=Y.push,t=this.parsedImageUrl_,t.obfuscatedGaiaId_==void 0&&(t.obfuscatedGaiaId_=NH(t,0)),Z.call(Y,t.obfuscatedGaiaId_),Z=Y.push,t=this.parsedImageUrl_,t.photoId_==void 0&&(t.photoId_=NH(t,1)),Z.call(Y,t.photoId_),Z=Y.push,t=this.parsedImageUrl_,t.imageVersion_==void 0&&(t.imageVersion_=NH(t,2)),Z.call(Y,t.imageVersion_),Z=Y.push,t=this.parsedImageUrl_,t.signature_==void 0&&(t.signature_=NH(t,3)),Z.call(Y,t.signature_),D&&Y.push(D),D=Y.push,Z=this.parsedImageUrl_,
Z.filename_==void 0&&(Z.filename_=NH(Z,5)),D.call(Y,Z.filename_);Y=R?Y.join("="):Y.join("/");Y=_.qC(this.protocolPrefix_+this.JSC$19446_domain_+"/"+Y+(this.JSC$19446_query_?"?"+this.JSC$19446_query_:"")).toString();Y.startsWith("%3a//")&&(Y=Y.replace("%3a//","://"));return Y};var dlu=_.gY(["viewBox"]),if9=_.gY(["width"]),Oft=_.gY(["height"]),cmT=_.gY(["fill"]),DFk=_.gY(["id"]),YF0=_.gY(["x"]),RAh=_.gY(["y"]);Hhz.prototype.getLength=function(){return this.parsedData.length};
Hhz.prototype.write=function(D){for(var Y=0,R=this.parsedData.length;Y<R;Y++)D.put(this.parsedData[Y],8)};
var gxt=function(D,Y){var R=new Hhz(Y);D.dataList.push(R);R=D.errorCorrectLevel;var Z=1,t=encodeURI(Y).toString().replace(/%[0-9a-fA-F]{2}/g,"a");Y=t.length+(t.length!=Y?3:0);t=0;for(var X=la.length;t<=X;t++){var M=0;switch(R){case 1:M=la[t][0];break;case 0:M=la[t][1];break;case 3:M=la[t][2];break;case 2:M=la[t][3]}if(Y<=M)break;else Z++}if(Z>la.length)throw Error("yk");D.typeNumber=Z;D.dataCache=null};
xwK.prototype.isDark=function(D,Y){if(D<0||this.moduleCount<=D||Y<0||this.moduleCount<=Y)throw Error("qk`"+D+"`"+Y);return this.modules[D][Y]};
for(var dwt=function(D,Y,R){D.moduleCount=D.typeNumber*4+17;D.modules=Array(D.moduleCount);for(var Z=0;Z<D.moduleCount;Z++){D.modules[Z]=Array(D.moduleCount);for(var t=0;t<D.moduleCount;t++)D.modules[Z][t]=null}ZKu(D,0,0);ZKu(D,D.moduleCount-7,0);ZKu(D,0,D.moduleCount-7);Z=tQ9[D.typeNumber-1];for(t=0;t<Z.length;t++)for(var X=0;X<Z.length;X++){var M=Z[t],W=Z[X];if(D.modules[M][W]==null)for(var z=-2;z<=2;z++)for(var I=-2;I<=2;I++)D.modules[M+z][W+I]=z==-2||z==2||I==-2||I==2||z==0&&I==0?!0:!1}for(Z=
8;Z<D.moduleCount-8;Z++)D.modules[Z][6]==null&&(D.modules[Z][6]=Z%2==0);for(Z=8;Z<D.moduleCount-8;Z++)D.modules[6][Z]==null&&(D.modules[6][Z]=Z%2==0);Z=D.errorCorrectLevel<<3|R;for(t=Z<<10;Jq(t)-Jq(1335)>=0;)t^=1335<<Jq(t)-Jq(1335);Z=(Z<<10|t)^21522;for(t=0;t<15;t++)X=!Y&&(Z>>t&1)==1,t<6?D.modules[t][8]=X:t<8?D.modules[t+1][8]=X:D.modules[D.moduleCount-15+t][8]=X;for(t=0;t<15;t++)X=!Y&&(Z>>t&1)==1,t<8?D.modules[8][D.moduleCount-t-1]=X:t<9?D.modules[8][15-t-1+1]=X:D.modules[8][15-t-1]=X;D.modules[D.moduleCount-
8][8]=!Y;if(D.typeNumber>=7){Z=D.typeNumber;for(t=Z<<12;Jq(t)-Jq(7973)>=0;)t^=7973<<Jq(t)-Jq(7973);Z=Z<<12|t;for(t=0;t<18;t++)X=!Y&&(Z>>t&1)==1,D.modules[Math.floor(t/3)][t%3+D.moduleCount-8-3]=X;for(t=0;t<18;t++)X=!Y&&(Z>>t&1)==1,D.modules[t%3+D.moduleCount-8-3][Math.floor(t/3)]=X}if(D.dataCache==null){t=D.typeNumber;X=D.dataList;Y=D.errorCorrectLevel;Z=s6K(t,Y);if(Z==void 0)throw Error("xk`"+t+"`"+Y);M=Z.length/3;Y=[];for(W=0;W<M;W++){z=Z[W*3];I=Z[W*3+1];for(var F=Z[W*3+2],G=0;G<z;G++)Y.push(new P0t(I,
F))}Z=new QkT;for(M=0;M<X.length;M++)W=X[M],Z.put(W.mode,4),Z.put(W.getLength(),XAK(W.mode,t)),W.write(Z);for(M=t=0;M<Y.length;M++)t+=Y[M].dataCount;if(Z.length>t*8)throw Error("rk`"+Z.length+"`"+t*8);for(Z.length+4<=t*8&&Z.put(0,4);Z.length%8!=0;)ul9(Z,!1);for(;!(Z.length>=t*8);){Z.put(236,8);if(Z.length>=t*8)break;Z.put(17,8)}X=t=I=0;M=Array(Y.length);W=Array(Y.length);for(z=0;z<Y.length;z++){G=Y[z].dataCount;var V=Y[z].totalCount-G;t=Math.max(t,G);X=Math.max(X,V);M[z]=Array(G);for(F=0;F<M[z].length;F++)M[z][F]=
255&Z.buffer[F+I];I+=G;F=V;G=new B9([1],0);for(V=0;V<F;V++)G=G.multiply(new B9([1,avu(V)],0));F=G;G=(new B9(M[z],F.getLength()-1)).mod(F);W[z]=Array(F.getLength()-1);for(F=0;F<W[z].length;F++)V=F+G.getLength()-W[z].length,W[z][F]=V>=0?G.get(V):0}for(F=Z=0;F<Y.length;F++)Z+=Y[F].totalCount;Z=Array(Z);for(F=I=0;F<t;F++)for(z=0;z<Y.length;z++)F<M[z].length&&(Z[I++]=M[z][F]);for(F=0;F<X;F++)for(z=0;z<Y.length;z++)F<W[z].length&&(Z[I++]=W[z][F]);D.dataCache=Z}Y=D.dataCache;Z=-1;t=D.moduleCount-1;X=7;M=
0;for(W=D.moduleCount-1;W>0;W-=2)for(W==6&&W--;;){for(z=0;z<2;z++)D.modules[t][W-z]==null&&(I=!1,M<Y.length&&(I=(Y[M]>>>X&1)==1),MQz(R,t,W-z)&&(I=!I),D.modules[t][W-z]=I,X--,X==-1&&(M++,X=7));t+=Z;if(t<0||D.moduleCount<=t){t-=Z;Z=-Z;break}}},ZKu=function(D,Y,R){for(var Z=-1;Z<=7;Z++)if(!(Y+Z<=-1||D.moduleCount<=Y+Z))for(var t=-1;t<=7;t++)R+t<=-1||D.moduleCount<=R+t||(D.modules[Y+Z][R+t]=0<=Z&&Z<=6&&(t==0||t==6)||0<=t&&t<=6&&(Z==0||Z==6)||2<=Z&&Z<=4&&2<=t&&t<=4?!0:!1)},ih9=function(D){for(var Y=0,
R=0,Z=0;Z<8;Z++){dwt(D,!0,Z);
var t=D;for(var X=t.moduleCount,M=0,W=0;W<X;W++)for(var z=0;z<X;z++){for(var I=0,F=t.isDark(W,z),G=-1;G<=1;G++)if(!(W+G<0||X<=W+G))for(var V=-1;V<=1;V++)z+V<0||X<=z+V||(G!=0||V!=0)&&F==t.isDark(W+G,z+V)&&I++;I>5&&(M+=3+I-5)}for(W=0;W<X-1;W++)for(z=0;z<X-1;z++)if(I=0,t.isDark(W,z)&&I++,t.isDark(W+1,z)&&I++,t.isDark(W,z+1)&&I++,t.isDark(W+1,z+1)&&I++,I==0||I==4)M+=3;for(W=0;W<X;W++)for(z=0;z<X-6;z++)t.isDark(W,z)&&!t.isDark(W,z+1)&&t.isDark(W,z+2)&&t.isDark(W,z+3)&&t.isDark(W,z+4)&&!t.isDark(W,z+5)&&
t.isDark(W,z+6)&&(M+=40);for(z=0;z<X;z++)for(W=0;W<X-6;W++)t.isDark(W,z)&&!t.isDark(W+1,z)&&t.isDark(W+2,z)&&t.isDark(W+3,z)&&t.isDark(W+4,z)&&!t.isDark(W+5,z)&&t.isDark(W+6,z)&&(M+=40);for(z=I=0;z<X;z++)for(W=0;W<X;W++)t.isDark(W,z)&&I++;t=M+=Math.abs(100*I/X/X-50)/5*10;if(Z==0||Y>t)Y=t,R=Z}return R},tQ9=[[],
[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]],Jq=function(D){for(var Y=0;D!=0;)Y++,D>>>=1;return Y},MQz=function(D,Y,R){switch(D){case 0:return(Y+R)%2==0;
case 1:return Y%2==0;case 2:return R%3==0;case 3:return(Y+R)%3==0;case 4:return(Math.floor(Y/2)+Math.floor(R/3))%2==0;case 5:return Y*R%2+Y*R%3==0;case 6:return(Y*R%2+Y*R%3)%2==0;case 7:return(Y*R%3+(Y+R)%2)%2==0;default:throw Error("sk`"+D);}},XAK=function(D,Y){if(1<=Y&&Y<10)switch(D){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("tk`"+D);}else if(Y<27)switch(D){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("tk`"+D);}else if(Y<41)switch(D){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("tk`"+D);}else throw Error("uk`"+Y);},ku=function(D){if(D<1)throw Error("vk`"+D);
return CR9[D]},avu=function(D){for(;D<0;)D+=255;
for(;D>=256;)D-=255;return UC[D]},UC=Array(256),CR9=Array(256),Wvb=0;Wvb<8;Wvb++)UC[Wvb]=1<<Wvb;
for(var Kl=8;Kl<256;Kl++)UC[Kl]=UC[Kl-4]^UC[Kl-5]^UC[Kl-6]^UC[Kl-8];for(var zAK=0;zAK<255;zAK++)CR9[UC[zAK]]=zAK;B9.prototype.get=function(D){return this.num[D]};
B9.prototype.getLength=function(){return this.num.length};
B9.prototype.multiply=function(D){for(var Y=Array(this.getLength()+D.getLength()-1),R=0;R<this.getLength();R++)for(var Z=0;Z<D.getLength();Z++)Y[R+Z]^=avu(ku(this.get(R))+ku(D.get(Z)));return new B9(Y,0)};
B9.prototype.mod=function(D){if(this.getLength()-D.getLength()<0)return this;for(var Y=ku(this.get(0))-ku(D.get(0)),R=Array(this.getLength()),Z=0;Z<this.getLength();Z++)R[Z]=this.get(Z);for(Z=0;Z<D.getLength();Z++)R[Z]^=avu(ku(D.get(Z))+Y);return(new B9(R,0)).mod(D)};
var SFp=[[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]],s6K=function(D,Y){switch(Y){case 1:return SFp[(D-1)*4];case 0:return SFp[(D-1)*4+1];case 3:return SFp[(D-1)*4+2];case 2:return SFp[(D-1)*4+3]}};
QkT.prototype.get=function(D){return(this.buffer[Math.floor(D/8)]>>>7-D%8&1)==1};
QkT.prototype.put=function(D,Y){for(var R=0;R<Y;R++)ul9(this,(D>>>Y-R-1&1)==1)};
var ul9=function(D,Y){var R=Math.floor(D.length/8);D.buffer.length<=R&&D.buffer.push(0);Y&&(D.buffer[R]|=128>>>D.length%8);D.length++},la=[[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]],Ex9=function(){var D=function(Y,R){this.JSC$19466__el=Y;this.JSC$19466__htOption=R};
D.prototype.draw=function(Y){function R(F,G){F=document.createElementNS("http://www.w3.org/2000/svg",F);for(var V in G)G.hasOwnProperty(V)&&(V==="href"?_.UaE(F,G[V]):_.ON([_.RI(dlu),_.RI(if9),_.RI(Oft),_.RI(cmT),_.RI(DFk),_.RI(YF0),_.RI(RAh)],F,V,G[V]));return F}
var Z=this.JSC$19466__htOption,t=this.JSC$19466__el,X=Y.moduleCount;this.clear();var M=R("svg",{viewBox:"0 0 "+String(X)+" "+String(X),width:"100%",height:"100%",fill:Z.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});t.appendChild(M);M.appendChild(R("rect",{fill:Z.colorLight,width:"100%",height:"100%"}));M.appendChild(R("rect",{fill:Z.colorDark,width:"1",height:"1",id:"template"}));for(var W=0;W<X;W++)for(var z=0;z<X;z++)if(Y.isDark(W,z)){var I=R("use",{x:String(W),y:String(z),href:"#template"});
M.appendChild(I)}};
D.prototype.clear=function(){for(;this.JSC$19466__el.hasChildNodes();)this.JSC$19466__el.removeChild(this.JSC$19466__el.lastChild)};
return D}(),pUI=document.documentElement.tagName.toLowerCase()==="svg"?Ex9:typeof CanvasRenderingContext2D!="undefined"?function(){var D=function(Y,R){this._bIsPainted=!1;
BLu();this.JSC$19466__htOption=R;this._elCanvas=document.createElement("canvas");this._elCanvas.width=R.width;this._elCanvas.height=R.height;Y.appendChild(this._elCanvas);this.JSC$19466__el=Y;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$19466__el.appendChild(this._elImage);this._bSupportDataURI=null};
D.prototype._onMakeImage=function(){var Y=this._elCanvas.toDataURL("image/png");this._elImage.src=Y;this._elImage.style.display="block";this._elCanvas.style.display="none"};
D.prototype._safeSetDataURI=function(Y,R){var Z=this;Z._fFail=R;Z._fSuccess=Y;Z._bSupportDataURI===null?(Y=_.I0("IMG"),R=function(){Z._bSupportDataURI=!1;Z._fFail&&Z._fFail.call(Z)},Y.onabort=R,Y.onerror=R,Y.onload=function(){Z._bSupportDataURI=!0;
Z._fSuccess&&Z._fSuccess.call(Z)},Y.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Z._bSupportDataURI===!0&&Z._fSuccess?Z._fSuccess.call(Z):Z._bSupportDataURI===!1&&Z._fFail&&Z._fFail.call(Z)};
D.prototype.draw=function(Y){var R=this._oContext,Z=this.JSC$19466__htOption,t=Y.moduleCount,X=Z.width/t,M=Z.height/t,W=Math.round(X),z=Math.round(M);this._elImage.style.display="none";this.clear();for(var I=0;I<t;I++)for(var F=0;F<t;F++){var G=Y.isDark(I,F),V=F*X,e=I*M;R.strokeStyle=G?Z.colorDark:Z.colorLight;R.lineWidth=1;R.fillStyle=G?Z.colorDark:Z.colorLight;R.fillRect(V,e,X,M);R.strokeRect(Math.floor(V)+.5,Math.floor(e)+.5,W,z);R.strokeRect(Math.ceil(V)-.5,Math.ceil(e)-.5,W,z)}this._bIsPainted=
!0};
D.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
D.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
D.prototype.round=function(Y){return Y?Math.floor(Y*1E3)/1E3:Y};
return D}():function(){var D=function(Y,R){this.JSC$19466__el=Y;
this.JSC$19466__htOption=R};
D.prototype.draw=function(Y){for(var R=this.JSC$19466__htOption,Z=this.JSC$19466__el,t=Y.moduleCount,X=Math.floor(R.width/t),M=Math.floor(R.height/t),W=['<table style="border:0;border-collapse:collapse;">'],z=0;z<t;z++){W.push("<tr>");for(var I=0;I<t;I++)W.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+X+"px;height:"+M+"px;background-color:"+(Y.isDark(z,I)?R.colorDark:R.colorLight)+';"></td>');W.push("</tr>")}W.push("</table>");Y=W.join("");Y=_.zY1(_.Tzz,Y);_.iT(Z,Y);
Y=Z.childNodes[0];t=(R.width-Y.offsetWidth)/2;X=(R.height-Y.offsetHeight)/2;t>0&&X>0&&(Y.style.margin=X+"px "+t+"px")};
D.prototype.clear=function(){this.JSC$19466__el.textContent=""};
return D}();
Ohb.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19469__android||this.JSC$19469__android>=3)&&this._oDrawing.makeImage()};
Ohb.prototype.clear=function(){this._oDrawing.clear()};
_.ZU.QRCode=Ohb;var Tkz={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var hq=function(){};
hq.prototype.stringify=function(D){return _.ZU.JSON.stringify(D,void 0)};
hq.prototype.parse=function(D){return _.ZU.JSON.parse(D,void 0)};var j6k=function(){_.IF.call(this,"z")};
_.XN(j6k,_.IF);var IvE=function(){_.IF.call(this,"y")};
_.XN(IvE,_.IF);var Fvk=null,GSz=function(){return Fvk=Fvk||new _.eE},VQu=function(D){_.IF.call(this,"serverreachability",D)};
_.XN(VQu,_.IF);var Ll=function(D){var Y=GSz();Y.dispatchEvent(new VQu(Y,D))},fv9=function(D,Y){_.IF.call(this,"statevent",D);
this.stat=Y};
_.XN(fv9,_.IF);var mt=function(D){var Y=GSz();Y.dispatchEvent(new fv9(Y,D))},eAu=function(D,Y,R,Z){_.IF.call(this,"timingevent",D);
this.size=Y;this.rtt=R;this.retries=Z};
_.XN(eAu,_.IF);var AHh=function(D,Y,R){var Z=GSz();Z.dispatchEvent(new eAu(Z,D,Y,R))},qH=function(D,Y){if(typeof D!=="function")throw Error("zk");
return _.ZU.setTimeout(function(){D()},Y)};var H3=function(){this.redactEnabled_=!0};
H3.prototype.disableRedact=function(){this.redactEnabled_=!1};
var nSb=function(D,Y,R,Z,t,X){D.info(function(){if(D.redactEnabled_)if(X){var M="";for(var W=X.split("&"),z=0;z<W.length;z++){var I=W[z].split("=");if(I.length>1){var F=I[0];I=I[1];var G=F.split("_");M=G.length>=2&&G[1]=="type"?M+(F+"="+I+"&"):M+(F+"=redacted&")}}}else M=null;else M=X;return"XMLHTTP REQ ("+Z+") [attempt "+t+"]: "+Y+"\n"+R+"\n"+M})},rH9=function(D,Y,R,Z,t,X,M){D.info(function(){return"XMLHTTP RESP ("+Z+") [ attempt "+t+"]: "+Y+"\n"+R+"\n"+X+" "+M})},xu=function(D,Y,R,Z){D.info(function(){return"XMLHTTP TEXT ("+
Y+"): "+wAk(D,R)+(Z?" "+Z:"")})},$FK=function(D,Y){D.info(function(){return"TIMEOUT: "+Y})};
H3.prototype.debug=function(){};
H3.prototype.info=function(){};
H3.prototype.warning=function(){};
var wAk=function(D,Y){if(!D.redactEnabled_)return Y;if(!Y)return null;try{var R=JSON.parse(Y);if(R)for(var Z=0;Z<R.length;Z++)if(Array.isArray(R[Z])){var t=R[Z];if(!(t.length<2)){var X=t[1];if(Array.isArray(X)&&!(X.length<1)){var M=X[0];if(M!="noop"&&M!="stop"&&M!="close")for(var W=1;W<X.length;W++)X[W]=""}}}return(0,_.bQ)(R)}catch(z){return D.debug("Exception parsing expected JS array - probably was not JS"),Y}};var P3=function(D,Y,R,Z,t){this.JSC$19491_channel_=D;this.JSC$19491_channelDebug_=Y;this.sid_=R;this.JSC$19491_rid_=Z;this.JSC$19491_retryId_=t||1;this.JSC$19491_eventHandler_=new _.aR(this);this.timeout_=45E3;this.JSC$19491_extraHeaders_=null;this.JSC$19491_successful_=!1;this.JSC$19491_postData_=this.JSC$19491_requestUri_=this.JSC$19491_baseUri_=this.JSC$19491_type_=this.JSC$19491_requestStartTime_=this.JSC$19491_watchDogTimeoutTime_=this.JSC$19491_watchDogTimerId_=null;this.JSC$19491_pendingMessages_=
[];this.JSC$19491_xmlHttp_=null;this.JSC$19491_xmlHttpChunkStart_=0;this.JSC$19491_lastError_=this.JSC$19491_verb_=null;this.JSC$19491_lastStatusCode_=-1;this.JSC$19491_cancelled_=!1;this.JSC$19491_readyStateChangeThrottleMs_=0;this.JSC$19491_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new vSt},vSt=function(){this.JSC$19493_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},oSE=function(D,Y){switch(D){case 0:return"Non-200 return code ("+Y+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},bKu={},yHb={};
P3.prototype.setTimeout=function(D){this.timeout_=D};
var lvz=function(D,Y,R){D.JSC$19491_type_=1;D.JSC$19491_baseUri_=_.as(Y.clone());D.JSC$19491_postData_=R;D.decodeChunks_=!0;Nkh(D,null)},Nkh=function(D,Y){D.JSC$19491_requestStartTime_=Date.now();
JHb(D);D.JSC$19491_requestUri_=D.JSC$19491_baseUri_.clone();vw(D.JSC$19491_requestUri_,"t",D.JSC$19491_retryId_);D.JSC$19491_xmlHttpChunkStart_=0;var R=D.JSC$19491_channel_.JSC$19510_supportsCrossDomainXhrs_;D.fetchResponseState_=new vSt;D.JSC$19491_xmlHttp_=kSI(D.JSC$19491_channel_,R?Y:null,!D.JSC$19491_postData_);D.JSC$19491_readyStateChangeThrottleMs_>0&&(D.JSC$19491_readyStateChangeThrottle_=new _.gq((0,_.nG)(D.JSC$19495_xmlHttpHandler_,D,D.JSC$19491_xmlHttp_),D.JSC$19491_readyStateChangeThrottleMs_));
D.JSC$19491_eventHandler_.listen(D.JSC$19491_xmlHttp_,"readystatechange",D.JSC$19495_readyStateChangeHandler_);Y=D.JSC$19491_extraHeaders_?_.y7.clone(D.JSC$19491_extraHeaders_):{};D.JSC$19491_postData_?(D.JSC$19491_verb_||(D.JSC$19491_verb_="POST"),Y["Content-Type"]="application/x-www-form-urlencoded",D.JSC$19491_xmlHttp_.send(D.JSC$19491_requestUri_,D.JSC$19491_verb_,D.JSC$19491_postData_,Y)):(D.JSC$19491_verb_="GET",D.JSC$19491_xmlHttp_.send(D.JSC$19491_requestUri_,D.JSC$19491_verb_,null,Y));Ll(1);
nSb(D.JSC$19491_channelDebug_,D.JSC$19491_verb_,D.JSC$19491_requestUri_,D.JSC$19491_rid_,D.JSC$19491_retryId_,D.JSC$19491_postData_)};
P3.prototype.JSC$19495_readyStateChangeHandler_=function(D){D=D.target;var Y=this.JSC$19491_readyStateChangeThrottle_;Y&&_.NZ(D)==3?(this.JSC$19491_channelDebug_.debug("Throttling readystatechange."),Y.fire()):this.JSC$19495_xmlHttpHandler_(D)};
P3.prototype.JSC$19495_xmlHttpHandler_=function(D){try{D==this.JSC$19491_xmlHttp_?UFE(this):this.JSC$19491_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Y){this.JSC$19491_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Kvk(this)}finally{}};
var UFE=function(D){var Y=_.NZ(D.JSC$19491_xmlHttp_),R=D.JSC$19491_xmlHttp_.JSC$9765_lastErrorCode_,Z=D.JSC$19491_xmlHttp_.getStatus();if(!(Y<3||Y==3&&!Kvk(D))){D.JSC$19491_cancelled_||Y!=4||R==7||(R==8||Z<=0?Ll(3):Ll(2));hAk(D);var t=D.JSC$19491_xmlHttp_.getStatus();D.JSC$19491_lastStatusCode_=t;R=LvK(D);Kvk(D)||D.JSC$19491_channelDebug_.debug(function(){return"No response text for uri "+D.JSC$19491_requestUri_+" status "+t});
D.JSC$19491_successful_=t==200;rH9(D.JSC$19491_channelDebug_,D.JSC$19491_verb_,D.JSC$19491_requestUri_,D.JSC$19491_rid_,D.JSC$19491_retryId_,Y,t);if(D.JSC$19491_successful_){if(D.decodeInitialResponse_&&!D.initialResponseDecoded_)if(Z=mFb(D))xu(D.JSC$19491_channelDebug_,D.JSC$19491_rid_,Z,"Initial handshake response via X-HTTP-Initial-Response"),D.initialResponseDecoded_=!0,qFk(D,Z);else{D.JSC$19491_successful_=!1;D.JSC$19491_lastError_=3;mt(12);D.JSC$19491_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
D.JSC$19491_rid_+")");QC(D);B3(D);return}D.decodeChunks_?HK9(D,Y,R):(xu(D.JSC$19491_channelDebug_,D.JSC$19491_rid_,R,null),qFk(D,R));Y==4&&QC(D);D.JSC$19491_successful_&&!D.JSC$19491_cancelled_&&(Y==4?xFk(D.JSC$19491_channel_,D):(D.JSC$19491_successful_=!1,JHb(D)))}else GPK(D.JSC$19491_xmlHttp_),t==400&&R.indexOf("Unknown SID")>0?(D.JSC$19491_lastError_=3,mt(12),D.JSC$19491_channelDebug_.warning("XMLHTTP Unknown SID ("+D.JSC$19491_rid_+")")):(D.JSC$19491_lastError_=0,mt(13),D.JSC$19491_channelDebug_.warning("XMLHTTP Bad status "+
t+" ("+D.JSC$19491_rid_+")")),QC(D),B3(D)}},mFb=function(D){return D.JSC$19491_xmlHttp_&&(D=ka(D.JSC$19491_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.M$(D)?D:null},LvK=function(D){if(!PRT(D))return D.JSC$19491_xmlHttp_.getResponseText();
var Y=D.JSC$19491_xmlHttp_.getResponse();if(Y==="")return"";var R="",Z=Y.length,t=_.NZ(D.JSC$19491_xmlHttp_)==4;if(!D.fetchResponseState_.JSC$19493_textDecoder){if(typeof TextDecoder==="undefined")return QC(D),B3(D),"";D.fetchResponseState_.JSC$19493_textDecoder=new _.ZU.TextDecoder}for(var X=0;X<Z;X++)D.fetchResponseState_.responseArrivedForFetch=!0,R+=D.fetchResponseState_.JSC$19493_textDecoder.decode(Y[X],{stream:!(t&&X==Z-1)});Y.length=0;D.fetchResponseState_.responseBuffer+=R;D.JSC$19491_xmlHttpChunkStart_=
0;return D.fetchResponseState_.responseBuffer},Kvk=function(D){return D.JSC$19491_xmlHttp_?D.fetchResponseState_.responseArrivedForFetch?!0:!(!D.JSC$19491_xmlHttp_.getResponseText()&&!D.JSC$19491_xmlHttp_.getResponse()):!1},PRT=function(D){return D.JSC$19491_xmlHttp_?D.JSC$19491_verb_=="GET"&&D.JSC$19491_type_!=2&&D.JSC$19491_channel_.usesFetchStreams_:!1},HK9=function(D,Y,R){for(var Z=!0,t;!D.JSC$19491_cancelled_&&D.JSC$19491_xmlHttpChunkStart_<R.length;)if(t=Q6h(D,R),t==yHb){Y==4&&(D.JSC$19491_lastError_=
4,mt(14),Z=!1);
xu(D.JSC$19491_channelDebug_,D.JSC$19491_rid_,null,"[Incomplete Response]");break}else if(t==bKu){D.JSC$19491_lastError_=4;mt(15);xu(D.JSC$19491_channelDebug_,D.JSC$19491_rid_,R,"[Invalid Chunk]");Z=!1;break}else xu(D.JSC$19491_channelDebug_,D.JSC$19491_rid_,t,null),qFk(D,t);PRT(D)&&D.JSC$19491_xmlHttpChunkStart_!=0&&(D.fetchResponseState_.responseBuffer=D.fetchResponseState_.responseBuffer.slice(D.JSC$19491_xmlHttpChunkStart_),D.JSC$19491_xmlHttpChunkStart_=0);Y!=4||R.length!=0||D.fetchResponseState_.responseArrivedForFetch||
(D.JSC$19491_lastError_=1,mt(16),Z=!1);D.JSC$19491_successful_=D.JSC$19491_successful_&&Z;Z?R.length>0&&!D.firstByteReceived_&&(D.firstByteReceived_=!0,Y=D.JSC$19491_channel_,Y.JSC$19510_backChannelRequest_==D&&Y.detectBufferingProxy_&&!Y.bpDetectionDone_&&(Y.JSC$19510_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+R.length),Bkz(Y),Y.bpDetectionDone_=!0,mt(11))):(xu(D.JSC$19491_channelDebug_,D.JSC$19491_rid_,R,"[Invalid Chunked Response]"),QC(D),B3(D))},Q6h=function(D,Y){var R=
D.JSC$19491_xmlHttpChunkStart_,Z=Y.indexOf("\n",R);
if(Z==-1)return yHb;R=Number(Y.substring(R,Z));if(isNaN(R))return bKu;Z+=1;if(Z+R>Y.length)return yHb;Y=Y.slice(Z,Z+R);D.JSC$19491_xmlHttpChunkStart_=Z+R;return Y};
P3.prototype.cancel=function(){this.JSC$19491_cancelled_=!0;QC(this)};
var JHb=function(D){D.JSC$19491_watchDogTimeoutTime_=Date.now()+D.timeout_;pAt(D,D.timeout_)},pAt=function(D,Y){if(D.JSC$19491_watchDogTimerId_!=null)throw Error("Ak");
D.JSC$19491_watchDogTimerId_=qH((0,_.nG)(D.JSC$19495_onWatchDogTimeout_,D),Y)},hAk=function(D){D.JSC$19491_watchDogTimerId_&&(_.ZU.clearTimeout(D.JSC$19491_watchDogTimerId_),D.JSC$19491_watchDogTimerId_=null)};
P3.prototype.JSC$19495_onWatchDogTimeout_=function(){this.JSC$19491_watchDogTimerId_=null;var D=Date.now();D-this.JSC$19491_watchDogTimeoutTime_>=0?($FK(this.JSC$19491_channelDebug_,this.JSC$19491_requestUri_),this.JSC$19491_type_!=2&&(Ll(3),mt(17)),QC(this),this.JSC$19491_lastError_=2,B3(this)):(this.JSC$19491_channelDebug_.warning("WatchDog timer called too early"),pAt(this,this.JSC$19491_watchDogTimeoutTime_-D))};
var B3=function(D){D.JSC$19491_channel_.state_==0||D.JSC$19491_cancelled_||xFk(D.JSC$19491_channel_,D)},QC=function(D){hAk(D);
_.OG(D.JSC$19491_readyStateChangeThrottle_);D.JSC$19491_readyStateChangeThrottle_=null;D.JSC$19491_eventHandler_.removeAll();if(D.JSC$19491_xmlHttp_){var Y=D.JSC$19491_xmlHttp_;D.JSC$19491_xmlHttp_=null;Y.abort();Y.dispose()}};
P3.prototype.getLastError=function(){return this.JSC$19491_lastError_};
var qFk=function(D,Y){try{var R=D.JSC$19491_channel_;if(R.state_!=0&&(R.JSC$19510_backChannelRequest_==D||ESI(R.forwardChannelRequestPool_,D)))if(!D.initialResponseDecoded_&&ESI(R.forwardChannelRequestPool_,D)&&R.state_==3){try{var Z=R.wireCodec_.JSC$19505_parser_.parse(Y)}catch(W){Z=null}if(Array.isArray(Z)&&Z.length==3){Y=Z;if(Y[0]==0)a:if(R.JSC$19510_channelDebug_.debug("Server claims our backchannel is missing."),R.JSC$19510_backChannelTimerId_)R.JSC$19510_channelDebug_.debug("But we are currently starting the request.");
else{if(R.JSC$19510_backChannelRequest_)if(R.JSC$19510_backChannelRequest_.JSC$19491_requestStartTime_+3E3<D.JSC$19491_requestStartTime_)gSz(R),dFI(R);else break a;else R.JSC$19510_channelDebug_.warning("We do not have a BackChannel established");iK0(R);mt(18)}else{R.JSC$19510_lastPostResponseArrayId_=Y[1];var t=R.JSC$19510_lastPostResponseArrayId_-R.JSC$19510_lastArrayId_;if(0<t){var X=Y[2];R.JSC$19510_channelDebug_.debug(X+" bytes (in "+t+" arrays) are outstanding on the BackChannel");X<37500&&
R.enableStreaming_&&R.JSC$19510_backChannelRetryCount_==0&&!R.JSC$19510_deadBackChannelTimerId_&&(R.JSC$19510_deadBackChannelTimerId_=qH((0,_.nG)(R.JSC$19512_onBackChannelDead_,R),6E3))}}if(OKt(R.forwardChannelRequestPool_)<=1&&R.forwardChannelFlushedCallback_){try{R.forwardChannelFlushedCallback_()}catch(W){}R.forwardChannelFlushedCallback_=void 0}}else R.JSC$19510_channelDebug_.debug("Bad POST response data returned"),pl(R,11)}else if((D.initialResponseDecoded_||R.JSC$19510_backChannelRequest_==
D)&&gSz(R),!_.M$(Y)){var M=R.wireCodec_.JSC$19505_parser_.parse(Y);R.onInput_(M,D)}Ll(4)}catch(W){}};var cHI=function(D,Y){this.JSC$19498_mapId=D;this.map=Y;this.context=null};var D0b=function(D){this.maxPoolSizeConfigured_=D||10;_.ZU.PerformanceNavigationTiming?(D=_.ZU.performance.getEntriesByType("navigation"),D=D.length>0&&(D[0].nextHopProtocol=="hq"||D[0].nextHopProtocol=="h2")):D=!!(_.ZU.chrome&&_.ZU.chrome.loadTimes&&_.ZU.chrome.loadTimes()&&_.ZU.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19501_maxSize_=D?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19501_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19501_request_=null;this.JSC$19501_pendingMessages_=
[]},Yo9=function(D){return D.JSC$19501_request_?!0:D.requestPool_?D.requestPool_.size>=D.JSC$19501_maxSize_:!1},OKt=function(D){return D.JSC$19501_request_?1:D.requestPool_?D.requestPool_.size:0},ESI=function(D,Y){return D.JSC$19501_request_?D.JSC$19501_request_==Y:D.requestPool_?D.requestPool_.has(Y):!1},RRb=function(D,Y){D.requestPool_?D.requestPool_.add(Y):D.JSC$19501_request_=Y},ZDK=function(D,Y){D.JSC$19501_request_&&D.JSC$19501_request_==Y?D.JSC$19501_request_=null:D.requestPool_&&D.requestPool_.has(Y)&&
D.requestPool_.delete(Y)};
D0b.prototype.cancel=function(){this.JSC$19501_pendingMessages_=tRT(this);if(this.JSC$19501_request_)this.JSC$19501_request_.cancel(),this.JSC$19501_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var D=_.a(this.requestPool_.values()),Y=D.next();!Y.done;Y=D.next())Y.value.cancel();this.requestPool_.clear()}};
var tRT=function(D){if(D.JSC$19501_request_!=null)return D.JSC$19501_pendingMessages_.concat(D.JSC$19501_request_.JSC$19491_pendingMessages_);if(D.requestPool_!=null&&D.requestPool_.size!==0){var Y=D.JSC$19501_pendingMessages_;D=_.a(D.requestPool_.values());for(var R=D.next();!R.done;R=D.next())Y=Y.concat(R.value.JSC$19491_pendingMessages_);return Y}return _.q$(D.JSC$19501_pendingMessages_)},shu=function(D,Y){D.JSC$19501_pendingMessages_=D.JSC$19501_pendingMessages_.concat(Y)};var XXE=function(D,Y){var R=new H3;R.debug("TestLoadImage: loading "+D);if(_.ZU.Image){var Z=new Image;Z.onload=_.A4(EC,R,"TestLoadImage: loaded",!0,Y,Z);Z.onerror=_.A4(EC,R,"TestLoadImage: error",!1,Y,Z);Z.onabort=_.A4(EC,R,"TestLoadImage: abort",!1,Y,Z);Z.ontimeout=_.A4(EC,R,"TestLoadImage: timeout",!1,Y,Z);_.ZU.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},1E4);
Z.src=D}else Y(!1)},uSt=function(D,Y){var R=new H3,Z=new AbortController,t=setTimeout(function(){Z.abort();
EC(R,"TestPingServer: timeout",!1,Y)},1E4);
fetch(D,{signal:Z.signal}).then(function(X){clearTimeout(t);X.ok?EC(R,"TestPingServer: ok",!0,Y):EC(R,"TestPingServer: server error",!1,Y)}).catch(function(){clearTimeout(t);
EC(R,"TestPingServer: error",!1,Y)})},EC=function(D,Y,R,Z,t){try{D.debug(Y),t&&(t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null),Z(R)}catch(X){}};var aBh=function(){this.JSC$19505_parser_=new hq};var gx=function(D,Y,R){return R&&R.internalChannelParams?R.internalChannelParams[D]||Y:Y},dx=function(D){this.serverVersion_=0;
this.JSC$19510_outgoingMaps_=[];this.JSC$19510_channelDebug_=new H3;this.JSC$19510_hostPrefix_=this.JSC$19510_backChannelUri_=this.JSC$19510_forwardChannelUri_=this.JSC$19510_path_=this.JSC$19510_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19510_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19510_extraHeaders_=null;this.JSC$19510_nextMapId_=this.JSC$19510_nextRid_=0;this.JSC$19510_failFast_=gx("failFast",!1,D);this.enableStreaming_=this.JSC$19510_deadBackChannelTimerId_=
this.JSC$19510_backChannelTimerId_=this.JSC$19510_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19510_lastPostResponseArrayId_=this.JSC$19510_lastArrayId_=-1;this.JSC$19510_backChannelAttemptId_=this.JSC$19510_backChannelRetryCount_=this.JSC$19510_forwardChannelRetryCount_=0;this.JSC$19510_baseRetryDelayMs_=gx("baseRetryDelayMs",5E3,D);this.JSC$19510_retryDelaySeedMs_=gx("retryDelaySeedMs",1E4,D);this.JSC$19510_forwardChannelMaxRetries_=
gx("forwardChannelMaxRetries",2,D);this.JSC$19510_forwardChannelRequestTimeoutMs_=gx("forwardChannelRequestTimeoutMs",2E4,D);this.JSC$19510_xmlHttpFactory_=D&&D.xmlHttpFactory||void 0;this.networkTestUrl_=D&&D.networkTestUrl||void 0;this.usesFetchStreams_=D&&D.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19510_supportsCrossDomainXhrs_=D&&D.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new D0b(D&&D.concurrentRequestLimit);this.wireCodec_=new aBh;this.fastHandshake_=
D&&D.fastHandshake||!1;this.encodeInitMessageHeaders_=D&&D.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19510_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=D&&D.blockingHandshake||!1;D&&D.disableRedact&&this.JSC$19510_channelDebug_.disableRedact();D&&D.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
D&&D.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;D&&D.longPollingTimeout&&D.longPollingTimeout>0&&(this.longPollingTimeout_=D.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
dx.prototype.JSC$19512_channelVersion_=8;dx.prototype.state_=1;
dx.prototype.connect=function(D,Y,R,Z){this.JSC$19510_channelDebug_.debug("connect()");mt(0);this.JSC$19510_path_=D;this.JSC$19510_extraParams_=Y||{};R&&Z!==void 0&&(this.JSC$19510_extraParams_.OSID=R,this.JSC$19510_extraParams_.OAID=Z);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19510_channelDebug_.debug("connectChannel_()");D=MRt(this,null,this.JSC$19510_path_);this.JSC$19510_channelDebug_.debug("GetForwardChannelUri: "+D);this.JSC$19510_forwardChannelUri_=D;CjK(this)};
dx.prototype.disconnect=function(){this.JSC$19510_channelDebug_.debug("disconnect()");Wwp(this);if(this.state_==3){var D=this.JSC$19510_nextRid_++,Y=this.JSC$19510_forwardChannelUri_.clone();_.xh(Y,"SID",this.sid_);_.xh(Y,"RID",D);_.xh(Y,"TYPE","terminate");ia(this,Y);D=new P3(this,this.JSC$19510_channelDebug_,this.sid_,D);D.JSC$19491_type_=2;D.JSC$19491_baseUri_=_.as(Y.clone());Y=!1;if(_.ZU.navigator&&_.ZU.navigator.sendBeacon)try{Y=_.ZU.navigator.sendBeacon(D.JSC$19491_baseUri_.toString(),"")}catch(R){}!Y&&
_.ZU.Image&&((new Image).src=D.JSC$19491_baseUri_,Y=!0);Y||(D.JSC$19491_xmlHttp_=kSI(D.JSC$19491_channel_,null),D.JSC$19491_xmlHttp_.send(D.JSC$19491_baseUri_));D.JSC$19491_requestStartTime_=Date.now();JHb(D)}zRK(this)};
var dFI=function(D){D.JSC$19510_backChannelRequest_&&(Bkz(D),D.JSC$19510_backChannelRequest_.cancel(),D.JSC$19510_backChannelRequest_=null)},Wwp=function(D){dFI(D);
D.JSC$19510_backChannelTimerId_&&(_.ZU.clearTimeout(D.JSC$19510_backChannelTimerId_),D.JSC$19510_backChannelTimerId_=null);gSz(D);D.forwardChannelRequestPool_.cancel();D.JSC$19510_forwardChannelTimerId_&&(typeof D.JSC$19510_forwardChannelTimerId_==="number"&&_.ZU.clearTimeout(D.JSC$19510_forwardChannelTimerId_),D.JSC$19510_forwardChannelTimerId_=null)};
dx.prototype.getState=function(){return this.state_};
var CjK=function(D){Yo9(D.forwardChannelRequestPool_)||D.JSC$19510_forwardChannelTimerId_||(D.JSC$19510_forwardChannelTimerId_=!0,_.r3(D.JSC$19512_onStartForwardChannelTimer_,D),D.JSC$19510_forwardChannelRetryCount_=0)},T7T=function(D,Y){if(OKt(D.forwardChannelRequestPool_)>=D.forwardChannelRequestPool_.JSC$19501_maxSize_-(D.JSC$19510_forwardChannelTimerId_?1:0))return!1;
if(D.JSC$19510_forwardChannelTimerId_)return D.JSC$19510_channelDebug_.debug("Use the retry request that is already scheduled."),D.JSC$19510_outgoingMaps_=Y.JSC$19491_pendingMessages_.concat(D.JSC$19510_outgoingMaps_),!0;if(D.state_==1||D.state_==2||D.JSC$19510_forwardChannelRetryCount_>=(D.JSC$19510_failFast_?0:D.JSC$19510_forwardChannelMaxRetries_))return!1;D.JSC$19510_channelDebug_.debug("Going to retry POST");D.JSC$19510_forwardChannelTimerId_=qH((0,_.nG)(D.JSC$19512_onStartForwardChannelTimer_,
D,Y),Soh(D,D.JSC$19510_forwardChannelRetryCount_));D.JSC$19510_forwardChannelRetryCount_++;return!0};
dx.prototype.JSC$19512_onStartForwardChannelTimer_=function(D){if(this.JSC$19510_forwardChannelTimerId_)if(this.JSC$19510_forwardChannelTimerId_=null,this.JSC$19510_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!D){this.JSC$19510_channelDebug_.debug("open_()");this.JSC$19510_nextRid_=Math.floor(Math.random()*1E5);D=this.JSC$19510_nextRid_++;var Y=new P3(this,this.JSC$19510_channelDebug_,"",D),R=this.JSC$19510_extraHeaders_;this.initHeaders_&&(R?(R=_.y7.clone(R),_.y7.extend(R,this.initHeaders_)):
R=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(Y.JSC$19491_extraHeaders_=R,R=null);var Z;if(this.fastHandshake_)a:{for(var t=Z=0;t<this.JSC$19510_outgoingMaps_.length;t++){b:{var X=this.JSC$19510_outgoingMaps_[t];if("__data__"in X.map&&(X=X.map.__data__,typeof X==="string")){X=X.length;break b}X=void 0}if(X===void 0)break;Z+=X;if(Z>4096){Z=t;break a}if(Z===4096||t===this.JSC$19510_outgoingMaps_.length-1){Z=t+1;break a}}Z=1E3}else Z=1E3;Z=jhK(this,Y,Z);
t=this.JSC$19510_forwardChannelUri_.clone();_.xh(t,"RID",D);_.xh(t,"CVER",22);this.httpSessionIdParam_&&_.xh(t,"X-HTTP-Session-Id",this.httpSessionIdParam_);ia(this,t);R&&(this.encodeInitMessageHeaders_?Z="headers="+_.HD(lDk(R))+"&"+Z:this.httpHeadersOverwriteParam_&&Jrz(t,this.httpHeadersOverwriteParam_,R));RRb(this.forwardChannelRequestPool_,Y);this.blockingHandshake_&&_.xh(t,"TYPE","init");this.fastHandshake_?(_.xh(t,"$req",Z),_.xh(t,"SID","null"),Y.decodeInitialResponse_=!0,lvz(Y,t,null)):lvz(Y,
t,Z);this.state_=2}}else this.state_==3&&(D?IBk(this,D):this.JSC$19510_outgoingMaps_.length==0?this.JSC$19510_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Yo9(this.forwardChannelRequestPool_)||(IBk(this),this.JSC$19510_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var IBk=function(D,Y){var R;Y?R=Y.JSC$19491_rid_:R=D.JSC$19510_nextRid_++;var Z=D.JSC$19510_forwardChannelUri_.clone();_.xh(Z,"SID",D.sid_);_.xh(Z,"RID",R);_.xh(Z,"AID",D.JSC$19510_lastArrayId_);ia(D,Z);D.httpHeadersOverwriteParam_&&D.JSC$19510_extraHeaders_&&Jrz(Z,D.httpHeadersOverwriteParam_,D.JSC$19510_extraHeaders_);R=new P3(D,D.JSC$19510_channelDebug_,D.sid_,R,D.JSC$19510_forwardChannelRetryCount_+1);D.httpHeadersOverwriteParam_===null&&(R.JSC$19491_extraHeaders_=D.JSC$19510_extraHeaders_);Y&&
(D.JSC$19510_outgoingMaps_=Y.JSC$19491_pendingMessages_.concat(D.JSC$19510_outgoingMaps_));Y=jhK(D,R,1E3);R.setTimeout(Math.round(D.JSC$19510_forwardChannelRequestTimeoutMs_*.5)+Math.round(D.JSC$19510_forwardChannelRequestTimeoutMs_*.5*Math.random()));RRb(D.forwardChannelRequestPool_,R);lvz(R,Z,Y)},ia=function(D,Y){D.JSC$19510_extraParams_&&_.y7.forEach(D.JSC$19510_extraParams_,function(R,Z){_.xh(Y,Z,R)});
D.handler_&&_.y7.forEach({},function(R,Z){_.xh(Y,Z,R)})},jhK=function(D,Y,R){R=Math.min(D.JSC$19510_outgoingMaps_.length,R);
var Z=D.handler_?(0,_.nG)(D.handler_.JSC$19516_badMapError,D.handler_,D):null;a:{for(var t=D.JSC$19510_outgoingMaps_,X=-1;;){var M=["count="+R];X==-1?R>0?(X=t[0].JSC$19498_mapId,M.push("ofs="+X)):X=0:M.push("ofs="+X);for(var W=!0,z=0;z<R;z++){var I=t[z].JSC$19498_mapId,F=t[z].map;I-=X;if(I<0)X=Math.max(0,t[z].JSC$19498_mapId-100),W=!1;else try{I="req"+I+"_"||"";try{var G=F instanceof Map?F:Object.entries(F);for(var V=_.a(G),e=V.next();!e.done;e=V.next()){var r=_.a(e.value),l=r.next().value,U=r.next().value,
K=U;_.Bo(U)&&(K=(0,_.bQ)(U));M.push(I+l+"="+encodeURIComponent(K))}}catch(H){throw M.push(I+"type="+encodeURIComponent("_badmap")),H;}}catch(H){Z&&Z(F)}}if(W){G=M.join("&");break a}}G=void 0}D=D.JSC$19510_outgoingMaps_.splice(0,R);Y.JSC$19491_pendingMessages_=D;return G},Fw0=function(D){D.JSC$19510_backChannelRequest_||D.JSC$19510_backChannelTimerId_||(D.JSC$19510_backChannelAttemptId_=1,_.r3(D.JSC$19512_onStartBackChannelTimer_,D),D.JSC$19510_backChannelRetryCount_=0)},iK0=function(D){if(D.JSC$19510_backChannelRequest_||
D.JSC$19510_backChannelTimerId_||D.JSC$19510_backChannelRetryCount_>=3)return!1;
D.JSC$19510_channelDebug_.debug("Going to retry GET");D.JSC$19510_backChannelAttemptId_++;D.JSC$19510_backChannelTimerId_=qH((0,_.nG)(D.JSC$19512_onStartBackChannelTimer_,D),Soh(D,D.JSC$19510_backChannelRetryCount_));D.JSC$19510_backChannelRetryCount_++;return!0};
dx.prototype.JSC$19512_onStartBackChannelTimer_=function(){this.JSC$19510_backChannelTimerId_=null;GpT(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19510_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19510_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19510_backChannelRequest_+" "+this.handshakeRttMs_);else{var D=4*this.handshakeRttMs_;this.JSC$19510_channelDebug_.info("BP detection timer enabled: "+D);this.bpDetectionTimerId_=qH((0,_.nG)(this.onBpDetectionTimer_,
this),D)}};
dx.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19510_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19510_backChannelRequest_.JSC$19491_xmlHttp_!=null){var D=this.JSC$19510_backChannelRequest_.JSC$19491_xmlHttp_.getResponseText();D&&this.JSC$19510_channelDebug_.warning("Timer should have been cancelled : "+D)}this.JSC$19510_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mt(10);dFI(this);GpT(this)}else this.JSC$19510_channelDebug_.warning("Invalid operation.")};
var Bkz=function(D){D.bpDetectionTimerId_!=null&&(D.JSC$19510_channelDebug_.debug("Cancel the BP detection timer."),_.ZU.clearTimeout(D.bpDetectionTimerId_),D.bpDetectionTimerId_=null)},GpT=function(D){D.JSC$19510_channelDebug_.debug("Creating new HttpRequest");
D.JSC$19510_backChannelRequest_=new P3(D,D.JSC$19510_channelDebug_,D.sid_,"rpc",D.JSC$19510_backChannelAttemptId_);D.httpHeadersOverwriteParam_===null&&(D.JSC$19510_backChannelRequest_.JSC$19491_extraHeaders_=D.JSC$19510_extraHeaders_);D.JSC$19510_backChannelRequest_.JSC$19491_readyStateChangeThrottleMs_=0;var Y=D.JSC$19510_backChannelUri_.clone();_.xh(Y,"RID","rpc");_.xh(Y,"SID",D.sid_);_.xh(Y,"AID",D.JSC$19510_lastArrayId_);_.xh(Y,"CI",D.enableStreaming_?"0":"1");!D.enableStreaming_&&D.longPollingTimeout_&&
_.xh(Y,"TO",D.longPollingTimeout_);_.xh(Y,"TYPE","xmlhttp");ia(D,Y);D.httpHeadersOverwriteParam_&&D.JSC$19510_extraHeaders_&&Jrz(Y,D.httpHeadersOverwriteParam_,D.JSC$19510_extraHeaders_);D.backChannelRequestTimeoutMs_&&D.JSC$19510_backChannelRequest_.setTimeout(D.backChannelRequestTimeoutMs_);var R=D.JSC$19510_backChannelRequest_,Z=D.JSC$19510_hostPrefix_;R.JSC$19491_type_=1;R.JSC$19491_baseUri_=_.as(Y.clone());R.JSC$19491_postData_=null;R.decodeChunks_=!0;Nkh(R,Z);D.JSC$19510_channelDebug_.debug("New Request created")};
dx.prototype.JSC$19512_onBackChannelDead_=function(){this.JSC$19510_deadBackChannelTimerId_!=null&&(this.JSC$19510_deadBackChannelTimerId_=null,dFI(this),iK0(this),mt(19))};
var gSz=function(D){D.JSC$19510_deadBackChannelTimerId_!=null&&(_.ZU.clearTimeout(D.JSC$19510_deadBackChannelTimerId_),D.JSC$19510_deadBackChannelTimerId_=null)},xFk=function(D,Y){D.JSC$19510_channelDebug_.debug("Request complete");
var R=null;if(D.JSC$19510_backChannelRequest_==Y){gSz(D);Bkz(D);D.JSC$19510_backChannelRequest_=null;var Z=2}else if(ESI(D.forwardChannelRequestPool_,Y))R=Y.JSC$19491_pendingMessages_,ZDK(D.forwardChannelRequestPool_,Y),Z=1;else return;if(D.state_!=0)if(Y.JSC$19491_successful_)Z==1?(AHh(Y.JSC$19491_postData_?Y.JSC$19491_postData_.length:0,Date.now()-Y.JSC$19491_requestStartTime_,D.JSC$19510_forwardChannelRetryCount_),CjK(D)):Fw0(D);else{var t=Y.JSC$19491_lastStatusCode_,X=Y.getLastError();if(X==3||
X==0&&t>0)D.JSC$19510_channelDebug_.debug("Not retrying due to error type"),t>200&&(D.errorResponseStatusCode_=Y.JSC$19491_lastStatusCode_);else{D.JSC$19510_channelDebug_.debug(function(){return"Maybe retrying, last error: "+oSE(X,D.errorResponseStatusCode_)});
if(Z==1&&T7T(D,Y)||Z==2&&iK0(D))return;D.JSC$19510_channelDebug_.debug("Exceeded max number of retries")}R&&R.length>0&&shu(D.forwardChannelRequestPool_,R);D.JSC$19510_channelDebug_.debug("Error: HTTP request failed");switch(X){case 1:pl(D,5);break;case 4:pl(D,10);break;case 3:pl(D,6);break;default:pl(D,2)}}},Soh=function(D,Y){var R=D.JSC$19510_baseRetryDelayMs_+Math.floor(Math.random()*D.JSC$19510_retryDelaySeedMs_);
D.isActive()||(D.JSC$19510_channelDebug_.debug("Inactive channel"),R*=2);return R*Y};
dx.prototype.onInput_=function(D,Y){for(var R=0;R<D.length;R++){var Z=D[R];this.JSC$19510_lastArrayId_=Z[0];Z=Z[1];if(this.state_==2)if(Z[0]=="c"){this.sid_=Z[1];this.JSC$19510_hostPrefix_=Z[2];var t=Z[3];t!=null&&(this.JSC$19512_channelVersion_=t,this.JSC$19510_channelDebug_.info("VER="+this.JSC$19512_channelVersion_));t=Z[4];t!=null&&(this.serverVersion_=t,this.JSC$19510_channelDebug_.info("SVER="+this.serverVersion_));Z=Z[5];Z!=null&&typeof Z==="number"&&Z>0&&(this.backChannelRequestTimeoutMs_=
Z*=1.5,this.JSC$19510_channelDebug_.info("backChannelRequestTimeoutMs_="+Z));if(Z=Y.JSC$19491_xmlHttp_){var X=ka(Z,"X-Client-Wire-Protocol");X&&(t=this.forwardChannelRequestPool_,!t.requestPool_&&(_.CM(X,"spdy")||_.CM(X,"quic")||_.CM(X,"h2"))&&(t.JSC$19501_maxSize_=t.maxPoolSizeConfigured_,t.requestPool_=new Set,t.JSC$19501_request_&&(RRb(t,t.JSC$19501_request_),t.JSC$19501_request_=null)));this.httpSessionIdParam_&&((Z=ka(Z,"X-HTTP-Session-Id"))?(this.httpSessionId_=Z,_.xh(this.JSC$19510_forwardChannelUri_,
this.httpSessionIdParam_,Z)):this.JSC$19510_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19516_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-Y.JSC$19491_requestStartTime_,this.JSC$19510_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Z=Y;t=MRt(this,this.JSC$19510_supportsCrossDomainXhrs_?this.JSC$19510_hostPrefix_:null,this.JSC$19510_path_);this.JSC$19510_channelDebug_.debug("GetBackChannelUri: "+
t);this.JSC$19510_backChannelUri_=t;Z.initialResponseDecoded_?(this.JSC$19510_channelDebug_.debug("Upgrade the handshake request to a backchannel."),ZDK(this.forwardChannelRequestPool_,Z),t=Z,(X=this.backChannelRequestTimeoutMs_)&&t.setTimeout(X),t.JSC$19491_watchDogTimerId_&&(hAk(t),JHb(t)),this.JSC$19510_backChannelRequest_=Z):Fw0(this);this.JSC$19510_outgoingMaps_.length>0&&CjK(this)}else Z[0]!="stop"&&Z[0]!="close"||pl(this,7);else this.state_==3&&(Z[0]=="stop"||Z[0]=="close"?Z[0]=="stop"?pl(this,
7):this.disconnect():Z[0]!="noop"&&this.handler_&&this.handler_.JSC$19516_channelHandleArray(Z),this.JSC$19510_backChannelRetryCount_=0)}};
var pl=function(D,Y){D.JSC$19510_channelDebug_.info("Error code "+Y);if(Y==2){var R=(0,_.nG)(D.testNetworkCallback_,D),Z=D.networkTestUrl_,t=!Z;Z=new _.cO(Z||"//www.google.com/images/cleardot.gif");_.ZU.location&&_.ZU.location.protocol=="http"||_.cP(Z,"https");_.as(Z);t?XXE(Z.toString(),R):uSt(Z.toString(),R)}else mt(2);D.onError_(Y)};
dx.prototype.testNetworkCallback_=function(D){D?(this.JSC$19510_channelDebug_.info("Successfully pinged google.com"),mt(2)):(this.JSC$19510_channelDebug_.info("Failed to ping google.com"),mt(1))};
dx.prototype.onError_=function(D){this.JSC$19510_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$19516_channelError(D);zRK(this);Wwp(this)};
var zRK=function(D){D.state_=0;D.nonAckedMapsAtChannelClose_=[];if(D.handler_){var Y=tRT(D.forwardChannelRequestPool_);if(Y.length!=0||D.JSC$19510_outgoingMaps_.length!=0)D.JSC$19510_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+Y.length+", outgoing: "+D.JSC$19510_outgoingMaps_.length}),_.Po(D.nonAckedMapsAtChannelClose_,Y),_.Po(D.nonAckedMapsAtChannelClose_,D.JSC$19510_outgoingMaps_),D.forwardChannelRequestPool_.JSC$19501_pendingMessages_.length=0,_.q$(D.JSC$19510_outgoingMaps_),
D.JSC$19510_outgoingMaps_.length=0;
D.handler_.JSC$19516_channelClosed()}},VRI=function(D){if(D.state_==0)return D.nonAckedMapsAtChannelClose_;
var Y=[];_.Po(Y,tRT(D.forwardChannelRequestPool_));_.Po(Y,D.JSC$19510_outgoingMaps_);return Y},MRt=function(D,Y,R){var Z=_.qC(R);
Z.JSC$10000_domain_!=""?(Y&&_.Ds(Z,Y+"."+Z.JSC$10000_domain_),_.YO(Z,Z.JSC$10000_port_)):(Z=_.ZU.location,Z=V3I(Z.protocol,Y?Y+"."+Z.hostname:Z.hostname,+Z.port,R));Y=D.httpSessionIdParam_;R=D.httpSessionId_;Y&&R&&_.xh(Z,Y,R);_.xh(Z,"VER",D.JSC$19512_channelVersion_);ia(D,Z);return Z},kSI=function(D,Y,R){if(Y&&!D.JSC$19510_supportsCrossDomainXhrs_)throw Error("Bk");
Y=D.usesFetchStreams_&&!D.JSC$19510_xmlHttpFactory_?new _.yF(new O6({streamBinaryChunks:R})):new _.yF(D.JSC$19510_xmlHttpFactory_);Y.JSC$9765_withCredentials_=D.JSC$19510_supportsCrossDomainXhrs_;return Y};
dx.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var fB0=function(){};
_.u=fB0.prototype;_.u.JSC$19516_channelOpened=function(){};
_.u.JSC$19516_channelHandleArray=function(){};
_.u.JSC$19516_channelError=function(){};
_.u.JSC$19516_channelClosed=function(){};
_.u.isActive=function(){return!0};
_.u.JSC$19516_badMapError=function(){};var eRu=function(){},c3=function(D,Y){_.eE.call(this);
this.JSC$19519_channel_=new dx(Y);this.JSC$19519_url_=D;this.messageUrlParams_=Y&&Y.messageUrlParams||null;D=Y&&Y.messageHeaders||null;Y&&Y.clientProtocolHeaderRequired&&(D?_.y7.set(D,"X-Client-Protocol","webchannel"):D=_.y7.create("X-Client-Protocol","webchannel"));this.JSC$19519_channel_.JSC$19510_extraHeaders_=D;D=Y&&Y.initMessageHeaders||null;Y&&Y.messageContentType&&(D?_.y7.set(D,"X-WebChannel-Content-Type",Y.messageContentType):D=_.y7.create("X-WebChannel-Content-Type",Y.messageContentType));
Y&&Y.clientProfile&&(D?_.y7.set(D,"X-WebChannel-Client-Profile",Y.clientProfile):D=_.y7.create("X-WebChannel-Client-Profile",Y.clientProfile));this.JSC$19519_channel_.initHeaders_=D;(D=Y&&Y.httpHeadersOverwriteParam)&&!_.M$(D)&&(this.JSC$19519_channel_.httpHeadersOverwriteParam_=D);this.supportsCrossDomainXhr_=Y&&Y.supportsCrossDomainXhr||!1;this.sendRawJson_=Y&&Y.sendRawJson||!1;(Y=Y&&Y.httpSessionIdParam)&&!_.M$(Y)&&(this.JSC$19519_channel_.httpSessionIdParam_=Y,_.y7.containsKey(this.messageUrlParams_,
Y)&&_.y7.remove(this.messageUrlParams_,Y));this.channelHandler_=new OC(this)};
_.XN(c3,_.eE);c3.prototype.open=function(){this.JSC$19519_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19519_channel_.JSC$19510_supportsCrossDomainXhrs_=!0);this.JSC$19519_channel_.connect(this.JSC$19519_url_,this.messageUrlParams_||void 0)};
c3.prototype.close=function(){this.JSC$19519_channel_.disconnect()};
c3.prototype.send=function(D){var Y=this.JSC$19519_channel_;if(typeof D==="string"){var R={};R.__data__=D;D=R}else this.sendRawJson_&&(R={},R.__data__=(0,_.bQ)(D),D=R);Y.JSC$19510_outgoingMaps_.push(new cHI(Y.JSC$19510_nextMapId_++,D));Y.state_==3&&CjK(Y)};
c3.prototype.disposeInternal=function(){this.JSC$19519_channel_.handler_=null;delete this.channelHandler_;this.JSC$19519_channel_.disconnect();delete this.JSC$19519_channel_;c3.superClass_.disposeInternal.call(this)};
var Aw0=function(D){j6k.call(this);D.__headers__&&(this.headers=D.__headers__,this.statusCode=D.__status__,delete D.__headers__,delete D.__status__);var Y=D.__sm__;Y?this.data=(this.metadataKey=_.y7.getAnyKey(Y))?_.y7.get(Y,this.metadataKey):Y:this.data=D};
_.XN(Aw0,j6k);var nL9=function(D){IvE.call(this);this.status=1;this.errorCode=D};
_.XN(nL9,IvE);var OC=function(D){this.JSC$19526_channel_=D};
_.XN(OC,fB0);OC.prototype.JSC$19516_channelOpened=function(){this.JSC$19526_channel_.dispatchEvent("w")};
OC.prototype.JSC$19516_channelHandleArray=function(D){this.JSC$19526_channel_.dispatchEvent(new Aw0(D))};
OC.prototype.JSC$19516_channelError=function(D){this.JSC$19526_channel_.dispatchEvent(new nL9(D))};
OC.prototype.JSC$19516_channelClosed=function(){this.JSC$19526_channel_.dispatchEvent("x")};
var rw9=function(D,Y){this.transportChannel_=D;this.JSC$19529_channel_=Y},wXK=function(D){return VRI(D.JSC$19529_channel_).map(function(Y){var R=D.transportChannel_;
Y=Y.map;"__data__"in Y?(Y=Y.__data__,R=R.sendRawJson_?(0,_.X8E)(Y):Y):R=Y;return R})};
rw9.prototype.commit=function(D){this.JSC$19529_channel_.forwardChannelFlushedCallback_=D};var D9=function(D){$0T.dispatchEvent(new vLh($0T,D))},$0T=new _.eE,vLh=function(D,Y){_.IF.call(this,"statevent",D);
this.stat=Y};
_.n(vLh,_.IF);var Yg=function(D,Y,R,Z,t){this.JSC$19534_channel_=D;this.JSC$19534_channelDebug_=Y;this.sid_=R;this.JSC$19534_rid_=Z;this.JSC$19534_retryId_=t||1;this.timeout_=45E3;this.JSC$19534_eventHandler_=new _.aR(this);this.pollingTimer_=new _.ul;this.pollingTimer_.setInterval(250)};
_.u=Yg.prototype;_.u.JSC$19536_extraHeaders_=null;_.u.JSC$19536_successful_=!1;_.u.JSC$19536_watchDogTimerId_=null;_.u.JSC$19536_watchDogTimeoutTime_=null;_.u.JSC$19536_requestStartTime_=null;_.u.JSC$19536_type_=null;_.u.JSC$19536_baseUri_=null;_.u.JSC$19536_requestUri_=null;_.u.JSC$19536_postData_=null;_.u.JSC$19536_xmlHttp_=null;_.u.JSC$19536_xmlHttpChunkStart_=0;_.u.trident_=null;_.u.JSC$19536_verb_=null;_.u.JSC$19536_lastError_=null;_.u.JSC$19536_lastStatusCode_=-1;_.u.sendClose_=!0;
_.u.JSC$19536_cancelled_=!1;_.u.JSC$19536_readyStateChangeThrottleMs_=0;_.u.JSC$19536_readyStateChangeThrottle_=null;var oL9=function(D,Y){switch(D){case 0:return"Non-200 return code ("+Y+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},bD9={},ywh={};
Yg.prototype.setTimeout=function(D){this.timeout_=D};
var lBb=function(D,Y,R){D.JSC$19536_type_=1;D.JSC$19536_baseUri_=_.as(Y.clone());D.JSC$19536_postData_=R;D.decodeChunks_=!0;N7h(D,null)},Jwk=function(D,Y,R,Z,t){D.JSC$19536_type_=1;
D.JSC$19536_baseUri_=_.as(Y.clone());D.JSC$19536_postData_=null;D.decodeChunks_=R;t&&(D.sendClose_=!1);N7h(D,Z)},N7h=function(D,Y){D.JSC$19536_requestStartTime_=Date.now();
kpk(D);D.JSC$19536_requestUri_=D.JSC$19536_baseUri_.clone();vw(D.JSC$19536_requestUri_,"t",D.JSC$19534_retryId_);D.JSC$19536_xmlHttpChunkStart_=0;D.JSC$19536_xmlHttp_=D.JSC$19534_channel_.JSC$19543_createXhrIo(D.JSC$19534_channel_.JSC$19543_shouldUseSecondaryDomains()?Y:null);D.JSC$19536_readyStateChangeThrottleMs_>0&&(D.JSC$19536_readyStateChangeThrottle_=new _.gq((0,_.nG)(D.JSC$19536_xmlHttpHandler_,D,D.JSC$19536_xmlHttp_),D.JSC$19536_readyStateChangeThrottleMs_));D.JSC$19534_eventHandler_.listen(D.JSC$19536_xmlHttp_,
"readystatechange",D.JSC$19536_readyStateChangeHandler_);Y=D.JSC$19536_extraHeaders_?_.y7.clone(D.JSC$19536_extraHeaders_):{};D.JSC$19536_postData_?(D.JSC$19536_verb_="POST",Y["Content-Type"]="application/x-www-form-urlencoded",D.JSC$19536_xmlHttp_.send(D.JSC$19536_requestUri_,D.JSC$19536_verb_,D.JSC$19536_postData_,Y)):(D.JSC$19536_verb_="GET",D.sendClose_&&!_.zX&&(Y.Connection="close"),D.JSC$19536_xmlHttp_.send(D.JSC$19536_requestUri_,D.JSC$19536_verb_,null,Y));D.JSC$19534_channel_.notifyServerReachabilityEvent(1);
Y=D.JSC$19534_channelDebug_;var R=D.JSC$19536_postData_;if(R){var Z="";R=R.split("&");for(var t=0;t<R.length;t++){var X=R[t].split("=");if(X.length>1){var M=X[0];X=X[1];var W=M.split("_");Z=W.length>=2&&W[1]=="type"?Z+(M+"="+X+"&"):Z+(M+"=redacted&")}}}else Z=null;Y.info("XMLHTTP REQ ("+D.JSC$19534_rid_+") [attempt "+D.JSC$19534_retryId_+"]: "+D.JSC$19536_verb_+"\n"+D.JSC$19536_requestUri_+"\n"+Z)};
Yg.prototype.JSC$19536_readyStateChangeHandler_=function(D){D=D.target;var Y=this.JSC$19536_readyStateChangeThrottle_;Y&&_.NZ(D)==3?(this.JSC$19534_channelDebug_.debug("Throttling readystatechange."),Y.fire()):this.JSC$19536_xmlHttpHandler_(D)};
Yg.prototype.JSC$19536_xmlHttpHandler_=function(D){try{if(D==this.JSC$19536_xmlHttp_)a:{var Y=_.NZ(this.JSC$19536_xmlHttp_),R=this.JSC$19536_xmlHttp_.JSC$9765_lastErrorCode_,Z=this.JSC$19536_xmlHttp_.getStatus();if(_.zX&&!_.Ss("420+")){if(Y<4)break a}else if(Y<3||Y==3&&!this.JSC$19536_xmlHttp_.getResponseText())break a;this.JSC$19536_cancelled_||Y!=4||R==7||(R==8||Z<=0?this.JSC$19534_channel_.notifyServerReachabilityEvent(3):this.JSC$19534_channel_.notifyServerReachabilityEvent(2));U0u(this);var t=
this.JSC$19536_xmlHttp_.getStatus();this.JSC$19536_lastStatusCode_=t;var X=this.JSC$19536_xmlHttp_.getResponseText();X||this.JSC$19534_channelDebug_.debug("No response text for uri "+this.JSC$19536_requestUri_+" status "+t);this.JSC$19536_successful_=t==200;this.JSC$19534_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19534_rid_+") [ attempt "+this.JSC$19534_retryId_+"]: "+this.JSC$19536_verb_+"\n"+this.JSC$19536_requestUri_+"\n"+Y+" "+t);if(this.JSC$19536_successful_){Y==4&&RC(this);if(this.decodeChunks_){for(D=
!0;!this.JSC$19536_cancelled_&&this.JSC$19536_xmlHttpChunkStart_<X.length;){var M=Kwz(this,X);if(M==ywh){Y==4&&(this.JSC$19536_lastError_=4,D9(15),D=!1);Z9(this.JSC$19534_channelDebug_,this.JSC$19534_rid_,null,"[Incomplete Response]");break}else if(M==bD9){this.JSC$19536_lastError_=4;D9(16);Z9(this.JSC$19534_channelDebug_,this.JSC$19534_rid_,X,"[Invalid Chunk]");D=!1;break}else Z9(this.JSC$19534_channelDebug_,this.JSC$19534_rid_,M,null),hRI(this,M)}Y==4&&X.length==0&&(this.JSC$19536_lastError_=1,
D9(17),D=!1);this.JSC$19536_successful_=this.JSC$19536_successful_&&D;D||(Z9(this.JSC$19534_channelDebug_,this.JSC$19534_rid_,X,"[Invalid Chunked Response]"),RC(this),Lwu(this))}else Z9(this.JSC$19534_channelDebug_,this.JSC$19534_rid_,X,null),hRI(this,X);this.JSC$19536_successful_&&!this.JSC$19536_cancelled_&&(Y==4?this.JSC$19534_channel_.JSC$19543_onRequestComplete(this):(this.JSC$19536_successful_=!1,kpk(this)))}else t==400&&X.indexOf("Unknown SID")>0?(this.JSC$19536_lastError_=3,D9(13),this.JSC$19534_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19534_rid_+")")):(this.JSC$19536_lastError_=0,D9(14),this.JSC$19534_channelDebug_.warning("XMLHTTP Bad status "+t+" ("+this.JSC$19534_rid_+")")),RC(this),Lwu(this)}else this.JSC$19534_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$19534_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Kwz=function(D,Y){var R=D.JSC$19536_xmlHttpChunkStart_,Z=Y.indexOf("\n",R);if(Z==-1)return ywh;R=Number(Y.substring(R,Z));if(isNaN(R))return bD9;Z+=1;if(Z+R>Y.length)return ywh;Y=Y.slice(Z,Z+R);D.JSC$19536_xmlHttpChunkStart_=Z+R;return Y};
Yg.prototype.cancel=function(){this.JSC$19536_cancelled_=!0;RC(this)};
var kpk=function(D){D.JSC$19536_watchDogTimeoutTime_=Date.now()+D.timeout_;m0K(D,D.timeout_)},m0K=function(D,Y){if(D.JSC$19536_watchDogTimerId_!=null)throw Error("Ak");
D.JSC$19536_watchDogTimerId_=ps((0,_.nG)(D.JSC$19536_onWatchDogTimeout_,D),Y)},U0u=function(D){D.JSC$19536_watchDogTimerId_&&(_.ZU.clearTimeout(D.JSC$19536_watchDogTimerId_),D.JSC$19536_watchDogTimerId_=null)};
Yg.prototype.JSC$19536_onWatchDogTimeout_=function(){this.JSC$19536_watchDogTimerId_=null;var D=Date.now();D-this.JSC$19536_watchDogTimeoutTime_>=0?(this.JSC$19534_channelDebug_.info("TIMEOUT: "+this.JSC$19536_requestUri_),this.JSC$19536_type_!=2&&this.JSC$19534_channel_.notifyServerReachabilityEvent(3),RC(this),this.JSC$19536_lastError_=2,D9(18),Lwu(this)):(this.JSC$19534_channelDebug_.warning("WatchDog timer called too early"),m0K(this,this.JSC$19536_watchDogTimeoutTime_-D))};
var Lwu=function(D){D.JSC$19534_channel_.JSC$19543_isClosed()||D.JSC$19536_cancelled_||D.JSC$19534_channel_.JSC$19543_onRequestComplete(D)},RC=function(D){U0u(D);
_.OG(D.JSC$19536_readyStateChangeThrottle_);D.JSC$19536_readyStateChangeThrottle_=null;D.pollingTimer_.stop();D.JSC$19534_eventHandler_.removeAll();if(D.JSC$19536_xmlHttp_){var Y=D.JSC$19536_xmlHttp_;D.JSC$19536_xmlHttp_=null;Y.abort();Y.dispose()}D.trident_&&(D.trident_=null)};
Yg.prototype.getLastError=function(){return this.JSC$19536_lastError_};
var hRI=function(D,Y){try{D.JSC$19534_channel_.JSC$19543_onRequestData(D,Y),D.JSC$19534_channel_.notifyServerReachabilityEvent(4)}catch(R){}};var Z9=function(D,Y,R,Z){var t=D.info;a:if(R&&R!="y2f%"){try{var X=JSON.parse(R);if(X)for(var M=0;M<X.length;M++)if(Array.isArray(X[M])){var W=X[M];if(!(W.length<2)){var z=W[1];if(Array.isArray(z)&&!(z.length<1)){var I=z[0];if(I!="noop"&&I!="stop")for(var F=1;F<z.length;F++)z[F]=""}}}var G=(0,_.bQ)(X);break a}catch(V){D.debug("Exception parsing expected JS array - probably was not JS");G=R;break a}G=void 0}else G=R;t.call(D,"XMLHTTP TEXT ("+Y+"): "+G+(Z?" "+Z:""))};
Et.prototype.debug=function(D){this.info(D)};
Et.prototype.info=function(){};
Et.prototype.warning=function(){};var qoK=function(D,Y){this.JSC$19541_channel_=D;this.JSC$19541_channelDebug_=Y;this.JSC$19541_parser_=new hq};
_.u=qoK.prototype;_.u.JSC$19543_extraHeaders_=null;_.u.JSC$19543_request_=null;_.u.receivedIntermediateResult_=!1;_.u.JSC$19543_path_=null;_.u.state_=null;_.u.JSC$19543_lastStatusCode_=-1;_.u.JSC$19543_hostPrefix_=null;_.u.blockedPrefix_=null;
_.u.connect=function(D){this.JSC$19543_path_=D;D=HDE(this.JSC$19541_channel_,this.JSC$19543_path_);D9(3);Date.now();var Y=this.JSC$19541_channel_.firstTestResults_;Y!=null?(this.JSC$19543_hostPrefix_=Y[0],(this.blockedPrefix_=Y[1])?(this.state_=1,x09(this)):(this.state_=2,Pj0(this))):(vw(D,"MODE","init"),this.JSC$19543_request_=new Yg(this,this.JSC$19541_channelDebug_),this.JSC$19543_request_.JSC$19536_extraHeaders_=this.JSC$19543_extraHeaders_,Jwk(this.JSC$19543_request_,D,!1,null,!0),this.state_=
0)};
var x09=function(D){var Y=Qhz(D.JSC$19541_channel_,D.blockedPrefix_,"/mail/images/cleardot.gif");_.as(Y);Y$9(Y.toString(),5E3,(0,_.nG)(D.checkBlockedCallback_,D),3,2E3);D.notifyServerReachabilityEvent(1)};
qoK.prototype.checkBlockedCallback_=function(D){if(D)this.state_=2,Pj0(this);else{D9(4);var Y=this.JSC$19541_channel_;Y.JSC$19544_channelDebug_.debug("Test Connection Blocked");Y.JSC$19548_lastStatusCode_=Y.connectionTest_.JSC$19543_lastStatusCode_;tC(Y,9)}D&&this.notifyServerReachabilityEvent(2)};
var Pj0=function(D){D.JSC$19541_channelDebug_.debug("TestConnection: starting stage 2");var Y=D.JSC$19541_channel_.secondTestResults_;Y!=null?(D.JSC$19541_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+Y?"Buffered":"Unbuffered"),D9(5),Y?(D9(11),sa(D.JSC$19541_channel_,D,!1)):(D9(12),sa(D.JSC$19541_channel_,D,!0))):(D.JSC$19543_request_=new Yg(D,D.JSC$19541_channelDebug_),D.JSC$19543_request_.JSC$19536_extraHeaders_=D.JSC$19543_extraHeaders_,Y=B7T(D.JSC$19541_channel_,
D.JSC$19543_hostPrefix_,D.JSC$19543_path_),D9(5),vw(Y,"TYPE","xmlhttp"),Jwk(D.JSC$19543_request_,Y,!1,D.JSC$19543_hostPrefix_,!1))};
_.u=qoK.prototype;_.u.JSC$19543_createXhrIo=function(D){return this.JSC$19541_channel_.JSC$19543_createXhrIo(D)};
_.u.abort=function(){this.JSC$19543_request_&&(this.JSC$19543_request_.cancel(),this.JSC$19543_request_=null);this.JSC$19543_lastStatusCode_=-1};
_.u.JSC$19543_isClosed=function(){return!1};
_.u.JSC$19543_onRequestData=function(D,Y){this.JSC$19543_lastStatusCode_=D.JSC$19536_lastStatusCode_;if(this.state_==0)if(this.JSC$19541_channelDebug_.debug("TestConnection: Got data for stage 1"),Y){try{var R=this.JSC$19541_parser_.parse(Y)}catch(Z){pXb(this.JSC$19541_channel_,this);return}this.JSC$19543_hostPrefix_=R[0];this.blockedPrefix_=R[1]}else this.JSC$19541_channelDebug_.debug("TestConnection: Null responseText"),pXb(this.JSC$19541_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(D9(7),Date.now()):Y=="11111"?(D9(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19543_lastStatusCode_=200,this.JSC$19543_request_.cancel(),this.JSC$19541_channelDebug_.debug("Test connection succeeded; using streaming connection"),D9(12),sa(this.JSC$19541_channel_,this,!0)):(D9(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.u.JSC$19543_onRequestComplete=function(){this.JSC$19543_lastStatusCode_=this.JSC$19543_request_.JSC$19536_lastStatusCode_;this.JSC$19543_request_.JSC$19536_successful_?this.state_==0?(this.JSC$19541_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,x09(this)):(this.state_=2,Pj0(this))):this.state_==2&&(this.JSC$19541_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19541_channelDebug_.debug("Test connection succeeded; using streaming connection"),
D9(12),sa(this.JSC$19541_channel_,this,!0)):(this.JSC$19541_channelDebug_.debug("Test connection failed; not using streaming"),D9(11),sa(this.JSC$19541_channel_,this,!1))):(this.JSC$19541_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?D9(9):this.state_==2&&D9(10),pXb(this.JSC$19541_channel_,this,this.JSC$19543_request_.getLastError()))};
_.u.JSC$19543_shouldUseSecondaryDomains=function(){return this.JSC$19541_channel_.JSC$19543_shouldUseSecondaryDomains()};
_.u.isActive=function(){return this.JSC$19541_channel_.isActive()};
_.u.notifyServerReachabilityEvent=function(D){this.JSC$19541_channel_.notifyServerReachabilityEvent(D)};var Xw=function(D,Y,R){this.state_=1;this.JSC$19544_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19544_channelDebug_=new Et;this.JSC$19544_parser_=new hq;this.firstTestResults_=D||null;this.secondTestResults_=Y!=null?Y:null;this.asyncTest_=R||!1},ELE=function(D,Y){this.JSC$19546_mapId=D;
this.map=Y;this.context=null};
_.u=Xw.prototype;_.u.JSC$19548_extraHeaders_=null;_.u.JSC$19548_extraParams_=null;_.u.forwardChannelRequest_=null;_.u.JSC$19548_backChannelRequest_=null;_.u.JSC$19548_path_=null;_.u.JSC$19548_forwardChannelUri_=null;_.u.JSC$19548_backChannelUri_=null;_.u.JSC$19548_hostPrefix_=null;_.u.JSC$19548_nextRid_=0;_.u.JSC$19548_nextMapId_=0;_.u.handler_=null;_.u.JSC$19548_forwardChannelTimerId_=null;_.u.JSC$19548_backChannelTimerId_=null;_.u.JSC$19548_deadBackChannelTimerId_=null;_.u.connectionTest_=null;
_.u.useChunked_=null;_.u.JSC$19548_lastArrayId_=-1;_.u.JSC$19548_lastPostResponseArrayId_=-1;_.u.JSC$19548_lastStatusCode_=-1;_.u.JSC$19548_forwardChannelRetryCount_=0;_.u.JSC$19548_backChannelRetryCount_=0;_.u.JSC$19548_channelVersion_=8;var gLu={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},d0T=function(D,Y,R,Z){_.IF.call(this,"timingevent",D);this.size=Y;this.rtt=R;this.retries=Z};
_.XN(d0T,_.IF);var iDh=function(D){_.IF.call(this,"serverreachability",D)};
_.XN(iDh,_.IF);Xw.prototype.connect=function(D,Y,R,Z,t){this.JSC$19544_channelDebug_.debug("connect()");D9(0);this.JSC$19548_path_=Y;this.JSC$19548_extraParams_=R||{};Z&&t!==void 0&&(this.JSC$19548_extraParams_.OSID=Z,this.JSC$19548_extraParams_.OAID=t);this.asyncTest_?(ps((0,_.nG)(this.connectTest_,this,D),100),ODk(this)):this.connectTest_(D)};
Xw.prototype.disconnect=function(){this.JSC$19544_channelDebug_.debug("disconnect()");cwu(this);if(this.state_==3){var D=this.JSC$19548_nextRid_++,Y=this.JSC$19548_forwardChannelUri_.clone();_.xh(Y,"SID",this.sid_);_.xh(Y,"RID",D);_.xh(Y,"TYPE","terminate");uG(this,Y);D=new Yg(this,this.JSC$19544_channelDebug_,this.sid_,D);D.JSC$19536_type_=2;D.JSC$19536_baseUri_=_.as(Y.clone());(new Image).src=D.JSC$19536_baseUri_.toString();D.JSC$19536_requestStartTime_=Date.now();kpk(D)}DKI(this)};
Xw.prototype.connectTest_=function(D){this.JSC$19544_channelDebug_.debug("connectTest_()");this.connectionTest_=new qoK(this,this.JSC$19544_channelDebug_);this.connectionTest_.JSC$19543_extraHeaders_=this.JSC$19548_extraHeaders_;this.connectionTest_.JSC$19541_parser_=this.JSC$19544_parser_;this.connectionTest_.connect(D)};
var ODk=function(D){D.JSC$19544_channelDebug_.debug("connectChannel_()");D.JSC$19548_ensureInState_(1,0);D.JSC$19548_forwardChannelUri_=HDE(D,D.JSC$19548_path_);QiK(D)},cwu=function(D){D.connectionTest_&&(D.connectionTest_.abort(),D.connectionTest_=null);
D.JSC$19548_backChannelRequest_&&(D.JSC$19548_backChannelRequest_.cancel(),D.JSC$19548_backChannelRequest_=null);D.JSC$19548_backChannelTimerId_&&(_.ZU.clearTimeout(D.JSC$19548_backChannelTimerId_),D.JSC$19548_backChannelTimerId_=null);BmI(D);D.forwardChannelRequest_&&(D.forwardChannelRequest_.cancel(),D.forwardChannelRequest_=null);D.JSC$19548_forwardChannelTimerId_&&(_.ZU.clearTimeout(D.JSC$19548_forwardChannelTimerId_),D.JSC$19548_forwardChannelTimerId_=null)},pkE=function(D,Y){if(D.state_==0)throw Error("Dk");
D.JSC$19544_outgoingMaps_.length==1E3&&D.JSC$19544_parser_.stringify(Y);D.JSC$19544_outgoingMaps_.push(new ELE(D.JSC$19548_nextMapId_++,Y));D.state_!=2&&D.state_!=3||QiK(D)};
Xw.prototype.JSC$19543_isClosed=function(){return this.state_==0};
Xw.prototype.getState=function(){return this.state_};
var QiK=function(D){D.forwardChannelRequest_||D.JSC$19548_forwardChannelTimerId_||(D.JSC$19548_forwardChannelTimerId_=ps((0,_.nG)(D.JSC$19548_onStartForwardChannelTimer_,D),0),D.JSC$19548_forwardChannelRetryCount_=0)};
Xw.prototype.JSC$19548_onStartForwardChannelTimer_=function(D){this.JSC$19548_forwardChannelTimerId_=null;EWu(this,D)};
var EWu=function(D,Y){D.JSC$19544_channelDebug_.debug("startForwardChannel_");if(D.state_==1){if(!Y){D.JSC$19544_channelDebug_.debug("open_()");D.JSC$19548_nextRid_=Math.floor(Math.random()*1E5);Y=D.JSC$19548_nextRid_++;var R=new Yg(D,D.JSC$19544_channelDebug_,"",Y);R.JSC$19536_extraHeaders_=D.JSC$19548_extraHeaders_;var Z=gWt(D),t=D.JSC$19548_forwardChannelUri_.clone();_.xh(t,"RID",Y);_.xh(t,"CVER","1");uG(D,t);lBb(R,t,Z);D.forwardChannelRequest_=R;D.state_=2}}else D.state_==3&&(Y?d89(D,Y):D.JSC$19544_outgoingMaps_.length==
0?D.JSC$19544_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):D.forwardChannelRequest_||(d89(D),D.JSC$19544_channelDebug_.debug("startForwardChannel_ finished, sent request")))},d89=function(D,Y){if(Y)if(D.JSC$19548_channelVersion_>6){D.JSC$19544_outgoingMaps_=D.pendingMaps_.concat(D.JSC$19544_outgoingMaps_);
D.pendingMaps_.length=0;var R=D.JSC$19548_nextRid_-1;Y=gWt(D)}else R=Y.JSC$19534_rid_,Y=Y.JSC$19536_postData_;else R=D.JSC$19548_nextRid_++,Y=gWt(D);var Z=D.JSC$19548_forwardChannelUri_.clone();_.xh(Z,"SID",D.sid_);_.xh(Z,"RID",R);_.xh(Z,"AID",D.JSC$19548_lastArrayId_);uG(D,Z);R=new Yg(D,D.JSC$19544_channelDebug_,D.sid_,R,D.JSC$19548_forwardChannelRetryCount_+1);R.JSC$19536_extraHeaders_=D.JSC$19548_extraHeaders_;R.setTimeout(1E4+Math.round(1E4*Math.random()));D.forwardChannelRequest_=R;lBb(R,Z,Y)},
uG=function(D,Y){D.handler_&&(D=D.handler_.JSC$19555_getAdditionalParams())&&_.y7.forEach(D,function(R,Z){_.xh(Y,Z,R)})},gWt=function(D){var Y=Math.min(D.JSC$19544_outgoingMaps_.length,1E3),R=["count="+Y];
if(D.JSC$19548_channelVersion_>6&&Y>0){var Z=D.JSC$19544_outgoingMaps_[0].JSC$19546_mapId;R.push("ofs="+Z)}else Z=0;for(var t={},X=0;X<Y;t={mapId$jscomp$3:void 0},X++){t.mapId$jscomp$3=D.JSC$19544_outgoingMaps_[X].JSC$19546_mapId;var M=D.JSC$19544_outgoingMaps_[X].map;t.mapId$jscomp$3=D.JSC$19548_channelVersion_<=6?X:t.mapId$jscomp$3-Z;try{_.y7.forEach(M,function(W){return function(z,I){R.push("req"+W.mapId$jscomp$3+"_"+I+"="+encodeURIComponent(z))}}(t))}catch(W){R.push("req"+t.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}D.pendingMaps_=D.pendingMaps_.concat(D.JSC$19544_outgoingMaps_.splice(0,Y));
return R.join("&")},iNk=function(D){D.JSC$19548_backChannelRequest_||D.JSC$19548_backChannelTimerId_||(D.JSC$19548_backChannelAttemptId_=1,D.JSC$19548_backChannelTimerId_=ps((0,_.nG)(D.JSC$19548_onStartBackChannelTimer_,D),0),D.JSC$19548_backChannelRetryCount_=0)},cGK=function(D){if(D.JSC$19548_backChannelRequest_||D.JSC$19548_backChannelTimerId_||D.JSC$19548_backChannelRetryCount_>=3)return!1;
D.JSC$19544_channelDebug_.debug("Going to retry GET");D.JSC$19548_backChannelAttemptId_++;D.JSC$19548_backChannelTimerId_=ps((0,_.nG)(D.JSC$19548_onStartBackChannelTimer_,D),ON0(D,D.JSC$19548_backChannelRetryCount_));D.JSC$19548_backChannelRetryCount_++;return!0};
Xw.prototype.JSC$19548_onStartBackChannelTimer_=function(){this.JSC$19548_backChannelTimerId_=null;this.JSC$19544_channelDebug_.debug("Creating new HttpRequest");this.JSC$19548_backChannelRequest_=new Yg(this,this.JSC$19544_channelDebug_,this.sid_,"rpc",this.JSC$19548_backChannelAttemptId_);this.JSC$19548_backChannelRequest_.JSC$19536_extraHeaders_=this.JSC$19548_extraHeaders_;this.JSC$19548_backChannelRequest_.JSC$19536_readyStateChangeThrottleMs_=0;var D=this.JSC$19548_backChannelUri_.clone();_.xh(D,
"RID","rpc");_.xh(D,"SID",this.sid_);_.xh(D,"CI",this.useChunked_?"0":"1");_.xh(D,"AID",this.JSC$19548_lastArrayId_);uG(this,D);_.xh(D,"TYPE","xmlhttp");Jwk(this.JSC$19548_backChannelRequest_,D,!0,this.JSC$19548_hostPrefix_,!1);this.JSC$19544_channelDebug_.debug("New Request created")};
var sa=function(D,Y,R){D.JSC$19544_channelDebug_.debug("Test Connection Finished");D.useChunked_=D.secondTestResults_==null?R:!D.secondTestResults_;D.JSC$19548_lastStatusCode_=Y.JSC$19543_lastStatusCode_;D.asyncTest_||ODk(D)},pXb=function(D,Y){D.JSC$19544_channelDebug_.debug("Test Connection Failed");
D.JSC$19548_lastStatusCode_=Y.JSC$19543_lastStatusCode_;tC(D,2)};
Xw.prototype.JSC$19543_onRequestData=function(D,Y){if(this.state_!=0&&(this.JSC$19548_backChannelRequest_==D||this.forwardChannelRequest_==D))if(this.JSC$19548_lastStatusCode_=D.JSC$19536_lastStatusCode_,this.forwardChannelRequest_==D&&this.state_==3)if(this.JSC$19548_channelVersion_>7){try{var R=this.JSC$19544_parser_.parse(Y)}catch(Z){R=null}if(Array.isArray(R)&&R.length==3)if(Y=R,Y[0]==0)a:if(this.JSC$19544_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19548_backChannelTimerId_)this.JSC$19544_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19548_backChannelRequest_)if(this.JSC$19548_backChannelRequest_.JSC$19536_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19536_requestStartTime_)BmI(this),this.JSC$19548_backChannelRequest_.cancel(),this.JSC$19548_backChannelRequest_=null;else break a;else this.JSC$19544_channelDebug_.warning("We do not have a BackChannel established");cGK(this);D9(19)}else this.JSC$19548_lastPostResponseArrayId_=Y[1],D=this.JSC$19548_lastPostResponseArrayId_-this.JSC$19548_lastArrayId_,0<
D&&(Y=Y[2],this.JSC$19544_channelDebug_.debug(Y+" bytes (in "+D+" arrays) are outstanding on the BackChannel"),Y<37500&&this.useChunked_&&this.JSC$19548_backChannelRetryCount_==0&&!this.JSC$19548_deadBackChannelTimerId_&&(this.JSC$19548_deadBackChannelTimerId_=ps((0,_.nG)(this.JSC$19548_onBackChannelDead_,this),6E3)));else this.JSC$19544_channelDebug_.debug("Bad POST response data returned"),tC(this,11)}else Y!="y2f%"&&(this.JSC$19544_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
tC(this,11));else this.JSC$19548_backChannelRequest_==D&&BmI(this),_.M$(Y)||(D=this.JSC$19544_parser_.parse(Y),this.onInput_(D))};
Xw.prototype.JSC$19548_onBackChannelDead_=function(){this.JSC$19548_deadBackChannelTimerId_!=null&&(this.JSC$19548_deadBackChannelTimerId_=null,this.JSC$19548_backChannelRequest_.cancel(),this.JSC$19548_backChannelRequest_=null,cGK(this),D9(20))};
var BmI=function(D){D.JSC$19548_deadBackChannelTimerId_!=null&&(_.ZU.clearTimeout(D.JSC$19548_deadBackChannelTimerId_),D.JSC$19548_deadBackChannelTimerId_=null)};
Xw.prototype.JSC$19543_onRequestComplete=function(D){this.JSC$19544_channelDebug_.debug("Request complete");if(this.JSC$19548_backChannelRequest_==D){BmI(this);this.JSC$19548_backChannelRequest_=null;var Y=2}else if(this.forwardChannelRequest_==D)this.forwardChannelRequest_=null,Y=1;else return;this.JSC$19548_lastStatusCode_=D.JSC$19536_lastStatusCode_;if(this.state_!=0)if(D.JSC$19536_successful_)if(Y==1){Y=D.JSC$19536_postData_?D.JSC$19536_postData_.length:0;D=Date.now()-D.JSC$19536_requestStartTime_;
var R=$0T;R.dispatchEvent(new d0T(R,Y,D,this.JSC$19548_forwardChannelRetryCount_));QiK(this);this.handler_&&this.handler_.JSC$19555_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else iNk(this);else{R=D.getLastError();if(R==3||R==7||R==0&&this.JSC$19548_lastStatusCode_>0)this.JSC$19544_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19544_channelDebug_.debug("Maybe retrying, last error: "+oL9(R,this.JSC$19548_lastStatusCode_));var Z;if(Z=Y==1)this.forwardChannelRequest_||
this.JSC$19548_forwardChannelTimerId_||this.state_==1||this.JSC$19548_forwardChannelRetryCount_>=2?Z=!1:(this.JSC$19544_channelDebug_.debug("Going to retry POST"),this.JSC$19548_forwardChannelTimerId_=ps((0,_.nG)(this.JSC$19548_onStartForwardChannelTimer_,this,D),ON0(this,this.JSC$19548_forwardChannelRetryCount_)),this.JSC$19548_forwardChannelRetryCount_++,Z=!0);if(Z||Y==2&&cGK(this))return;this.JSC$19544_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19544_channelDebug_.debug("Error: HTTP request failed");
switch(R){case 1:tC(this,5);break;case 4:tC(this,10);break;case 3:tC(this,6);break;case 7:tC(this,12);break;default:tC(this,2)}}};
var ON0=function(D,Y){var R=5E3+Math.floor(Math.random()*1E4);D.isActive()||(D.JSC$19544_channelDebug_.debug("Inactive channel"),R*=2);return R*Y};
Xw.prototype.onInput_=function(D){for(var Y=0;Y<D.length;Y++){var R=D[Y];this.JSC$19548_lastArrayId_=R[0];R=R[1];this.state_==2?R[0]=="c"?(this.sid_=R[1],this.JSC$19548_hostPrefix_=R[2],R=R[3],R!=null?this.JSC$19548_channelVersion_=R:this.JSC$19548_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19555_channelOpened(),this.JSC$19548_backChannelUri_=B7T(this,this.JSC$19548_hostPrefix_,this.JSC$19548_path_),iNk(this)):R[0]=="stop"&&tC(this,7):this.state_==3&&(R[0]=="stop"?tC(this,7):
R[0]!="noop"&&this.handler_&&this.handler_.JSC$19555_channelHandleArray(R),this.JSC$19548_backChannelRetryCount_=0)}};
Xw.prototype.JSC$19548_ensureInState_=function(D){if(!_.LM(arguments,this.state_))throw Error("Ek`"+this.state_);};
var tC=function(D,Y){D.JSC$19544_channelDebug_.info("Error code "+Y);if(Y==2||Y==9){var R=null;D.handler_&&(R=null);var Z=(0,_.nG)(D.testGoogleComCallback_,D);R||(R=new _.cO("//www.google.com/images/cleardot.gif"),_.as(R));D3p(R.toString(),1E4,Z)}else D9(2);D.onError_(Y)};
Xw.prototype.testGoogleComCallback_=function(D){D?(this.JSC$19544_channelDebug_.info("Successfully pinged google.com"),D9(2)):(this.JSC$19544_channelDebug_.info("Failed to ping google.com"),D9(1),this.onError_(8))};
Xw.prototype.onError_=function(D){this.JSC$19544_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$19555_channelError(D);DKI(this);cwu(this)};
var DKI=function(D){D.state_=0;D.JSC$19548_lastStatusCode_=-1;if(D.handler_)if(D.pendingMaps_.length==0&&D.JSC$19544_outgoingMaps_.length==0)D.handler_.JSC$19555_channelClosed();else{D.JSC$19544_channelDebug_.debug("Number of undelivered maps, pending: "+D.pendingMaps_.length+", outgoing: "+D.JSC$19544_outgoingMaps_.length);var Y=_.q$(D.pendingMaps_),R=_.q$(D.JSC$19544_outgoingMaps_);D.pendingMaps_.length=0;D.JSC$19544_outgoingMaps_.length=0;D.handler_.JSC$19555_channelClosed(Y,R)}},HDE=function(D,
Y){Y=Qhz(D,null,Y);
D.JSC$19544_channelDebug_.debug("GetForwardChannelUri: "+Y);return Y},B7T=function(D,Y,R){Y=Qhz(D,D.JSC$19543_shouldUseSecondaryDomains()?Y:null,R);
D.JSC$19544_channelDebug_.debug("GetBackChannelUri: "+Y);return Y},Qhz=function(D,Y,R){var Z=_.qC(R);
if(Z.JSC$10000_domain_!="")Y&&_.Ds(Z,Y+"."+Z.JSC$10000_domain_),_.YO(Z,Z.JSC$10000_port_);else{var t=window.location;Z=V3I(t.protocol,Y?Y+"."+t.hostname:t.hostname,+t.port,R)}D.JSC$19548_extraParams_&&_.y7.forEach(D.JSC$19548_extraParams_,function(X,M){_.xh(Z,M,X)});
_.xh(Z,"VER",D.JSC$19548_channelVersion_);uG(D,Z);return Z};
Xw.prototype.JSC$19543_createXhrIo=function(D){if(D)throw Error("Bk");D=new _.yF;D.JSC$9765_withCredentials_=!1;return D};
Xw.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Xw.prototype.notifyServerReachabilityEvent=function(D){var Y=$0T;Y.dispatchEvent(new iDh(Y,D))};
Xw.prototype.JSC$19543_shouldUseSecondaryDomains=function(){return!1};
new wfK;var Dxh=function(){};
_.u=Dxh.prototype;_.u.JSC$19555_channelOpened=function(){};
_.u.JSC$19555_channelHandleArray=function(){};
_.u.JSC$19555_channelSuccess=function(){};
_.u.JSC$19555_channelError=function(){};
_.u.JSC$19555_channelClosed=function(){};
_.u.JSC$19555_getAdditionalParams=function(){return{}};
_.u.isActive=function(){return!0};var YnK=function(D){D.front_.length===0&&(D.front_=D.back_,D.front_.reverse(),D.back_=[])};
_.u=Znk.prototype;_.u.enqueue=function(D){this.back_.push(D)};
_.u.peek=function(){YnK(this);return _.N$(this.front_)};
_.u.getCount=function(){return this.front_.length+this.back_.length};
_.u.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.u.clear=function(){this.front_=[];this.back_=[]};
_.u.contains=function(D){return _.LM(this.front_,D)||_.LM(this.back_,D)};
_.u.remove=function(D){var Y=this.front_;var R=Array.prototype.lastIndexOf.call(Y,D,Y.length-1);R>=0?(_.nnU(Y,R),Y=!0):Y=!1;return Y||_.m5(this.back_,D)};
_.u.getValues=function(){for(var D=[],Y=this.front_.length-1;Y>=0;--Y)D.push(this.front_[Y]);Y=this.back_.length;for(var R=0;R<Y;++R)D.push(this.back_[R]);return D};var aC=function(D){this.JSC$19559_map_=new _.W6;this.size=0;D&&this.addAll(D)},RxI=function(D){var Y=typeof D;
return Y=="object"&&D||Y=="function"?"o"+_.Ey(D):Y.charAt(0)+D};
_.u=aC.prototype;_.u.getCount=function(){return this.JSC$19559_map_.size};
_.u.add=function(D){this.JSC$19559_map_.set(RxI(D),D);this.size=this.JSC$19559_map_.size};
_.u.addAll=function(D){D=_.Ok(D);for(var Y=D.length,R=0;R<Y;R++)this.add(D[R]);this.size=this.JSC$19559_map_.size};
_.u.removeAll=function(D){D=_.Ok(D);for(var Y=D.length,R=0;R<Y;R++)this.remove(D[R]);this.size=this.JSC$19559_map_.size};
_.u.delete=function(D){D=this.JSC$19559_map_.remove(RxI(D));this.size=this.JSC$19559_map_.size;return D};
_.u.remove=function(D){return this.delete(D)};
_.u.clear=function(){this.JSC$19559_map_.clear();this.size=0};
_.u.isEmpty=function(){return this.JSC$19559_map_.size===0};
_.u.has=function(D){return this.JSC$19559_map_.containsKey(RxI(D))};
_.u.contains=function(D){return this.JSC$19559_map_.containsKey(RxI(D))};
_.u.getValues=function(){return this.JSC$19559_map_.getValues()};
_.u.values=function(){return this.JSC$19559_map_.values()};
_.u.clone=function(){return new aC(this)};
_.u.equals=function(D){return this.getCount()==FL0(D)&&Zcb(this,D)};
var Zcb=function(D,Y){var R=FL0(Y);if(D.getCount()>R)return!1;!(Y instanceof aC)&&R>5&&(Y=new aC(Y));return G39(D,function(Z){var t=Y;return t.contains&&typeof t.contains=="function"?t.contains(Z):t.containsValue&&typeof t.containsValue=="function"?t.containsValue(Z):_.xn(t)||typeof t==="string"?_.LM(t,Z):_.y7.containsValue(t,Z)})};
aC.prototype.__iterator__=function(){return this.JSC$19559_map_.__iterator__(!1)};
aC.prototype[Symbol.iterator]=function(){return this.values()};var t8E={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(D){return(this._clampValue(D)-this.min)/(this.max-this.min)},
_clampValue:function(D){return Math.min(this.max,Math.max(this.min,this._calcStep(D)))},
_calcStep:function(D){D=parseFloat(D);if(!this.step)return D;D=Math.round((D-this.min)/this.step);return this.step<1?D/(1/this.step)+this.min:D*this.step+this.min},
_validateValue:function(){var D=this._clampValue(this.value);this.value=this.oldValue=isNaN(D)?this.oldValue:D;return this.value!==D},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var s8b;var Xsk;_.Jj({_template:function(){if(Xsk!==void 0)return Xsk;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;s8b===void 0&&(s8b=document.createElement("template"));var Z=s8b;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return Xsk=D},
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(){_.cy(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(D){D.keyCode===27&&(D.preventDefault(),this.close())},
_track:function(D){if(!this.persistent&&!this.disableSwipe)switch(D.preventDefault(),D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackMove(D);break;case "end":this._trackEnd(D)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var D=this.$.contentContainer.getBoundingClientRect();this._savedWidth=D.width;this._translateOffset=this.position==="left"?D.left:D.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(D){this._trackDetails&&(this._translateDrawer(D.detail.dx+this._translateOffset),this._trackDetails.push({dx:D.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(D){if(this._trackDetails){var Y=D.detail.dx+this._translateOffset,R=this.getWidth();Y=this.position==="left"?Y>=0||Y<=-R:Y<=0||Y>=R;if(!Y){var Z=this._trackDetails;this._trackDetails=null;this._flingDrawer(D,Z);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}R/=2;D.detail.dx<-R?this.opened=this.position==="right":D.detail.dx>R&&(this.opened=this.position==="left");Y?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(D,Y){for(var R=Date.now(),Z=R-100,t,X=0,M=Y.length-1;X<=M;){var W=X+M>>1,z=Y[W];z.timeStamp>=Z?(t=z,M=W-1):X=W+1}return t?(D.detail.dx-t.dx)/(R-t.timeStamp||1):0},
_flingDrawer:function(D,Y){Y=this._calculateVelocity(D,Y);if(!(Math.abs(Y)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;D=D.detail.dx+this._translateOffset;var R=this.getWidth(),Z=this.position==="left",t=Y>0;t?(Y=Math.max(Y,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(Y=Math.min(Y,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");Y=this._FLING_INITIAL_SLOPE*(!t&&Z?-(D+R):t&&!Z?R-D:-D)/Y;this._styleTransitionDuration(Y);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,Y)}},
_styleTransitionDuration:function(D){this.style.transitionDuration=D+"ms";this.$.contentContainer.style.transitionDuration=D+"ms";this.$.scrim.style.transitionDuration=D+"ms"},
_styleTransitionTimingFunction:function(D){this.$.contentContainer.style.transitionTimingFunction=D;this.$.scrim.style.transitionTimingFunction=D},
_translateDrawer:function(D){var Y=this.getWidth();this.position==="left"?(D=Math.max(-Y,Math.min(D,0)),this.$.scrim.style.opacity=1+D/Y):(D=Math.max(0,Math.min(D,Y)),this.$.scrim.style.opacity=1-D/Y);this.translate3d(D+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var D=this._drawerState;D===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;D!==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=""),D!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var D=_.oR(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"])');D.length>0?(this._firstTabStop=D[0],this._lastTabStop=D[D.length-1]):
this._lastTabStop=this._firstTabStop=null;(D=this.getAttribute("tabindex"))&&parseInt(D,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(D){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||D.keyCode!==9||(D.shiftKey?this._firstTabStop&&_.oR(D).localTarget===this._firstTabStop&&(D.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.oR(D).localTarget===this._lastTabStop&&(D.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(D,Y){this.toggleClass("visible",D&&!Y,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 uJb;var akb;_.Jj({_template:function(){if(akb!==void 0)return akb;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;uJb===void 0&&(uJb=document.createElement("template"));var Z=uJb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return akb=D},
is:"tp-yt-paper-progress",behaviors:[t8E],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(D){this.toggleClass("indeterminate",D,this.$.primaryProgress)},
_transformProgress:function(D,Y){D.style.transform=D.style.webkitTransform="scaleX("+Y/100+")"},
_mainRatioChanged:function(D){this._transformProgress(this.$.primaryProgress,D)},
_progressChanged:function(D,Y,R,Z,t){D=this._clampValue(D);Y=this._clampValue(Y);var X=this._calcRatio(D)*100,M=this._calcRatio(Y)*100;this._setSecondaryRatio(X);this._transformProgress(this.$.secondaryProgress,X);this._transformProgress(this.$.primaryProgress,M);this.secondaryProgress=D;t?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",Y);this.setAttribute("aria-valuemin",R);this.setAttribute("aria-valuemax",Z)},
_disabledChanged:function(D){this.setAttribute("aria-disabled",D?"true":"false")},
_hideSecondaryProgress:function(D){return D===0}});var M8z;var CBh;var W0p=function(){};
_.u=W0p.prototype;_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._buttonStateChanged=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._noinkChanged=function(){};
_.u._calcRatio=function(){};
_.u._clampValue=function(){};
_.u._calcStep=function(){};
_.u._validateValue=function(){};
_.u._update=function(){};
_.u._setImmediateValue=function(){};
_.u._setExpand=function(){};
_.u._setDragging=function(){};
_.u._setTransiting=function(){};
_.u._setMarkers=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
_.u._setRatio=function(){};
W0p=_.Jj({_template:function(){if(CBh!==void 0)return CBh;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;M8z===void 0&&(M8z=document.createElement("template"));var Z=M8z;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return CBh=D},
is:"tp-yt-paper-slider",behaviors:[_.nJ,_.v6,_.g6D,t8E],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&&_.hN(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(D,Y,R){this.setAttribute("aria-valuemin",Y);this.setAttribute("aria-valuemax",R);this.setAttribute("aria-valuenow",D);this._positionKnob(this._calcRatio(D)*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(D){this._setImmediateValue(this._calcStep(this._calcKnobPosition(D)));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(D){return(this.max-this.min)*D/100+this.min},
_onTrack:function(D){D.stopPropagation();switch(D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackX(D);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(D){this.dragging||this._trackStart(D);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,D.detail.dx*(this._isRTL?-1:1)));D=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(D);D=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(D+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var D=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;D.transform=D.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(D){this._expandKnob();D.preventDefault();this.focus()},
_bartrack:function(D){this._allowBarEvent(D)&&this._onTrack(D)},
_barclick:function(D){this._w=this.$.sliderBar.offsetWidth;var Y=this.$.sliderBar.getBoundingClientRect();Y=(D.detail.x-Y.left)/this._w*100;this._isRTL&&(Y=100-Y);var R=this.ratio;this._setTransiting(!0);this._positionKnob(Y);R===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
D.preventDefault();this.focus()},
_bardown:function(D){this._allowBarEvent(D)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(D))},
_knobTransitionEnd:function(D){D.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(D,Y,R,Z){Z||this._setMarkers([]);Y=Math.round((R-Y)/this.step);Y>D&&(Y=D);if(Y<0||!isFinite(Y))Y=0;this._setMarkers(Array(Y))},
_mergeClasses:function(D){return Object.keys(D).filter(function(Y){return D[Y]}).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(D){return!this.ignoreBarTouch||D.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(D){this._isRTL?this._incrementKey(D):this._decrementKey(D)},
_rightKey:function(D){this._isRTL?this._decrementKey(D):this._incrementKey(D)},
_incrementKey:function(D){this.disabled||(D.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),D.preventDefault())},
_decrementKey:function(D){this.disabled||(D.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),D.preventDefault())},
_changeValue:function(D){this.value=D.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(D){D.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.E61._createRipple.call(this)},
_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=D?"":"none",this._ripple.holdDown=D)}});var zxh;var SnI;var M_=null,Tt9=function(){};
_.u=Tt9.prototype;_.u.fit=function(){};
_.u._discoverInfo=function(){};
_.u.resetFit=function(){};
_.u.refit=function(){};
_.u.position=function(){};
_.u.constrain=function(){};
_.u._sizeDimension=function(){};
_.u.__sizeDimension=function(){};
_.u.center=function(){};
_.u.__getNormalizedRect=function(){};
_.u.__getOffscreenArea=function(){};
_.u.__getPosition=function(){};
_.u.notifyResize=function(){};
_.u.assignParentResizable=function(){};
_.u.stopResizeNotificationsFor=function(){};
_.u._subscribeIronResize=function(){};
_.u._unsubscribeIronResize=function(){};
_.u.resizerShouldNotify=function(){};
_.u._onDescendantIronResize=function(){};
_.u._fireResize=function(){};
_.u._onIronRequestResizeNotifications=function(){};
_.u._parentResizableChanged=function(){};
_.u._notifyDescendant=function(){};
_.u._requestResizeNotifications=function(){};
_.u._findParent=function(){};
_.u.toggle=function(){};
_.u.open=function(){};
_.u.close=function(){};
_.u.cancel=function(){};
_.u.invalidateTabbables=function(){};
_.u._ensureSetup=function(){};
_.u._canceledChanged=function(){};
_.u._withBackdropChanged=function(){};
_.u._prepareRenderOpened=function(){};
_.u._finishRenderOpened=function(){};
_.u._finishRenderClosed=function(){};
_.u._preparePositioning=function(){};
_.u._finishPositioning=function(){};
_.u._applyFocus=function(){};
_.u._onCaptureClick=function(){};
_.u._onCaptureFocus=function(){};
_.u._onCaptureEsc=function(){};
_.u._onCaptureTab=function(){};
_.u._onIronResize=function(){};
_.u._onNodesChange=function(){};
_.u.__ensureFirstLastFocusables=function(){};
_.u.__openedChanged=function(){};
_.u.__deraf=function(){};
_.u.__updateScrollObservers=function(){};
_.u.__addScrollListeners=function(){};
_.u.__removeScrollListeners=function(){};
_.u.__isValidScrollAction=function(){};
_.u.__onCaptureScroll=function(){};
_.u.__saveScrollPosition=function(){};
_.u.__restoreScrollPosition=function(){};
_.u._setCanceled=function(){};
Tt9=_.Jj({_template:function(){if(SnI!==void 0)return SnI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;zxh===void 0&&(zxh=document.createElement("template"));var Z=zxh;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);return SnI=D},
is:"tp-yt-paper-toast",behaviors:[_.pJ],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(){_.w7._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.H6.requestAvailability()},
show:function(D){typeof D=="string"&&(D={text:D});for(var Y in D)Y.indexOf("_")===0?_.w7._warn('The property "'+Y+'" is private and was not set.'):Y in this?this[Y]=D[Y]:_.w7._warn('The property "'+Y+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(D){D&&D.target===this&&D.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(M_&&M_!==this&&M_.close(),M_=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):M_===this&&(M_=null);_.B6._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(D){this.positionTarget=D},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var j8K=new _.Dv("disablePersonalizationAction");var B1K=new _.Dv("showDmaConsentFlowCommand");var pNt=new _.Dv("showMmgNoticeCommand");var IkK=new _.Dv("saveConsentAction");var F0K=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Nk(D)};
_.n(F0K,_.Y7);var G5E=_.hE5(F0K);var V8h=new _.Dv("updateTopbarAvatarAction");var fkz=new _.Dv("channelHandleValidationResultRenderer");var exk=new _.Dv("generateHandleFromNameResultRenderer");var A$k=new _.Dv("channelHandleInputRenderer");var nZE=new _.Dv("copyLinkRenderer");var r$k=new _.Dv("timedCommand");var ws9=new _.Dv("clearCookieAction");var $xE=new _.Dv("getMultiPageMenuAction");var vZK=new _.Dv("addToGuideSectionAction"),oZE=new _.Dv("removeFromGuideSectionAction");var bch=new _.Dv("updateNotificationsUnseenCountAction");var y$I=new _.Dv("resetChannelUnreadCountCommand");var NtK=new _.Dv("resetSubscriptionsUnreadDotCommand");var lkK=new _.Dv("selectLanguageCommand");var u4T=new _.Dv("sendFeedbackAction");var J$0=new _.Dv("uploadImageToScottyCommand");var k5u=new _.Dv("registerPromoCommand");var UxI=new _.Dv("setPushNotificationsEnabledCommand");var K0b=new _.Dv("desktopTopbarRenderer");var hxz=new _.Dv("surveyFollowUpRenderer");var L09=new _.Dv("handlesClaimingRadioOptionRenderer");var mxI=new _.Dv("hotkeyDialogRenderer");var qn9=new _.Dv("modifyReportFormCommand");var Hct=new _.Dv("accountLinkCommand");var xxI=new _.Dv("accountUnlinkCommand");var PBh=new _.Dv("logAccountLinkingEventCommand");var Q8k=new _.Dv("guideCollapsibleEntryRenderer");var Btk=new _.Dv("guideDownloadsEntryRenderer");var CQ=new _.Dv("guideEntryRenderer");var psb=new _.Dv("getLocationCommand");var EZI=new _.Dv("locationCollectionCommand");var gZb=new _.Dv("storiesItemViewModel");var dxk=new _.Dv("addToRemoteQueueAction");var icb=new _.Dv("insertInRemoteQueueAction");var OcT=new _.Dv("removeFromRemoteQueueAction");var c$t=new _.Dv("notificationRenderer");var ypT=new _.Dv("localWatchHistoryCommand");var DQK=new _.Dv("pdgBuyFlowHeaderRenderer");var Ycp=new _.Dv("pdgColorSliderRenderer");var Rut=new _.Dv("pdgCommentOptionRenderer");var ZOp=new _.Dv("pdgCommentPreviewRenderer");var tnb=new _.Dv("superVodSelectableItemButtonRenderer");var s$K=new _.Dv("switchButtonRenderer");var XM9=new _.Dv("upsellDialogRenderer");var uhE=new _.Dv("feedbackQuestionRenderer"),abh=new _.Dv("feedbackOptionRenderer");var MnE=new _.Dv("sponsorshipsTierRenderer"),Cuz=new _.Dv("sponsorshipsPromotionChannelRenderer");var W$I=new _.Dv("simpleSurveyMessageRenderer");var uUk=new _.Dv("invokeInstrumentManagerAction");var zuk=new _.Dv("logYpcFlowDismissCommand");var Sct=new _.Dv("logYpcFlowStartCommand");var THp=new _.Dv("unlimitedCreateFamilyEndpoint");var j$k=new _.Dv("iconBadgeRenderer");var NsT=new _.Dv("collaborativePlaylistVisibilityValidationRule");var Ibt=function(D){_.IF.call(this,"channelMessage");this.message=D};
_.n(Ibt,_.IF);var F$k=function(D){_.IF.call(this,"channelError");this.error=D};
_.n(F$k,_.IF);var GVk={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",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},Vnk={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},fbz={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},euK={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},AVT={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var WJ=function(D){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 _.W6;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;D&&(this.id=D.id||D.name,this.name=D.name,this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=D.app,this.type=D.type||"REMOTE_CONTROL",this.username=D.user||"",this.avatar=D.userAvatarUri||"",this.obfuscatedGaiaId=D.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=D.ownerObfuscatedGaiaId||"",this.castUserId=D.castUserId||"",this.theme=D.theme||"u",ntK(this,D.capabilities||""),rVz(this,
D.compatibleSenderThemes||""),wMh(this,D.experiments||""),this.remoteControllerUrl=D.remoteControllerUrl||"",this.localChannelEncryptionKey=D.localChannelEncryptionKey||"",this.deviceContext=D.deviceContext,this.brand=D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=D.pairingType||"unknown",D=D.deviceInfo)&&(D=JSON.parse(D),this.brand=
D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
WJ.prototype.copy=function(){var D={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&&(D.brand=this.brand);
this.model&&(D.model=this.model);this.year&&(D.year=this.year);this.os&&(D.os=this.os);this.osVersion&&(D.osVersion=this.osVersion);this.chipset&&(D.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(D.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(D.mdxDialServerType=this.mdxDialServerType);D=new WJ(D);D.connected=this.connected;D.remoteControllerUrl=this.remoteControllerUrl;D.localChannelEncryptionKey=this.localChannelEncryptionKey;D.deviceContext=
this.deviceContext;D.castUserId=this.castUserId;return D};
WJ.prototype.equals=function(D){return D?this.id==D.id:!1};
var ntK=function(D,Y){D.capabilities.clear();_.ac(Y.split(","),_.A4(_.y7.contains,GVk)).forEach(function(R){D.capabilities.add(R)})},rVz=function(D,Y){D.compatibleSenderThemes.clear();
_.ac(Y.split(","),_.A4(_.y7.contains,Vnk)).forEach(function(R){D.compatibleSenderThemes.add(R)})},wMh=function(D,Y){D.experiments.clear();
Y.split(",").forEach(function(R){D.experiments.add(R)})};var $Qk=function(D,Y){this.action=D;this.params=Y||{}};_.XN(tIt,_.AE);_.u=tIt.prototype;_.u.JSC$19595_onTick_=function(){this.JSC$19593_interval_=Math.min(3E5,this.JSC$19593_interval_*2);this.JSC$19595_listener_();this.nextTickTime_&&this.start()};
_.u.start=function(){var D=this.JSC$19593_interval_+15E3*Math.random(),Y=this.delay_;Y.isActive()||Y.start(D);this.nextTickTime_=Date.now()+D};
_.u.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.u.isActive=function(){return this.delay_.isActive()};
_.u.reset=function(){this.delay_.stop();this.JSC$19593_interval_=5E3};_.XN(gN,Dxh);_.u=gN.prototype;_.u.subscribe=function(D,Y,R){return this.pubsub_.subscribe(D,Y,R)};
_.u.unsubscribe=function(D,Y,R){return this.pubsub_.unsubscribe(D,Y,R)};
_.u.unsubscribeByKey=function(D){return this.pubsub_.unsubscribeByKey(D)};
_.u.publish=function(D,Y){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.u.dispose=function(){this.JSC$19596_disposed_||(this.JSC$19596_disposed_=!0,_.OG(this.pubsub_),this.disconnect(),_.OG(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19596_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.TA({})})};
_.u.isDisposed=function(){return this.JSC$19596_disposed_};
_.u.connect=function(D,Y,R){var Z=this,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return _.IK(z,2),Z.useAsyncBrowserChannelHandler_?z.yield(Z.connectPromise_,2):z.jumpTo(2);_.jX(z);if(Z.JSC$19596_disposed_||Z.JSC$19596_channel_&&Z.JSC$19596_channel_.getState()==2)return z.return();Z.sCookie_="";Z.reconnectTimer_.stop();Z.connectionParams_=D||null;Z.connectUi_=Y||0;t=Z.JSC$19596_pathPrefix_+"/test";X=Z.JSC$19596_pathPrefix_+"/bind";M=new Xw(R?R.firstTestResults:null,R?R.secondTestResults:null,
Z.enableAsyncTest_);if(W=Z.JSC$19596_channel_)W.handler_=null;M.handler_=Z;Z.JSC$19596_channel_=M;if(Z.useAsyncBrowserChannelHandler_)return Z.connectPromise_=vt9(Z).then(function(){return ott(Z,t,X,W,R)}),z.return(Z.connectPromise_.then(function(){Z.connectPromise_=_.TA()}));
ott(Z,t,X,W,R);return _.Fx(z,0)})};
var ott=function(D,Y,R,Z,t){bO9(D);if(D.JSC$19596_channel_){var X=_.JQ("ID_TOKEN"),M=D.JSC$19596_channel_.JSC$19548_extraHeaders_||{};X?M["x-youtube-identity-token"]=X:delete M["x-youtube-identity-token"];D.JSC$19596_channel_.JSC$19548_extraHeaders_=M}yVt(D);Z?(Z.getState(),D.JSC$19596_channel_.connect(Y,R,D.defaultQueryParams_,Z.sid_,Z.JSC$19548_lastArrayId_)):t?D.JSC$19596_channel_.connect(Y,R,D.defaultQueryParams_,t.sessionId,t.arrayId):D.JSC$19596_channel_.connect(Y,R,D.defaultQueryParams_)};
gN.prototype.disconnect=function(D){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.TA())}finally{this.disconnectUi_=D||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),bO9(this),this.JSC$19596_channel_&&(this.JSC$19596_channel_.getState()==3&&EWu(this.JSC$19596_channel_),this.JSC$19596_channel_.disconnect()),this.disconnectUi_=0}};
gN.prototype.sendMessage=function(D,Y){var R=this,Z;return _.C(function(t){switch(t.nextAddress){case 1:_.IK(t,2);if(!R.useAsyncBrowserChannelHandler_){t.jumpTo(2);break}return t.yield(R.connectPromise_,2);case 2:_.jX(t);if(R.JSC$19596_disposed_)return t.return();Z={_sc:D};Y&&_.y7.extend(Z,Y);if(R.reconnectTimer_.isActive()||(R.JSC$19596_channel_?R.JSC$19596_channel_.getState():0)==2){R.JSC$19596_pendingMessages_.push(Z);t.jumpTo(6);break}if(!R.isChannelOpened()){t.jumpTo(6);break}_.IK(t,8);if(!R.useAsyncBrowserChannelHandler_||
NH9(R,D)){t.jumpTo(8);break}return t.yield(vt9(R),8);case 8:_.jX(t,0,0,1);R.isChannelOpened()&&(NH9(R,D)||yVt(R),bO9(R),pkE(R.JSC$19596_channel_,Z));_.Fx(t,6,1);break;case 6:_.Fx(t,0)}})};
var NH9=function(D,Y){return D.enableMdxAuthForConnectionOnly_?!0:D.disableMdxAuthForAdMessages_?Object.values(fbz).includes(Y):D.disableMdxAuthForNonPlaybackMessages_?!Object.values(euK).includes(Y):D.disableMdxAuthForShortsMessages_?Object.values(AVT).includes(Y):!1};
gN.prototype.JSC$19555_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19596_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)lbh(this);else{var D=this.JSC$19596_pendingMessages_;this.JSC$19596_pendingMessages_=[];var Y=D.length;yVt(this);JVz(this,D,Y);kVE(this)}else kVE(this)};
var lbh=function(D){var Y,R;_.C(function(Z){if(Z.nextAddress==1)return _.IK(Z,2),Z.yield(vt9(D),2);_.jX(Z);Y=D.JSC$19596_pendingMessages_;D.JSC$19596_pendingMessages_=[];R=Y.length;JVz(D,Y,R);kVE(D);return _.Fx(Z,0)})},JVz=function(D,Y,R){for(var Z=0;Z<R;++Z)pkE(D.JSC$19596_channel_,Y[Z]);
kVE(D)},kVE=function(D){D.publish("handlerOpened");
D.JSC$19596_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.u=gN.prototype;_.u.JSC$19555_channelError=function(D){var Y=D==2&&this.JSC$19596_channel_.JSC$19548_lastStatusCode_==401;D==4||Y||this.reconnectTimer_.start();this.publish("handlerError",D,Y);Y=Object.keys(gLu).find(function(R){return gLu[R]===D});
this.JSC$19596_channelErrorCounter.increment("BROWSER_CHANNEL",Y!=null?Y:"UNKNOWN")};
_.u.JSC$19555_channelClosed=function(D,Y){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(Y)for(var R=Y.length,Z=0;Z<R;++Z){var t=Y[Z].map;t&&this.JSC$19596_pendingMessages_.push(t)}this.JSC$19596_channelClosedCounter.increment("BROWSER_CHANNEL");D&&this.pendingMapsOnClosedCounter.JSC$9901_streamzService.JSC$9756_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",D.length);Y&&this.undeliveredMapsOnClosedCounter.JSC$9904_streamzService.JSC$9756_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
Y.length)};
_.u.JSC$19555_channelSuccess=function(D,Y){Y!=null&&D!=null&&this.channelMessageSentCounter.increment()};
_.u.JSC$19555_getAdditionalParams=function(){var D={v:2};this.sCookie_&&(D.gsessionid=this.sCookie_);this.connectUi_!=0&&(D.ui=""+this.connectUi_);this.disconnectUi_!=0&&(D.ui=""+this.disconnectUi_);this.connectionParams_&&_.y7.extend(D,this.connectionParams_);return D};
_.u.JSC$19555_channelHandleArray=function(D){D[0]=="S"?this.sCookie_=D[1]:D[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19596_channel_.disconnect()):this.publish("handlerMessage",new $Qk(D[0],D[1]));this.JSC$19596_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.u.isChannelOpened=function(){return!!this.JSC$19596_channel_&&this.JSC$19596_channel_.getState()==3};
var bO9=function(D){if(D.JSC$19596_channel_){var Y=D.JSC$19596_getXsrfToken_(),R=D.JSC$19596_channel_.JSC$19548_extraHeaders_||{};Y?R["x-youtube-lounge-xsrf-token"]=Y:delete R["x-youtube-lounge-xsrf-token"];D.JSC$19596_channel_.JSC$19548_extraHeaders_=R}},vt9=function(D){if(D.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.TA();
if(!D.enableCachedUpdateAuthorizationHeader_)return UQk(D);D.updateAuthorizationHeaderPromise_===null&&(D.updateAuthorizationHeaderPromise_=UQk(D));return D.updateAuthorizationHeaderPromise_},UQk=function(D){return _.$B(D.getAuthorizationHeader_().then(function(Y){K$I(D,Y)}).thenCatch(function(){}),function(){D.updateAuthorizationHeaderPromise_=null})},K$I=function(D,Y){if(D.JSC$19596_channel_){var R=D.JSC$19596_channel_.JSC$19548_extraHeaders_||{};
Y&&Object.keys(Y).length>0?R=Object.assign({},R,Y):delete R.Authorization;D.JSC$19596_channel_.JSC$19548_extraHeaders_=R}},yVt=function(D){D.getAuthorizationHeaderSync_&&!D.useAsyncBrowserChannelHandler_&&K$I(D,D.getAuthorizationHeaderSync_())};
_.u=gN.prototype;_.u.setLoungeToken=function(D){(this.defaultQueryParams_.loungeIdToken=D)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19596_channel_){var Y=this.JSC$19596_channel_.JSC$19548_extraHeaders_||{};D?Y["X-YouTube-LoungeId-Token"]=D:delete Y["X-YouTube-LoungeId-Token"];this.JSC$19596_channel_.JSC$19548_extraHeaders_=Y}};
_.u.getDeviceId=function(){return this.defaultQueryParams_.id};
_.u.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.u.reconnect=function(){var D=this.reconnectTimer_;D.delay_.fire();D.start()};
_.u.safeReconnect_=function(){var D=this.JSC$19596_channel_,Y=0;D.JSC$19548_backChannelRequest_&&Y++;D.forwardChannelRequest_&&Y++;Y==0&&this.connect(this.connectionParams_,this.connectUi_)};var RY=function(D,Y){var R=D.basePath;D.supportCors&&(R=D.scheme+"://"+D.domain+D.port+D.basePath);return _.pb(R+Y,{})};
dN.prototype.sendRequest=function(D,Y,R,Z,t,X,M){D={format:X?"RAW":"JSON",method:D,context:this,timeout:5E3,withCredentials:!!M,onSuccess:_.A4(this.JSC$19601_onSuccess_,Z,!X),onError:_.A4(this.onError_,t),onTimeout:_.A4(this.JSC$19601_onTimeout_,t)};R&&(D.postParams=R,D.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.S$(Y,D)};
dN.prototype.JSC$19601_onSuccess_=function(D,Y,R,Z){Y?D(Z):D({text:R.responseText})};
dN.prototype.onError_=function(D,Y){D(Error("Fk`"+Y.status))};
dN.prototype.JSC$19601_onTimeout_=function(D){D(Error("Gk"))};var Ot=function(D,Y){return!!Y&&(D.id==Y||D.uuid==Y)},huz=function(D){return{name:D.name,
screenId:D.id,loungeToken:D.token,dialId:D.uuid,screenIdType:D.idType}},L$K=function(D){return new i2(D)},mQh=function(D){return Array.isArray(D)?_.N1(D,L$K):[]},TdI=function(D){if(!D)return"null";
var Y=D.token?".."+D.token.slice(-6):"-",R=D.uuid?".."+D.uuid.slice(-6):"-";return'{name:"'+D.name+'",id:'+D.id.substr(0,6)+"..,token:"+(Y+",uuid:"+R+",idType:"+D.idType+"}")},Hnb=function(D){return Array.isArray(D)?"["+_.N1(D,TdI).join(",")+"]":"null"};var esI="",YD=null;var y6u=function(D,Y){_.eE.call(this);var R=this;this.handler=D();this.handler.subscribe("handlerOpened",this.JSC$19608_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Z,t){R.onError(t)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=Y};
_.n(y6u,_.eE);_.u=y6u.prototype;_.u.connect=function(D,Y,R){this.handler.connect(D,Y,R)};
_.u.disconnect=function(D){this.handler.disconnect(D)};
_.u.reconnect=function(){this.handler.reconnect()};
_.u.getDeviceId=function(){return this.handler.getDeviceId()};
_.u.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.u.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.u.JSC$19608_onOpened=function(){this.dispatchEvent("channelOpened");var D=this.handler,Y=this.currentScreenId;_.I8("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!D.JSC$19596_channel_.useChunked_,sessionId:D.JSC$19596_channel_.sid_,arrayId:D.JSC$19596_channel_.JSC$19548_lastArrayId_});_.I8("yt-remote-session-screen-id",Y);D=jQT();Y=IlI();_.LM(D,Y)||D.push(Y);flI(D);VII()};
_.u.onClosed=function(){this.dispatchEvent("channelClosed")};
_.u.onMessage=function(D){this.dispatchEvent(new Ibt(D))};
_.u.onError=function(D){this.dispatchEvent(new F$k(D?1:0))};
_.u.sendMessage=function(D,Y){this.handler.sendMessage(D,Y)};
_.u.setLoungeToken=function(D){this.handler.setLoungeToken(D)};
_.u.dispose=function(){this.handler.dispose()};var bnK=function(D,Y,R){var Z=this;R=R===void 0?function(){return""}:R;
var t=t===void 0?new eRu:t;var X=X===void 0?new _.j$:X;this.pathPrefix=D;this.defaultQueryParams=Y;this.getXsrfToken=R;this.JSC$19611_pubsub=X;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new tIt(function(){var M;((M=Z.channel)==null?void 0:OKt((new rw9(M,M.JSC$19519_channel_)).JSC$19529_channel_.forwardChannelRequestPool_))===0&&Z.connect(Z.connectionParams,Z.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19611_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19611_channelOpenedCounter=new sQK;this.JSC$19611_channelClosedCounter=new XG0;this.JSC$19611_channelMessageReceivedCounter=new alk;this.JSC$19611_channelErrorCounter=new MIk};
bnK.prototype.connect=function(D,Y){D=D===void 0?{}:D;Y=Y===void 0?0:Y;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=D,this.connectUi=Y,qc0(this),(D=_.JQ("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=D: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 c3(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,HOb(this))};
var HOb=function(D){_.yu(D.channel,"w",function(){D.channelState=3;D.reconnectTimer.reset();D.connectionParams=null;D.connectUi=0;for(var Y=_.a(D.nonAckedMessagesOnChannelClosed),R=Y.next();!R.done;R=Y.next())R=R.value,D.channel&&D.channel.send(R);D.nonAckedMessagesOnChannelClosed=[];D.publish("webChannelOpened");D.JSC$19611_channelOpenedCounter.increment("WEB_CHANNEL")});
_.yu(D.channel,"x",function(){D.channelState=0;D.reconnectTimer.isActive()||D.publish("webChannelClosed");var Y,R=(Y=D.channel)==null?void 0:wXK(new rw9(Y,Y.JSC$19519_channel_));R&&(D.nonAckedMessagesOnChannelClosed=[].concat(_.oK(R)));D.JSC$19611_channelClosedCounter.increment("WEB_CHANNEL")});
_.yu(D.channel,"z",function(Y){var R=Y.data;R[0]==="gracefulReconnect"?(D.reconnectTimer.start(),D.channel&&D.channel.close()):D.publish("webChannelMessage",new $Qk(R[0],R[1]));D.lastStatusCode=Y.statusCode;D.JSC$19611_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.yu(D.channel,"y",function(){D.lastStatusCode===401||D.reconnectTimer.start();D.publish("webChannelError");D.JSC$19611_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.u=bnK.prototype;_.u.disconnect=function(D){this.disconnectUi=D===void 0?0:D;this.reconnectTimer.stop();qc0(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.u.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.u.reconnect=function(){var D=this.reconnectTimer;D.delay_.fire();D.start()};
_.u.sendMessage=function(D,Y){this.channel&&(qc0(this),D=Object.assign({},{_sc:D},Y),this.channel.send(D))};
_.u.setLoungeToken=function(D){D||this.reconnectTimer.stop();D?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=D:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var qc0=function(D){var Y=D.getXsrfToken();Y?D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=Y:delete D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.u=bnK.prototype;_.u.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.u.publish=function(D){return this.JSC$19611_pubsub.publish.apply(this.JSC$19611_pubsub,[D].concat(_.oK(_.UN.apply(1,arguments))))};
_.u.subscribe=function(D,Y,R){return this.JSC$19611_pubsub.subscribe(D,Y,R)};
_.u.unsubscribe=function(D,Y,R){return this.JSC$19611_pubsub.unsubscribe(D,Y,R)};
_.u.unsubscribeByKey=function(D){return this.JSC$19611_pubsub.unsubscribeByKey(D)};
_.u.dispose=function(){this.JSC$19611_disposed||(this.JSC$19611_disposed=!0,_.OG(this.JSC$19611_pubsub),this.disconnect(),_.OG(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.u.isDisposed=function(){return this.JSC$19611_disposed};var oIk=function(D){_.eE.call(this);this.webChannelService=D();this.webChannelService.subscribe("webChannelOpened",this.JSC$19619_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.n(oIk,_.eE);_.u=oIk.prototype;_.u.connect=function(D,Y){this.webChannelService.connect(D,Y)};
_.u.disconnect=function(D){this.webChannelService.disconnect(D)};
_.u.reconnect=function(){this.webChannelService.reconnect()};
_.u.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.u.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.u.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.u.JSC$19619_onOpened=function(){this.dispatchEvent("channelOpened")};
_.u.onClosed=function(){this.dispatchEvent("channelClosed")};
_.u.onMessage=function(D){this.dispatchEvent(new Ibt(D))};
_.u.onError=function(){this.dispatchEvent(new F$k(this.webChannelService.lastStatusCode===401?1:0))};
_.u.sendMessage=function(D,Y){this.webChannelService.sendMessage(D,Y)};
_.u.setLoungeToken=function(D){this.webChannelService.setLoungeToken(D)};
_.u.dispose=function(){this.webChannelService.dispose()};var q$K=Date.now(),Zz=null,LVE=Array(50),X0=-1,m3z=!1;_.XN(uF,_.If);uF.prototype.getScreens=function(){return this.screens};
uF.prototype.contains=function(D){return!!T$T(this.screens,D)};
uF.prototype.get=function(D){return D?c9(this.screens,D):null};
var xQz=function(D,Y){var R=D.get(Y.uuid)||D.get(Y.id);if(R)return D=R.name,R.id=Y.id||R.id,R.name=Y.name,R.token=Y.token,R.uuid=Y.uuid||R.uuid,R.name!=D;D.screens.push(Y);return!0},Pu9=function(D,Y){var R=D.screens.length!=Y.length;
D.screens=_.ac(D.screens,function(X){return!!T$T(Y,X)});
for(var Z=Y.length,t=0;t<Z;t++)R=xQz(D,Y[t])||R;return R},Q$K=function(D,Y){var R=D.screens.length;
D.screens=_.ac(D.screens,function(Z){return!(Z||Y?!Z!=!Y?0:Z.id==Y.id:1)});
return D.screens.length<R};
uF.prototype.info=function(D){tY(this.JSC$19620_logName_,D)};var BHE=function(D,Y,R,Z,t){_.If.call(this);this.JSC$19623_http_=D;this.pairingCode_=Y;this.deviceId_=R;this.friendlyName_=Z;this.enableShortLivedLoungeToken_=t;this.pollIndex_=0;this.JSC$19623_xhr_=null;this.JSC$19623_timer_=NaN};
_.n(BHE,_.If);_.u=BHE.prototype;_.u.start=function(){!this.JSC$19623_xhr_&&isNaN(this.JSC$19623_timer_)&&this.poll_()};
_.u.stop=function(){this.JSC$19623_xhr_&&(this.JSC$19623_xhr_.abort(),this.JSC$19623_xhr_=null);isNaN(this.JSC$19623_timer_)||(_.Wr(this.JSC$19623_timer_),this.JSC$19623_timer_=NaN)};
_.u.disposeInternal=function(){this.stop();_.If.prototype.disposeInternal.call(this)};
_.u.poll_=function(){this.JSC$19623_timer_=NaN;this.JSC$19623_xhr_=_.S$(RY(this.JSC$19623_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.nG)(this.JSC$19625_onSuccess_,this),onError:(0,_.nG)(this.onError_,this),onTimeout:(0,_.nG)(this.JSC$19625_onTimeout_,this)})};
_.u.JSC$19625_onSuccess_=function(D,Y){this.JSC$19623_xhr_=null;D=Y.screen||{};D.dialId=this.deviceId_;D.name=this.friendlyName_;Y=-1;this.enableShortLivedLoungeToken_&&D.shortLivedLoungeToken&&D.shortLivedLoungeToken.value&&D.shortLivedLoungeToken.refreshIntervalMs&&(D.screenIdType="shortLived",D.loungeToken=D.shortLivedLoungeToken.value,Y=D.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new i2(D),Y)};
_.u.onError_=function(D){this.JSC$19623_xhr_=null;D.status&&D.status==404?this.pollIndex_>=pMk.length?this.publish("pairingFailed",Error("Hk")):(D=pMk[this.pollIndex_],this.JSC$19623_timer_=_.ME((0,_.nG)(this.poll_,this),D),this.pollIndex_++):this.publish("pairingFailed",Error("Ik`"+D.status))};
_.u.JSC$19625_onTimeout_=function(){this.JSC$19623_xhr_=null;this.publish("pairingFailed",Error("Jk"))};
var pMk=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.XN(MY,uF);_.u=MY.prototype;_.u.start=function(){aY(this)&&this.publish("screenChange");!_.FJ("yt-remote-lounge-token-expiration")&&EtI(this);_.Wr(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.ME((0,_.nG)(this.start,this),1E4)};
_.u.add=function(D,Y){aY(this);xQz(this,D);gtI(this,!1);this.publish("screenChange");Y(D);D.token||EtI(this)};
_.u.remove=function(D,Y){var R=aY(this);Q$K(this,D)&&(gtI(this,!1),R=!0);Y(D);R&&this.publish("screenChange")};
_.u.updateName=function(D,Y,R,Z){var t=aY(this),X=this.get(D.id);X?(X.name!=Y&&(X.name=Y,gtI(this,!1),t=!0),R(D)):Z(Error("Kk"));t&&this.publish("screenChange")};
_.u.disposeInternal=function(){_.Wr(this.loungeTokenRefreshTimer_);MY.superClass_.disposeInternal.call(this)};
var EtI=function(D){if(D.screens.length){var Y=_.N1(D.screens,function(Z){return Z.id}),R=RY(D.JSC$19627_http_,"/pairing/get_lounge_token_batch");
D.JSC$19627_http_.sendRequest("POST",R,{screen_ids:Y.join(",")},(0,_.nG)(D.handleLoungeTokens_,D),(0,_.nG)(D.handleLoungeTokenError_,D))}};
MY.prototype.handleLoungeTokens_=function(D){aY(this);var Y=this.screens.length;D=D&&D.screens||[];for(var R=D.length,Z=0;Z<R;++Z){var t=D[Z],X=this.get(t.screenId);X&&(X.token=t.loungeToken,--Y)}gtI(this,!Y);Y&&tY(this.JSC$19620_logName_,"Missed "+Y+" lounge tokens.")};
MY.prototype.handleLoungeTokenError_=function(D){tY(this.JSC$19620_logName_,"Requesting lounge tokens failed: "+D)};
var aY=function(D){if(_.f("deprecate_pair_servlet_enabled"))return Pu9(D,[]);var Y=mQh(nI0());Y=_.ac(Y,function(R){return!R.uuid});
return Pu9(D,Y)},gtI=function(D,Y){wGp(_.N1(D.screens,huz));
Y&&r6z()};var zs=function(D,Y){_.If.call(this);this.getScreensToCheck_=Y;Y=(Y=_.FJ("yt-remote-online-screen-ids")||"")?Y.split(","):[];for(var R={},Z=this.getScreensToCheck_(),t=Z.length,X=0;X<t;++X){var M=Z[X].id;R[M]=_.LM(Y,M)}this.screenIdSet_=R;this.JSC$19630_http_=D;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;dQu("Initialized with "+(0,_.bQ)(this.screenIdSet_))};
_.n(zs,_.If);zs.prototype.isOnline=function(D){return!!this.screenIdSet_[D]};
zs.prototype.start=function(){var D=parseInt(_.FJ("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.sb()-144E5<D?0:D)?iOp(this):(this.fastCheckEndTime_=_.sb()+3E5,_.I8("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
zs.prototype.isEmpty=function(){return _.y7.isEmpty(this.screenIdSet_)};
zs.prototype.update=function(){dQu("Updating availability on schedule.");var D=this.getScreensToCheck_(),Y=_.y7.filter(this.screenIdSet_,function(R,Z){return R&&!!c9(D,Z)},this);
OOt(this,Y)};
var cVb=function(D,Y,R){var Z=RY(D.JSC$19630_http_,"/pairing/get_screen_availability");D.JSC$19630_http_.sendRequest("POST",Z,{lounge_token:Y.token},(0,_.nG)(function(t){t=t.screens||[];for(var X=t.length,M=0;M<X;++M)if(t[M].loungeToken==Y.token){R(t[M].status=="online");return}R(!1)},D),(0,_.nG)(function(){R(!1)},D))};
zs.prototype.disposeInternal=function(){_.Wr(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.If.prototype.disposeInternal.call(this)};
var OOt=function(D,Y){a:if(_.y7.getCount(Y)!=_.y7.getCount(D.screenIdSet_))var R=!1;else{R=_.y7.getKeys(Y);for(var Z=R.length,t=0;t<Z;++t)if(!D.screenIdSet_[R[t]]){R=!1;break a}R=!0}R||(dQu("Updated online screens: "+(0,_.bQ)(D.screenIdSet_)),D.screenIdSet_=Y,D.publish("screenChange"));DDu(D)},iOp=function(D){isNaN(D.refreshTimer_)||_.Wr(D.refreshTimer_);
D.refreshTimer_=_.ME((0,_.nG)(D.requestScreenAvailability_,D),D.fastCheckEndTime_>0&&D.fastCheckEndTime_<_.sb()?2E4:1E4)};
zs.prototype.requestScreenAvailability_=function(){_.Wr(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var D=YYb(this);if(_.y7.getCount(D)){var Y=RY(this.JSC$19630_http_,"/pairing/get_screen_availability"),R={lounge_token:_.y7.getKeys(D).join(",")};this.currentRequest_=this.JSC$19630_http_.sendRequest("POST",Y,R,(0,_.nG)(this.onScreenAvailability_,this,D),(0,_.nG)(this.onScreenAvailabilityError_,this))}else OOt(this,{}),iOp(this)};
zs.prototype.onScreenAvailability_=function(D,Y){this.currentRequest_=null;var R=_.y7.getKeys(YYb(this));if(_.gr(R,_.y7.getKeys(D))){Y=Y.screens||[];R={};for(var Z=Y.length,t=0;t<Z;++t)R[D[Y[t].loungeToken]]=Y[t].status=="online";OOt(this,R);iOp(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
zs.prototype.onScreenAvailabilityError_=function(D){this.warn_("Screen availability failed: "+D);this.currentRequest_=null;iOp(this)};
var dQu=function(D){tY("OnlineScreenService",D)};
zs.prototype.warn_=function(D){tY("OnlineScreenService",D)};
var YYb=function(D){var Y={};_.xs(D.getScreensToCheck_(),function(R){R.token?Y[R.token]=R.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return Y},DDu=function(D){D=_.y7.getKeys(_.y7.filter(D.screenIdSet_,function(Y){return Y}));
D.sort(_.vnj);D.length?_.I8("yt-remote-online-screen-ids",D.join(","),60):_.G5("yt-remote-online-screen-ids")};_.XN(C3,uF);_.u=C3.prototype;_.u.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.u.add=function(D,Y,R){this.localScreenService_.add(D,Y,R)};
_.u.remove=function(D,Y,R){this.localScreenService_.remove(D,Y,R);this.onlineScreenService_.update()};
_.u.updateName=function(D,Y,R,Z){this.localScreenService_.contains(D)?this.localScreenService_.updateName(D,Y,R,Z):(D="Updating name of unknown screen: "+D.name,tY(this.JSC$19620_logName_,D),Z(Error(D)))};
_.u.getScreens=function(D){return D?this.screens:Nu9(this.screens,_.ac(this.automaticScreens_,function(Y){return!this.contains(Y)},this))};
_.u.JSC$19635_getOnlineScreens=function(){return _.ac(this.getScreens(!0),function(D){return this.onlineScreenService_.isOnline(D.id)},this)};
var ZST=function(D,Y,R,Z,t,X){D.info("getAutomaticScreenByIds "+R+" / "+Y);R||(R=D.deviceToScreenId_[Y]);var M=D.getScreens(),W=R?c9(M,R):null;R&&(D.disableAutomaticScreenCache_||W)||(W=c9(M,Y));if(W){W.uuid=Y;var z=S1(D,W);cVb(D.onlineScreenService_,z,function(I){t(I?z:null)})}else R?RNT(D,R,(0,_.nG)(function(I){var F=S1(this,new i2({name:Z,
screenId:R,loungeToken:I,dialId:Y||""}));cVb(this.onlineScreenService_,F,function(G){t(G?F:null)})},D),X):t(null)};
C3.prototype.JSC$19635_getScreenByPollingPairingCode=function(D,Y,R,Z,t,X){var M=this;this.info("getDialScreenByPairingCode "+D+" / "+Y);var W=new BHE(this.JSC$19633_http_,D,Y,R,Z);W.subscribe("pairingComplete",function(z,I){_.OG(W);t(S1(M,z),I)});
W.subscribe("pairingFailed",function(z){_.OG(W);X(z)});
W.start();return(0,_.nG)(W.stop,W)};
var t5k=function(D,Y){for(var R=D.screens.length,Z=0;Z<R;++Z)if(D.screens[Z].name==Y)return D.screens[Z];return null};
C3.prototype.JSC$19635_getScreenByPairingCode=function(D,Y,R,Z){_.S$(RY(this.JSC$19633_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:D},timeout:5E3,onSuccess:(0,_.nG)(function(t,X){t=new i2(X.screen||{});if(!t.name||t5k(this,t.name)){a:{X=t.name;for(var M=2,W=Y(X,M);t5k(this,W);){M++;if(M>20)break a;W=Y(X,M)}X=W}t.name=X}R(S1(this,t))},this),
onError:(0,_.nG)(function(t){Z(Error("Lk`"+t.status))},this),
onTimeout:(0,_.nG)(function(){Z(Error("Mk"))},this)})};
var svK=function(D,Y,R){cVb(D.onlineScreenService_,Y,R)};
C3.prototype.disposeInternal=function(){_.OG(this.localScreenService_);_.OG(this.onlineScreenService_);C3.superClass_.disposeInternal.call(this)};
var RNT=function(D,Y,R,Z){D.info("requestLoungeToken_ for "+Y);var t={postParams:{screen_ids:Y},method:"POST",context:D,onSuccess:function(X,M){X=M&&M.screens||[];X[0]&&X[0].screenId==Y?R(X[0].loungeToken):Z(Error("Nk"))},
onError:function(){Z(Error("Ok"))}};
_.S$(RY(D.JSC$19633_http_,"/pairing/get_lounge_token_batch"),t)},XHz=function(D){D.screens=D.localScreenService_.getScreens();
for(var Y=_.y7.transpose(D.deviceToScreenId_),R=D.screens.length,Z=0;Z<R;++Z){var t=D.screens[Z];t.uuid=Y[t.id]||""}D.info("Updated manual screens: "+Hnb(D.screens))};
C3.prototype.handleScreenChange_=function(){XHz(this);this.publish("screenChange");this.onlineScreenService_.update()};
var x3T=function(D){u8T(D);D.localScreenService_=new MY(D.JSC$19633_http_);D.localScreenService_.subscribe("screenChange",(0,_.nG)(D.handleScreenChange_,D));XHz(D);D.disableAutomaticScreenCache_||(D.automaticScreens_=mQh(_.FJ("yt-remote-automatic-screen-cache")||[]));u8T(D);D.info("Initializing automatic screens: "+Hnb(D.automaticScreens_));D.onlineScreenService_=new zs(D.JSC$19633_http_,(0,_.nG)(D.getScreens,D,!0));D.onlineScreenService_.subscribe("screenChange",(0,_.nG)(function(){this.publish("onlineScreenChange")},
D))},S1=function(D,Y){var R=D.get(Y.id);
R?(R.uuid=Y.uuid,Y=R):((R=c9(D.automaticScreens_,Y.uuid))?(R.id=Y.id,R.token=Y.token,Y=R):D.automaticScreens_.push(Y),D.disableAutomaticScreenCache_||a6z(D));u8T(D);D.deviceToScreenId_[Y.uuid]=Y.id;_.I8("yt-remote-device-id-map",D.deviceToScreenId_,31536E3);return Y},a6z=function(D){D=_.ac(D.automaticScreens_,function(Y){return Y.idType!="shortLived"});
_.I8("yt-remote-automatic-screen-cache",_.N1(D,huz))},u8T=function(D){D.deviceToScreenId_=_.FJ("yt-remote-device-id-map")||{}};
C3.prototype.dispose=C3.prototype.dispose;_.XN(Ww,_.If);var Ts=function(D,Y){D.screen_=Y;D.publish("sessionScreen",D.screen_)},M5k=function(D,Y){D.screen_&&(D.screen_.token=Y,S1(D.JSC$19637_screenService_,D.screen_));
D.publish("sessionScreen",D.screen_)};
Ww.prototype.onSessionStopped=function(D){this.isDisposed()||(D&&(j1(this,""+D),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Ww.prototype.info=function(D){tY(this.JSC$19637_logName_,D)};
var j1=function(D,Y){tY(D.JSC$19637_logName_,Y)};
Ww.prototype.JSC$19639_getCastSession=function(){return null};
Ww.prototype.setDisplayStatus=function(D){var Y=this.receiver_;D?(Y.displayStatus=new chrome.cast.ReceiverDisplayStatus(D,[]),Y.displayStatus.showStop=!0):Y.displayStatus=null;chrome.cast.setReceiverDisplayStatus(Y,(0,_.nG)(function(){this.info("Updated receiver status for "+Y.friendlyName+": "+D)},this),(0,_.nG)(function(){j1(this,"Failed to update receiver status for: "+Y.friendlyName)},this))};
Ww.prototype.disposeInternal=function(){this.setDisplayStatus("");Ww.superClass_.disposeInternal.call(this)};var IC=function(D,Y,R){Ww.call(this,D,Y,"CastSession");var Z=this;this.config_=R;this.JSC$19642_session_=null;this.JSC$19642_boundSessionUpdate_=(0,_.nG)(this.JSC$19644_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.nG)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.ME(function(){CHE(Z,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19642_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19642_isInitLoungeToken_=!1;this.JSC$19642_lastLoungeTokenRefreshError_="unknown"};
_.n(IC,Ww);_.u=IC.prototype;
_.u.setCastSession=function(D){if(this.JSC$19642_session_){if(this.JSC$19642_session_==D)return;j1(this,"Overriding cast session with new session object");WbK(this);this.JSC$19642_isInitLoungeToken_=!1;this.JSC$19642_lastLoungeTokenRefreshError_="unknown";this.JSC$19642_session_.removeUpdateListener(this.JSC$19642_boundSessionUpdate_);this.JSC$19642_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19642_session_=D;this.JSC$19642_session_.addUpdateListener(this.JSC$19642_boundSessionUpdate_);this.JSC$19642_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);zNT(this,"getMdxSessionStatus")};
_.u.launchWithParams=function(D){this.info("launchWithParams no-op for Cast: "+(0,_.bQ)(D))};
_.u.stop=function(){if(this.JSC$19642_session_)this.JSC$19642_session_.stop((0,_.nG)(function(){this.onSessionStopped()},this),(0,_.nG)(function(){this.onSessionStopped(Error("Pk"))},this));
else this.onSessionStopped(Error("Qk"))};
_.u.setDisplayStatus=function(){};
_.u.disposeInternal=function(){this.info("disposeInternal");WbK(this);this.JSC$19642_session_&&(this.JSC$19642_session_.removeUpdateListener(this.JSC$19642_boundSessionUpdate_),this.JSC$19642_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19642_session_=null;Ww.prototype.disposeInternal.call(this)};
var TM9=function(D,Y){_.Wr(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0;Y==0?SYz(D):D.getLoungeTokenTimeoutKey_=_.ME(function(){SYz(D)},Y)},SYz=function(D){zNT(D,"getLoungeToken");
_.Wr(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=_.ME(function(){jvK(D,null)},3E4)},zNT=function(D,Y){D.info("sendYoutubeMessage_: "+Y+" "+(0,_.bQ)(void 0));
var R={};R.type=Y;D.JSC$19642_session_?D.JSC$19642_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",R,function(){},(0,_.nG)(function(){j1(this,"Failed to send message: "+Y+".")},D)):j1(D,"Sending yt message without session: "+(0,_.bQ)(R))};
IC.prototype.onYoutubeMessage_=function(D,Y){if(!this.isDisposed())if(Y)if(Y=(0,_.NA)(Y),_.Bo(Y))switch(D=""+Y.type,Y=Y.data||{},this.info("onYoutubeMessage_: "+D+" "+(0,_.bQ)(Y)),D){case "mdxSessionStatus":CHE(this,Y);break;case "loungeToken":jvK(this,Y);break;default:j1(this,"Unknown youtube message: "+D)}else j1(this,"Unable to parse message.");else j1(this,"No data in message.")};
var I6u=function(D,Y){if(Y)D.info("onConnectedScreenId_: Received screenId: "+Y),D.screen_&&D.screen_.id==Y||D.getScreen_(Y,function(R){Ts(D,R)},function(){return D.onSessionStopped()},5);
else D.onSessionStopped(Error("Rk"))},G2p=function(D,Y,R){D.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(Y));
var Z=new i2(Y);FbT(D,Z,function(t){t?(D.JSC$19642_isInitLoungeToken_=!0,S1(D.JSC$19637_screenService_,Z),Ts(D,Z),D.JSC$19642_lastLoungeTokenRefreshError_="unknown",TM9(D,R)):(_.hQ(Error("Sk`"+JSON.stringify(Y))),D.onSessionStopped())},5)},CHE=function(D,Y){_.Wr(D.sessionStatusTimeoutKey_);
D.sessionStatusTimeoutKey_=0;if(Y)D.config_.enableCastLoungeToken&&Y.loungeToken?Y.deviceId?D.screen_&&D.screen_.uuid==Y.deviceId||(Y.loungeTokenRefreshIntervalMs?G2p(D,{name:D.receiver_.friendlyName,screenId:Y.screenId,loungeToken:Y.loungeToken,dialId:Y.deviceId,screenIdType:"shortLived"},Y.loungeTokenRefreshIntervalMs):(_.hQ(Error("Uk`"+JSON.stringify(Y))),I6u(D,Y.screenId))):(_.hQ(Error("Tk`"+JSON.stringify(Y))),I6u(D,Y.screenId)):I6u(D,Y.screenId);else D.onSessionStopped(Error("Rk"))},jvK=function(D,
Y){_.Wr(D.onLoungeTokenTimeoutKey_);
D.onLoungeTokenTimeoutKey_=0;var R=null;if(Y)if(Y.loungeToken){var Z;((Z=D.screen_)==null?void 0:Z.token)==Y.loungeToken&&(R="staleLoungeToken")}else R="missingLoungeToken";else R="noLoungeTokenResponse";R?(D.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(Y)+", error: "+R)),D.JSC$19642_lastLoungeTokenRefreshError_=R,TM9(D,3E4)):(M5k(D,Y.loungeToken),D.JSC$19642_isInitLoungeToken_=!1,D.JSC$19642_lastLoungeTokenRefreshError_="unknown",TM9(D,Y.loungeTokenRefreshIntervalMs))};
IC.prototype.getScreen_=function(D,Y,R,Z){_.Wr(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;ZST(this.JSC$19637_screenService_,this.receiver_.label,D,this.receiver_.friendlyName,(0,_.nG)(function(t){t?Y(t):Z>=0?(j1(this,"Screen "+D+" appears to be offline. "+Z+" retries left."),this.getScreenTimeoutKey_=_.ME((0,_.nG)(this.getScreen_,this,D,Y,R,Z-1),300)):R(Error("Vk"))},this),R)};
var FbT=function(D,Y,R,Z){_.Wr(D.JSC$19642_checkScreenAvailabilityTimeoutKey_);D.JSC$19642_checkScreenAvailabilityTimeoutKey_=0;svK(D.JSC$19637_screenService_,Y,function(t){t||Z<0?R(t):D.JSC$19642_checkScreenAvailabilityTimeoutKey_=_.ME(function(){FbT(D,Y,R,Z-1)},300)})};
IC.prototype.JSC$19639_getCastSession=function(){return this.JSC$19642_session_};
IC.prototype.JSC$19644_onSessionUpdate_=function(D){this.isDisposed()||D||(j1(this,"Cast session died."),this.onSessionStopped())};
var WbK=function(D){_.Wr(D.getScreenTimeoutKey_);D.getScreenTimeoutKey_=0;_.Wr(D.JSC$19642_checkScreenAvailabilityTimeoutKey_);D.JSC$19642_checkScreenAvailabilityTimeoutKey_=0;_.Wr(D.sessionStatusTimeoutKey_);D.sessionStatusTimeoutKey_=0;_.Wr(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=0;_.Wr(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0};var Fw=function(D,Y,R,Z){Ww.call(this,D,Y,"DialSession");this.config_=Z;this.JSC$19646_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19646_theme_=R;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19646_deferredLaunchDeadlineTimer_=NaN;this.JSC$19646_boundSessionUpdate_=(0,_.nG)(this.JSC$19648_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19646_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19646_isInitLoungeToken_=!1;this.JSC$19646_lastLoungeTokenRefreshError_="unknown"};
_.n(Fw,Ww);Fw.prototype.setCastSession=function(D){this.JSC$19646_session_=D;this.JSC$19646_session_.addUpdateListener(this.JSC$19646_boundSessionUpdate_)};
Fw.prototype.launchWithParams=function(D){this.connectData_=D;this.deferredLaunch_()};
Fw.prototype.stop=function(){V5E(this);if(this.JSC$19646_session_)this.JSC$19646_session_.stop((0,_.nG)(this.onSessionStopped,this,null),(0,_.nG)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Fw.prototype.disposeInternal=function(){V5E(this);this.JSC$19646_session_&&this.JSC$19646_session_.removeUpdateListener(this.JSC$19646_boundSessionUpdate_);this.JSC$19646_session_=null;Ww.prototype.disposeInternal.call(this)};
var f6E=function(D){var Y;return!!(D.config_.enableDialLoungeToken&&((Y=D.JSC$19646_session_)==null?0:Y.getDialAppInfo))},eNt=function(D){D.cancelPolling_=D.JSC$19637_screenService_.JSC$19635_getScreenByPollingPairingCode(D.reversePairingCode_,D.receiver_.label,D.receiver_.friendlyName,f6E(D),function(Y,R){D.cancelPolling_=function(){};
D.JSC$19646_isInitLoungeToken_=!0;Ts(D,Y);Y.idType=="shortLived"&&R>0&&Gs(D,R)},function(Y){D.cancelPolling_=function(){};
D.onSessionStopped(Y)})};
Fw.prototype.JSC$19648_onSessionUpdate_=function(D){this.isDisposed()||D||(j1(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var AUK=function(D){var Y={};Y.pairingCode=D.reversePairingCode_;Y.theme=D.JSC$19646_theme_;vIT()&&(Y.env_useStageMdx=1);return _.TZ(Y)},n$K=function(D){return new Promise(function(Y){D.reversePairingCode_=zsp();
if(D.connectData_){var R=new chrome.cast.DialLaunchResponse(!0,AUK(D));Y(R);eNt(D)}else D.deferredLaunch_=function(){_.Wr(D.JSC$19646_deferredLaunchDeadlineTimer_);D.deferredLaunch_=function(){};
D.JSC$19646_deferredLaunchDeadlineTimer_=NaN;var Z=new chrome.cast.DialLaunchResponse(!0,AUK(D));Y(Z);eNt(D)},D.JSC$19646_deferredLaunchDeadlineTimer_=_.ME(function(){D.deferredLaunch_()},100)})},wH9=function(D,Y,R){D.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(Y));
var Z=new i2(Y);return(new Promise(function(t){rUk(D,Z,function(X){X?(D.JSC$19646_isInitLoungeToken_=!0,S1(D.JSC$19637_screenService_,Z),Ts(D,Z),Gs(D,R)):_.hQ(Error("Xk`"+JSON.stringify(Y)));t(X)},5)})).then(function(t){return t?new chrome.cast.DialLaunchResponse(!1):n$K(D)})},$Dp=function(D,Y){var R=D.launchData_.receiver.label,Z=D.receiver_.friendlyName;
return(new Promise(function(t){ZST(D.JSC$19637_screenService_,R,Y,Z,function(X){X&&X.token&&Ts(D,X);t(X)},function(X){j1(D,"Failed to get DIAL screen: "+X);
t(null)})})).then(function(t){return t&&t.token?new chrome.cast.DialLaunchResponse(!1):n$K(D)})},rUk=function(D,Y,R,Z){_.Wr(D.JSC$19646_checkScreenAvailabilityTimeoutKey_);
D.JSC$19646_checkScreenAvailabilityTimeoutKey_=0;svK(D.JSC$19637_screenService_,Y,function(t){t||Z<0?R(t):D.JSC$19646_checkScreenAvailabilityTimeoutKey_=_.ME(function(){rUk(D,Y,R,Z-1)},300)})},Gs=function(D,Y){D.info("getDialAppInfoWithTimeout_ "+Y);
f6E(D)&&(_.Wr(D.getDialAppInfoTimeoutKey_),D.getDialAppInfoTimeoutKey_=0,Y==0?v$E(D):D.getDialAppInfoTimeoutKey_=_.ME(function(){v$E(D)},Y))},v$E=function(D){f6E(D)&&D.JSC$19646_session_.getDialAppInfo(function(Y){D.info("getDialAppInfo dialLaunchData: "+JSON.stringify(Y));
Y=Y.extraData||{};var R=null;if(Y.loungeToken){var Z;((Z=D.screen_)==null?void 0:Z.token)==Y.loungeToken&&(R="staleLoungeToken")}else R="missingLoungeToken";R?(D.JSC$19646_lastLoungeTokenRefreshError_=R,Gs(D,3E4)):(D.JSC$19646_isInitLoungeToken_=!1,D.JSC$19646_lastLoungeTokenRefreshError_="unknown",M5k(D,Y.loungeToken),Gs(D,Y.loungeTokenRefreshIntervalMs))},function(Y){D.info("getDialAppInfo error: "+Y);
D.JSC$19646_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Gs(D,3E4)})},V5E=function(D){_.Wr(D.JSC$19646_checkScreenAvailabilityTimeoutKey_);
D.JSC$19646_checkScreenAvailabilityTimeoutKey_=0;_.Wr(D.getDialAppInfoTimeoutKey_);D.getDialAppInfoTimeoutKey_=0;D.cancelPolling_();D.cancelPolling_=function(){};
_.Wr(D.JSC$19646_deferredLaunchDeadlineTimer_)};var VY=function(D,Y){Ww.call(this,D,Y,"ManualSession");this.JSC$19650_deferredLaunchDeadlineTimer_=_.ME((0,_.nG)(this.launchWithParams,this,null),150)};
_.n(VY,Ww);VY.prototype.stop=function(){this.onSessionStopped()};
VY.prototype.setCastSession=function(){};
VY.prototype.launchWithParams=function(){_.Wr(this.JSC$19650_deferredLaunchDeadlineTimer_);this.JSC$19650_deferredLaunchDeadlineTimer_=NaN;var D=c9(this.JSC$19637_screenService_.getScreens(),this.receiver_.label);if(D)Ts(this,D);else this.onSessionStopped(Error("Yk"))};
VY.prototype.disposeInternal=function(){_.Wr(this.JSC$19650_deferredLaunchDeadlineTimer_);this.JSC$19650_deferredLaunchDeadlineTimer_=NaN;Ww.prototype.disposeInternal.call(this)};var jz=function(D,Y){_.If.call(this);this.config_=Y;this.JSC$19653_screenService_=D;this.JSC$19653_appId_=Y.appId||"233637DE";this.JSC$19653_theme_=Y.theme||"cl";this.disableDial_=Y.disableCastApi||!1;this.forceMirroring_=Y.forceMirroring||!1;this.JSC$19653_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.nG)(this.onReceiverAction_,this)};
_.n(jz,_.If);
jz.prototype.init=function(D,Y){chrome.cast.timeout.requestSession=3E4;var R=new chrome.cast.SessionRequest(this.JSC$19653_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.f("desktop_enable_cast_connect")&&(R.androidReceiverCompatible=!0);this.disableDial_||(R.dialRequest=new chrome.cast.DialRequest("YouTube"));var Z=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;D=D||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var t=(0,_.nG)(this.onReceiverUpdated_,
this);R=new chrome.cast.ApiConfig(R,(0,_.nG)(this.onSessionEstablished_,this),t,Z,D);R.customDialLaunchCallback=(0,_.nG)(this.onDialLaunchRequested_,this);chrome.cast.initialize(R,(0,_.nG)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),U3t(),this.JSC$19653_screenService_.subscribe("onlineScreenChange",(0,_.nG)(this.JSC$19655_onScreenChange_,this)),this.customReceivers_=o$0(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.nG)(function(X){this.warn_("Failed to set initial custom receivers: "+(0,_.bQ)(X))},this)),this.publish("yt-remote-cast2-availability-change",fQ(this)),Y(!0))},this),(0,_.nG)(function(X){this.warn_("Failed to initialize API: "+(0,_.bQ)(X));
Y(!1)},this))};
jz.prototype.setConnectedScreenStatus=function(D,Y){e1("Setting connected screen ID: "+D+" -> "+Y);if(this.JSC$19653_session_){var R=this.JSC$19653_session_.screen_;if(!D||R&&R.id!=D)e1("Unsetting old screen status: "+this.JSC$19653_session_.receiver_.friendlyName),AC(this,null)}if(D&&Y){if(!this.JSC$19653_session_){D=c9(this.JSC$19653_screenService_.getScreens(),D);if(!D){e1("setConnectedScreenStatus: Unknown screen.");return}if(D.idType=="shortLived"){e1("setConnectedScreenStatus: Screen with id type to be short lived.");
return}R=bSh(this,D);R||(e1("setConnectedScreenStatus: Connected receiver not custom..."),R=new chrome.cast.Receiver(D.uuid?D.uuid:D.id,D.name),R.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(R),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.nG)(function(Z){this.warn_("Failed to set initial custom receivers: "+(0,_.bQ)(Z))},this)));
e1("setConnectedScreenStatus: new active receiver: "+R.friendlyName);AC(this,new VY(this.JSC$19653_screenService_,R),!0)}this.JSC$19653_session_.setDisplayStatus(Y)}else e1("setConnectedScreenStatus: no screen.")};
var bSh=function(D,Y){return Y?_.JS(D.customReceivers_,function(R){return Ot(Y,R.label)},D):null};
jz.prototype.setLaunchParams=function(D){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19653_session_?this.JSC$19653_session_.launchWithParams(D):this.warn_("Setting connection data without a session")};
jz.prototype.JSC$19655_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19653_session_?(this.JSC$19653_session_.stop(),AC(this,null)):e1("Stopping non-existing session")};
jz.prototype.requestSession=function(){chrome.cast.requestSession((0,_.nG)(this.onSessionEstablished_,this),(0,_.nG)(this.onSessionRequestFailed_,this))};
jz.prototype.disposeInternal=function(){this.JSC$19653_screenService_.unsubscribe("onlineScreenChange",(0,_.nG)(this.JSC$19655_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.m5(_.mf("yt.mdx.remote.debug.handlers_")||[],llb);_.OG(this.JSC$19653_session_);_.If.prototype.disposeInternal.call(this)};
var e1=function(D){tY("Controller",D)};
jz.prototype.warn_=function(D){tY("Controller",D)};
var llb=function(D){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(D)},fQ=function(D){return D.hasCastReceiver_||!!D.customReceivers_.length||!!D.JSC$19653_session_},AC=function(D,Y,R){Y!=D.JSC$19653_session_&&(_.OG(D.JSC$19653_session_),(D.JSC$19653_session_=Y)?(R?D.publish("yt-remote-cast2-receiver-resumed",Y.receiver_):D.publish("yt-remote-cast2-receiver-selected",Y.receiver_),Y.subscribe("sessionScreen",(0,_.nG)(D.onSessionScreen_,D,Y)),Y.subscribe("sessionFailed",
function(){return yUT(D,Y)}),Y.screen_?D.publish("yt-remote-cast2-session-change",Y.screen_):R&&D.JSC$19653_session_.launchWithParams(null)):D.publish("yt-remote-cast2-session-change",null))},yUT=function(D,Y){D.JSC$19653_session_==Y&&D.publish("yt-remote-cast2-session-failed")};
_.u=jz.prototype;_.u.onSessionScreen_=function(D,Y){this.JSC$19653_session_==D&&(Y||AC(this,null),this.publish("yt-remote-cast2-session-change",Y))};
_.u.onReceiverAction_=function(D,Y){if(!this.isDisposed())if(D)switch(D.friendlyName=chrome.cast.unescape(D.friendlyName),e1("onReceiverAction_ "+D.label+" / "+D.friendlyName+"-- "+Y),Y){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19653_session_)if(this.JSC$19653_session_.receiver_.label!=D.label)e1("onReceiverAction_: Stopping active receiver: "+this.JSC$19653_session_.receiver_.friendlyName),this.JSC$19653_session_.stop();else{e1("onReceiverAction_: Casting to active receiver.");this.JSC$19653_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19653_session_.screen_);break}switch(D.receiverType){case chrome.cast.ReceiverType.CUSTOM:AC(this,new VY(this.JSC$19653_screenService_,D));break;case chrome.cast.ReceiverType.DIAL:AC(this,new Fw(this.JSC$19653_screenService_,D,this.JSC$19653_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:AC(this,new IC(this.JSC$19653_screenService_,D,this.config_));break;default:this.warn_("Unknown receiver type: "+D.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19653_session_&&
this.JSC$19653_session_.receiver_.label==D.label?this.JSC$19653_session_.stop():this.warn_("Stopping receiver w/o session: "+D.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.u.onDialLaunchRequested_=function(D){if(this.isDisposed())return Promise.reject(Error("Zk"));var Y=D.receiver;Y.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+Y.friendlyName),Y.receiverType=chrome.cast.ReceiverType.DIAL);var R=this.JSC$19653_session_?this.JSC$19653_session_.receiver_:null;if(!R||R.label!=Y.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+Y.friendlyName),Promise.reject(Error("$k"));if(R&&R.label==Y.label&&R.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19653_session_.screen_)return e1("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19653_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+R.receiverType+'" to "dial" for '+Y.friendlyName);AC(this,new Fw(this.JSC$19653_screenService_,Y,this.JSC$19653_theme_,this.config_))}Y=this.JSC$19653_session_;Y.launchData_=D;Y.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(D=Y.launchData_.extraData||{},R=D.screenId||null,f6E(Y)&&D.loungeToken?D.loungeTokenRefreshIntervalMs?D=wH9(Y,{name:Y.receiver_.friendlyName,screenId:D.screenId,loungeToken:D.loungeToken,dialId:Y.launchData_.receiver.label,screenIdType:"shortLived"},D.loungeTokenRefreshIntervalMs):(_.hQ(Error("Wk`"+JSON.stringify(D))),D=$Dp(Y,R)):D=$Dp(Y,R)):D=n$K(Y);return D};
_.u.onSessionEstablished_=function(D){var Y=this;if(!this.isDisposed()&&!this.forceMirroring_){e1("New cast session ID: "+D.sessionId);var R=D.receiver;if(R.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19653_session_)if(R.receiverType==chrome.cast.ReceiverType.CAST)e1("Got resumed cast session before resumed mdx connection."),R.friendlyName=chrome.cast.unescape(R.friendlyName),AC(this,new IC(this.JSC$19653_screenService_,R,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Z=this.JSC$19653_session_.receiver_,t=c9(this.JSC$19653_screenService_.getScreens(),Z.label);t&&Ot(t,R.label)&&Z.receiverType!=chrome.cast.ReceiverType.CAST&&R.receiverType==chrome.cast.ReceiverType.CAST&&(e1("onSessionEstablished_: manual to cast session change "+R.friendlyName),_.OG(this.JSC$19653_session_),this.JSC$19653_session_=new IC(this.JSC$19653_screenService_,R,this.config_),this.JSC$19653_session_.subscribe("sessionScreen",(0,_.nG)(this.onSessionScreen_,this,this.JSC$19653_session_)),
this.JSC$19653_session_.subscribe("sessionFailed",function(){return yUT(Y,Y.JSC$19653_session_)}),this.JSC$19653_session_.launchWithParams(null));
this.JSC$19653_session_.setCastSession(D)}}};
_.u.JSC$19655_getCastSession=function(){return this.JSC$19653_session_?this.JSC$19653_session_.JSC$19639_getCastSession():null};
_.u.onSessionRequestFailed_=function(D){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.bQ)(D)),D.code!=chrome.cast.ErrorCode.CANCEL&&AC(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.u.onReceiverUpdated_=function(D){e1("Receiver availability updated: "+D);if(!this.isDisposed()){var Y=fQ(this);this.hasCastReceiver_=D==chrome.cast.ReceiverAvailability.AVAILABLE;fQ(this)!=Y&&this.publish("yt-remote-cast2-availability-change",fQ(this))}};
var o$0=function(D){var Y=D.JSC$19653_screenService_.JSC$19635_getOnlineScreens(),R=D.JSC$19653_session_&&D.JSC$19653_session_.receiver_;D=_.N1(Y,function(Z){R&&Ot(Z,R.label)&&(R=null);var t=Z.uuid?Z.uuid:Z.id,X=bSh(this,Z);X?(X.label=t,X.friendlyName=Z.name):(X=new chrome.cast.Receiver(t,Z.name),X.receiverType=chrome.cast.ReceiverType.CUSTOM);return X},D);
R&&(R.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(R=new chrome.cast.Receiver(R.label,R.friendlyName),R.receiverType=chrome.cast.ReceiverType.CUSTOM),D.push(R));return D};
jz.prototype.JSC$19655_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=o$0(this),e1("Updating custom receivers: "+(0,_.bQ)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.nG)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",fQ(this)))};
jz.prototype.setLaunchParams=jz.prototype.setLaunchParams;jz.prototype.setConnectedScreenStatus=jz.prototype.setConnectedScreenStatus;jz.prototype.stopSession=jz.prototype.JSC$19655_stopSession;jz.prototype.getCastSession=jz.prototype.JSC$19655_getCastSession;jz.prototype.requestSession=jz.prototype.requestSession;jz.prototype.init=jz.prototype.init;jz.prototype.dispose=jz.prototype.dispose;var NM0=_.gY(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),uvK=[],d3I=_.tZ(NM0);var l69=function(D){D.audioTrackId=null;D.trackData=null;D.playerState=-1;D.hasPrevious=!1;D.hasNext=!1;D.playerTime_=0;D.playerTimeAt_=_.sb();D.seekableStart_=0;D.seekableEnd_=0;D.duration_=0;D.loadedTime=0;D.liveIngestionTime_=NaN;D.isLive_=!1};
_.u=IY.prototype;
_.u.reset=function(D){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;D&&(this.index=D.index,this.listId=D.listId,this.videoId=D.videoId,this.playerState=D.playerState,this.volume=D.volume,this.muted=D.muted,this.audioTrackId=D.audioTrackId,this.trackData=D.trackData,this.hasPrevious=D.hasPrevious,this.hasNext=D.hasNext,this.playerTime_=D.playerTime,this.playerTimeAt_=D.playerTimeAt,this.seekableStart_=D.seekableStart,this.seekableEnd_=D.seekableEnd,this.duration_=D.duration,this.loadedTime=
D.loadedTime,this.liveIngestionTime_=D.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.u.stopPlayer=function(){this.index=-1;this.videoId="";l69(this)};
_.u.isPlaying=function(){return this.playerState==1};
_.u.isBuffering=function(){return this.playerState==3};
_.u.isAdPlaying=function(){return this.playerState==1081};
var nQ=function(D,Y){D.playerTime_=Y;D.playerTimeAt_=_.sb()},JUK=function(D){switch(D.playerState){case 1:case 1081:return(_.sb()-D.playerTimeAt_)/1E3+D.playerTime_;
case -1E3:return 0}return D.playerTime_};
IY.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.sb()-this.playerTimeAt_)/1E3:0):this.duration_};
var k2z=function(D,Y,R){var Z=D.videoId;D.videoId=Y;D.index=R;Y!=Z&&l69(D)},UDK=function(D){var Y={};
Y.index=D.index;Y.listId=D.listId;Y.videoId=D.videoId;Y.playerState=D.playerState;Y.volume=D.volume;Y.muted=D.muted;Y.audioTrackId=D.audioTrackId;Y.trackData=_.y7.unsafeClone(D.trackData);Y.hasPrevious=D.hasPrevious;Y.hasNext=D.hasNext;Y.playerTime=D.playerTime_;Y.playerTimeAt=D.playerTimeAt_;Y.seekableStart=D.seekableStart_;Y.seekableEnd=D.seekableEnd_;Y.duration=D.duration_;Y.loadedTime=D.loadedTime;Y.liveIngestionTime=D.liveIngestionTime_;return Y};
IY.prototype.clone=function(){return new IY(UDK(this))};var rT=function(D,Y){_.If.call(this);var R=this;this.state_=0;this.connection_=D;this.contextSubscriptions_=[];this.actionQueue_=new Znk;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.nG)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.nG)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.nG)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.nG)(this.onCloudviewAvailabilityChange_,this);var Z=0;D?(Z=D.getProxyState(),
Z!=3&&(D.subscribe("proxyStateChange",this.setState_,this),Kbz(this))):Z=3;Z!=0&&(Y?this.setState_(Z):_.ME(function(){R.setState_(Z)},0));
(D=W40())&&hNt(this,D);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.n(rT,_.If);rT.prototype.getState=function(){return this.state_};
rT.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
rT.prototype.reconnect=function(){this.connection_.reconnect()};
var wT=function(D){return new IY(D.connection_.getPlayerContextData())};
_.u=rT.prototype;_.u.play=function(){$g(this)?(this.castMedia_?this.castMedia_.play(null,_.Vy,Lbz(this,"play")):vJ(this,"play"),mDE(this,1,JUK(wT(this))),this.publish("remotePlayerChange")):oC(this,this.play)};
_.u.pause=function(){$g(this)?(this.castMedia_?this.castMedia_.pause(null,_.Vy,Lbz(this,"pause")):vJ(this,"pause"),mDE(this,2,JUK(wT(this))),this.publish("remotePlayerChange")):oC(this,this.pause)};
_.u.seekTo=function(D){if($g(this)){if(this.castMedia_){var Y=wT(this),R=new chrome.cast.media.SeekRequest;R.currentTime=D;Y.isPlaying()||Y.isBuffering()?R.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:R.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(R,_.Vy,Lbz(this,"seekTo",{newTime:D}))}else vJ(this,"seekTo",{newTime:D});mDE(this,3,D);this.publish("remotePlayerChange")}else oC(this,_.A4(this.seekTo,D))};
_.u.stop=function(){if($g(this)){this.castMedia_?this.castMedia_.stop(null,_.Vy,Lbz(this,"stopVideo")):vJ(this,"stopVideo");var D=wT(this);D.stopPlayer();bG(this,D);this.publish("remotePlayerChange")}else oC(this,this.stop)};
_.u.setVolume=function(D,Y){if($g(this)){var R=wT(this);if(this.castSession_){if(R.volume!=D){var Z=Math.round(D)/100;this.castSession_.setReceiverVolumeLevel(Z,(0,_.nG)(function(){s6("set receiver volume: "+Z)},this),(0,_.nG)(function(){this.warn_("failed to set receiver volume.")},this))}R.muted!=Y&&this.castSession_.setReceiverMuted(Y,(0,_.nG)(function(){s6("set receiver muted: "+Y)},this),(0,_.nG)(function(){this.warn_("failed to set receiver muted.")},this))}else{var t={volume:D,
muted:Y};R.volume!=-1&&(t.delta=D-R.volume);vJ(this,"setVolume",t)}R.muted=Y;R.volume=D;bG(this,R)}else oC(this,_.A4(this.setVolume,D,Y))};
_.u.setAudioTrack=function(D,Y){$g(this)?(Y=Y.getLanguageInfo().getId(),vJ(this,"setAudioTrack",{videoId:D,audioTrackId:Y}),D=wT(this),D.audioTrackId=Y,bG(this,D)):oC(this,_.A4(this.setAudioTrack,D,Y))};
_.u.addVideo=function(D){$g(this)?vJ(this,"addVideo",{videoId:D}):oC(this,_.A4(this.addVideo,D))};
_.u.addPlaylist=function(D){$g(this)?vJ(this,"addVideos",{listId:D}):oC(this,_.A4(this.addPlaylist,D))};
_.u.addVideos=function(D){D.length==0?this.warn_("Ignore add videos request due to empty list"):$g(this)?vJ(this,"addVideos",{videoIds:D.join(",")}):oC(this,_.A4(this.addVideos,D))};
_.u.JSC$19665_removeVideo=function(D){$g(this)?vJ(this,"removeVideo",{videoId:D}):oC(this,_.A4(this.JSC$19665_removeVideo,D))};
_.u.JSC$19665_insertVideo=function(D){$g(this)?vJ(this,"insertVideo",{videoId:D}):oC(this,_.A4(this.JSC$19665_insertVideo,D))};
_.u.playVideo=function(D,Y,R,Z,t,X,M){Z=Z===void 0?null:Z;t=t===void 0?null:t;X=X===void 0?null:X;M=M===void 0?null:M;var W=wT(this),z={videoId:D};R!==void 0&&(z.currentIndex=R);k2z(W,D,R||0);Y!==void 0&&(nQ(W,Y),z.currentTime=Y);Z&&(z.listId=Z);t&&(z.playerParams=t);X&&(z.clickTrackingParams=X);M&&(z.locationInfo=(0,_.bQ)(M));vJ(this,"setPlaylist",z);Z||bG(this,W)};
_.u.nextVideo=function(D,Y){if($g(this)){if(D&&Y){var R=wT(this);k2z(R,D,Y);bG(this,R)}vJ(this,"next")}else oC(this,_.A4(this.nextVideo,D,Y))};
_.u.clearPlaylist=function(){if($g(this)){vJ(this,"clearPlaylist");var D=wT(this);D.reset();bG(this,D);this.publish("remotePlayerChange")}else oC(this,this.clearPlaylist)};
_.u.dispose=function(){if(this.state_!=3){var D=this.state_;this.state_=3;this.publish("proxyStateChange",D,this.state_)}_.If.prototype.dispose.call(this)};
_.u.disposeInternal=function(){qYh(this);this.connection_=null;this.actionQueue_.clear();hNt(this,null);_.If.prototype.disposeInternal.call(this)};
var Kbz=function(D){_.xs("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(Y){this.contextSubscriptions_.push(this.connection_.subscribe(Y,_.A4(this.onProxyEvent_,Y),this))},D)},qYh=function(D){_.xs(D.contextSubscriptions_,function(Y){this.connection_.unsubscribeByKey(Y)},D);
D.contextSubscriptions_.length=0},$g=function(D){return D.getState()==1},oC=function(D,Y){D.actionQueue_.getCount()<50&&D.actionQueue_.enqueue(Y)},mDE=function(D,Y,R){var Z=wT(D);
nQ(Z,R);Z.playerState!=-1E3&&(Z.playerState=Y);bG(D,Z)},vJ=function(D,Y,R){D.connection_.sendMessage(Y,R)},bG=function(D,Y){qYh(D);
D.connection_.setPlayerContextData(UDK(Y));Kbz(D)};
rT.prototype.setState_=function(D){if((D!=this.state_||D==2)&&this.state_!=3&&D!=0){var Y=this.state_;this.state_=D;this.publish("proxyStateChange",Y,D);if(D==1)for(;!this.actionQueue_.isEmpty();)D=this.actionQueue_,YnK(D),D.front_.pop().apply(this);else D==3&&this.dispose()}};
rT.prototype.onProxyEvent_=function(D,Y){this.publish(D,Y)};
var hNt=function(D,Y){D.castSession_&&(D.castSession_.removeUpdateListener(D.boundCastStatusListener_),D.castSession_.removeMediaListener(D.boundCastMediaListener_),D.onCastMediaChange_(null));D.castSession_=Y;if(D.castSession_&&(s6("Setting cast session: "+D.castSession_.sessionId),D.castSession_.addUpdateListener(D.boundCastStatusListener_),D.castSession_.addMediaListener(D.boundCastMediaListener_),D.castSession_.media.length))D.onCastMediaChange_(D.castSession_.media[0])};
rT.prototype.onCastStatusUpdate_=function(D){if(!D)this.onCastMediaChange_(null),hNt(this,null);else if(this.castSession_.receiver.volume){D=this.castSession_.receiver.volume;var Y=wT(this),R=Math.round(100*D.level||0);if(Y.volume!=R||Y.muted!=D.muted)s6("Cast volume update: "+D.level+(D.muted?" muted":"")),Y.volume=R,Y.muted=!!D.muted,bG(this,Y)}};
rT.prototype.onCastMediaChange_=function(D){s6("Cast media: "+!!D);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=D)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),HS9(this),this.publish("remotePlayerChange")};
var HS9=function(D){var Y=D.castMedia_.media,R=D.castMedia_.customData;if(Y&&R){var Z=wT(D);Y.contentId!=Z.videoId&&s6("Cast changing video to: "+Y.contentId);Z.videoId=Y.contentId;Z.playerState=R.playerState;nQ(Z,D.castMedia_.getEstimatedTime());bG(D,Z)}else s6("No cast media video. Ignoring state update.")};
rT.prototype.onCastMediaUpdate_=function(D){if(D)HS9(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
rT.prototype.onCloudviewAvailabilityChange_=function(){var D=W40();D&&hNt(this,D)};
rT.prototype.warn_=function(D){tY("CP",D)};
var Lbz=function(D,Y,R){return(0,_.nG)(function(Z){this.warn_("Failed to "+Y+" with cast v2 channel. Error code: "+Z.code);Z.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+Y+" using MDx browser channel."),vJ(this,Y,R))},D)};var N_=function(D,Y,R,Z){Z=Z===void 0?!1:Z;_.If.call(this);var t=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$19670_http_=D;this.enableConnectWithInitialState_=Z;this.listeners_.push(_.O1(window,"beforeunload",function(){t.JSC$19673_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new IY;this.currentScreenId_=Y.id;this.currentScreenIdType_=Y.idType;this.channelService=N$z(this.JSC$19670_http_,R,this.JSC$19673_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){xDu(t)});
this.channelService.listen("channelClosed",function(){yY("Channel closed");isNaN(t.connectTimerId_)?Dz(!0):Dz();t.dispose()});
this.channelService.listen("channelError",function(X){Dz();isNaN(t.getReconnectTimeout_())?(X==1&&t.currentScreenIdType_=="shortLived"&&t.publish("browserChannelAuthError",X),yY("Channel error: "+X+" without reconnection"),t.dispose()):(t.reconnecting_=!0,yY("Channel error: "+X+" with reconnection in "+t.getReconnectTimeout_()+" ms"),PHI(t,2))});
this.channelService.listen("channelMessage",function(X){Qv9(t,X)});
this.channelService.setLoungeToken(Y.token);this.subscribe("remoteQueueChange",function(){var X=t.playerContext_.videoId;FV0()&&_.I8("yt-remote-session-video-id",X)})};
_.n(N_,_.If);
N_.prototype.connect=function(D,Y){if(Y){var R=Y.listId,Z=Y.videoId,t=Y.videoIds,X=Y.playerParams,M=Y.clickTrackingParams,W=Y.index,z={videoId:Z},I=Y.currentTime,F=Y.locationInfo;Y=Y.loopMode;I!==void 0&&(z.currentTime=I<=5?0:I);X&&(z.playerParams=X);F&&(z.locationInfo=F);M&&(z.clickTrackingParams=M);R&&(z.listId=R);t&&t.length>0&&(z.videoIds=t.join(","));W!==void 0&&(z.currentIndex=W);this.enableConnectWithInitialState_&&(z.loopMode=Y||"LOOP_MODE_OFF");R&&(this.playerContext_.listId=R);this.playerContext_.videoId=
Z;this.playerContext_.index=W||0;this.playerContext_.state=3;nQ(this.playerContext_,I);this.autoplayMode_="UNSUPPORTED";R=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";yY("Connecting with "+R+" and params: "+(0,_.bQ)(z));this.channelService.connect({method:R,params:(0,_.bQ)(z)},D,A6I())}else yY("Connecting without params"),this.channelService.connect({},D,A6I());BMu(this)};
N_.prototype.setLoungeToken=function(D){this.channelService.setLoungeToken(D)};
N_.prototype.dispose=function(){this.isDisposed()||(_.ix("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),PHI(this,3));_.If.prototype.dispose.call(this)};
N_.prototype.disposeInternal=function(){pHb(this);E$K(this);g$h(this);_.Wr(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Wr(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.xIo(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.If.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var dDT=function(D){return _.JS(D.connectedDevices_,function(Y){return Y.type=="LOUNGE_SCREEN"})},yY=function(D){tY("conn",D)},PHI=function(D,Y){D.publish("proxyStateChange",Y)},BMu=function(D){D.connectTimerId_=_.ME(function(){yY("Connecting timeout");
D.JSC$19673_disconnect_(1)},2E4)},pHb=function(D){_.Wr(D.connectTimerId_);
D.connectTimerId_=NaN},g$h=function(D){_.Wr(D.reconnectedCheckScreenTimeout_);
D.reconnectedCheckScreenTimeout_=NaN},iS9=function(D){E$K(D);
D.playingSyncTimerId_=_.ME(function(){lG(D,"getNowPlaying")},2E4)},E$K=function(D){_.Wr(D.playingSyncTimerId_);
D.playingSyncTimerId_=NaN},xDu=function(D){yY("Channel opened");
D.reconnecting_&&(D.reconnecting_=!1,g$h(D),D.reconnectedCheckScreenTimeout_=_.ME(function(){yY("Timing out waiting for a screen.");D.JSC$19673_disconnect_(1)},15E3))},cUT=function(D,Y){var R=null;
if(Y){var Z=dDT(D);Z&&(R={clientName:Z.clientName,deviceMake:Z.brand,deviceModel:Z.model,osVersion:Z.osVersion})}_.ix("yt.mdx.remote.remoteClient_",R);Y&&(pHb(D),g$h(D));R=D.channelService.isChannelOpened()&&isNaN(D.connectTimerId_);Y==R?Y&&(PHI(D,1),lG(D,"getSubtitlesTrack")):Y?(D.getOtherConnectedRemoteId_()&&D.playerContext_.reset(),PHI(D,1),lG(D,"getNowPlaying"),OSz(D)):D.JSC$19673_disconnect_(1)},Dfh=function(D,Y){var R=Y.params.videoId;
delete Y.params.videoId;R==D.playerContext_.videoId&&(_.y7.isEmpty(Y.params)?D.playerContext_.trackData=null:D.playerContext_.trackData=Y.params,D.publish("remotePlayerChange"))},YXK=function(D,Y,R){var Z=Y.params.videoId||Y.params.video_id,t=parseInt(Y.params.currentIndex,10);
D.playerContext_.listId=Y.params.listId||D.playerContext_.listId;k2z(D.playerContext_,Z,t);D.publish("remoteQueueChange",R)},R89=function(D,Y){Y.params=Y.params||{};
YXK(D,Y,"NOW_PLAYING_MAY_CHANGE");D.onStateChange_(Y);D.publish("autoplayDismissed")};
N_.prototype.onStateChange_=function(D){var Y=parseInt(D.params.currentTime||D.params.current_time,10);nQ(this.playerContext_,isNaN(Y)?0:Y);Y=parseInt(D.params.state,10);Y=isNaN(Y)?-1:Y;Y==-1&&this.playerContext_.playerState==-1E3&&(Y=-1E3);this.playerContext_.playerState=Y;Y=Number(D.params.loadedTime);this.playerContext_.loadedTime=isNaN(Y)?0:Y;Y=Number(D.params.duration);this.playerContext_.duration_=isNaN(Y)?0:Y;Y=this.playerContext_;var R=Number(D.params.liveIngestionTime);Y.liveIngestionTime_=
R;Y.isLive_=isNaN(R)?!1:!0;Y=this.playerContext_;R=Number(D.params.seekableStartTime);D=Number(D.params.seekableEndTime);Y.seekableStart_=isNaN(R)?0:R;Y.seekableEnd_=isNaN(D)?0:D;this.playerContext_.playerState==1?iS9(this):E$K(this);this.publish("remotePlayerChange")};
N_.prototype.onAdStateChange_=function(D){if(this.playerContext_.playerState!=-1E3){var Y=1085;switch(parseInt(D.params.adState,10)){case 1:Y=1081;break;case 2:Y=1084;break;case 0:Y=1083}this.playerContext_.playerState=Y;D=parseInt(D.params.currentTime,10);nQ(this.playerContext_,isNaN(D)?0:D);this.publish("remotePlayerChange")}};
var ZV9=function(D,Y){var R=Y.params.muted=="true";D.playerContext_.volume=parseInt(Y.params.volume,10);D.playerContext_.muted=R;D.publish("remotePlayerChange")},tmK=function(D,Y){D.autoplayVideoId_=Y.params.videoId;
D.publish("nowAutoplaying",parseInt(Y.params.timeout,10))},sXz=function(D,Y){D.autoplayVideoId_=Y.params.videoId||null;
D.publish("autoplayUpNext",D.autoplayVideoId_)},XVp=function(D,Y){D.autoplayMode_=Y.params.autoplayMode;
D.publish("autoplayModeChange",D.autoplayMode_);D.autoplayMode_=="DISABLED"&&D.publish("autoplayDismissed")},u1b=function(D,Y){var R=Y.params.hasNext=="true";
D.playerContext_.hasPrevious=Y.params.hasPrevious=="true";D.playerContext_.hasNext=R;D.publish("previousNextChange")};
N_.prototype.isCapabilitySupportedOnConnectedDevices_=function(D){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var Y=_.a(this.connectedDevices_),R=Y.next();!R.done;R=Y.next())if(!R.value.capabilities.has(D))return!1;return!0};
var Qv9=function(D,Y){Y=Y.message;Y.params?yY("Received: action="+Y.action+", params="+(0,_.bQ)(Y.params)):yY("Received: action="+Y.action+" {}");switch(Y.action){case "loungeStatus":Y=(0,_.NA)(Y.params.devices);D.connectedDevices_=_.N1(Y,function(Z){return new WJ(Z)});
Y=!!_.JS(D.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
cUT(D,Y);Y=D.isCapabilitySupportedOnConnectedDevices_("mlm");D.publish("multiStateLoopEnabled",Y);break;case "loungeScreenDisconnected":yN0(D.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
cUT(D,!1);break;case "remoteConnected":var R=new WJ((0,_.NA)(Y.params.device));_.JS(D.connectedDevices_,function(Z){return Z.equals(R)})||_.AS9(D.connectedDevices_,R);
break;case "remoteDisconnected":R=new WJ((0,_.NA)(Y.params.device));yN0(D.connectedDevices_,function(Z){return Z.equals(R)});
break;case "gracefulDisconnect":break;case "playlistModified":YXK(D,Y,"QUEUE_MODIFIED");break;case "nowPlaying":R89(D,Y);break;case "onStateChange":D.onStateChange_(Y);break;case "onAdStateChange":D.onAdStateChange_(Y);break;case "onVolumeChanged":ZV9(D,Y);break;case "onSubtitlesTrackChanged":Dfh(D,Y);break;case "nowAutoplaying":tmK(D,Y);break;case "autoplayDismissed":D.publish("autoplayDismissed");break;case "autoplayUpNext":sXz(D,Y);break;case "onAutoplayModeChanged":XVp(D,Y);break;case "onHasPreviousNextChanged":u1b(D,
Y);break;case "requestAssistedSignIn":D.publish("assistedSignInRequested",Y.params.authCode);break;case "onLoopModeChanged":D.publish("loopModeChange",Y.params.loopMode);break;default:yY("Unrecognized action: "+Y.action)}};
_.u=N_.prototype;_.u.getProxyState_=function(){var D=3;this.isDisposed()||(D=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(D=1):D=2);return D};
_.u.JSC$19673_disconnect_=function(D){yY("Disconnecting with "+D);_.ix("yt.mdx.remote.remoteClient_",null);pHb(this);this.publish("beforeDisconnect",D);D==1&&Dz();this.channelService.disconnect(D);this.dispose()};
_.u.getPlayerContextData_=function(){var D=this.playerContext_;this.clientVideoId_&&(D=this.playerContext_.clone(),k2z(D,this.clientVideoId_,D.index));return UDK(D)};
_.u.setPlayerContextData_=function(D){var Y=this,R=new IY(D);R.videoId&&R.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=R.videoId,_.Wr(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.ME(function(){if(Y.clientVideoId_){var t=Y.clientVideoId_;Y.clientVideoId_=null;Y.playerContext_.videoId!=t&&lG(Y,"getNowPlaying")}},5E3));
var Z=[];this.playerContext_.listId==R.listId&&this.playerContext_.videoId==R.videoId&&this.playerContext_.index==R.index||Z.push("remoteQueueChange");this.playerContext_.playerState==R.playerState&&this.playerContext_.volume==R.volume&&this.playerContext_.muted==R.muted&&JUK(this.playerContext_)==JUK(R)&&(0,_.bQ)(this.playerContext_.trackData)==(0,_.bQ)(R.trackData)||Z.push("remotePlayerChange");this.playerContext_.reset(D);_.xs(Z,function(t){this.publish(t)},this)};
_.u.getOtherConnectedRemoteId_=function(){var D=this.channelService.getDeviceId(),Y=_.JS(this.connectedDevices_,function(R){return R.type=="REMOTE_CONTROL"&&R.id!=D});
return Y?Y.id:""};
_.u.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.u.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.u.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.u.JSC$19673_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var OSz=function(D){_.Wr(D.idleDisconnectTimerId_);D.idleDisconnectTimerId_=_.ME(function(){D.JSC$19673_disconnect_(1)},864E5)},lG=function(D,Y,R){R?yY("Sending: action="+Y+", params="+(0,_.bQ)(R)):yY("Sending: action="+Y);
D.channelService.sendMessage(Y,R)};
N_.prototype.sendMessageWithUserAction_=function(D,Y){lG(this,D,Y);OSz(this)};
N_.prototype.JSC$19673_getXsrfToken_=function(){var D=_.FW.get("SAPISID","")||_.FW.get("__Secure-1PAPISID",void 0)||"",Y=_.FW.get("__Secure-3PAPISID","")||"";if(!D&&!Y)return"";D=_.rb(_.eH(D),2);Y=_.rb(_.eH(Y),2);return _.rb(_.eH(","+D+","+Y),2)};
N_.prototype.subscribe=N_.prototype.subscribe;N_.prototype.unsubscribeByKey=N_.prototype.unsubscribeByKey;N_.prototype.getProxyState=N_.prototype.getProxyState_;N_.prototype.disconnect=N_.prototype.JSC$19673_disconnect_;N_.prototype.getPlayerContextData=N_.prototype.getPlayerContextData_;N_.prototype.setPlayerContextData=N_.prototype.setPlayerContextData_;N_.prototype.getOtherConnectedRemoteId=N_.prototype.getOtherConnectedRemoteId_;N_.prototype.getReconnectTimeout=N_.prototype.getReconnectTimeout_;
N_.prototype.getAutoplayMode=N_.prototype.getAutoplayMode_;N_.prototype.getAutoplayVideoId=N_.prototype.getAutoplayVideoId_;N_.prototype.reconnect=N_.prototype.JSC$19673_reconnect_;N_.prototype.sendMessage=N_.prototype.sendMessageWithUserAction_;N_.prototype.getXsrfToken=N_.prototype.JSC$19673_getXsrfToken_;N_.prototype.isCapabilitySupportedOnConnectedDevices=N_.prototype.isCapabilitySupportedOnConnectedDevices_;var au0=function(D){uF.call(this,"ScreenServiceProxy");this.instance_=D;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.nG)(this.JSC$19676_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.nG)(this.onOnlineScreenChange_,this)))};
_.n(au0,uF);_.u=au0.prototype;_.u.getScreens=function(D){return this.instance_.$_gs(D)};
_.u.contains=function(D){return!!this.instance_.$_c(D)};
_.u.get=function(D){return this.instance_.$_g(D)};
_.u.start=function(){this.instance_.$_st()};
_.u.add=function(D,Y,R){this.instance_.$_a(D,Y,R)};
_.u.remove=function(D,Y,R){this.instance_.$_r(D,Y,R)};
_.u.updateName=function(D,Y,R,Z){this.instance_.$_un(D,Y,R,Z)};
_.u.disposeInternal=function(){for(var D=this.subscriptionKeys_.length,Y=0;Y<D;++Y)this.instance_.$_ubk(this.subscriptionKeys_[Y]);this.subscriptionKeys_.length=0;this.instance_=null;uF.prototype.disposeInternal.call(this)};
_.u.JSC$19676_onScreenChange_=function(){this.publish("screenChange")};
_.u.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
C3.prototype.$_st=C3.prototype.start;C3.prototype.$_gspc=C3.prototype.JSC$19635_getScreenByPairingCode;C3.prototype.$_gsppc=C3.prototype.JSC$19635_getScreenByPollingPairingCode;C3.prototype.$_c=C3.prototype.contains;C3.prototype.$_g=C3.prototype.get;C3.prototype.$_a=C3.prototype.add;C3.prototype.$_un=C3.prototype.updateName;C3.prototype.$_r=C3.prototype.remove;C3.prototype.$_gs=C3.prototype.getScreens;C3.prototype.$_gos=C3.prototype.JSC$19635_getOnlineScreens;C3.prototype.$_s=C3.prototype.subscribe;
C3.prototype.$_ubk=C3.prototype.unsubscribeByKey;var jX9=function(D){$3k();if(!YD||!YD.get("yt-remote-disable-remote-module-for-dev")){D=_.JQ("MDX_CONFIG")||D;xiK();VII();JC||(JC=new dN(D?D.loungeApiHost:void 0),vIT()&&(JC.basePath="/api/loungedev"));kg||(kg=_.mf("yt.mdx.remote.deferredProxies_")||[],_.ix("yt.mdx.remote.deferredProxies_",kg));Mm9();var Y=Ua();if(!Y){var R=new C3(JC,D?D.disableAutomaticScreenCache||!1:!1);_.ix("yt.mdx.remote.screenService_",R);Y=Ua();var Z={};D&&(Z={appId:D.appId,disableDial:D.disableDial,theme:D.theme,loadCastApiSetupScript:D.loadCastApiSetupScript,
disableCastApi:D.disableCastApi,enableDialLoungeToken:D.enableDialLoungeToken,enableCastLoungeToken:D.enableCastLoungeToken,forceMirroring:D.forceMirroring});_.ix("yt.mdx.remote.enableConnectWithInitialState_",D?D.enableConnectWithInitialState||!1:!1);sUh(R,function(X){X?KQ()&&SgK(KQ(),"YouTube TV"):R.subscribe("onlineScreenChange",function(){ns("yt-remote-receiver-availability-change")})},Z)}if(D&&!_.mf("yt.mdx.remote.initialized_")){_.ix("yt.mdx.remote.initialized_",!0);
hC("Initializing: "+(0,_.bQ)(D));LQ.push(_.Xn("yt-remote-cast2-api-ready",function(){ns("yt-remote-api-ready")}));
LQ.push(_.Xn("yt-remote-cast2-availability-change",function(){ns("yt-remote-receiver-availability-change")}));
LQ.push(_.Xn("yt-remote-cast2-receiver-selected",function(){C60();ns("yt-remote-auto-connect","cast-selector-receiver")}));
LQ.push(_.Xn("yt-remote-cast2-receiver-resumed",function(){ns("yt-remote-receiver-resumed","cast-selector-receiver")}));
LQ.push(_.Xn("yt-remote-cast2-session-change",WTE));LQ.push(_.Xn("yt-remote-connection-change",function(X){X?SgK(KQ(),"YouTube TV"):z8K()||(SgK(null,null),CPz())}));
LQ.push(_.Xn("yt-remote-cast2-session-failed",function(){ns("yt-remote-connection-failed")}));
Z=SXz();D.isAuto&&(Z.id+="#dial");var t=D.capabilities||[];t.length>0&&(Z.capabilities=t);Z.name=D.device;Z.app=D.app;(D=D.theme)&&(Z.theme=D);hC(" -- with channel params: "+(0,_.bQ)(Z));Z?(_.I8("yt-remote-session-app",Z.app),_.I8("yt-remote-session-name",Z.name)):(_.G5("yt-remote-session-app"),_.G5("yt-remote-session-name"));_.ix("yt.mdx.remote.channelParams_",Z);Y.start();KQ()||TGE()}}},FTt=function(){var D=Ua().instance_.$_gos();
var Y=Iu9();Y&&mR()&&(T$T(D,Y)||D.push(Y));return S$E(D)},Gxt=function(){var D=FTt(),Y=Iu9();
Y||(Y=z8K());return _.JS(D,function(R){return Y&&Ot(Y,R.key)?!0:!1})},Iu9=function(){var D=KQ();
if(!D)return null;var Y=Ua().getScreens();return c9(Y,D)},WTE=function(D){hC("remote.onCastSessionChange_: "+TdI(D));
if(D){var Y=Iu9();Y&&Y.id==D.id?(SgK(Y.id,"YouTube TV"),D.idType=="shortLived"&&(D=D.token)&&(Y=mR())&&Y.setLoungeToken(D)):(Y&&Vmt(),fuK(D,1))}else mR()&&Vmt()},Vmt=function(){zJT()?TN().stopSession():Sz("stopSession called before API ready.");
var D=mR();D&&(D.disconnect(1),e8z(null))},A7k=function(){var D=mR();
return D&&D.getProxyState()!=3?new rT(mR(),void 0):null},hC=function(D){tY("remote",D)},Ua=function(){if(!nbk){var D=_.mf("yt.mdx.remote.screenService_");
nbk=D?new au0(D):null}return nbk},KQ=function(){return _.mf("yt.mdx.remote.currentScreenId_")},r7E=function(D){_.ix("yt.mdx.remote.currentScreenId_",D)},C60=function(){_.ix("yt.mdx.remote.connectData_",null)},mR=function(){return _.mf("yt.mdx.remote.connection_")},e8z=function(D){var Y=mR();
C60();D||r7E("");_.ix("yt.mdx.remote.connection_",D);kg&&(_.xs(kg,function(R){R(D)}),kg.length=0);
Y&&!D?ns("yt-remote-connection-change",!1):!Y&&D&&ns("yt-remote-connection-change",!0)},z8K=function(){var D=FV0();
if(!D)return null;var Y=Ua();if(!Y)return null;Y=Y.getScreens();return c9(Y,D)},fuK=function(D,Y){r7E(D.id);
D=new N_(JC,D,SXz(),_.mf("yt.mdx.remote.enableConnectWithInitialState_")||!1);D.connect(Y,_.mf("yt.mdx.remote.connectData_"));D.subscribe("beforeDisconnect",function(R){ns("yt-remote-before-disconnect",R)});
D.subscribe("beforeDispose",function(){mR()&&e8z(null)});
D.subscribe("browserChannelAuthError",function(){var R=Iu9();R&&R.idType=="shortLived"&&(zJT()?TN().handleBrowserChannelAuthError():Sz("refreshLoungeToken called before API ready."))});
e8z(D)},TGE=function(){var D=z8K();
D?(hC("Resume connection to: "+TdI(D)),fuK(D,0)):(Dz(),CPz(),hC("Skipping connecting because no session screen found."))},JC=null,kg=null,nbk=null,Mm9=function(){var D=SXz();
if(_.y7.isEmpty(D)){D=IlI();var Y=_.FJ("yt-remote-session-name")||"",R=_.FJ("yt-remote-session-app")||"";D={device:"REMOTE_CONTROL",id:D,name:Y,app:R,mdxVersion:3};D.authuser=String(_.JQ("SESSION_INDEX","0"));(Y=_.JQ("DELEGATED_SESSION_ID"))&&(D.pageId=String(Y));_.ix("yt.mdx.remote.channelParams_",D)}},SXz=function(){return _.mf("yt.mdx.remote.channelParams_")||{}},LQ=[];var wVu=new _.U1("yt-menu"),$f9=function(){},obk=function(D,Y,R){D=Y=="right-click"?R.rightClickMenuPopupHint:R.menuPopupHint;
if(!(vb9(Y)>10))return Y=Y||"default",wVu.set(Y+"-impression",vb9(Y)+1),D},vb9=function(D){return parseInt(wVu.get((D||"default")+"-impression")||0,10)};
_.tr($f9);var bVk=function(){this.contexts_=new WeakMap;this.JSC$19682_networkService_=this.activeContext_=null},y79=function(D,Y,R){var Z=D.contexts_.get(Y);
Z||(Z=new qRb(D.JSC$19682_networkService_),D.contexts_.set(Y,Z));D.activeContext_=Z;R&&D.activeContext_.reset();D.activeContext_.start();return D.activeContext_};var q_=function(){};
q_.prototype.enqueue=function(){var D=this,Y;return _.C(function(R){if(D.isCounterfactual())return(Y=D.getCounterfactualData())&&D.shouldLogCounterfactualImpression()&&D.sendImpressionEndpoints(Y),R.return();D.doEnqueue();_.V9(R)})};
q_.prototype.sendImpressionEndpoints=function(D){_.Bm.getInstance().triggerOptionalAction("yt-service-request",{},D[0])};var HJ=function(D,Y){this.renderer=D;this.page=Y};
_.n(HJ,q_);HJ.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
HJ.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
HJ.prototype.shouldLogCounterfactualImpression=function(){return!0};
HJ.prototype.doEnqueue=function(){var D=_.tx(this.page);D&&D.pause();this.renderer.impressionCommand&&_.Bm.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.hH(_.Bm.getInstance(),[this.renderer.promoCommand],this.page)};var NGz=function(D,Y){this.renderer=D;this.resolver=_.iq();this.JSC$19694_enforcementCounter=new _.vhE;Y?this.JSC$19694_playerManager=_.tx(Y):this.JSC$19694_playerManager=null;_.Vb(1,!0)};
_.n(NGz,q_);_.u=NGz.prototype;_.u.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var D=[];this.renderer.impressionEndpoints.forEach(function(Y){(Y=_.HL(Y))&&D.push(Y)});
return D}};
_.u.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.u.shouldLogCounterfactualImpression=function(){var D=_.AOj();D?(this.JSC$19694_enforcementCounter.increment("POPUP"),_.Vb(3)):_.Vb(2);return D};
_.u.cancel=function(){this.resolver.promise.cancel()};
_.u.doEnqueue=function(){var D=this;_.AOj()?(this.JSC$19694_enforcementCounter.increment("POPUP"),_.Vb(3),lup(this)):this.JSC$19694_playerManager?(this.resolver.promise.then(function(){lup(D)}),J7k(this.resolver,this.JSC$19694_playerManager)):_.Vb(2)};
var J7k=function(D,Y){var R=_.iq();Y.getPlayerPromise().then(function(Z){R.resolve(Z)});
R.promise.then(function(Z){Z.addEventListener("onAbnormalityDetected",D.resolve);_.$B(D.promise,function(){Z.removeEventListener("onAbnormalityDetected",D.resolve)})});
D.promise.thenCatch(function(){R.promise.cancel()})},lup=function(D){_.Vb(3);
var Y={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:D.renderer}};Y=_.Bm.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Y},{});Promise.all(Y).then(function(){kxE();D.JSC$19694_playerManager&&D.JSC$19694_playerManager.pause()})},kxE=function(){TZI(function(D,Y){_.jDK(D,Y);
D===0?_.Vb(7):_.Vb(4)})};var Ufu=function(D,Y){this.renderer=D;this.page=Y;this.resolver=_.iq()};
_.n(Ufu,q_);_.u=Ufu.prototype;_.u.cancel=function(){this.resolver.promise.cancel()};
_.u.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.u.isCounterfactual=function(){return!this.renderer.isVisible};
_.u.shouldLogCounterfactualImpression=function(){return!0};
_.u.doEnqueue=function(){var D=this;this.resolver.promise.then(function(){var R={popup:{mealbarPromoRenderer:D.renderer},popupType:"MEALBAR"};_.Bm.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:R},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var Y=_.tx(this.page);Y&&KTk(this.resolver,Y)}break;default:this.resolver.resolve()}};
var KTk=function(D,Y){var R=_.iq();Y.getPlayerPromise().then(function(Z){R.resolve(Z)});
R.promise.then(function(Z){Z.addEventListener("onAdEnd",D.resolve);_.$B(D.promise,function(){Z.removeEventListener("onAdEnd",D.resolve)})});
D.promise.thenCatch(function(){R.promise.cancel()})};var h8K=function(D,Y){this.renderer=D;this.page=Y};
_.n(h8K,q_);_.u=h8K.prototype;_.u.cancel=function(){this.JSC$19702_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19702_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19702_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.u.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.u.isCounterfactual=function(){return!this.renderer.isVisible};
_.u.shouldLogCounterfactualImpression=function(){return!0};
_.u.doEnqueue=function(){var D=this,Y,R;((Y=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(R=Y.playbackUpsellDialogTriggerConditionData)==null?void 0:R.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19702_downloadedVideosCountSelectorUnsubscriber=_.rm(_.Dl(),MPz,function(Z,t){Z>t&&(LTT(D),D.cancel())}):LTT(this)};
var LTT=function(D){var Y={popup:{upsellDialogRenderer:D.renderer},popupType:"MODAL"};_.Bm.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Y},{});(D=_.tx(D.page))&&D.pause()};var xg={},mfh=(xg.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",xg.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",xg.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",xg.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",xg.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",xg.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",xg.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",xg),qXh=function(D,Y){this.renderer=D;this.targetManager=
Y};
_.n(qXh,q_);_.u=qXh.prototype;_.u.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19709_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19709_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19709_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.u.getCounterfactualData=function(){if(this.isCounterfactual()){var D;return(D=this.renderer.promoConfig)==null?void 0:D.impressionEndpoints}};
_.u.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.u.shouldLogCounterfactualImpression=function(){return!0};
_.u.doEnqueue=function(){var D=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19709_downloadedVideosCountSelectorUnsubscriber=_.rm(_.Dl(),MPz,function(Y,R){D.renderer.targetId&&Y>R&&(sZk(D.targetManager,D.renderer.targetId,HVk(D)),D.cancel())});
break;default:sZk(this.targetManager,this.renderer.targetId,HVk(this))}};
var HVk=function(D){var Y;if((Y=D.renderer.suggestedPosition)==null?0:Y.type)var R=mfh[D.renderer.suggestedPosition.type];R||(R="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:D.renderer},popupType:"HINT",position:R}}};var xfh=function(){this.previousPage=null},P6h;
xfh.prototype.registerPromoCommand=function(D,Y){QXh(this,void 0,void 0,_.A(D.roadblock,XM9),void 0,void 0,Y)};
var QXh=function(D,Y,R,Z,t,X,M){D.previousPage!==M&&D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel();D.previousPage=M;t?(D.pendingEnforcementPromo&&D.pendingEnforcementPromo.cancel(),D.pendingEnforcementPromo=new NGz(t,M),D.pendingEnforcementPromo.enqueue()):X?(D.pendingCommandWrapperPromo=new HJ(X,M),D.pendingCommandWrapperPromo.enqueue()):Z?(D.pendingRoadblockPromo&&D.pendingRoadblockPromo.cancel(),D.pendingRoadblockPromo=new h8K(Z,M),D.pendingRoadblockPromo.enqueue()):Y?(D.pendingMealbarPromo&&
D.pendingMealbarPromo.cancel(),D.pendingMealbarPromo=new Ufu(Y,M),D.pendingMealbarPromo.enqueue()):R&&(D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel(),D.pendingTooltipPromo=new qXh(R,_.bB()),D.pendingTooltipPromo.enqueue())},BGK=function(){P6h||(P6h=new xfh);
return P6h};var GmI=!1;var XKK=function(D,Y){var R=_.JQ("SESSION_INDEX");this.actionToken_=D;this.commonToken_=Y;this.sessionIndex_=R},sPK=function(D){var Y=_.iq(),R=_.mf("payments.business.integration.bootstrap"),Z=_.mf("payments.business.integration"),t=Z.Style.create().withMaterialDesignStyle(),X=Z.mashupMode.popup("instrument-manager");
R.asMashupMode(X).usingUserIndex(D.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(t).inStandaloneContext(Z.standaloneContextAuthId.forUserId()).instrumentManager(D.actionToken_,D.commonToken_.length>0?D.commonToken_:void 0,function(M){var W=M.instrumentId;W?Y.resolve(W):(W=_.mf("payments.business.integration.scenario.InstrumentManager"),Y.reject(M.errorCode&&M.errorCode===W.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(M){_.hQ(M);
Y.reject("instrumentManagerLoadError")});
return Y.promise};var ez=function(D,Y,R){this.payloadName="transactionFlowFailed";this.payload={errorType:D,serializedTransactionFlowLoggingParams:Y,isUserDismiss:R===void 0?!1:R}};
_.ix("yt.ypc.shared.YpcTransactionFlowError",ez);var PJ=function(){return _.Aj.apply(this,arguments)||this};
_.n(PJ,_.Aj);PJ.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
PJ.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
PJ.prototype.onErrorMessageDismiss=PJ.prototype.onErrorMessageDismiss;_.q([_.y({readOnly:!0,observer:"errorRendererChanged"}),_.x("design:type",Object)],PJ.prototype,"errorRenderer",void 0);_.q([_.Fv("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],PJ.prototype,"onErrorMessageDismiss",null);_.q([_.nr()],PJ);var pVK=[PJ.prototype];var EbK;var gb0;var dfK=new _.U1("yt-live-chat"),iVK=new Map;iVK.set("timestamp_toggle","show-timestamps");iVK.set("reactions_toggle","allow-reactions");var QY=function(){return _.N.apply(this,arguments)||this};
_.n(QY,_.N);_.u=QY.prototype;_.u.menuItemIdentifierChanged=function(){var D;(D=this.data)!=null&&D.menuItemIdentifier&&(D=iVK.get(this.data.menuItemIdentifier))&&(_.f("enable_lwe_web_mute")?(D=dfK.get(D),this.isToggled=!(D===void 0?!this.data.isToggled:!D)):this.isToggled=dfK.get(D))};
_.u.onFocus=function(){this.toggleButton.focus()};
_.u.onTap=function(){var D=this.data.command;D&&this.componentBehavior.resolveCommand(D)};
_.u.computeText=function(D,Y,R){return this.componentBehavior.getSimpleString(D?R:Y)};
_.u.computeIcon=function(D,Y,R){return(D=D?R:Y)&&D.iconType?_.IT(D.iconType):""};
QY.prototype.onTap=QY.prototype.onTap;QY.prototype.onFocus=QY.prototype.onFocus;QY.prototype.menuItemIdentifierChanged=QY.prototype.menuItemIdentifierChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],QY.prototype,"componentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QY.prototype,"data",void 0);
_.q([_.y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],QY.prototype,"icon",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],QY.prototype,"isToggled",void 0);_.q([_.fr("tp-yt-paper-toggle-button"),_.x("design:type",Object)],QY.prototype,"toggleButton",void 0);_.q([_.Gm("data.menuItemIdentifier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QY.prototype,"menuItemIdentifierChanged",null);
_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QY.prototype,"onFocus",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QY.prototype,"onTap",null);_.q([_.Lr({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],QY);
_.L(QY,"yt-live-chat-toggle-renderer",function(){if(gb0===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;EbK===void 0&&(EbK=document.createElement("template"));var Z=EbK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);gb0=D}D=gb0;return D},{mode:_.f("live_chat_enable_sink_wrapper")?2:0});var OVk=new _.R6("NAVIGATION_PROGRESS_TOKEN");var c7b={},DLT={},YBk=(DLT[EZI.name]=!0,DLT),BJ=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;D.tabGesturesIsActive=!1;D.actionRouterIsRoot=!0;D.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"};D.pageTitle="";D.titleSuffix="YouTube";D.unseenNotificationCount=
0;D.hasNavigated=!1;D.hasSetScrollTopForNavigation=!1;D.pagePreparer=null;D.zwiebackInitJobId=0;D.dataUpdatePromise=null;D.loadDepsPromise=_.TA();D.hasPendingNavigation=!1;D.pendingPlayerOnResponseReceivedActions=[];return D};
_.n(BJ,_.Aj);BJ.prototype.attached=function(){RdT(this);document.addEventListener("yt-navigate-cache",_.jN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var D=pQ();D.init();D.dispatchElement=this.hostElement};
var RdT=function(D,Y){Y=Y===void 0?0:Y;var R=_.DH().resolve(_.cD(_.o8));if(R)Zab(D,R);else{if(Y>=5)throw Error("al");setTimeout(function(){RdT(D,Y+1)},0)}},Zab=function(D,Y){Y.addEventListener("yt-navigate-start",_.jN(D,D.onYtNavigateStart));
Y.addEventListener("yt-navigate-finish",_.jN(D,D.onYtNavigateFinish));Y.addEventListener("yt-navigate-error",_.jN(D,D.onYtNavigateError));Y.addEventListener("yt-page-data-fetched",_.jN(D,D.onYtPageDataFetched))};
_.u=BJ.prototype;_.u.detached=function(){var D=_.DH().resolve(_.o8);D.removeEventListener("yt-navigate-start",_.jN(this,this.onYtNavigateStart));D.removeEventListener("yt-navigate-finish",_.jN(this,this.onYtNavigateFinish));D.removeEventListener("yt-navigate-error",_.jN(this,this.onYtNavigateError));D.removeEventListener("yt-page-data-fetched",_.jN(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.jN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.u.setPageOffset=function(D,Y){D?_.CX(this.hostElement,"yt-set-page-offset",[D,Y]):_.Nb(Error("bl"))};
_.u.setPageOffsetForNavigation=function(D,Y){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(D,Y))};
_.u.onYtNavigateSetPageOffset=function(D,Y){this.setPageOffsetForNavigation(Y.page,Y.offset)};
_.u.getPageOffset=function(){var D=_.aU(this.hostElement).querySelector("#page-manager").getCurrentPage(),Y=0;D&&(Y=_.CX(this.hostElement,"yt-get-page-offset",[D])[0]);return Y};
_.u.onYtHistoryPop=function(D,Y){if(_.ks("DISABLE_WARM_LOADS"))D.preventDefault(),window.location.reload();else{var R=_.DH().resolve(_.o8);R.hasPendingNavigation()&&D.preventDefault();R.cancelPendingNavigation();_.WC(this.hostElement,"yt-pending-navigation-cancelled");Y.errorMsg&&(D=Y.errorMsg.split(" - "),Y=Error(D[0]),D.length==2&&D[1]&&(_.kN(Y,D[1]),_.Jk(Y)),window.location.reload())}};
_.u.onYtHistoryLoad=function(D,Y){var R=this;if(_.ks("DISABLE_WARM_LOADS"))window.location.reload();else{(D=Y.endpoint)&&Object.keys(D).length||(D=null);var Z=Y.historyEntry,t=_.DH().resolve(_.o8),X=_.DH().resolve(_.Z4),M=null;Z&&Z.rootData&&(M=Z.rootData);var W=M&&t69(M);!M||W||M.filler?D?(t.navigate(D,!0),s2z(this,D)):(Y.legacyBorder||W||(Y.JSC$30005_savedComponentState==null&&M==null?_.Jk(new _.AT("Incomplete history entry",Y.forward)):_.lo(new _.AT("Malformed history entry",Y.JSC$30005_savedComponentState,
Y.forward,M))),window.location.reload()):(_.ZJ$({isHot:!0}),_.k8({webInfo:{navigationReason:"h"}}),_.GCn(),_.KX("srt"),_.KX("pdc"),this.cancelPendingTasks(),X1k(this,Y.forward,M),M.player&&(M.player.loaded=!1),s2z(this,D),_.tpE(t,D||{},M,2,{},!1,Y).then(function(){R.setPageOffset(X.getCurrentPage(),Z.scrollTop||0)}))}};
_.u.initHistoryManager=function(D){if(!this.hasNavigated){this.hasNavigated=!0;var Y=_.aU(this.hostElement).querySelector("#page-manager").getCurrentData();D=isNaN(D)?this.getPageOffset():D;var R=_.DH().resolve(_.o8).currentEndpoint;this.replaceState(R,Y,D)}};
_.u.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.u.onYtNavigateStart=function(D,Y){this.cancelPendingTasks();Y.noProgressBar||(D=_.DH().resolve(_.cD(OVk)))&&D.start();D=this.hasPendingNavigation?null:this.data;var R=_.DH().resolve(_.Z4),Z,t,X;_.f("kevlar_use_vimio_behavior")&&!((Z=Y.endpoint)==null?0:(t=Z.commandMetadata)==null?0:(X=t.webCommandMetadata)==null?0:X.ignoreNavigation)&&(Z=R.getCurrentPage())&&Z.disconnectVisibilityRoot();R.prepareForNavigation(Y.pageType,Y.endpoint);_.f("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Xh(1,
"pcl"),_.uu(this.pagePreparer,R.preparePage.bind(R,Y.pageType,Y.endpoint)));Z=this.getPageOffset();this.initHistoryManager(Z);Y.reload||this.hasPendingNavigation?(_.f("web_enable_delay_shorts_sequence_call")&&Y.pageType==="shorts"&&_.MX(this.hostElement,"yt-shorts-reset"),this.replaceState(Y.endpoint,D,Z)):(D==null?void 0:D.page)==="watch"&&Y.pageType==="watch"&&_.f("kevlar_replace_watch_to_watch_history_state")?this.replaceState(Y.endpoint,D,Z):(D==null?void 0:D.page)!=="shorts"||Y.pageType!=="shorts"||
Y.endpoint.reelWatchEndpoint.sequenceParams||_.f("short_to_short_back_nav_killswitch")?Y.type!="navigate-back"&&Y.type!="navigate-forward"&&(Y.pageType==="shorts"&&_.MX(this.hostElement,"yt-shorts-reset"),this.saveAndPush(Y.url,Y.endpoint,D,Z)):(_.f("web_enable_delay_shorts_sequence_call")&&(Y.endpoint.reelWatchEndpoint.sequenceParams=D==null?void 0:D.cachedSequenceParams,Y.endpoint.reelWatchEndpoint.sequenceProvider=D==null?void 0:D.cachedSequenceProvider),this.replaceState(Y.endpoint,D,0));this.hasPendingNavigation=
!0};
var uCh=function(D){D.hasPendingNavigation=!1;(D=_.DH().resolve(_.cD(OVk)))&&D.finish()};
BJ.prototype.onYtNavigateError=function(D,Y){uCh(this);D=this.get("endpoint.commandMetadata.webCommandMetadata.url",Y);var R=_.QL(window.location.href);D&&!R.pbjreload&&(Y=Y.navigationErrorReason||"10",_.f("kevlar_parent_on_pbjreload")&&(R={csn:_.K2()},this.get("data.endpoint.clickTrackingParams")&&(R.itct=this.data.endpoint.clickTrackingParams),_.Rb(D,R)),_.pn(_.BD(D,{pbjreload:Y})))};
BJ.prototype.onYtNavigateCache=function(D,Y){var R=this,Z=Y.url,t=Y.endpoint,X=Y.data;D=!!Y.miniplayer;Y=!!Y.skipHistory;if(Z&&t&&X){var M=this.getPageOffset(),W=this.data||null;Y||this.saveAndPush(Z,t,W,M);Z=_.tpE(_.DH().resolve(_.o8),t,X,D?4:3,{},D);D&&Z.then(function(){R.dataUpdatePromise&&R.dataUpdatePromise.then(function(){var z=_.DH().resolve(_.Z4);R.setPageOffset(z.getCurrentPage(),0)})})}};
BJ.prototype.onYtNavigateFinish=function(D,Y){var R=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){aIu(R,Y.fromHistory)})};
var aIu=function(D,Y){uCh(D);if(D.pendingPlayerOnResponseReceivedActions){for(var R=_.a(D.pendingPlayerOnResponseReceivedActions),Z=R.next();!Z.done;Z=R.next())_.Vu(Z.value,D.hostElement);D.pendingPlayerOnResponseReceivedActions=[]}R=_.DH().resolve(_.Z4);Y||!D.hasNavigated||_.f("web_disable_scroll_on_navigate_finish")||((Y=R.getCurrentPage())?Y.is==="ytd-shorts"||D.tabGesturesIsActive||D.setPageOffsetForNavigation(Y,0):_.Jk(Error("cl")));_.BE(function(){_.BE(function(){_.KX("pda")})})};
BJ.prototype.onYtNavigate=function(D){if(!D.detail.endpoint){var Y=new _.AT("Error: Missing yt-navigate endpoint from target:",D.target,D.target.nodeName);_.Nb(Y)}if(Y=_.f("cold_missing_history"))Y=pQ(),Y.init(!1),Y=!(Y.browserHistory.boundHistoryReplaceState&&Y.browserHistory.boundHistoryPushState);if(Y){_.l1("DISABLE_WARM_LOADS",!0);Y=new _.AT("Failed to initialize history manager",this.getDebugString());var R=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
R?_.Jk(Y):_.Nb(Y)}Y=D.detail.endpoint;var Z,t;_.f("debug_forward_web_query_parameters")&&((Z=Y.commandMetadata)==null?0:(t=Z.webCommandMetadata)==null?0:t.url)&&(Y=JSON.parse(JSON.stringify(Y)),Y.commandMetadata.webCommandMetadata.url=_.xXl(Y.commandMetadata.webCommandMetadata.url,window.location.search));D={type:0,command:Y,form:{params:D.detail.params,tempData:D.detail.tempData||{},requestType:D.detail.type,createScreenConfig:D.detail.createScreenConfig,reload:D.detail.reload?D.detail.reload:!1,
requestForm:D.detail}};_.f("kevlar_yt_navigate_command_handler")?(Z=_.DH().resolve(_.Yw),D.form.skipDefaultElement=!0,Z.resolveCommand(Y,{form:D.form})):this.handleNavigate(D)};
BJ.prototype.handleNavigate=function(D){this.hasSetScrollTopForNavigation=!1;var Y=_.DH().resolve(_.o8),R=D.form||{};Y.navigate(D.command,R.reload,R.params,R.tempData,R.requestType,R.createScreenConfig,R.ignoreConfirmation,R.requestForm)&&s2z(this,D.command,R.tempData)};
BJ.prototype.onYtPageDataFetched=function(D,Y){try{_.gj_().reset();this.data=Y.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.DH().resolve(_.Z4).updatePageData(this.data);if(!_.f("web_service_params_response_processor")){var R=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);R&&A4k(R);var Z=this.get("response.responseContext.serviceTrackingParams",
this.data);Z&&A4k(Z)}var t=this.get("playerResponse.onResponseReceivedActions",this.data);t&&(t=M60(this,t));t&&_.Se(this.hostElement,t,this.hostElement);var X=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),M=this.get("response.responseContext.consistencyTokenJar",this.data);if(X||M){var W=_.r7i(),z=(0,_.y7.getValues)(W.tokenJars);X&&W.replace(z,X);M&&W.replace(z,M)}}catch(I){_.Nb(I)}};
var s2z=function(D,Y,R){try{D.onYtEndpointChangeHandler(Y,R)}catch(Z){_.Nb(Z)}};
_.u=BJ.prototype;_.u.onYtEndpointChangeHandler=function(){};
_.u.setPageTitle=function(D){D=(this.pageTitle=D)?D+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+D};
_.u.onYtUpdateTitle=function(D,Y){this.setPageTitle(Y)};
_.u.setUnseenNotificationCount=function(D){this.unseenNotificationCount=D;this.setPageTitle(this.pageTitle)};
_.u.handleUpdateNotificationsUnseenCountAction=function(D){_.A(D,bch)&&((D=_.A(D,bch).unseenCount)?this.setUnseenNotificationCount(D):this.setUnseenNotificationCount(0))};
_.u.handleClearCookieAction=function(D){var Y;(D=(Y=_.A(D,ws9))==null?void 0:Y.cookieName)&&_.aQ5(D)};
_.u.onYtUpdateUnseenNotificationCount=function(D,Y){this.setUnseenNotificationCount(Y)};
_.u.loadData=function(D){var Y=this;this.loadDepsPromise.then(function(){var R=_.DH().resolve(_.cD(_.o8));R||_.Nb(Error("dl"));if(D&&D.response){if(!D.endpoint){var Z=_.BO(window.document.location.href)||"/",t="";if(Z==="/"||Z.startsWith("/?"))t="WEB_PAGE_TYPE_BROWSE";D.endpoint={commandMetadata:{webCommandMetadata:{url:Z,webPageType:t,rootVe:3854}}}}_.tpE(R,D.endpoint,D,5,{})}else D.endpoint?R.navigate(D.endpoint):R.navigate(_.nN);_.yc.cancelJob(Y.zwiebackInitJobId);Y.zwiebackInitJobId=_.yc.addLowPriorityJob(VNu)})};
var pQ=function(){return _.DH().resolve(_.Gx)};
BJ.prototype.getDebugString=function(){return pQ().getDebugString()};
BJ.prototype.getThirdPartyManipulationSuspected=function(){return pQ().getThirdPartyManipulationSuspected()};
BJ.prototype.replaceState=function(D,Y,R){pQ().saveAndReplace(D,Y,R)};
BJ.prototype.saveAndPush=function(D,Y,R,Z){pQ().saveAndPush(D,Y,R,Z)};
var t69=function(D){return _.A(D.endpoint,_.Od)||_.A(D.endpoint,_.$I)?!0:!D||isNaN(D.expirationTime)?!1:(0,_.DO)()>D.expirationTime},X1k=function(D,Y,R){var Z=D.get("response.trackingParams",R),t=_.Ud(),X=_.K2();
if(Z&&t&&X&&(Z=D.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",R),!Z&&R.rootVe&&(Z=R.rootVe),t=Y?"forwardButton":"backButton",Y=D.get("playerResponse.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",D.data),D=D.get("response.topbar.desktopTopbarRenderer."+t+".buttonRenderer.command.clickTrackingParams",D.data),Y=(D=Y||D)?_.oT(D):void 0,D=_.n8(),t=[_.TA(R)],_.TJ(D,Z,Y,{dataPromises:t,csnToClone:R.csn}),R.graftedVes))for(R=
_.a(R.graftedVes),Z=R.next();!Z.done;Z=R.next())_.jF(D,Z.value)};
BJ.prototype.onStoreGraftedVeAction=function(D){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(D)):_.Jk(Error("el"))};
var M60=function(D,Y){return Y.filter(function(R){for(var Z in R)if(YBk[Z])return D.pendingPlayerOnResponseReceivedActions.push(R),!0;return!1})};
_.YF.Object.defineProperties(BJ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
BJ.prototype.onStoreGraftedVeAction=BJ.prototype.onStoreGraftedVeAction;BJ.prototype.loadData=BJ.prototype.loadData;BJ.prototype.onYtUpdateUnseenNotificationCount=BJ.prototype.onYtUpdateUnseenNotificationCount;BJ.prototype.handleClearCookieAction=BJ.prototype.handleClearCookieAction;BJ.prototype.handleUpdateNotificationsUnseenCountAction=BJ.prototype.handleUpdateNotificationsUnseenCountAction;BJ.prototype.setUnseenNotificationCount=BJ.prototype.setUnseenNotificationCount;
BJ.prototype.onYtUpdateTitle=BJ.prototype.onYtUpdateTitle;BJ.prototype.setPageTitle=BJ.prototype.setPageTitle;BJ.prototype.onYtEndpointChangeHandler=BJ.prototype.onYtEndpointChangeHandler;BJ.prototype.onYtPageDataFetched=BJ.prototype.onYtPageDataFetched;BJ.prototype.handleNavigate=BJ.prototype.handleNavigate;BJ.prototype.onYtNavigate=BJ.prototype.onYtNavigate;BJ.prototype.onYtNavigateFinish=BJ.prototype.onYtNavigateFinish;BJ.prototype.onYtNavigateCache=BJ.prototype.onYtNavigateCache;
BJ.prototype.onYtNavigateError=BJ.prototype.onYtNavigateError;BJ.prototype.onYtNavigateStart=BJ.prototype.onYtNavigateStart;BJ.prototype.cancelPendingTasks=BJ.prototype.cancelPendingTasks;BJ.prototype.initHistoryManager=BJ.prototype.initHistoryManager;BJ.prototype.onYtHistoryLoad=BJ.prototype.onYtHistoryLoad;BJ.prototype.onYtHistoryPop=BJ.prototype.onYtHistoryPop;BJ.prototype.onYtNavigateSetPageOffset=BJ.prototype.onYtNavigateSetPageOffset;BJ.prototype.setPageOffset=BJ.prototype.setPageOffset;
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],BJ.prototype,"data",void 0);_.q([_.Fv("yt-navigate-set-page-offset"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BJ.prototype,"onYtNavigateSetPageOffset",null);
_.q([_.Fv("yt-history-pop"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],BJ.prototype,"onYtHistoryPop",null);_.q([_.Fv("yt-history-load"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.rAE]),_.x("design:returntype")],BJ.prototype,"onYtHistoryLoad",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],BJ.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-update-title"),_.x("design:type",Function),_.x("design:paramtypes",[Event,String]),_.x("design:returntype")],BJ.prototype,"onYtUpdateTitle",null);_.q([_.Fv("yt-update-unseen-notification-count"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Number]),_.x("design:returntype")],BJ.prototype,"onYtUpdateUnseenNotificationCount",null);_.q([_.nr()],BJ);c7b.YtdAppBehavior=[_.Va.YtActionHandlerBehavior,BJ.prototype];var Ea=function(){var D=_.Aj.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.n(Ea,_.Aj);Ea.prototype.ready=function(){var D=this;_.aU(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){D.onChange_()})};
Ea.prototype.dataChanged_=function(){_.aU(this.hostElement).querySelector("#checkbox").checked=!1};
Ea.prototype.onChange_=function(){var D=_.aU(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.MX(this.hostElement,"yt-dismissal-reason-"+D,this.data.feedbackToken)};
Ea.prototype.dataChanged_=Ea.prototype.dataChanged_;_.q([_.y(),_.x("design:type",Object)],Ea.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ea.prototype,"dataChanged_",null);_.q([_.nr()],Ea);var CY9=[Ea.prototype];var gT=function(){var D=_.Aj.apply(this,arguments)||this;D.timeoutJobId=0;D.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return D};
_.n(gT,_.Aj);gT.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
gT.prototype.startTimeout=function(){var D=this,Y=this.data&&this.data.displayDurationSeconds;Y&&!this.timeoutJobId&&(this.timeoutJobId=_.Ak(_.yc,function(){_.CX(D.hostElement,"yt-close-popup-action",[D.is]);D.timeoutJobId=0},Y*1E3))};
gT.prototype.cancelTimeout=function(){_.yc.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
gT.prototype.ytdHatsSurveyBehaviorDataChanged=gT.prototype.ytdHatsSurveyBehaviorDataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],gT.prototype,"ytActionHandlerBehavior",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gT.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.q([_.nr()],gT);var Wep=[_.Va.YtActionHandlerBehavior,gT.prototype];var zd0=function(D,Y){var R;return((R=D.prefixMapping)==null?0:R[Y])?D.prefixMapping[Y]:D.SHARED_RENDERERS_.hasOwnProperty(Y)?"yt":D.prefix},dT={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}};dT.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.f("kevlar_mealbar_above_player"),modern:_.f("web_modern_dialogs"),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"}};
dT.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};dT.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};dT.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
dT.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)"}};
dT.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};
dT.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};
dT.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};
dT.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};dT.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"}};
dT.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};dT.TOAST={component:null,properties:{}};var SBK=new function(D,Y,R){this.supportedPopups=D;this.navigationEndpointPopupMap=Y;this.popupTypeMap=R;this.supportedPopups=D;this.navigationEndpointPopupMap=Y;this.popupTypeMap=R}({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:_.f("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"}),TOz=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,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$19759_popupConfig=dT;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 j2u=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.KS.getInstance()},iG=function(D,Y){var R=D.pageNameToElement.get(Y);
if(!R){switch(Y){case "watch":var Z=_.f("web_watch_force_learning_journey_for_testing")?_.sc("ytd-watch-learning-journey"):_.f("kevlar_watch_fixie")?_.sc("ytd-watch-fixie"):_.f("kevlar_watch_grid")?_.sc("ytd-watch-grid"):_.sc("ytd-watch-flexy");break;case "learning_journey_watch":Z=_.sc("ytd-watch-learning-journey");break;case "shorts":Z=_.sc("ytd-shorts");break;case "search":Z=_.sc("ytd-search");break;case "channel":Z=_.sc("ytd-browse");Z.pageSubtype="channels";break;case "trending":Z=_.sc("ytd-browse");
Z.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 "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":Z=
_.sc("ytd-browse");Z.pageSubtype=Y;break;case "browse":Z=_.sc("ytd-browse");break;default:_.Jk(new _.AT("Error getting page element for type",Y))}R=Z;D.pageNameToElement.set(Y,R)}return R};
j2u.prototype.preparePage=function(D,Y,R){R&&(D=_.eI(R)||D);if(D!=="watch"&&D!=="learning_journey_watch"){var Z=this.elementPoolPopulator,t=D;t!=Z.targetPage_&&Z.pendingPages_.indexOf(t)>-1&&(Z.targetPage_&&(Z.pendingPages_.unshift(Z.targetPage_),Z.abort()),axI(Z,t),_.f5U(Z,t))}if((Z=iG(this,D))||!_.A(R,_.Qj)){Z.isAttached||Z===Y||(Z.hidden=!0);if(!Z.data&&(D!=="watch"&&D!=="learning_journey_watch"||!_.f("swatcheroo_page_pool_dont_provide_filler_data"))){var X;if(D=(X=_.JQ("FILLER_DATA",{})[D])==
null?void 0:X.response)Z.data=D}return Z}};var IIT=function(D){this.JSC$31899_clientRoot=D;this.playlistHandlerActionMap={"yt-add-to-playlist-command":oyE,"yt-end-playlist-command":brK,"yt-recover-playlist-command":Ndh,"yt-refresh-playlist-command":kmI,"yt-playlist-remove-videos-action":lhb};_.pI(_.Bm.getInstance(),this.playlistHandlerActionMap,this.JSC$31899_clientRoot);Gb9()},Fek;var Oa=function(D,Y,R){this.apiKey=D;this.endpoint=Y;this.confidenceThreshold=R===void 0?.5:R;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=Y==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Y==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
Y==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Y==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new eRu};
_.u=Oa.prototype;
_.u.start=function(D){if(this.state===0)if(this.isOnline()){D.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=D.supportsHttpHeadersOverwriteParam);D.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=D.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.U7("voice_assistant");_.h4("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=D.languageCode||"en-US";this.supportsCrossDomainXhr=D.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=D.youtubeAssistantRequest||null;this.listeningHandler=D.listeningHandler||this.listeningHandler;this.audioDetectedHandler=D.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=D.stopHandler||this.stopHandler;this.completeHandler=D.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=D.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=D.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
D.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=D.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=D.accessToken;this.additionalHeaders=D.additionalHeaders||{};var Y;this.prefetchResponseTimeoutMs=(Y=D.prefetchResponseTimeoutMs)!=null?Y:this.prefetchResponseTimeoutMs;GqK(this);this.startAudio();V6b(this)}else this.errorHandler("OFFLINE")};
_.u.stop=function(D){var Y=D===void 0?{}:D;D=Y.logCancel===void 0?!0:Y.logCancel;var R=Y.logMicClosed===void 0?!0:Y.logMicClosed;var Z=Y.handleError===void 0?!0:Y.handleError;Y=Y.handleStop===void 0?!0:Y.handleStop;this.state!==0&&(D&&cJ("voz_cx"),Dy(this,{logMicClosed:R,handleStop:Y}),Z&&this.errorHandler("ABORTED"))};
_.u.getState=function(){return this.state};
_.u.isSupported=function(){return!0};
_.u.stopAudio=function(D){(D===void 0||D)&&cJ("voz_mf")};
_.u.startAudio=function(){cJ("voz_vp");return _.TA(null)};
var fIt=function(D,Y){D.channelOpen&&(D.state!==2&&(D.state=2,cJ("voz_ss"),D.listeningHandler()),Y=new Uint8Array(Y),Y='{ "audioIn": "'+_.rb(Y)+'" }',D.channel.send(Y))},Dy=function(D,Y){var R=Y===void 0?{}:Y;
Y=R.logMicClosed===void 0?!0:R.logMicClosed;R=R.handleStop===void 0?!0:R.handleStop;D.vozEndOfDataTimeout>-1&&(clearTimeout(D.vozEndOfDataTimeout),D.vozEndOfDataTimeout=-1);edh(D);D.stopAudio(Y);D.channel&&(D.channelOpen=!1,D.manuallyClosedChannel=!0,D.channel.close(),D.channel=void 0);D.transcribedSpeechResults=[];D.state=0;R&&D.stopHandler()},GqK=function(D){var Y={httpHeadersOverwriteParam:D.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},D.additionalHeaders,D.accessToken&&D.isUsingVoz?{Authorization:"Bearer "+D.accessToken}:{"x-goog-api-key":D.apiKey}),supportsCrossDomainXhr:D.supportsCrossDomainXhr};D.channel=new c3(D.endpoint,Y);D.channel.open();_.yu(D.channel,"w",function(){var R=D.channel,Z=R.send,t=D.isUsingVoz?"PLACEHOLDER":"example";t={config:{dialogStateIn:{languageCode:D.languageCode},deviceConfig:{deviceId:t,deviceModelId:t},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!D.isUsingVoz)t.config.requestType=4;else if(D.isUsingVoz&&D.youtubeAssistantRequest){var X=JSON.stringify(D.youtubeAssistantRequest);t.config.internalIn={youtubeAssistantS3InputJson:X}}Z.call(R,t);D.channelOpen=!0;D.manuallyClosedChannel=!1});
_.yu(D.channel,"x",function(){D.manuallyClosedChannel||(D.channelOpen=!1,D.channel=void 0,Dy(D))});
_.yu(D.channel,"z",function(R){if(R.data){edh(D);for(var Z=0;Z<R.data.length;Z++){var t=D,X=R.data[Z],M=X.speechResults;if(M)a:{var W=[];X=[];var z=!1;M=_.a(M);for(var I=M.next();!I.done;I=M.next()){I=I.value;if(I.noSpeech){Dy(t);t.errorHandler("NO_SPEECH");break a}I.transcript!==void 0&&I.stability!==void 0&&(I.stability<t.confidenceThreshold&&(z=!0),z?X.push(I.transcript):W.push(I.transcript))}if(W.length!==0||X.length!==0)W=W.join(" "),X=X.join(" "),t.receivedEndOfUtterance&&!t.isUsingVoz?t.isUsingVoz||
t.completeHandler([W,X]):(z=t,M=W,I=X,cJ("voz_sf"),z.transcriptionUpdateHandler(M,I),z.transcribedSpeechResults=[M,I]),t.receivedEndOfUtterance&&(cJ("voz_eou"),t.transcriptionCompleteHandler([W,X]),t.isUsingVoz&&(t.prefetchResponseTimeoutMs===0?Dy(t,{logMicClosed:!1,handleStop:!0}):t.prefetchResponseTimeoutMs>0&&Azh(t)))}else t.isUsingVoz&&(X==null?0:X.internalOut)?(X=JSON.parse(X.internalOut.youtubeAssistantS3OutputJson),X.userHasOptedInToVaa||X.vaaConsent?t.vaaConsentUpdateHandler(!!X.userHasOptedInToVaa,
!!X.vaaConsent):(nkb(t),X&&(W=t.transcribedSpeechResults,cJ("voz_rqf"),t.completeHandler(W,X)))):X.eventType==="END_OF_UTTERANCE"?t.receivedEndOfUtterance=!0:(cJ("voz_err"),t.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Jk(Error("fl")))}}});
_.yu(D.channel,"y",function(R){Dy(D);switch(R.status){case 1:R="WEBCHANNEL_NETWORK_ERROR";break;case 2:R="WEBCHANNEL_SERVER_ERROR";break;default:R="WEBCHANNEL_UNKNOWN_ERROR"}D.errorHandler(R);D.logError(Error(R))})};
Oa.prototype.logError=function(D){_.Nb(D)};
Oa.prototype.isOnline=function(){return!0};
var Azh=function(D){nkb(D);D.prefetchResponseSetTimeoutId=setTimeout(function(){Dy(D,{logMicClosed:!1,handleStop:!0})},D.prefetchResponseTimeoutMs)},nkb=function(D){D.prefetchResponseSetTimeoutId>-1&&(clearTimeout(D.prefetchResponseSetTimeoutId),D.prefetchResponseSetTimeoutId=-1)},V6b=function(D){edh(D);
D.noResponseReceivedTimeout=window.setTimeout(function(){Dy(D);D.errorHandler("NO_SPEECH")},11E3)},edh=function(D){D.noResponseReceivedTimeout>-1&&(window.clearTimeout(D.noResponseReceivedTimeout),D.noResponseReceivedTimeout=-1)},cJ=function(D){_.KX(D,void 0,"voice_assistant")};var YU=function(){Oa.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.n(YU,Oa);YU.prototype.isSupported=function(){return UBT()};
YU.prototype.startAudio=function(){var D=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.lf(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Z){rzz(D,Z)};
this.processor.connect(this.audioContext.destination);var Y=function(Z){D.stream=Z;if(!D.audioContext)return _.TA(null);Z=D.audioContext.createMediaStreamSource(Z);D.processor&&Z.connect(D.processor);return _.TA(null)},R={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?Y(this.stream):(R=navigator.mediaDevices.getUserMedia(R))?R.then(Y).catch(function(Z){Dy(D);Z.name&&Z.name==="NotAllowedError"?D.errorHandler("NO_MICROPHONE_PERMISSION"):(D.errorHandler("AUDIO_ERROR"),D.logError(Z));return _.lf(null)}):(Dy(this),this.errorHandler("AUDIO_ERROR"),_.Jk(Error("gl")));
return Oa.prototype.startAudio.call(this)};
YU.prototype.stopAudio=function(D){D=D===void 0?!0:D;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(Y){Y.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Oa.prototype.stopAudio.call(this,D)};
YU.prototype.isOnline=function(){return navigator.onLine};
var rzz=function(D,Y){if(D.audioContext)if(window.OfflineAudioContext){var R=D.audioContext.sampleRate,Z=Y.inputBuffer.getChannelData(0);Y=new window.OfflineAudioContext(1,Z.length,16E3);for(var t=Y.createBuffer(1,Z.length,R),X=t.getChannelData(0),M=0,W=0;W<Z.length;W++)X[W]=Z[W],M+=X[W]*X[W];!D.audioDetected&&Math.sqrt(M/Z.length)>.01&&(D.audioDetected=!0,D.audioDetectedHandler());Z=Y.createBufferSource();Z.buffer=t;Z.connect(Y.destination);Z.start(0);Y.oncomplete=function(z){z=z.renderedBuffer.getChannelData(0);
for(var I=Math.floor(16384E3/R),F=new Int16Array(I),G=0;G<I;++G)F[G]=Math.max(-1,Math.min(1,z[G]))*32767;fIt(D,F.buffer)};
Y.startRendering()}else w1h(D,Y)},w1h=function(D,Y){var R=D.audioContext.sampleRate,Z=Y.inputBuffer.getChannelData(0),t=Math.floor((R+8E3)/16E3);
R=Z.length/t;Y=new Float32Array(R);for(var X=0;X<R;++X)Y[X]=Z[X*t];Z=new Int16Array(R);for(t=0;t<R;++t)Z[t]=Math.max(-1,Math.min(1,Y[t]))*32767;fIt(D,Z.buffer)};var $L9={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var vkz=function(){this.JSC$19824_audioEnabled=!0;this.audioFeedbackHolder={}};
vkz.prototype.isPlaying=function(D){return D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>2};
var okK=function(D){for(var Y=_.a(Object.values($L9)),R=Y.next();!R.done;R=Y.next())R=R.value,D.audioFeedbackHolder[R]=new Audio,D.audioFeedbackHolder[R].src="/s/search/audio/"+R+".mp3",D.audioFeedbackHolder[R].load()},Rr=function(D,Y){if(D.JSC$19824_audioEnabled!==!1&&Y in D.audioFeedbackHolder){for(var R=_.a(Object.values(D.audioFeedbackHolder)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,D.isPlaying(Z)&&Z.pause();
D.audioFeedbackHolder[Y].currentTime=0;D.audioFeedbackHolder[Y].play().catch(function(){})}};var bah=function(D,Y){var R=this;this.store=D;this.service=Y;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){R.setState("offline");R.stop()};
this.audioPlayer=new vkz;var Z;(Z=this.audioPlayer)==null||okK(Z)};
_.u=bah.prototype;_.u.getService=function(){return this.service};
_.u.isEnabled=function(){return!!this.service};
_.u.isSupported=function(){var D;return(D=this.service)==null?void 0:D.isSupported()};
_.u.start=function(){var D=this,Y,R,Z,t,X,M,W,z,I,F,G,V,e;return _.C(function(r){switch(r.nextAddress){case 1:D.store.dispatch(Jnh("",""));if(!navigator.onLine)return D.setState("offline"),r.return();window.addEventListener("offline",D.handleOfflineEvent);D.stream=null;if(!D.permissionsSupported){r.jumpTo(2);break}_.SX(r,3);return r.yield(yzT(D),5);case 5:Y=r.yieldResult;if(!Y)return(R=D.audioPlayer)==null||Rr(R,"failure"),r.return();D.service.stream=D.stream;D.setState("listening");_.xw(r,2);break;
case 3:_.Gl(r),D.permissionsSupported=!1;case 2:Z={context:_.T$U(_.RE())},Z.youtubeAssistantParams={searchParams:{inlineSearchResponse:D.enableInlineSearchResponse}},t=function(l,U){D.store.dispatch(k3b("transcribing"));D.store.dispatch(Jnh(l,U))},X=function(){var l;
(l=D.audioPlayer)==null||Rr(l,"open");D.setState("listening")},M=function(){D.setState("transcribing")},W=function(l){D.setErrorState(l)},z=function(l,U){var K;
(K=D.audioPlayer)==null||Rr(K,"success");U&&(_.f("kevlar_voice_search_inline_search")&&(D.responseProcessor=_.DH().resolve(_.iz5),D.responseProcessor&&(K=U.navigationAction,l=U.prefetchedSearchResponse,K&&l&&(K=(new _.DU9).JSC$13022_getStoreKey(K),_.Pf(D.responseProcessor,l,K)))),D.JSC$19842_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",U))},I=function(){window.removeEventListener("offline",D.handleOfflineEvent)},F=_.nIb(!1),G=F.Authorization!=null,V=D.enableFirstPartyAuth||
D.enableFPAForSignedInUsers&&G?F:{"X-Goog-Visitor-Id":F["X-Goog-Visitor-Id"]},e={completeHandler:z,
errorHandler:W,listeningHandler:X,audioDetectedHandler:M,stopHandler:I,transcriptionUpdateHandler:t,youtubeAssistantRequest:Z,languageCode:NOK(),additionalHeaders:V,supportsCrossDomainXhr:D.enableFirstPartyAuth||D.enableFPAForSignedInUsers&&G,supportsHttpHeadersOverwriteParam:!D.disableHttpHeadersOverwrite},D.service.start(e),_.V9(r)}})};
_.u.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.u.reset=function(){this.store.dispatch(_.u0({type:"RESET_VOICE_SEARCH_STATE"}))};
_.u.setState=function(D){this.store.dispatch(k3b(D))};
_.u.setErrorState=function(D){switch(D){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var Y;(Y=this.audioPlayer)==null||Rr(Y,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)yzT(this);else{var R;(R=this.audioPlayer)==null||Rr(R,"failure");this.setState("permission-denied")}break;case "ABORTED":var Z;(Z=this.audioPlayer)==null||Rr(Z,"no_input");break;default:var t;(t=this.audioPlayer)==
null||Rr(t,"no_input");this.setState("timeout")}};
var yzT=function(D){var Y,R;return _.C(function(Z){switch(Z.nextAddress){case 1:return Z.yield(navigator.permissions.query({name:"microphone"}),2);case 2:Y=Z.yieldResult;if(Y.state==="granted")return Z.return(!0);if(Y.state==="denied")return D.setState("permission-denied"),Z.return(!1);D.setState("permission");R={audio:{sampleSize:16,channelCount:1},video:!1};_.SX(Z,3);return Z.yield(navigator.mediaDevices.getUserMedia(R),5);case 5:return D.stream=Z.yieldResult,Z.return(!0);case 3:return _.Gl(Z),
D.setState("permission-denied"),Z.return(!1)}})},NOK=function(){var D=_.JQ("INNERTUBE_CONTEXT_HL"),Y=_.JQ("INNERTUBE_CONTEXT_GL");
return D.indexOf("-")>-1?D:D+"-"+Y};var lIT=function(D,Y,R){bah.call(this,Y,R);this.JSC$19842_actionRouter=D;this.enableInlineSearchResponse=_.f("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.f("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.f("kevlar_voice_search_enable_fpa_signedin_users")},Jz9;
_.n(lIT,bah);
var kqK=function(){if(!Jz9){var D="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.f("kevlar_voice_search_auth_enabled")||_.f("kevlar_voice_search_use_yt_endpoint")?D="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.f("kevlar_voice_search_use_fp_endpoint")&&(D="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Jz9=
new lIT(_.Bm.getInstance(),_.Dl(),new YU(_.JQ("VOZ_API_KEY"),D,.5))}return Jz9};var ULK=function(D){this.JSC$19846_clientRoot=D;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!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$19846_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)]]));D=_.a(this.eventListeners);for(var Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next()){var t=
_.a(Z.value);Z=t.next().value;t=t.next().value;Y.addEventListener(Z,t)}}_.pI(_.Bm.getInstance(),this.autonavPauseActionMap,this.JSC$19846_clientRoot)},Ke9,hdp=function(D){return _.f("kevlar_autonav_popup_filtering")?(D=_.cG(D))?D.hasAttribute("prevent-autonav"):!0:!0};
_.u=ULK.prototype;_.u.onIronOverlayOpened=function(D){hdp(D)&&(this.autonavPauseReasons.overlayOpen=!0,Zy(this))};
_.u.onIronOverlayClosed=function(D){hdp(D)&&(this.autonavPauseReasons.overlayOpen=!1,Zy(this))};
_.u.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Zy(this)};
_.u.onYtAutonavPauseBlur=function(){var D=this;_.yc.addJob(function(){D.isInBackground()||(D.autonavPauseReasons.inputBoxFocus=!1,Zy(D))},8,0)};
_.u.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Zy(this)};
_.u.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Zy(this)};
_.u.onYtAutonavPauseScroll=function(){var D=_.DH().resolve(_.Z4);D.isOnWatch()&&(D=D.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=D.getBoundingClientRect().top<-200,Zy(this))};
_.u.onYtAutonavPauseUserEngagement=function(D){var Y=this;if(_.f("user_engagement_enable_autoplay_pause_feature")){var R=Number(D.lowEngagementThresholdMs);isNaN(R)||R<=0||D.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.DH().resolve(_.bq),_.Ro()<R?_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.FB0()?(this.userEngagementCsn=_.K2(),_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
Y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Zy(this)):_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.$Pr(Error("hl`"+JSON.stringify(D)))};
_.u.onYtAutonavPausePlayer=function(D){this.autonavPauseReasons.requestedByPlayer=!!D.detail;Zy(this)};
_.u.onYtAutonavVisibilityChanged=function(){var D=this,Y,R,Z;return _.C(function(t){if(t.nextAddress==1)return(Y=_.sm())?t.yield(Y.getPlayerPromise(),2):t.return();R=t.yieldResult;Z=R.isMuted()||R.getVolume()===0;D.autonavPauseReasons.backgroundAndMute=D.isInBackground()&&Z;Zy(D);_.V9(t)})};
_.u.onYtAutonavPausePlayerEnded=function(){_.DH().resolve(_.bq);var D=144E5;_.f("user_engagement_enable_autoplay_pause_feature")||_.f("is_part_of_any_user_engagement_experiment")||(D=45E5);this.autonavPauseReasons.longIdle=_.Ro()>D;Le0(this);Zy(this)};
_.u.onYtUserActivity=function(){var D=this;this.autonavPauseReasons.userEngagement&&(_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",D.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Zy(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",D.userEngagementCsn);_.yj()}),this.autonavPauseReasons.youthereLactExperiment=!1,Zy(this));
this.autonavPauseReasons.longIdle&&!_.f("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Zy(this))};
_.u.isInBackground=function(){var D=window.document.visibilityState;return!(!D||D==="visible")};
var Zy=function(D){for(var Y=!1,R=_.a(Object.values(D.autonavPauseReasons)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,Y=Y||Z;Y?_.tG.getInstance().pause(D.autonavPauseReasons):(D=_.tG.getInstance(),D.autonavState_==3?(D.setState(2,!1,!1),D.autonavPauseReason_=void 0):D.autonavState_==1&&(D.disabledAutonavPauseReason_=void 0))},Le0=function(D){var Y=!1;
if(_.f("enable_autoplay_pause_by_lact")){_.DH().resolve(_.bq);Y=_.ZH("autoplay_pause_by_lact_sec")*1E3;var R=_.ZH("autoplay_pause_by_lact_sampling_fraction");(Y=_.Ro()>=Y&&Math.random()<R)&&!_.FB0()&&(_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),Y=!1)}Y!==D.autonavPauseReasons.youthereLactExperiment&&(D.autonavPauseReasons.youthereLactExperiment=Y)&&(D.userEngagementCsn=_.K2(),_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",D.userEngagementCsn)}));
D.autonavPauseReasons.userEngagement&&_.Ak(_.yc,function(){_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",D.userEngagementCsn)})};
ULK.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Tv("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.yj(),this.autonavPauseReasons.youthereLactExperiment=!1,Zy(this));this.autonavPauseReasons.userEngagement&&(_.Tv("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Zy(this))};
ULK.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var tI=function(){var D=_.N.apply(this,arguments)||this;D.miniGuideVisible=!1;D.guideOpened=_.f("disable_initial_guide_state_fix")?!1:D.canFitPersistentGuide(D.initialBodyClientWidth);D.guideUserStateOpened=D.getInitialGuideUserStateOpened();D.isFullscreenShorts=!1;D.miniGuideWidthThreshold=_.ZH("kevlar_mini_guide_width_threshold",791);D.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");D.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");D.persistentGuideBlockedPagePathRegex=new RegExp(D.persistentGuideBlockedPagesPatterns.join("|"));D.animationTransitionDuration=0;D.lateDataResolver=_.iq();D.initialGuideDataFetchFailed=!1;D.initialLoad=!0;D.guideRenderers=new Set;D.isMouseOverGuide=!1;D.sessionUserManuallyExpandedGuideState=!1;D.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return D};
_.n(tI,_.N);_.u=tI.prototype;_.u.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.u.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.u.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.u.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.u.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.u.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.u.ready=function(){_.DH().addProvider({provide:_.Q3,useValue:this.hostElement})};
_.u.attached=function(){var D=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.jN(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.jN(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.jN(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.jN(this,this.onYtGuideShow));_.cy(this,function(){D.animationTransitionDuration=200})};
_.u.detached=function(){document.removeEventListener("yt-navigate-finish",_.jN(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.jN(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.jN(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.jN(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.jN(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.jN(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.jN(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.u.getData=function(){return this.data};
_.u.load=function(){var D=this,Y,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=D.lateDataResolver.resolve.bind(D),X.return(D.lateDataResolver.promise);if(window.ytInitialGuideData)return Y=_.iq(),Y.resolve(window.ytInitialGuideData),X.return(Y.promise);Z=!1;_.SX(X,2);return X.yield(D.fetchGuideData(),4);case 4:R=X.yieldResult;_.xw(X,3);break;case 2:t=_.Gl(X),t.message==="Returned error"&&(Z=
!0);case 3:if(R)return X.return(R);D.onYtGuideClose();Z||(D.initialGuideDataFetchFailed=!0);return X.return(D.lateDataResolver.promise)}})};
_.u.fetchGuideData=function(){var D=this,Y,R,Z,t,X,M,W;return _.C(function(z){if(z.nextAddress==1)return Y=_.DH(),D.guidePromise||(R=Y.resolve(_.h6),D.guidePromise=_.d1(R,JxT)),z.yield(D.guidePromise,2);if(z.nextAddress!=3)return Z=z.yieldResult,t=Y.resolve(_.uO),z.yield(t(),3);(X=z.yieldResult)&&((M=Z)==null?void 0:(W=M.responseContext)==null?void 0:W.maxAgeSeconds)!==0&&X.put("service:guide:fallback",new _.Tx({innertubeResponse:Z}));return z.return(Z)})};
_.u.initializeGuideDataIfEmpty=function(){var D=this,Y,R;return _.C(function(Z){if(Z.nextAddress==1){if(!D.initialGuideDataFetchFailed||D.data)return Z.return();_.SX(Z,2);return Z.yield(D.fetchGuideData(),4)}if(Z.nextAddress!=2)return(Y=Z.yieldResult)&&D.lateDataResolver.resolve(Y),_.xw(Z,0);R=_.Gl(Z);_.Jk(R);_.V9(Z)})};
_.u.initializeGuideData=function(){var D=this,Y;return _.C(function(R){switch(R.nextAddress){case 1:return _.Wf(iF0(),{mainAppWeb:_.E$()}),_.SX(R,2),R.yield(D.load(),4);case 4:D.data=R.yieldResult;_.xw(R,3);break;case 2:_.Gl(R),_.z3(iF0(),"FAILURE");case 3:Y=D.data&&D.data.items&&D.data.items.length>0?"SUCCESS":"FAILURE",_.z3(iF0(),Y),_.V9(R)}})};
_.u.setGuideData=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1)return Y.disabled?t.return():Y.data?(D.data=Y.data,Y.guideRenderers.add(D),t.return()):t.yield(Y.initializeGuideData(),2);Y.graftGuideToPage();R=_.ks("IS_HOMEPAGE_COLD")?"eop":void 0;_.f("disable_element_pool_populator")?Y.setGuideDataAfterInit(D):(Z=new _.Xh(1,R),_.uu(Z,Y.setGuideDataAfterInit.bind(Y,D)));_.V9(t)})};
_.u.setGuideDataAfterInit=function(D){D.data=this.data;D.markDirty();this.guideRenderers.add(D);_.BE(function(){_.KX("gle")});
_.cy(this,function(){_.KX("gpe")})};
_.u.graftGuideToPage=function(){if(this.data){var D=this.data&&this.data.trackingParams;D&&(D=_.oT(D),_.Ii(_.n8(),D))}};
_.u.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.jN(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.u.onDrawerOpenedChanged=function(D,Y){!Y.value&&this.guideOpened&&(this.guideOpened=!1)};
_.u.onYtGuideToggle=function(D){var Y=this.guideOpened;this.guideOpened=!Y;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var R=_.nX();_.rC(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;R.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Z;this.guideOpened&&((Z=D.detail)==null?0:Z.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.jN(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.jN(this,this.onAppDrawerTransitioned))}Y||this.initializeGuideDataIfEmpty()};
_.u.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.jN(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.pq(this.guideElement)};
_.u.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.jN(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(NYK(this.guideOpened))};
_.u.guidePersistentAndVisibleChanged=function(){_.WC(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.u.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.u0({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.u.miniGuideVisibleChanged=function(){_.WC(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.u.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(NYK(this.guideOpened)),this.initialLoad=!1);_.WC(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.u.activeEndpointChanged=function(){_.WC(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.u.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.u.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()};
_.u.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var D=this.canFitPersistentGuide(this.cachedClientWidth);D?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=D}this.updateGuideDrawerElementState()};
_.u.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.u.getGuideOpened=function(){return this.guideOpened};
_.u.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.u.getActiveEndpoint=function(){return this.activeEndpoint};
_.u.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.u.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&&_.MX(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.u.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.f("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.u.handleGuideMouseLeave=function(){var D=this;!this.sessionUserManuallyExpandedGuideState&&_.f("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.pr(this,"handleGuideMouseLeave",function(){D.isMouseOverGuide||!D.guideOpened||D.miniGuideVisible||(D.guideOpened=!1,D.updateGuideDrawerElementState())},100))};
_.u.computeGuidePersistentAndVisible=function(){var D=this;_.pr(this,"computeGuidePersistentAndVisible",function(){D.guidePersistentAndVisible=D.guideOpened&&D.guidePersistent;D.guideIsVisibleButNotPersistent=!(!D.guideOpened||D.guidePersistent)})};
_.u.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.u.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.u.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.u.startLoadingWatch=function(){this.closeGuide()};
_.u.startLoadingShorts=function(){_.f("web_hide_guide_on_shorts")&&this.closeGuide()};
_.u.onYtNavigateFinish=function(D,Y){if(!_.Cw||Y){this.activeEndpoint=Y.endpoint;this.pageType=Y.pageType;this.pageUrl=Y.response.url;var R,Z;D=(Z=_.A((R=Y.endpoint)==null?void 0:R.commandMetadata,_.GA))==null?void 0:Z.url;!this.pageUrl&&D&&(this.pageUrl=D);_.f("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.u.getVisibleGuideRenderer=function(){for(var D=_.a(this.guideRenderers),Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,this.miniGuideVisible&&Y.is==="ytd-mini-guide-renderer"||this.guideOpened&&Y.is==="ytd-guide-renderer")return Y;return null};
_.u.markGuideRendererDirty=function(D){if(D){typeof D.markDirty==="function"&&D.markDirty();D=_.a([].concat(_.oK(_.aU(D).children)));for(var Y=D.next();!Y.done;Y=D.next())this.markGuideRendererDirty(Y.value)}};
_.u.persistentGuideEnabled=function(D,Y){if(!Y||D==="watch"||D==="settings"||D==="shorts"&&this.isFullscreenShorts||_.f("reels_web_disable_persistent_guide_shorts")&&D==="shorts")return!1;var R=_.zZ(Y)||"";return _.f("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Z){return R===Z}):!this.persistentGuideBlockedPagePathRegex.test(R)};
_.u.canFitPersistentGuide=function(D){var Y=_.ZH("kevlar_persistent_guide_width_threshold",1312);return Y===-1||_.f("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:D>Y};
_.u.canFitMiniGuide=function(D){return this.miniGuideWidthThreshold===-1?!1:D>this.miniGuideWidthThreshold};
_.u.onResize=function(){var D=this;_.pr(this,"calculateGuideState",function(){D.onResizeDebounced()})};
_.u.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.u.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.u.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.u.getInitialGuideUserStateOpened=function(){return _.f("web_force_mini_guide_default")?!1:!_.nX().getFlag(109)};
_.YF.Object.defineProperties(tI.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.JQ("initialBodyClientWidth")||window.innerWidth}}});
tI.prototype.onResize=tI.prototype.onResize;tI.prototype.observeForMiniGuideVisible=tI.prototype.observeForMiniGuideVisible;tI.prototype.computeGuidePersistentAndVisible=tI.prototype.computeGuidePersistentAndVisible;tI.prototype.cachedClientWidthChanged=tI.prototype.cachedClientWidthChanged;tI.prototype.resetGuide=tI.prototype.resetGuide;tI.prototype.activeEndpointChanged=tI.prototype.activeEndpointChanged;tI.prototype.guideOpenedChanged=tI.prototype.guideOpenedChanged;
tI.prototype.miniGuideVisibleChanged=tI.prototype.miniGuideVisibleChanged;tI.prototype.guideIsVisibleButNotPersistentChanged=tI.prototype.guideIsVisibleButNotPersistentChanged;tI.prototype.guidePersistentAndVisibleChanged=tI.prototype.guidePersistentAndVisibleChanged;tI.prototype.onGuideElementChanged=tI.prototype.onGuideElementChanged;tI.prototype.onGuidePersistentChanged=tI.prototype.onGuidePersistentChanged;tI.prototype.onRenderGuideChanged=tI.prototype.onRenderGuideChanged;
tI.prototype.onActiveEndpointChanged=tI.prototype.onActiveEndpointChanged;tI.prototype.onMiniGuideVisibleChanged=tI.prototype.onMiniGuideVisibleChanged;tI.prototype.onGuideIsVisibleButNotPersistentChanged=tI.prototype.onGuideIsVisibleButNotPersistentChanged;tI.prototype.onGuidePersistendAndVisibleChanged=tI.prototype.onGuidePersistendAndVisibleChanged;_.q([_.v(_.l_),_.x("design:type",Object)],tI.prototype,"ironResizableBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],tI.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],tI.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tI.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],tI.prototype,"disabled",void 0);
_.q([_.y(),_.x("design:type",Boolean)],tI.prototype,"guidePersistentAndVisible",void 0);_.q([_.Gm("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onGuidePersistendAndVisibleChanged",null);_.q([_.y(),_.x("design:type",Boolean)],tI.prototype,"guideIsVisibleButNotPersistent",void 0);
_.q([_.Gm("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.q([_.y(),_.x("design:type",Object)],tI.prototype,"miniGuideVisible",void 0);_.q([_.Gm("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onMiniGuideVisibleChanged",null);_.q([_.y(),_.x("design:type",Boolean)],tI.prototype,"forceMiniGuideClose",void 0);
_.q([_.y(),_.x("design:type",Object)],tI.prototype,"activeEndpoint",void 0);_.q([_.Gm("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onActiveEndpointChanged",null);_.q([_.y(),_.x("design:type",Boolean)],tI.prototype,"renderGuide",void 0);_.q([_.Gm("renderGuide"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onRenderGuideChanged",null);
_.q([_.y(),_.x("design:type",Object)],tI.prototype,"guideOpened",void 0);_.q([_.y(),_.x("design:type",Boolean)],tI.prototype,"guidePersistent",void 0);_.q([_.Gm("guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onGuidePersistentChanged",null);_.q([_.y(),_.x("design:type",Object)],tI.prototype,"guideUserStateOpened",void 0);_.q([_.y(),_.x("design:type",String)],tI.prototype,"pageUrl",void 0);
_.q([_.y(),_.x("design:type",String)],tI.prototype,"pageType",void 0);_.q([_.y(),_.x("design:type",Number)],tI.prototype,"cachedClientWidth",void 0);_.q([_.y(),_.x("design:type",Object)],tI.prototype,"guideElement",void 0);_.q([_.y({selector:_.MV}),_.x("design:type",Object)],tI.prototype,"isFullscreenShorts",void 0);_.q([_.Gm("guideElement"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onGuideElementChanged",null);
_.q([_.Gm("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"guidePersistentAndVisibleChanged",null);_.q([_.rd("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.q([_.Gm("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"miniGuideVisibleChanged",null);_.q([_.rd("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"guideOpenedChanged",null);_.q([_.Gm("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"activeEndpointChanged",null);
_.q([_.rd("pageUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"resetGuide",null);_.q([_.rd("cachedClientWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"cachedClientWidthChanged",null);_.q([_.Gm("guideOpened","guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"computeGuidePersistentAndVisible",null);
_.q([_.rd("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"observeForMiniGuideVisible",null);_.q([_.Fv("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tI.prototype,"onResize",null);_.q([_.h({disableElementRegistration:!0,is:"yt-guide-manager"})],tI);var mLK=_.L(tI,"yt-guide-manager",void 0,{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var sj=function(){var D=_.N.apply(this,arguments)||this;D.JSC$19856_keyboardInUse=!1;D.boundHandleCapturedKeydownEvent=function(Y){D.handleCapturedKeydownEvent(Y)};
return D};
_.n(sj,_.N);_.u=sj.prototype;_.u.attached=function(){this.listenToDocument(document)};
_.u.listenToDocument=function(D){D.addEventListener("keydown",_.jN(this,this.onKeyDownEvent));D.addEventListener("keyup",_.jN(this,this.onKeyUpEvent));D.addEventListener("mousedown",_.jN(this,this.onMouseDownEvent));_.f("desktop_keyboard_capture_keydown_killswitch")||D.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.addEventListener("yt-page-data-updated",_.jN(this,this.onPageUpdate))};
_.u.detached=function(){this.unlistenFromDocument(document)};
_.u.unlistenFromDocument=function(D){D.removeEventListener("keydown",_.jN(this,this.onKeyDownEvent));D.removeEventListener("keyup",_.jN(this,this.onKeyUpEvent));D.removeEventListener("mousedown",_.jN(this,this.onMouseDownEvent));_.f("desktop_keyboard_capture_keydown_killswitch")||D.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.removeEventListener("yt-page-data-updated",_.jN(this,this.onPageUpdate))};
_.u.ready=function(){_.DH().addProvider({provide:_.MQ,useValue:this})};
_.u.isKeyBoardInUse=function(){return this.JSC$19856_keyboardInUse};
_.u.handleCapturedKeydownEvent=function(D){if(D.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(D)};
_.u.onMouseDownEvent=function(){this.JSC$19856_keyboardInUse=!1};
_.u.onPageUpdate=function(){if(_.f("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.f("web_shorts_keyboard_shortcut_usage_log")){_.V1.clear();for(var D=_.a(_.Ft),Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;R=_.TP(R);_.V1.set(Y,R);_.Qk(_.K2(),_.Ud(),R)}_.el.clear();D=_.a(_.Gv);for(Y=D.next();!Y.done;Y=D.next())R=_.a(Y.value),Y=R.next().value,R=R.next().value,R=_.TP(R),_.el.set(Y,R),_.Qk(_.K2(),_.Ud(),R);_.BC(_.K2(),_.Ud(),[].concat(_.oK(_.el.values()),
_.oK(_.V1.values())));_.E7(_.K2(),[].concat(_.oK(_.el.values()),_.oK(_.V1.values())))}};
_.u.onMiniplayerActiveChange=function(){var D;(D=_.DH().resolve(_.mL).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(D.document):this.unlistenFromDocument(D.document))};
_.u.ignoreKeyEvent=function(D){if(D.ctrlKey||D.altKey)if(_.f("kevlar_macro_markers_keyboard_shortcut")){if(D.keyCode!==37&&D.keyCode!==39)return!0}else return!0;var Y=_.O$(D)||[];return _.fqz(Y)?(_.f("web_button_or_anchor_list_item")&&$Xp(Y,D)&&(this.JSC$19856_keyboardInUse=!0),!0):D.defaultPrevented?(Jb(D.keyCode,D.shiftKey,this.isShortsPage),!0):D.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(D):!1};
_.u.isSpacebarClick=function(D){var Y=D||window.event;var R;Y.composedPath&&typeof Y.composedPath==="function"?R=Y.composedPath():R=Y.path;R&&R.length?Y=R[0]:(Y=Y||window.event,Y=Y.target||Y.srcElement,Y.nodeType==3&&(Y=Y.parentNode));return Y&&D.keyCode===32&&(D=Y.tagName==="BUTTON"||Y.tagName==="A"||Y.tagName==="INPUT",Y=(Y=Y.getAttribute("role"))&&(Y==="option"||Y==="button"||Y.indexOf("menuitem")===0),D||Y)?!0:!1};
_.u.onKeyDownEvent=function(D){if(!this.ignoreKeyEvent(D)&&(D.keyCode===191&&(D.shiftKey||D.metaKey?D.repeat!=null&&D.repeat||(this.openHotkeyDialog(),Jb(D.keyCode,D.shiftKey,this.isShortsPage)):(this.focusSearchBox(),D.preventDefault())),!D.metaKey)){var Y=_.DH().resolve(_.mL);switch(D.keyCode){case 9:this.JSC$19856_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(D);break;case 84:Y.pipController.getWindow()&&window.focus();this.toggleTheaterMode(D.keyCode,D.shiftKey);break;case 73:Y.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(D.keyCode,D.shiftKey);break;case 70:if(this.isShortsPage&&_.f("web_fullscreen_shorts")){_.eMb();break}this.isMiniplayerActive()?Y.pipController.getWindow()&&(Y.close(!0),window.focus()):this.passEventToPlayer(D);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(D.keyCode,D.shiftKey):this.closeMiniplayer(D.keyCode,D.shiftKey)||this.passEventToPlayer(D);break;case 13:D.shiftKey&&_.DH().resolve(_.bO).activate(D);break;default:this.passEventToPlayer(D)}}};
_.u.onKeyUpEvent=function(D){if(!this.ignoreKeyEvent(D))if(_.f("web_speedmaster_spacebar_control")&&D.keyCode===32)this.handlePlayerSpaceKey(D,!0);else{var Y=this.getPlayerManager();Y&&(Y=Y.getPlayer())&&Y.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)}};
_.u.getPlayerManager=function(){var D=_.sm(),Y=_.DH().resolve(_.cD(_.Z4));return D&&Y&&Y.isOnWatch()?D:null};
_.u.passEventToPlayer=function(D,Y){var R=this,Z,t,X,M;return _.C(function(W){if(W.nextAddress==1){if(!_.f("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&R.isMiniplayerActive())Z=_.DH().resolve(_.mL).getPlayerElement();else if(R.inlinePreviewIsActive){if(t=_.WC(R.hostElement,"yt-get-inline-preview-player-action"),(X=t)==null?0:X[0])Z=t[0]}else Z=_.sm();return Z?W.yield(Z.getPlayerPromise(),3):W.jumpTo(0)}M=W.yieldResult;Y?M.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,
D.key,D.code):M.handleGlobalKeyDown(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat);D.keyCode!==38&&D.keyCode!==40&&Jb(D.keyCode,D.shiftKey,R.isShortsPage);_.V9(W)})};
_.u.focusSearchBox=function(){_.MX(this.hostElement,"yt-focus-searchbox")};
_.u.openHotkeyDialog=function(){_.MX(this.hostElement,"yt-open-hotkey-dialog")};
_.u.isMiniplayerActive=function(){return _.DH().resolve(_.mL).isMiniplayerActive()};
_.u.closeMiniplayer=function(D,Y){return this.isMiniplayerActive()?(_.DH().resolve(_.mL).close(),Jb(D,Y,this.isShortsPage),!0):!1};
_.u.toggleTheaterMode=function(D,Y){var R=_.hp(_.Dl().getState()),Z=this.getPlayerManager(),t=_.f("disable_theater_mode_keyboard")||_.ks("START_IN_FULL_WINDOW_MODE");Z&&!t&&(R=!R,_.t4()&&_.f("external_fullscreen")&&(R=!0),_.CX(this.hostElement,"yt-toggle-theater-mode",[R]),Jb(D,Y,this.isShortsPage))};
_.u.toggleMiniplayer=function(D,Y){var R=this.getPlayerManager();if(this.isMiniplayerActive()){var Z;((Z=_.DH().resolve(_.cD(_.Z4)))==null?0:Z.isOnWatch())?_.DH().resolve(_.mL).close(!0):_.mG(_.DH().resolve(_.mL));Jb(D,Y,this.isShortsPage)}else R&&(_.CX(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Jb(D,Y,this.isShortsPage))};
_.u.handlePlayerSpaceKey=function(D,Y){var R=!!_.sm()||this.isMiniplayerActive();R=_.f("disable_space_scroll_fix")||R;_.f("global_spacebar_pause")&&!this.isKeyBoardInUse()&&R&&(D.preventDefault(),this.passEventToPlayer(D,Y))};
_.u.isPresentingTheaterMode=function(){return _.f("web_watch_enable_tm_esc_key")?_.hp(_.Dl().getState())&&!_.t4():!1};
sj.prototype.onMiniplayerActiveChange=sj.prototype.onMiniplayerActiveChange;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],sj.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],sj.prototype,"ytdReduxBehavior",void 0);_.q([_.y({selector:_.Psj}),_.x("design:type",Boolean)],sj.prototype,"inlinePreviewIsActive",void 0);_.q([_.y({selector:_.mHU}),_.x("design:type",Boolean)],sj.prototype,"isShortsPage",void 0);
_.q([_.y({selector:_.Kh}),_.x("design:type",Boolean)],sj.prototype,"miniplayerIsActive",void 0);_.q([_.Gm("miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sj.prototype,"onMiniplayerActiveChange",null);_.q([_.h({disableElementRegistration:!0,is:"yt-hotkey-manager"})],sj);_.L(sj,"yt-hotkey-manager",void 0,{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var XO=function(){var D=_.N.apply(this,arguments)||this;D.loopStateEntityKey_=null;D.playlistLoopStateEntity_=null;D.isShuffleNextPlaylist=!1;D.PLAYER_EVENTS_=new Map;D.playerListenersSetup_=!1;D.videoSkipJob_=0;D.canAutoAdvance_=!1;D.playerManager_=null;D.TEST_ONLY={};return D};
_.n(XO,_.N);_.u=XO.prototype;_.u.ready=function(){_.DH().addProvider({provide:_.xW,useValue:this.hostElement})};
_.u.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_)};
_.u.attached=function(){document.addEventListener("yt-navigate-start",_.jN(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.jN(this,this.onYtNavigateFinish_))};
_.u.detached=function(){document.removeEventListener("yt-navigate-start",_.jN(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.jN(this,this.onYtNavigateFinish_))};
_.u.updatePlaylistEventListeners=function(D,Y){Y&&!this.playerListenersSetup_?(this.playerManager_=D,this.registerPlaylistEventListeners_(D)):!Y&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(D))};
_.u.setPlayer=function(D){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=D};
_.u.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.u.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.u.registerPlaylistEventListeners_=function(D){var Y=this;D.getPlayerPromise().then(function(R){Y.playerListenersSetup_||(Y.ytPlayerListenerBehavior.listenToPlayerEvents(R,Y.PLAYER_EVENTS_),Y.playerListenersSetup_=!0)})};
_.u.removePlaylistEventListeners_=function(D){var Y=this;D.getPlayerPromise().then(function(R){Y.playerListenersSetup_&&(Y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(R,Y.PLAYER_EVENTS_),Y.playerListenersSetup_=!1)})};
_.u.setPlaylistComponent=function(D){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.jN(this,this.onPlaylistYtNavigate_)),D&&(D.data&&this.playlistComponent.data&&D.data.playlistId==this.playlistComponent.data.playlistId?(D.loopOn=this.playlistComponent.loopOn,D.shuffleOn=this.playlistComponent.shuffleOn):(D.loopOn=!1,D.shuffleOn=!1),this.isShuffleNextPlaylist&&(D.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=D;this.playlistComponent.addEventListener("yt-navigate",
_.jN(this,this.onPlaylistYtNavigate_))};
_.u.setAutoplayRenderer=function(D){this.autoplayData=D};
_.u.setPlaylistData=function(D){this.currentPlaylistData_=D;_.MX(this.hostElement,"yt-playlist-data-updated");_.y7.isEmpty(D)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(D)};
_.u.setPlayerPlaybackControlData=function(D){this.playerManager_&&this.playerManager_.updatePlayerComponents(D.playlistPanelRenderer)};
_.u.getPlaylistData=function(){return this.currentPlaylistData_};
_.u.getTempData_=function(D,Y){if(this.playlistComponent==null)return null;D={};this.playlistComponent.shuffleOn&&(D.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(D.loop_on=this.playlistComponent.loopOn);Y&&(D.autonav="1",_.DH().resolve(_.bq),Y=_.Ro(),Y>0&&(D.lact=Y),this.playerManager_&&(Y=this.playerManager_.getPlayer())&&Y.shouldSendVisibilityState()&&(Y=Y.getVisibilityState(),Y!=0&&(D.vis=Y)));_.f("enable_unknown_lact_fix_on_html5")&&(_.DH().resolve(_.bq),D.lact=
_.Ro());return D};
_.u.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.u.setLoopStateEntityKey_=function(D){var Y;this.loopStateEntityKey_=((Y=this.getPlaylistLoopData_(D))==null?void 0:Y.playlistLoopStateEntityKey)||null};
_.u.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.u.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.u.skipVideo=function(){var D=this,Y=_.f("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||Y)Y=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.NP(_.yc,function(){D.onPlaylistNext();D.videoSkipJob_=0},Y)};
_.u.cancelVideoSkip=function(){this.videoSkipJob_&&(_.yc.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.u.isInBackground_=function(){var D=window.document.visibilityState;return!(!D||D=="visible")};
_.u.onPlaylistIndex_=function(D){this.playlistComponent&&(D=this.playlistComponent.data.contents[D].playlistPanelVideoRenderer.navigationEndpoint,_.MX(this.hostElement,"yt-navigate",{endpoint:D,tempData:this.getTempData_(D)}))};
_.u.onPlayerStateChange_=function(D){if(D=D==0&&this.playlistComponent&&this.canAutoAdvance_)D=_.tG.getInstance(),D=!(D.autonavState_===3?D.autonavPauseReason_&&D.autonavPauseReason_.inputBoxFocus===!0:D.autonavState_===1&&D.disabledAutonavPauseReason_&&D.disabledAutonavPauseReason_.inputBoxFocus===!0);D&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.u.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.u.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.u.navigateToAutoplayWatchEndpoint_=function(D,Y,R){var Z=this.playlistComponent.data.currentIndex,t=this.getNumPlayableVideos_();D=="NORMAL"&&Y=="autoplayVideo"&&Z+1>=t&&R||!(D=this.getVideoEndpoint_(D,Y))||(R=this.getTempData_(D,R),_.MX(this.hostElement,"yt-navigate",{endpoint:D,tempData:R}))};
_.u.getNumPlayableVideos_=function(){for(var D=0,Y=_.a(this.playlistComponent.data.contents||[]),R=Y.next();!R.done;R=Y.next())R.value.playlistPanelVideoRenderer&&(D+=1);return D};
_.u.getVideoEndpoint_=function(D,Y){if(this.autoplayData&&this.autoplayData.sets)for(var R=0,Z=this.autoplayData.sets.length;R<Z;R++){var t=this.autoplayData.sets[R];if(t.mode==D){if(t[Y])return t[Y];break}}else D=new _.AT("AutoplayData is undefined in playlist manager","Mode: "+D+" endpoint: "+Y),_.Jk(D)};
_.u.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.u.onPlaylistYtNavigate_=function(D){if(D.detail.endpoint){D.stopPropagation();var Y=D.detail;Y.tempData=this.getTempData_(D.detail.endpoint);_.MX(this.hostElement,"yt-navigate",Y)}};
_.u.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.u.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.u.playlistLoopStateEntityChanged_=function(D){var Y=this,R,Z,t;return _.C(function(X){if(X.nextAddress==1){if(!D)return X.return();R=D.state==="PLAYLIST_LOOP_STATE_ONE";return Y.playerManager_?X.yield(Y.playerManager_.getPlayerPromise(),3):X.jumpTo(2)}X.nextAddress!=2&&(Z=X.yieldResult,Z.setLoopVideo(R));t=D.state==="PLAYLIST_LOOP_STATE_ALL";Y.playlistComponent&&(Y.playlistComponent.loopOn=t);_.V9(X)})};
_.u.getPlaylistLoopData_=function(D){var Y,R;if(D=D==null?void 0:(Y=D.playlistButtons)==null?void 0:(R=Y.menuRenderer)==null?void 0:R.topLevelButtons)for(Y=_.a(D),R=Y.next();!R.done;R=Y.next())if(R=R.value,R.playlistLoopButtonRenderer)return R.playlistLoopButtonRenderer};
_.u.getLoopStateCommand_=function(D){var Y=this.getPlaylistData(),R;Y=((R=this.getPlaylistLoopData_(Y))==null?void 0:R.states)||[];var Z;D=(Z=_.A(Y[D?1:2],_.TQY))==null?void 0:Z.button;var t;return(t=_.A(D,_.qv))==null?void 0:t.command};
_.u.onPlayerLoopChange_=function(D){this.playlistLoopStateEntity_&&(D?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(D=this.getLoopStateCommand_(D))&&this.ytComponentBehavior.resolveCommand(D)};
_.u.onSleepTimerSettingsChanged_=function(D){this.canAutoAdvance_=D!=="End of video"};
XO.prototype.onPlaylistLoopStateEntityChanged=XO.prototype.onPlaylistLoopStateEntityChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.iH.YtPlayerListenerBehavior),_.x("design:type",_.OY)],XO.prototype,"ytPlayerListenerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],XO.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XO.prototype,"loopStateEntityKey_",void 0);
_.q([_.y({selectorArgs:["loopStateEntityKey_"],selector:_.KGM}),_.x("design:type",Object)],XO.prototype,"playlistLoopStateEntity_",void 0);_.q([_.Gm("playlistLoopStateEntity_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XO.prototype,"onPlaylistLoopStateEntityChanged",null);_.q([_.h({disableElementRegistration:!0,is:"yt-playlist-manager"})],XO);_.L(XO,"yt-playlist-manager",void 0,{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var qB9,Hak=function(){if(qB9!==void 0)return qB9;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return qB9=D};var uJ=function(){var D=_.N.apply(this,arguments)||this;D.lastCallback=null;D.getAccountLinkPromises={};D.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);D.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return D};
_.n(uJ,_.N);_.u=uJ.prototype;_.u.getLocation=function(){return window.location.href};
_.u.getCompletionUrl=function(){return _.Y8(this.getLocation())};
_.u.containsRedirectState=function(D){return(D=_.oa(_.jqo(D)))?(new URLSearchParams(D)).get("redirect_state")!==null:!1};
_.u.createGalConfig=function(D,Y){var R=new Yrb;D=R=Y?this.getPopupOrRedirectSetting(R,_.JQ("LINK_API_KEY"),_.JQ("LINK_API_KEY_REDIRECT"),D):RDI(R,_.JQ("LINK_API_KEY"));D.authUser=_.JQ("SESSION_INDEX")||0;D.supportedFlows=new Set([4]);return D.build()};
_.u.getPopupOrRedirectSetting=function(D,Y,R,Z){this.isGalInteractionPopupMode(Z)?(D.interactionMode=0,D=RDI(D,Y)):(D.interactionMode=1,Y=this.getCompletionUrl(),D.completionUrl=Y,D=RDI(D,R));return D};
_.u.isGalInteractionPopupMode=function(D){if(this.redirectModeProviderAllowlist.has(D))switch(D){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.u.getStatusEntityKeyForProviderId=function(D){return _.TL(D+":all","accountLinkStatusEntity")};
_.u.findNestedPropValue=function(D,Y){var R=!1,Z=null;JSON.stringify(D,function(t,X){R||t!==Y||(R=!0,Z=X);return R?null:X});
return Z};
_.u.findAccountLinkButtonViewModel=function(D,Y){var R=null,Z=!1;JSON.stringify(D,function(t,X){Z||X.accountLinkStatusEntityKey!==Y||X.accountLinkStatusSecondaryEntityKey||(Z=!0,R=X);return Z?null:X});
return R};
_.u.executeLinkingSuccessOrFailureCommands=function(D,Y,R){var Z=null,t;(Y==null?0:(t=Y.url)==null?0:t.includes("account_sharing"))?Z=Y==null?void 0:Y.response:Z=Y==null?void 0:Y.response;(Y=this.findAccountLinkButtonViewModel(Z,D))?(D=R?this.findNestedPropValue(Y,"onSuccessCommand"):this.findNestedPropValue(Y,"onFailureCommand"))?_.Ib([D],this.hostElement):_.qJ(Error("il")):_.qJ(Error("jl`"+D))};
_.u.handleInitializeRequest=function(D,Y){var R=this,Z=ruk(this.createGalConfig(D,!0));this.containsRedirectState(this.getLocation())?VCK(D,Z.config,Z.galService).then(function(t){var X=R.getStatusEntityKeyForProviderId(D);if(t.statusCode===1)Y&&R.executeLinkingSuccessOrFailureCommands(X,Y,!0),t=R.getLocation().indexOf("#"),t!==-1&&window.history.pushState(null,"",R.getLocation().substring(0,t));else return Y&&R.executeLinkingSuccessOrFailureCommands(X,Y,!1),Promise.reject(Error(t.statusMessage))}).catch(function(t){_.Jk(t);
_.bo("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(t)}):this.getAccountLinkPromises[D]=Z.startLinkingSession({serviceId:D})};
_.u.handleAccountLinkCommand=function(D){_.A(D,Hct)&&this.handleLinkRequest(_.A(D,Hct))};
_.u.handleLinkRequest=function(D){var Y=this,R=D.thirdPartyId;if(R)if(this.isGalInteractionPopupMode(R)){var Z=function(){Y.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onFailureCommand)},t=function(){Y.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onSuccessCommand)};
this.lastCallback=t;this.getAccountLinkPromises[R].then(function(X){kt0(X).then(function(M){M.statusCode===1?t():Z()})}).catch(function(){Z()})}else this.getAccountLinkPromises[R].then(function(X){kt0(X).then(function(M){if(M.statusCode!==1)return Promise.reject(Error(M.statusMessage))})}).catch(function(X){_.Jk(X);
_.bo("gamingAccountLinkStatusChanged",{serviceId:R,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(X)})};
_.u.closeAndFire=function(D,Y){_.CX(this.hostElement,"yt-close-popup-action",[D]);Y&&_.Ib([Y],this.hostElement)};
_.u.handleAccountUnlinkCommand=function(D){_.A(D,xxI)&&this.handleUnlinkRequest(_.A(D,xxI))};
_.u.handleUnlinkRequest=function(D){var Y=this,R=D.thirdPartyId;if(R){var Z=function(){Y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onFailureCommand)},t=function(){Y.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onSuccessCommand)};
this.lastCallback=t;var X=ruk(this.createGalConfig(R,!1));this.unlinkUserGal(X,R).then(function(M){M.statusCode===1?t():Z()}).catch(function(){Z()})}};
_.u.unlinkUserGal=function(D,Y){return D.deleteLink(Y)};
_.u.handleLogAccountLinkingEventCommand=function(D){_.f("enable_gel_log_commands")&&_.A(D,PBh)&&(D=_.A(D,PBh).event)&&_.bo("gamingAccountLinkStatusChanged",D)};
_.YF.Object.defineProperties(uJ,{template:{configurable:!0,enumerable:!0,get:function(){return Hak()}}});
_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],uJ.prototype,"ytOpenPopupBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],uJ.prototype,"ytActionHandlerBehavior",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-third-party-manager"})],uJ);_.L(uJ,"ytd-third-party-manager",function(){return Hak()},{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var xLt,PY0=function(){if(xLt!==void 0)return xLt;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return xLt=D};var ar=function(){var D=_.N.apply(this,arguments)||this;D.currentPage=void 0;D.renderLoadingStateJobId=0;D.updatePageDataJobId=0;D.pageDisposeJobsets=new WeakMap;D.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"};D.shouldApplyLockupToWatchTransition=_.f("web_thumbnail_to_watch_transition");D.shouldApplySlideTransition=_.XW("web_page_transition_type")==="slide"||_.f("enable_plj_landing_page");D.shouldApplyLearningJourneyTransition=_.f("enable_plj_landing_page");D.TEST_ONLY=void 0;return D};
_.n(ar,_.N);_.u=ar.prototype;_.u.ready=function(){var D=_.DH();D.addProvider({provide:_.Z4,useValue:this});D.addProvider({provide:_.ukb,useValue:this})};
_.u.created=function(){this.pagePool=new j2u;this.contextSwitcher=new bVk};
_.u.attached=function(){_.MX(this.hostElement,"attached");var D=_.DH().resolve(_.cD(_.Kn));D&&(this.contextSwitcher.JSC$19682_networkService_=D);this.viewTransitionManager=_.DH().resolve(_.f1)};
_.u.getPageOffset=function(D){return D.getScrollTop()};
_.u.setPageOffset=function(D,Y){try{D.setScrollTop(Y)}catch(R){}};
_.u.setPageOffsetForNavigation=function(D,Y){_.MX(this.hostElement,"yt-navigate-set-page-offset",{page:D,offset:Y===void 0?0:Y})};
_.u.pauseActiveContext=function(){var D=this.contextSwitcher;D.activeContext_&&D.activeContext_.pause()};
_.u.getModuleNameForType=function(D){return D==="watch"?_.f("kevlar_watch_fixie")?"watchFixie":_.f("kevlar_watch_grid")?"watchGrid":"watchFlexy":D==="shorts"||D==="search"?D:"browse"};
_.u.attachPage=function(D){var Y,R=!_.f("pc_is_attached_ks")&&(D==null?void 0:(Y=D.polymerController)==null?void 0:Y.isAttached);if(!D.isAttached&&!R)try{_.aU(this.hostElement).appendChild(D)}catch(t){var Z;_.Jk(new _.AT("Error attaching page element for component",{origin:(Z=this.currentPage)==null?void 0:Z.is,component:D.is}))}};
_.u.setActivePage=function(D){var Y=this,R=!1,Z=function(){var t=Y.isOnWatch(),X=Y.currentPage;if(D)if(D!==Y.currentPage){X&&(X.hidden=!0,X.active=!1,X.removeAttribute("role"));Y.currentPage=D;var M,W=_.eI((M=Y.data)==null?void 0:M.endpoint);X&&_.MX(Y.hostElement,"yt-page-type-changed",{oldPageType:X.is,newPageType:D.is,newPageSubtype:W});_.Og().dispatch(_.u0({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:D.is}));_.Og().dispatch(_.u0({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:W||""}));D.hidden=
!1;Y.attachPage(D);D.active=!0;D.setAttribute("role","main");X&&Y.setPageOffsetForNavigation(D,0);_.f("kevlar_remove_page_dom_on_switch")&&!t&&X&&_.aU(Y.hostElement).removeChild(X)}else R=!0;else t=new _.AT("Unable to set active page",X?X.is:"unknown origin",(W=Y.data)==null?void 0:W.endpoint),_.Nb(t)};
this.shouldRunBrowseTransition(this.currentPage,D)?dVh(this.viewTransitionManager,Z):this.shouldRunLearningJourneyTransition(this.currentPage,D)?cRT(this.viewTransitionManager,Z):Z();return R};
_.u.shouldRunBrowseTransition=function(D,Y){return this.shouldApplySlideTransition&&(D==null?void 0:D.is)==="ytd-browse"&&(Y==null?void 0:Y.is)==="ytd-browse"&&D!==Y};
_.u.shouldRunLearningJourneyTransition=function(D,Y){return this.shouldApplyLearningJourneyTransition&&(D==null?void 0:D.is)==="ytd-browse"&&((Y==null?void 0:Y.is)==="ytd-watch-learning-journey"||(Y==null?void 0:Y.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.u.shouldRunWatchNextLoadedTransition=function(D,Y){return this.viewTransitionManager&&D.is==="ytd-watch-flexy"&&Y};
_.u.updatePageData=function(D){var Y=this,R=this.data;this.updatePageDataJobId&&_.yc.cancelJob(this.updatePageDataJobId);this.data=D;return new _.zz(function(Z){var t=function(){D.filler?Y.performDataUpdate(D,R):Xlz(function(){Y.performDataUpdate(D,R)});
var z=_.Q0();_.Bk(z,"cr")||z.processSignal("cr");Z()},X=function(){D&&D.page==="watch"?Y.updatePageDataJobId=_.NP(_.yc,t):t()};
if(_.f("kevlar_enable_mss_page_modules_client")&&D){var M=_.DH().resolve(_.Hf),W=Y.getModuleNameForType(D.page);(M=E69(M,[W]))?M.then(X):X()}else X()})};
_.u.isDownloadsPage=function(D){var Y,R;return(D==null?void 0:(Y=D.endpoint)==null?void 0:(R=Y.browseEndpoint)==null?void 0:R.browseId)==="FEdownloads"};
_.u.setPlayerSyncInterval=function(D){var Y;return _.C(function(R){if(R.nextAddress==1)return R.yield(_.DH().resolve(_.CH),2);Y=R.yieldResult;Y.setUpPositionSyncInterval(D);_.V9(R)})};
_.u.performDataUpdate=function(D,Y){_.f("kevlar_early_popup_close")||_.CX(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var R=!D.filler;R&&(_.KX("lps"),_.f("config_age_report_killswitch")||lah());var Z=Ab(D),t,X=!1;if(_.f("kevlar_remove_page_dom_on_switch")){var M=Y&&Ab(Y);Z===M&&(t=this.getCurrentPage())}t||(t=iG(this.pagePool,Z));R&&MVE(this.pagePool.elementPoolPopulator,Z);R&&!this.renderLoadingStateJobId&&(X=this.setActivePage(t));if(t){M=Z==="watch";var W=
Z==="shorts",z=Z==="learning_journey_watch";_.f("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(t);if(M||W||z)t.playerData=D.playerResponse;if(W)if(_.f("web_enable_delay_shorts_sequence_call")){D.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=D.reelWatchSequenceResponse);t.currentEndpoint=D.endpoint;var I;t.isPreviousPageShorts=!!(Y==null?0:(I=Y.endpoint)==null?0:I.reelWatchEndpoint);var F,G;D.cachedSequenceParams=((F=D.endpoint)==null?void 0:(G=F.reelWatchEndpoint)==
null?void 0:G.sequenceParams)||D.cachedSequenceParams||(Y==null?void 0:Y.cachedSequenceParams);var V,e;D.cachedSequenceProvider=((V=D.endpoint)==null?void 0:(e=V.reelWatchEndpoint)==null?void 0:e.sequenceProvider)||D.cachedSequenceProvider||(Y==null?void 0:Y.cachedSequenceProvider);t.cachedSequenceParams=D.cachedSequenceParams;t.cachedSequenceProvider=D.cachedSequenceProvider}else{D.reelWatchSequenceResponse?t.reelWatchSequenceResponse=D.reelWatchSequenceResponse:D.cachedReelWatchSequenceResponse?
t.reelWatchSequenceResponse=D.cachedReelWatchSequenceResponse:_.f("web_enable_cached_reel_sequence_fix")&&t.cachedReelWatchSequenceResponse&&!t.reelWatchSequenceResponse&&(t.reelWatchSequenceResponse=t.cachedReelWatchSequenceResponse);t.currentEndpoint=D.endpoint;var r;t.isPreviousPageShorts=!!(Y==null?0:(r=Y.endpoint)==null?0:r.reelWatchEndpoint);D.cachedReelWatchSequenceResponse=D.reelWatchSequenceResponse||D.cachedReelWatchSequenceResponse||(Y==null?void 0:Y.cachedReelWatchSequenceResponse);t.cachedReelWatchSequenceResponse=
D.cachedReelWatchSequenceResponse}I=this.isDownloadsPage(D);F=this.isDownloadsPage(Y);I&&!F?this.setPlayerSyncInterval(6E5):!I&&F&&this.setPlayerSyncInterval();_.f("block_all_player_prefetch_requests")||this.preparePrefetchRequest(D,t,R,M,W,z);Dik(_.DH().resolve(_.mL),Y,D);_.t7(_.DH().resolve(_.bq));_.f("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(t);R?(R=typeof t.loadPage,R==="function"?(t.pageContext=y79(this.contextSwitcher,t,t.data!==D.response),R=function(){t.loadPage(D.response)},
this.shouldApplySlideTransition&&t.is==="ytd-browse"&&X&&(Z==="learning"||this.isDifferentBrowseId(D==null?void 0:D.endpoint,Y==null?void 0:Y.endpoint))?dVh(this.viewTransitionManager,R):this.shouldRunWatchNextLoadedTransition(t,X)?O9I(this.viewTransitionManager,R):R()):_.lo(new _.AT("b/38014653 ",[Z,
t.is,t.nodeName,R,t.isAttached,Y&&Ab(Y),this.hostElement.children.length])),_.KX("pdl")):(t.hidden=!0,D.response.filler=!0,t.data=D.response,this.attachPage(t));_.MX(this.hostElement,"yt-page-data-updated",{pageType:Z})}_.Ak(_.yc,function(){_.f("logging_avoid_blocking_during_navigation")&&_.cpM().transition("none");var l=BGK(),U=t;if(D){var K=Ihh(D),H=F4T(D),c;a:{if(D.playerResponse){var Q=D.playerResponse,E;if((c=Q.auxiliaryUi)==null?0:(E=c.messageRenderers)==null?0:E.upsellDialogRenderer){c=Q.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(D.response&&(c=D.response,(Q=c.overlay)==null?0:Q.upsellDialogRenderer)){c=c.overlay.upsellDialogRenderer;break a}c=void 0}var B;var O;E=(B=D.playerResponse)==null?void 0:(O=B.auxiliaryUi)==null?void 0:O.messageRenderers;B=(E==null?void 0:E.enforcementMessageViewModel)||(E==null?void 0:E.bkaEnforcementMessageViewModel);B=(B==null?void 0:B.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?B:void 0;var Wo;a:{if(D.response&&(O=D.response,(Wo=O.overlay)==null?0:Wo.commandWrapperPromoRenderer)){Wo=
O.overlay.commandWrapperPromoRenderer;break a}Wo=void 0}QXh(l,K,H,c,B,Wo,U)}})};
_.u.preparePrefetchRequest=function(D,Y,R,Z,t,X){var M,W,z,I,F,G,V,e,r,l,U,K,H,c,Q;return _.C(function(E){if(E.nextAddress==1)return!R||!(Z||t||X)||_.f("kevlar_disable_background_prefetch")&&_.Lb(_.B7U)()===0?E.return():(M=_.tx(Y))?E.yield(M.getPlayerPromise(),2):E.return();W=E.yieldResult;z=_.DH().resolve(_.cD(_.Kn));if(!z)return E.return();if(t)return I=_.Ra(_.vs),IxK(I,(F=D.endpoint)==null?void 0:F.reelWatchEndpoint,Y.reelWatchSequenceResponse,W,z),E.return();e=(G=D.response)==null?void 0:(V=G.responseContext)==
null?void 0:V.webResponseContextExtensionData;if(!e)return E.return();H=(r=D.response)==null?void 0:(l=r.contents)==null?void 0:(U=l.twoColumnWatchNextResults)==null?void 0:(K=U.autoplay)==null?void 0:K.autoplay;c=_.DH().resolve(_.xW);Q=_.Ra(_.vs);FuK(Q,e,W,z,c,H);_.V9(E)})};
_.u.movePlayerToWatch=function(D){var Y=this,R,Z;return _.C(function(t){R=iG(Y.pagePool,"watch");Z=R.getPlayerContainer();D.appendTo(Z);_.V9(t)})};
_.u.movePlayerToShorts=function(D){var Y=this,R,Z,t;return _.C(function(X){R=iG(Y.pagePool,"shorts");Z=R.getPlayerContainer();(t=D)==null||t.appendTo(Z,void 0,!0);_.V9(X)})};
_.u.getPlayerFromWatch=function(){var D=iG(this.pagePool,"watch");return _.tx(D)};
_.u.getPlayerFromShorts=function(){var D=iG(this.pagePool,"shorts");return _.tx(D)};
_.u.startLoadingWatch=function(){var D=this,Y=iG(this.pagePool,"watch");this.renderLoadingStateJobId?(_.yc.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.f("web_watch_transition_enable_start_loading_watch_callsite")?i9k(this.viewTransitionManager,function(){D.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(Y)};
_.u.startLoadingShorts=function(){var D=iG(this.pagePool,"shorts");this.setActivePage(D)};
_.u.startLoadingLearningJourney=function(){var D=iG(this.pagePool,"learning_journey_watch");this.setActivePage(D)};
_.u.getCurrentPage=function(){return this.currentPage};
_.u.getDestinationPageType=function(){return this.destinationPageType};
_.u.getCurrentData=function(){return this.data};
_.u.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.u.isOnShorts=function(){var D;return((D=this.currentPage)==null?void 0:D.is)==="ytd-shorts"};
_.u.isWatchPage=function(D){return!!D&&(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-fixie"||D.is==="ytd-watch-grid")};
_.u.preparePage=function(D,Y){var R=this,Z=function(){var M=R.pagePool.preparePage(D,R.currentPage,Y);M&&R.attachPage(M)},t=function(M){_.kN(M,Y);
_.Jk(M)};
if(_.f("kevlar_enable_mss_page_modules_client")){var X=this.getModuleNameForType(D);if(X=E69(_.DH().resolve(_.Hf),[X])){X.then(Z.bind(this)).catch(t.bind(this));return}}try{Z()}catch(M){t(M)}};
_.u.lazyPrepareCriticalPages=function(D,Y){D=_.eI(Y)||D;_.f("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(D).then(this.maybePrepareWatchPage.bind(this,D)):this.maybePrepareWatchPage(D)};
_.u.maybePrepareWatchPage=function(D){D!=="watch"&&_.Ak(_.yc,this.preparePage.bind(this,"watch"))};
_.u.downloadPageModules=function(D){D=this.getModuleNameForType(D);var Y=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);Y.delete(D);var R=_.DH().resolve(_.Hf);R.JSC$18433_loadModules(D);return R.JSC$18433_loadModules.apply(R,_.oK(Y))};
_.u.renderPageLoadingState=function(D,Y){this.preparePage(D,Y);var R=iG(this.pagePool,D);R.loadingData&&(R.loadingData.endpoint=Y);R.loading=!0;this.setActivePage(R);D!=="watch"&&D!=="learning_journey_watch"||_.MX(this.hostElement,"yt-guide-close")};
_.u.prepareForNavigation=function(D,Y){var R=this;if(this.currentPage&&this.data){var Z=_.eI(Y)||D;this.destinationPageType=Z;Ab(this.data)==Z&&_.MX(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((D==="watch"||D==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.yc.cancelJob(this.renderLoadingStateJobId);_.DH().resolve(_.mL).deactivate(Y);_.$c(_.yc,function(){var X=R.viewTransitionManager,M=R.currentPage;
if(X.isLockupToWatchTransitionEnabled&&X.isLockupThumbnailRegistrationEnabled&&M)if(X.registeredLockupThumbnail)X.lockupThumbnailRegisteredFromWatchEndpoint&&_.Jk(new _.AT("Lockup thumbnail already registered from watch endpoint."));else{a:{var W=_.A(Y,_.Od);if(W==null?0:W.videoId){var z="yt-lockup-view-model ."+_.Bjb(W.videoId)+" yt-thumbnail-view-model";M=M.querySelectorAll(z);if(M.length===1){W=M[0];break a}M.length>1?_.Jk(new _.AT("Multiple LockupViewModel thumbnails found for videoId: "+W.videoId+
". Selector: "+z)):_.f("web_thumbnail_to_watch_transition_debug")&&_.Jk(new _.AT("No LockupViewModel thumbnail found for videoId: "+W.videoId+". Selector: "+z))}W=void 0}W&&(X.registeredLockupThumbnail=W,X.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.N99(X,W))}});
var t=this.data;this.renderLoadingStateJobId=_.$c(_.yc,function(){i9k(R.viewTransitionManager,function(){if(R.data!=t){var X=iG(R.pagePool,D);R.setActivePage(X)}else R.renderPageLoadingState(D,Y);R.renderLoadingStateJobId=0})},150)}};
_.u.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var D=new _.Xh(1);this.currentPage.pageDisposeJobs.forEach(function(Y){_.uu(D,Y)});
this.pageDisposeJobsets.set(this.currentPage,D)}};
_.u.flushPageDisposeJobset=function(D){var Y=this.pageDisposeJobsets.get(D);Y&&(Y.flushJobs(),this.pageDisposeJobsets.delete(D))};
_.u.onYtStopOldPlayer=function(D,Y){Y=Y===void 0?!1:Y;var R,Z=_.ux("kevlar_new_stop_old_player_logic_pages");if(_.f("kevlar_check_current_page_on_stop_old_player")&&(Z.length===0||this.currentPage&&Z.includes(this.currentPage.is)))if(this.data&&(R=Ab(this.data)),Ab(D)===R&&this.currentPage&&Ab(this.currentPage.data)!==R)var t=_.tx(this.currentPage);else R=Ab(this.data),t=iG(this.pagePool,R),t=_.tx(t);else this.data&&(R=Ab(this.data),t=iG(this.pagePool,R),t=_.tx(t));if(t)if(D=Ab(D),Z=iG(this.pagePool,
D),Z=_.tx(Z),t==Z)Y&&!_.f("kevlar_disable_preemptive_player_reset")&&t.resetForNewPlayback();else if(Y=R==="watch"&&D!=="watch",!Y||D==="shorts"||_.We_()&&!vMh(this.data)&&D!=="yts-products"&&D!="mini_app"&&D!="playables")R=_.DH().resolve(_.mL),Y&&R.isMiniplayerActive()&&R.pipController.getWindow()||t.stop()};
_.u.isDifferentBrowseId=function(D,Y){D=_.A(D,_.A6);Y=_.A(Y,_.A6);return(D==null?void 0:D.browseId)!==(Y==null?void 0:Y.browseId)};
_.YF.Object.defineProperties(ar,{template:{configurable:!0,enumerable:!0,get:function(){return PY0()}}});
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ar.prototype,"ytActionHandlerBehavior",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-page-manager"})],ar);_.L(ar,"ytd-page-manager",function(){return PY0()},{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var Q29;var Mr=function(){var D=_.N.apply(this,arguments)||this;D.useListItemStyles=_.f("web_list_item_style_for_menu_items");D.systemIcons=_.f("kevlar_system_icons");return D};
_.n(Mr,_.N);_.u=Mr.prototype;_.u.ready=function(){this.hostElement.addEventListener("tap",_.jN(this,this.onEndpointTapExtra))};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.u.onFocus=function(){var D;(D=_.aU(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.u.onEndpointTapExtra=function(D){_.MX(this.hostElement,"iron-activate");var Y=this.data.navigationEndpoint;Y&&_.A(Y,_.nXl)&&(D.stopPropagation(),_.Se(this.hostElement,[Y],this.hostElement))};
_.u.computeIcon=function(D){return D&&D.iconType?_.IT(D.iconType):""};
_.u.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.u.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.u.forceUpdateStylesOnLegacyBrowsers=function(){_.f("kevlar_legacy_browsers")&&_.SN(this.hostElement)};
Mr.prototype.forceUpdateStylesOnLegacyBrowsers=Mr.prototype.forceUpdateStylesOnLegacyBrowsers;Mr.prototype.onFocus=Mr.prototype.onFocus;_.q([_.v(_.Rv),_.x("design:type",Object)],Mr.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.KH7.YtConditionalRendererBehavior),_.x("design:type",Object)],Mr.prototype,"ytConditionalRendererBehavior",void 0);_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],Mr.prototype,"ytEndpointBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Mr.prototype,"data",void 0);_.q([_.y({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],Mr.prototype,"icon",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Mr.prototype,"useIcons",void 0);_.q([_.y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Mr.prototype,"hasSeparator",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mr.prototype,"useListItemStyles",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Mr.prototype,"systemIcons",void 0);_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mr.prototype,"onFocus",null);_.q([_.Gm("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mr.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.L(Mr,"ytd-menu-navigation-item-renderer",function(){if(Q29===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);Q29=D}D=Q29;return D},{mode:1});var BOb;var p1k=_.i0(_.fX("DOWNLOAD",{},"Download")),Ekt=_.i0(_.fX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),gkK=_.i0(_.fX("RETRY",{},"Retry")),dL9=_.i0(_.fX("PAUSE_DOWNLOADING",{},"Pause downloading")),iab=_.i0(_.fX("RESUME_DOWNLOAD",{},"Resume download")),Cx=function(){var D=_.N.apply(this,arguments)||this;D.primaryText=p1k;D.primaryIconType="OFFLINE_DOWNLOAD";D.hasSecondaryContent=!1;D.hasSeparator=!1;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.isHidden=!1;D.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return D};
_.n(Cx,_.N);_.u=Cx.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.u.onFocus=function(){this.primaryEntry.focus()};
_.u.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.u.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.u.getRemoveAction=function(){return"ACTION_REMOVE"};
_.u.sendOfflineAction=function(D){var Y=this.data.serviceEndpoint;if(Y){var R=_.A(Y,_.Vi);R&&D&&(R.action=D);this.ytComponentBehavior.resolveCommand(Y)}};
_.u.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=p1k,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=p1k;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=gkK;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Ekt;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=iab;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Ekt;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
dL9;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Ekt;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Ekt;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=p1k,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.u.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.u.isSecondaryEntryHidden=function(D,Y){return D?!0:!Y};
_.u.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
Cx.prototype.showHideButton=Cx.prototype.showHideButton;Cx.prototype.onTransferStateChange=Cx.prototype.onTransferStateChange;Cx.prototype.onFocus=Cx.prototype.onFocus;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Cx.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Cx.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Cx.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Cx.prototype,"primaryText",void 0);_.q([_.y(),_.x("design:type",String)],Cx.prototype,"primaryIconType",void 0);_.q([_.y(),_.x("design:type",String)],Cx.prototype,"primaryAction",void 0);_.q([_.y(),_.x("design:type",Object)],Cx.prototype,"secondaryText",void 0);_.q([_.y(),_.x("design:type",String)],Cx.prototype,"secondaryIconType",void 0);
_.q([_.y(),_.x("design:type",String)],Cx.prototype,"secondaryAction",void 0);_.q([_.y(),_.x("design:type",Object)],Cx.prototype,"hasSecondaryContent",void 0);_.q([_.y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Object)],Cx.prototype,"hasSeparator",void 0);_.q([_.y({selector:_.mW,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",String)],Cx.prototype,"transferState",void 0);
_.q([_.y({selector:_.akr,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],Cx.prototype,"isVideoDeletedByUser",void 0);_.q([_.y(),_.x("design:type",Object)],Cx.prototype,"isHidden",void 0);_.q([_.y({selector:_.Ynj,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],Cx.prototype,"offlineabilityState",void 0);_.q([_.fr("#primary-entry"),_.x("design:type",Object)],Cx.prototype,"primaryEntry",void 0);
_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cx.prototype,"onFocus",null);_.q([_.rd("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cx.prototype,"onTransferStateChange",null);_.q([_.rd("offlineabilityState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cx.prototype,"showHideButton",null);
_.L(Cx,"ytd-menu-service-item-download-renderer",function(){if(BOb===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);BOb=D}D=BOb;return D},{mode:1});var Oat;var We=function(){var D=_.N.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.f("kevlar_system_icons");D.useListItemStyles=_.f("web_list_item_style_for_menu_items");return D};
_.n(We,_.N);_.u=We.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.u.onFocus=function(){var D;(D=_.aU(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.u.onTap=function(){_.WC(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var D=this.data.serviceEndpoint,Y=this.data.command;if(D){var R,Z=(R=this.data)==null?void 0:R.trackingParams;R=!!_.A(D,_.r2U);Z&&R&&_.Dl().dispatch(_.u0({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Z}}));this.ytComponentBehavior.resolveCommand(D)||_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}})}Y&&(this.ytComponentBehavior.resolveCommand(Y)||_.Se(this.hostElement,
[Y],this.hostElement))};
_.u.computeIcon=function(D){return D&&D.iconType?_.IT(D.iconType):""};
_.u.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.u.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
_.u.forceUpdateStylesOnLegacyBrowsers=function(){_.f("kevlar_legacy_browsers")&&_.SN(this.hostElement)};
_.u.computeIsSelected=function(){var D;return!((D=this.data)==null||!D.isSelected)};
We.prototype.forceUpdateStylesOnLegacyBrowsers=We.prototype.forceUpdateStylesOnLegacyBrowsers;We.prototype.onTap=We.prototype.onTap;We.prototype.onFocus=We.prototype.onFocus;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],We.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],We.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.KH7.YtConditionalRendererBehavior),_.x("design:type",Object)],We.prototype,"ytConditionalRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],We.prototype,"data",void 0);_.q([_.y({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],We.prototype,"icon",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],We.prototype,"useIcons",void 0);
_.q([_.y({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],We.prototype,"hasSeparator",void 0);_.q([_.y({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.x("design:type",Boolean)],We.prototype,"isSelected",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],We.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],We.prototype,"useListItemStyles",void 0);
_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],We.prototype,"onFocus",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],We.prototype,"onTap",null);_.q([_.Gm("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],We.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.L(We,"ytd-menu-service-item-renderer",function(){if(Oat===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);Oat=D}D=Oat;return D},{mode:2});var czk;var zc=function(){return _.N.apply(this,arguments)||this};
_.n(zc,_.N);_.u=zc.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onDataChanged=function(){var D=this;_.cy(this,function(){D.postbox.openDialog();D.focus();_.MX(D.hostElement,"yt-refit")})};
_.u.focus=function(){this.postbox.focus()};
_.u.closePopup=function(){_.CX(this.hostElement,"yt-close-popup-action")};
_.u.onYtCommentboxDismiss=function(){this.closePopup()};
zc.prototype.onYtCommentboxDismiss=zc.prototype.onYtCommentboxDismiss;zc.prototype.onDataChanged=zc.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],zc.prototype,"data",void 0);_.q([_.y({value:function(){return _.fX("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],zc.prototype,"closeButtonAriaLabel",void 0);_.q([_.fr("#postbox"),_.x("design:type",Object)],zc.prototype,"postbox",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zc.prototype,"onDataChanged",null);_.q([_.Fv("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zc.prototype,"onYtCommentboxDismiss",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],zc);
_.L(zc,"ytd-backstage-post-dialog-popup-renderer",function(){if(czk!==void 0)return czk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return czk=D},{mode:1});var D6k;var SJ=function(){return _.N.apply(this,arguments)||this};
_.n(SJ,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],SJ.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],SJ);
_.L(SJ,"ytd-sender-id-section-renderer",function(){if(D6k!==void 0)return D6k;var D=document.createElement("template");_.w(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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 ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return D6k=D},{mode:1});var YqI;var Rwk;var ZAE;var Tc=function(){return _.N.apply(this,arguments)||this};
_.n(Tc,_.N);Tc.prototype.closePopup=function(){_.CX(this.hostElement,"yt-close-popup-action")};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Tc.prototype,"data",void 0);_.q([_.Lr({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Tc);
_.L(Tc,"yt-community-post-section-renderer",function(){if(ZAE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Rwk===void 0&&(Rwk=document.createElement("template"));var Z=Rwk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ZAE=D}D=ZAE;return D},{mode:2});var t9E;var s4t;var XzE;var u2u;var aAz;var M9T;var jJ=function(){return _.N.apply(this,arguments)||this};
_.n(jJ,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jJ.prototype,"data",void 0);_.q([_.Lr({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],jJ);
_.L(jJ,"yt-share-start-time-with-context-renderer",function(){if(M9T===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;aAz===void 0&&(aAz=document.createElement("template"));var Z=aAz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);M9T=D}D=M9T;return D},{mode:2});var Ir=function(){return _.N.apply(this,arguments)||this};
_.n(Ir,_.N);Ir.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ir.prototype,"data",void 0);_.q([_.Lr({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Ir);
_.L(Ir,"yt-share-panel-title-v15-renderer",function(){if(u2u===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;XzE===void 0&&(XzE=document.createElement("template"));var Z=XzE;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);u2u=D}D=u2u;return D},{mode:2});var FO=function(){return _.N.apply(this,arguments)||this};
_.n(FO,_.N);FO.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],FO.prototype,"data",void 0);_.q([_.Lr({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],FO);
_.L(FO,"yt-share-panel-header-renderer",function(){if(s4t===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;t9E===void 0&&(t9E=document.createElement("template"));var Z=t9E;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);s4t=D}D=s4t;return D},{mode:2});var Cnk;var WCp;var Gc=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-open-popup-action":"onOpen"};return D};
_.n(Gc,_.N);_.u=Gc.prototype;_.u.attached=function(){this.onOpen()};
_.u.updateTimeSecs=function(D){this.currentTimeSecs=D};
_.u.computeTimeString=function(D){D=D.toString();var Y=Math.floor(Number(D)/3600),R=Math.floor(Number(D)%3600%60);return(Y>0?Y+":":"")+_.Zo(Math.floor(Number(D)%3600/60),Y>0?2:1)+":"+_.Zo(R,2)};
_.u.computeTimeStringA11y=function(D){D=_.CB5({seconds:D});var Y=D.hours===void 0?0:D.hours,R=D.minutes===void 0?0:D.minutes,Z=D.seconds===void 0?0:D.seconds;D=[];if(Y>0){var t=Sdb().format({hours:Y});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.PU)||Y>9999)t=t.replace(Y.toString(),_.W0U(Y)),_.PU==="km"&&(t=t.replace(".",","));D.push(t)}R>0&&D.push(Sdb().format({minutes:R}));Z>0&&D.push(Sdb().format({seconds:Z}));Y="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");R=_.PU==
"am"?"{0}\u1363 ":_.PU=="fa"?"{0}\u060c\u200f ":_.PU=="my"?"{0} - ":_.PU=="ne"?"{0},":_.PU=="th"?"{0} ":_.PU=="ur"?"{0}\u060c ":_.PU=="ar"||_.PU=="ar-XB"?"{0} \u0648":_.PU=="ja"||_.PU=="zh-CN"||_.PU=="zh-HK"||_.PU=="zh-TW"?"{0}\u3001":"{0}, ";Z=_.PU=="am"?"\u1363 ":_.PU=="fa"?"\u060c\u200f ":_.PU=="my"?" - ":_.PU=="th"?" ":_.PU=="ur"?"\u060c ":_.PU=="ar"||_.PU=="ar-XB"?" \u0648":_.PU=="ja"||_.PU=="zh-CN"||_.PU=="zh-HK"||_.PU=="zh-TW"?"\u3001":", ";t=_.PU=="am"?" \u12a5\u1293 {0}":_.PU=="as"?" \u0986\u09f0\u09c1 {0}":
_.PU=="az"?" v\u0259 {0}":_.PU=="bn"?" \u098f\u09ac\u0982 {0}":_.PU=="cs"?" a\u00a0{0}":_.PU=="de"?" und {0}":_.PU=="el"?" \u03ba\u03b1\u03b9 {0}":_.PU=="eu"?" eta {0}":_.PU=="fa"?"\u060c \u0648 {0}":_.PU=="fil"?", at {0}":_.PU=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.PU=="hi"?", \u0914\u0930 {0}":_.PU=="hu"?" \u00e9s {0}":_.PU=="hy"?" \u0587 {0}":_.PU=="id"?", dan {0}":_.PU=="iw"?" \u05d5-{0}":_.PU=="ja"?"\u3001{0}":_.PU=="ka"?" \u10d3\u10d0 {0}":_.PU=="km"?" \u1793\u17b7\u1784 {0}":_.PU=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.PU=="ko"?" \ubc0f {0}":_.PU=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.PU=="lt"?" ir {0}":_.PU=="lv"?" un {0}":_.PU=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.PU=="mr"?" \u0906\u0923\u093f {0}":_.PU=="ms"?" dan {0}":_.PU=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.PU=="ne"?" \u0930 {0}":_.PU=="or"?", \u0b13 {0}":_.PU=="pa"?" \u0a05\u0a24\u0a47 {0}":_.PU=="ro"?" \u0219i {0}":_.PU=="si"?", \u0dc3\u0dc4 {0}":_.PU=="sk"?" a {0}":_.PU=="sl"?" in {0}":_.PU=="sq"?" dhe {0}":_.PU=="sv"?" och {0}":
_.PU=="sw"?" na {0}":_.PU=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.PU=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.PU=="th"?" \u0e41\u0e25\u0e30{0}":_.PU=="tr"?" ve {0}":_.PU=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.PU=="uz"?" va {0}":_.PU=="vi"?" v\u00e0 {0}":_.PU=="zh-HK"?"\u53ca{0}":_.PU=="zu"?", ne-{0}":_.PU=="af"||_.PU=="nl"?" en {0}":_.PU=="ar"||_.PU=="ar-XB"?" \u0648{0}":_.PU=="be"||_.PU=="uk"?" \u0456 {0}":_.PU=="en-GB"||_.PU=="en-IN"?" and {0}":_.PU=="en"||_.PU=="en-XA"?
", and {0}":_.PU=="et"||_.PU=="fi"?" ja {0}":_.PU=="fr"||_.PU=="fr-CA"?" et {0}":_.PU=="zh-CN"||_.PU=="zh-TW"?"\u548c{0}":_.PU=="da"||_.PU=="is"||_.PU=="no"?" og {0}":_.PU=="es"||_.PU=="es-419"||_.PU=="es-US"?" y {0}":_.PU=="kk"||_.PU=="lo"||_.PU=="mn"?", {0}":_.PU=="bg"||_.PU=="mk"||_.PU=="ru"||_.PU=="sr"?" \u0438 {0}":_.PU=="gl"||_.PU=="it"||_.PU=="pt-BR"||_.PU=="pt-PT"?" e {0}":" i {0}";var X=_.PU=="am"?"{0} \u12a5\u1293 {1}":_.PU=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.PU=="az"?"{0} v\u0259 {1}":
_.PU=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.PU=="de"?"{0} und {1}":_.PU=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.PU=="eu"?"{0} eta {1}":_.PU=="fa"?"{0} \u0648 {1}":_.PU=="fil"?"{0} at {1}":_.PU=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.PU=="hi"?"{0} \u0914\u0930 {1}":_.PU=="hu"?"{0} \u00e9s {1}":_.PU=="hy"?"{0} \u0587 {1}":_.PU=="iw"?"{0} \u05d5-{1}":_.PU=="ja"?"{0}\u3001{1}":_.PU=="ka"?"{0} \u10d3\u10d0 {1}":_.PU=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.PU=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.PU=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.PU=="ko"?"{0} \ubc0f {1}":_.PU=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.PU=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.PU=="lt"?"{0} ir {1}":_.PU=="lv"?"{0} un {1}":_.PU=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.PU=="mn"?"{0}, {1}":_.PU=="mr"?"{0} \u0906\u0923\u093f {1}":_.PU=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.PU=="ne"?"{0} \u0930 {1}":_.PU=="or"?"{0} \u0b13 {1}":_.PU=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.PU=="ro"?"{0} \u0219i {1}":_.PU==
"si"?"{0} \u0dc3\u0dc4 {1}":_.PU=="sl"?"{0} in {1}":_.PU=="sq"?"{0} dhe {1}":_.PU=="sv"?"{0} och {1}":_.PU=="sw"?"{0} na {1}":_.PU=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.PU=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.PU=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.PU=="tr"?"{0} ve {1}":_.PU=="ur"?"{0} \u0627\u0648\u0631 {1}":_.PU=="uz"?"{0} va {1}":_.PU=="vi"?"{0} v\u00e0 {1}":_.PU=="zh-HK"?"{0}\u53ca{1}":_.PU=="zu"?"{0} ne-{1}":_.PU=="af"||_.PU=="nl"?"{0} en {1}":_.PU=="ar"||_.PU==
"ar-XB"?"{0} \u0648{1}":_.PU=="be"||_.PU=="uk"?"{0} \u0456 {1}":_.PU=="cs"||_.PU=="sk"?"{0} a\u00a0{1}":_.PU=="et"||_.PU=="fi"?"{0} ja {1}":_.PU=="fr"||_.PU=="fr-CA"?"{0} et {1}":_.PU=="id"||_.PU=="ms"?"{0} dan {1}":_.PU=="zh-CN"||_.PU=="zh-TW"?"{0}\u548c{1}":_.PU=="da"||_.PU=="is"||_.PU=="no"?"{0} og {1}":_.PU=="es"||_.PU=="es-419"||_.PU=="es-US"?"{0} y {1}":_.PU=="bg"||_.PU=="mk"||_.PU=="ru"||_.PU=="sr"?"{0} \u0438 {1}":_.PU=="en"||_.PU=="en-GB"||_.PU=="en-IN"||_.PU=="en-XA"?"{0} and {1}":_.PU==
"gl"||_.PU=="it"||_.PU=="pt-BR"||_.PU=="pt-PT"?"{0} e {1}":"{0} i {1}";_.PU==="sq"?(t=t.replace("dhe","e"),X=X.replace("dhe","e")):_.PU==="th"?(Z=Z.replace("{0}"," {0}"),X=X.replace("{0}","{0} "),X=X.replace("{1}"," {1}")):_.PU==="ne"?Z=",":_.PU==="zh-CN"?Z="":Y.includes(_.PU)&&(Z=" ");return D.length<2?D.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(_.PU)?D.length===2?
X.replace("{0}",D[0]).replace("{1}",D[1]):R.replace("{0}",D[0])+D.slice(1,-1).join(Z)+t.replace("{0}",D[D.length-1]):D.join(Z)};
_.u.getTimeParam=function(){return K49(this.timeString)};
_.u.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var D={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},Y;_.GJ(_.n8(),(Y=this.data)==null?void 0:Y.trackingParams,D,7)};
_.u.onChangeStartAtTimestamp=function(){for(var D=this.startAtTimestamp.value.split(":"),Y=0,R=1,Z=D.length-1;Z>=0;Z--)Y+=Number(D[Z])*R,R*=60;this.updateTimeSecs(Y);this.setTimestamp()};
_.u.onOpen=function(){var D=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var Y=_.sm();Y?Y.getPlayerPromise().then(function(R){R=R.getCurrentTime();D.updateTimeSecs(R)}):TCb()&&this.updateTimeSecs(TCb())};
_.u.setTimestamp=function(){var D=Math.floor(this.currentTimeSecs);_.CX(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!D,timestamp:D||""}])};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Gc.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Gc.prototype,"data",void 0);_.q([_.y({value:!1,notify:!0}),_.x("design:type",Boolean)],Gc.prototype,"isStartAtChecked",void 0);_.q([_.y(),_.x("design:type",Number)],Gc.prototype,"currentTimeSecs",void 0);
_.q([_.y({computed:"computeTimeString(currentTimeSecs)"}),_.x("design:type",String)],Gc.prototype,"timeString",void 0);_.q([_.y({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.x("design:type",String)],Gc.prototype,"timeStringA11y",void 0);_.q([_.fr("#start-at-timestamp"),_.x("design:type",Object)],Gc.prototype,"startAtTimestamp",void 0);_.q([_.Lr({is:"yt-start-at-renderer",disableElementRegistration:!0})],Gc);
_.L(Gc,"yt-start-at-renderer",function(){if(WCp===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Cnk===void 0&&(Cnk=document.createElement("template"));var Z=Cnk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);WCp=D}D=WCp;return D},{mode:2});var zwK;var SqK;var TSz=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),j4u=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),IAE=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var FCk={};FCk.YtBindingExpressionsBehavior={identity:_.kn,msg:function(D,Y){Y=Y===void 0?{}:Y;return _.fX(D,Y,D)},
msgPlural:function(D,Y){return _.ee(D,Y)},
getMusicIconFromType:function(D){if(_.f("music_web_enable_icon_wil"))D=_.IT(D);else if(j4u.has(D))D="yt-sys-icons:"+j4u.get(D);else{var Y=TSz.get(D)||_.IT(D).split(":")[1];Y=_.Kdn(Y);var R;D=((R=IAE.get(D))!=null?R:"yt-sys-icons:")+Y}return D}};var Gw0;var V99;var fAt;var ewt=document.head,A80=ewt.appendChild,nob;if(fAt===void 0){var r8t=document.createElement("template");_.w(r8t,'\x3c!--css-build:shady--\x3e<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>');fAt=r8t}nob=fAt;A80.call(ewt,nob.content);var Vx=function(){var D=_.N.apply(this,arguments)||this;D.screenLayer=7;return D};
_.n(Vx,_.N);Vx.prototype.getScreenLayer=function(){return this.screenLayer};
Vx.prototype.onTap=function(D){D&&D.detail&&(D.detail.x||D.detail.y)&&_.aU(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.zA(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(D=this.getScreenLayer(),_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:D}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.YF.Object.defineProperties(Vx.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()}}});
Vx.prototype.onTap=Vx.prototype.onTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Vx.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Vx.prototype,"data",void 0);_.q([_.b("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vx.prototype,"title",null);
_.q([_.b("data.serviceName"),_.x("design:type",String),_.x("design:paramtypes",[])],Vx.prototype,"icon",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Vx.prototype,"onTap",null);_.q([_.Lr({is:"yt-share-target-renderer",disableElementRegistration:!0})],Vx);
_.L(Vx,"yt-share-target-renderer",function(){if(V99===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Gw0===void 0&&(Gw0=document.createElement("template"));var Z=Gw0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);V99=D}D=V99;return D},{mode:2});var wzb;var $6E;var fx=function(){var D=_.N.apply(this,arguments)||this;D.SHARE_TARGET_WIDTH=70;D.SHARE_TARGET_MARGIN_RIGHT=8;D.PAGE_SCROLL_SPEED=9;D.actionMap={"yt-share-panel-reset-action":"onReset_"};return D};
_.n(fx,_.N);_.u=fx.prototype;_.u.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.u.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.aU(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.aU(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.u.onReset_=function(){if(_.aU(this.hostElement).querySelector("#list")){var D=_.aU(this.hostElement).querySelector("#list");var Y=_.aU(this.hostElement).querySelector("#list");var R=Y.offsetLeft,Z=Y.offsetParent;Z||_.YzU(Y)!="fixed"||(Z=_.k2(Y).documentElement);if(Z){if(_.WQ&&!_.Ss(58)){var t=_.M0_(Z);R+=t.left}else Number(_.vJl)>=8&&!(Number(_.vJl)>=9)&&(t=_.M0_(Z),R-=t.left);Y=_.uEL(Z)?Z.clientWidth-(R+Y.offsetWidth):R}else Y=R;AnI(D,Y);this.updateScrollButtons_()}};
_.u.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.u.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.u.onScrollWheel_=function(D){D.stopPropagation();D.preventDefault();var Y=eGk(_.aU(this.hostElement).querySelector("#list"));D=Math.abs(D.deltaX)>Math.abs(D.deltaY)?D.deltaX:D.deltaY;AnI(_.aU(this.hostElement).querySelector("#list"),Y+D);this.updateScrollButtons_()};
_.u.smoothScrollByOnePage_=function(D){var Y=_.aU(this.hostElement).querySelector("#list"),R=(Math.floor(Y.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Z=eGk(Y),t=R*(D?1:-1),X=this.PAGE_SCROLL_SPEED,M=this.updateScrollButtons_.bind(this),W=0,z;(function F(){W+=X;z=W/R*2;AnI(Y,Z+t*(z<1?z*z:-z*z+4*z-2));W<R?window.requestAnimationFrame(F):M()})()};
_.u.updateScrollButtons_=function(){var D=eGk(_.aU(this.hostElement).querySelector("#list")),Y=_.aU(this.hostElement).querySelector("#list").scrollWidth-_.aU(this.hostElement).querySelector("#list").clientWidth;_.aU(this.hostElement).querySelector("#scroll-button-back").hidden=D<=0;_.aU(this.hostElement).querySelector("#scroll-button-forward").hidden=D>=Y};
fx.prototype.onScrollWheel_=fx.prototype.onScrollWheel_;fx.prototype.onDataChanged_=fx.prototype.onDataChanged_;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],fx.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(FCk.YtBindingExpressionsBehavior),_.x("design:type",Object)],fx.prototype,"ytBindingExpressionsBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fx.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fx.prototype,"onDataChanged_",null);_.q([_.Fv("wheel"),_.x("design:type",Function),_.x("design:paramtypes",[WheelEvent]),_.x("design:returntype")],fx.prototype,"onScrollWheel_",null);
_.q([_.Lr({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],fx);
_.L(fx,"yt-third-party-share-target-section-renderer",function(){if($6E===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;wzb===void 0&&(wzb=document.createElement("template"));var Z=wzb;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);$6E=D}D=$6E;return D},{mode:2});var eJ=function(){return _.N.apply(this,arguments)||this};
_.n(eJ,_.N);eJ.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"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eJ.prototype,"data",void 0);_.q([_.Lr({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],eJ);
_.L(eJ,"yt-third-party-network-section-renderer",function(){if(SqK===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;zwK===void 0&&(zwK=document.createElement("template"));var Z=zwK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);SqK=D}D=SqK;return D},{mode:2});_.at(_.RT(function(D){return _.S("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.S("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.S(_.vK,{data:function(){return D.data().firstPartyItems}},{listItemViewModel:_.LW})))},"Lg"),"first-party-network-section-view-model",{props:{data:_.cs}});var voI=_.gY(["data:image/svg+xml;charset=UTF-8;base64,",""]),AI=function(){var D=_.N.apply(this,arguments)||this;D.screenLayer=7;D.qrCodeEnabled=_.f("web_enable_sharing_qr_code");D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return D};
_.n(AI,_.N);_.u=AI.prototype;_.u.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.u.attached=function(){this.JSC$19921_scroller&&(this.JSC$19921_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19921_scroller.attached&&typeof this.JSC$19921_scroller.attached==="function"&&this.JSC$19921_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.u.onDataChanged=function(){var D=this,Y;(Y=this.data)!=null&&Y.contents&&(this.hostElement.setAttribute("links-only","true"),_.WE(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.cy(this,function(){_.MX(D.hostElement,"yt-refit");D.focusSharePanelHeader()}))};
_.u.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.u.handleSetTimestamp=function(D){var Y=this.shortUrl();D.isSet&&(Y=_.xr(Y,"t",D.timestamp));this.maybeRenderQrCode(Y)};
_.u.shortUrl=function(){var D,Y=(D=this.data)==null?void 0:D.contents;if(Y)for(D=0;D<Y.length;D++){var R=void 0,Z=void 0;if((R=Y[D])==null?0:(Z=R.thirdPartyNetworkSection)==null?0:Z.copyLinkContainer){var t=Z=R=void 0;return(t=_.A((R=Y[D])==null?void 0:(Z=R.thirdPartyNetworkSection)==null?void 0:Z.copyLinkContainer,nZE))==null?void 0:t.shortUrl}}};
_.u.maybeRenderQrCode=function(D){var Y=this,R,Z,t,X,M,W,z,I,F;return _.C(function(G){if(G.nextAddress==1){R=_.aU(Y.hostElement).querySelector("#qr-code");if(!Y.qrCodeEnabled||!D)return R&&(R.style.display="none"),G.return();Z=_.QAb(_.DH().resolve(_.FK),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});t=document.createElement("div");return typeof Z==="function"?(Z(t),G.jumpTo(2)):G.yield(Z,3)}G.nextAddress!=2&&(X=G.yieldResult,X(t));z=(M=t)==null?void 0:(W=M.firstChild)==null?void 0:W.firstChild;
I=document.createElement("img");F=_.O$$(voI,btoa(z.outerHTML));I.onload=function(){var V={canvas:R,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:I},e=new xwK;gxt(e,D);dwt(e,!1,ih9(e));var r=e.modules,l=Object.assign({},Tkz,V);r=structuredClone(r);V=r.length;var U,K=(U=l.canvas)!=null?U:document.createElement("canvas");U=l.cellSize;e=l.logo;var H,c=(H=l.logoSize)!=null?H:Math.floor(V/4);V%2!==c%2&&c++;var Q=l.logoPadding,E=l.backgroundColor;H=V*U;var B=
l.width,O=0;B&&(O=l.padding,O=Math.ceil(O*H/(B-O*2)),K.style.width=B+"px",K.style.height=B+"px");K.width!==H+O*2&&(K.width=H+O*2);K.height!==H+O*2&&(K.height=H+O*2);H=K.getContext("2d");l.autoClear&&H.clearRect(0,0,K.width,K.height);H.fillStyle=E;H.beginPath();H.roundRect(0,0,K.width,K.height,l.borderRadius);H.fill();H.save();H.translate(O,O);if(e)for(K=Math.floor(V-c)/2-Q,Q=Math.floor(V+c)/2+Q,E=K;E<Q;E++)for(B=K;B<Q;B++)r[E][B]=!1;for(K=0;K<V;K++)for(Q=0;Q<V;Q++)(K<7&&Q<7||K<7&&Q>=V-7||K>=V-7&&
Q<7)&&(r[K][Q]=!1);var Wo;K=(Wo=l.markerColor)!=null?Wo:l.color;cuk(H,0,0,U,K);cuk(H,U*(V-7),0,U,K);cuk(H,0,U*(V-7),U,K);switch(l.cellStyle){case 0:Wo=r;r=Wo.length;K=l.cellSize;H.beginPath();for(Q=0;Q<r;Q++)for(E=0;E<r;E++)Wo[Q][E]&&H.rect(Q*K,E*K,K,K);H.fillStyle=l.color;H.fill();break;case 1:Wo=r;r=Wo.length;K=l.cellSize;Q=K*l.relativeCircleSize;H.fillStyle=l.color;H.beginPath();for(l=0;l<r;l++)for(E=0;E<r;E++)Wo[l][E]&&(H.beginPath(),H.ellipse((l+.5)*K,(E+.5)*K,Q/2,Q/2,0,0,2*Math.PI),H.fill());
H.fill();break;case 2:Wo=r;r=Wo.length;K=l.cellSize;H.fillStyle=l.color;l=[[1,1],[-1,1],[-1,-1],[1,-1]];H.beginPath();for(Q=0;Q<r;Q++)for(E=0;E<r;E++)if(Wo[Q][E])H.roundRect(Q*K,E*K,K,K,K/2),Q+1<r&&Wo[Q+1][E]&&H.rect(Q*K+K/2,E*K,K,K),E+1<r&&Wo[Q][E+1]&&H.rect(Q*K,E*K+K/2,K,K);else{B=Q*K+K/2;O=E*K+K/2;for(var Sb=0;Sb<4;Sb++){var VU=_.a(l[Sb]),AS=VU.next().value;VU=VU.next().value;Q+AS>=0&&Q+AS<r&&E+VU>=0&&E+VU<r&&Wo[Q+AS][E]&&Wo[Q][E+VU]&&Wo[Q+AS][E+VU]&&(AS=Sb*Math.PI/2,VU=K/2,H.moveTo(B+VU*Math.cos(AS),
O+VU*Math.sin(AS)),H.arc(B,O,K/2,AS,AS+Math.PI/2,!1),H.lineTo(B+VU*(Math.cos(AS)-Math.sin(AS)),O+VU*(Math.cos(AS)+Math.sin(AS))),H.lineTo(B+VU*Math.cos(AS),O+VU*Math.sin(AS)))}}H.fill()}e&&H.drawImage(e,(V-c)*U/2,(V-c)*U/2,c*U,c*U);H.restore();R.style.removeProperty("display")};
I.src=_.oJ(F);_.V9(G)})};
_.u.hasCommunityPostRenderer=function(){var D,Y,R,Z;return!!((D=this.data)==null?0:(Y=D.header)==null?0:(R=Y.sharePanelHeaderRenderer)==null?0:(Z=R.communityPost)==null?0:Z.communityPostSectionRenderer)};
_.u.onTapClose=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.u.getScreenLayer=function(){return this.screenLayer};
_.u.logSharePanelPage=function(){if(!_.f("enable_share_panel_navigation_logging_fix_on_web")){var D;if((D=this.data)!=null&&D.trackingParams){D=this.data.trackingParams;var Y=this.parentClickTrackingParams;Y=Y?_.oT(Y):void 0;var R=_.n8();_.TJ(R,21760,Y,{layer:7,parentLayer:0});R.graftServerVe(D,void 0,7);_.Dl().dispatch(_.u0({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
AI.prototype.onDataChanged=AI.prototype.onDataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],AI.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],AI.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],AI.prototype,"data",void 0);_.q([_.y({value:_.fX("SBOX_INAPPROPRIATE_CANCEL")}),_.x("design:type",String)],AI.prototype,"closeButtonAriaLabel",void 0);_.q([_.fr("yt-share-panel-header-renderer"),_.x("design:type",HTMLElement)],AI.prototype,"header",void 0);_.q([_.y({selector:function(D){return D.share.parentClickTrackingParams}}),
_.x("design:type",String)],AI.prototype,"parentClickTrackingParams",void 0);_.q([_.y(),_.x("design:type",Object)],AI.prototype,"qrCodeEnabled",void 0);_.q([_.fr("#scroller"),_.x("design:type",Object)],AI.prototype,"JSC$19921_scroller",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AI.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],AI);
_.L(AI,"ytd-unified-share-panel-renderer",function(){if(YqI!==void 0)return YqI;var D=document.createElement("template");_.w(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-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 ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-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 ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-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 ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return YqI=D},{mode:1});var ook;var nx=function(){var D=_.N.apply(this,arguments)||this;D.modernModal=!0;return D};
_.n(nx,_.N);nx.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
nx.prototype.computeShouldHideOldButtons=function(){var D;return!((D=this.data)==null?0:D.button)};
_.YF.Object.defineProperties(nx.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(D=this.data)==null?void 0:(Y=D.button)==null?void 0:Y.buttonRenderer}}});
_.q([_.y(),_.x("design:type",Object)],nx.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],nx.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],nx.prototype,"modernModal",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],nx.prototype,"buttonRendererData",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],nx);
_.L(nx,"ytd-modal-with-title-and-button-renderer",function(){if(ook!==void 0)return ook;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ook=D},{mode:1});var bA9;var ro=function(){return _.N.apply(this,arguments)||this};
_.n(ro,_.N);ro.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("page-changed",this.page))};
ro.prototype.pageChangedForBinding=ro.prototype.pageChangedForBinding;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ro.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],ro.prototype,"page",void 0);_.q([_.Gm("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ro.prototype,"pageChangedForBinding",null);
_.q([_.h({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],ro);
_.L(ro,"ytd-account-item-section-header-renderer",function(){if(bA9!==void 0)return bA9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return bA9=D},{mode:1});var y8z;var wo=function(){return _.N.apply(this,arguments)||this};
_.n(wo,_.N);wo.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"}}}};
wo.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],wo.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wo.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Function)],wo.prototype,"onAccountItemTap",void 0);
_.q([_.h({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],wo);
_.L(wo,"ytd-account-item-section-renderer",function(){if(y8z!==void 0)return y8z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return y8z=D},{mode:1});var NSK;var lAt;var $U=function(){return _.N.apply(this,arguments)||this};
_.n($U,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$U.prototype,"data",void 0);_.q([_.h({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],$U);
_.L($U,"ytd-accounts-dialog-header-renderer",function(){if(lAt!==void 0)return lAt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return lAt=D},{mode:1});var J8I;var ve=function(){return _.N.apply(this,arguments)||this};
_.n(ve,_.N);ve.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ve.prototype,"data",void 0);_.q([_.h({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],ve);
_.L(ve,"ytd-google-account-header-renderer",function(){if(J8I!==void 0)return J8I;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return J8I=D},{mode:1});var or=function(){return _.N.apply(this,arguments)||this};
_.n(or,_.N);or.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"}}}};
or.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("page-changed",this.page))};
or.prototype.pageChangedForBinding=or.prototype.pageChangedForBinding;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],or.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],or.prototype,"page",void 0);
_.q([_.Gm("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],or.prototype,"pageChangedForBinding",null);_.q([_.h({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],or);
_.WL()(or,"ytd-account-section-list-renderer",function(){if(NSK===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);NSK=D}D=NSK;return D},{allowedProps:["data"],
mode:1});var kwz;var bJ=function(){var D=_.N.apply(this,arguments)||this;D.enableHandlesAccountMenuSwitcher=_.f("enable_handles_account_menu_switcher");return D};
_.n(bJ,_.N);bJ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
bJ.prototype.dataChanged=bJ.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bJ.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],bJ.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.q([_.fr("#avatar"),_.x("design:type",Object)],bJ.prototype,"avatar",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bJ.prototype,"dataChanged",null);_.q([_.h({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],bJ);
_.WL()(bJ,"ytd-active-account-header-renderer",function(){if(kwz===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);kwz=D}D=kwz;return D},{allowedProps:["data"],
mode:1});var U69;var KCp;var yx=function(){return _.N.apply(this,arguments)||this};
_.n(yx,_.N);yx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
yx.prototype.onBackTap=function(){_.MX(this.hostElement,"yt-menu-back-tapped")};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yx.prototype,"data",void 0);_.q([_.h({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],yx);
_.WL()(yx,"ytd-simple-menu-header-renderer",function(){if(KCp===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);KCp=D}D=KCp;return D},{allowedProps:["data"],
mode:2});var hwz;var Nr=function(){return _.N.apply(this,arguments)||this};
_.n(Nr,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Nr.prototype,"data",void 0);_.q([_.h({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Nr);
_.L(Nr,"ytd-comment-video-thumbnail-header-renderer",function(){if(hwz!==void 0)return hwz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hwz=D},{mode:1});var LCz;var lJ=function(){return _.N.apply(this,arguments)||this};
_.n(lJ,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lJ.prototype,"data",void 0);_.q([_.h({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],lJ);
_.L(lJ,"ytd-abuse-type-selector-renderer",function(){if(LCz!==void 0)return LCz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return LCz=D},{mode:1});var m6z;var JI=function(){return _.N.apply(this,arguments)||this};
_.n(JI,_.N);JI.prototype.attached=function(){var D=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){D.additionalContextInput.focusTextInput()})};
JI.prototype.handleAdditionalContextChanged=function(){var D=this;_.pr(this,"ytd-report-channel-additional-context-update",function(){D.ytdReduxBehavior.dispatch(_.u0({type:"ADDITIONAL_CONTEXT_UPDATED",payload:D.additionalContext}))},300)};
JI.prototype.updateAdditionalContextFromBinding=function(D){this.additionalContext=D.detail.value};
JI.prototype.handleAdditionalContextChanged=JI.prototype.handleAdditionalContextChanged;_.q([_.v(_.mb),_.x("design:type",Object)],JI.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",String)],JI.prototype,"additionalContext",void 0);_.q([_.y({selector:function(D){return D.reportChannelAbuse.additionalContext}}),
_.x("design:type",String)],JI.prototype,"additionalContextRedux",void 0);_.q([_.y(),_.x("design:type",Object)],JI.prototype,"data",void 0);_.q([_.fr("yt-text-input-form-field-renderer"),_.x("design:type",Object)],JI.prototype,"additionalContextInput",void 0);_.q([_.Gm("additionalContext"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JI.prototype,"handleAdditionalContextChanged",null);
_.q([_.h({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],JI);
_.L(JI,"ytd-report-channel-modal-additional-context-renderer",function(){if(m6z!==void 0)return m6z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return m6z=D},{mode:1});var qqu;var kU=function(){var D=_.N.apply(this,arguments)||this;D.nextButtonDisabled=null;D.submitEndpoint=null;D.navigationEndpoint=null;D.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return D};
_.n(kU,_.N);_.u=kU.prototype;_.u.computeNextButtonData=function(D,Y,R){var Z={};Y&&(Z.navigationEndpoint=Y);R&&(Z.serviceEndpoint=R);D&&D.buttonRenderer&&_.y7.extend(Z,D.buttonRenderer);return Z};
_.u.handleReportChannelModalDisableNextButtonAction=function(D){this.setNextButtonIsDisabled(D)};
_.u.handleReportFormEndpointUpdateAction=function(D){this.setNextButtonIsDisabled(!!D.disableSubmitButton);this.resetEndpointData();D.submitEndpoint?this.submitEndpoint=D.submitEndpoint:D.submitNavigationEndpoint&&(this.navigationEndpoint=D.submitNavigationEndpoint)};
_.u.handleSignalActionSubmitForm=function(){var D,Y=Object.keys(((D=this.reportChannelAbuseForm)==null?void 0:D.selectedVideoIds)||{}),R;D=((R=this.reportChannelAbuseForm)==null?void 0:R.additionalContext)||"";var Z;R=((Z=this.reportChannelAbuseForm)==null?void 0:Z.impersonatedChannelUrl)||"";var t;if((t=this.data)==null?0:t.submitEndpoint){Y={impersonated_channel_url:R,text:D,video_ids:Y};var X;_.DH().resolve(_.Yw).resolveCommand((X=this.data)==null?void 0:X.submitEndpoint,{form:Object.assign({},
Y,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.u.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.u.onYtServiceRequestError=function(D){this.setNextButtonIsDisabled(!1);_.iI(this.hostElement,D.detail.error.message)};
_.u.setNextButtonIsDisabled=function(D){this.set("data.nextButton.buttonRenderer.isDisabled",D)};
_.u.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
kU.prototype.onYtServiceRequestError=kU.prototype.onYtServiceRequestError;kU.prototype.onYtServiceRequestCompleted=kU.prototype.onYtServiceRequestCompleted;_.q([_.y(),_.x("design:type",Object)],kU.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],kU.prototype,"nextButtonDisabled",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],kU.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],kU.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kU.prototype,"submitEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],kU.prototype,"navigationEndpoint",void 0);_.q([_.y({selector:function(D){return D.reportChannelAbuse}}),
_.x("design:type",Object)],kU.prototype,"reportChannelAbuseForm",void 0);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],kU.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],kU.prototype,"onYtServiceRequestError",null);
_.q([_.h({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],kU);
_.L(kU,"ytd-report-channel-modal-footer-renderer",function(){if(qqu!==void 0)return qqu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qqu=D},{mode:1});var HAt;var Uj=function(){var D=_.N.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.closePopup()};
return D};
_.n(Uj,_.N);Uj.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Uj.prototype.handleDataChanged=function(){_.Bg(this.hostElement)};
Uj.prototype.closePopup=function(){_.CX(this.hostElement,"yt-close-popup-action")};
Uj.prototype.handleDataChanged=Uj.prototype.handleDataChanged;_.q([_.y(),_.x("design:type",Object)],Uj.prototype,"boundOnTapDismissButton",void 0);_.q([_.y(),_.x("design:type",Object)],Uj.prototype,"data",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uj.prototype,"handleDataChanged",null);_.q([_.h({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Uj);
_.L(Uj,"ytd-report-channel-modal-header-renderer",function(){if(HAt!==void 0)return HAt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return HAt=D},{mode:1});var x6z;var Kx=function(){var D=_.N.apply(this,arguments)||this;D.autoValidate=!1;D.invalid=!1;D.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return D};
_.n(Kx,_.N);_.u=Kx.prototype;_.u.attached=function(){var D=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){D.channelUrlInput.focusTextInput()})};
_.u.disableNextButton=function(D){_.CX(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[D])};
_.u.handleImpersonatedChannelUrlChanged=function(){var D=this;this.disableNextButton(!0);this.invalid=!1;_.pr(this,"ytd-report-channel-impersonated-channel-update",function(){var Y=D.impersonatedChannelUrl.trim();D.ytdReduxBehavior.dispatch(_.u0({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:Y}));var R;((R=D.data)==null?0:R.submitEndpoint)&&Y&&_.DH().resolve(_.Yw).resolveCommand(D.data.submitEndpoint,{form:{impersonated_channel_url:Y,element:D.hostElement}})},500)};
_.u.handleModifyReportFormCommand=function(D){this.invalid=this.get("modifyReportFormCommand.action",D)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.u.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.u.updateImpersonatedChannelUrlFromBinding=function(D){this.impersonatedChannelUrl=D.detail.value};
Kx.prototype.handleImpersonatedChannelUrlChanged=Kx.prototype.handleImpersonatedChannelUrlChanged;_.q([_.v(_.mb),_.x("design:type",Object)],Kx.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Kx.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Kx.prototype,"autoValidate",void 0);_.q([_.y(),_.x("design:type",Object)],Kx.prototype,"invalid",void 0);
_.q([_.y(),_.x("design:type",String)],Kx.prototype,"impersonatedChannelUrl",void 0);_.q([_.y({selector:function(D){return D.reportChannelAbuse.impersonatedChannelUrl}}),
_.x("design:type",String)],Kx.prototype,"impersonatedChannelUrlRedux",void 0);_.q([_.y(),_.x("design:type",Object)],Kx.prototype,"data",void 0);_.q([_.fr("#text-input"),_.x("design:type",Object)],Kx.prototype,"channelUrlInput",void 0);_.q([_.Gm("impersonatedChannelUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kx.prototype,"handleImpersonatedChannelUrlChanged",null);
_.q([_.h({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Kx);
_.L(Kx,"ytd-report-channel-modal-impersonation-renderer",function(){if(x6z!==void 0)return x6z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return x6z=D},{mode:1});var Pnp;var Q4b;var hI=function(){return _.N.apply(this,arguments)||this};
_.n(hI,_.N);hI.prototype.onCheckboxToggled=function(D){var Y,R,Z=(R=_.A((Y=this.data)==null?void 0:Y.video,_.xG))==null?void 0:R.videoId;Z&&this.ytdReduxBehavior.dispatch(D.target.checked?_.u0({type:"VIDEO_SELECTED",payload:Z}):_.u0({type:"VIDEO_UNSELECTED",payload:Z}))};
hI.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.YF.Object.defineProperties(hI.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var D,Y=(D=this.data)==null?void 0:D.video;if(!Y)return{};var R;D=(R=_.A(Y,_.xG))==null?void 0:R.navigationEndpoint;if(!D)return Y;_.A(D==null?void 0:D.commandMetadata,_.GA)&&(_.A(D.commandMetadata,_.GA).ignoreNavigation=!0);return Y}}});
_.q([_.y({reflectToAttribute:!0,selector:function(D,Y){return Y in D.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.x("design:type",Boolean)],hI.prototype,"checked",void 0);_.q([_.y(),_.x("design:type",Object)],hI.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],hI.prototype,"video",null);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],hI.prototype,"ytdReduxBehavior",void 0);_.q([_.h({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],hI);
_.L(hI,"ytd-selectable-video-renderer",function(){if(Q4b!==void 0)return Q4b;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Q4b=D},{mode:1});var Lx=function(){var D=_.N.apply(this,arguments)||this;D.monitorScroll=!0;return D};
_.n(Lx,_.N);Lx.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Lx.prototype,"data",void 0);_.q([_.h({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Lx);
_.L(Lx,"ytd-selectable-video-list-renderer",function(){if(Pnp!==void 0)return Pnp;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Pnp=D},{mode:1});var BSp;_.UD("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var m8=function(){return _.N.apply(this,arguments)||this};
_.n(m8,_.N);m8.prototype.onChange=function(D){if(D=_.cG(D).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.f("kevlar_command_handler_migration_killswitch"))_.Se(this.hostElement,D,this.hostElement);else{D=_.a(D);for(var Y=D.next();!Y.done;Y=D.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
m8.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
m8.prototype.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],m8.prototype,"data",void 0);_.q([_.y({computed:"isEnabled(data)"}),_.x("design:type",Boolean)],m8.prototype,"enabled",void 0);_.q([_.h({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],m8);
_.L(m8,"ytd-toggle-item-renderer",function(){if(BSp!==void 0)return BSp;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return BSp=D},{mode:1});var pzE;var Eok;var goE;var qr=function(){var D=_.N.apply(this,arguments)||this;D.setVisible=!1;D.boundOnSubmitButtonClick=function(){D.onSubmitButtonClick()};
D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.n(qr,_.N);qr.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}}}}}};
qr.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
qr.prototype.onSubmitButtonClick=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&!_.f("enable_ytc_refunds_submit_form_signal_action")&&_.zA(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
qr.prototype.handleSignalActionSubmitForm=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&_.zA(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.YF.Object.defineProperties(qr.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hiddenByDefault)&&!this.setVisible}}});
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],qr.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qr.prototype,"setVisible",void 0);_.q([_.y(),_.x("design:type",Object)],qr.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],qr.prototype,"surveyFeedbackData",void 0);_.q([_.y(),_.x("design:type",Object)],qr.prototype,"boundOnSubmitButtonClick",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data","setVisible"),_.x("design:type",Object),_.x("design:paramtypes",[])],qr.prototype,"visibilityHidden",null);_.q([_.Lr({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],qr);
_.L(qr,"yt-flow-footer-renderer",function(){if(goE===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Eok===void 0&&(Eok=document.createElement("template"));var Z=Eok;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);goE=D}D=goE;return D},{mode:2});var He=function(){return _.N.apply(this,arguments)||this};
_.n(He,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],He.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],He.prototype,"data",void 0);_.q([_.y({selector:function(D){return D.ypc.surveyFeedbackData}}),
_.x("design:type",Object)],He.prototype,"surveyFeedbackData",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],He);
_.L(He,"ytd-flow-footer-renderer",function(){if(pzE!==void 0)return pzE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return pzE=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var d6b;var iAz;var xU=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return D};
_.n(xU,_.N);_.u=xU.prototype;_.u.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.KB("multiPageMenuSectionItems")}}};
_.u.handleHideEnclosingAction_=function(D){if(this.data&&this.data.items)for(var Y=0;Y<this.data.items.length;Y++){var R=this.data.items[Y].notificationRenderer;if(R&&R.notificationId==D.hideEnclosingAction.notificationId){this.splice("data.items",Y,1);_.CX(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.u.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.WE(this.hostElement,"hidden",!0)};
_.u.updateMenu_=function(D){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&D&&!D.doNotRefreshInbox){D=this.data.continuations;for(var Y=0;Y<D.length;Y++)if(D[Y].invalidationContinuationData){var R=void 0;var Z=(R=D[Y].invalidationContinuationData)==null?void 0:R.continuation;break}D=_.y7.clone(this.data.continuationUpdateEndpoint||null);D.continuation=Z;D.click_tracking_params=this.data.trackingParams;_.zA(this.hostElement,[D])}};
_.u.onServiceRequestCompleted_=function(D,Y){if(this.data&&(D=Y.actions)){Y=0;for(var R=D.length;Y<R;Y++){var Z=_.A(D[Y],_.rlE);if(!Z)break;if((Z.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Z.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Z.continuationItems&&this.data.items){var t=this.data.items.length-1;this.data.items[t].continuationItemRenderer&&(Z=["data.items",t,1].concat(Z.continuationItems),this.splice.apply(this,Z))}}}};
xU.prototype.onServiceRequestCompleted_=xU.prototype.onServiceRequestCompleted_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],xU.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xU.prototype,"data",void 0);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],xU.prototype,"onServiceRequestCompleted_",null);_.q([_.Lr({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],xU);
_.WL()(xU,"yt-multi-page-menu-section-renderer",function(){if(iAz===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;d6b===void 0&&(d6b=document.createElement("template"));var Z=d6b;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);iAz=D}D=iAz;return D},{allowedProps:["data"],
mode:2});var OAI;var c8h;var Pe=function(){return _.N.apply(this,arguments)||this};
_.n(Pe,_.N);Pe.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.YF.Object.defineProperties(Pe.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)==null?0:this.data.progress*100}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Pe.prototype,"data",void 0);_.q([_.b("data.progress"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pe.prototype,"showProgressBar",null);
_.q([_.b("data.progress"),_.x("design:type",Number),_.x("design:paramtypes",[])],Pe.prototype,"progress",null);_.q([_.Lr({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Pe);
_.L(Pe,"yt-flow-header-renderer",function(){if(c8h===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;OAI===void 0&&(OAI=document.createElement("template"));var Z=OAI;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);c8h=D}D=c8h;return D},{mode:2});var DSk;var YJT;var Qx=function(){return _.N.apply(this,arguments)||this};
_.n(Qx,_.N);Qx.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Qx.prototype,"data",void 0);_.q([_.Lr({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Qx);
_.L(Qx,"yt-post-confirmation-flow-step-renderer",function(){if(YJT===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;DSk===void 0&&(DSk=document.createElement("template"));var Z=DSk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);YJT=D}D=YJT;return D},{mode:2});var Rn9;var ZkT;var Be=function(){return _.N.apply(this,arguments)||this};
_.n(Be,_.N);
Be.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Be.prototype,"data",void 0);_.q([_.Lr({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Be);
_.L(Be,"yt-refund-confirmation-flow-step-renderer",function(){if(ZkT===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Rn9===void 0&&(Rn9=document.createElement("template"));var Z=Rn9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ZkT=D}D=ZkT;return D},{mode:2});_.tN(hJt);var tkp=_.RT(function(D){var Y=D.data;return _.S("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.S("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.S(_.Rt,{data:function(){return{thumbnails:[{url:Y().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.S("div",{class:"profile-badge-view-model-wiz__content"},_.S("div",{class:"profile-badge-view-model-wiz__badge-description"},function(){return Y().badgeDesc}),_.S(_.T,{cond:function(){return Y().badgeSubtitle},
then:function(){return _.S("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},function(){return Y().badgeSubtitle})}})))},"Mg"),Bdt=_.f("mweb_enable_sink_profile_badge_view_model")?tkp:hJt;
tkp.idomCompat=!0;_.tN(L4u);var mBT=_.bE({avatarViewModel:_.Jz});_.tN(qgz);var smk=_.RT(function(D){var Y=D.data;return _.S("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz}),_.S("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},function(){return Y().channelName}))},"Ng"),X5E=_.f("web_enable_sink_yt_shared_subscription_view_model")?smk:qgz;
smk.idomCompat=!0;var F0=_.bE({commentInteractionViewModel:L4u,sharedSubscriptionViewModel:X5E,buttonViewModel:_.TV,horizontalShelfViewModel:_.q9}),ugK=_.Vv(EyK);_.tN(xBE);_.tN(PPp);_.tN(QUu);_.tN(pE9);_.tN(EyK);var gyp=_.bE({profileIdentityInfoViewModel:_.p_b,profileInfoViewModel:EyK});_.tN(dBE);var ac9=_.RT(function(D){var Y=D.data;var R=function(){return Y().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.S("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},_.S(_.vK,{data:function(){return Y().profileIdentityInfo}},{profileIdentityInfoViewModel:function(Z){return _.S(_.R2z,{data:Z.data,
hideDivider:R,isChannelInfoCard:R})},
profileInfoViewModel:ugK}),_.S(_.vK,{data:function(){return Y().profileInfo}},{profileIdentityInfoViewModel:_.R2z,
profileInfoViewModel:ugK}))},"Og"),MkK=_.f("web_enable_sink_profile_card_view_model")?ac9:dBE,C8T=_.f("web_enable_sink_profile_card_view_model")?ac9:_.Vv(dBE);
ac9.idomCompat=!0;_.f("web_enable_sink_profile_card_view_model")?_.at(C8T,"yt-profile-card-view-model",{props:{data:_.cs}}):_.It(MkK,"yt-profile-card-view-model",{propNames:["data"]});var px=function(){var D=_.N.apply(this,arguments)||this;D.enableFocusFix=_.f("music_web_enable_focus_on_setting_menu_fix")&&_.ks("IS_MOBILE_WEB",!1);D.covered=!1;D.hideMenu=!1;D.isCommentNotificationOnProfileCard=!1;D.scrolledByTouch=!1;D.disableBackdropFilter=_.f("web_disable_backdrop_filter");D.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return D};
_.n(px,_.N);_.u=px.prototype;
_.u.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"}}}};
_.u.ready=function(){var D=this;this.JSC$20033_containerElement.addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.u.attributeChanged=function(D,Y){D==="menu-style"&&_.CX(this.hostElement,"yt-multi-page-menu-closed-action",[Y])};
_.u.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.jN(this,this.focusOnStampFinished))};
_.u.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.jN(this,this.focusOnStampFinished))};
_.u.reset=function(){this.closeJobId&&(_.yc.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.u.focusOnStampFinished=function(D){D.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.jN(this,this.focusOnStampFinished)),this.doFocus())};
_.u.doFocus=function(){var D=_.o6L(this.sectionsElement);D.length&&D[0].focus()};
_.u.computeMenuStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.u.computeIsCommentNotificationOnProfileCard=function(D){return _.f("enable_profile_cards_on_comments")&&D.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.u.computeHideMenu=function(D,Y){return D||!(!Y||!Y.showLoadingSpinner)};
_.u.onPopupClosed=function(){this.isPopUpOpen=!1;_.CX(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.u.onPopupOpened=function(D,Y){this.isPopUpOpen=!0;Y.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.MX(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.u0({type:"CHANNEL_REPORT_RESET"})))};
_.u.onYtNavigate=function(D,Y){this.shouldCloseOnNavigateEvent(Y.endpoint)&&_.CX(this.hostElement,"yt-close-all-popups-action")};
_.u.handleEndpoint=function(D){D=_.A(D,_.Ky);!this.isCommentNotificationOnProfileCard&&D&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20033_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.u.handleActions=function(D){for(var Y=0,R=D.length;Y<R;Y++){var Z=_.A(D[Y],$xE);Z&&this.handleGetMultiPageMenuAction(Z);(Z=_.A(D[Y],_.rlE))&&this.handleAppendContinuationItemsAction(Z)}};
_.u.onServiceRequestSentOrCompleted=function(D,Y){D.detail&&D.detail.endpoint&&this.handleEndpoint(D.detail.endpoint);Y.actions&&this.handleActions(Y.actions)};
_.u.handleGetMultiPageMenuAction=function(D){var Y=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.aU(this.submenuElement).appendChild(Y);(D=D.menu.multiPageMenuRenderer)&&this.logSubmenu(D);Y.data=D;Y.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.u.handleAppendContinuationItemsAction=function(D){if(this.data&&D.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&D.continuationItems&&this.data.sections){var Y=this.data.sections.length-1;this.data.sections[Y].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),Y--);if(this.data.sections[Y].multiPageMenuNotificationSectionRenderer&&D.continuationItems){D=_.a(D==null?void 0:D.continuationItems);for(var R=D.next();!R.done;R=D.next())if(R=R.value,_.A(R,c$t)){var Z=
void 0,t=void 0,X=void 0,M=void 0,W=void 0;((Z=this)==null?0:(t=Z.data)==null?0:(X=t.sections)==null?0:(M=X[Y])==null?0:(W=M.multiPageMenuNotificationSectionRenderer)==null?0:W.items)&&this.push("data.sections."+Y+".multiPageMenuNotificationSectionRenderer.items",R)}else if(_.A(R,_.SSb)||_.A(R,_.Y5))this.push("data.sections",R),Y++}}};
_.u.logSubmenu=function(D){if(!_.f("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var Y=this.ytRendererBehavior.getScreenLayer(),R=_.K2(Y),Z=_.Ud(Y);if((D=D.trackingParams)&&R&&Z){var t=_.oT(D);_.f("combine_ve_grafts")?_.n8().graftServerVe(D,Z,Y):_.Qk(R,Z,t)}}};
_.u.emptySubmenuContainer=function(){for(var D=_.aU(this.submenuElement);D.firstChild;)D.removeChild(D.firstChild)};
_.u.onMenuBackTap=function(D){_.MX(this.hostElement,"yt-submenu-closed");D.stopPropagation()};
_.u.onSubmenuClosed=function(D){_.cG(D)!==this.hostElement&&(this.covered=!1,_.MX(this.hostElement,"yt-refit"),D.stopPropagation())};
_.u.onRetrieveLocation=function(D,Y){Y.hasComments&&(Y.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),D.stopPropagation())};
_.u.shouldCloseOnNavigateEvent=function(D){if(!D)return!0;if(_.A(D,_.FaY)||_.A(D,_.GY_)||_.A(D,_.ISE)||_.A(D,_.Qj))return!1;var Y;return((Y=_.A(D==null?void 0:D.commandMetadata,_.GA))==null?0:Y.ignoreNavigation)?!1:!0};
_.u.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.u.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.u.refitAfterRender=function(){var D=this;_.cy(this,function(){_.MX(D.hostElement,"yt-refit")})};
px.prototype.refitAfterRender=px.prototype.refitAfterRender;px.prototype.onRetrieveLocation=px.prototype.onRetrieveLocation;px.prototype.onSubmenuClosed=px.prototype.onSubmenuClosed;px.prototype.onMenuBackTap=px.prototype.onMenuBackTap;px.prototype.onServiceRequestSentOrCompleted=px.prototype.onServiceRequestSentOrCompleted;px.prototype.onYtNavigate=px.prototype.onYtNavigate;px.prototype.onPopupOpened=px.prototype.onPopupOpened;px.prototype.onPopupClosed=px.prototype.onPopupClosed;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],px.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],px.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],px.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],px.prototype,"enableFocusFix",void 0);_.q([_.y(),_.x("design:type",Object)],px.prototype,"covered",void 0);_.q([_.y({computed:"computeHideMenu(covered, data)"}),_.x("design:type",Object)],px.prototype,"hideMenu",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.x("design:type",String)],px.prototype,"menuStyle",void 0);
_.q([_.y({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.x("design:type",Object)],px.prototype,"isCommentNotificationOnProfileCard",void 0);_.q([_.y(),_.x("design:type",Boolean)],px.prototype,"isPopUpOpen",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],px.prototype,"scrolledByTouch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],px.prototype,"disableBackdropFilter",void 0);
_.q([_.fr("#sections"),_.x("design:type",HTMLElement)],px.prototype,"sectionsElement",void 0);_.q([_.fr("#spinner"),_.x("design:type",HTMLElement)],px.prototype,"spinnerElement",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],px.prototype,"headerElement",void 0);_.q([_.fr("#container"),_.x("design:type",HTMLElement)],px.prototype,"JSC$20033_containerElement",void 0);_.q([_.fr("#submenu"),_.x("design:type",HTMLElement)],px.prototype,"submenuElement",void 0);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],px.prototype,"onPopupClosed",null);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],px.prototype,"onPopupOpened",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],px.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-service-request-completed"),_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],px.prototype,"onServiceRequestSentOrCompleted",null);_.q([_.Fv("yt-menu-back-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],px.prototype,"onMenuBackTap",null);
_.q([_.Fv("yt-submenu-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],px.prototype,"onSubmenuClosed",null);_.q([_.Fv("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],px.prototype,"onRetrieveLocation",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],px.prototype,"refitAfterRender",null);
_.q([_.h({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],px);
_.L(px,"ytd-multi-page-menu-renderer",function(){if(U69!==void 0)return U69;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return U69=D},{mode:1});var Wsh;var Ej=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return D};
_.n(Ej,_.N);_.u=Ej.prototype;_.u.created=function(){this.showTooltips=!0};
_.u.computeAccessibility_=function(D){return this.get("accessibility.accessibilityData",D)||null};
_.u.onTap=function(){var D=_.WC(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(D&&D.length===1&&D[0])_.CX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var Y;if((Y=this.data)==null?0:Y.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var R;((R=this.data)==null?0:R.menuRequest)&&_.zA(this.hostElement,[this.data.menuRequest])}}};
_.u.handleTopbarMenuClosedAction=function(D){var Y,R;(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(D)===((Y=this.data)==null?void 0:(R=Y.icon)==null?void 0:R.iconType)&&this.toggleIconState(!1)};
_.u.toggleIconState=function(D){_.f("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=D)};
_.u.handleUpdateTopbarAvatarAction=function(D){var Y;D=(Y=_.A(D,V8h))==null?void 0:Y.avatarUrl;var R,Z;Y=(R=this.data)==null?void 0:(Z=R.avatar)==null?void 0:Z.thumbnails;D&&Y&&(R={thumbnails:[Object.assign({},Y[0],{url:D})]},this.set("data.avatar",R))};
_.YF.Object.defineProperties(Ej.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.aU(this.hostElement).querySelector("#button")}}});
Ej.prototype.onTap=Ej.prototype.onTap;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Ej.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],Ej.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.csz.YtButtonBehavior),_.x("design:type",Object)],Ej.prototype,"ytButtonBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ej.prototype,"data",void 0);
_.q([_.fr("yt-icon-button#button"),_.x("design:type",Object)],Ej.prototype,"iconButton",void 0);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ej.prototype,"onTap",null);_.q([_.h({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Ej);
_.WL()(Ej,"ytd-topbar-menu-button-renderer",function(){if(Wsh===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);Wsh=D}D=Wsh;return D},{allowedProps:["data"],
mode:1});var znt;var go=function(){return _.N.apply(this,arguments)||this};
_.n(go,_.N);go.prototype.getSelected=function(){return this.reasons.selected};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],go.prototype,"data",void 0);_.q([_.fr("#reasons"),_.x("design:type",Object)],go.prototype,"reasons",void 0);_.q([_.h({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],go);
_.L(go,"ytd-ad-feedback-content",function(){if(znt!==void 0)return znt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return znt=D},{mode:1});var SJu;var iJ=function(){return _.N.apply(this,arguments)||this};
_.n(iJ,_.N);_.u=iJ.prototype;_.u.onPopupOpened=function(){_.CX(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.u.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
_.u.computeCancelButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.cancelLabel}};
_.u.onConfirmTap=function(){var D=this.content.getSelected();D!==void 0&&(D=this.data.reasons[D].endpoint)&&(_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}}),_.CX(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.u.sendFeedbackSubmitToastAction=function(){var D;(D=this.data)!=null&&D.completionMessage&&_.CX(this.hostElement,"yt-open-popup-action",[_.RQ(this.data.completionMessage),this])};
_.u.onCancelTap=function(){_.CX(this.hostElement,"yt-close-popup-action")};
iJ.prototype.onPopupOpened=iJ.prototype.onPopupOpened;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iJ.prototype,"data",void 0);_.q([_.fr("#content"),_.x("design:type",Object)],iJ.prototype,"content",void 0);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],iJ.prototype,"onPopupOpened",null);
_.q([_.h({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],iJ);
_.L(iJ,"ytd-ad-feedback-renderer",function(){if(SJu!==void 0)return SJu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return SJu=D},{mode:1});var Th9;var Oj=function(){return _.N.apply(this,arguments)||this};
_.n(Oj,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Oj.prototype,"data",void 0);_.q([_.h({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Oj);
_.L(Oj,"ytd-ad-info-dialog-content",function(){if(Th9!==void 0)return Th9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Th9=D},{mode:1});var jmE;var ce=function(){return _.N.apply(this,arguments)||this};
_.n(ce,_.N);ce.prototype.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
ce.prototype.onConfirmTap=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
ce.prototype.computeShouldShowTitle=function(){var D;return!((D=this.data)==null||!D.title)};
ce.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
ce.prototype.onPopupClosed=ce.prototype.onPopupClosed;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ce.prototype,"data",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ce.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],ce);
_.L(ce,"ytd-ad-info-dialog-renderer",function(){if(jmE!==void 0)return jmE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return jmE=D},{mode:1});var Ic9;var DJ=function(){var D=_.N.apply(this,arguments)||this;D.actionButtonClass="action-button";D.dismissButtonId="dismiss-button";D.dialogDismiss=!0;return D};
_.n(DJ,_.N);_.u=DJ.prototype;_.u.computeInPlayer=function(D){return(D==null?void 0:D.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.u.computedLogo=function(){var D,Y;return this.isDarkTheme()?(D=this.data)==null?void 0:D.logoDark:(Y=this.data)==null?void 0:Y.logo};
_.u.computedHeaderImage=function(){var D,Y;return this.isDarkTheme()?(D=this.data)==null?void 0:D.headerImageDark:(Y=this.data)==null?void 0:Y.headerImage};
_.u.computeLogoIconId=function(){var D,Y,R,Z=(D=this.computedLogo())==null?void 0:(Y=D.sources)==null?void 0:(R=Y[0])==null?void 0:R.height;return Z&&Z%31===0?"logo-icon-with-padding":"logo-icon"};
_.u.computeLogoIconHeight=function(){var D,Y,R,Z=(D=this.computedLogo())==null?void 0:(Y=D.sources)==null?void 0:(R=Y[0])==null?void 0:R.height;return Z&&Z%31===0?"31":"24"};
_.u.onPopupClosed=function(){_.DH().resolve(_.G0).dispose()};
_.u.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.u.onShow=function(){this.inPlayer&&_.Vb(6)};
_.u.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++){var Y=_.A(this.data.impressionEndpoints[D],_.mQ);Y&&this.ytComponentBehavior.resolveCommand(Y)}};
_.u.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.CX(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.YF.Object.defineProperties(DJ.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!((D=this.data)==null||!D.headerImageDark)&&!((Y=this.data)==null||!Y.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.secondaryButton)}}});
DJ.prototype.onPopupClosed=DJ.prototype.onPopupClosed;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.gt.YtVisibilityBehavior),_.x("design:type",Object)],DJ.prototype,"ytVisibilityBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DJ.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],DJ.prototype,"actionButtonClass",void 0);_.q([_.y(),_.x("design:type",Object)],DJ.prototype,"dismissButtonId",void 0);_.q([_.y(),_.x("design:type",Object)],DJ.prototype,"dialogDismiss",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],DJ.prototype,"hasHeaderImage",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],DJ.prototype,"hasPremiumButton",null);
_.q([_.y({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.x("design:type",Boolean)],DJ.prototype,"inPlayer",void 0);_.q([_.fr("#dismiss-button"),_.x("design:type",HTMLElement)],DJ.prototype,"dismissButton",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],DJ.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],DJ);
_.L(DJ,"ytd-enforcement-message-view-model",function(){if(Ic9!==void 0)return Ic9;var D=document.createElement("template");_.w(D,'\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="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" 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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Ic9=D},{mode:1});var FsE;var G70;var YY=function(){var D=_.N.apply(this,arguments)||this;D.TEST_ONLY={immediateValidation:function(){D.immediateValidation()},
onValidationResponse:function(Y){D.onValidationResponse(Y)},
onGenerateHandleFromNameResponse:function(Y){D.onGenerateHandleFromNameResponse(Y)}};
return D};
_.n(YY,_.N);_.u=YY.prototype;_.u.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.u.validate=function(){this.immediateValidation()};
_.u.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.u.setHandleInputValue=function(D){this.handleDir=this.getHandleDir(D);this.handleInput.value=D;this.validationState={status:"PENDING"};this.immediateValidation()};
_.u.getHandleDir=function(D){var Y=D===""&&!1;return(Y=_.Fyb.test.call(_.Fyb,D))?"rtl":"ltr"};
_.u.onDataChanged=function(){var D,Y;this.handleDir=this.getHandleDir((Y=(D=this.data)==null?void 0:D.handle)!=null?Y:"");var R;this.validationState=((R=this.data)==null?0:R.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Z;((Z=this.data)==null?0:Z.validateOnInit)&&this.immediateValidation()};
_.u.stopPropagation=function(D){D.stopPropagation()};
_.u.onInput=function(){var D;this.handleDir=this.getHandleDir((D=this.handleInput.value)!=null?D:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.u.onFocusout=function(D){this.handleInput.contains(D.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.u.delayedValidation=function(){var D,Y;this.debouncedValidation((Y=(D=this.data)==null?void 0:D.validationDelayMs)!=null?Y:1E3)};
_.u.immediateValidation=function(){this.debouncedValidation(0)};
_.u.debouncedValidation=function(D){var Y=this;_.pr(this,"debouncedValidation",function(){var R,Z=Y.staticValidation((R=Y.handleInput.value)!=null?R:"");if(Z!==void 0)Y.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Z};else{var t;if((t=Y.data)!=null&&t.validateChannelHandleCommand){Y.validationState={status:"LOADING"};var X;Y.ytComponentBehavior.resolveCommand(Y.data.validateChannelHandleCommand,{form:{handle:(X=Y.handleInput.value)!=null?X:""},commandController:{onSuccess:function(M,
W){Y.onValidationResponse(W)},
onServerError:function(M,W){Y.onValidationServerError(W)}}})}else Y.handleUnexpectedValidationError(new _.AT("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",Y.data))}},D)};
_.u.staticValidation=function(D){var Y;if(((Y=this.data)==null?void 0:Y.channelHandleStaticValidationParams)!==void 0){Y=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(D)&&Y.validValueRegexpErrorMessage!==void 0)return Y.validValueRegexpErrorMessage;if(Y.minLength!==void 0&&D.length<Y.minLength&&Y.minLengthErrorMessage!==void 0)return Y.minLengthErrorMessage;if(Y.maxLength!==void 0&&D.length>Y.maxLength&&Y.maxLengthErrorMessage!==void 0)return Y.maxLengthErrorMessage}};
_.u.onValidationResponse=function(D){var Y=_.A(D.result,fkz);Y===void 0?this.handleUnexpectedValidationError(new _.AT("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",D)):this.handleValidationResultRenderer(Y)};
_.u.onValidationServerError=function(D){this.handleUnexpectedValidationError(new _.AT("ValidateChannelHandle request failed.",D))};
_.u.handleValidationResultRenderer=function(D){if(D.handle===void 0)this.handleUnexpectedValidationError(new _.AT("ChannelHandleValidationResultRenderer does not contain handle.",D));else if(D.handle===this.handleInput.value)switch(D.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:D.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:D.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.AT("Unrecognized ChannelHandleValidationResult",D));break;default:_.qU(D.result)}};
_.u.handleUnexpectedValidationError=function(D){var Y;this.validationState={status:"UNKNOWN",handle:(Y=this.handleInput.value)!=null?Y:""};_.Jk(D)};
_.u.stopEventPropagation=function(D){D.stopPropagation()};
_.u.updateHandleOnChannelNameInputChange=function(D){if(!this.wasEdited){var Y,R;this.debouncedGenerateHandleFromName(D,(R=(Y=this.data)==null?void 0:Y.validationDelayMs)!=null?R:1E3)}};
_.u.debouncedGenerateHandleFromName=function(D,Y){var R=this;_.pr(this,"debouncedGenerateHandleFromName",function(){var Z;(Z=R.data)!=null&&Z.validateChannelHandleCommand?R.ytComponentBehavior.resolveCommand(R.data.validateChannelHandleCommand,{form:{name:D},commandController:{onSuccess:function(t,X){R.onGenerateHandleFromNameResponse(X)},
onServerError:function(t,X){_.Jk(new _.AT("Error calling GenerateHandleFromName",X))}}}):_.Jk(new _.AT("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",R.data))},Y)};
_.u.onGenerateHandleFromNameResponse=function(D){this.wasEdited||((D=_.A(D.result,exk))?this.setHandleInputValue(D.handle):_.Jk(new _.AT("Invalid results when generate handle from name")))};
_.YF.Object.defineProperties(YY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var D;if(D=this.validationState)D=this.validationState,D=D.status==="OK"||D.status==="UNKNOWN";if(D)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.validationState)==null?void 0:D.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 D,Y=(D=this.channelHandleEntity)==null?void 0:D.handleEdit;this.handleDir=this.getHandleDir(Y!=null?Y:"");return Y}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var D,Y;if(((D=this.data)==null?void 0:(Y=D.channelHandleStaticValidationParams)==null?void 0:Y.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
YY.prototype.stopEventPropagation=YY.prototype.stopEventPropagation;YY.prototype.onDataChanged=YY.prototype.onDataChanged;YY.prototype.applyHandleEdit=YY.prototype.applyHandleEdit;YY.prototype.onValueChanged=YY.prototype.onValueChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],YY.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],YY.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],YY.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Boolean)],YY.prototype,"wasEdited",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],YY.prototype,"handleDir",void 0);_.q([_.fr("#handle-input"),_.x("design:type",Object)],YY.prototype,"handleInput",void 0);_.q([_.y(),_.b("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],YY.prototype,"value",null);
_.q([_.Gm("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YY.prototype,"onValueChanged",null);_.q([_.b("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],YY.prototype,"errorIndicator",null);_.q([_.y({reflectToAttribute:!0}),_.b("errorIndicator"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],YY.prototype,"borderErrorIndicator",null);
_.q([_.y({selectorArgs:["data.channelHandleEntityKey"],selector:function(D,Y){return _.jC(D.entities,"channelHandle",Y)}}),
_.x("design:type",Object)],YY.prototype,"channelHandleEntity",void 0);_.q([_.b("channelHandleEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],YY.prototype,"handleEdit",null);_.q([_.Gm("handleEdit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YY.prototype,"applyHandleEdit",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YY.prototype,"onDataChanged",null);
_.q([_.b("data.channelHandleStaticValidationParams.validValueRegexp"),_.x("design:type",Object),_.x("design:paramtypes",[])],YY.prototype,"validValueRegexp",null);_.q([_.Fv("yt-service-request-sent"),_.Fv("yt-service-request-completed"),_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],YY.prototype,"stopEventPropagation",null);_.q([_.h({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],YY);
_.L(YY,"ytd-channel-handle-input-renderer",function(){if(G70!==void 0)return G70;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return G70=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var RG=function(){var D=_.N.apply(this,arguments)||this;D.data=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!1;D.enableNewChannelCreationOnIdForAll=_.f("enable_new_channel_creation_for_id4all");D.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"};D.testOnly={setErrorMessage:function(Y){D.resetErrorState();
D.setErrorState(Y)}};
return D};
_.n(RG,_.N);_.u=RG.prototype;_.u.created=function(){this.logScreenVe()};
_.u.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")};
_.u.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var D;((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.set("errorMessage",_.i0(this.zeroStepErrorMessageEntity.value))};
_.u.onCreateTap=function(){var D=this;if(this.data&&this.data.channelCreationEndpoint){var Y,R;if(!((Y=this.data.createChannelButton)==null?0:(R=Y.buttonRenderer)==null?0:R.isDisabled)){var Z;if((Z=this.nameInput)!=null&&Z.value){this.setLoadingState();var t,X;Y=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(t=this.handleInput)==null?void 0:t.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((X=this.handleInput)==null?void 0:X.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:Y,commandController:{onSuccess:function(M,W){D.onChannelCreationEndpointSuccess(W);D.obakeImageSource&&_.bo("channelCreatedWithObakeImage",{imageSourceType:D.obakeImageSource})},
onServerError:function(){D.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.u.endpointRequiresServiceRequestAction=function(D){return!!_.A(D,_.l$)||!!_.A(D,V8h)};
_.u.isNavigateAction=function(D){var Y;return!!_.A(D,_.a7)||!!_.A((Y=_.A(D,r$k))==null?void 0:Y.command,_.a7)};
_.u.isPlaylistAction=function(D){return!!_.A(D,_.hh)||!!_.A(D,_.Px)};
_.u.onChannelCreationEndpointSuccess=function(D){if(D.createChannelError){var Y;this.setErrorState((Y=D.createChannelError)==null?void 0:Y.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.f("enable_secondary_channel_creation_form")&&D.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(D.navigationEndpoint);if(D.actions){Y=_.a(D.actions);for(var R=Y.next();!R.done;R=Y.next())if(R=R.value,this.endpointRequiresServiceRequestAction(R)&&this.ytComponentBehavior.resolveCommand(R),
this.isNavigateAction(R)){var Z=void 0;R=_.A((Z=_.A(R,r$k))==null?void 0:Z.command,_.a7);Z=void 0;this.isPlaylistAction((Z=R)==null?void 0:Z.endpoint)&&(_.CX(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Z=void 0,this.ytComponentBehavior.resolveCommand((Z=R)==null?void 0:Z.endpoint))}}D.actions&&D.actions.some(function(t){var X;return _.A(t,_.a7)||_.A((X=_.A(t,r$k))==null?void 0:X.command,_.a7)})||_.CX(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.u.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.u.onCancelTap=function(){var D,Y,R;if(!((D=this.data)==null?0:(Y=D.cancelButton)==null?0:(R=Y.buttonRenderer)==null?0:R.isDisabled)){var Z,t,X;D=(Z=this.data)==null?void 0:(t=Z.cancelButton)==null?void 0:(X=t.buttonRenderer)==null?void 0:X.command;if(!D||!_.A(D,_.r3o)){var M;this.nameInput&&((M=this.data)==null?0:M.name)&&(this.nameInput.value=this.data.name);var W;this.handleInput&&((W=this.data)==null?0:W.channelHandleInput)&&(this.handleInput.data=_.A(this.data.channelHandleInput,A$k));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.u.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.u.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.u.onClearProfilePhotoTap=function(){var D,Y,R;((D=this.data)==null?0:(Y=D.clearProfilePhotoButton)==null?0:(R=Y.buttonRenderer)==null?0:R.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.u.onEditAvatarTap=function(){var D,Y,R;((D=this.data)==null?0:(Y=D.editAvatarButton)==null?0:(R=Y.buttonRenderer)==null?0:R.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.u.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)};
_.u.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var D;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((D=this.data)==null?0:D.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.u.setErrorState=function(D){this.resetErrorState();if(D)this.set("errorMessage",D);else{var Y;if((Y=this.zeroStepErrorMessageEntity)==null?0:Y.value)this.set("errorMessage",_.i0(this.zeroStepErrorMessageEntity.value));else{var R;((R=this.data)==null?0:R.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.u.fetchImageBlobWithAlr=function(D,Y){Y=Y===void 0?5:Y;var R=this,Z,t,X,M,W;return _.C(function(z){switch(z.nextAddress){case 1:return z.yield(fetch(D,{method:"GET",mode:"cors"}),2);case 2:Z=z.yieldResult;if(Z.ok){z.jumpTo(3);break}if(Y===0)throw Error();t=R.addJitter(Math.pow(2,5-Y));return z.yield(new Promise(function(I){setTimeout(I,t*1E3)}),4);
case 4:return z.return(R.fetchImageBlobWithAlr(D,Y-1));case 3:if(!Z.headers.get("content-type").split(";").some(function(I){return I.trim()==="text/plain"})){z.jumpTo(5);
break}X=R;M=X.fetchImageBlobWithAlr;return z.yield(Z.text(),6);case 6:return z.return(M.call(X,z.yieldResult,Y-1));case 5:return z.yield(Z.blob(),7);case 7:return W=z.yieldResult,z.return(W)}})};
_.u.addJitter=function(D){var Y=D*.3*Math.random();Math.random()>.5&&(Y*=-1);return D+Y};
_.u.openProfilePicturePicker=function(){var D=this,Y,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1){Y=D.data.scottyUploadUrl;if(!Y)return M.return();R=document.documentElement.hasAttribute("dark");Z=document.body.style.colorScheme;R&&(document.body.style.colorScheme="dark");t=vOK(oOk($lI(V_K(R?"dark":"light")),function(W){var z,I,F,G,V;return _.C(function(e){if(e.nextAddress==1)return z=_.xr(Qsh(new Q1(W.photoUrl,!1)).build(),"alr","yes"),D.obakeImageSource=D.pictureChangeSourceToObakeImageSourceType(W.photoSource),
_.SX(e,2),D.setLoadingState(),e.yield(D.fetchImageBlobWithAlr(z),4);if(e.nextAddress!=2)return I=e.yieldResult,F=new FileReader,F.addEventListener("load",function(){var r,l,U,K,H,c;return _.C(function(Q){if(Q.nextAddress==1){if(I.size>15728640)return D.setErrorState((r=D.data)==null?void 0:r.imageSizeErrorMessage),_.Jk(Error("nl")),Q.return();if(!F.result)return D.setErrorState((l=D.data)==null?void 0:l.genericImageLoadErrorMessage),_.Jk(Error("ol")),Q.return();U=F.result;_.SX(Q,2);return Q.yield(ir0(I,
Y),4)}if(Q.nextAddress!=2)return K=Q.yieldResult,D.handleImageUpdatedAction(U,K),D.resetErrorState(),_.xw(Q,0);H=_.Gl(Q);D.setErrorState((c=D.data)==null?void 0:c.uploadErrorMessage);if(H instanceof Error)_.Nb(H);else{var E=new _.AT(JSON.stringify(H));_.Nb(E)}_.V9(Q)})}),F.readAsDataURL(I),_.xw(e,0);
G=_.Gl(e);D.setErrorState((V=D.data)==null?void 0:V.genericImageLoadErrorMessage);G instanceof Error?_.Nb(G):_.lo(new _.AT(JSON.stringify(G)));_.V9(e)})}),function(){D.hideContainer=!1;
document.body.style.colorScheme=Z});
_.SX(M,2);return M.yield(t.openPicker(),4)}if(M.nextAddress!=2)return _.xw(M,0);_.Gl(M);D.setErrorState((X=D.data)==null?void 0:X.selectImageErrorMessage);_.V9(M)})};
_.u.pictureChangeSourceToObakeImageSourceType=function(D){switch(D){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.u.logScreenVe=function(){_.TJ(_.n8(),124448)};
_.u.graftServerVe=function(){var D=_.Ud(),Y,R,Z=(Y=this.data)==null?void 0:(R=Y.loggingDirectives)==null?void 0:R.trackingParams;Z&&D&&(this.channelCreationFormVe=_.n8().graftServerVe(Z,D),D={visualElement:this.channelCreationFormVe},_.ev().reportShown(D))};
_.u.isNameChanged=function(D){var Y;return((Y=this.data)==null?void 0:Y.name)!==D};
_.u.isHandleChanged=function(D){var Y,R=_.A((Y=this.data)==null?void 0:Y.channelHandleInput,A$k);return R&&D?R.handle!==D:!1};
_.u.handleImageUpdatedAction=function(D,Y){this.hideContainer=!1;this.previewDataUrl=D;this.encryptedBlobId=Y};
_.u.handleImageSelectionErrorAction=function(D){this.hideContainer=!1;this.setErrorState(D)};
_.u.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.u.showContainer=function(){this.hideContainer=!1};
_.u.maybeWipeZeroStepErrorMessage=function(){var D,Y=(D=this.data)==null?void 0:D.zeroStepErrorMessageEntityKey,R;Y&&((R=this.zeroStepErrorMessageEntity)==null?0:R.value)&&this.ytdReduxBehavior.dispatch(_.oP("stringEntity",Y,{key:Y,value:""}))};
_.YF.Object.defineProperties(RG.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 D;return((D=this.photoThumbnail)==null?0:D.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 D;return!((D=this.data)==null||!D.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.descriptionInfo}}});
RG.prototype.dataChanged=RG.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],RG.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],RG.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],RG.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],RG.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],RG.prototype,"errorMessage",void 0);
_.q([_.y(),_.x("design:type",Object)],RG.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",String)],RG.prototype,"previewDataUrl",void 0);_.q([_.y(),_.x("design:type",Number)],RG.prototype,"obakeImageSource",void 0);_.q([_.y(),_.x("design:type",Object)],RG.prototype,"hideContainer",void 0);_.q([_.fr("#title-input"),_.x("design:type",Object)],RG.prototype,"nameInput",void 0);_.q([_.fr("#handle-input"),_.x("design:type",Object)],RG.prototype,"handleInput",void 0);
_.q([_.y(),_.x("design:type",Boolean)],RG.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.q([_.y({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.xP}),_.x("design:type",Object)],RG.prototype,"zeroStepErrorMessageEntity",void 0);_.q([_.b("data","data.isDefaultProfilePhoto","previewDataUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],RG.prototype,"photoThumbnail",null);
_.q([_.b("data","data.isDefaultProfilePhoto","photoThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],RG.prototype,"userSetPhotoThumbnailUrl",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],RG.prototype,"hideProfilePhotoButtonLayer",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],RG.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.q([_.rd("data","zeroStepErrorMessageEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RG.prototype,"dataChanged",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.descriptionInfo","zeroStepErrorMessageEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],RG.prototype,"description",null);_.q([_.h({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],RG);
_.L(RG,"ytd-channel-creation-dialog-renderer",function(){if(FsE!==void 0)return FsE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return FsE=D},{mode:1});var Vkz;var ZJ=function(){var D=_.N.apply(this,arguments)||this;D.isLoading=!1;D.isDisabled=!1;return D};
_.n(ZJ,_.N);ZJ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ZJ.prototype.updateDisabled=function(){var D;this.isDisabled=this.isLoading||((D=this.handleInput)==null?void 0:D.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
ZJ.prototype.onSaveClick=function(){var D=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var Y;((Y=this.data)==null?void 0:Y.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 R;if((R=D.data)==null?0:R.nextEndpoint){var Z;D.ytComponentBehavior.resolveCommand((Z=D.data)==null?void 0:Z.nextEndpoint)}else D.isLoading=
!1,D.closeDialog()},
onServerError:function(){D.isLoading=!1;D.handleInput.validate();var R;D.errorMessage=(R=D.data)==null?void 0:R.errorMessage}}}))}};
ZJ.prototype.closeDialog=function(){_.CX(this.hostElement,"yt-close-popup-action",[this.is])};
ZJ.prototype.updateDisabled=ZJ.prototype.updateDisabled;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ZJ.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ZJ.prototype,"data",void 0);_.q([_.fr("#handle-input"),_.x("design:type",Object)],ZJ.prototype,"handleInput",void 0);_.q([_.Gm("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZJ.prototype,"updateDisabled",null);
_.q([_.h({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],ZJ);
_.L(ZJ,"ytd-channel-handle-edit-dialog-renderer",function(){if(Vkz!==void 0)return Vkz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Vkz=D},{mode:1});var fct;var tv=function(){return _.N.apply(this,arguments)||this};
_.n(tv,_.N);tv.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tv.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],tv);
_.L(tv,"ytd-channel-switcher-footer-renderer",function(){if(fct!==void 0)return fct;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return fct=D},{mode:1});var en9;var Acu;var s5=function(){return _.N.apply(this,arguments)||this};
_.n(s5,_.N);s5.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
s5.prototype.onIronChange=s5.prototype.onIronChange;_.q([_.y(),_.x("design:type",Object)],s5.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Function)],s5.prototype,"onDontAskAgainChanged",void 0);_.q([_.fr("#checkbox"),_.x("design:type",Object)],s5.prototype,"checkbox",void 0);_.q([_.Fv("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s5.prototype,"onIronChange",null);
_.q([_.h({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],s5);
_.L(s5,"ytd-identity-prompt-footer-renderer",function(){if(Acu!==void 0)return Acu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Acu=D},{mode:1});var XT=function(){var D=_.N.apply(this,arguments)||this;D.dontAskAgain=!1;D.showPopup=!1;D.boundDontAskAgainChanged=function(Y){D.dontAskAgainChanged(Y)};
D.boundOnAccountItemTap=function(Y){D.onAccountItemTap(Y)};
return D};
_.n(XT,_.N);_.u=XT.prototype;
_.u.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]]"}}}}}};
_.u.ready=function(){var D=this;_.aU(this.hostElement).querySelector("#container").addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.u.dontAskAgainChanged=function(D){this.dontAskAgain=D};
_.u.onAccountItemTap=function(D){if(D){var Y={};this.dontAskAgain&&(Y={dont_ask_again:this.dontAskAgain});_.pn(D,Y)}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.u.redirectOnlyAccount=function(D){D.sections&&D.sections.length>0&&(D=_.A(D.sections[0],_.Sr7),(D==null?0:D.contents)&&(D==null?void 0:D.contents.length)<=1?(D=_.QL(window.location.href),(D==null?0:D.next)&&_.fi9(D.next)?_.pn(D.next):_.pn("/")):this.showPopup=!0)};
XT.prototype.dataChanged=XT.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XT.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Object)],XT.prototype,"dontAskAgain",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],XT.prototype,"showPopup",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Object)],XT.prototype,"boundDontAskAgainChanged",void 0);_.q([_.y({reflectToAttribute:!1}),_.x("design:type",Object)],XT.prototype,"boundOnAccountItemTap",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XT.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],XT);
_.L(XT,"ytd-channel-switcher-renderer",function(){if(en9!==void 0)return en9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return en9=D},{mode:1});var nvK;var u7=function(){return _.N.apply(this,arguments)||this};
_.n(u7,_.N);_.YF.Object.defineProperties(u7.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.q([_.y(),_.x("design:type",Object)],u7.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],u7.prototype,"steps",null);_.q([_.h({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],u7);
_.L(u7,"ytd-channel-transfer-stepper-renderer",function(){if(nvK!==void 0)return nvK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return nvK=D},{mode:1});var rcK;var aG=function(){var D=_.N.apply(this,arguments)||this;D.data=null;D.isError=!1;D.isLoading=!1;return D};
_.n(aG,_.N);_.u=aG.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.u.computeProfileName=function(D){return D?D.givenNameValue+" "+D.familyNameValue:""};
_.u.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)};
_.u.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)};
aG.prototype.onYtServiceRequestError=aG.prototype.onYtServiceRequestError;aG.prototype.onYtServiceRequestSent=aG.prototype.onYtServiceRequestSent;aG.prototype.dataChanged=aG.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aG.prototype,"data",void 0);
_.q([_.y({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.x("design:type",String)],aG.prototype,"profileName",void 0);_.q([_.y(),_.x("design:type",Object)],aG.prototype,"isError",void 0);_.q([_.y(),_.x("design:type",Object)],aG.prototype,"isLoading",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aG.prototype,"dataChanged",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],aG.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],aG.prototype,"onYtServiceRequestError",null);_.q([_.h({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],aG);
_.L(aG,"ytd-channel-warm-welcome-cont-renderer",function(){if(rcK!==void 0)return rcK;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return rcK=D},{mode:1});var w5h;var Mz=function(){var D=_.N.apply(this,arguments)||this;D.data=null;return D};
_.n(Mz,_.N);Mz.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Mz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Mz.prototype,"data",void 0);_.q([_.h({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Mz);
_.L(Mz,"ytd-channel-warm-welcome-renderer",function(){if(w5h!==void 0)return w5h;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return w5h=D},{mode:1});var $S9;var SA=function(){return _.N.apply(this,arguments)||this};
_.n(SA,_.N);_.YF.Object.defineProperties(SA.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.authorThumbnail)||{}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],SA.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],SA.prototype,"thumbnailDetails",null);_.q([_.h({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],SA);
_.L(SA,"ytd-comment-preview-renderer",function(){if($S9!==void 0)return $S9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $S9=D},{mode:1});var vv9;var Te=function(){return _.N.apply(this,arguments)||this};
_.n(Te,_.N);Te.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.YF.Object.defineProperties(Te.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.submitButton}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Te.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Te.prototype,"submitButton",null);_.q([_.h({is:"ytd-notice-renderer",disableElementRegistration:!0})],Te);
_.L(Te,"ytd-notice-renderer",function(){if(vv9!==void 0)return vv9;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return vv9=D},{mode:1});var ovt;var jA=function(){return _.N.apply(this,arguments)||this};
_.n(jA,_.N);jA.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jA.prototype,"data",void 0);_.q([_.h({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],jA);
_.L(jA,"ytd-preview-comment-dialog-content",function(){if(ovt!==void 0)return ovt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ovt=D},{mode:1});var bk9;var IG=function(){return _.N.apply(this,arguments)||this};
_.n(IG,_.N);IG.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
IG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],IG.prototype,"data",void 0);_.q([_.h({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],IG);
_.L(IG,"ytd-preview-comment-dialog-renderer",function(){if(bk9!==void 0)return bk9;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return bk9=D},{mode:1});var ycK;var Nhp=_.f("web_button_rework")&&_.ks("BUTTON_REWORK")||_.f("web_button_rework_with_live"),FT=function(){var D=_.N.apply(this,arguments)||this;D.closeLabel=_.fX("CLOSE");D.selectedAmountIndex=1;D.privacyCheckboxValue=!1;D.useAmsterdamStyle=Nhp;D.amountPlaceholderIndex=-1;return D};
_.n(FT,_.N);_.u=FT.prototype;_.u.onAmountClick=function(D){this.selectedAmountIndex=_.aU(this.hostElement).querySelector("#amounts").indexForElement(D.currentTarget)};
_.u.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.CX(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.u.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.CX(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.CX(this.hostElement,"yt-close-popup-action",[this.is]);var D;(D=_.sm())==null||D.getPlayerPromise().then(function(Y){Y.pauseVideo()})}};
_.u.donationCallback=function(D){D.success?(this.hostElement.hasAttribute("live-chat")&&D.response&&D.response.data&&D.response.data.actions&&_.CX(this.hostElement,"yt-live-chat-open-popup",[D.response.data.actions[0]]),_.CX(this.hostElement,"yt-close-popup-action",[this.is]),_.CX(this.hostElement,"yt-live-chat-close-buy-flow")):D.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(D.errorMessageRenderer)};
_.u.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.aU(this.hostElement).querySelector("#custom-amount-input").focus()};
_.u.updateConfirmationDialogTextWithAmount=function(D){var Y=this.getConfirmDialogRuns();Y&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(Y),"text"],this.getFormattedAmount(D))};
_.u.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.u.getAmountPlaceholderIndex=function(D){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=D.findIndex(function(Y){return Y.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.u.getFormattedAmount=function(D){var Y;return(new _.Q5(4,((Y=this.data)==null?void 0:Y.currencyCode)||"")).format(D)};
_.u.isAmountValid=function(D){if(D==="")return!1;D=Number(D)*1E6;var Y=this.get("minAmountMicros",this.data),R=this.get("maxAmountMicros",this.data);return Y&&D<Y||R&&D>R?!1:!0};
_.u.setInputError=function(){this.shouldShowValidationError?_.aU(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.aU(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.u.setInitialCheckboxValue=function(){var D;this.privacyCheckboxValue=!((D=this.data)==null||!D.privacyCheckboxInitialState)};
_.u.updateCustomAmountInputFromBinding=function(D){this.customAmountInput=D.detail.value};
_.u.updatePrivacyCheckboxValueFromBinding=function(D){this.privacyCheckboxValue=D.detail.value};
_.YF.Object.defineProperties(FT.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var D=this,Y,R;return((Y=this.data)==null?void 0:(R=Y.suggestedAmounts)==null?void 0:R.map(function(Z,t){return{buttonRenderer:{style:D.selectedAmountIndex===t?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Z.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 D;return!((D=this.data)==null||!D.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 D=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(D&&this.amountMicros!==null)return Object.assign({},D,{ypcGetCartEndpoint:Object.assign({},D.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 D=this.get("confirmLargeAmount",this.data);if(D&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),D}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.get("donateButton.buttonRenderer",this.data);if(D)return Object.assign({},D,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
FT.prototype.setInitialCheckboxValue=FT.prototype.setInitialCheckboxValue;FT.prototype.setInputError=FT.prototype.setInputError;FT.prototype.setFocusOnCustomAmountInput=FT.prototype.setFocusOnCustomAmountInput;_.q([_.v(pVK),_.x("design:type",Object)],FT.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],FT.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],FT.prototype,"closeLabel",void 0);_.q([_.y(),_.x("design:type",Object)],FT.prototype,"selectedAmountIndex",void 0);_.q([_.y(),_.x("design:type",String)],FT.prototype,"customAmountInput",void 0);_.q([_.y(),_.x("design:type",Object)],FT.prototype,"privacyCheckboxValue",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],FT.prototype,"useAmsterdamStyle",void 0);_.q([_.Gm("customAmount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FT.prototype,"setFocusOnCustomAmountInput",null);_.q([_.b("data","selectedAmountIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],FT.prototype,"suggestedAmountButtons",null);
_.q([_.b("data","selectedAmountIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FT.prototype,"isCustomAmountSelected",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FT.prototype,"showPrivacyCheckbox",null);_.q([_.b("data","selectedAmountIndex","customAmount"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"amountMicros",null);
_.q([_.b("isCustomAmountSelected","customAmountInput"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"customAmount",null);_.q([_.b("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FT.prototype,"shouldShowValidationError",null);_.q([_.b("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FT.prototype,"isDonateButtonEnabled",null);
_.q([_.b("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"donateCommand",null);_.q([_.b("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"donateCommandWithConfirmation",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"largeDonationThreshold",null);
_.q([_.b("customAmount","donateCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"confirmLargeAmountCommand",null);_.q([_.b("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.x("design:type",Object),_.x("design:paramtypes",[])],FT.prototype,"donateButtonRenderer",null);_.q([_.Gm("shouldShowValidationError"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FT.prototype,"setInputError",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FT.prototype,"setInitialCheckboxValue",null);_.q([_.h({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],FT);
_.L(FT,"ytd-donation-amount-picker-renderer",function(){if(ycK!==void 0)return ycK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ycK=D},{mode:1});var lcb;var Ge=function(){return _.N.apply(this,arguments)||this};
_.n(Ge,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Ge.prototype,"ytComponentBehavior",void 0);_.q([_.y({}),_.x("design:type",Object)],Ge.prototype,"data",void 0);_.q([_.h({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Ge);
_.L(Ge,"ytd-donation-post-transaction-content",function(){if(lcb!==void 0)return lcb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return lcb=D},{mode:1});var JcT;var Vr=function(){return _.N.apply(this,arguments)||this};
_.n(Vr,_.N);Vr.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.q([_.y({}),_.x("design:type",Object)],Vr.prototype,"data",void 0);_.q([_.h({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Vr);
_.L(Vr,"ytd-donation-post-transaction-renderer",function(){if(JcT!==void 0)return JcT;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return JcT=D},{mode:1});var k7b;var USE;var fT=function(){return _.N.apply(this,arguments)||this};
_.n(fT,_.N);fT.prototype.computeIsStreamingProvider=function(D){return!!D.isStreamingShelf};
fT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],fT.prototype,"data",void 0);_.q([_.y({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],fT.prototype,"isStreamingProvider",void 0);
_.q([_.h({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],fT);
_.L(fT,"ytd-media-provider-renderer",function(){if(USE!==void 0)return USE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return USE=D},{mode:1});var KsT;var eA=function(){return _.N.apply(this,arguments)||this};
_.n(eA,_.N);eA.prototype.observeLightsourcePalette=function(){var D,Y=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;Y&&_.Jp(this.hostElement,Y)};
eA.prototype.observeLightsourcePalette=eA.prototype.observeLightsourcePalette;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eA.prototype,"data",void 0);
_.q([_.Gm("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eA.prototype,"observeLightsourcePalette",null);_.q([_.h({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],eA);
_.L(eA,"ytd-streaming-pop-up-dialog",function(){if(KsT!==void 0)return KsT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return KsT=D},{mode:1});var Av=function(){return _.N.apply(this,arguments)||this};
_.n(Av,_.N);Av.prototype.onPopupOpened_=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.DH().resolve(_.Yw).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Av.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Av.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"}}}}};
Av.prototype.onPopupOpened_=Av.prototype.onPopupOpened_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Qw),_.x("design:type",Object)],Av.prototype,"ytContinuationHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Av.prototype,"data",void 0);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Av.prototype,"onPopupOpened_",null);_.q([_.h({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Av);
_.L(Av,"ytd-brandconnect-popup-renderer",function(){if(k7b!==void 0)return k7b;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return k7b=D},{mode:1});var hn0;var nT=function(){return _.N.apply(this,arguments)||this};
_.n(nT,_.N);_.u=nT.prototype;_.u.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){for(var D=0;D<this.getOptionRenderers().length;D++)this.notifyPath("data.options."+D+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+D+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.u.updateSubmitButton=function(D){this.set("data.submitButton.buttonRenderer.isDisabled",!D)};
_.u.computeAlt=function(D){return _.OM(D)};
_.u.onDismissTap=function(){_.CX(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.u.getOptionRenderers=function(D){return(D=D||this.data)&&D.options?D.options.reduce(function(Y,R){R.checkboxSurveyOptionRenderer&&Y.push(R.checkboxSurveyOptionRenderer);return Y},[]):[]};
_.u.onOptionChange=function(D){var Y=this,R=!1;if(D.detail.checked)for(var Z=this.getOptionRenderers().find(function(W){return W.value===D.detail.value}),t=this.getOptionRenderers(),X=0;X<t.length;X++){var M=t[X];
this.notifyPath("data.options."+X+".checkboxSurveyOptionRenderer.checked");M.checked&&((Z==null?0:Z.isExclusiveOption)?!M.isExclusiveOption:M.isExclusiveOption)?this.set("data.options."+X+".checkboxSurveyOptionRenderer.checked",!1):M.checked&&(R=!0)}else R=this.getOptionRenderers().some(function(W,z){Y.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked");return W.checked});
this.updateSubmitButton(R)};
_.u.onSubmitTap=function(){var D=this.getOptionRenderers().filter(function(X){return X.checked});
if(D.length!==0){var Y=D.map(function(X){return X.responseEndpoint});
D=[];for(var R=1;R<Y.length;R++){var Z=void 0,t=(Z=_.A(Y[R],_.Jn))==null?void 0:Z.feedbackToken;t&&D.push(t)}Y=[Y[0]];D.length&&Y.push({extra_feedback_tokens:D});_.zA(this.hostElement,Y);_.CX(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);D=this.data&&this.data.submitActions||[];if(_.f("kevlar_command_handler_migration_killswitch"))_.Se(this.hostElement,D,this.hostElement);else for(D=_.a(D),Y=D.next();!Y.done;Y=D.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
nT.prototype.onOptionChange=nT.prototype.onOptionChange;nT.prototype.dataChanged=nT.prototype.dataChanged;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],nT.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],nT.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.q([_.v(Wep),_.x("design:type",Object)],nT.prototype,"ytdHatsSurveyBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],nT.prototype,"data",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nT.prototype,"dataChanged",null);
_.q([_.Fv("ytd-checkbox-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nT.prototype,"onOptionChange",null);_.q([_.h({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],nT);
_.L(nT,"ytd-checkbox-survey-renderer",function(){if(hn0!==void 0)return hn0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return hn0=D},{mode:1});var LsE;var mSk;var rU=function(){return _.N.apply(this,arguments)||this};
_.n(rU,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.q([_.v(CY9),_.x("design:type",Object)],rU.prototype,"ytdDismissalReasonBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],rU.prototype,"data",void 0);_.q([_.h({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],rU);
_.L(rU,"ytd-dismissal-reason-text-renderer",function(){if(mSk!==void 0)return mSk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return mSk=D},{mode:1});var qJK;var wU=function(){return _.N.apply(this,arguments)||this};
_.n(wU,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.q([_.v(CY9),_.x("design:type",Object)],wU.prototype,"ytdDismissalReasonBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wU.prototype,"data",void 0);_.q([_.h({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],wU);
_.L(wU,"ytd-dismissal-reason-video-renderer",function(){if(qJK!==void 0)return qJK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return qJK=D},{mode:1});var $Y=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n($Y,_.N);_.u=$Y.prototype;_.u.created=function(){this.selectedFeedbackTokens=new aC};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.u.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.u.onDismissalReasonSelected=function(D,Y){_.MX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(Y);this.hasReasonsSelected=!0};
_.u.onDismissalReasonDeselected=function(D,Y){_.MX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(Y);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.u.onCancelTap=function(){_.CX(this.hostElement,"yt-close-popup-action")};
_.u.onSubmitTap=function(){var D=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(D={feedback_tokens:D},_.DH().resolve(_.Yw).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}));_.CX(this.hostElement,"yt-close-popup-action")};
$Y.prototype.onDismissalReasonDeselected=$Y.prototype.onDismissalReasonDeselected;$Y.prototype.onDismissalReasonSelected=$Y.prototype.onDismissalReasonSelected;$Y.prototype.dataChanged=$Y.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$Y.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Boolean)],$Y.prototype,"hasReasonsSelected",void 0);_.q([_.y(),_.x("design:type",aC)],$Y.prototype,"selectedFeedbackTokens",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],$Y.prototype,"darkerDarkTheme",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$Y.prototype,"dataChanged",null);
_.q([_.Fv("yt-dismissal-reason-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],$Y.prototype,"onDismissalReasonSelected",null);_.q([_.Fv("yt-dismissal-reason-deselected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],$Y.prototype,"onDismissalReasonDeselected",null);_.q([_.h({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],$Y);
_.L($Y,"ytd-dismissal-follow-up-renderer",function(){if(LsE!==void 0)return LsE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return LsE=D},{mode:1});var Hk9;var vn=function(){return _.N.apply(this,arguments)||this};
_.n(vn,_.N);_.u=vn.prototype;_.u.onCheckedChange=function(){this.multiselect||_.MX(this.hostElement,"yt-feedback-single-select-changed");_.aU(this.hostElement).querySelector("#freeform").focus();_.MX(this.hostElement,"yt-refit")};
_.u.showTextBox=function(D,Y){return D&&Y};
_.u.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))};
_.u.updateDataCheckedFromBinding=function(D){this.set("data.checked",D.detail.value)};
_.u.updateDataResultTextFromBinding=function(D){this.set("data.resultText",D.detail.value)};
vn.prototype.dataChanged=vn.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vn.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],vn.prototype,"multiselect",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vn.prototype,"dataChanged",null);
_.q([_.h({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],vn);
_.L(vn,"ytd-feedback-option-renderer",function(){if(Hk9!==void 0)return Hk9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Hk9=D},{mode:1});var xS0;var oG=function(){return _.N.apply(this,arguments)||this};
_.n(oG,_.N);oG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
oG.prototype.onSingleSelectCheckedChanged=function(D){D=_.cG(D);for(var Y=0;Y<this.data.options.length;Y++)if(D.data!==_.A(this.data.options[Y],abh)){var R="data.options."+Y+".feedbackOptionRenderer.checked";this.notifyPath(R);this.set(R,!1)}};
oG.prototype.onSingleSelectCheckedChanged=oG.prototype.onSingleSelectCheckedChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],oG.prototype,"data",void 0);
_.q([_.Fv("yt-feedback-single-select-changed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],oG.prototype,"onSingleSelectCheckedChanged",null);_.q([_.h({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],oG);
_.L(oG,"ytd-feedback-question-renderer",function(){if(xS0!==void 0)return xS0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xS0=D},{mode:1});var P8z;var b7=function(){return _.N.apply(this,arguments)||this};
_.n(b7,_.N);b7.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
b7.prototype.getSelectedFeedbackResults=function(){for(var D={},Y=0;Y<this.data.questions.length;Y++)for(var R=_.A(this.data.questions[Y],uhE),Z=0;Z<R.options.length;Z++){var t=_.A(R.options[Z],abh);t&&t.checked&&(D[t.optionKey]=t.resultText)}return D};
b7.prototype.onKeyUp=function(){var D=this;_.S7(_.yc,function(){_.MX(D.hostElement,"yt-refit")});
_.yc.start()};
b7.prototype.submitSurvey=function(){var D=this.getSelectedFeedbackResults();Object.keys(D).length>0&&this.data.submitFeedbackEndpoint&&(D={survey_results:D,is_feedback_token_unencrypted:!0},_.DH().resolve(_.Yw).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],b7.prototype,"data",void 0);_.q([_.h({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],b7);
_.L(b7,"ytd-feedback-survey-renderer",function(){if(P8z!==void 0)return P8z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return P8z=D},{mode:1});var QmK;var BhE;var yr=function(){return _.N.apply(this,arguments)||this};
_.n(yr,_.N);yr.prototype.computeAlt=function(D){return _.OM(D)};
yr.prototype.submitResponse=function(){var D,Y;(D=this.data)!=null&&D.feedbackToken&&((Y=this.data)==null?void 0:Y.nextStageIndex)!==void 0&&(_.WC(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.WC(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
yr.prototype.onClick=function(){this.submitResponse()};
yr.prototype.onClick=yr.prototype.onClick;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yr.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],yr.prototype,"vertical",void 0);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yr.prototype,"onClick",null);
_.q([_.h({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],yr);
_.L(yr,"ytd-single-select-answer-option-renderer",function(){if(BhE!==void 0)return BhE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return BhE=D},{mode:1});var p5z;var Nz=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return D};
_.n(Nz,_.N);Nz.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Nz.prototype.dataChanged=function(){var D,Y;this.vertical=((Y=(D=this.data)==null?void 0:D.answerOrientation)!=null?Y:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Nz.prototype.submitFeedback=function(D){var Y;((Y=this.data)==null?0:Y.responseEndpoint)&&D&&_.zA(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[D]}])};
Nz.prototype.dataChanged=Nz.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Nz.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],Nz.prototype,"eventForwardingBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Nz.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Nz.prototype,"vertical",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Nz.prototype,"darkerDarkTheme",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nz.prototype,"dataChanged",null);_.q([_.h({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Nz);
_.L(Nz,"ytd-single-select-question-renderer",function(){if(p5z!==void 0)return p5z;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return p5z=D},{mode:1});var l7=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return D};
_.n(l7,_.N);_.u=l7.prototype;_.u.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"}}}};
_.u.dataChanged=function(){this.jumpToStage(0)};
_.u.jumpToStage=function(D){var Y,R;if((Y=this.data)==null?0:(R=Y.stages)==null?0:R[D])this.currentStage=this.data.stages[D],this.refitAfterRender()};
_.u.computeAlt=function(D){return _.OM(D)};
_.u.computeSimpleMessage=function(D){var Y;return(Y=_.A(D,W$I))==null?void 0:Y.messageText};
_.u.computeHideDismiss=function(D){var Y;return(Y=_.A(D,hxz))==null?void 0:Y.hideParentDismissButton};
_.u.onDismissTap=function(){_.CX(this.hostElement,"yt-close-popup-action");_.A(this.currentStage,W$I)||this.data.dismissalEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.u.refitAfterRender=function(){var D=this;_.cy(this,function(){_.MX(D.hostElement,"yt-refit")})};
l7.prototype.dataChanged=l7.prototype.dataChanged;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],l7.prototype,"eventForwardingBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],l7.prototype,"ytActionHandlerBehavior",void 0);
_.q([_.v(Wep),_.x("design:type",Object)],l7.prototype,"ytdHatsSurveyBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],l7.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],l7.prototype,"currentStage",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l7.prototype,"dataChanged",null);_.q([_.h({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],l7);
_.L(l7,"ytd-multi-stage-survey-renderer",function(){if(QmK!==void 0)return QmK;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return QmK=D},{mode:1});var Ev9;var Jv=function(){return _.N.apply(this,arguments)||this};
_.n(Jv,_.N);Jv.prototype.computeAlt=function(D){return _.OM(D)};
Jv.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.DH().resolve(_.Yw).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.CX(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.uou(!1)))};
Jv.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Jv.prototype.onTap=Jv.prototype.onTap;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Jv.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Jv.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],Jv.prototype,"vertical",void 0);
_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jv.prototype,"onTap",null);_.q([_.h({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Jv);
_.L(Jv,"ytd-single-option-survey-option-renderer",function(){if(Ev9!==void 0)return Ev9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ev9=D},{mode:1});var gvz;var kY=function(){return _.N.apply(this,arguments)||this};
_.n(kY,_.N);_.u=kY.prototype;_.u.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){var D,Y;this.vertical=(((D=this.data)==null?void 0:(Y=D.surveyOrientation)==null?void 0:Y.type)||"HORIZONTAL")==="VERTICAL"};
_.u.computeAlt=function(D){return _.OM(D)};
_.u.onDismissTap=function(){_.CX(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.DH().resolve(_.Yw).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.uou(!1))};
kY.prototype.dataChanged=kY.prototype.dataChanged;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],kY.prototype,"eventForwardingBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(Wep),_.x("design:type",Object)],kY.prototype,"ytdHatsSurveyBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],kY.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kY.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],kY.prototype,"vertical",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kY.prototype,"dataChanged",null);_.q([_.h({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],kY);
_.L(kY,"ytd-single-option-survey-renderer",function(){if(gvz!==void 0)return gvz;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return gvz=D},{mode:1});var dSt;var U5=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(U5,_.N);U5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
U5.prototype.onDismissTap=function(){_.CX(this.hostElement,"yt-close-popup-action")};
U5.prototype.onNavigate=function(){_.CX(this.hostElement,"yt-close-popup-action")};
U5.prototype.onNavigate=U5.prototype.onNavigate;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],U5.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],U5.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],U5.prototype,"darkerDarkTheme",void 0);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U5.prototype,"onNavigate",null);_.q([_.h({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],U5);
_.L(U5,"ytd-survey-follow-up-renderer",function(){if(dSt!==void 0)return dSt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return dSt=D},{mode:1});var iku;var Ok0;var ccu;var KT=function(){var D=_.N.apply(this,arguments)||this;D.polymer2="Element"in Polymer;return D};
_.n(KT,_.N);_.u=KT.prototype;_.u.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.u.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.u.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.u.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("minutes-changed",this.minutes))};
_.u.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("seconds-changed",this.seconds))};
_.u.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.u.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
KT.prototype.secondsChangedForBinding=KT.prototype.secondsChangedForBinding;KT.prototype.minutesChangedForBinding=KT.prototype.minutesChangedForBinding;KT.prototype.secondsChanged=KT.prototype.secondsChanged;_.q([_.y(),_.x("design:type",String)],KT.prototype,"minutes",void 0);_.q([_.y(),_.x("design:type",String)],KT.prototype,"seconds",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],KT.prototype,"polymer2",void 0);
_.q([_.fr("#seconds"),_.x("design:type",Object)],KT.prototype,"secondsEl",void 0);_.q([_.Gm("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KT.prototype,"secondsChanged",null);_.q([_.Gm("minutes"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KT.prototype,"minutesChangedForBinding",null);
_.q([_.Gm("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KT.prototype,"secondsChangedForBinding",null);_.q([_.Lr({is:"yt-timestamp-input",disableElementRegistration:!0})],KT);
_.L(KT,"yt-timestamp-input",function(){if(ccu===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Ok0===void 0&&(Ok0=document.createElement("template"));var Z=Ok0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ccu=D}D=ccu;return D},{mode:2});var hv=function(){return _.N.apply(this,arguments)||this};
_.n(hv,_.N);_.u=hv.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20205_scroller.dialogElement=this.hostElement.parentNode};
_.u.dataChanged=function(){var D=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.XU().getPlayerPromise().then(function(Y){Y=Y.getCurrentTime();D.minutes=Math.floor(Y/60).toString();D.seconds=(Math.floor(Y)%60).toString()})};
_.u.onTapSubmit=function(D){D.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(D={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(D.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(D.minutes=this.minutes,D.seconds=this.seconds),_.DH().resolve(_.Yw).resolveCommand(this.serviceEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.u.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.u.onYtServiceRequestCompleted=function(D,Y){Y=Y.actions;if(Array.isArray(Y))for(var R=0,Z=Y.length;R<Z;R++)_.A(Y[R],_.bS)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(Y[R]))};
_.u.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.u.toggleSubmitButton=function(D){this.set("submitButton.isDisabled",!D)};
_.u.handleInput=function(){var D=this.issueType,Y=this.affiliation,R=this.minutes,Z=this.seconds;R=!this.showTimestamp||!!R&&!!Z;this.toggleSubmitButton(!!this.descriptionText&&!!D&&!!Y&&R)};
_.u.computeServiceEndpoint=function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)};
_.u.computeSubmitButton=function(D){(D=this.get("submitButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.u.computeShowTimestamp=function(D){return!!D};
_.u.onValueChangedForIssueType=function(D){this.issueType=D.detail.value};
_.u.onValueChangedForAffiliation=function(D){this.affiliation=D.detail.value};
_.u.updateDescriptionTextFromBinding=function(D){this.descriptionText=D.detail.value};
_.u.updateFullNameTextFromBinding=function(D){this.fullNameText=D.detail.value};
_.u.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.u.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
hv.prototype.handleInput=hv.prototype.handleInput;hv.prototype.onYtServiceRequestError=hv.prototype.onYtServiceRequestError;hv.prototype.onYtServiceRequestCompleted=hv.prototype.onYtServiceRequestCompleted;hv.prototype.onYtServiceRequestSent=hv.prototype.onYtServiceRequestSent;hv.prototype.dataChanged=hv.prototype.dataChanged;_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],hv.prototype,"ytOpenPopupBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.q([_.fr("#scroller"),_.x("design:type",Object)],hv.prototype,"JSC$20205_scroller",void 0);_.q([_.fr("#description"),_.x("design:type",HTMLInputElement)],hv.prototype,"description",void 0);_.q([_.fr("#full-name"),_.x("design:type",Object)],hv.prototype,"fullName",void 0);_.q([_.y(),_.x("design:type",Object)],hv.prototype,"data",void 0);
_.q([_.y({computed:"computeShowTimestamp(data.timestampLabel)"}),_.x("design:type",Boolean)],hv.prototype,"showTimestamp",void 0);_.q([_.y({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.x("design:type",Object)],hv.prototype,"serviceEndpoint",void 0);_.q([_.y({computed:"computeSubmitButton(data)"}),_.x("design:type",Object)],hv.prototype,"submitButton",void 0);_.q([_.y(),_.x("design:type",String)],hv.prototype,"descriptionText",void 0);
_.q([_.y(),_.x("design:type",Number)],hv.prototype,"issueType",void 0);_.q([_.y(),_.x("design:type",Number)],hv.prototype,"affiliation",void 0);_.q([_.y(),_.x("design:type",String)],hv.prototype,"fullNameText",void 0);_.q([_.y(),_.x("design:type",String)],hv.prototype,"minutes",void 0);_.q([_.y(),_.x("design:type",String)],hv.prototype,"seconds",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hv.prototype,"dataChanged",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],hv.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],hv.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hv.prototype,"onYtServiceRequestError",null);_.q([_.Gm("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hv.prototype,"handleInput",null);_.q([_.h({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],hv);
_.L(hv,"ytd-legal-report-details-form-renderer",function(){if(iku!==void 0)return iku;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return iku=D},{mode:1});var DNp;var LT=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return D};
_.n(LT,_.N);LT.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
LT.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var D=this.formRenderer.getForm();D&&this.data.submitEndpoint&&(_.DH().resolve(_.Yw).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},D,{element:this.hostElement})}),_.CX(this.hostElement,"yt-close-popup-action"))}};
LT.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.CX(this.hostElement,"yt-close-popup-action"))};
LT.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
LT.prototype.onPopupClosed=LT.prototype.onPopupClosed;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],LT.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],LT.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);
_.q([_.fr("yt-form-renderer"),_.x("design:type",Object)],LT.prototype,"formRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],LT.prototype,"data",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],LT.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-form-popup-content",disableElementRegistration:!0})],LT);
_.L(LT,"ytd-form-popup-content",function(){if(DNp!==void 0)return DNp;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return DNp=D},{mode:1});var YQI;var ml=function(){return _.N.apply(this,arguments)||this};
_.n(ml,_.N);ml.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ml.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ml.prototype.onPopupOpened=function(){_.MX(this.hostElement,"yt-invalidate-popup-tabbables")};
ml.prototype.onYtServiceRequestCompleted=function(D,Y){Y.data&&Y.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.MX(this.hostElement,"yt-invalidate-popup-tabbables"))};
ml.prototype.onYtServiceRequestCompleted=ml.prototype.onYtServiceRequestCompleted;ml.prototype.onPopupOpened=ml.prototype.onPopupOpened;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],ml.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],ml.prototype,"data",void 0);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ml.prototype,"onPopupOpened",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],ml.prototype,"onYtServiceRequestCompleted",null);_.q([_.h({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],ml);
_.L(ml,"ytd-form-popup-renderer",function(){if(YQI!==void 0)return YQI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return YQI=D},{mode:1});var Rah;var qz=function(){var D=_.N.apply(this,arguments)||this;D.isLoading=!1;return D};
_.n(qz,_.N);_.u=qz.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");XOT(this.hostElement)};
_.u.onYtServiceRequestSent=function(){this.isLoading=!0};
_.u.onYtServiceRequestCompleted=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.u.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Se(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.u.closePopupHandler=function(){this.fireOnCloseActions()};
_.u.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var D=this.get("data.headerImage.thumbnails");D&&(D=_.MW(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")")}};
_.u.onYtNavigate=function(D){(D=_.cG(D))&&D.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
qz.prototype.onYtNavigate=qz.prototype.onYtNavigate;qz.prototype.onHeaderImageChanged=qz.prototype.onHeaderImageChanged;qz.prototype.closePopupHandler=qz.prototype.closePopupHandler;qz.prototype.onYtServiceRequestCompleted=qz.prototype.onYtServiceRequestCompleted;qz.prototype.onYtServiceRequestSent=qz.prototype.onYtServiceRequestSent;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],qz.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qz.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qz.prototype,"isLoading",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLDivElement)],qz.prototype,"header",void 0);_.q([_.fr("#confirm-button"),_.x("design:type",_.vM)],qz.prototype,"confirmButton",void 0);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],qz.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],qz.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],qz.prototype,"closePopupHandler",null);_.q([_.Gm("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qz.prototype,"onHeaderImageChanged",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],qz.prototype,"onYtNavigate",null);
_.q([_.h({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],qz);
_.L(qz,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Rah!==void 0)return Rah;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Rah=D},{mode:1});var Zut;var Hn=function(){var D=_.N.apply(this,arguments)||this;D.isLoading=!1;return D};
_.n(Hn,_.N);_.u=Hn.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);XOT(this.hostElement)};
_.u.onYtServiceRequestCompleted=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.u.onYtServiceRequestError=function(D){_.iI(this.hostElement,D.detail.error.message)};
_.u.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.u.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.CX(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.u.onDataChanged=function(){this.isLoading=!1;var D=this.get("data.headerImage.thumbnails");D&&(D=_.MW(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")");D=_.K2();var Y=_.Ud(),R=this.get("data.trackingParams");R&&Y&&D&&_.Qk(D,Y,_.oT(R))};
_.YF.Object.defineProperties(Hn.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Hn.prototype.onDataChanged=Hn.prototype.onDataChanged;Hn.prototype.onDomChange=Hn.prototype.onDomChange;Hn.prototype.onYtServiceRequestError=Hn.prototype.onYtServiceRequestError;Hn.prototype.onYtServiceRequestCompleted=Hn.prototype.onYtServiceRequestCompleted;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Hn.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Hn.prototype,"isLoading",void 0);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hn.prototype,"hasDescription",null);_.q([_.fr("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],Hn.prototype,"scrollable",void 0);_.q([_.fr("#header"),_.x("design:type",HTMLElement)],Hn.prototype,"header",void 0);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hn.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hn.prototype,"onYtServiceRequestError",null);
_.q([_.Fv("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hn.prototype,"onDomChange",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hn.prototype,"onDataChanged",null);_.q([_.h({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Hn);
_.L(Hn,"ytd-gaming-account-link-setting-renderer",function(){if(Zut!==void 0)return Zut;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Zut=D},{mode:1});var t4K;var syb;var xY=function(){var D=_.N.apply(this,arguments)||this;D.isHeader=!1;D.getEndpointForm=function(){return Z8p(D.data)};
return D};
_.n(xY,_.N);_.u=xY.prototype;_.u.triggerHintActions=function(){var D=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var Y=_.WC(D.hostElement,"yt-get-opened-popups-action");!(Y&&Y.length===1?Y[0]:[]).some(function(R){R=R.openPopupAction.popupType;return R==="SURVEY"||R==="MEALBAR"||R==="HINT"})&&D.data.hintActions&&D.guideOpened&&(_.Se(D.hostElement,D.data.hintActions,D.hostElement),D.data.hintActions=void 0)})};
_.u.getBadgeIconType=function(D){return D&&D.liveBroadcasting?"live":null};
_.u.onDown=function(){this.interaction.triggerDown()};
_.u.onUp=function(){this.interaction.triggerUp()};
_.u.onTap=function(D){if(this.data.serviceEndpoint){var Y;_.f("shorts_controller_retrieve_seedless_sequence_v2")&&((Y=_.A(this.data.serviceEndpoint,_.$I))==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):RU9(this.data.serviceEndpoint,this);D.preventDefault()}else this.data.navigationEndpoint&&!_.Yc(_.O$(D),this.hostElement,["A".toString()])&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.u.computeActive=function(D,Y){if(!D)return!1;var R=D.navigationEndpoint;D=D.serviceEndpoint;if(!R&&!D||!Y)return!1;if(R){D=(D=_.eI(Y))&&["subscriptions","filteredsubscriptions"].includes(D);if(_.A(R,_.A6)&&_.A(Y,_.A6)&&!D){var Z=_.A(R,_.A6).browseId;Y=_.A(Y,_.A6).browseId;return Z!==void 0&&Y!==void 0&&(Z===Y||Z==="VLWL"&&Y==="FEwatch_later"||Z==="FEwatch_later"&&Y==="VLWL")}var t;R=(t=_.A(R.commandMetadata,_.GA))==null?void 0:t.url;Y=(Z=_.A(Y.commandMetadata,_.GA))==null?void 0:Z.url;return!(!R||
!Y||R!==Y&&R!==_.zZ(Y))}return this.isActiveShortsTab(D,Y)};
_.u.isActiveShortsTab=function(D,Y){Y=!!_.A(Y,_.$I)||!!_.A(Y,_.Ly);return(!!_.A(D,_.$I)||!!_.A(D,_.Ly))&&Y};
_.u.computeIsPrimary=function(D){return!!D};
_.YF.Object.defineProperties(xY.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 D=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&D)return D}}});
xY.prototype.onTap=xY.prototype.onTap;xY.prototype.onUp=xY.prototype.onUp;xY.prototype.onDown=xY.prototype.onDown;xY.prototype.triggerHintActions=xY.prototype.triggerHintActions;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],xY.prototype,"componentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xY.prototype,"rendererBehavior",void 0);_.q([_.v(_.tV.YtTaskEmitterBehavior),_.x("design:type",Object)],xY.prototype,"taskEmitterBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],xY.prototype,"activeEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],xY.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],xY.prototype,"guideOpened",void 0);_.q([_.y(),_.x("design:type",String)],xY.prototype,"type",void 0);_.q([_.fr("yt-interaction"),_.x("design:type",Object)],xY.prototype,"interaction",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xY.prototype,"isHeader",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data","activeEndpoint"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xY.prototype,"active",null);_.q([_.y({reflectToAttribute:!0}),_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xY.prototype,"isPrimary",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.count","data.presentationStyle","data.badges.*"),_.x("design:type",String),_.x("design:paramtypes",[])],xY.prototype,"lineEndStyle",null);
_.q([_.b("lineEndStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],xY.prototype,"ariaLabel",null);_.q([_.Gm("data.hintActions","guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"triggerHintActions",null);_.q([_.Fv("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"onDown",null);
_.q([_.Fv("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xY.prototype,"onUp",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xY.prototype,"onTap",null);_.q([_.h({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],xY);
_.L(xY,"ytd-guide-entry-renderer",function(){if(syb!==void 0)return syb;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return syb=D},{mode:1});var Pn=function(){var D=_.N.apply(this,arguments)||this;D.userToggled=!1;return D};
_.n(Pn,_.N);_.u=Pn.prototype;_.u.getItemsPath=function(){return"data.expandableItems"};
_.u.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.u.onExpanderItemTapped=function(D){var Y=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.f("kevlar_guide_expandable_items_killswitch")&&_.cy(this,function(){_.pq(Y.expandableItems)});
D.preventDefault()};
_.u.onCollapserItemTapped=function(D){var Y=this;this._setExpanded(!1);this.userToggled=!0;D.preventDefault();this.expandableItems&&!_.f("kevlar_guide_collapsible_items_killswitch")&&_.cy(this,function(){_.Bg(Y.hostElement)})};
_.u.observeActiveEndpoint=function(){for(var D=this.activeEndpoint,Y=this.data,R=this.expandableItems.children,Z=0,t=R.length;Z<t;Z++)R[Z].activeEndpoint=D;Y&&Y.autoExpandCommand&&D&&!this.userToggled&&(R=this.data.autoExpandCommand,Y=!(!_.A(R,_.A6)||!_.A(D,_.A6)||_.A(R,_.A6).browseId!==_.A(D,_.A6).browseId),D=this.get("commandMetadata.webCommandMetadata.url",D),R=this.get("commandMetadata.webCommandMetadata.url",R),Y=Y||!!(D&&R&&D.includes(R)),this._setExpanded(Y),Y&&this.ytLazyListBehavior.fillRemainingListItems())};
Pn.prototype.observeActiveEndpoint=Pn.prototype.observeActiveEndpoint;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],Pn.prototype,"ytLazyListBehavior",void 0);_.q([_.fr("#expandable-items"),_.x("design:type",HTMLElement)],Pn.prototype,"expandableItems",void 0);
_.q([_.y(),_.x("design:type",Object)],Pn.prototype,"data",void 0);_.q([_.y({readOnly:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],Pn.prototype,"expanded",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],Pn.prototype,"initialCount",void 0);_.q([_.y(),_.x("design:type",Object)],Pn.prototype,"activeEndpoint",void 0);_.q([_.Gm("data","activeEndpoint","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pn.prototype,"observeActiveEndpoint",null);
_.q([_.h({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Pn);
_.L(Pn,"ytd-guide-collapsible-entry-renderer",function(){if(t4K!==void 0)return t4K;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return t4K=D},{mode:_.zD("kevlar_poly_si_batch_j079")?1:2});var XdK;var u6h;var Qr=function(){var D=_.N.apply(this,arguments)||this;D.allVideosCount=0;D.renderGuideEntry=!1;return D};
_.n(Qr,_.N);Qr.prototype.observeRenderEntry=function(){var D;this.renderGuideEntry=!((D=this.data)==null||!D.alwaysShow)||!!this.allVideosCount};
Qr.prototype.observeRenderEntry=Qr.prototype.observeRenderEntry;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Qr.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Qr.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Qr.prototype,"activeEndpoint",void 0);_.q([_.y({selector:_.d8S}),_.x("design:type",Object)],Qr.prototype,"allVideosCount",void 0);
_.q([_.y(),_.x("design:type",Object)],Qr.prototype,"renderGuideEntry",void 0);_.q([_.rd("allVideosCount","data.alwaysShow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qr.prototype,"observeRenderEntry",null);_.q([_.h({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Qr);
_.L(Qr,"ytd-guide-downloads-entry-renderer",function(){if(u6h===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);u6h=D}D=u6h;return D},{mode:1});var Bn=function(){var D=_.N.apply(this,arguments)||this;D.youtab=_.f("web_enable_youtab");D.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return D};
_.n(Bn,_.N);_.u=Bn.prototype;_.u.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]]"}}}}}};
_.u.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var D=this.sectionItems.children,Y=0,R=D.length;Y<R;Y++)D[Y].activeEndpoint=this.activeEndpoint}};
_.u.handleAddToGuideSectionAction=function(D){var Y=_.A(D,vZK);if(Y&&this.data&&(D=Y.items,Y=Y.handlerData,D&&Y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Y)>-1)){Y=0;for(var R=D.length;Y<R;Y++)D[Y].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,D[Y])}};
_.u.handleRemoveFromGuideSectionAction=function(D){var Y=_.A(D,oZE);Y&&this.data&&(D=Y.guideEntryId,Y=Y.handlerData,D&&Y&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Y)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(D,this.data.sectionItems),this.removeFromCollapsedSection(D,this.data.sectionItems)))};
_.u.removeFromExpandedSection=function(D,Y){D=this.getEntryIndexMatchingId(D,Y);D!==-1&&this.splice("data.sectionItems",D,1)};
_.u.removeFromCollapsedSection=function(D,Y){var R=Y.findIndex(function(Z){return!!_.A(Z,Q8k)});
R&&R!==-1&&Y[R]&&_.A(Y[R],Q8k)&&(Y=_.A(Y[R],Q8k).expandableItems)&&(D=this.getEntryIndexMatchingId(D,Y),D!==-1&&this.splice("data.sectionItems."+R+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.u.getEntryIndexMatchingId=function(D,Y){var R=this;return Y.findIndex(function(Z){return R.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===D})};
Bn.prototype.activeEndpointChanged=Bn.prototype.activeEndpointChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Bn.prototype,"actionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#section-items"),_.x("design:type",HTMLDivElement)],Bn.prototype,"sectionItems",void 0);
_.q([_.fr("#header-entry"),_.x("design:type",Object)],Bn.prototype,"headerEntry",void 0);_.q([_.y(),_.x("design:type",Object)],Bn.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Bn.prototype,"activeEndpoint",void 0);_.q([_.y(),_.x("design:type",Object)],Bn.prototype,"youtab",void 0);_.q([_.Gm("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bn.prototype,"activeEndpointChanged",null);
_.q([_.h({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Bn);
_.L(Bn,"ytd-guide-collapsible-section-entry-renderer",function(){if(XdK===void 0){var D=document.createElement("template");_.w(D,'\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="[[youtab]]" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);XdK=D}D=XdK;return D},{mode:1});var ank;var M4h;var pT=function(){var D=_.N.apply(this,arguments)||this;D.modernTypography=_.f("web_modern_typography");D.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 D};
_.n(pT,_.N);_.u=pT.prototype;
_.u.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}}}}};
_.u.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var D=_.WC(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);D&&D.length===1&&D[0]&&_.WC(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.u.handleResetChannelUnreadCountCommand=function(D){var Y;(D=(Y=_.A(D,y$I))==null?void 0:Y.channelId)&&this.data&&this.data.items&&(Y=this.getPathToEntryMatchingId(D))&&(this.set(Y+".guideEntryRenderer.count",0),this.set(Y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.u.handleResetSubscriptionsUnreadDotCommand=function(D){var Y,R=(Y=_.A(D,NtK))==null?void 0:Y.targetId,Z;R&&(Z=this.data)!=null&&Z.items&&(D=this.data.items.findIndex(function(t){var X;return((X=t.guideEntryRenderer)==null?void 0:X.targetId)===R}),D<0||this.set("data.items."+D+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.u.getPathToEntryMatchingId=function(D){if(this.data&&this.data.items){var Y=this.getEntryIndexMatchingId(D,this.data.items);if(Y>-1)return"data.items."+Y;for(var R=0;R<this.data.items.length;R++)if(Y=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[R]))if(Y=this.getEntryIndexMatchingId(D,Y),Y>-1)return"data.items."+R+".guideCollapsibleEntryRenderer.expandableItems."+Y}};
_.u.handleAddToGuideSectionAction=function(D){var Y=this;if(_.A(D,vZK)){var R=_.A(D,vZK).items;D=_.A(D,vZK).handlerData;var Z,t;if(R&&D&&((Z=this.data)==null?void 0:(t=Z.handlerDatas)==null?void 0:t.indexOf(D))>-1){R=R.filter(function(M){return(M=Y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",M))&&!Y.isGuideItemPresent(M)});
var X;if(D==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((X=this.data)==null?0:X.items)&&(Z=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),Z>-1)){this.splice.apply(this,["data.items",Z+1,0].concat(_.oK(R)));return}this.unshift.apply(this,["data.items"].concat(_.oK(R)))}}};
_.u.isGuideItemPresent=function(D){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(D,this.data.items)!==-1)return!0;var Y=this.data.items.find(function(R){return!!R.guideCollapsibleEntryRenderer});
if((Y==null?0:Y.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(D,Y.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.u.getEntryIndexMatchingId=function(D,Y){var R=this;return Y.findIndex(function(Z){return R.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===D})};
_.u.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(D,Y){var R=this;return Y.findIndex(function(Z){return R.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===D})};
_.u.handleRemoveFromGuideSectionAction=function(D){if(_.A(D,oZE)){var Y=_.A(D,oZE).guideEntryId;D=_.A(D,oZE).handlerData;var R,Z;Y&&D&&((R=this.data)==null?void 0:(Z=R.handlerDatas)==null?void 0:Z.indexOf(D))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(Y,this.data.items),this.removeFromCollapsedSection(Y,this.data.items))}};
_.u.removeFromExpandedSection=function(D,Y){D=this.getEntryIndexMatchingId(D,Y);D!==-1&&this.splice("data.items",D,1)};
_.u.removeFromCollapsedSection=function(D,Y){var R=Y.findIndex(function(Z){return!!Z.guideCollapsibleEntryRenderer});
R!==-1&&(Y=Y[R].guideCollapsibleEntryRenderer.expandableItems)&&(D=this.getEntryIndexMatchingId(D,Y),D!==-1&&this.splice("data.items."+R+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.u.activeEndpointChanged=function(){for(var D=_.aU(this.hostElement).querySelector("#items").children,Y=0,R=D.length;Y<R;Y++)D[Y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.u.guideOpenedChanged=function(){for(var D=_.aU(this.hostElement).querySelector("#items").children,Y=0,R=D.length;Y<R;Y++)D[Y].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
pT.prototype.guideOpenedChanged=pT.prototype.guideOpenedChanged;pT.prototype.activeEndpointChanged=pT.prototype.activeEndpointChanged;pT.prototype.persistentGuideChanged=pT.prototype.persistentGuideChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],pT.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],pT.prototype,"ytLazyListBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],pT.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],pT.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],pT.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],pT.prototype,"modernTypography",void 0);_.q([_.y(),_.x("design:type",String)],pT.prototype,"type",void 0);_.q([_.y({value:20}),_.x("design:type",Number)],pT.prototype,"initialCount",void 0);_.q([_.y({value:10}),_.x("design:type",Number)],pT.prototype,"targetFramerate",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],pT.prototype,"autoFill",void 0);_.q([_.y({value:50}),_.x("design:type",Number)],pT.prototype,"renderDelay",void 0);
_.q([_.Gm("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pT.prototype,"persistentGuideChanged",null);_.q([_.rd("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pT.prototype,"activeEndpointChanged",null);_.q([_.rd("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pT.prototype,"guideOpenedChanged",null);
_.q([_.h({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],pT);
_.L(pT,"ytd-guide-section-renderer",function(){if(M4h!==void 0)return M4h;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return M4h=D},{mode:_.zD("kevlar_poly_si_batch_j073")?1:2});var Cvk;var E5=function(){return _.N.apply(this,arguments)||this};
_.n(E5,_.N);_.YF.Object.defineProperties(E5.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],E5.prototype,"rendererBehaviors",void 0);_.q([_.y(),_.x("design:type",Object)],E5.prototype,"data",void 0);_.q([_.y(),_.b("data.signInButton.buttonRenderer.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],E5.prototype,"alignByText",null);_.q([_.h({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],E5);
_.L(E5,"ytd-guide-signin-promo-renderer",function(){if(Cvk===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);Cvk=D}D=Cvk;return D},{mode:1});var gU=function(){var D=_.N.apply(this,arguments)||this;D.showFooter=!1;return D};
_.n(gU,_.N);gU.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}}}}};
gU.prototype.attached=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1){Y=_.DH().resolve(_.cD(_.Q3));if(!Y)return R.jumpTo(0);Y.setGuideData(D.hostElement);return R.yield(0,3)}D.ytLazyListBehavior.initialCount=2;return R.return()})};
gU.prototype.onMouseExit=function(){_.f("web_guide_hover_expansion")&&_.WC(this.hostElement,"yt-guide-mouseleaved",[])};
gU.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
gU.prototype.dataChanged=gU.prototype.dataChanged;gU.prototype.onMouseExit=gU.prototype.onMouseExit;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],gU.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.u6.YtLazyListBehavior),_.x("design:type",Object)],gU.prototype,"ytLazyListBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],gU.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],gU.prototype,"showFooter",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],gU.prototype,"autoFill",void 0);_.q([_.Fv("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gU.prototype,"onMouseExit",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gU.prototype,"dataChanged",null);_.q([_.h({is:"ytd-guide-renderer",disableElementRegistration:!0})],gU);
_.L(gU,"ytd-guide-renderer",function(){if(ank!==void 0)return ank;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ank=D},{mode:_.zD("kevlar_poly_si_batch_j073")?1:2});var WrE;var dU=function(){var D=_.N.apply(this,arguments)||this;D.systemIcons=_.f("kevlar_system_icons");D.frostedGlass=_.f("web_frosted_glass");D.getEndpointForm=function(){return Z8p(D.data)};
return D};
_.n(dU,_.N);_.u=dU.prototype;_.u.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.u.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.OM(this.data.formattedTitle))};
_.u.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.u.onDown=function(){this.interaction.triggerDown()};
_.u.onUp=function(){this.interaction.triggerUp()};
_.u.onTap=function(D){if(this.data.serviceEndpoint){var Y;_.f("shorts_controller_retrieve_seedless_sequence_v2")&&((Y=_.A(this.data.serviceEndpoint,_.$I))==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):RU9(this.data.serviceEndpoint,this);D.preventDefault()}else{var R;((R=this.data)==null?0:R.navigationEndpoint)&&!_.Yc(_.O$(D),this.hostElement,["A".toString()])&&_.MX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.u.computeActive=function(D,Y){if(!D)return!1;var R=D.navigationEndpoint;D=D.serviceEndpoint;if(!R&&!D||!Y)return!1;if(R){D=_.A(R,_.A6);var Z=_.A(Y,_.A6);if(D&&Z)return D.browseId===Z.browseId&&D.params===Z.params;var t;R=(t=_.A(R.commandMetadata,_.GA))==null?void 0:t.url;var X;Y=(X=_.A(Y.commandMetadata,_.GA))==null?void 0:X.url;return!(!R||!Y||R!==Y&&R!==_.zZ(Y))}return this.isActiveShortsTab(D,Y)};
_.u.isActiveShortsTab=function(D,Y){Y=!!_.A(Y,_.$I)||!!_.A(Y,_.Ly);return(!!_.A(D,_.$I)||!!_.A(D,_.Ly))&&Y};
_.u.computeTitle=function(D,Y){return Y?"":_.OM(D)};
_.YF.Object.defineProperties(dU.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
dU.prototype.onTap=dU.prototype.onTap;dU.prototype.onUp=dU.prototype.onUp;dU.prototype.onDown=dU.prototype.onDown;dU.prototype.onActiveStateChange=dU.prototype.onActiveStateChange;dU.prototype.dataChanged=dU.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],dU.prototype,"ytComponentBehavior",void 0);
_.q([_.v(_.kl),_.x("design:type",Object)],dU.prototype,"ironButtonState",void 0);_.q([_.y(),_.x("design:type",Object)],dU.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],dU.prototype,"activeEndpoint",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],dU.prototype,"noLabels",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.x("design:type",Boolean)],dU.prototype,"isActive",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],dU.prototype,"systemIcons",void 0);_.q([_.fr("yt-interaction"),_.x("design:type",Object)],dU.prototype,"interaction",void 0);_.q([_.b("isActive"),_.x("design:type",Object),_.x("design:paramtypes",[])],dU.prototype,"ariaSelected",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],dU.prototype,"frostedGlass",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dU.prototype,"dataChanged",null);_.q([_.Gm("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dU.prototype,"onActiveStateChange",null);_.q([_.Fv("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dU.prototype,"onDown",null);
_.q([_.Fv("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dU.prototype,"onUp",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dU.prototype,"onTap",null);_.q([_.h({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],dU);
_.L(dU,"ytd-mini-guide-entry-renderer",function(){if(WrE!==void 0)return WrE;var D=document.createElement("template");_.w(D,'\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" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\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="4" 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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return WrE=D},{mode:_.zD("kevlar_poly_si_batch_j063")?1:2});var za9;var i7=function(){var D=_.N.apply(this,arguments)||this;D.allVideosCount=0;D.noLabels=_.f("kevlar_mini_guide_no_labels");D.frostedGlass=_.f("web_frosted_glass");return D};
_.n(i7,_.N);_.u=i7.prototype;_.u.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.u.onMouseEnter=function(){_.f("web_guide_hover_expansion")&&_.WC(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.u.visibleChanged=function(){if(this.visible&&!this.data){var D=_.DH().resolve(_.cD(_.Q3));D&&D.setGuideData(this.hostElement)}};
_.u.dataChanged=function(){var D=[],Y;if((Y=this.data)!=null&&Y.items){Y=_.a(this.data.items);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;var Z=void 0;if((Z=R.guideSectionRenderer)==null?0:Z.items)for(Z=void 0,R=_.a((Z=R.guideSectionRenderer)==null?void 0:Z.items),Z=R.next();!Z.done;Z=R.next())if(Z=Z.value,Z.guideEntryRenderer)Z=Z.guideEntryRenderer,Z.isPrimary&&D.push({guideEntryRenderer:Z});else if(Z.guideCollapsibleSectionEntryRenderer){var t=void 0;((t=_.A(Z.guideCollapsibleSectionEntryRenderer.headerEntry,
CQ))==null?0:t.isPrimary)&&D.push({guideEntryRenderer:_.A(Z.guideCollapsibleSectionEntryRenderer.headerEntry,CQ)});if(Z=Z.guideCollapsibleSectionEntryRenderer.sectionItems)for(Z=_.a(Z),t=Z.next();!t.done;t=Z.next()){var X=t.value;t=_.A(X,Btk);var M=void 0;((M=_.A(X,CQ))==null?0:M.isPrimary)?D.push({guideEntryRenderer:_.A(X,CQ)}):t&&(X=void 0,_.A((X=t)==null?void 0:X.entryRenderer,CQ)&&(t.alwaysShow||this.allVideosCount)&&D.push({guideEntryRenderer:_.A(t.entryRenderer,CQ)}))}}}}this.miniGuideItems=
D};
_.u.activeEndpointChanged=function(){for(var D=this.items.children,Y=0;Y<D.length;Y++)D[Y].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.u.registerWithViewTransitionManager=function(){var D=this;_.Ak(_.yc,function(){var Y=_.DH().resolve(_.cD(_.f1));if(Y&&Y.isAnyTransitionEnabled){var R={};Y.viewTransitionCoordinator.registerElement(D.hostElement,(R.slide="mini-guide-page-transition",R))}})};
i7.prototype.activeEndpointChanged=i7.prototype.activeEndpointChanged;i7.prototype.dataChanged=i7.prototype.dataChanged;i7.prototype.visibleChanged=i7.prototype.visibleChanged;i7.prototype.onMouseEnter=i7.prototype.onMouseEnter;_.q([_.v(_.mb),_.x("design:type",Object)],i7.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],i7.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],i7.prototype,"ytComponentBehavior",void 0);_.q([_.fr("#items"),_.x("design:type",Object)],i7.prototype,"items",void 0);_.q([_.y(),_.x("design:type",Object)],i7.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Boolean)],i7.prototype,"visible",void 0);_.q([_.y(),_.x("design:type",Object)],i7.prototype,"miniGuideItems",void 0);_.q([_.y({selector:_.d8S}),_.x("design:type",Object)],i7.prototype,"allVideosCount",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],i7.prototype,"noLabels",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],i7.prototype,"frostedGlass",void 0);
_.q([_.Fv("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i7.prototype,"onMouseEnter",null);_.q([_.rd("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i7.prototype,"visibleChanged",null);_.q([_.rd("data","allVideosCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i7.prototype,"dataChanged",null);
_.q([_.rd("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],i7.prototype,"activeEndpointChanged",null);_.q([_.h({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],i7);
_.L(i7,"ytd-mini-guide-renderer",function(){if(za9===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);za9=D}D=za9;return D},{mode:1});var SQK;var Tl9=/^[\x00-\x7F]+$/,O5=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(O5,_.N);_.YF.Object.defineProperties(O5.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var D,Y=_.OM((D=this.data)==null?void 0:D.handle);if(Y)return _.i0("@"+Y)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.OM(this.displayHandle),Y,R=_.OM((Y=this.data)==null?void 0:Y.handleUrl);if(D&&R)return _.i0(R+D)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var D=_.OM(this.displayHandle);if(D&&!Tl9.test(D)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.OM(this.displayHandleUrl),Y,R=_.OM((Y=this.data)==null?void 0:Y.urlInfoText);if(D&&R)return _.i0(R+" "+D)}}});
_.q([_.y(),_.x("design:type",Object)],O5.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],O5.prototype,"displayHandle",null);_.q([_.b("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],O5.prototype,"displayHandleUrl",null);_.q([_.b("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],O5.prototype,"warningText",null);
_.q([_.b("displayHandleUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],O5.prototype,"urlInfoTextWithUrl",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],O5.prototype,"darkerDarkTheme",void 0);_.q([_.h({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],O5);
_.L(O5,"ytd-handles-claiming-confirm-dialog-content",function(){if(SQK!==void 0)return SQK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return SQK=D},{mode:1});var jyT;var cn=function(){var D=_.N.apply(this,arguments)||this;D.okButtonOverride={style:"mono",type:"outline",size:"M"};return D};
_.n(cn,_.N);cn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cn.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],cn.prototype,"okButtonOverride",void 0);_.q([_.y(),_.x("design:type",Object)],cn.prototype,"data",void 0);_.q([_.h({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],cn);
_.L(cn,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(jyT!==void 0)return jyT;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return jyT=D},{mode:1});var In9;var FrK=/^[\x00-\x7F]+$/,DK=function(){var D=_.N.apply(this,arguments)||this;D.isLoading=!1;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(DK,_.N);DK.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var D;this.selectedHandle=(D=this.handleInput)==null?void 0:D.value;this.onSelectedHandleChanged(this.selectedHandle);_.WC(this.hostElement,"yt-refit-popups-action")}};
_.YF.Object.defineProperties(DK.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.i0("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.i0(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!FrK.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],DK.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DK.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],DK.prototype,"selectedHandle",void 0);_.q([_.y(),_.x("design:type",Object)],DK.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Function)],DK.prototype,"onSelectedHandleChanged",void 0);_.q([_.fr("#channel-handle-input"),_.x("design:type",Object)],DK.prototype,"handleInput",void 0);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],DK.prototype,"handleUrlPrefix",null);_.q([_.b("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],DK.prototype,"displayHandle",null);_.q([_.b("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],DK.prototype,"displayHandleUrl",null);_.q([_.b("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],DK.prototype,"warningText",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],DK.prototype,"darkerDarkTheme",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.q([_.h({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],DK);
_.L(DK,"ytd-handles-claiming-edit-dialog-content",function(){if(In9!==void 0)return In9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return In9=D},{mode:1});var G9z;var Yp=function(){var D=_.N.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.selectButtonDisabled=!1;D.isLoading=!1;D.hasSelectedHandleEventListener=!1;D.selectedHandleChanged=function(Y){D.selectedHandle=Y};
return D};
_.n(Yp,_.N);_.u=Yp.prototype;_.u.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.u.onDataChanged=function(){var D,Y;this.selectedHandle=(Y=_.A((D=this.data)==null?void 0:D.inputField,A$k))==null?void 0:Y.handle};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onCancel=function(){this.selectedHandle="";_.CX(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var Y;((Y=this.data)==null?void 0:Y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(R,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.iI(D.hostElement,_.OM(Z.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var t;if((t=D.data)==null?0:t.onChannelUpdateSuccess){R=D.data.onChannelUpdateSuccess;var X,M;if(Z=(X=_.A(R,_.bS))==null?void 0:(M=X.popup)==null?void 0:M.handlesClaimingConfirmDialogRenderer)Z.handle=_.i0(D.selectedHandle);D.ytComponentBehavior.resolveCommand(R);_.CX(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){var R;D.content&&((R=D.content)==null?0:R.handleInput)&&D.content.handleInput.validate();D.isLoading=!1;_.iI(D.hostElement,_.fX("TRY_AGAIN_LATER"))}}}))}};
_.u.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Yp.prototype.onDataChanged=Yp.prototype.onDataChanged;Yp.prototype.onSelectedHandleChanged=Yp.prototype.onSelectedHandleChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Yp.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"actionButtonOverride",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"cancelButtonOverride",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",String)],Yp.prototype,"selectedHandle",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"selectButtonDisabled",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"hasSelectedHandleEventListener",void 0);_.q([_.y(),_.x("design:type",Object)],Yp.prototype,"handleInput",void 0);
_.q([_.Gm("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yp.prototype,"onSelectedHandleChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yp.prototype,"onDataChanged",null);_.q([_.fr("ytd-handles-claiming-edit-dialog-content"),_.x("design:type",Object)],Yp.prototype,"content",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Yp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.h({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Yp);
_.L(Yp,"ytd-handles-claiming-edit-dialog-renderer",function(){if(G9z!==void 0)return G9z;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return G9z=D},{mode:1});var V4k;var RW=function(){return _.N.apply(this,arguments)||this};
_.n(RW,_.N);_.YF.Object.defineProperties(RW.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.handle){var Y;return _.i0("@"+_.OM((Y=this.data)==null?void 0:Y.handle))}}}});
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],RW.prototype,"formattedHandle",null);_.q([_.y(),_.x("design:type",Object)],RW.prototype,"data",void 0);_.q([_.h({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],RW);
_.L(RW,"ytd-handles-claiming-radio-option-renderer",function(){if(V4k!==void 0)return V4k;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return V4k=D},{mode:1});var fnI;var ea0=/^[\x00-\x7F]+$/,ZK=function(){var D=_.N.apply(this,arguments)||this;D.initialRadioIndex="-1";D.isLoading=!1;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.maybeSubmitFeedback=function(){D.feedbackSurveyRenderer.submitSurvey()};
return D};
_.n(ZK,_.N);ZK.prototype.updateSelectedHandleIndexFromBinding=function(D){this.selectedRadioIndex=+D.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(D)};
ZK.prototype.selectedHandleChanged=function(D){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var Y;this.selectedHandle=(Y=this.handleInput)==null?void 0:Y.value;this.onSelectedHandleChanged(D)}};
_.YF.Object.defineProperties(ZK.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return this.ytRendererBehavior.getSimpleString((D=this.data)==null?void 0:D.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.i0("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.i0(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ea0.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.q([_.y(),_.x("design:type",Object)],ZK.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],ZK.prototype,"initialRadioIndex",void 0);_.q([_.y(),_.x("design:type",Number)],ZK.prototype,"selectedRadioIndex",void 0);_.q([_.y(),_.x("design:type",String)],ZK.prototype,"selectedHandle",void 0);_.q([_.y(),_.x("design:type",Object)],ZK.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Function)],ZK.prototype,"onSelectedHandleChanged",void 0);
_.q([_.y(),_.x("design:type",Function)],ZK.prototype,"onSelectedRadioIndexChanged",void 0);_.q([_.fr("#channel-handle-input"),_.x("design:type",Object)],ZK.prototype,"handleInput",void 0);_.q([_.fr("ytd-feedback-survey-renderer"),_.x("design:type",Object)],ZK.prototype,"feedbackSurveyRenderer",void 0);_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],ZK.prototype,"radioButtonLength",null);
_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZK.prototype,"handleUrlPrefix",null);_.q([_.b("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZK.prototype,"displayHandle",null);_.q([_.b("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZK.prototype,"displayHandleUrl",null);_.q([_.b("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZK.prototype,"warningText",null);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],ZK.prototype,"darkerDarkTheme",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.q([_.h({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],ZK);
_.L(ZK,"ytd-handles-claiming-select-dialog-content",function(){if(fnI!==void 0)return fnI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return fnI=D},{mode:1});var AaK;var tO=function(){var D=_.N.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.initialRadioIndex="-1";D.selectButtonDisabled=!1;D.isLoading=!1;D.selectedRadioIndexChanged=function(Y){D.selectedRadioIndex=Number(Y.detail.value)};
D.selectedHandleChanged=function(Y){D.selectedHandle=Y.detail.value};
D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(tO,_.N);_.u=tO.prototype;_.u.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.u.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.u.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.WC(this.hostElement,"yt-refit-popups-action")};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.CX(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var Y;((Y=this.data)==null?void 0:Y.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(R,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.iI(D.hostElement,_.OM(Z.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var t;if((t=D.data)==null?0:t.onChannelUpdateSuccess){R=D.data.onChannelUpdateSuccess;Z=_.A(R,_.bS);var X;if(Z==null?0:(X=Z.popup)==null?0:X.handlesClaimingConfirmDialogRenderer)Z.popup.handlesClaimingConfirmDialogRenderer.handle=_.i0(D.selectedHandle);D.ytComponentBehavior.resolveCommand(R);_.CX(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){if(D.selectedRadioIndex===D.radioButtonLength){var R;D.content&&((R=D.content)==null?0:R.handleInput)&&D.content.handleInput.validate()}D.isLoading=!1;_.iI(D.hostElement,_.fX("TRY_AGAIN_LATER"))}}}))}};
_.u.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var D,Y;this.selectedHandle=(D=this.content)==null?void 0:(Y=D.handleInput)==null?void 0:Y.value}else this.selectedRadioIndex>=0&&((D=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(D==null?void 0:D.handle):this.selectedHandle=void 0)};
_.u.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.u.getRadioItem=function(D){if(this.radioButtonLength>D&&D>=0)return _.A(this.data.radioButton[D],L09)};
_.YF.Object.defineProperties(tO.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}}});
tO.prototype.onSelectedHandleChanged=tO.prototype.onSelectedHandleChanged;tO.prototype.onSelectedHandleIndexChanged=tO.prototype.onSelectedHandleIndexChanged;tO.prototype.onDataChanged=tO.prototype.onDataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],tO.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],tO.prototype,"actionButtonOverride",void 0);_.q([_.y(),_.x("design:type",Object)],tO.prototype,"cancelButtonOverride",void 0);
_.q([_.y(),_.x("design:type",Object)],tO.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],tO.prototype,"initialRadioIndex",void 0);_.q([_.y(),_.x("design:type",Number)],tO.prototype,"selectedRadioIndex",void 0);_.q([_.y(),_.x("design:type",String)],tO.prototype,"selectedHandle",void 0);_.q([_.y(),_.x("design:type",Object)],tO.prototype,"selectButtonDisabled",void 0);_.q([_.y(),_.x("design:type",Object)],tO.prototype,"isLoading",void 0);
_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],tO.prototype,"radioButtonLength",null);_.q([_.fr("ytd-handles-claiming-select-dialog-content"),_.x("design:type",Object)],tO.prototype,"content",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tO.prototype,"onDataChanged",null);
_.q([_.Gm("selectedRadioIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tO.prototype,"onSelectedHandleIndexChanged",null);_.q([_.Gm("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tO.prototype,"onSelectedHandleChanged",null);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],tO.prototype,"darkerDarkTheme",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.h({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],tO);
_.L(tO,"ytd-handles-claiming-select-dialog-renderer",function(){if(AaK!==void 0)return AaK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return AaK=D},{mode:1});var nmE;var ra0;var sI=function(){return _.N.apply(this,arguments)||this};
_.n(sI,_.N);sI.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],sI.prototype,"data",void 0);_.q([_.h({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],sI);
_.L(sI,"ytd-hotkey-dialog-section-option-renderer",function(){if(ra0!==void 0)return ra0;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return ra0=D},{mode:1});var wdp;var Xj=function(){return _.N.apply(this,arguments)||this};
_.n(Xj,_.N);Xj.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Xj.prototype,"data",void 0);_.q([_.h({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Xj);
_.L(Xj,"ytd-hotkey-dialog-section-renderer",function(){if(wdp!==void 0)return wdp;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return wdp=D},{mode:1});var uz=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(uz,_.N);uz.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],uz.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],uz.prototype,"darkerDarkTheme",void 0);_.q([_.h({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],uz);
_.L(uz,"ytd-hotkey-dialog-content",function(){if(nmE!==void 0)return nmE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return nmE=D},{mode:1});var $NI;var aW=function(){return _.N.apply(this,arguments)||this};
_.n(aW,_.N);aW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D=document.querySelector("ytd-hotkey-dialog-content #scrollable");D&&(D.dialogElement=this.hostElement.parentElement)};
aW.prototype.onCloseTap=function(){_.CX(this.hostElement,"yt-close-popup-action")};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aW.prototype,"data",void 0);_.q([_.h({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],aW);
_.L(aW,"ytd-hotkey-dialog-renderer",function(){if($NI!==void 0)return $NI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $NI=D},{mode:1});var vm9;var Md=function(){return _.N.apply(this,arguments)||this};
_.n(Md,_.N);Md.prototype.onYtServiceRequestError=function(){if(this.blocked){var D;var Y=(D=this.data)==null?void 0:D.defaultServiceEndpoint}else{var R;Y=(R=this.data)==null?void 0:R.toggledServiceEndpoint}var Z;(Y=(Z=_.A(Y,_.j6U))==null?void 0:Z.onFailureAction)&&this.ytComponentBehavior.resolveCommand(Y);this.updateBlockState(!this.blocked)};
Md.prototype.onYtToggleButton=function(D){this.updateBlockState(D.detail.toggled)};
Md.prototype.updateBlockState=function(D){if(D!==this.blocked){var Y=this.blockedEntityKey;Y&&this.ytdReduxBehavior.dispatch(_.oP("blockStateEntity",Y,{key:Y,blocked:D}));this.set("data.isToggled",D)}};
_.YF.Object.defineProperties(Md.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)}}});
Md.prototype.onYtToggleButton=Md.prototype.onYtToggleButton;Md.prototype.onYtServiceRequestError=Md.prototype.onYtServiceRequestError;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],Md.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Md.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Md.prototype,"blockedEntityKey",void 0);
_.q([_.y({selectorArgs:["blockedEntityKey"],selector:function(D,Y){return _.jC(D.entities,"blockStateEntity",Y)}}),
_.x("design:type",Object)],Md.prototype,"blockStateEntity",void 0);_.q([_.b("data","blockStateEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Md.prototype,"blocked",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Md.prototype,"onYtServiceRequestError",null);
_.q([_.Fv("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Md.prototype,"onYtToggleButton",null);_.q([_.h({is:"ytd-block-button",disableElementRegistration:!0})],Md);
_.L(Md,"ytd-block-button",function(){if(vm9!==void 0)return vm9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return vm9=D},
{mode:1});var omK;var buI;var C6=function(){return _.N.apply(this,arguments)||this};
_.n(C6,_.N);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],C6.prototype,"data",void 0);_.q([_.h({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],C6);
_.L(C6,"ytd-kids-blocklist-picker-item-renderer",function(){if(buI!==void 0)return buI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return buI=D},{mode:1});var Wt=function(){return _.N.apply(this,arguments)||this};
_.n(Wt,_.N);Wt.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Wt.prototype,"data",void 0);_.q([_.h({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Wt);
_.L(Wt,"ytd-kids-blocklist-picker-content",function(){if(omK!==void 0)return omK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return omK=
D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var yaI;var zO=function(){var D=_.N.apply(this,arguments)||this;D.hasAnyRequestSucceeded=!1;D.hasAnyRequestFailed=!1;D.numPendingRequests=0;return D};
_.n(zO,_.N);_.u=zO.prototype;_.u.attached=function(){this.hostElement.setAttribute("dialog","")};
_.u.onDoneButtonTap=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.u.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.u.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.u.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.u.onPopupClosed=function(D){var Y,R;if(((Y=D.detail)==null?void 0:(R=Y.popup)==null?void 0:R.is)==="tp-yt-paper-dialog"){var Z;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Z=this.data)==null?0:Z.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.RQ(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
zO.prototype.onPopupClosed=zO.prototype.onPopupClosed;zO.prototype.onYtServiceRequestError=zO.prototype.onYtServiceRequestError;zO.prototype.onYtServiceRequestCompleted=zO.prototype.onYtServiceRequestCompleted;zO.prototype.onYtServiceRequestSent=zO.prototype.onYtServiceRequestSent;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],zO.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],zO.prototype,"data",void 0);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zO.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zO.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zO.prototype,"onYtServiceRequestError",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],zO.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],zO);
_.L(zO,"ytd-kids-blocklist-picker-renderer",function(){if(yaI!==void 0)return yaI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return yaI=D},{mode:1});var NlE;var lnt;var SZ=function(){return _.N.apply(this,arguments)||this};
_.n(SZ,_.N);SZ.prototype.setTip=function(D){var Y=this;this.data&&(this.tip=obk($f9.getInstance(),D,this.data),_.cy(this,function(){_.MX(Y.hostElement,"yt-refit")}))};
SZ.prototype.clearTip=function(){this.tip=void 0};
SZ.prototype.computeHidden=function(D){return!D};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],SZ.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.x("design:type",Boolean)],SZ.prototype,"hidden",void 0);_.q([_.y(),_.x("design:type",Object)],SZ.prototype,"tip",void 0);_.q([_.h({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],SZ);
_.L(SZ,"ytd-menu-popup-tip-renderer",function(){if(lnt!==void 0)return lnt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);
return lnt=D},{mode:1});var Ja9;var TO=function(){var D=_.N.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.f("kevlar_system_icons");D.useListItemStyles=_.f("web_list_item_style_for_menu_items");return D};
_.n(TO,_.N);_.u=TO.prototype;_.u.onFocus=function(){var D;(D=_.aU(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.u.onTap=function(){var D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(D&&_.A(D,_.je))this.componentBehavior.resolveCommand(D),this.updateToggledStateInEntity();else if(D){this.componentBehavior.resolveCommand(D)||_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}});var Y;((Y=_.A(D,_.Fa))==null?void 0:Y.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.u.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.u.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.u.updateToggledStateInEntity=function(){var D=this.data.toggleMenuServiceItemEntityKey,Y=!this.data.isToggled;D&&this.ytdReduxBehavior.dispatch(_.oP("toggleMenuServiceItemEntity",D,{key:D,isToggled:Y}))};
_.u.computeIcon=function(D,Y,R){return(D=D?R:Y)&&D.iconType?_.IT(D.iconType):""};
_.u.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.u.isIconActive=function(D){return!_.f("toggle_menu_active_icon_killswitch")&&D};
_.YF.Object.defineProperties(TO.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?0:D.isToggled)?(Y=this.data)==null?void 0:Y.toggledText:(R=this.data)==null?void 0:R.defaultText}}});
TO.prototype.toggledStateEntityChanged=TO.prototype.toggledStateEntityChanged;TO.prototype.onYtServiceRequestCompleted=TO.prototype.onYtServiceRequestCompleted;TO.prototype.onTap=TO.prototype.onTap;TO.prototype.onFocus=TO.prototype.onFocus;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],TO.prototype,"componentBehavior",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],TO.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],TO.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],TO.prototype,"useIcons",void 0);_.q([_.y({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],TO.prototype,"icon",void 0);
_.q([_.y({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(D,Y){return _.jC(D.entities,"toggleMenuServiceItemEntity",Y)}}),
_.x("design:type",Object)],TO.prototype,"toggleMenuServiceItemEntity",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],TO.prototype,"systemIcons",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],TO.prototype,"useListItemStyles",void 0);_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TO.prototype,"onFocus",null);
_.q([_.b("data.isToggled"),_.x("design:type",Object),_.x("design:paramtypes",[])],TO.prototype,"toggleButtonText",null);_.q([_.Fv("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TO.prototype,"onTap",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TO.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Gm("toggleMenuServiceItemEntity.isToggled","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TO.prototype,"toggledStateEntityChanged",null);_.q([_.h({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],TO);
_.L(TO,"ytd-toggle-menu-service-item-renderer",function(){if(Ja9!==void 0)return Ja9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Ja9=D},{mode:1});var k99;var jZ=function(){return _.N.apply(this,arguments)||this};
_.n(jZ,_.N);jZ.prototype.onFocus=function(){var D;(D=_.aU(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.YF.Object.defineProperties(jZ.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Jf(this.data.iconUrl)}}});
jZ.prototype.onFocus=jZ.prototype.onFocus;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],jZ.prototype,"rendererBehavior",void 0);_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],jZ.prototype,"ytEndpointBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],jZ.prototype,"data",void 0);_.q([_.Fv("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jZ.prototype,"onFocus",null);
_.q([_.b("data.iconUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],jZ.prototype,"imageSource",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],jZ);
_.L(jZ,"ytd-menu-custom-icon-item-renderer",function(){if(k99!==void 0)return k99;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return k99=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});_.at(_.LW,"yt-list-item-view-model",{props:{data:_.cs,isMenuItem:_.cs,isCompact:_.cs,onTap:_.uq,trailingAccessory:_.uq,hideSelectionTextChevron:_.cs,disabled:_.cs,inPopup:_.cs,disableHorizontalPadding:_.cs,isOverlay:_.cs,isToggled:_.cs,ariaLabel:_.cs,ariaPressed:_.cs}});var IW=function(){var D=_.N.apply(this,arguments)||this;D.disableBackdropFilter=_.f("web_disable_backdrop_filter");return D};
_.n(IW,_.N);_.u=IW.prototype;
_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.u.computeAriaLabel=function(D){return D};
_.u.onPopupOpened=function(){this.items.selected=0;for(var D=_.a(_.aU(this.items).children),Y=D.next();!Y.done;Y=D.next())Y.value.popupPositionTarget=this.positionTarget;if(D=this.popupTip||void 0)D.setTip(this.source||""),this.source=void 0;this.veData&&(D=_.K2())&&_.E7(D,[this.veData])};
_.u.onPopupClosed=function(){var D=this.popupTip||void 0;D&&D.clearTip()};
_.u.onIronActivate=function(D){this.shouldPersist(D)||_.CX(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(D=_.K2())&&_.dC(D,this.veData)};
_.u.shouldPersist=function(D){var Y,R;if(((Y=D.detail)==null?void 0:Y.selected)===void 0||(R=this.data)==null||!R.items)return!1;var Z,t;return!((t=(Z=this.data.items[D.detail.selected])==null?void 0:Z.toggleMenuServiceItemRenderer)==null||!t.persistentOnMenuPopup)};
_.u.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(D){return D.menuNavigationItemRenderer?!!D.menuNavigationItemRenderer.icon:D.menuServiceItemRenderer?!!D.menuServiceItemRenderer.icon:D.menuConditionalServiceItemRenderer?!!D.menuConditionalServiceItemRenderer.icon:D.menuConditionalNavigationItemRenderer?!!D.menuConditionalNavigationItemRenderer.icon:D.toggleMenuServiceItemRenderer?!!D.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
IW.prototype.onPopupClosed=IW.prototype.onPopupClosed;IW.prototype.onPopupOpened=IW.prototype.onPopupOpened;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],IW.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],IW.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],IW.prototype,"veData",void 0);_.q([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.x("design:type",String)],IW.prototype,"ariaLabel",void 0);_.q([_.y({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],IW.prototype,"useIcons",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],IW.prototype,"disableBackdropFilter",void 0);_.q([_.fr("#items"),_.x("design:type",Object)],IW.prototype,"items",void 0);_.q([_.fr("ytd-menu-popup-tip-renderer"),_.x("design:type",Object)],IW.prototype,"popupTip",void 0);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IW.prototype,"onPopupOpened",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IW.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],IW);
_.L(IW,"ytd-menu-popup-renderer",function(){if(NlE!==void 0)return NlE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return NlE=D},{mode:1});var UNE;var KrT=_.RT(function(D){D=_.YC(D,{icon:void 0});var Y=D.data;D=D.icon;var R=function(){return Y().iconBadgeText},Z={},t=_.e7("yt-spec-icon-badge-shape",function(){a:switch(Y().iconBadgeType){case "notification":var X="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":X="yt-spec-icon-badge-shape--type-cart";break a;default:X=""}return X},function(){a:switch(Y().iconBadgeStyle){case "overlay":var X="yt-spec-icon-badge-shape--style-overlay";
break a;default:X=""}return X},(Z["yt-spec-icon-badge-shape--text-size-small"]=function(){var X=R();
return!!((X==null?0:X.length)&&X.length>2)},Z));
return _.S("yt-icon-badge-shape",null,_.S(_.T,{cond:D,then:function(X){return _.S("div",{class:t},_.S("div",{class:"yt-spec-icon-badge-shape__icon"},_.S(_.nB,{icon:X})),_.S(_.T,{cond:R,then:function(M){return _.S("div",{class:"yt-spec-icon-badge-shape__badge"},M)}}))}}))},"Pg");
KrT.idomCompat=!0;_.at(KrT,"yt-icon-badge-shape",{props:{data:_.cs,icon:_.cs}});var Fj=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};D.unseenCount=0;D.isOverlay=!1;return D};
_.n(Fj,_.N);_.u=Fj.prototype;_.u.attached=function(){var D=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(Y){D.onServiceWorkerMessage(Y)})};
_.u.onDataChanged=function(){this.isAttached&&!this.JSC$20336_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20336_lastData=this.data};
_.u.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.u.computeIcon=function(){var D,Y;return(D=this.data)==null?void 0:(Y=D.icon)==null?void 0:Y.iconType};
_.u.onServiceWorkerMessage=function(D){D.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.u.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.A(this.data.updateUnseenCountEndpoint,_.Fa)&&_.A(this.data.updateUnseenCountEndpoint,_.Fa).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.u.handleUpdateNotificationsUnseenCountAction=function(D){var Y=this;D=_.A(D,bch);D!=null&&D.unseenCount&&D.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(D.unseenCount),_.yc.addLowPriorityJob(function(){Y.data.updateUnseenCountEndpoint&&Y.ytComponentBehavior.resolveCommand(Y.data.updateUnseenCountEndpoint)},D.timeoutMs))};
_.u.onClick=function(){_.MX(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var D=_.WC(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),Y=this.data.menuRequest;D&&D.length===1&&D[0]?_.CX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.u.handleTopbarMenuClosedAction=function(D){D==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.u.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
_.u.sendUnseenCountRequest=function(D){var Y=this;_.Ak(_.yc,function(){Y.ytComponentBehavior.resolveCommand(D)})};
_.u.updateCountUI=function(D){this.set("unseenCount",D<9?D:"9+")};
_.YF.Object.defineProperties(Fj.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Fj.prototype.handleUpdateNotificationsUnseenCountAction=Fj.prototype.handleUpdateNotificationsUnseenCountAction;Fj.prototype.onDataChanged=Fj.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Fj.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.Rv),_.x("design:type",Object)],Fj.prototype,"ytdOpenPopupBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Fj.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Fj.prototype,"unseenCount",void 0);_.q([_.y(),_.x("design:type",Object)],Fj.prototype,"isOverlay",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],Fj.prototype,"showTooltips",void 0);_.q([_.fr("yt-icon-button"),_.x("design:type",Object)],Fj.prototype,"iconButton",void 0);
_.q([_.b("unseenCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fj.prototype,"showNotificationCount",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fj.prototype,"onDataChanged",null);_.q([_.Fv("yt-update-notifications-unseen-count-action"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Fj.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.q([_.h({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Fj);
_.L(Fj,"ytd-notification-topbar-button-renderer",function(){if(UNE!==void 0)return UNE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return UNE=D},{mode:_.zD("kevlar_poly_si_batch_j025")?1:2});var haz;var GO=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return D};
_.n(GO,_.N);GO.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}}}}}};
GO.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
GO.prototype.onDarkModeToggled=function(D){this.dark=D};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],GO.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],GO.prototype,"data",void 0);_.q([_.y({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],GO.prototype,"dark",void 0);
_.q([_.h({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],GO);
_.L(GO,"yt-pdg-buy-flow-header-renderer",function(){if(haz!==void 0)return haz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return haz=D},{mode:1});var Lrp;var mNb;var VK=function(){var D=_.N.apply(this,arguments)||this;D.immediateValue=0;D.isDarkTheme=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(VK,_.N);_.u=VK.prototype;_.u.created=function(){_.H6.requestAvailability()};
_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.dataChanged=function(){var D=_.aU(this.hostElement).querySelector("#color-slider");D.immediateValue&&this.updateSliderKnobAndGradientStyles(D.immediateValue);this.data.notches[0].knobColorArgb&&_.SN(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.xI(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.JQ("HTML_DIR")==="rtl"&&_.aU(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.u.onSliderImmediateChange=function(){var D=_.aU(this.hostElement).querySelector("#color-slider");D.dragging&&(D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue)),this.updateSliderAria())};
_.u.onSliderChange=function(){var D=_.aU(this.hostElement).querySelector("#color-slider");D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue));this.updateSliderAria()};
_.u.updateSliderAria=function(){var D=_.aU(this.hostElement).querySelector("#color-slider"),Y=_.aU(this.hostElement).querySelector("#color-slider");Y=_.OM(this.data.notches[Y.immediateValue].tierValue);_.C99()&&_.MX(this.hostElement,"iron-announce",{text:Y});D.setAttribute("aria-valuetext",Y)};
_.u.updateSuperThanksSelectedTierEntity=function(D){if(D!==this.immediateValue){var Y,R,Z=this==null?void 0:(Y=this.data)==null?void 0:(R=Y.superThanksSelectedTierEntity)==null?void 0:R.key;Z&&Z.length>0&&this.ytdReduxBehavior.dispatch(_.oP("superThanksSelectedTierEntity",Z,{key:Z,index:D}))}};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.updateSliderKnobAndGradientStyles=function(D){this.immediateValue=D;D=this.data.notches[D];if(D==null?0:D.knobColorArgb)var Y={"--ytd-pdg-color-slider-knob-color":_.xI(D.knobColorArgb)};(D==null?0:D.linearGradientCssStyle)&&Y!==null&&(Y=Object.assign({},Y,{"--ytd-pdg-color-slider-active-color":D==null?void 0:D.linearGradientCssStyle}));Y!==null&&_.SN(this.hostElement,Y)};
VK.prototype.onSliderChange=VK.prototype.onSliderChange;VK.prototype.onSliderImmediateChange=VK.prototype.onSliderImmediateChange;VK.prototype.dataChanged=VK.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],VK.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],VK.prototype,"immediateValue",void 0);_.q([_.y(),_.x("design:type",Number)],VK.prototype,"maxMarkers",void 0);
_.q([_.y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:F3T}),_.x("design:type",Object)],VK.prototype,"superThanksSelectedTierEntity",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],VK.prototype,"isDarkTheme",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],VK.prototype,"ytdReduxBehavior",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VK.prototype,"dataChanged",null);
_.q([_.Fv("immediate-value-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VK.prototype,"onSliderImmediateChange",null);_.q([_.Fv("change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VK.prototype,"onSliderChange",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],VK);
_.L(VK,"ytd-pdg-color-slider-renderer",function(){if(mNb!==void 0)return mNb;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return mNb=D},{mode:1});var qQI;var HuT;var f6=null;
_.Jj({is:"ytd-comment-input",_template:function(){if(HuT!==void 0)return HuT;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return HuT=D},
behaviors:[_.acl.YtHostElementBehavior,_.nJ,_.Bs.YtComponentBehavior,_.a$.YtRendererstamperBehavior,_.Nv_.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 _.BM}},
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",_.jN(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;_.jR();this.focus()},
detached:function(){document.removeEventListener("tap",_.jN(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var Y=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Y,D);this.maybeUpdateTextDirection_();_.MX(this.hostElement,"input")},
getInputRange_:function(){var D=_.Tb();if(D){D=D.getBrowserRangeObject();for(var Y=D.commonAncestorContainer;Y;){if(Y===this.getEditableTextArea_())return D;Y=Y.parentNode}}D=this.getEditableTextArea_();D=_.LD(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,Y,R){(Y=this.emojiManager.createDocumentFragment(Y,!0,!1,R===void 0?!0:R))&&Y.childNodes.length!==0&&(D.collapsed||D.deleteContents(),R=Y.lastChild,D.insertNode(Y),_.bnE(R).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var D=_.Tb();if(D){var Y=D.JSC$11256_getStartNode(),R=D.JSC$11256_getEndNode();if(tv9(Y)&&tv9(R)){var Z=D.JSC$11256_getStartOffset(),t;if(_.TX&&Y.nodeType===Node.ELEMENT_NODE&&(t=_.oE1(Y)))_.LD(t,0).select();else{t=GN(Y)?Y:_.K0(Y,GN);var X=GN(R)?R:_.K0(R,GN);if(t||X)if(D.isCollapsed()){if(Y.nodeType===Node.TEXT_NODE){D=!0;Z===Y.length&&(D=!1);if(f6==="end"||f6==="right")D=!1;Y=Y.parentNode;D=[].concat(_.oK(Y.parentNode.childNodes)).indexOf(Y)+(D?0:1);_.LD(Y.parentNode,
D).select()}}else t?t.previousSibling&&t.previousSibling.length>0?_.mw(R,D.JSC$11256_getEndOffset(),t.previousSibling,t.previousSibling.length-1).select():(Y=document.createTextNode("\u200b"),t.parentNode.insertBefore(Y,t),_.mw(R,D.JSC$11256_getEndOffset(),Y,0).select()):X&&(X.nextSibling&&X.nextSibling.length>0?_.mw(Y,D.JSC$11256_getStartOffset(),X.nextSibling,1).select():(R=document.createTextNode("\u200b"),X.parentNode.insertBefore(R,X.nextSibling),_.mw(Y,D.JSC$11256_getStartOffset(),R,R.length).select()));
f6=null}}else f6=null}else f6=null},
leftKeyPressed_:function(){f6="left"},
rightKeyPressed_:function(){f6="right"},
endKeyPressed_:function(){f6="end"},
maybeDeleteChip_:function(){var D=Cfp(!0);if(D){var Y=_.Tb(),R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();_.Jw(R,Y,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=Cfp(!1);if(D){var Y=_.Tb(),R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();_.Jw(R,Y,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var Y=_.Tb();if(Y.isCollapsed()){var R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();var Z=WQp(R,Y,!0);Z&&(_.Jw(R,Y,Z,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var Y=_.Tb();if(Y.isCollapsed()){var R=Y.JSC$11256_getStartNode();Y=Y.JSC$11256_getStartOffset();var Z=WQp(R,Y,!1);Z&&(_.Jw(R,Y,Z,Z.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onContentClick:function(D){D.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(D){D.defaultPrevented||D.currentTarget.tagName==="YTD-COMMENT-INPUT"&&GN(D.target)&&D.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.aU(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.aU(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(D,Y){D=XLh(D,this.emojiManager,Y).cloneNode(!0);for(Y=D.firstChild;Y;)if(Y.nodeType!==1)Y=Y.nextSibling;else switch(Y.tagName){case "BR":var R=_.og();_.K7U(R,Y);Y=R.nextSibling;break;case "DIV":(R=Y.lastChild)&&Y.nextSibling&&_.l3(_.og(),R);Y.previousSibling&&(Y.previousSibling.nodeType===1||Y.previousSibling.nodeType===3&&!Y.previousSibling.textContent.endsWith("\n"))&&_.Nq(_.og(),Y);R&&R.nodeName==="BR"&&_.F_(R);R=Y;Y.hasChildNodes()?(Y=Y.firstChild,
_.hY4(R)):(Y=Y.nextSibling,_.F_(R));break;default:Y=Y.nextSibling}return zUE(D)},
setTextAreaValue:function(D){D||(D="");var Y=this.getEditableFormattedString_();Y.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});Y.text=D},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();f6=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.LD(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.JQ("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),Y=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",Y)}},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var Y=this.getInputRange_();Y&&(D=this.emojiInput.retrieveTextBeforeRange(Y))}this.insertText_(D,!0);this.updateCharCount_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
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(D){this.isEmojiButtonDisplayed&&(D.preventDefault(),D.stopImmediatePropagation(),D=D.clipboardData.getData("text/plain"),this.insertText_(D,!1,!1),_.MX(this.hostElement,"input"))},
insertText_:function(D,Y,R){Y=Y===void 0?!1:Y;R=R===void 0?!0:R;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(Y&&this.emojiInput.offsetStartOfRangeBy(Z,D.length),this.insertTextWithEmojis_(Z,D,R),sTT(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,D),this.updateSuggestionOffset_(Z)))}},
getSimpleString:_.OM,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computePlaceholderText_:function(D){return this.getSimpleString(D)},
computeEditableText_:function(D){return this.getSimpleString(D)},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(D,Y){D?this.fire("yt-autonav-pause-focus"):Y!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var Y=this.getEditableTextArea_();[].concat(_.oK(D.dataTransfer.items)).forEach(function(R){R.kind==="string"&&R.type.match("^text/plain")&&R.getAsString(function(Z){Y.appendChild(document.createTextNode(Z))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.aU(this.emojiInput).querySelector("#dropdown")){var Y=this.getEditableTextArea_().getBoundingClientRect().bottom,R=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Y-R)+5;Y=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-Y;_.aU(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.U1("yt-post"));return this.localStorage}});var eZ=function(){var D=_.N.apply(this,arguments)||this;D.currentCommentOptionIndex=0;D.isEmojiPickerDisplayed=!1;D.emojiManager=_.BM;D.isUgcEmpty=!1;D.userGeneratedCommentChangedHandler=function(){_.MX(D.hostElement,"ytd-pdg-user-generated-comment-changed");D.isEmojiYtdCommentInputEnabled&&(D.isUgcEmpty=!D.ytdCommentInputEl.getTextAreaValue())};
D.pasteHandler=function(Y){Y.preventDefault();Y.stopImmediatePropagation();var R;if(Y=(R=Y.clipboardData)==null?void 0:R.getData("text/plain"))R=document.getSelection().getRangeAt(0),R.collapsed||R.deleteContents(),Y=document.createTextNode(Y),R.insertNode(Y),R.selectNodeContents(Y),R.collapse(!1),Y=window.getSelection(),Y.removeAllRanges(),Y.addRange(R)};
D.onDocumentClick=function(Y){if(D.isEmojiPickerDisplayed){var R,Z,t;!(Y.target instanceof Node)||(R=Y.composedPath())!=null&&R.includes(D.editableTextEl)||(Z=Y.composedPath())!=null&&Z.includes(D.emojiButtonEl)||(t=Y.composedPath())!=null&&t.includes(D.emojiPickerEl)||(D.isEmojiPickerDisplayed=!1)}};
return D};
_.n(eZ,_.N);_.u=eZ.prototype;_.u.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.u.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.u.detached=function(){var D;(D=this.contentEl)==null||D.removeEventListener("input",this.userGeneratedCommentChangedHandler);var Y;(Y=this.contentEl)==null||Y.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.u.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.u.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var D;this.contentEl.textContent=this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.u.reloadEmojis=function(){this.emojiPickerEl&&_.A(this.emojiPicker,_.vSL)&&this.emojiPickerEl.updateEmojiCategories()};
_.u.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.SN(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.u.handleBackgroundColorStyling=function(){var D;if((D=this.currentCommentOption)==null?0:D.commentBackgroundColorArgb){var Y;_.SN(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.xI((Y=this.currentCommentOption)==null?void 0:Y.commentBackgroundColorArgb)})}else _.SN(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.u.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var D;(D=this.contentEl)==null||D.focus()}};
_.u.onEditButtonClick=function(D){var Y=document.getSelection();Y&&this.contentEl&&(D.stopPropagation(),D.preventDefault(),Y.selectAllChildren(this.contentEl),Y.collapseToEnd())};
_.u.onContentDrop=function(D){var Y=this;if(D.dataTransfer){D=_.a(D.dataTransfer.items);for(var R=D.next();!R.done;R=D.next())R=R.value,R.kind==="string"&&R.type.match("^text/plain")&&R.getAsString(function(Z){var t;(t=Y.contentEl)==null||t.appendChild(document.createTextNode(Z))})}};
_.u.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.u.getUserGeneratedCommentText=function(){var D,Y=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(D=this.contentEl)==null?void 0:D.textContent;return Y?Y.trim():""};
_.u.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.u.onEmojiSelect=function(D){this.ytdCommentInputEl.onEmojiSelect(D)};
_.YF.Object.defineProperties(eZ.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.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 D;return!((D=this.currentCommentOption)==null||!D.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(_.A((D=this.currentCommentOption)==null?void 0:D.chipRenderer,_.p6Y)){var Y;return _.A((Y=this.currentCommentOption)==null?void 0:Y.chipRenderer,_.p6Y)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var D,Y;return((D=this.data)==null?0:D.commentOptionRenderers)?_.A((Y=this.data)==null?void 0:Y.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Rut):void 0}var R,Z;return((R=this.data)==null?0:R.commentOptionRenderers)?_.A((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.currentCommentOptionIndex],Rut):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.commentDialog,_.FP4))==null?void 0:Y.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.commentDialog,_.FP4))==null?void 0:Y.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=_.A((D=this.data)==null?void 0:D.commentDialog,_.FP4))==null?void 0:Y.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(Y=_.A((D=this.data)==null?void 0:D.commentDialog,_.FP4))==null?void 0:Y.emojiPicker;if(!_.A(R,_.vSL)||!_.A(R,_.vSL).categories)return!1;D=function(X){return X.emojiPickerCategoryRenderer?X.emojiPickerCategoryRenderer.emojiIds&&X.emojiPickerCategoryRenderer.emojiIds.length>0:X.emojiPickerUpsellCategoryRenderer?X.emojiPickerUpsellCategoryRenderer.emojis&&X.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Z,t;return((Z=_.A(R,_.vSL))==null?0:(t=Z.categories)==null?0:t.find(D))?!0:!1}}});
eZ.prototype.onEmojiSelect=eZ.prototype.onEmojiSelect;eZ.prototype.dataChanged=eZ.prototype.dataChanged;eZ.prototype.currentCommentOptionChanged=eZ.prototype.currentCommentOptionChanged;_.q([_.v(_.mb),_.x("design:type",Object)],eZ.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eZ.prototype,"rendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.fr("#content-dom-if"),_.x("design:type",_.Ug)],eZ.prototype,"contentDomIfEl",void 0);_.q([_.fr("#content-no-emojis"),_.x("design:type",HTMLElement)],eZ.prototype,"contentEl",void 0);_.q([_.fr("#container"),_.x("design:type",HTMLElement)],eZ.prototype,"containerEl",void 0);_.q([_.fr("#comment-chip-container"),_.x("design:type",HTMLElement)],eZ.prototype,"paidCommentChipContainerEl",void 0);_.q([_.fr("#text-input"),_.x("design:type",HTMLElement)],eZ.prototype,"editableTextEl",void 0);
_.q([_.fr("#emoji-button"),_.x("design:type",HTMLElement)],eZ.prototype,"emojiButtonEl",void 0);_.q([_.fr("#emoji-picker > yt-emoji-picker-renderer"),_.x("design:type",Object)],eZ.prototype,"emojiPickerEl",void 0);_.q([_.fr("#text-input > ytd-comment-input"),_.x("design:type",Object)],eZ.prototype,"ytdCommentInputEl",void 0);_.q([_.y(),_.x("design:type",Object)],eZ.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],eZ.prototype,"currentCommentOptionIndex",void 0);
_.q([_.y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:F3T}),_.x("design:type",Object)],eZ.prototype,"superThanksSelectedTierEntity",void 0);_.q([_.y(),_.x("design:type",Object)],eZ.prototype,"isEmojiPickerDisplayed",void 0);_.q([_.y(),_.x("design:type",Object)],eZ.prototype,"emojiManager",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],eZ.prototype,"isUgcEmpty",void 0);
_.q([_.Gm("currentCommentOption"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eZ.prototype,"currentCommentOptionChanged",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eZ.prototype,"dataChanged",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eZ.prototype,"isEmojiYtdCommentInputEnabled",null);
_.q([_.b("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"title",null);_.q([_.b("data.authorText"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"channelName",null);_.q([_.b("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eZ.prototype,"shouldShowPaidCommentChipRenderer",null);
_.q([_.b("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"paidCommentChipRenderer",null);_.q([_.b("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"currentCommentOption",null);
_.q([_.b("data.defaultCommentText","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"commentText",null);_.q([_.b("data.placeholderText"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"placeholderText",null);_.q([_.b("data.commentDialog.commentDialogRenderer.editableText"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"editableText",null);
_.q([_.b("data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"emojiButton",null);_.q([_.b("data.commentDialog.commentDialogRenderer.emojiPicker"),_.x("design:type",Object),_.x("design:paramtypes",[])],eZ.prototype,"emojiPicker",null);
_.q([_.b("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eZ.prototype,"isEmojiButtonDisplayed",null);_.q([_.Fv("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],eZ.prototype,"onEmojiSelect",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],eZ);
_.L(eZ,"ytd-pdg-comment-preview-renderer",function(){if(qQI!==void 0)return qQI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return qQI=D},{mode:2});var xNt;var AO=function(){var D=_.N.apply(this,arguments)||this;D.selected=!1;return D};
_.n(AO,_.N);_.u=AO.prototype;_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.u.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.u.dataChanged=function(){this.data&&(_.MB(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.SN(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.xI(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.xI(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.u.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.u.onClick=function(){this.logClick()};
_.u.onKeyboardSelect=function(){_.MX(this.hostElement,"tap");this.onClick()};
_.u.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AO.prototype.onClick=AO.prototype.onClick;AO.prototype.selectedChanged=AO.prototype.selectedChanged;AO.prototype.dataChanged=AO.prototype.dataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],AO.prototype,"componentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.nJ),_.x("design:type",Object)],AO.prototype,"ironA11yKeysBehavior",void 0);
_.q([_.v(_.gd),_.x("design:type",Object)],AO.prototype,"ironSelectableBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],AO.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],AO.prototype,"shownThumbnail",void 0);_.q([_.y(),_.x("design:type",Object)],AO.prototype,"basePriceText",void 0);_.q([_.y(),_.x("design:type",Object)],AO.prototype,"purchaseCommand",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],AO.prototype,"selected",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"dataChanged",null);_.q([_.Gm("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"selectedChanged",null);_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"onClick",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],AO);
_.L(AO,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(xNt!==void 0)return xNt;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return xNt=D},{mode:1});var n6=function(){var D=_.N.apply(this,arguments)||this;D.selectedItemIndex=0;D.buyButtonDisabled=!1;return D};
_.n(n6,_.N);_.u=n6.prototype;
_.u.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]]"}}}}}};
_.u.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var D;var Y=(D=_.A(this.data.colorSlider,Ycp))==null?void 0:D.notches[this.selectedItemIndex].purchaseCommand}else{var R;Y=(R=_.A(this.data.selectableItemButtons[this.selectedItemIndex],tnb))==null?void 0:R.purchaseCommand}if(Y){D=_.A(Y,_.vtz);D.productData||(D.productData={});var Z;D.productData={pdgData:{commentMessageText:(Z=this.commentPreviewRenderer)==null?void 0:Z.getUserGeneratedCommentText()}};
_.MX(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(Y)}}};
_.u.dataChanged=function(){if(this.data){_.BM.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.uHY(_.BM,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.BM.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var D;this.buyButtonDisabled=!((D=_.A(this.data.commentPreview,ZOp))==null||!D.placeholderText);this.updatePriceSelectorStatus();var Y;if((Y=this.data)==null?0:Y.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;D=[];this.data.preloadImages&&(D=this.data.preloadImages);
D=D.map(function(R){return _.MW(R.thumbnails,1920)});
D=_.a(D);for(Y=D.next();!Y.done;Y=D.next())(Y=Y.value)&&_.Ugn(Y).thenCatch(function(){_.Jk(Error("pl"))})}};
_.u.superThanksSelectedTierEntityChanged=function(){var D;(this==null?void 0:(D=this.superThanksSelectedTierEntity)==null?void 0:D.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.u.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.u.updatePriceSelectorStatus=function(){this.isColorSlider?(_.aU(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.aU(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.aU(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.aU(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.u.closeBuyFlow=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.u.onUserGeneratedContentChanged=function(){var D;this.buyButtonDisabled=!((D=this.commentPreviewRenderer)==null?0:D.getUserGeneratedCommentText())};
_.u.updateSelectedItemIndexFromBinding=function(D){this.selectedItemIndex=D.detail.value};
_.YF.Object.defineProperties(n6.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disclaimerText)}}});
n6.prototype.onUserGeneratedContentChanged=n6.prototype.onUserGeneratedContentChanged;n6.prototype.closeBuyFlow=n6.prototype.closeBuyFlow;n6.prototype.selectedItemIndexChanged=n6.prototype.selectedItemIndexChanged;n6.prototype.superThanksSelectedTierEntityChanged=n6.prototype.superThanksSelectedTierEntityChanged;n6.prototype.dataChanged=n6.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],n6.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],n6.prototype,"selectedItemIndex",void 0);_.q([_.y(),_.x("design:type",Boolean)],n6.prototype,"isColorSlider",void 0);
_.q([_.y(),_.x("design:type",Object)],n6.prototype,"buyButtonDisabled",void 0);_.q([_.y({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:F3T}),_.x("design:type",Object)],n6.prototype,"superThanksSelectedTierEntity",void 0);_.q([_.fr("ytd-pdg-comment-preview-renderer"),_.x("design:type",Object)],n6.prototype,"commentPreviewRenderer",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],n6.prototype,"ytdReduxBehavior",void 0);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n6.prototype,"dataChanged",null);_.q([_.Gm("superThanksSelectedTierEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n6.prototype,"superThanksSelectedTierEntityChanged",null);_.q([_.Gm("selectedItemIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n6.prototype,"selectedItemIndexChanged",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n6.prototype,"closeBuyFlow",null);_.q([_.Fv("ytd-pdg-user-generated-comment-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n6.prototype,"onUserGeneratedContentChanged",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],n6.prototype,"isDisclaimerTextShown",null);
_.q([_.h({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],n6);
_.L(n6,"yt-super-vod-buy-flow-content-renderer",function(){if(Lrp!==void 0)return Lrp;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Lrp=D},{mode:1});var PvK;var r8=function(){var D=_.N.apply(this,arguments)||this;D.lottieAnimationRef={};return D};
_.n(r8,_.N);_.u=r8.prototype;_.u.created=function(){_.H6.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.jN(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.u.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.MX(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.u.detached=function(){this.autoCloseJobId&&_.yc.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.jN(this,this.onPopupIronOverlayOpened))};
_.u.dataChanged=function(){var D=this;this.data&&this.data.autoCloseDelay&&(_.CX(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.S7(_.yc,function(){D.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.SN(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.u.onDOMLoadedLottie=function(){var D=this,Y,R,Z=Number((Y=this.data)==null?void 0:(R=Y.autoCloseDelay)==null?void 0:R.seconds)||0;this.fadeOutJobId=_.S7(_.yc,function(){D.lottiePlayerEl.classList.add("fadeout")},(Z-.25)*1E3);
this.autoCloseJobId=_.S7(_.yc,function(){D.closePopup()},Z*1E3)};
_.u.openPopup=function(){this.ironOverlayBehavior.open()};
_.u.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.CX(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Se(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.DH().resolve(_.Yw).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.yc.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.yc.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.u.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var D,Y;(D=this.lottieAnimationRef)==null||(Y=D.lottieEl)==null||Y.destroy();D=this.data.lottie;var R,Z;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:D.url+"_"+Math.random(),path:D.url,autoplay:!0,loop:(Z=(R=D.settings)==null?void 0:R.loop)!=null?Z:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.YF.Object.defineProperties(r8.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var D,Y;return!!((D=this.data)==null?0:(Y=D.lottie)==null?0:Y.url)}}});
r8.prototype.maybeInitializeLottie=r8.prototype.maybeInitializeLottie;r8.prototype.dataChanged=r8.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],r8.prototype,"rendererBehavior",void 0);_.q([_.v(_.pJ),_.x("design:type",Object)],r8.prototype,"ironOverlayBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],r8.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],r8.prototype,"lottiePlayerProps",void 0);
_.q([_.y(),_.x("design:type",Object)],r8.prototype,"lottieAnimationRef",void 0);_.q([_.fr("ytd-lottie-player"),_.x("design:type",HTMLElement)],r8.prototype,"lottiePlayerEl",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r8.prototype,"dataChanged",null);_.q([_.b("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],r8.prototype,"hasLottieAnimation",null);
_.q([_.Gm("data.lottie.url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r8.prototype,"maybeInitializeLottie",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],r8);
_.L(r8,"ytd-desktop-image-overlay-renderer",function(){if(PvK!==void 0)return PvK;var D=document.createElement("template");_.w(D,'\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-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return PvK=D},{mode:1});var Qy0;var w8=function(){return _.N.apply(this,arguments)||this};
_.n(w8,_.N);_.u=w8.prototype;_.u.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"}}}}};
_.u.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",_.jN(this,this.closePopup))};
_.u.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.jN(this,this.closePopup))};
_.u.dataChanged=function(){_.WC(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.A(this.data.header,DQK)&&(this.hasBackgroundBanner=!!_.A(this.data.header,DQK).backgroundBanner)};
_.u.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.jN(this,this.closePopup))};
_.u.closePopup=function(){this.data&&this.data.onCloseCommand&&_.zA(this.hostElement,[this.data.onCloseCommand])};
w8.prototype.handleBuyflowSelectionSubmitted=w8.prototype.handleBuyflowSelectionSubmitted;w8.prototype.dataChanged=w8.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],w8.prototype,"data",void 0);
_.q([_.y({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],w8.prototype,"hasBackgroundBanner",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w8.prototype,"dataChanged",null);_.q([_.Fv("yt-pdg-buy-flow-selection-submitted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w8.prototype,"handleBuyflowSelectionSubmitted",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],w8);
_.L(w8,"ytd-pdg-buy-flow-renderer",function(){if(Qy0!==void 0)return Qy0;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Qy0=D},{mode:1});var Blp;var $p=function(){var D=_.N.apply(this,arguments)||this;D.isOpen=!1;D.isPlaylistCreated=!1;return D};
_.n($p,_.N);_.u=$p.prototype;_.u.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.u.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.MX(this.hostElement,"yt-refit")};
_.u.onCreateTap=function(){var D=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.zA(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(Y,R){if(!_.f("killswitch_ep_in_create_playlist_response")&&(R==null?0:R.actions))for(Y=_.a(R.actions),R=Y.next();!R.done;R=Y.next())R=R.value,_.A(R,_.l$)&&D.ytComponentBehavior.resolveCommand(R)}}]),this.isPlaylistCreated=!0)};
_.u.onKeydown=function(D){if(D.keyCode===13)this.onCreateTap()};
_.u.onServiceRequestCompleted=function(D){D.stopPropagation();_.CX(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.u.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
$p.prototype.onServiceRequestCompleted=$p.prototype.onServiceRequestCompleted;$p.prototype.onKeydown=$p.prototype.onKeydown;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],$p.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$p.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],$p.prototype,"isOpen",void 0);
_.q([_.y(),_.x("design:type",Object)],$p.prototype,"isPlaylistCreated",void 0);_.q([_.y({value:{REQUIRED_LABEL:_.fX("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.fX("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],$p.prototype,"addToStrings",void 0);_.q([_.y({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.x("design:type",Array)],$p.prototype,"privacyBadge",void 0);
_.q([_.fr("#privacy-input"),_.x("design:type",Object)],$p.prototype,"privacyInput",void 0);_.q([_.fr("#name-input"),_.x("design:type",Object)],$p.prototype,"nameInput",void 0);_.q([_.Fv("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],$p.prototype,"onKeydown",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],$p.prototype,"onServiceRequestCompleted",null);
_.q([_.h({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],$p);
_.L($p,"ytd-add-to-playlist-create-renderer",function(){if(Blp!==void 0)return Blp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Blp=D},{mode:1});var pdz;var Emk;var vt=function(){var D=_.N.apply(this,arguments)||this;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.n(vt,_.N);vt.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
vt.prototype.onCheckboxChange=function(D){var Y=this;this.data&&_.pr(this,"yt-playlist-checkbox-changed",function(){var R=_.cG(D).checked?Y.data.addToPlaylistServiceEndpoint:Y.data.removeFromPlaylistServiceEndpoint;R&&_.DH().resolve(_.Yw).resolveCommand(R,{form:{element:Y.hostElement}});_.f("dl_playlist_killswitch")||Y.transferState!=="TRANSFER_STATE_UNKNOWN"&&Y.transferState!=="TRANSFER_STATE_FAILED"&&Y.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:Y.data.playlistId,action:"ACTION_SYNC"}})},
100)};
vt.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
vt.prototype.dataChanged=vt.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],vt.prototype,"data",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],vt.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],vt.prototype,"ytComponentBehavior",void 0);_.q([_.fr("#checkbox"),_.x("design:type",HTMLInputElement)],vt.prototype,"checkbox",void 0);
_.q([_.y({selector:_.qw,selectorArgs:["data.playlistId"]}),_.x("design:type",String)],vt.prototype,"transferState",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vt.prototype,"dataChanged",null);_.q([_.h({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],vt);
_.L(vt,"ytd-playlist-add-to-option-renderer",function(){if(Emk!==void 0)return Emk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Emk=D},{mode:1});_.tN(S49);var gmK=_.RT(function(D){var Y=D.data;return _.S("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.S("div",null,_.S(_.y_,{text:function(){return Y().title}})),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(R){return _.S("div",{class:"ytd-menu-title-renderer__subtitle"},_.S(_.y_,{text:R}))}}))},"Qg"),dNE=_.f("web_enable_sink_ytd_menu_title_renderer_ks")?S49:gmK,iuT=_.f("web_enable_sink_ytd_menu_title_renderer_ks")?_.Vv(S49):gmK;
gmK.idomCompat=!0;_.f("web_enable_sink_ytd_menu_title_renderer_ks")?_.It(dNE,"ytd-menu-title-renderer",{propNames:["data"]}):_.at(iuT,"ytd-menu-title-renderer",{props:{data:_.cs}});var oW=function(){var D=_.N.apply(this,arguments)||this;D.addToStrings={ADD_TO_DROPDOWN_LABEL:_.fX("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};D.closeButtonAriaLabel=_.fX("SBOX_INAPPROPRIATE_CANCEL");D.dialog=_.f("desktop_add_to_playlist_renderer_dialog_popup");return D};
_.n(oW,_.N);_.u=oW.prototype;_.u.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"}}}};
_.u.onPopupOpened=function(){_.Cr(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.u.onPopupClosed=function(){_.Cr(this.playlists,"scrollable",!1)};
_.u.computeAriaLabel=function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.a(this.data.actions);for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.menuTitleRenderer)return _.OM(Y.menuTitleRenderer.title)}};
_.u.onTapClose=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.YF.Object.defineProperties(oW.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.a(this.data.actions);for(var Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,Y.menuTitleRenderer)return Y.menuTitleRenderer}return!1}}});
oW.prototype.onPopupClosed=oW.prototype.onPopupClosed;oW.prototype.onPopupOpened=oW.prototype.onPopupOpened;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],oW.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oW.prototype,"ytRendererStamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],oW.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],oW.prototype,"addToStrings",void 0);_.q([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],oW.prototype,"ariaLabel",void 0);_.q([_.y(),_.x("design:type",String)],oW.prototype,"closeButtonAriaLabel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],oW.prototype,"dialog",void 0);
_.q([_.fr("#playlists"),_.x("design:type",HTMLElement)],oW.prototype,"playlists",void 0);_.q([_.fr("ytd-add-to-playlist-create-renderer"),_.x("design:type",Object)],oW.prototype,"createRenderer",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],oW.prototype,"menuTitleRenderer",null);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oW.prototype,"onPopupOpened",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oW.prototype,"onPopupClosed",null);_.q([_.h({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],oW);
_.L(oW,"ytd-add-to-playlist-renderer",function(){if(pdz!==void 0)return pdz;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return pdz=D},{mode:1});var Oub;var bz=function(){var D=_.N.apply(this,arguments)||this;D.isPlaylistEditComplete=!1;D.isCollabEngagementDisabled=!1;D.closeButtonAriaLabel=_.fX("SBOX_INAPPROPRIATE_CANCEL");D.saveButton={title:_.fX("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"};D.onValueChanged=function(){D.updateSaveButtonState();D.computeCollabEngagementDisabled()};
return D};
_.n(bz,_.N);_.u=bz.prototype;_.u.attached=function(){this.JSC$20392_scroller&&(this.JSC$20392_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20392_scroller.attached&&typeof this.JSC$20392_scroller.attached==="function"&&this.JSC$20392_scroller.attached())};
_.u.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.u.onPopupClosed=function(){this.reset()};
_.u.close=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.u.onClickSave=function(){var D=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var Y=[];this.nameInput.value!==null&&Y.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&Y.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var R=Number(this.privacyInput.value);isNaN(R)||Y.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:R})}this.votingInput.value!==null&&(R=this.votingInput.value)&&Y.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:R});if(Y.length>0){var Z;_.A((Z=this.data)==null?void 0:Z.updateSettingsEndpoint,_.hh).actions=Y;var t;if((t=this.data)==null?0:t.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){D.close()}}}),this.isPlaylistEditComplete=!0}}};
_.u.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
_.u.computeEditorData=function(D){var Y,R;return D==null?void 0:(Y=D.sections)==null?void 0:(R=Y[0])==null?void 0:R.playlistSettingsEditorCasualSectionRenderer};
_.u.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.u.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}}}}}};
_.u.computeAriaLabel=function(){var D,Y,R,Z=(D=this.data)==null?void 0:(Y=D.sections)==null?void 0:(R=Y[0])==null?void 0:R.playlistSettingsEditorCasualSectionRenderer;return _.OM(Z==null?void 0:Z.title)};
_.u.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"}))};
_.u.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.u.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.u.isNameChanged=function(){var D,Y,R;return(((D=this.editorData)==null?void 0:(Y=D.name)==null?void 0:(R=Y.textInputFormFieldRenderer)==null?void 0:R.value)||"")!==(this.nameInput.value||"")};
_.u.isDescriptionChanged=function(){var D,Y,R;return(((D=this.editorData)==null?void 0:(Y=D.description)==null?void 0:(R=Y.textInputFormFieldRenderer)==null?void 0:R.value)||"")!==(this.descriptionInput.value||"")};
_.u.isPrivacyChanged=function(){var D,Y,R,Z,t,X,M,W;return((M=(D=this.editorData)==null?void 0:(Y=D.privacy)==null?void 0:(R=Y.dropdownFormFieldRenderer)==null?void 0:(Z=R.dropdown)==null?void 0:(t=Z.dropdownRenderer)==null?void 0:(X=t.entries)==null?void 0:X.find(function(z){var I;return z==null?void 0:(I=z.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(W=M.privacyDropdownItemRenderer)==null?void 0:W.int32Value)!==this.privacyInput.value};
_.u.isVotingChanged=function(){var D,Y,R,Z,t,X,M,W;return((M=(D=this.editorData)==null?void 0:(Y=D.voting)==null?void 0:(R=Y.dropdownFormFieldRenderer)==null?void 0:(Z=R.dropdown)==null?void 0:(t=Z.dropdownRenderer)==null?void 0:(X=t.entries)==null?void 0:X.find(function(z){var I;return z==null?void 0:(I=z.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(W=M.privacyDropdownItemRenderer)==null?void 0:W.int32Value)!==this.votingInput.value};
bz.prototype.onPopupClosed=bz.prototype.onPopupClosed;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],bz.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],bz.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],bz.prototype,"ytRendererStamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],bz.prototype,"data",void 0);_.q([_.y({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.x("design:type",Array)],bz.prototype,"privacyBadge",void 0);_.q([_.y({computed:"computeEditorData(data)"}),_.x("design:type",Object)],bz.prototype,"editorData",void 0);_.q([_.y(),_.x("design:type",Object)],bz.prototype,"isPlaylistEditComplete",void 0);_.q([_.y(),_.x("design:type",Object)],bz.prototype,"isCollabEngagementDisabled",void 0);
_.q([_.y({value:{REQUIRED_LABEL:_.fX("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.fX("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],bz.prototype,"addToStrings",void 0);_.q([_.y({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],bz.prototype,"ariaLabel",void 0);_.q([_.y(),_.x("design:type",String)],bz.prototype,"closeButtonAriaLabel",void 0);
_.q([_.y(),_.x("design:type",Object)],bz.prototype,"saveButton",void 0);_.q([_.fr("#name-input"),_.x("design:type",Object)],bz.prototype,"nameInput",void 0);_.q([_.fr("#description-input"),_.x("design:type",Object)],bz.prototype,"descriptionInput",void 0);_.q([_.fr("#privacy-input"),_.x("design:type",Object)],bz.prototype,"privacyInput",void 0);_.q([_.fr("#voting-input"),_.x("design:type",Object)],bz.prototype,"votingInput",void 0);
_.q([_.fr("#scroller"),_.x("design:type",Object)],bz.prototype,"JSC$20392_scroller",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bz.prototype,"onPopupClosed",null);_.q([_.y(),_.x("design:type",Object)],bz.prototype,"onValueChanged",void 0);_.q([_.h({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],bz);
_.L(bz,"ytd-playlist-settings-editor-renderer",function(){if(Oub===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);Oub=D}D=Oub;return D},{mode:1});var cat;_.UD("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var yK=function(){return _.N.apply(this,arguments)||this};
_.n(yK,_.N);_.u=yK.prototype;_.u.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}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.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 D=this.get("data.nextButton.buttonRenderer.navigationEndpoint");D&&(this.nextNavigationEndpoint=D,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.u.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 D={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",D)}}};
_.u.onPopupOpened=function(D){D.detail!==this&&D.detail!==this.hostElement||!_.f("enable_premium_voluntary_pause")||_.CX(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.u.onNextButtonTap=function(){var D=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);D&&this.ytdOpenPopupBehavior.openPopup(D)};
_.u.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
yK.prototype.onPopupOpened=yK.prototype.onPopupOpened;yK.prototype.onSelectedResponseIndexChange=yK.prototype.onSelectedResponseIndexChange;yK.prototype.dataChanged=yK.prototype.dataChanged;_.q([_.v(_.Rv),_.x("design:type",Object)],yK.prototype,"ytdOpenPopupBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],yK.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],yK.prototype,"selectedResponseIndex",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yK.prototype,"dataChanged",null);_.q([_.Gm("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yK.prototype,"onSelectedResponseIndexChange",null);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],yK.prototype,"onPopupOpened",null);_.q([_.h({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],yK);
_.L(yK,"ytd-red-cancel-survey-renderer",function(){if(cat!==void 0)return cat;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return cat=D},{mode:1});var DuE;var Nd=function(){var D=_.N.apply(this,arguments)||this;D.closeButtonAriaLabel=_.fX("SBOX_INAPPROPRIATE_CANCEL");return D};
_.n(Nd,_.N);Nd.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Nd.prototype.onClickClose=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Nd.prototype,"rendererStamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Nd.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],Nd.prototype,"closeButtonAriaLabel",void 0);_.q([_.h({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Nd);
_.L(Nd,"ytd-search-filter-options-dialog-renderer",function(){if(DuE!==void 0)return DuE;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return DuE=D},{mode:1});var YAp;var IXp=function(){return function(D){D=D.availabilityType;return D===void 0||D==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||D==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var lz=function(){var D=_.N.apply(this,arguments)||this;D.qualityOptions=[];D.upsellOptions=[];D.showUpsellSection=!1;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.rememberSettingsChecked=!1;return D};
_.n(lz,_.N);_.u=lz.prototype;_.u.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}}}}};
_.u.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.u.updateQualityOptions=function(){if(this.formats===void 0)_.CX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var D=[],Y=[];this.showUpsellSection=!1;for(var R=_.a(this.formats),Z=R.next();!Z.done;Z=R.next())(Z=Z.value)&&(Z.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?Y.push(Z):D.push(Z));D.length&&(this.qualityOptions=jTh(D));Y.length&&(this.showUpsellSection=!0,this.upsellOptions=jTh(Y))}};
_.u.updateRememberString=function(){if(this.downloadQualityPickerEntity)var D=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var Y;D=(Y=this.data)==null?void 0:Y.premiumRememberSettingString}else{var R;D=(R=this.data)==null?void 0:R.rememberSettingString}D=D===void 0?_.fX("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):D;this.rememberSettingsCheckboxRenderer={title:_.tu(D),disabled:!1}};
_.u.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.YF.Object.defineProperties(lz.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
lz.prototype.updateRememberString=lz.prototype.updateRememberString;lz.prototype.updateQualityOptions=lz.prototype.updateQualityOptions;lz.prototype.dataChanged=lz.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],lz.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],lz.prototype,"data",void 0);
_.q([_.v(_.mb),_.x("design:type",Object)],lz.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Boolean)],lz.prototype,"selectedUpsellQuality",void 0);_.q([_.y({computed:"computeIcon_(data.premiumIcon)",value:""}),_.x("design:type",String)],lz.prototype,"premiumIcon",void 0);_.q([_.y({selector:Clp,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],lz.prototype,"downloadQualityPickerEntity",void 0);
_.q([_.y(),_.x("design:type",Array)],lz.prototype,"qualityOptions",void 0);_.q([_.y(),_.x("design:type",Array)],lz.prototype,"upsellOptions",void 0);_.q([_.y(),_.x("design:type",Object)],lz.prototype,"showUpsellSection",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],lz.prototype,"darkerDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],lz.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.q([_.fr("#remember-settings"),_.x("design:type",HTMLInputElement)],lz.prototype,"rememberSettingsCheckbox",void 0);_.q([_.y(),_.x("design:type",Object)],lz.prototype,"rememberSettingsChecked",void 0);_.q([_.y(),_.x("design:type",Function)],lz.prototype,"onRememberSettingsCheckedChanged",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lz.prototype,"dataChanged",null);
_.q([_.Gm("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lz.prototype,"updateQualityOptions",null);_.q([_.Gm("selectedUpsellQuality"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lz.prototype,"updateRememberString",null);_.q([_.h({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],lz);
_.L(lz,"ytd-download-quality-selector-content",function(){if(YAp!==void 0)return YAp;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return YAp=D},{mode:1});var Ry9;var JO=function(){var D=_.N.apply(this,arguments)||this;D.selectedUpsellQuality=!1;D.qualityOptions=[];D.darkerDarkTheme=_.f("web_darker_dark_theme");D.useUpsellDismissAlternate=_.f("use_not_now_dl_upsell_dismiss_cta");D.shouldShowAlternateUpsellDimiss=!1;D.rememberSettings=!1;D.rememberSettingsChecked=!1;D.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};D.rememberSettingsCheckedChanged=function(Y){D.rememberSettingsChecked=Y};
return D};
_.n(JO,_.N);_.u=JO.prototype;
_.u.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tu(_.fX("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.tu(_.fX("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tu(_.fX("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.tu(_.fX("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.u.updateQualityOptions=function(){this.formats===void 0?_.CX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=jTh(this.formats)};
_.u.onQualityOptionsSelect=function(D){if(this.qualityOptions&&D){D!==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 Y=_.a(this.qualityOptions.entries()),R=Y.next();!R.done;R=
Y.next()){R=_.a(R.value);var Z=R.next().value;R=R.next().value;var t=void 0,X=void 0;if(((t=R)==null?void 0:(X=t.settingsRadioOptionRenderer)==null?void 0:X.id)===D){this.selectedQualityIndex=Z;D=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((D=this.formats[Z])==null?void 0:D.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.u.onClickSubmit=function(){var D;if((D=this.downloadButtonRenderer)==null||!D.isDisabled){var Y,R;D=(R=(Y=this.data)==null?void 0:Y.onSubmitEndpoint)!=null?R:{};var Z,t;if(this.formats&&(((Z=_.A(D,_.Vi))==null?0:Z.videoId)||((t=_.A(D,_.eG))==null?0:t.playlistId))){var X,M,W,z,I,F;Y={formatType:(z=(X=this.formats)==null?void 0:(M=X[(W=this.selectedQualityIndex)!=null?W:0])==null?void 0:M.format)!=null?z:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(I=this.getOfflineEndpoint(D))==null?void 0:(F=I.actionParams)==null?void 0:F.settingsAction)};this.getOfflineEndpoint(D).actionParams=Y;this.ytComponentBehavior.resolveCommand(D)}_.CX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.u.onClickUpsell=function(){var D;if((D=this.upsellButtonRenderer)==null||!D.isDisabled){var Y,R;D=(R=(Y=this.data)==null?void 0:Y.upsellEndpoint)!=null?R:{};this.ytComponentBehavior.resolveCommand(D);_.CX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);Y="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Z,t,X,M;Y=(M=(Z=this.formats)==null?void 0:(t=Z[(X=this.selectedQualityIndex)!=null?X:0])==null?void 0:t.format)!=null?M:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:Y}})}};
_.u.onClickClose=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.u.getOfflineSettingsAction=function(D,Y){return D?Y===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":Y:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.u.getOfflineEndpoint=function(D){return _.A(D,_.Vi)?_.A(D,_.Vi):_.A(D,_.eG)};
_.YF.Object.defineProperties(JO.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.tu(_.fX("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
JO.prototype.updateQualityOptions=JO.prototype.updateQualityOptions;JO.prototype.dataChanged=JO.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],JO.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],JO.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Number)],JO.prototype,"selectedQualityIndex",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"selectedUpsellQuality",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],JO.prototype,"ytdReduxBehavior",void 0);
_.q([_.y({selector:Clp,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],JO.prototype,"downloadQualityPickerEntity",void 0);_.q([_.y(),_.x("design:type",Array)],JO.prototype,"qualityOptions",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],JO.prototype,"darkerDarkTheme",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],JO.prototype,"useUpsellDismissAlternate",void 0);
_.q([_.y(),_.x("design:type",Object)],JO.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"downloadButtonRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"upsellButtonRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"cancelButtonRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"upsellCancelButtonRenderer",void 0);_.q([_.y(),_.x("design:type",Object)],JO.prototype,"rememberSettings",void 0);
_.q([_.y(),_.x("design:type",Object)],JO.prototype,"rememberSettingsChecked",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"dataChanged",null);_.q([_.Gm("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"updateQualityOptions",null);_.q([_.h({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],JO);
_.L(JO,"ytd-download-quality-selector-renderer",function(){if(Ry9!==void 0)return Ry9;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Ry9=D},{mode:1});var Z1I;var kp=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(kp,_.N);kp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kp.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],kp.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],kp.prototype,"darkerDarkTheme",void 0);_.q([_.y({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],kp.prototype,"infoIcon",void 0);
_.q([_.y({computed:"computeIcon_(data.warningIcon)"}),_.x("design:type",Object)],kp.prototype,"warningIcon",void 0);_.q([_.h({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],kp);
_.L(kp,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Z1I!==void 0)return Z1I;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Z1I=D},{mode:1});var tyK;var UI=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(UI,_.N);UI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UI.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"}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],UI.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],UI.prototype,"darkerDarkTheme",void 0);_.q([_.h({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],UI);
_.L(UI,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(tyK!==void 0)return tyK;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return tyK=D},{mode:1});var su9;var K6=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(K6,_.N);K6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
K6.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"}}}}};
K6.prototype.onServiceRequestSentOrCompleted=function(D,Y){Y&&Y.actions&&Y.actions.length>0&&_.CX(this.hostElement,"yt-close-popup-action",[this.is])};
K6.prototype.onServiceRequestSentOrCompleted=K6.prototype.onServiceRequestSentOrCompleted;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],K6.prototype,"darkerDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],K6.prototype,"data",void 0);
_.q([_.Fv("yt-service-request-completed"),_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],K6.prototype,"onServiceRequestSentOrCompleted",null);_.q([_.h({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],K6);
_.L(K6,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(su9!==void 0)return su9;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return su9=D},{mode:1});var X7h;var hO=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.submitButtonDisabled=!0;return D};
_.n(hO,_.N);_.u=hO.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.u.onDataChanged=function(){var D,Y,R;if(((D=this.data)==null?void 0:(Y=D.confirmButton)==null?void 0:(R=Y.buttonRenderer)==null?void 0:R.isDisabled)!==void 0){var Z,t,X;this.submitButtonDisabled=(Z=this.data)==null?void 0:(t=Z.confirmButton)==null?void 0:(X=t.buttonRenderer)==null?void 0:X.isDisabled}};
_.u.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.u.updateSubmitButtonDisabledFromBinding=function(D){this.submitButtonDisabled=D.detail.value};
_.u.updateSubmitButtonDisabledFromConfirmCheckbox=function(D){this.submitButtonDisabled=!D.detail.value};
hO.prototype.onDataChanged=hO.prototype.onDataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hO.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],hO.prototype,"darkerDarkTheme",void 0);
_.q([_.y(),_.x("design:type",Object)],hO.prototype,"submitButtonDisabled",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hO.prototype,"onDataChanged",null);_.q([_.h({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],hO);
_.L(hO,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(X7h!==void 0)return X7h;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return X7h=D},{mode:1});var udu;var L6=function(){return _.N.apply(this,arguments)||this};
_.n(L6,_.N);_.YF.Object.defineProperties(L6.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;return((D=this.data)==null?void 0:D.title)+" "+((Y=this.data)==null?void 0:Y.metadataPrimary)+" "+((R=this.data)==null?void 0:R.metadataSecondary)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],L6.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],L6.prototype,"data",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],L6.prototype,"ariaLabel",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],L6);
_.L(L6,"ytd-compact-product-list-item-renderer",function(){if(udu!==void 0)return udu;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return udu=D},{mode:1});var aM0;var mq=function(){return _.N.apply(this,arguments)||this};
_.n(mq,_.N);mq.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]]"}}}}}};
_.YF.Object.defineProperties(mq.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],mq.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mq.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],mq);
_.L(mq,"ytd-compact-product-list-renderer",function(){if(aM0!==void 0)return aM0;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return aM0=D},{mode:1});var Myk;var qd=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(qd,_.N);_.u=qd.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.u.getBackgroundUrl=function(){var D=this.get("data.headerImage.thumbnails");return D?"url("+_.MW(D,this.hostElement.clientWidth)+")":""};
_.u.onDataChanged=function(){var D=this.getBackgroundUrl();D&&(this.header.style.backgroundImage=D);D=_.K2();var Y=_.Ud(),R=this.get("data.trackingParams");R&&Y&&D&&_.Qk(D,Y,_.oT(R));D=_.a(this.hostElement.querySelectorAll("yt-img-shadow"));for(Y=D.next();!Y.done;Y=D.next())Y.value.onShow()};
_.u.onPopupClosed=function(D){_.cG(D).localName==="ytd-membership-post-cancel-renderer"&&_.CX(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
qd.prototype.onPopupClosed=qd.prototype.onPopupClosed;qd.prototype.onDataChanged=qd.prototype.onDataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],qd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],qd.prototype,"darkerDarkTheme",void 0);
_.q([_.fr("#header"),_.x("design:type",HTMLDivElement)],qd.prototype,"header",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qd.prototype,"onDataChanged",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],qd.prototype,"onPopupClosed",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],qd);
_.L(qd,"ytd-membership-post-cancel-renderer",function(){if(Myk!==void 0)return Myk;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Myk=D},{mode:1});var C5b;var Ht=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(Ht,_.N);Ht.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Ht.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Ht.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Ht.prototype,"darkerDarkTheme",void 0);_.q([_.fr("ytd-feedback-survey-renderer"),_.x("design:type",Object)],Ht.prototype,"feedbackSurveyRenderer",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Ht);
_.L(Ht,"ytd-sponsorship-confirm-cancel-content",function(){if(C5b!==void 0)return C5b;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return C5b=D},{mode:1});var W9u;var xp=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.maybeSubmitFeedback=function(){D.content&&D.content.maybeSubmitFeedback()};
return D};
_.n(xp,_.N);_.u=xp.prototype;_.u.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.u.onYtPopupOpened=function(D,Y){Y===this&&this.data&&this.data.onOpenCommands&&_.Se(this.hostElement,this.data.onOpenCommands,this.hostElement);_.CX(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.u.onYtPopupClosed=function(D,Y){(Y&&Y.canceled===!0||Y&&Y.canceled===!1&&Y.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Se(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.u.onYtServiceRequestCompleted=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.u.onYtServiceRequestError=function(D){_.iI(this.hostElement,D.detail.error.message)};
_.u.onDataChanged=function(){if(this.isAttached){var D=this.backgroundUrl;D&&(_.aU(this.hostElement).querySelector("#header").style.backgroundImage=D)}};
_.YF.Object.defineProperties(xp.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return D?"url("+_.MW(D,this.hostElement.clientWidth)+")":""}}});
xp.prototype.onDataChanged=xp.prototype.onDataChanged;xp.prototype.onYtServiceRequestError=xp.prototype.onYtServiceRequestError;xp.prototype.onYtServiceRequestCompleted=xp.prototype.onYtServiceRequestCompleted;xp.prototype.onYtPopupClosed=xp.prototype.onYtPopupClosed;xp.prototype.onYtPopupOpened=xp.prototype.onYtPopupOpened;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],xp.prototype,"data",void 0);_.q([_.y({value:function(){return _.fX("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],xp.prototype,"closeButtonAriaLabel",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],xp.prototype,"darkerDarkTheme",void 0);_.q([_.fr("#scrollable"),_.x("design:type",Object)],xp.prototype,"scrollable",void 0);_.q([_.fr("ytd-sponsorship-confirm-cancel-content"),_.x("design:type",Object)],xp.prototype,"content",void 0);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],xp.prototype,"onYtPopupOpened",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],xp.prototype,"onYtPopupClosed",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xp.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xp.prototype,"onYtServiceRequestError",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xp.prototype,"onDataChanged",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],xp);
_.L(xp,"ytd-sponsorship-confirm-cancel-renderer",function(){if(W9u!==void 0)return W9u;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return W9u=D},{mode:_.zD("kevlar_poly_si_batch_j081")?1:2});var zyp;var Pt=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(Pt,_.N);Pt.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Pt.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Pt.prototype,"darkerDarkTheme",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Pt);
_.L(Pt,"ytd-sponsorships-celebration-content",function(){if(zyp!==void 0)return zyp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return zyp=
D},{mode:1});var SAp;var Tnk=_.gY(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),QK=function(){var D=_.N.apply(this,arguments)||this;D.scriptsAppended=!1;D.useFullWidthPrimaryButton=!1;D.buttonOverrides={type:"tonal",style:"overlay-dark"};return D};
_.n(QK,_.N);_.u=QK.prototype;_.u.dataChanged=function(){var D;this.useFullWidthPrimaryButton=!((D=this.data)==null||!D.useFullWidthPrimaryButton)};
_.u.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:_.f("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onDataChanged=function(){var D;(D=this.header)==null||D.style.setProperty("background-color",this.backgroundColor);if(D=this.headerImageUrl){var Y;(Y=this.header)==null||Y.style.setProperty("background-image",D)}Y=_.K2(4);D=_.Ud(4);var R=this.get("data.trackingParams");if(R&&D&&Y){var Z=_.oT(R);_.Qk(Y,D,Z);_.f("combine_ve_grafts")?_.n8().graftServerVe(R,D,4):_.Qk(Y,D,Z)}Y=_.a(this.hostElement.querySelectorAll("yt-img-shadow"));for(D=Y.next();!D.done;D=Y.next())D.value.onShow();if(Y=this.get("data.gtmId"))_.J$(Y,
_.JQ("GL","")),this.setupConversionTracking()};
_.u.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("script");var Y=_.EN(Tnk.join(""));_.gg(D,Y);document.head.appendChild(D);D=document.createElement("noscript");D.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(D);this.scriptsAppended=!0}};
_.u.onPopupClosed=function(D){if(_.cG(D).localName==="ytd-sponsorships-celebration-renderer"){_.CX(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var Y;this.data&&((Y=this.data)==null?0:Y.dismissCommand)&&_.GD.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.YF.Object.defineProperties(QK.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.xI(D)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return D?"url("+_.MW(D,this.hostElement.getBoundingClientRect().width)+")":""}}});
QK.prototype.onPopupClosed=QK.prototype.onPopupClosed;QK.prototype.onDataChanged=QK.prototype.onDataChanged;QK.prototype.dataChanged=QK.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],QK.prototype,"data",void 0);
_.q([_.fr("#header"),_.x("design:type",HTMLElement)],QK.prototype,"header",void 0);_.q([_.y(),_.x("design:type",Object)],QK.prototype,"scriptsAppended",void 0);_.q([_.y({type:Boolean,reflectToAttribute:!0}),_.x("design:type",Object)],QK.prototype,"useFullWidthPrimaryButton",void 0);_.q([_.y(),_.x("design:type",Object)],QK.prototype,"buttonOverrides",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QK.prototype,"dataChanged",null);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QK.prototype,"onDataChanged",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],QK.prototype,"onPopupClosed",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],QK);
_.L(QK,"ytd-sponsorships-celebration-renderer",function(){if(SAp!==void 0)return SAp;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return SAp=D},{mode:1});var juh;var Bt=function(){var D=_.N.apply(this,arguments)||this;D.isToggleChecked=!1;return D};
_.n(Bt,_.N);Bt.prototype.onDataChanged=function(){var D;this.isToggleChecked=((D=this.data)==null?void 0:D.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Bt.prototype.close=function(){var D;((D=this.data)==null?0:D.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Bt.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var D,Y=_.A((D=this.data)==null?void 0:D.switchButton,s$K);Y&&(this.isToggleChecked&&Y.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Y.switchOnInnertubeCommand),!this.isToggleChecked&&Y.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Y.switchOffInnertubeCommand))};
Bt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bt.prototype.onDataChanged=Bt.prototype.onDataChanged;_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Bt.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Bt.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],Bt.prototype,"isToggleChecked",void 0);_.q([_.y({value:_.fX("CLOSE")}),_.x("design:type",String)],Bt.prototype,"closeButtonAriaLabel",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bt.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Bt);
_.L(Bt,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(juh!==void 0)return juh;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return juh=D},{mode:1});var IMK;var p6=function(){return _.N.apply(this,arguments)||this};
_.n(p6,_.N);_.u=p6.prototype;_.u.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"}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.detached=function(){this.playerElement.stop()};
_.u.onYtServiceRequestCompleted=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.u.onYtServiceRequestError=function(D){_.iI(this.hostElement,D.detail.error.message)};
_.u.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.u.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.u.getTier=function(D,Y){return!D||!D.tiers||Y<0?null:_.A(D.tiers[Y],MnE)};
_.u.moreThanOne=function(D){return!!(D&&D.length>1)};
_.u.tierOverviewTap=function(D){var Y=this;this.selectedTier=D.model.index;_.cy(this,function(){_.MX(Y.hostElement,"yt-refit")})};
_.u.computeSelectedClass=function(D,Y){return this.isSelected(D,Y)?"selected":""};
_.u.computeButtonAriaPressed=function(D,Y){return this.isSelected(D,Y)?"true":"false"};
_.u.isSelected=function(D,Y){return D===Y};
_.u.onDataChanged=function(){_.aU(this.hostElement).querySelector("#header-overlay").style.visibility="";_.aU(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 D=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),
Y=D.next();!Y.done;Y=D.next())Y.value.onShow();var R;this.set("selectedTier",(R=this.get("data.targetTierIndex"))!=null?R:0);var Z;(D=(Z=this.data)==null?void 0:Z.onVisible)&&this.ytComponentBehavior.resolveCommand(D)};
_.u.initializeVe=function(D){var Y=_.K2(),R=_.Ud(),Z=this.get("data.trackingParams");R&&Y&&(this.screenLayer=4,Y=_.Lb(_.Faj)(void 0,69877,{clientScreenNonce:Y,visualElement:R},void 0,void 0,void 0),_.L2(Y,69877,4),R=_.Ud(4),Z&&R&&(Z=_.oT(Z),_.Qk(Y,R,Z),D&&(this.offerVideoVe=_.TP(74659),_.Qk(Y,Z,this.offerVideoVe))))};
_.u.setHeaderBackground=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.aU(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.xI(D);if(D=this.getHeaderImage())D=_.MW(D,screen.width),_.aU(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+D+")"};
_.u.getHeaderImage=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&D?D:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.u.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.u.setupVideoPlayer=function(D){var Y=this,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1)return R=Y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Z=Y.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.f("kevlar_player_update_killswitch")?Y.playerElement.update({args:{autoplay:R,video_id:D,player_params:Z}}):Y.playerElement.loadVideoWithPlayerVars({autoplay:R,video_id:D,player_params:Z}),
M.yield(Y.playerElement.getPlayerPromise(),2);t=M.yieldResult;t.addEventListener("onStateChange",function(W){Y.onPlayerStateChange(W)});
t.setScreenLayer(Y.screenLayer);(X=_.K2(4))&&Y.offerVideoVe&&_.pX(X,Y.offerVideoVe);R&&(Y.pauseOtherPlayers(),Y.playerElement.focusOnPlayer(),Y.playerElement.getPlayer().hideControls(),_.Ak(_.yc,function(){Y.fadeOutHeaderOverlay()},4E3));
_.V9(M)})};
_.u.onPlayerStateChange=function(D){D===1?this.backgroundPlayerElement&&(D=this.backgroundPlayerElement.player_.getPlayerState(),D!==1&&D!==3||this.backgroundPlayerElement.pause()):D===0&&(_.aU(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.aU(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.u.fadeOutHeaderOverlay=function(){_.aU(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.u.onHeaderTap=function(){if(this.offerVideo){_.aU(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var D;((D=this.playerElement.player_)==null?void 0:D.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(D=_.K2(4))&&this.offerVideoVe&&_.dC(D,this.offerVideoVe)}};
_.u.getBackgroundImageLayerClass=function(D){return D?"background-image-layer-with-video":""};
_.u.getHeaderClass=function(D){return D?"header-with-video":""};
_.u.getHeaderOverlayClass=function(D){return D?"header-overlay-with-video":""};
_.u.getTitleContainerClass=function(D,Y){return D?"title-container-with-video":Y?"title-container-without-video-flexible":"title-container-without-video"};
_.u.tierTitleDisplayStatus=function(D){return this.moreThanOne(D)?"hide":"show"};
_.u.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.DH().resolve(_.mL).getPlayerElement():this.backgroundPlayerElement=_.sm();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var D=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=D===1||D===3;this.backgroundPlayerElement.pause()}};
_.u.isMiniplayerActive=function(){return _.DH().resolve(_.mL).isMiniplayerActive()};
_.u.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("selected-tier-changed",this.selectedTier))};
p6.prototype.selectedTierChangedForBinding=p6.prototype.selectedTierChangedForBinding;p6.prototype.onDataChanged=p6.prototype.onDataChanged;p6.prototype.onYtPopupClosed=p6.prototype.onYtPopupClosed;p6.prototype.onYtPopupOpened=p6.prototype.onYtPopupOpened;p6.prototype.onYtServiceRequestError=p6.prototype.onYtServiceRequestError;p6.prototype.onYtServiceRequestCompleted=p6.prototype.onYtServiceRequestCompleted;
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],p6.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],p6.prototype,"data",void 0);_.q([_.y({value:0}),_.x("design:type",Number)],p6.prototype,"selectedTier",void 0);
_.q([_.y({value:""}),_.x("design:type",String)],p6.prototype,"offerVideo",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],p6.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.q([_.y({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ey(this)}}),
_.x("design:type",String)],p6.prototype,"playerId",void 0);_.q([_.fr("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],p6.prototype,"scrollable",void 0);_.q([_.fr("ytd-sponsorships-tier-renderer"),_.x("design:type",Object)],p6.prototype,"tierRenderer",void 0);_.q([_.fr("#player"),_.x("design:type",Object)],p6.prototype,"playerElement",void 0);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],p6.prototype,"onYtServiceRequestCompleted",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],p6.prototype,"onYtServiceRequestError",null);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p6.prototype,"onYtPopupOpened",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p6.prototype,"onYtPopupClosed",null);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p6.prototype,"onDataChanged",null);
_.q([_.Gm("selectedTier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p6.prototype,"selectedTierChangedForBinding",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],p6);
_.L(p6,"ytd-sponsorships-offer-renderer",function(){if(IMK!==void 0)return IMK;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return IMK=D},{mode:_.zD("kevlar_poly_si_batch_j077")?1:2});var F90;var EI=function(){var D=_.N.apply(this,arguments)||this;D.buttonOverrides={type:"filled",style:"mono"};return D};
_.n(EI,_.N);EI.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}}}}}};
EI.prototype.backgroundColorChanged=function(){var D,Y,R,Z=(Y=_.A((D=this.data)==null?void 0:D.content,Cuz))==null?void 0:(R=Y.backgroundColor)==null?void 0:R.backgroundColor;Z&&(D=_.HG(Z),_.aU(this.hostElement).querySelector("#banner").style.backgroundColor=D,_.aU(this.hostElement).querySelector("#abstract-art").style.backgroundColor=D)};
EI.prototype.attached=function(){this.JSC$20478_scroller&&(this.JSC$20478_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20478_scroller.attached&&typeof this.JSC$20478_scroller.attached==="function"&&this.JSC$20478_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
EI.prototype.backgroundColorChanged=EI.prototype.backgroundColorChanged;_.q([_.y(),_.x("design:type",Object)],EI.prototype,"data",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#scroller"),_.x("design:type",Object)],EI.prototype,"JSC$20478_scroller",void 0);_.q([_.y(),_.x("design:type",Object)],EI.prototype,"buttonOverrides",void 0);
_.q([_.Gm("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],EI.prototype,"backgroundColorChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],EI);
_.L(EI,"ytd-sponsorships-promotion-celebration-renderer",function(){if(F90!==void 0)return F90;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return F90=D},{mode:_.zD("kevlar_poly_si_batch_j077")?1:2});var Grp;var Vy0;var g8=function(){return _.N.apply(this,arguments)||this};
_.n(g8,_.N);g8.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
g8.prototype.computeIsInitiallyChecked=function(D){return D===1};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],g8.prototype,"data",void 0);_.q([_.fr("#checkbox"),_.x("design:type",Object)],g8.prototype,"checkbox",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],g8);
_.L(g8,"ytd-subscription-toggle-option-renderer",function(){if(Vy0!==void 0)return Vy0;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Vy0=D},{mode:1});var d8=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return D};
_.n(d8,_.N);d8.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"}}}};
d8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
d8.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var D=_.aU(this.hostElement).querySelector("#options").selected;D=this.data.options[D].subscriptionRadioOptionRenderer.serviceEndpoint;var Y=_.aU(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");Y&&D&&D.modifyChannelNotificationPreferenceEndpoint&&(Y=Y.getValue())&&(D.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[Y]);_.DH().resolve(_.Yw).resolveCommand(D,{form:{element:this.hostElement}});
_.CX(this.hostElement,"yt-close-popup-action")};
_.YF.Object.defineProperties(d8.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var D=this.data.options,Y=0;Y<D.length;Y++){var R=D[Y].subscriptionRadioOptionRenderer;if(R&&R.selected)return Y}return null}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],d8.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],d8.prototype,"eventForwardingBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],d8.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],d8.prototype,"darkerDarkTheme",void 0);_.q([_.b("data.options"),_.x("design:type",Object),_.x("design:paramtypes",[])],d8.prototype,"initialIndex",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],d8);
_.L(d8,"ytd-subscription-notification-options-renderer",function(){if(Grp!==void 0)return Grp;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Grp=D},{mode:1});var fMp;var iz=function(){return _.N.apply(this,arguments)||this};
_.n(iz,_.N);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],iz.prototype,"data",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],iz);
_.L(iz,"ytd-tvfilm-offer-groups-renderer",function(){if(fMp!==void 0)return fMp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return fMp=D},{mode:1});var eyI;var OI=function(){var D=_.N.apply(this,arguments)||this;D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(OI,_.N);_.u=OI.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.u.computeThumbnailClass=function(D){return D.thumbnailOverlays?D.isShow?"thumbnail-show":"thumbnail-movie":D.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.u.computeCommerceSectionClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.u.computeTitleClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.u.onDataChanged=function(){[].concat(_.oK(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(D){D.onShow()})};
OI.prototype.onDataChanged=OI.prototype.onDataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],OI.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],OI.prototype,"darkerDarkTheme",void 0);
_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OI.prototype,"onDataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],OI);
_.L(OI,"ytd-ypc-offers-overlay-renderer",function(){if(eyI!==void 0)return eyI;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return eyI=D},{mode:_.zD("kevlar_poly_si_batch_j028")?1:2});var AXk;var nqK=function(){this.usedMethods=new Set};
nqK.prototype.add=function(D){this.usedMethods.add(D)};
nqK.prototype.reset=function(){this.usedMethods.clear()};var $uE=function(D,Y){this.query=D;this.previousSearchQuery=Y;this.id=rX9++;if(!w7b){Y=_.JQ("SBOX_SETTINGS");D="https://"+((Y==null?void 0:Y.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var R=Y==null?void 0:Y.REQUEST_LANGUAGE;R&&(D+="&hl="+R);(R=Y==null?void 0:Y.REQUEST_DOMAIN)&&(D+="&gl="+R);D+="&client=youtube&gs_ri=youtube";(R=Y==null?void 0:Y.SUGG_EXP_ID)&&(D+="&sugexp="+encodeURIComponent(R));(R=Y==null?void 0:Y.PSUGGEST_TOKEN)&&(D+="&tok="+R);(Y=
Y==null?void 0:Y.SESSION_INDEX)&&(D+="&authuser="+Y);_.f("desktop_enable_visual_suggest")&&(D+="&h=180&w=320&ytvs=1");w7b=D}},vqt=function(D){var Y="q="+encodeURIComponent(D.query);
D.previousSearchQuery&&(Y+="&pq="+encodeURIComponent(D.previousSearchQuery));return Y},oqp=function(){var D=_.JQ("SBOX_SETTINGS"),Y={};
if(D==null?0:D.SEND_VISITOR_DATA)Y["X-Goog-Visitor-Id"]=D==null?void 0:D.VISITOR_DATA;return Y},b1T=function(D){var Y=w7b;
Y+="&gs_id="+D.id.toString(36);Y+="&q="+encodeURIComponent(D.query);Y+="&cp="+D.query.length;D.previousSearchQuery&&(Y+="&pq="+encodeURIComponent(D.previousSearchQuery));(D=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(Y+="&video_id="+D);return Y},rX9=0,w7b="";var yXK=_.Cs.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Nn9=_.Cs.SEARCH_ENTITY_SUGGESTION_MOVIE,lM0=_.Cs.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,JXh=_.Cs.SEARCH_ENTITY_SUGGESTION_TV_SHOW,kru=function(D,Y){this.text=D;this.bold=Y},UuE=function(D,Y,R){this.input=Y;
this.index=R;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=D[0];this.type=D[1];this.subtypes=D[2];var Z;this.displayText=f3((Z=D[3])==null?void 0:Z.b);var t;this.ignoredPrefix=f3((t=D[3])==null?void 0:t.a);var X,M;this.hasNewVideo=((X=D[3])==null?void 0:(M=X.zam)==null?void 0:M.toString())==="true"?!0:!1;var W;this.visualSuggestUrl=(W=D[3])==null?void 0:W.zai;var z;this.entityType=f3((z=D[3])==null?void 0:z.zap);var I;this.entityName=f3((I=D[3])==null?void 0:I.zao);var F;Y=f3((F=
D[3])==null?void 0:F.zaf);var G;this.entityMid=(G=D[3])==null?void 0:G.zae;F=GDT(this.subtypes,this.entityMid);if(Y&&F){if(Y){G="";switch(F){case "YOUTUBE_ENTITY_TYPE_SONG":G=lM0;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":G=yXK;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":G=JXh;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":G=Nn9}F=F==="YOUTUBE_ENTITY_TYPE_SONG"||F==="YOUTUBE_ENTITY_TYPE_ALBUM"?G+" \u2022  \u2022 "+Y:Y}else F="";this.entitySubtitle=F}var V;this.externalChannelId=(V=D[3])==null?void 0:V.zav;var e;
this.entityThumbnailAttributionUrl=(e=D[3])==null?void 0:e.zaq},hy9=function(D,Y){var R=[],Z,t=(Z=D.displayText)!=null?Z:D.text;
(Y==null?0:Y.useEntityName)&&K9b(D)&&D.entityName&&(t=D.entityName);if(D.type===33)return R.push(new kru(t,!1)),R;if(t.length>=D.input.length&&t.substring(0,D.input.length)===D.input)R.push(new kru(D.input,!1)),R.push(new kru(t.substring(D.input.length),!0));else{var X=new Set(D.input.split(/\s/)),M=t.split(/\s/);R=M.map(function(W,z){return new kru(W.trim()+(z===M.length-1?"":" "),!X.has(W))})}return R},K9b=function(D){var Y=!!GDT(D.subtypes);
D=!!D.entityMid;return Y||D};var L9k=function(D){this.rawResponse=["",[],{}];this.suggestions=[];try{var Y=JSON.parse(Vvt(D));if(typeof Y==="object"&&Y!==null)this.rawResponse=Y;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Z){console.log("Suggest: Failed to parse SuggestResponse!");return}var R=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Z,t){return new UuE(Z,R,t)})};var mu9=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new nqK;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20515_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},qAt,H19=function(){qAt||(qAt=new mu9);
return qAt};
mu9.prototype.updateSuggestions=function(D){var Y=this;this.availableSuggestions.forEach(function(R){Y.previousSuggestions[R]=!0});
this.availableSuggestions=D.map(function(R){var Z=R.type.toString();R.subtypes.length>0&&(Z+="i"+R.subtypes.join("i"),Z+="k"+R.suggestionSources.COMPLETE_SERVER.toString());return Z})};
var xuk=function(D,Y){var R=Date.now();D.firstEditTime<0&&(D.firstEditTime=R);Y&&(D.lastQueryBuildTime=R);D.lastEditTime=R};
mu9.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20515_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var P5k=function(D){var Y="";D.availableSuggestions.forEach(function(t){delete D.previousSuggestions[t]});
for(var R=_.a(Object.keys(D.previousSuggestions)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,D.previousSuggestions[Z]&&(Y+=(Y?"j":"")+Z);return Y},QuI=function(D,Y){var R=[];
Y&&(R[1]=Y.toString());R[0]="youtube";R[7]=Date.now()-D.startTime;R[6]=D.sessionNumber;D.zeroPrefixSuggestionCount>=0&&(R[33]=D.zeroPrefixSuggestionCount);R[13]=D.outOfSyncResponseCount;if(D.availableSuggestions.length>0){for(var Z=Y="",t=0,X=_.a(D.availableSuggestions),M=X.next();!M.done;M=X.next())M=M.value,M!==Z&&(t>1&&(Y+="l"+t),Y+=(Z?"j":"")+M,t=0,Z=M),t+=1;t>1&&(Y+="l"+t);R[3]=Y}R[35]=P5k(D);D.selectedSuggestionIndex>=0&&(R[2]=D.selectedSuggestionIndex);var W;if(Y=(W=_.JQ("SBOX_SETTINGS"))==
null?void 0:W.SUGG_EXP_ID)R[19]=D.normalize(Y),W=0,D.experimentTriggeredBeforeFinal&&(W|=1),D.experimentTriggeredFinal&&(W|=2),R[20]=W;R[26]=Array.from(D.inputMethodsTracker.usedMethods).join("j");if(D.JSC$20515_totalRoundTripTime>0){R[15]=D.JSC$20515_totalRoundTripTime;R[14]=D.maxRoundTripTime;W=[];for(t=Y=0;t<10;t++)Z=D.roundTripTimeHistogram[t],Z===0?Y++:(Y>1?W.push(t+"-"+Z):Y===1?W.push("0j"+Z):W.push(Z.toString()),Y=0);W=W.join("j");R[16]=W}D.zeroPrefixRoundTripTime>0&&(R[36]=D.zeroPrefixRoundTripTime);
D.lastQueryBuildTime>0&&(R[18]=D.lastQueryBuildTime-D.startTime);D.firstEditTime>0&&(R[4]=D.firstEditTime-D.startTime);D.lastEditTime>0&&(R[5]=D.lastEditTime-D.startTime);return R.join(".")};
mu9.prototype.normalize=function(D){return D.replaceAll(".","-")};
var BnK=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var ct=function(){var D=_.N.apply(this,arguments)||this;D.microphoneSpinnerActive=!1;D.noAnimations=!1;D.boundExitClick=function(){D.onExitButtonClick()};
D.speechOverlayClassName="";D.isLevelAnimating=!1;D.playCloseDialogAudioFeedback=!0;D.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return D};
_.n(ct,_.N);_.u=ct.prototype;_.u.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.u.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=kqK()};
_.u.dataChanged=function(){this.logDialog()};
_.u.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var D;(D=this.manager.audioPlayer)!=null&&(D.JSC$19824_audioEnabled=!1)}this.manager.stop();(D=this.manager.audioPlayer)!=null&&(D.JSC$19824_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.u.handleSpeechQueryCompleteAction=function(D){var Y=D.navigationAction;Y&&(D.trackingParams&&_.n8().graftServerVe(D.trackingParams,this.dialogVe,5),_.MX(this.hostElement,"yt-navigate",{endpoint:Y,tempData:this.getNavigationParams(Y),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.u.onExitButtonClick=function(){this.closeDialog()};
_.u.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var D;if((D=this.manager)!=null){var Y;(Y=D.audioPlayer)==null||Rr(Y,"failure");D.setState("microphone-off");D.stop()}}else(D=this.manager)==null||D.start()};
_.u.transcriptionChanged=function(){var D,Y;(((D=this.transcription)==null?0:D.low)||((Y=this.transcription)==null?0:Y.high))&&this.setState("transcribing",this.transcription)};
_.u.stateChanged=function(){this.setState(this.state,this.transcription)};
_.u.logDialog=function(){var D;(D=this.data)!=null&&D.trackingParams&&(D=_.n8(),_.TJ(D,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=D.graftServerVe(this.data.trackingParams,void 0,5))};
_.u.getNavigationParams=function(D){var Y={};if(_.f("web_yt_searchbox")){var R=H19();R.inputMethodsTracker.add(6);R=QuI(R,15);Y.gs_l=R;var Z;Y.oq=((Z=_.A(D,_.nn))==null?void 0:Z.query)||""}else if(D=window.ytvoicesearchloggingparams){if(D=D())Y.oq=D.oq,Y.gs_l=D.gs_l}else _.qJ(Error("ql"));return Y};
_.u.closeDialog=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.u.setState=function(D,Y){if(this.data){var R=this.data,Z={};switch(D){case "listening":Z={headerText:R.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:R.microphoneButtonAriaLabel};break;case "timeout":Z={headerText:R.promptHeader,microphoneState:"try-again",microphoneLabel:R.promptMicrophoneLabel,microphoneAriaLabel:R.promptMicrophoneLabel};break;case "microphone-off":Z={headerText:R.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:R.promptMicrophoneLabel,
microphoneAriaLabel:R.promptMicrophoneLabel};break;case "transcribing":(Y==null?0:Y.low)||(Y==null?0:Y.high)?Z={transcriptionLow:Y==null?void 0:Y.low,transcriptionHigh:Y==null?void 0:Y.high,microphoneState:"speaking",microphoneAriaLabel:R.microphoneButtonAriaLabel}:Z={headerText:R.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:R.microphoneButtonAriaLabel};break;case "processing":Z={headerText:R.loadingHeader,microphoneState:"processing",microphoneAriaLabel:R.microphoneButtonAriaLabel};
break;case "offline":Z={headerText:R.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:R.connectionErrorMicrophoneLabel,microphoneAriaLabel:R.connectionErrorMicrophoneLabel};break;case "permission":Z={headerText:R.permissionsHeader,bodyLine1:R.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:R.permissionsSubtext};break;case "permission-denied":Z={headerText:R.disabledHeader,bodyLine1:R.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:R.disabledSubtext}}Z.className=
D;this.speechOverlayState=Z;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.u.setMicrophoneState=function(D){var Y=this.isLevelAnimating;this.isLevelAnimating=D==="speaking";!Y&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=D==="processing"&&!this.noAnimations};
_.u.setClass=function(D){this.speechOverlayClassName&&_.Cr(this.hostElement,this.speechOverlayClassName,!1);D&&(this.speechOverlayClassName=D,_.Cr(this.hostElement,D,!0))};
_.u.runLevelAnimation=function(){var D=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var Y=1+Math.random()*.75,R=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+R/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+Y+")");_.yc.addJob(function(){D.runLevelAnimation()},3,R)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
ct.prototype.stateChanged=ct.prototype.stateChanged;ct.prototype.transcriptionChanged=ct.prototype.transcriptionChanged;ct.prototype.onPopupClosed=ct.prototype.onPopupClosed;ct.prototype.dataChanged=ct.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ct.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ct.prototype,"rendererStamperBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],ct.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],ct.prototype,"eventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ct.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],ct.prototype,"speechOverlayState",void 0);
_.q([_.y(),_.x("design:type",Object)],ct.prototype,"microphoneSpinnerActive",void 0);_.q([_.y({type:_.f("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.x("design:type",Object)],ct.prototype,"noAnimations",void 0);_.q([_.y({selector:function(D){var Y;return(Y=D.voiceSearch)==null?void 0:Y.transcription}}),
_.x("design:type",Object)],ct.prototype,"transcription",void 0);_.q([_.y({selector:function(D){var Y;return(Y=D.voiceSearch)==null?void 0:Y.overlay}}),
_.x("design:type",String)],ct.prototype,"state",void 0);_.q([_.y(),_.x("design:type",Object)],ct.prototype,"boundExitClick",void 0);_.q([_.fr("#microphone-levels"),_.x("design:type",HTMLElement)],ct.prototype,"level",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ct.prototype,"dataChanged",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ct.prototype,"onPopupClosed",null);
_.q([_.rd("transcription"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ct.prototype,"transcriptionChanged",null);_.q([_.rd("state"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ct.prototype,"stateChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],ct);
_.L(ct,"ytd-voice-search-dialog-renderer",function(){if(AXk!==void 0)return AXk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return AXk=D},{mode:1});var p7K;var DR=function(){var D=_.N.apply(this,arguments)||this;D.isOverlay=!1;D.hidden=!1;return D};
_.n(DR,_.N);_.u=DR.prototype;_.u.onPopupClosed=function(){this.toggleIconState(!1)};
_.u.computeIcon=function(){var D,Y,R;return(Y=_.A((D=this.data)==null?void 0:D.icon,j$k))==null?void 0:(R=Y.icon)==null?void 0:R.iconType};
_.u.computeIconBadgeShape=function(){var D;return{iconBadgeType:"cart",iconBadgeText:(D=this.iconBadgeEntity)==null?void 0:D.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.u.onClick=function(){var D;(D=this.data)!=null&&D.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.u.computeHidden=function(D){return!D};
_.u.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
DR.prototype.onPopupClosed=DR.prototype.onPopupClosed;_.q([_.v(_.mb),_.x("design:type",Object)],DR.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],DR.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],DR.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],DR.prototype,"isOverlay",void 0);
_.q([_.y({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.x("design:type",Object)],DR.prototype,"hidden",void 0);_.q([_.y({selectorArgs:["data.iconBadgeEntityKey"],selector:function(D,Y){return _.jC(D.entities,"iconBadgeEntity",Y)}}),
_.x("design:type",Object)],DR.prototype,"iconBadgeEntity",void 0);_.q([_.fr("yt-icon-button"),_.x("design:type",HTMLButtonElement)],DR.prototype,"iconButton",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],DR.prototype,"onPopupClosed",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],DR);
_.L(DR,"ytd-icon-badge-topbar-button-renderer",function(){if(p7K!==void 0)return p7K;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return p7K=D},{mode:1});var EqE;var Y1=function(){var D=_.N.apply(this,arguments)||this;D.premiumOptions=[];D.darkerDarkTheme=_.f("web_darker_dark_theme");return D};
_.n(Y1,_.N);Y1.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.YF.Object.defineProperties(Y1.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Y1.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Array)],Y1.prototype,"premiumOptions",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],Y1.prototype,"darkerDarkTheme",void 0);_.q([_.b("premiumOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y1.prototype,"hasPremiumOptions",null);
_.q([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Y1);
_.L(Y1,"ytd-offline-promo-content",function(){if(EqE!==void 0)return EqE;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return EqE=D},{mode:1});var gqu;var RN=function(){var D=_.N.apply(this,arguments)||this;D.premiumOptions=[];return D};
_.n(RN,_.N);RN.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D;this.premiumOptions=FQT((D=this.data)==null?void 0:D.formats)};
RN.prototype.onClickSubmit=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var D;(D=_.sm())==null||D.pause()};
RN.prototype.attached=function(){this.JSC$20535_scroller&&(this.JSC$20535_scroller.dialogElement=this.hostElement.parentNode)};
_.YF.Object.defineProperties(RN.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
RN.prototype.dataChanged=RN.prototype.dataChanged;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],RN.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],RN.prototype,"data",void 0);
_.q([_.y({computed:"computeIcon_(data.headersIcon)",value:""}),_.x("design:type",String)],RN.prototype,"headersIcon",void 0);_.q([_.y(),_.x("design:type",Array)],RN.prototype,"premiumOptions",void 0);_.q([_.fr("#scroller"),_.x("design:type",Object)],RN.prototype,"JSC$20535_scroller",void 0);_.q([_.b("headersIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],RN.prototype,"showIcon",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RN.prototype,"dataChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],RN);
_.L(RN,"ytd-offline-promo-renderer",function(){if(gqu!==void 0)return gqu;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return gqu=D},{mode:1});var duk;var ZR=function(){var D=_.N.apply(this,arguments)||this;D.playbackPauseInterval=NaN;D.isLoading=!1;D.hasError=!1;D.dialogClass="";D.youtubeLabel=_.fX("LOGO_ALT_LABEL",{},"YouTube Home");D.logoName="yt-logos-ext:yt-logo-updated";D.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return D};
_.n(ZR,_.N);_.u=ZR.prototype;_.u.onDataChange=function(){var D;if(this.showEOMV1Text=!((D=this.data)==null||!D.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.u.attached=function(){this.pausePlayer()};
_.u.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.u.handleLangSelect=function(D){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[D.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.u.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.u.handleSaveConsent=function(D){var Y=this;this.showLoadingSpinner();this.showLoadingSpinner();cNT(_.A(D,IkK)).catch(function(R){_.Jk(new _.AT("Something went wrong when save consent "+(R.message?R.message:R)+"."));Y.hideLoadingSpinner();Y.showErrorMessage()})};
_.u.handleDisablePersonalization=function(D){var Y=this;this.showLoadingSpinner();DAp(_.A(D,j8K)).then(function(){Y.dialog.close();Y.resumePlayer()}).catch(function(R){_.Jk(new _.AT("Something went wrong when disable personalization "+(R.message?R.message:R)+"."));
Y.hideLoadingSpinner();Y.showErrorMessage()})};
_.u.showLoadingSpinner=function(){var D=this;this.showSpinnerJobId=_.yc.addLowPriorityJob(function(){D.isLoading=!0},500)};
_.u.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.yc.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.u.showErrorMessage=function(){var D=this;this.hasError=!0;_.yc.addLowPriorityJob(function(){D.hasError=!1},2E3)};
_.u.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Cv(function(){try{var D=_.sm();D&&D.pause()}catch(Y){}},100))};
_.u.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var D=_.sm();D&&D.play()}catch(Y){}};
_.YF.Object.defineProperties(ZR.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var Y=["SHIELD","WARNING","BAR_CHART"],R=this.data.eomV1Text.essentialCookieMsg.items,Z=0;Z<Y.length&&Z<R.length;Z++)D.push({icon:Y[Z],text:R[Z]});return D}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var Y=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],R=this.data.eomV1Text.nonEssentialCookieMsg.items,Z=0;Z<Y.length&&Z<R.length;Z++)D.push({icon:Y[Z],text:R[Z]});return D}}});
ZR.prototype.onDataChange=ZR.prototype.onDataChange;_.q([_.y(),_.x("design:type",Object)],ZR.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],ZR.prototype,"showEOMV1Text",void 0);_.q([_.y(),_.x("design:type",Object)],ZR.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Object)],ZR.prototype,"hasError",void 0);_.q([_.y(),_.x("design:type",Number)],ZR.prototype,"showSpinnerJobId",void 0);_.q([_.y(),_.x("design:type",Object)],ZR.prototype,"dialogClass",void 0);
_.q([_.fr("#dialog"),_.x("design:type",Object)],ZR.prototype,"dialog",void 0);_.q([_.fr("#cb-header"),_.x("design:type",HTMLElement)],ZR.prototype,"header",void 0);_.q([_.fr("#lang-select"),_.x("design:type",HTMLElement)],ZR.prototype,"langSelect",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ZR.prototype,"ytComponentBehavior",void 0);
_.q([_.y(),_.x("design:type",String)],ZR.prototype,"youtubeLabel",void 0);_.q([_.y(),_.x("design:type",Object)],ZR.prototype,"logoName",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZR.prototype,"onDataChange",null);_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],ZR.prototype,"eomEssentialCookieMsgItems",null);
_.q([_.b("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],ZR.prototype,"eomNonEssentialCookieMsgItems",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],ZR);
_.L(ZR,"ytd-consent-bump-v2-lightbox",function(){if(duk!==void 0)return duk;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return duk=D},{mode:1});var i19;var tD=function(){return _.N.apply(this,arguments)||this};
_.n(tD,_.N);tD.prototype.ready=function(){if(!_.Vf()||boE)var D=!0;else boE=!0,D=!1;D||(D=document.querySelector("ytd-app"),D||(D=document.body),this.internalLightBox=_.aU(D).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.q([_.y(),_.x("design:type",Object)],tD.prototype,"data",void 0);_.q([_.fr("#lightbox"),_.x("design:type",Object)],tD.prototype,"lightBox",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],tD);
_.L(tD,"ytd-consent-bump-v2-renderer",function(){if(i19!==void 0)return i19;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return i19=D},{mode:1});var O19;var cX9;var D9z;var ss=function(){return _.N.apply(this,arguments)||this};
_.n(ss,_.N);_.u=ss.prototype;_.u.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&KuI(this.toastManager,this.toastType)};
_.u.open=function(D){this.toast&&(this.ephemeralAction&&_.DH().resolve(_.bO).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=D!=null?D:0,this.toastManager.enqueue(this.toast,D)):this.toast.open())};
_.u.close=function(D){var Y;(Y=this.toast)==null||Y.close();this.toastManager&&D===1&&KuI(this.toastManager,D)};
_.u.refit=function(){var D;(D=this.toast)==null||D.refit()};
_.u.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var D;(D=this.toast)==null||D.close()}};
_.u.setVerticalOffset=function(D){this.toast&&(this.toast.verticalOffset=D,this.toast.fit())};
_.u.computeButtonClass_=function(D){return D?"toast-button":""};
_.u.computeText_=function(D){return _.OM(D)};
_.u.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.dH("toast-opened-changed",this.toastOpened))};
_.u.updateToastOpenedFromBinding=function(D){this.toastOpened=D.detail.value};
_.YF.Object.defineProperties(ss.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var D,Y,R=(D=this.data)==null?void 0:(Y=D.actionButton)==null?void 0:Y.buttonRenderer;return(R==null?void 0:R.command)||(R==null?void 0:R.serviceEndpoint)||(R==null?void 0:R.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 D=[],Y;((Y=this.data)==null?0:Y.responseText)&&D.push(_.OM(this.data.responseText));var R;((R=this.data)==null?0:R.subText)&&D.push(_.OM(this.data.subText));var Z,t;if((Z=this.data)==null?0:(t=Z.actionButton)==null?0:t.buttonRenderer){var X,M;D.push(((X=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(M=X.accessibilityData)==null?void 0:M.label)||_.OM(this.data.actionButton.buttonRenderer.text))}return D.filter(function(W){return W}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var D,Y;return(Y=(D=this.toast)==null?void 0:D.opened)!=null?Y:!1}}});
ss.prototype.toastOpenedChangedForBinding=ss.prototype.toastOpenedChangedForBinding;ss.prototype.toastOpenedChanged=ss.prototype.toastOpenedChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],ss.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ss.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],ss.prototype,"duration",void 0);
_.q([_.y(),_.x("design:type",Number)],ss.prototype,"toastType",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],ss.prototype,"useCloseButton",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],ss.prototype,"closeToastOnActionButtonClick",void 0);_.q([_.y({value:function(){return _.fX("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],ss.prototype,"closeButtonAriaLabel",void 0);_.q([_.y(),_.x("design:type",Boolean)],ss.prototype,"toastOpened",void 0);_.q([_.y(),_.x("design:type",Boolean)],ss.prototype,"hasOpened",void 0);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ss.prototype,"command",null);_.q([_.b("labelText","command","duration"),_.x("design:type",Object),_.x("design:paramtypes",[])],ss.prototype,"ephemeralAction",null);
_.q([_.b("ephemeralAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ss.prototype,"hasEphemeralAction",null);_.q([_.fr("#toast"),_.x("design:type",Object)],ss.prototype,"toast",void 0);_.q([_.y({value:function(){return{style:"call-to-action-inverse"}}}),
_.x("design:type",Object)],ss.prototype,"buttonOverrides",void 0);_.q([_.y({value:{style:"mono-inverse"}}),_.x("design:type",Object)],ss.prototype,"closeButtonOverrides",void 0);_.q([_.y({value:function(){return _.DH().resolve(_.cD(_.r6))}}),
_.x("design:type",Object)],ss.prototype,"toastManager",void 0);_.q([_.b("data.responseText","data.subText","data.actionButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],ss.prototype,"labelText",null);_.q([_.Gm("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ss.prototype,"toastOpenedChanged",null);
_.q([_.Gm("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ss.prototype,"toastOpenedChangedForBinding",null);_.q([_.Lr({is:"yt-notification-action-renderer",disableElementRegistration:!0})],ss);
_.L(ss,"yt-notification-action-renderer",function(){if(D9z===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;cX9===void 0&&(cX9=document.createElement("template"));var Z=cX9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);D9z=D}D=D9z;return D},{mode:2});var XV=function(){var D=_.N.apply(this,arguments)||this;D.duration=4E3;D.downloadingCount=0;D.downloadedCount=0;D.downloadingOnlySmartDownloads=!1;D.sessionTotalDownloads=0;D.sessionDownloaded=0;D.previousSessionsDownloaded=0;D.totalDownloadPercentage=0;D.currentDownloadProgress=0;D.currentDownloadPercentage=0;D.isLeaderTab=!0;D.isFullScreen=!1;D.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};D.boundBeforeUnload=function(Y){D.isLeaderTab&&D.downloadingCount>0&&(Y.preventDefault(),
Y.returnValue=!0)};
return D};
_.n(XV,_.N);_.u=XV.prototype;
_.u.open=function(){this.updateDownloadState();if(this.data){var D=this.sessionDownloaded+1,Y=this.sessionTotalDownloads>1?_.fX("VIDEOS_DOWNLOADING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+D+"/"+this.sessionTotalDownloads):_.fX("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(Y=this.sessionTotalDownloads>1?_.fX("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
D+"/"+this.sessionTotalDownloads):_.fX("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));D=this.isLeaderTab?_.fX("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.OM(this.data.responseText)!==Y||_.OM(this.data.subText)!==D)this.set("data.responseText",_.i0(Y)),this.set("data.subText",_.i0(D)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.u.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.u.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.u.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.u.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var D=this.downloadedCount-this.previousSessionsDownloaded;D<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-D);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.u.handleFullscreenChange=function(D){(this.isFullScreen=D)||this.updatePopup()};
XV.prototype.updateCurrentDownloadProgress=XV.prototype.updateCurrentDownloadProgress;XV.prototype.updatePopup=XV.prototype.updatePopup;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],XV.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],XV.prototype,"ytEventForwardingBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],XV.prototype,"actionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"duration",void 0);_.q([_.y({selector:function(D){return _.gGr(D.entities).length}}),
_.x("design:type",Object)],XV.prototype,"downloadingCount",void 0);_.q([_.y({selector:MPz}),_.x("design:type",Object)],XV.prototype,"downloadedCount",void 0);_.q([_.y({selector:function(D){var Y=_.gGr(D.entities);return aak(D.entities,Y)}}),
_.x("design:type",Object)],XV.prototype,"downloadingOnlySmartDownloads",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"sessionTotalDownloads",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"sessionDownloaded",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"previousSessionsDownloaded",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"totalDownloadPercentage",void 0);
_.q([_.y({selector:function(D){var Y;D=(Y=_.gGr(D.entities))!=null?Y:[];return D.length>0?_.hOM(D.slice(-1)):0}}),
_.x("design:type",Object)],XV.prototype,"currentDownloadProgress",void 0);_.q([_.y(),_.x("design:type",Object)],XV.prototype,"currentDownloadPercentage",void 0);_.q([_.y({selector:_.Dx5}),_.x("design:type",Object)],XV.prototype,"isLeaderTab",void 0);_.q([_.fr("yt-notification-action-renderer"),_.x("design:type",Object)],XV.prototype,"notificationActionRenderer",void 0);
_.q([_.rd("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XV.prototype,"updatePopup",null);_.q([_.rd("currentDownloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XV.prototype,"updateCurrentDownloadProgress",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],XV);
_.L(XV,"ytd-video-download-toast-renderer",function(){if(O19!==void 0)return O19;var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return O19=D},{mode:1});var Yf9;var Rvu;var ud=function(){return _.N.apply(this,arguments)||this};
_.n(ud,_.N);ud.prototype.computeIsRedLogo=function(D,Y){!D&&Y&&(D=Y);return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
ud.prototype.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],ud.prototype,"componentBehavior",void 0);_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.x("design:type",Boolean)],ud.prototype,"isRedLogo",void 0);_.q([_.y({computed:"computeLogoName(data)"}),_.x("design:type",String)],ud.prototype,"logoName",void 0);_.q([_.y({value:{}}),_.x("design:type",Object)],ud.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],ud.prototype,"logoType",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-logo"})],ud);
_.L(ud,"ytd-logo",function(){if(Rvu!==void 0)return Rvu;var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Rvu=D},{mode:_.zD("kevlar_poly_si_batch_j074")?1:2});var aN=function(){var D=_.N.apply(this,arguments)||this;D.animationRef={};return D};
_.n(aN,_.N);_.u=aN.prototype;_.u.attached=function(){document.addEventListener("yt-navigate-finish",_.jN(this,this.logYoodle))};
_.u.detached=function(){document.removeEventListener("yt-navigate-finish",_.jN(this,this.logYoodle))};
_.u.logYoodle=function(){var D,Y;if((D=this.data)==null?0:(Y=D.loggingDirectives)==null?0:Y.trackingParams)this.ytRendererBehavior.markDirty(),_.n8().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.u.computeHideImg=function(D,Y){return!!D||!!Y};
_.u.computeHideYtdLogo=function(D,Y){return!D||!!Y};
_.u.computeHideLottie=function(D){return!D};
_.u.computeIsRedLogo=function(D){return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
_.u.renderLogoEntity=function(){var D=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),Y=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),R=this.getLogoTitleText(this.data),Z=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==D&&(this.url=D);this.animatedUrl!==Y&&(this.animatedUrl=Y);this.logoTitleText!==R&&(this.logoTitleText=R);this.lottieUrl!==Z&&(this.lottieUrl=Z,this.lottiePlayerProps=this.computeLottiePlayerProps(Z))};
_.u.getSanitizedThumbnail=function(D){return D&&D.thumbnails?_.YiU(D.thumbnails,122)||"":""};
_.u.getThumbnailUrl=function(D,Y){if(!Y)return"";var R,Z;D=D?(R=Y.darkThemeLogo)==null?void 0:R.thumbnail:(Z=Y.lightThemeLogo)==null?void 0:Z.thumbnail;return this.getSanitizedThumbnail(D)};
_.u.getAnimatedThumbnailUrl=function(D,Y){return Y?this.getSanitizedThumbnail(D?Y.darkThemeAnimatedLogo:Y.lightThemeAnimatedLogo):""};
_.u.getLogoTitleText=function(D){if(D)return _.OM(D.tooltipText)};
_.u.computeLogoIcon=function(D,Y){if(Y){var R,Z;return D?(R=Y.darkThemeLogo)==null?void 0:R.icon:(Z=Y.lightThemeLogo)==null?void 0:Z.icon}};
_.u.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.u.getLottieUrl=function(D,Y){var R,Z,t,X;return D?Y==null?void 0:(R=Y.darkThemeLogo)==null?void 0:(Z=R.lottieAnimation)==null?void 0:Z.url:Y==null?void 0:(t=Y.lightThemeLogo)==null?void 0:(X=t.lottieAnimation)==null?void 0:X.url};
_.u.computeLottiePlayerProps=function(D){if(D){var Y;if((Y=this.animationRef)==null?0:Y.lottieEl){var R;(R=this.animationRef)==null||R.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:D,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.u.onLottieError=function(){this.data&&this.lottieUrl&&_.MX(this.hostElement,"yoodle-error")};
_.u.onImgError=function(){this.data&&!this.lottieUrl&&_.MX(this.hostElement,"yoodle-error")};
aN.prototype.playAnimation=aN.prototype.playAnimation;aN.prototype.renderLogoEntity=aN.prototype.renderLogoEntity;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],aN.prototype,"data",void 0);_.q([_.y({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],aN.prototype,"hideImg",void 0);
_.q([_.y({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],aN.prototype,"hideYtdLogo",void 0);_.q([_.y({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.x("design:type",Boolean)],aN.prototype,"hideLottie",void 0);_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.x("design:type",Boolean)],aN.prototype,"isRedLogo",void 0);
_.q([_.y(),_.x("design:type",Boolean)],aN.prototype,"useDarkThemeYoodle",void 0);_.q([_.y(),_.x("design:type",String)],aN.prototype,"url",void 0);_.q([_.y(),_.x("design:type",String)],aN.prototype,"animatedUrl",void 0);_.q([_.y(),_.x("design:type",String)],aN.prototype,"logoTitleText",void 0);_.q([_.y({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.x("design:type",Object)],aN.prototype,"logoIcon",void 0);_.q([_.y(),_.x("design:type",Object)],aN.prototype,"logoType",void 0);
_.q([_.y(),_.x("design:type",String)],aN.prototype,"lottieUrl",void 0);_.q([_.y(),_.x("design:type",Object)],aN.prototype,"lottiePlayerProps",void 0);_.q([_.y(),_.x("design:type",Object)],aN.prototype,"animationRef",void 0);_.q([_.Gm("data"),_.Gm("useDarkThemeYoodle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aN.prototype,"renderLogoEntity",null);
_.q([_.Fv("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],aN.prototype,"playAnimation",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],aN);
_.L(aN,"ytd-yoodle-renderer",function(){if(Yf9!==void 0)return Yf9;var D=document.createElement("template");_.w(D,'\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 aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return Yf9=D},{mode:_.zD("kevlar_poly_si_batch_j074")?1:2});var ZWh;var txI;var M5=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return D};
_.n(M5,_.N);_.u=M5.prototype;_.u.onYoodleError=function(){_.f("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.u.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.u.computeTitle=function(D,Y,R){return R&&(Y==null?0:Y.tooltipText)?_.OM(Y.tooltipText):_.OM(D)};
_.u.computeAriaLabel=function(D,Y,R){return R&&(Y==null?0:Y.tooltipText)?_.OM(D):""};
_.u.computeShowYoodle=function(D,Y,R){return!D||!Y&&!!R&&!_.y7.isEmpty(R)};
_.u.onNavigateHomeAction=function(){if(_.f("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D;(D=_.aU(this.hostElement).querySelector(".yt-simple-endpoint"))==null||D.click()}};
_.u.computeLogoHref=function(D,Y,R){var Z;(R==null?0:R.onTapCommand)?Z=this.componentBehavior.computeHref_(R.onTapCommand):D&&(Z=this.componentBehavior.computeHref_(D));return Z?Z:Y};
_.u.computeCommand=function(D,Y){return(Y==null?void 0:Y.onTapCommand)||D};
_.u.getEndpointForm=function(){if(_.f("kevlar_topbar_disable_cache_only_home")){var D=_.DH().resolve(_.xZ),Y=Vez(D.getState())||"";D=_.Tjl(D.getState())||"";return{disableCache:Y==="ytd-browse"&&D==="home"}}return{disableCache:!0}};
M5.prototype.onYoodleError=M5.prototype.onYoodleError;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],M5.prototype,"componentBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],M5.prototype,"ytdReduxBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],M5.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],M5.prototype,"countryCode",void 0);_.q([_.y({selectorArgs:["data.overrideEntityKey"],selector:function(D,Y){return _.jC(D.entities,"logoEntity",Y)}}),
_.x("design:type",Object)],M5.prototype,"logoEntity",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.x("design:type",Boolean)],M5.prototype,"showYoodle",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],M5.prototype,"yoodleError",void 0);_.q([_.y({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],M5.prototype,"titleText",void 0);
_.q([_.y({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],M5.prototype,"ariaLabelText",void 0);_.q([_.y({value:"/"}),_.x("design:type",String)],M5.prototype,"defaultEndpointUrl",void 0);_.q([_.y({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.x("design:type",String)],M5.prototype,"endpointUrl",void 0);
_.q([_.y({computed:"computeCommand(data.endpoint, logoEntity)"}),_.x("design:type",String)],M5.prototype,"command",void 0);_.q([_.y(),_.x("design:type",Object)],M5.prototype,"logoType",void 0);_.q([_.y({}),_.x("design:type",Boolean)],M5.prototype,"useDarkThemeYoodle",void 0);_.q([_.Fv("yoodle-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M5.prototype,"onYoodleError",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],M5);
_.L(M5,"ytd-topbar-logo-renderer",function(){if(txI!==void 0)return txI;var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return txI=D},{mode:_.zD("kevlar_poly_si_batch_j027")?1:2});var sHE=0;var XSE=_.Cs.SEARCH_APPEND_LABEL,upK=_.Cs.SUGGESTION_NEW_VIDEOS_TEXT,aft=_.Cs.SUGGESTION_THUMBNAIL_LABEL,Mxh=_.Cs.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Cbt=_.RT(function(D){function Y(oz){var e0,Cj;return _.C(function(j0){if(j0.nextAddress==1)return e0=new Request(oz),_.SX(j0,2),j0.yield(fetch(e0,{credentials:"include"}),4);if(j0.nextAddress!=2)return vu(!0),_.xw(j0,0);Cj=_.Gl(j0);_.Jk(Cj);_.V9(j0)})}
var R=D.isHighlighted;var Z=D.suggestion;var t=D.onClickCallback;var X=D.onHoverUpdateCallback;var M=D.labels;var W=D.queryBuilderFunction;var z=D.onRemoveCallback;var I=D.suggestionIndex;var F=D.generateUniqueId;var G=D.highlightedId;var V=D.useScrollMargin;var e=D.isKeyboardMode;var r=null,l=null,U=_.dI("div"),K=_.dI("span");D=_.a(_.ae(!1,void 0,"CgAMgc"));var H=D.next().value,c=D.next().value,Q=_.io("a",function(oz){oz&&_.$6(237477,oz,l,function(e0){l=e0})}),E=_.io("button",function(oz){oz&&_.$6(237477,
oz,l,function(e0){l=e0})}),B=_.F4(function(oz){if((oz==null?void 0:oz.button)===2)return oz.preventDefault(),!1;
var e0=_.K2();e0&&r&&_.ii(e0,r,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Cj;t(oz,Z().text,Z().index,Z().entityMid,oz==null?void 0:(Cj=oz.detail)==null?void 0:Cj.wasSelectedByKeyboard);return!1}),O=function(){return Z().type===35},Wo=function(){return _.f("desktop_enable_single_suggestion_highlight")},Sb=function(){return _.ZH("desktop_suggestions_panel_row_height")||0},VU=function(){var oz;
return _.f("desktop_enable_new_video_metadata")&&((oz=Z())==null?void 0:oz.hasNewVideo)===!0},AS=function(){return _.f("desktop_enable_visual_suggest")},nM=function(){return _.f("desktop_enable_entity_suggest")&&K9b(Z())},Ho=function(){return Z().entitySubtitle},KM=function(){return Wo()?(R==null?void 0:R())||D_()&&!(e==null?0:e()):(R==null?void 0:R())||D_()},Xb=function(){var oz=_.JQ("SBOX_SETTINGS");
return O()&&!(oz==null?0:oz.HIDE_REMOVE_LINK)},kE=function(){return hy9(Z(),{useEntityName:nM()})},SD,co=!((SD=_.DH().resolve(_.cD(_.O4)))==null||!SD()),GE=function(){return O()?_.f("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},TE=function(){return M==null?void 0:M().SUGGESTION_DISMISS_LABEL},yV=function(){return M==null?void 0:M().SUGGESTION_DISMISSED_LABEL};
D=_.a(_.ae(!1,void 0,"RcUcKd"));SD=D.next().value;var vu=D.next().value;D=_.a(_.ae(!1,void 0,"yGR7je"));var dz=D.next().value,sy=D.next().value,D_=dz,fL=_.F4(function(){W(K.value.innerText);return!1}),zT=_.F4(function(oz){oz.preventDefault();
return!1}),eD=_.F4(function(oz){var e0=Z().text,Cj=_.JQ("SBOX_SETTINGS"),j0="https://"+(Cj.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
j0+="&delq="+encodeURIComponent(e0);(e0=Cj==null?void 0:Cj.PSUGGEST_TOKEN)&&(j0+="&tok="+e0);(Cj=Cj==null?void 0:Cj.SESSION_INDEX)&&(j0+="&authuser="+Cj);Y(j0);oz.preventDefault();(oz=_.K2())&&l&&_.ii(oz,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");z(I==null?void 0:I());return!1}),YK=_.F4(function(){if(Wo()&&(e==null?0:e()))return!1;
sy(!0);X(!0);return!1}),RK=_.F4(function(){sy(!1);
X(!1);return!1}),Dp=_.F4(function(){c(!0);
return!1}),az=_.F4(function(){c(!1);
return!1}),EL=_.F4(function(oz){oz.preventDefault();
var e0;(oz=(e0=Z().entityThumbnailAttributionUrl)!=null?e0:"")&&_.Az5(oz);return!1});
D=_.a(_.ae("",void 0,"k9uVge"));var FE=D.next().value,v4=D.next().value;_.rf(function(){Xb()&&v4(F==null?void 0:F(I==null?void 0:I()));U.value&&_.$6(12453,U.value,r,function(oz){r=oz})});
return _.S(_.T,{cond:SD,then:function(){var oz={};return _.S("div",{class:_.e7("ytSuggestionComponentRemovedText",(oz.ytSuggestionComponentLargerRemovedText=function(){return AS()},oz)),
style:function(){return Sb()>0?"height: "+Sb()+"px;":""},
role:"button"},yV)},
else:function(){var oz={},e0={};return _.S("div",{class:_.e7("ytSuggestionComponentSuggestion",(oz.ytSuggestionComponentSuggestionHover=function(){return!Wo()},oz.ytSuggestionComponentHighlighted=KM,oz.ytSuggestionComponentPersonalizedSuggestion=O,oz.ytSuggestionComponentMweb=!1,oz.ytSuggestionComponentLargerSuggestion=function(){return VU()||AS()},oz.ytSuggestionComponentThumbnailSuggestion=function(){return AS()},oz.ytSuggestionComponentRoundedSuggestion=function(){return _.f("desktop_enable_scrollable_suggestions_panel")&&
_.f("desktop_enable_suggestions_panel_padding")},oz.ytSuggestionComponentThumbnailPadding=function(){return AS()&&!O()},oz)),
style:function(){return Sb()>0?"height: "+Sb()+"px;":""},
role:"presentation","on:mousedown":B,"on:mouseover":YK,"on:mouseout":RK,el:U},_.S("div",{class:_.e7("ytSuggestionComponentText",(e0.ytSuggestionComponentScrollMargin=V,e0)),"aria-label":function(){return VU()?Z().text+" "+upK:Z().text},
id:function(){return F==null?void 0:F(I==null?void 0:I())},
"on:mousedown":B,role:"option"},_.S(_.T,{cond:function(){return Z().type!==33},
then:function(){return _.S(_.nB,{icon:GE,className:"ytSuggestionComponentIcon"})}}),_.S("div",{class:"ytSuggestionComponentLeftContainer"},_.S("span",{el:K,
role:"button",tabindex:0},_.S(_.G6,{each:kE},function(Cj){return Cj.bold?_.S("span",{class:"ytSuggestionComponentBold"},Cj.text):_.S("span",null,Cj.text)})),_.S(_.T,{cond:function(){return nM()&&!!Z().entitySubtitle||VU()},
then:function(){return _.S("div",{class:"ytSuggestionComponentMetadataContainer"},_.S(_.T,{cond:function(){return nM()&&!!Z().entitySubtitle},
then:function(){return _.S("div",{class:"ytSuggestionComponentEntitySubtitle"},Ho)}}),_.S(_.T,{cond:function(){return VU()},
then:function(){return _.S("div",{class:"ytSuggestionComponentNewVideoContainer"},_.S("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.S("div",{class:"ytSuggestionComponentNewVideoText"},upK))}}))}}))),_.S("div",{class:"ytSuggestionComponentRightContainer"},_.S(_.T,{cond:function(){return AS()&&Z().visualSuggestUrl!==void 0},
then:function(){var Cj={};return _.S("div",{class:"ytSuggestionComponentThumbnailContainer"},_.S("img",{"aria-label":aft,class:_.e7("ytSuggestionComponentVisualSuggestThumbnail",(Cj.ytSuggestionComponentCircularFrame=function(){return nM()&&Z().subtypes.includes(790)},Cj.ytSuggestionComponentEntitySuggestThumbnail=function(){return nM()},Cj)),
src:function(){return Z().visualSuggestUrl}}),_.S(_.T,{cond:function(){return nM()&&!!Z().entityThumbnailAttributionUrl},
then:function(){var j0={};return _.S("span",{title:Mxh,role:"tooltip"},_.S("div",{"on:mouseover":Dp,"on:mouseout":az,"on:mousedown":EL,class:_.e7("ytSuggestionComponentThumbnailOverlay",(j0.ytSuggestionComponentThumbnailOverlayHidden=function(){return!H()},j0))},_.S(_.nB,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.S(_.ej,null,_.S(_.VL,{when:function(){return AS()&&Xb()}},function(){var Cj={};
return _.S("button",{class:_.e7("ytSuggestionComponentRemoveLinkClearButton",(Cj.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return FE()&&FE()===(G==null?void 0:G())},Cj.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!KM()},Cj)),
el:E,"on:mousedown":eD,"aria-label":TE,id:function(){return FE()}},_.S(_.nB,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.S(_.VL,{when:function(){return!(AS()&&Z().visualSuggestUrl!==void 0)&&Xb()}},function(){var Cj={};
return _.S("a",{class:_.e7("ytSuggestionComponentRemoveLink",(Cj.ytSuggestionComponentRemoveLinkDark=co,Cj.ytSuggestionComponentRemoveLinkSelected=function(){return FE()&&FE()===(G==null?void 0:G())},Cj)),
el:Q,"on:mousedown":eD,"aria-label":TE,tabindex:0,role:"button",id:function(){return FE()}},TE)}),_.S(_.VL,{when:function(){return!1}},function(){return _.S("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":fL,"on:mousedown":zT,role:"button","aria-label":XSE},_.S(_.nB,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Rg");var Wd9=_.gY(["//www.google.com/textinputassistant/","/","_tia.js"]),zvK=_.RT(function(){return _.S("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.S("button",{class:"ytdTextInputAssistantButton","on:click":_.F4(function(){H19().inputMethodsTracker.add(3);var D,Y=(D=_.JQ("SBOX_SETTINGS"))==null?void 0:D.REQUEST_LANGUAGE;if(Y)return _.PO(_.tZ(Wd9,14,Y)),!1})},_.S("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Sg");var SfI=function(){this.cache=new Map},T4K=function(D){for(var Y=_.a(D.cache.entries()),R=Y.next();!R.done;R=Y.next()){var Z=_.a(R.value);
R=Z.next().value;Z=Z.next().value;Z.suggestions.some(function(t){return t.type===35})&&D.cache.delete(R)}};var jH9=_.Cs.SEARCH,If0=_.Cs.SEARCH_CLEAR_LABEL,Fdu=new _.R6("FAKE_SUGGEST_RESPONSE");_.at(_.RT(function(D){function Y(){Dp||(Dp=setTimeout(function(){EL()},1E3))}
function R(nL,A1,kK){if(nL.trim()){RK=nL;_.l1("REFINEMENTS_TUPLE",void 0);eD=!0;var IJ;A1=QuI(dz,A1);var Fb=(IJ=D.searchEndpoint)==null?void 0:IJ.call(D);_.eU0(nL,A1,Fb,GE.value.value,kK);EL();GE.value.value=nL;GE.value.blur();dz.reset()}}
function Z(nL){return _.C(function(A1){return A1.return(new Promise(function(kK){var IJ=new XMLHttpRequest;IJ.open("GET",b1T(nL),!0);IJ.withCredentials=!0;var Fb=_.JQ("SBOX_SETTINGS");(Fb==null?0:Fb.SEND_VISITOR_DATA)&&IJ.setRequestHeader("X-Goog-Visitor-Id",Fb==null?void 0:Fb.VISITOR_DATA);IJ.onload=function(){kK(IJ.responseText)};
IJ.onerror=function(){_.Jk(Error("sl"));kK(null)};
setTimeout(function(){IJ.abort()},1E4);
IJ.send(null)}))})}
function t(nL){var A1,kK,IJ,Fb;return _.C(function(AZ){switch(AZ.nextAddress){case 1:return A1={credentials:"include",headers:oqp()},window.AbortController&&(kK=new AbortController,setTimeout(function(){kK.abort("ytsbox-suggest-timeout")},1E4),A1.signal=kK.signal),_.SX(AZ,2),AZ.yield(fetch(b1T(nL),A1),4);
case 4:IJ=AZ.yieldResult.text();_.xw(AZ,3);break;case 2:return Fb=_.Gl(AZ),Fb!=="ytsbox-abort-last"&&Fb!=="ytsbox-suggest-timeout"&&_.Jk(Fb),AZ.return(null);case 3:return AZ.return(IJ)}})}
function X(nL){var A1,kK,IJ;return _.C(function(Fb){switch(Fb.nextAddress){case 1:if(A1=_.DH().resolve(_.cD(Fdu)))return Fb.return(A1);kK=Date.now();Y();return _.f("yt_searchbox_xhr")?Fb.yield(Z(nL),5):Fb.yield(t(nL),4);case 4:IJ=Fb.yieldResult;Fb.jumpTo(3);break;case 5:IJ=Fb.yieldResult;case 3:if(IJ){Dp&&(clearTimeout(Dp),Dp=null);var AZ=dz,tT=kK,hf=nL.query.length===0;tT=Date.now()-tT;hf?AZ.zeroPrefixRoundTripTime=tT:(AZ.JSC$20515_totalRoundTripTime+=tT,AZ.maxRoundTripTime=Math.max(AZ.maxRoundTripTime,
tT),hf=Math.floor(tT/100),hf>=BnK.length?++AZ.roundTripTimeHistogram[9]:++AZ.roundTripTimeHistogram[BnK[hf]])}return Fb.return(IJ)}})}
function M(nL){var A1,kK,IJ;return _.C(function(Fb){if(Fb.nextAddress==1)return(A1=vu.cache.get(vqt(nL)))?Fb.return(A1):Fb.yield(X(nL),2);kK=Fb.yieldResult;if(kK===null)return Fb.return(null);IJ=new L9k(kK);nL.query.length===0&&IJ.suggestions.length===0||vu.cache.set(vqt(nL),IJ);return Fb.return(IJ)})}
function W(nL){var A1,kK;return _.C(function(IJ){if(IJ.nextAddress==1){YK=!1;var Fb=RK;Fb=_.I2o()==="search"?(_.LG(location.href,"search_query")||_.LG(location.href,"q"))===Fb:!1;A1=new $uE(nL,Fb?RK:null);return IJ.yield(M(A1),2)}kK=IJ.yieldResult;if(kK===null)return IJ.return();A1.query.length===0&&(dz.zeroPrefixSuggestionCount=kK.suggestions.length);if(A1.id<=az)return dz.outOfSyncResponseCount++,IJ.return();if(document.activeElement!==GE.value)return IJ.return();az=A1.id;var AZ=dz,tT=kK.rawResponse[2]||
{};AZ.experimentTriggeredBeforeFinal||(AZ.experimentTriggeredBeforeFinal=AZ.experimentTriggeredFinal);AZ.experimentTriggeredFinal=!!tT.e;dz.updateSuggestions(kK.suggestions);U(-1);Xb([]);kK.suggestions!==e()&&vD(kK.suggestions.length);r(kK.suggestions);Wo(kK.suggestions.length>0&&kK.suggestions[0].type===33);yV&&(yV.hidden=kK.suggestions.length===0,O()?(yV.style.minWidth="",AZ=yV.style,tT=(Fb=e()[0])==null?void 0:Fb.ignoredPrefix,AZ.marginLeft=(tT?Math.min(tT.length*6,TE.value.offsetWidth):0).toString()+
"px"):(yV.style.minWidth=TE.value.offsetWidth+"px",yV.style.marginLeft="0"),ch());_.V9(IJ)})}
function z(){if(!eD)return!1;var nL=_.JQ("REFINEMENTS_TUPLE");return nL?(nL=nL[1].map(function(A1,kK){return new UuE([A1,0,[71]],GE.value.value,kK)}),e()!==nL&&vD(nL.length),Xb([]),r(nL),dz.updateSuggestions(nL),eD=!1,yV.hidden=nL.length===0,YK=nL.length>0,!0):!1}
function I(){var nL=GE.value.value;(typeof nL==="string"||nL instanceof String)&&nL!==""?Q(!0):Q(!1)}
function F(){if(_.I2o()==="search"){var nL=window.location.href;try{var A1=_.LG(nL,"search_query")||_.LG(nL,"q")||""}catch(kK){A1=""}A1&&(GE.value.value=A1,Q(!0))}}
var G=_.a(_.ae([],void 0,"kGFAjf")),V=G.next().value;G=G.next().value;var e=V,r=G;V=_.a(_.ae(-1,void 0,"mLGL9e"));var l=V.next().value,U=V.next().value;V=_.a(_.ae(-1,void 0,"u2rYdc"));var K=V.next().value,H=V.next().value;V=_.a(_.ae(!1,void 0,"W9DFC"));var c=V.next().value,Q=V.next().value;V=_.a(_.ae(!1,void 0,"Ip4dNc"));var E=V.next().value,B=V.next().value;G=_.a(_.ae(!1,void 0,"ZNKSQb"));V=G.next().value;G=G.next().value;var O=V,Wo=G;G=_.a(_.ae(!1,void 0,"JBrGLd"));V=G.next().value;var Sb=G.next().value;
G=_.a(_.ae(!1,void 0,"P2pD6e"));var VU=G.next().value,AS=G.next().value;G=_.a(_.ae(1,void 0,"SjP20c"));var nM=G.next().value,Ho=G.next().value;G=_.a(_.ae([],void 0,"h4dRaf"));var KM=G.next().value,Xb=G.next().value;G=_.a(_.ae(!1,void 0,"TUTzaf"));var kE=G.next().value,SD=G.next().value;G=_.f("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var co=_.dI("yt-searchbox"),GE=_.dI("input"),TE=_.dI("div"),yV,vu=
new SfI,dz=H19(),sy=_.DH().resolve(_.cD(_.O4)),D_=function(){var nL;return((nL=D.forceDarkMode)==null?void 0:nL.call(D))||!(sy==null||!sy())},fL=function(){return _.f("desktop_enable_scrollable_suggestions_panel")},zT="i"+sHE++,eD=!1,YK=!1,RK="",Dp=null,az=-1,EL=function(){Xb([]);
r([]);Wo(!1);yV&&(yV.hidden=!0);Dp&&(clearTimeout(Dp),Dp=null);U(-1)},FE=function(nL,A1){nL.preventDefault();
SD(!0);yV&&(yV.hidden=!1);var kK=l();nL=e();var IJ=KM();A1=Aib(A1);kK+=A1;for(kK>=nL.length?kK=-1:kK<-1&&(kK=nL.length-1);kK!==-1&&(IJ.includes(kK)||kK>=nL.length||kK<0);)kK+=A1,kK>=nL.length&&(kK=-1);U(kK);l()>=0&&(GE.value.value=e()[l()].text,H(0),I(),nL=l(),IJ=K(),(IJ=document.getElementById(TI[nL][IJ]))&&fL()&&(nL===e().length-1?yV.scrollTop=yV.scrollHeight:IJ.scrollIntoView({block:"nearest",inline:"start"})))},v4=_.F4(function(nL){if(!(nL.relatedTarget instanceof Element&&nL.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){B(!0);
var A1;(A1=D.focusCallback)==null||A1.call(D,!0);z()||(YK?yV.hidden=!1:(_.MX(co.value,"yt-autonav-pause-focus",{}),W(nL.target.value)))}}),oz=_.F4(function(nL){if(!(nL.relatedTarget instanceof Element&&nL.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){B(!1);
var A1;(A1=D.focusCallback)==null||A1.call(D,!1);yV.scrollTop=0;yV.hidden=!0;_.MX(co.value,"yt-autonav-pause-blur",{})}}),e0=function(nL){nL=Aib(nL);
var A1;((A1=TI[l()])==null?0:A1[K()+nL])&&H(K()+nL)},Cj=_.F4(function(nL){var A1=nL.target;
switch(nL.keyCode){case 13:nL.preventDefault();var kK;if((kK=TI[l()])==null?0:kK[K()]){var IJ;(IJ=document.getElementById(TI[l()][K()]))==null||IJ.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}nL=nL.shiftKey?4:3;kK=dz;IJ=l();kK.selectedSuggestionIndex=IJ;R(A1.value,nL);break;case 27:yV&&(yV.hidden=!0);break;case 40:FE(nL,40);break;case 38:FE(nL,38);break;case 39:e0(39);break;case 37:e0(37);break;case 229:dz.inputMethodsTracker.add(4);break;default:dz.inputMethodsTracker.add(1),
xuk(dz)}return!1}),j0=_.F4(function(nL){W(nL.target.value);
I();fL()&&yV&&(yV.scrollTop=0);return!1}),oI=_.F4(function(){dz.inputMethodsTracker.add(2);
xuk(dz);return!1});
_.rf(function(){if(yV){dz.reset();if(window.ResizeObserver){var nL=new ResizeObserver(function(){O()||(yV.style.minWidth=TE.value.offsetWidth+"px")});
nL.observe(TE.value);(new ResizeObserver(function(){ch()})).observe(yV);
_.w2(function(){nL.disconnect()})}F();
window.addEventListener("yt-navigate-finish",F);window.addEventListener("yt-focus-searchbox",function(){GE.value.focus()});
var A1;Sb((A1=_.JQ("SBOX_SETTINGS"))==null?void 0:A1.HAS_ON_SCREEN_KEYBOARD)}else _.Nb(new _.AT("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var eY=_.F4(function(nL){nL.preventDefault();R(GE.value.value,12);return!1}),H4=_.F4(function(nL){nL.preventDefault();
var A1,kK;(A1=GE)==null||(kK=A1.value)==null||kK.focus();var IJ,Fb;((IJ=GE)==null?void 0:(Fb=IJ.value)==null?void 0:Fb.value)!==""&&(GE.value.value="",GE.value.dispatchEvent(new Event("input")));return!1}),mh=_.F4(function(){var nL=fik(GE.value.value,e().filter(function(A1){return A1.type!==35}).map(function(A1){return{label:A1.text}}));
_.CX(co.value,"yt-open-popup-action",[{openPopupAction:nL},document.body]);return!1}),QI=_.F4(function(){GE.value.focus();
return!1}),aJ=function(nL,A1,kK,IJ,Fb){dz.selectedSuggestionIndex=kK;
R(A1,Fb?3:1,IJ)},ZO=function(nL){GE.value.value=nL;
GE.value.dispatchEvent(new Event("input"));dz.inputMethodsTracker.add(5);xuk(dz,!0)},TI=[[]],E1=function(nL){var A1="searchbox-suggestion"+_.kO(_.Jo);
TI[nL].push(A1);return A1},vD=function(nL){if(e()){TI=[[]];
for(var A1=0;A1<nL;A1++)TI.push([])}},ch=function(){if(fL()){var nL=yV,A1=nL.scrollTop;
nL=nL.scrollHeight-nL.clientHeight;AS(A1>=nL);A1=Math.abs(nL-A1);A1<=40?Ho(1-(40-A1)/40):Ho(1)}},U9=function(){return"opacity: "+nM()*100+"%"},ol=_.F4(function(){ch();
return!1}),hS=_.F4(function(){SD(!1);
return!1}),QU,Iz={},S0={},yB={},wb={};
return _.S("yt-searchbox",{class:_.e7("ytSearchboxComponentHost",(Iz.ytSearchboxComponentMweb=!1,Iz.ytSearchboxComponentDesktop=!0,Iz["yt-searchbox-filled-query"]=function(){return c()},Iz["ytd-masthead"]=function(){return!E()},Iz.ytSearchboxComponentHostDark=D_,Iz)),
role:"search",el:co,"client-ve-type":10349},_.S("div",{el:TE,"on:click":QI,class:_.e7("ytSearchboxComponentInputBox",(S0.ytSearchboxComponentInputBoxDark=D_,S0.ytSearchboxComponentInputBoxHasFocus=E,S0))},_.S("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":eY},_.S(_.T,{cond:E,then:function(){return _.S("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.S(_.nB,{icon:"SEARCH"}))}}),_.S("input",{el:GE,
class:_.e7("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":zT,"aria-expanded":!((QU=yV)==null?0:QU.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":oz,"on:focus":v4,"on:input":j0,"on:keydown":Cj,"on:paste":oI,placeholder:D.placeholderText,"aria-activedescendant":function(){var nL;return(nL=TI[l()])==null?void 0:nL[K()]},
"aria-autocomplete":"list",role:"combobox"})),_.S(_.T,{cond:V,then:function(){return _.S("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.S(zvK,null))}}),_.S(_.T,{cond:c,
then:function(){return _.S("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.S("button",{class:"ytSearchboxComponentClearButton","on:click":H4,"aria-label":D.clearButtonAriaLabel||If0},_.S(_.nB,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.S(_.CO,{model:{}})))}})),_.S("button",{class:_.e7("ytSearchboxComponentSearchButton",(yB.ytSearchboxComponentSearchButtonDark=D_,yB)),
"on:click":eY,"aria-label":jH9,title:D.placeholderText},_.S(_.nB,{icon:"SEARCH"})),_.S(_.T,{cond:function(){if(UBT()&&_.f("mweb_voice_search")&&D.voiceSearchButton)return D.voiceSearchButton()},
then:function(nL){var A1={};return _.S("div",{class:_.e7("ytSearchboxComponentVoiceSearchWrapper",(A1.ytSearchboxComponentHideVoiceSearchButton=function(){return c()},A1))},_.S(_.vK,{data:nL},{buttonRenderer:function(kK){return _.S(_.dO,{data:kK.data,
onButtonClickCallback:function(){}})}}))}}),_.S("div",{el:_.tp(function(nL){return void(yV=nL)}),
id:zT,class:_.e7("ytSearchboxComponentSuggestionsContainer",(wb.ytSearchboxComponentSuggestionsContainerDark=D_,wb["yt-searchbox-suggestions-container"]=!1,wb.ytSearchboxComponentSuggestionsContainerScrollable=fL(),wb.ytSearchboxComponentSuggestionsContainerAnimated=G,wb)),"on:scroll":ol,"on:mousemove":hS,role:"listbox",hidden:!0},_.S(_.G6,{each:e},function(nL,A1){return _.S(Cbt,{suggestion:nL,isHighlighted:function(){return A1()===l()},
onClickCallback:aJ,onHoverUpdateCallback:function(kK){if(_.f("desktop_enable_single_suggestion_highlight")){var IJ=A1();kK&&(H(0),U(IJ))}},
onRemoveCallback:function(kK){T4K(vu);kK===void 0||kK<0||KM().includes(kK)||Xb([].concat(_.oK(KM()),[kK]))},
labels:D.labels,queryBuilderFunction:ZO,suggestionIndex:A1,generateUniqueId:E1,highlightedId:function(){var kK;return(kK=TI[l()])==null?void 0:kK[K()]},
useScrollMargin:fL(),isKeyboardMode:kE})}),_.S(_.T,{cond:function(){return!O()&&e().find(function(nL){return nL.type!==35})&&_.f("searchbox_reporting")},
then:function(){return _.S("button",{class:"ytSearchboxComponentReportButton","on:mousedown":mh},_.fX("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.S(_.T,{cond:function(){return!VU()&&fL()},
then:function(){return _.S("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.S("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:U9}))}})))},"Tg"),"yt-searchbox",{props:{searchEndpoint:_.cs,
placeholderText:_.cs,labels:_.cs,voiceSearchButton:_.cs,focusCallback:_.uq,clearButtonAriaLabel:_.cs,forceDarkMode:_.cs}});var C5=function(){var D=_.N.apply(this,arguments)||this;D.menuButtonTargetId="topbar-guide-menu";D.narrow=!1;D.menuStrings={BACK_ALT_LABEL:_.fX("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.fX("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.fX("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.fX("SBOX_PLACEHOLDER",void 0,"Search")};D.pageDarkTheme=document.documentElement.hasAttribute("dark");D.watchPageScrollTop=0;D.theater=!1;D.fullscreen=!1;D.disableFrostedGlassDuringViewTransition=
!1;D.desktopUnifiedSearchPanelMode=_.f("desktop_enable_unified_search_panel");D.cinematicTheaterMode=_.f("web_cinematic_theater_mode");D.ytSearchboxFocused=!1;D.searchboxLabels=_.JQ("SBOX_LABELS");D.topbarIsAboveChipbar=!1;D.isDarkThemeForced=!1;D.areGhostCardsHidden=!1;D.guideKeyboardToggle=!1;D.voiceSearchManager=kqK();D.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};D.setYtSearchboxFocused=function(Y){D.ytSearchboxFocused=
Y};
D.toggleFrostedGlassDuringViewTransition=function(Y){D.disableFrostedGlassDuringViewTransition=Y};
return D};
_.n(C5,_.N);_.u=C5.prototype;_.u.computeSimpleText=function(D){return _.OM(D)};
_.u.onDarkChanged=function(){for(var D=_.a(this.buttons||[]),Y=D.next();!Y.done;Y=D.next())Y.value.isOverlay=!!this.dark;D=_.a(this.buttonRenderers||[]);for(Y=D.next();!Y.done;Y=D.next())Y.value.overrides=this.computeButtonOverride()};
_.u.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.u.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.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var D=_.Bk(_.Q0(),"aa");_.Cr(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||D||(this.isDarkThemeForced=this.dark=!0);this.logoType?(D=this.hostElement.querySelector("#masthead-logo"))&&(_.f("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.F_(D)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.jN(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.jN(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.u.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.jN(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.jN(this,this.onSetTheaterModeEnabled))};
_.u.dataChanged=function(){var D=this.data;D&&(this.voiceEnabled=D.voiceSearchButton?kqK().isSupported():!1,_.CvU(_.bB(),this.menuButtonTargetId,this.guideButton),D.onReceivedActions&&D.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Se(this.hostElement,D.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&D&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Cr(this.hostElement,"dark",!1),_.Cr(this.hostElement,"theater",!1),
(D=this.hostElement.querySelector("#masthead-logo"))&&(_.f("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.F_(D))))};
_.u.computeCenterHidden=function(){var D;return this.data&&!((D=this.data.searchbox)==null?0:D.fusionSearchboxRenderer)};
_.u.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Cr(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.u.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.u.onWatchScroll=function(D){this.watchPageScrollTop=D.detail||0;this.updateMastheadBackgroundOpacity()};
_.u.onFullscreenChangeAction=function(D){D||(this.watchPageScrollTop=0);this.fullscreen=D;this.updateMastheadBackgroundOpacity()};
_.u.onSetTheaterModeEnabled=function(D){this.theater=D.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.u.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.u.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.u.setBackgroundOpacity=function(D){D=this.calculateBackgroundOpacity(D);this.background.style.opacity=""+D};
_.u.calculateBackgroundOpacity=function(D){var Y=this.theater&&this.cinematicTheaterMode?.6:0,R=this.hostElement.clientHeight/2;return Math.min(Math.max(D,0),R)/R*(1-Y)+Y};
_.u.shouldShowCinematicMastHead=function(){var D=_.f("kevlar_watch_grid")&&!_.f("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(D||this.pageDarkTheme)};
_.u.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.u.focusGuide=function(){this.guideButton.focus()};
_.u.onGuideToggleTap=function(){_.MX(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.u.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.u.onGuideToggleHover=function(){_.MX(this.hostElement,"yt-guide-hover")};
_.u.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.u.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.u.closeOnOutsideClickCondition=function(D){for(D=_.O$(D);D[0];){var Y=D.shift();if(Y instanceof Element&&Y.id==="kbd")return!1}return!0};
_.u.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.u.pausePlayer=function(){var D;(D=_.sm())==null||D.pause();this.pauseMiniplayer()};
_.u.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var D;(D=_.DH().resolve(_.mL).getPlayerElement())==null||D.pause()}};
_.u.isMiniplayerActive=function(){return _.DH().resolve(_.mL).isMiniplayerActive()};
_.u.updateNarrowFromBinding=function(D){this.narrow=D.detail.value};
_.u.onYtSendFeedbackAction=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.u.registerWithViewTransitionManager=function(){g60(_.DH().resolve(_.f1),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.YF.Object.defineProperties(C5.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.f("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var D;return(D=this.data)==null?void 0:D.voiceSearchButton}}}});
C5.prototype.narrowChanged=C5.prototype.narrowChanged;C5.prototype.onWatchPageChange=C5.prototype.onWatchPageChange;C5.prototype.onRendererStamperFinished=C5.prototype.onRendererStamperFinished;C5.prototype.dataChanged=C5.prototype.dataChanged;C5.prototype.onDarkChanged=C5.prototype.onDarkChanged;_.q([_.v(_.l_),_.x("design:type",Object)],C5.prototype,"ironResizableBehavior",void 0);_.q([_.v(_.epu),_.x("design:type",Object)],C5.prototype,"ytdExpandableInputBehavior",void 0);
_.q([_.v(_.BH.YtdGuideStateAwareBehavior),_.x("design:type",Object)],C5.prototype,"ytdGuideStateAwareBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],C5.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.mb),_.x("design:type",Object)],C5.prototype,"ytdReduxBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],C5.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],C5.prototype,"narrow",void 0);_.q([_.y(),_.x("design:type",Object)],C5.prototype,"logoType",void 0);_.q([_.y(),_.x("design:type",Boolean)],C5.prototype,"voiceEnabled",void 0);
_.q([_.y(),_.x("design:type",Object)],C5.prototype,"menuStrings",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],C5.prototype,"dark",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"pageDarkTheme",void 0);_.q([_.y(),_.x("design:type",Object)],C5.prototype,"watchPageScrollTop",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.HNo}),_.x("design:type",Boolean)],C5.prototype,"isWatchPage",void 0);
_.q([_.y({reflectToAttribute:!0,selector:_.x8U}),_.x("design:type",Boolean)],C5.prototype,"isShortsPage",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"theater",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"fullscreen",void 0);_.q([_.y({reflectToAttribute:!0,selector:_.pki}),_.x("design:type",String)],C5.prototype,"frostedGlassMode",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.q([_.y(),_.x("design:type",Object)],C5.prototype,"ytSearchboxFocused",void 0);_.q([_.eN("#buttons > *"),_.x("design:type",Array)],C5.prototype,"buttons",void 0);_.q([_.eN("ytd-button-renderer"),_.x("design:type",Array)],C5.prototype,"buttonRenderers",void 0);_.q([_.fr("#background"),_.x("design:type",HTMLDivElement)],C5.prototype,"background",void 0);
_.q([_.fr("#guide-button"),_.x("design:type",Object)],C5.prototype,"guideButton",void 0);_.q([_.fr("#logo"),_.x("design:type",Object)],C5.prototype,"logo",void 0);_.q([_.y({computed:"computeButtonOverride(dark)"}),_.x("design:type",Object)],C5.prototype,"buttonOverrides",void 0);_.q([_.rd("dark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"onDarkChanged",null);_.q([_.y({value:function(){return this.onVoiceTap.bind(this)}}),
_.x("design:type",Function)],C5.prototype,"boundOnTapVoiceButton",void 0);_.q([_.y(),_.x("design:type",Object)],C5.prototype,"topbarIsAboveChipbar",void 0);_.q([_.y(),_.x("design:type",String),_.x("design:paramtypes",[])],C5.prototype,"guideIcon",null);_.q([_.b("voiceEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],C5.prototype,"shouldShowVoiceSearchButton",null);_.q([_.b("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],C5.prototype,"voiceSearchButton",null);
_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"dataChanged",null);_.q([_.Fv("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"onRendererStamperFinished",null);_.q([_.rd("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"onWatchPageChange",null);
_.q([_.rd("narrow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"narrowChanged",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-masthead"})],C5);
_.L(C5,"ytd-masthead",function(){if(ZWh!==void 0)return ZWh;var D=document.createElement("template");_.w(D,'\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="max-width: 656px" 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>\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return ZWh=D},{mode:_.zD("kevlar_poly_si_batch_j036")?1:2});var Gjp;var VxT={},ff0={},evt={},Aot={},njp=(Aot.OFFLINE=(VxT["publicytnetworkstatus-online"]="BACK_ONLINE",VxT),Aot.ONLINE=(ff0["publicytnetworkstatus-offline"]="OFFLINE",ff0),Aot.BACK_ONLINE=(evt["publicytnetworkstatus-offline"]="OFFLINE",evt.TIMER_TRIGGER="ONLINE",evt),Aot),W2=function(){var D=_.N.apply(this,arguments)||this;D.currentState="ONLINE";D.scheduledJobId=0;D.bannerString="";D.bannerVe=null;D.networkStatusManagerInstance=new _.xQ;return D};
_.n(W2,_.N);_.u=W2.prototype;_.u.attached=function(){var D=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.u.detached=function(){var D=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.u.enterState=function(D){var Y=this;this.scheduledJobId&&_.yc.cancelJob(this.scheduledJobId);D==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):D==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.fX("NO_INTERNET_CONNECTION",void 0,"No internet connection")):D==="BACK_ONLINE"&&(this.bannerString=_.fX("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Ak(_.yc,function(){Y.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=D};
_.u.stateChangeHandler=function(D){(D=njp[this.currentState][D])&&this.enterState(D)};
_.u.logVisibility=function(D){var Y=_.K2();this.createBannerVe(D);Y&&this.bannerVe&&(D?_.E7(Y,[this.bannerVe]):_.gC(Y,[this.bannerVe]))};
_.u.createBannerVe=function(D){!this.bannerVe&&D&&(this.bannerVe=_.TP(37929),_.Ii(_.n8(),this.bannerVe))};
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",String)],W2.prototype,"currentState",void 0);_.q([_.y(),_.x("design:type",Object)],W2.prototype,"scheduledJobId",void 0);_.q([_.y(),_.x("design:type",Object)],W2.prototype,"bannerString",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-network-status-banner"})],W2);
_.L(W2,"ytd-network-status-banner",function(){if(Gjp!==void 0)return Gjp;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return Gjp=
D},{mode:1});var rob;var z4=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};D.hidden=!0;D.frostedGlass=_.f("web_frosted_glass");return D};
_.n(z4,_.N);z4.prototype.computeHidden=function(D){return D&&D.status?!1:!0};
z4.prototype.handleUpdatePermissionRoleCommand=function(D){if(D=_.A(D,_.glb))if(D=_.A(D.renderer,_.El1))this.data=D};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],z4.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],z4.prototype,"componentBehavior",void 0);_.q([_.y({value:!0,computed:"computeHidden(data)"}),_.x("design:type",Object)],z4.prototype,"hidden",void 0);_.q([_.y(),_.x("design:type",Object)],z4.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],z4.prototype,"frostedGlass",void 0);
_.q([_.h({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],z4);
_.L(z4,"ytd-permission-role-bottom-bar-renderer",function(){if(rob!==void 0)return rob;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return rob=D},{mode:1});var wS0;var $9I;var nCz={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Su=function(){return _.N.apply(this,arguments)||this};
_.n(Su,_.N);_.u=Su.prototype;_.u.attached=function(){this.JSC$20618_scroller&&(this.JSC$20618_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20618_scroller.attached&&typeof this.JSC$20618_scroller.attached==="function"&&this.JSC$20618_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(R){R.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var D=_.aU(this.hostElement);D.querySelector("tp-yt-paper-radio-group").selected="";var Y=D.querySelector("#reason-text");Y&&(Y.value="");D.querySelector("#description-text").value=""}};
_.u.canSubmit=function(D,Y){_.MX(this.hostElement,"yt-invalidate-popup-tabbables");return!(D&&Y)};
_.u.onCancel=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.u.onSubmit=function(){var D=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(X){return X.active}).map(function(X){return X.innerText.trim()}),Y=this.hostElement.querySelector("tp-yt-paper-radio-group"),R=Y.selectedItem,Z=R.name;
R=R.innerText.trim();var t=Y.querySelector("#reason-text");Y=void 0;t&&(Y=t.value);(t=this.descriptionText.value)&&(t=t.trim());riT(this.data.searchQuery,D,Z,R,t,Y);_.CX(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.u.sendFormSubmitToast=function(){var D=_.Zl(_.fX("SBOX_INAPPROPRIATE_TOAST"));_.CX(this.hostElement,"yt-open-popup-action",[D,this])};
_.u.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(D){return D.active})};
_.u.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Su.prototype.onIronSelect=Su.prototype.onIronSelect;Su.prototype.onIronChange=Su.prototype.onIronChange;Su.prototype.dataChanged=Su.prototype.dataChanged;_.q([_.y(),_.x("design:type",Object)],Su.prototype,"data",void 0);_.q([_.y({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.x("design:type",Boolean)],Su.prototype,"submitDisabled",void 0);_.q([_.y(),_.x("design:type",Boolean)],Su.prototype,"suggestionSelected",void 0);
_.q([_.y(),_.x("design:type",Boolean)],Su.prototype,"catagorySelected",void 0);_.q([_.fr("#scroller"),_.x("design:type",Object)],Su.prototype,"JSC$20618_scroller",void 0);_.q([_.fr("#description-text"),_.x("design:type",Object)],Su.prototype,"descriptionText",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Su.prototype,"dataChanged",null);
_.q([_.Fv("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Su.prototype,"onIronChange",null);_.q([_.Fv("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Su.prototype,"onIronSelect",null);_.q([_.h({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Su);
_.L(Su,"ytd-search-suggestion-report-dialog",function(){if($9I!==void 0)return $9I;var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);return $9I=D},{mode:1});var T4=function(D){var Y=D.openPopupAction;var R=D.target;var Z=D.container;var t=D.popupContainerConfig;var X=D.getElement;D=D.removeWhenClosed===void 0?!1:D.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=Y;this.target=R;this.container=Z;this.popupContainerConfig=t;this.getElement=X;this.JSC$20624_popupConfig=this.popupContainerConfig.JSC$19759_popupConfig[this.openPopupAction.popupType];this.rendererName=(Y=this.getName())?_.l4U(Y,zd0(this.popupContainerConfig,
Y)):"";_.f("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=D);this.createPopup()};
T4.prototype.updatePopup=function(D){this.openPopupAction=D;this.JSC$20624_popupConfig=this.popupContainerConfig.JSC$19759_popupConfig[this.openPopupAction.popupType];vjz(this);_.f("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
T4.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var yot=function(D,Y,R){(Y=Y&&D.JSC$20624_popupConfig.narrowProperties?D.JSC$20624_popupConfig.narrowProperties:D.JSC$20624_popupConfig.properties)&&R!==void 0&&(Y.isAriaModal=R);ojz(D,Y);D.isRtl()&&ojz(D,D.JSC$20624_popupConfig.rtlProperties);bWu(D)};
T4.prototype.createPopup=function(){var D=this.JSC$20624_popupConfig.component;if(this.popupContent=N4E(this,this.rendererName)){if(D){this.popup=N4E(this,D);var Y=this.popupContent;_.f("web_enable_wrapper_for_cow_component_in_popup")&&(Y=document.createElement("div"),Y.appendChild(this.popupContent));_.f("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20624_popupConfig.slotName&&Y.setAttribute("slot",this.JSC$20624_popupConfig.slotName);D=this.popup;var R=this.container.tagName.toLowerCase(),
Z=_.Dh(Y);_.Cn$(_.RU(D),_.sg(Y,R,Z));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.f("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.aU(this.container).appendChild(this.popup)}};
var vjz=function(D){var Y,R,Z=(Y=D.openPopupAction.accessibilityData)==null?void 0:(R=Y.accessibilityData)==null?void 0:R.label;Z&&(D.popup.ariaLabel=Z);var t;((t=D.popupContent.polymerController)!=null?t:D.popupContent).data=(0,_.y7.unsafeClone)(D.openPopupAction.popup[D.getName()]);D.popupContent.duration=lfK(D);D.popupContent.positionType=D.openPopupAction.position;var X=D.openPopupAction.properties;X&&Object.keys(X).forEach(function(M){D.popupContent[M]=X[M]})},ojz=function(D,Y){if(Y)for(var R=
_.a(Object.keys(Y)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,D.popup[Z]=Y[Z]},bWu=function(D){if(D.openPopupAction.position){var Y=D.JSC$20624_popupConfig.positionalProperties&&D.JSC$20624_popupConfig.positionalProperties[D.openPopupAction.position],R=D.JSC$20624_popupConfig.rtlPositionalProperties&&D.JSC$20624_popupConfig.rtlPositionalProperties[D.openPopupAction.position];
Y=D.isRtl()&&R?R:Y;Y.shiftedHorizontalOffset&&(R=D.popup.style.display,D.popup.style.display="block",D.popupContent&&D.popup.positionTarget&&D.popupContent.clientWidth>D.popup.positionTarget.clientWidth&&(Y.horizontalOffset=D.popup.positionTarget.clientWidth/2-Y.shiftedHorizontalOffset),D.popup.style.display=R);ojz(D,Y)}},Jop=function(D,Y){if(Y)for(var R=_.a(Object.keys(Y)),Z=R.next();!Z.done;Z=R.next())Z=Z.value,D.popup.style[Z]=Y[Z]};
T4.prototype.getName=function(){return _.yL(this.openPopupAction.popup,"renderer")||_.yL(this.openPopupAction.popup,"dialog")||_.yL(this.openPopupAction.popup,"model")||void 0};
var lfK=function(D){D=D.openPopupAction.durationHintMs;return D===0?D:Math.max(4E3,D||4E3)};
T4.prototype.isRtl=function(){return _.JQ("HTML_DIR")==="rtl"};
var N4E=function(D,Y){D=D.getElement(Y,D.target);D==null&&_.Jk(new _.AT("popup getElement returned null",Y));return D};var kjK={};
kjK.YtPopupContainerBehavior=[_.Bs.YtComponentBehavior,_.Va.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.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Xa(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ui(this.hostElement)},
closePopup:function(D){var Y=this.createCacheKey(void 0,D);this.popups_[Y]&&this.handleClosePopupAction_(void 0,D)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.yc.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.yc.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(D){D.opened&&D.keepBelowPlayer&&this.ensurePopupBelowPlayer(D)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var D in this.popups_){var Y=this.popups_[D];if(Y.popup.scrollAction==="refit"){var R=Y.popup.positionTarget.getBoundingClientRect(),Z=Y.popup;R=R.top;var t=Y;if(!t.naturalHeight){t.popup.hidden=!1;t.popup.style.position="fixed";t.popup.style.top="0px";t.popup.style.left="0px";var X=t.popup.getBoundingClientRect();t.naturalHeight=X.bottom-X.top;t.popup.refit()}Z.hidden=!(R>=t.naturalHeight+60);Y.popupContent.clientHeight===0&&Y.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(D){this.popupContainerConfig=D},
handleOpenPopupAction:function(D,Y){var R=D.openPopupAction,Z=_.DH().resolve(_.cD(_.r6))&&R.popupType==="TOAST";Z&&!R.uniqueId&&(R.uniqueId=_.EZ());if(!_.f("popup_container_parent_target_killswitch")){var t;Y=(t=this.getParentTarget(Y))!=null?t:Y}var X=this.ensurePopup_(R,Y);return new _.zz(function(M){X.then(function(W){if(!W)return M();this.maybeCreateNarrowMediaQuery_();var z=this.createCacheKey(W.rendererName,W.openPopupAction.uniqueId);if(R.showOncePerUniqueId){if(this.shownPopupKeys_.has(z))return M();
this.shownPopupKeys_.add(z)}z=this.popups_[z];var I=!(!z||!z.openPopupAction.beReused);I=!!R.reusePopup||I;if(W.popup.opened&&!I){Z&&!W.openPopupAction.replacePopup||this.handleClosePopupAction_(W.rendererName,W.openPopupAction.uniqueId);I=R.popupType==="DIALOG"&&!_.f("popup_container_dialog_reopen_killswitch");if(!Z&&!I&&z&&z.target==Y&&!W.openPopupAction.replacePopup)return M();_.cy(W.popup,function(){this.completeOpenPopupAction_(R,Y,W);M()}.bind(this))}else W.popup.opened?W.updatePopup(R):this.completeOpenPopupAction_(R,
Y,W),M()}.bind(this))}.bind(this))},
getParentTarget:function(D){if(D&&D instanceof HTMLElement)for(var Y=_.a(Object.entries(this.popups_)),R=Y.next();!R.done;R=Y.next())if(R=_.a(R.value),R.next(),R=R.next().value,R.popup.tagName==="TP-YT-IRON-DROPDOWN"&&D.closest(R.rendererName))return R.target},
completeOpenPopupAction_:function(D,Y,R){R.updatePopup(D);D=this.narrowMediaQuery_.queryMatches;var Z=this.isAriaModal;R.target=Y;var t;Y=((t=R.target.polymerController)!=null?t:R.target).popupPositionTarget||R.target;R.JSC$20624_popupConfig.targetContainer&&(Y=R.container);R.popup.positionTarget=Y;R.popupContent.positionTarget=Y;bWu(R);R.JSC$20624_popupConfig.forceFocus&&(R.popupContent.style.outline="none");R.popupContent.tabIndex=-1;R.JSC$20624_popupConfig.narrowProperties&&(R.popup.style.position=
"static");R.JSC$20624_popupConfig.preventAutonav&&R.popup.setAttribute("prevent-autonav",!0);R.JSC$20624_popupConfig.forceCloseOnOutsideClick&&R.popup.setAttribute("force-close-on-outside-click",!0);yot(R,D,Z);Jop(R,R.JSC$20624_popupConfig.styles);R.isRtl()&&Jop(R,R.JSC$20624_popupConfig.rtlStyles);if(!R.openPopupAction.shouldStopParentSignal){var X;t=(X=R.target.polymerController)!=null?X:R.target;(R.popupContent.startForwardingEvents||R.popupContainerConfig.forwardingEnabledPopups.has(R.rendererName))&&
t.parentComponent!==R.popupContent&&R.popupContent!==R.target&&R.target!==document.body&&(R.popupContent.startForwardingEvents?R.popupContent.startForwardingEvents(R.popupContainerConfig.forwardedEvents,R.target):(R.JSC$20624_eventForwarder||(R.JSC$20624_eventForwarder=new _.aa(R.popupContent)),R.JSC$20624_eventForwarder.start(R.popupContainerConfig.forwardedEvents,R.target)))}R=R.popup;R.addEventListener("iron-overlay-opened",_.jN(this,this.onPopupIronOverlayOpened_));R.addEventListener("iron-overlay-closed",
_.jN(this,this.onPopupIronOverlayClosed_));R.addEventListener("iron-overlay-canceled",_.jN(this,this.onPopupIronOverlayCanceled_));R.addEventListener("yt-refit",_.jN(this,this.refitPopup_));R.addEventListener("yt-invalidate-popup-tabbables",_.jN(this,this.handleInvalidatePopupTabbables_));R.open()},
getPopupDurationMs_:function(D){return D.durationHintMs===0?D.durationHintMs:Math.max(4E3,D.durationHintMs||4E3)},
handleClosePopupAction_:function(D,Y){var R=_.f("web_popup_cache_key_killswitch")||!!Y;if(D||R){var Z=this.createCacheKey(D,Y);D=(D=this.popups_[Z])&&D.popup}else D=_.NKU(_.Qm);if(D&&D.close){if(Y=_.DH().resolve(_.cD(_.MQ)))D.restoreFocusOnClose=Y.isKeyBoardInUse();D.close();this.removePopup_(D,Z)}},
handleClosePopupCommand_:function(D){D.closePopupCommand&&D.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,D.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(D){var Y={},R;for(R in this.popups_)if(Y={key$jscomp$1184:Y.key$jscomp$1184},Y.key$jscomp$1184=R,!D||!D.some(function(X){return function(M){return M==X.key$jscomp$1184}}(Y))){var Z=this.popups_[Y.key$jscomp$1184],t=Z.popup;
_.DH().resolve(_.cD(_.r6))&&Z.openPopupAction.popupType==="TOAST"||(t&&t.close&&t.close(),this.removePopup_(t,Y.key$jscomp$1184))}},
handleClosePopupsAction_:function(D){D.forEach(function(Y){var R=this.popups_[Y];R&&((R=R.popup)&&R.close&&R.close(),this.removePopup_(R,Y))}.bind(this))},
handleGetPopupOpenedAction_:function(D,Y){return(Y=this.createCacheKey(D,Y))&&this.popups_[Y]?this.popups_[D].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var D=[],Y;for(Y in this.popups_){var R=this.popups_[Y];R.popup.opened&&D.push(R)}return D},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(D,Y){_.f("ytpopup_disable_default_html_caching")&&D&&D.removeWhenClosed&&(_.aU(this.hostElement).removeChild(D),Y&&this.popups_[Y]&&delete this.popups_[Y])},
shouldReusePopup_:function(D){return!(!D||!D.reusePopup)||!(!D||!D.beReused)},
ensurePopup_:function(D,Y){this.maybeCreateNarrowMediaQuery_();var R=_.yL(D.popup,"renderer")||_.yL(D.popup,"dialog")||_.yL(D.popup,"model");if(!R)return _.TA();R=_.l4U(R,zd0(this.popupContainerConfig,R));return _.TA(this.getAndMaybeCreatePopup_(D,R,Y))},
getAndMaybeCreatePopup_:function(D,Y,R){var Z=this.createCacheKey(Y,D.uniqueId);if(this.popups_[Z])return this.popups_[Z];D=new T4({openPopupAction:D,target:R,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(Y)});return this.popups_[Z]=D},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(D){return _.f("ytpopup_disable_default_html_caching")?D&&D.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",_.jN(this,this.openPopupQueryMatchesChanged_)),_.aU(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(D){D=D.detail.value;for(var Y in this.popups_)yot(this.popups_[Y],D)},
onPopupIronOverlayClosed_:function(D){var Y=D.currentTarget,R=_.y8y(Y);R=R.length>0?R[0]:Y;if(R.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){D.detail.popup=Y;D.detail.popupRenderer=R;var Z,t={context:{openingElement:((Z=this.popups_[(R==null?void 0:R.is)||""])==null?void 0:Z.target)||void 0}};Object.assign(t,D.detail);var X;_.MX((X=R.hostElement)!=null?X:R,"yt-popup-closed",t);Y.removeEventListener("yt-refit",_.jN(this,this.refitPopup_));Y.removeEventListener("yt-invalidate-popup-tabbables",
_.jN(this,this.handleInvalidatePopupTabbables_));Y.removeEventListener("iron-overlay-canceled",_.jN(this,this.onPopupIronOverlayCanceled_));Y.removeEventListener("iron-overlay-closed",_.jN(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(Y)}},
onPopupIronOverlayCanceled_:function(D,Y){var R=D.currentTarget,Z=_.y8y(R);Z=Z.length>0?Z[0]:R;if(Z.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){var t;_.MX((t=Z.hostElement)!=null?t:Z,"yt-popup-canceled",D.detail);t=Y?_.O$(Y):null;(!Y||["click","tap"].includes(Y.type))&&!R.hasAttribute("force-close-on-outside-click")&&R.positionTarget&&t&&t.includes(R.positionTarget)&&D.preventDefault();R.restoreFocusOnClose=_.nJ.keyboardEventMatchesKeys(Y,"esc")}},
onPopupIronOverlayOpened_:function(D){D=D.currentTarget;var Y=_.y8y(D);Y=Y.length>0?Y[0]:D;var R,Z;_.MX((R=Y.hostElement)!=null?R:Y,"yt-popup-opened",(Z=Y.hostElement)!=null?Z:Y);D.keepBelowPlayer&&(this.ensurePopupBelowPlayer(D,!0),this.dynamicallyPositionedElements_.add(D));R=_.DH().resolve(_.cD(_.MQ));Z=!!Y.querySelector("#toast");R&&R.isKeyBoardInUse()&&!Z&&(typeof Y.focusFirstItem==="function"?Y.focusFirstItem():(Y=_.o6L(D),Y.length&&Y[0].focus()));D.removeEventListener("iron-overlay-opened",
_.jN(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(D){D=D.currentTarget;D.refit&&D.refit()},
refitPopups_:function(){for(var D in this.popups_)this.popups_[D].refit()},
handleInvalidatePopupTabbables_:function(D){D=D.currentTarget;D.invalidateTabbables&&D.invalidateTabbables()},
createCacheKey:function(D,Y){return _.f("web_popup_cache_key_killswitch")?Y?D+"#"+Y:D:Y?"#"+Y:D},
openSheet:function(D,Y){var R=D==null?void 0:D.openPopupActionCommand;!R&&(D==null?0:D.viewModel)&&(R={openPopupAction:{popup:{sheetViewModel:D.viewModel},popupType:"CONTEXTUAL_SHEET"}});R&&this.handleOpenPopupAction(R,Y)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var D=this;return _.C(function(Y){return Y.return(D.handleGetOpenedPopupsAction_().filter(function(R){var Z;return((Z=R.openPopupAction)==null?void 0:Z.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(D,Y,R){if(_.f("web_dialog_utils_killswitch")){var Z=D==null?void 0:D.openPopupActionCommand,t=(R==null?0:R.ariaLabel)?{accessibilityData:{accessibilityData:{label:R.ariaLabel}}}:void 0;!Z&&(D==null?0:D.viewModel)&&(Z={openPopupAction:Object.assign({},{popup:{dialogViewModel:D.viewModel},popupType:(R==null?0:R.isModal)?"MODAL":"DIALOG"},t&&t)});Z&&this.handleOpenPopupAction(Z,Y)}else{if(t=D==null?void 0:D.viewModel){var X=R=R===void 0?{}:R;R=X.ariaLabel;t={popup:{dialogViewModel:t},
popupType:X.isModal?"MODAL":"DIALOG"};X={accessibilityData:{label:R}};R&&(t.accessibilityData=X);t={openPopupAction:t}}else t=void 0;if(t=(Z=t)!=null?Z:D==null?void 0:D.openPopupActionCommand)this.isAriaModal=_.f("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(t,Y)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var D=this;return _.C(function(Y){return Y.return(D.handleGetOpenedPopupsAction_().filter(function(R){var Z;return((Z=R.openPopupAction)==null?void 0:Z.popupType)==="DIALOG"}).length>0)})}}];var U9h;var KdK;var hvb=_.gY(["about:blank"]),ju=function(){var D=_.N.apply(this,arguments)||this;D.isMuted=!1;D.pageLoadTimeoutId=void 0;return D};
_.n(ju,_.N);_.u=ju.prototype;_.u.dataChanged=function(){var D=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var Y=this.data.url,R=_.Ns(Y);_.f("enable_yt_ata_iframe_authuser")?(R=_.Ns(Y),_.x7(this.iframe,wL0(R))):_.x7(this.iframe,R);this.pageLoadTimeoutId=_.Ak(_.b$(),function(){return void D.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Do({destination:window,iframe:this.iframe,origin:_.A97(R.toString()),channelName:"ataiframe",onMessage:_.vAU(F0K,function(Z){G5E(Z.data)?(Z=_.Pu(Z.data,1,_.iU,_.R0()),Z.length!==1?_.Jk(Error("tl")):(Z=Z[0],Z===3?(D.isMuted=!0,D.logStateChanged({adMuteRequested:!0})):Z===1&&D.close())):_.Jk(Error("ul"))}),
onEstablished:function(){D.cancelPageLoadTimeout();D.logStateChanged({pageLoadSucceeded:!0})}})}};
_.u.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.b$().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.u.logStateChanged=function(D){var Y;if((Y=this.data)==null?0:Y.trackingParams)D={adsClientData:{aboutThisAdData:D}},_.n8().stateChanged(this.data.trackingParams,D)};
_.u.close=function(){_.CX(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.handlesPopupClosed=function(D,Y){var R=this,Z,t;return _.C(function(X){if(X.nextAddress==1)return _.JQ("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.CX(R.hostElement,"on-about-this-ad-popup-closed",[R.isMuted,Y]),X.jumpTo(0)):D&&$IK(D)?X.yield(vCh(D),4):(R.isMuted&&_.CX(R.hostElement,"yt-mute-ad-action",[R.is,R]),X.jumpTo(0));if(Z=X.yieldResult){var M=t=new _.vz(Z),W=R.isMuted;M.getOptions().includes("onAboutThisAdPopupClosed")?_.Hlz(M,"onAboutThisAdPopupClosed",{isMuted:W,layoutId:Y}):_.dq("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.V9(X)})};
_.u.onPopupClosed=function(D){var Y=this,R,Z;return _.C(function(t){R=_.tZ(hvb);_.x7(Y.iframe,R);Y.cancelPageLoadTimeout();if(!Y.data)return t.jumpTo(0);Y.ytRendererBehavior.markDirty();Z=D.detail.context.openingElement;return t.yield(Y.handlesPopupClosed(Z,Y.data.layoutId),0)})};
_.u.detached=function(){this.cancelPageLoadTimeout()};
_.u.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ju.prototype.onPopupClosed=ju.prototype.onPopupClosed;ju.prototype.dataChanged=ju.prototype.dataChanged;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.q([_.fr("#iframe"),_.x("design:type",HTMLIFrameElement)],ju.prototype,"iframe",void 0);_.q([_.y(),_.x("design:type",Object)],ju.prototype,"data",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ju.prototype,"dataChanged",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],ju.prototype,"onPopupClosed",null);_.q([_.Lr({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],ju);
_.L(ju,"yt-about-this-ad-renderer",function(){if(KdK===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;U9h===void 0&&(U9h=document.createElement("template"));var Z=U9h;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);KdK=D}D=KdK;return D},{mode:2});var Ldk;var m9k;var IN=function(D){var Y=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.maxFileSizeMB=D;Object.setPrototypeOf(this,IN.prototype)};
_.n(IN,Error);var qfh=function(D,Y){var R=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=R.message;"stack"in R&&(this.stack=R.stack);this.minWidth=D;this.minHeight=Y;Object.setPrototypeOf(this,qfh.prototype)};
_.n(qfh,Error);var HWt=function(D){this.requirements=D;this.JSC$20652_maxFileSize=D.maxFileSizeMB*1024*1024},x9I=function(D,Y){if(Y.size>D.JSC$20652_maxFileSize)throw new IN(D.requirements.maxFileSizeMB);
};var Pb0=function(D,Y){this.canvas=D;this.imageEditorBuilder=Y};
Pb0.prototype.addEventListeners=function(D){var Y=function(t){QHE(D,t)};
this.JSC$20658_mouseDownEvent=Y;var R=function(t){B40(D,t)};
this.JSC$20658_mouseMoveEvent=R;var Z=function(){pSh(D)};
this.JSC$20658_mouseUpEvent=Z;this.canvas.addEventListener("mousedown",Y);this.canvas.addEventListener("mousemove",R);document.addEventListener("mouseup",Z)};
Pb0.prototype.removeEventListeners=function(){this.JSC$20658_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20658_mouseDownEvent);this.JSC$20658_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20658_mouseMoveEvent);this.JSC$20658_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20658_mouseUpEvent)};
var Eju=function(D,Y){D.removeEventListeners();return new Promise(function(R){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var t=D.imageEditorBuilder(D.canvas,Z);D.addEventListeners(t);R(t)};
Z.src=Y})},FV=function(D,Y,R,Z,t,X,M,W){this.canvas=D;
this.image=Y;this.requiredRatio=R;this.minImageCropDimension=Z;this.minOutputImageResolution=t;this.component=X;this.styleFocusedCorner=W===void 0?!0:W;this.action=2;this.focusedCorner=this.resizeCorner=0;D=this.canvas.getContext("2d");if(!D)throw Error("vl");this.ctx=D;this.canvasMargin=M!=null?M:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;M=this.image;D=this.canvasInnerWidth/M.width;M.height*D>912&&(D=M.width/M.height*912/M.width);M=D;this.scaledImageWidth=this.canvas.width%2?
b8T(this.image.width*M):oCK(this.image.width*M);this.scaledImageHeight=Math.round(this.image.height*M);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20661_overlayMarginBottom=this.JSC$20661_overlayMarginTop=this.canvasMargin;this.JSC$20661_overlayMarginRight=this.JSC$20661_overlayMarginLeft=this.horizontalMargin;this.JSC$20661_overlayWidth=this.scaledImageWidth;this.JSC$20661_overlayHeight=this.scaledImageHeight;
D=this.image.width/this.image.height;D>this.requiredRatio?(this.JSC$20661_overlayWidth=this.canvas.width%2?b8T(this.scaledImageHeight*this.requiredRatio):oCK(this.scaledImageHeight*this.requiredRatio),this.JSC$20661_overlayMarginRight=this.JSC$20661_overlayMarginLeft=(this.canvas.width-this.JSC$20661_overlayWidth)/2):D<this.requiredRatio&&(this.JSC$20661_overlayHeight=this.canvas.height%2?b8T(this.scaledImageWidth/this.requiredRatio):oCK(this.scaledImageWidth/this.requiredRatio),this.JSC$20661_overlayMarginBottom=
this.JSC$20661_overlayMarginTop=(this.canvas.height-this.JSC$20661_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*M,this.scaledImageWidth);gjp(this)};
FV.prototype.getContext=function(){return this.ctx};
var QHE=function(D,Y){Y={x:Math.round(Y.pageX-D.canvas.getBoundingClientRect().left),y:Math.round(Y.pageY-D.canvas.getBoundingClientRect().top)};D.dragStart=Y;d9t(D,Y)!==0?(D.action=1,iWh(D,Y),D.resizeCorner=d9t(D,Y)):Y.x>D.JSC$20661_overlayMarginLeft&&Y.x<D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth&&Y.y>D.JSC$20661_overlayMarginTop&&Y.y<D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight&&(D.action=0)},OWt=function(D,Y){switch(Y){case 1:return{x:D.JSC$20661_overlayMarginLeft,
y:D.JSC$20661_overlayMarginTop};case 2:return{x:D.JSC$20661_overlayMarginLeft,y:D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight};case 3:return{x:D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth,y:D.JSC$20661_overlayMarginTop};case 4:return{x:D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth,y:D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight};default:throw Error("wl");}},DTK=function(D,Y){if(D.focusedCorner!==0){D.dragStart=OWt(D,D.focusedCorner);
D.action=1;D.resizeCorner=D.focusedCorner;var R=D.dragStart.x,Z=D.dragStart.y;switch(Y){case 0:D.focusedCorner===1||D.focusedCorner===4?(R-=10,Z-=10):(R-=10,Z+=10);break;case 1:D.focusedCorner===1||D.focusedCorner===4?(R+=10,Z+=10):(R+=10,Z-=10);break;case 2:R=D.focusedCorner===1||D.focusedCorner===4?R-10:R+10;Z-=10;break;case 3:R=D.focusedCorner===1||D.focusedCorner===4?R+10:R-10;Z+=10;break;default:throw Error("xl");}cou(D,{x:R,y:Z});gjp(D);D.action=2;D.dragStart=void 0}},B40=function(D,Y){Y={x:Math.round(Y.pageX-
D.canvas.getBoundingClientRect().left),
y:Math.round(Y.pageY-D.canvas.getBoundingClientRect().top)};iWh(D,Y);switch(D.action){case 1:cou(D,Y);break;case 0:D.dragStart&&(D.JSC$20661_overlayMarginLeft=Math.max(D.horizontalMargin,Math.min(D.JSC$20661_overlayMarginLeft-(D.dragStart.x-Y.x),D.horizontalMargin+D.scaledImageWidth-D.JSC$20661_overlayWidth)),D.JSC$20661_overlayMarginRight=D.canvas.width-D.JSC$20661_overlayMarginLeft-D.JSC$20661_overlayWidth,D.JSC$20661_overlayMarginTop=Math.max(D.canvasMargin,Math.min(D.JSC$20661_overlayMarginTop-
(D.dragStart.y-Y.y),D.scaledImageHeight-D.JSC$20661_overlayHeight+D.canvasMargin)),D.JSC$20661_overlayMarginBottom=D.canvas.height-(D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight));break;default:return}gjp(D);D.dragStart=Y},pSh=function(D){D.action=2;
D.dragStart=void 0;document.body.style.cursor="auto"},iWh=function(D,Y){switch(d9t(D,Y)){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:D.action!==1&&(document.body.style.cursor="auto")}},d9t=function(D,Y){var R=D.JSC$20661_overlayMarginLeft-5,Z=D.JSC$20661_overlayMarginTop-5,t=D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth-5;
D=D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-5;return Ye9(Y,{x:R,y:Z})?1:Ye9(Y,{x:t,y:Z})?3:Ye9(Y,{x:R,y:D})?2:Ye9(Y,{x:t,y:D})?4:0},Ye9=function(D,Y){return D.x>=Y.x&&D.x<=Y.x+10&&D.y>=Y.y&&D.y<=Y.y+10},cou=function(D,Y){if(D.dragStart)switch(D.resizeCorner){case 2:Math.abs((D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth-Y.x)/(Y.y-D.JSC$20661_overlayMarginTop))>=D.requiredRatio?R0k(D,Y.x):Zpt(D,Y.y);
break;case 1:Math.abs((D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth-Y.x)/(D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-Y.y))>=D.requiredRatio?t2E(D,Y.x):Zpt(D,Y.y);break;case 4:Math.abs((Y.x-D.JSC$20661_overlayMarginLeft)/(Y.y-D.JSC$20661_overlayMarginTop))>=D.requiredRatio?R0k(D,Y.x):sjh(D,Y.y);break;case 3:Math.abs((Y.x-D.JSC$20661_overlayMarginLeft)/(D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-Y.y))>=D.requiredRatio?t2E(D,Y.x):sjh(D,Y.y);break;default:throw Error("yl");
}},R0k=function(D,Y){var R=D.JSC$20661_overlayMarginTop;
D.JSC$20661_overlayMarginBottom=Xi9(D,Y);D.JSC$20661_overlayHeight=D.canvas.height-D.JSC$20661_overlayMarginBottom-R;D.JSC$20661_overlayWidth=Math.round(D.JSC$20661_overlayHeight*D.requiredRatio);uYk(D)},t2E=function(D,Y){var R=D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight;
D.JSC$20661_overlayMarginTop=Xi9(D,Y);D.JSC$20661_overlayHeight=R-D.JSC$20661_overlayMarginTop;D.JSC$20661_overlayWidth=Math.round(D.JSC$20661_overlayHeight*D.requiredRatio);uYk(D)},uYk=function(D){switch(D.resizeCorner){case 2:case 1:D.JSC$20661_overlayMarginLeft=D.canvas.width-D.JSC$20661_overlayMarginRight-D.JSC$20661_overlayWidth;
break;case 4:case 3:D.JSC$20661_overlayMarginRight=D.canvas.width-D.JSC$20661_overlayMarginLeft-D.JSC$20661_overlayWidth;break;default:throw Error("yl");}},Zpt=function(D,Y){var R=D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth;
D.JSC$20661_overlayMarginLeft=a8K(D,Y);D.JSC$20661_overlayWidth=R-D.JSC$20661_overlayMarginLeft;D.JSC$20661_overlayHeight=Math.round(D.JSC$20661_overlayWidth/D.requiredRatio);M2h(D)},sjh=function(D,Y){var R=D.JSC$20661_overlayMarginLeft;
D.JSC$20661_overlayMarginRight=a8K(D,Y);D.JSC$20661_overlayWidth=D.canvas.width-D.JSC$20661_overlayMarginRight-R;D.JSC$20661_overlayHeight=Math.round(D.JSC$20661_overlayWidth/D.requiredRatio);M2h(D)},M2h=function(D){switch(D.resizeCorner){case 2:case 4:D.JSC$20661_overlayMarginBottom=D.canvas.height-D.JSC$20661_overlayMarginTop-D.JSC$20661_overlayHeight;
break;case 1:case 3:D.JSC$20661_overlayMarginTop=D.canvas.height-D.JSC$20661_overlayMarginBottom-D.JSC$20661_overlayHeight;break;default:throw Error("yl");}},Xi9=function(D,Y){switch(D.resizeCorner){case 2:Y=D.canvas.height-(D.JSC$20661_overlayMarginTop+CtI(D,Y));
break;case 4:Y=D.canvas.height-(D.JSC$20661_overlayMarginTop+WFh(D,Y));break;case 1:Y=D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-CtI(D,Y);break;case 3:Y=D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-WFh(D,Y);break;default:throw Error("yl");}return Math.max(Y,D.canvasMargin)},CtI=function(D,Y){Y=D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth-Math.max(Y,D.horizontalMargin);
Y=Y<0?D.JSC$20661_overlayWidth:Math.max(Y,D.minOverlayWidth);return Math.round(Y/D.requiredRatio)},WFh=function(D,Y){Y=D.canvas.width-Math.max(D.canvas.width-Y,D.horizontalMargin)-D.JSC$20661_overlayMarginLeft;
Y=Y<0?D.JSC$20661_overlayWidth:Math.max(Y,D.minOverlayWidth);return Math.round(Y/D.requiredRatio)},a8K=function(D,Y){switch(D.resizeCorner){case 2:Y=D.canvas.width-D.JSC$20661_overlayMarginRight-z0k(D,Y);
break;case 4:Y=D.canvas.width-D.JSC$20661_overlayMarginLeft-z0k(D,Y);break;case 1:Y=D.canvas.width-D.JSC$20661_overlayMarginRight-Sep(D,Y);break;case 3:Y=D.canvas.width-D.JSC$20661_overlayMarginLeft-Sep(D,Y);break;default:throw Error("yl");}return Math.max(Y,D.horizontalMargin)},z0k=function(D,Y){Y=D.canvas.height-Math.max(D.canvas.height-Y,D.canvasMargin)-D.JSC$20661_overlayMarginTop;
return Y<0?D.JSC$20661_overlayWidth:Math.max(Math.round(Y*D.requiredRatio),D.minOverlayWidth)},Sep=function(D,Y){Y=D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-Math.max(Y,D.canvasMargin);
return Y<0?D.JSC$20661_overlayWidth:Math.max(Math.round(Y*D.requiredRatio),D.minOverlayWidth)},gjp=function(D){D.ctx.clearRect(0,0,D.canvas.width,D.canvas.height);
D.ctx.drawImage(D.image,0,0,D.image.width,D.image.height,D.horizontalMargin,D.canvasMargin,D.canvas.width-2*D.horizontalMargin,D.scaledImageHeight);D.ctx.fillStyle="rgba(0, 0, 0, 0.7)";D.ctx.fillRect(D.horizontalMargin,D.JSC$20661_overlayMarginTop,D.JSC$20661_overlayMarginLeft-D.horizontalMargin,D.JSC$20661_overlayHeight);D.ctx.fillRect(D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth,D.JSC$20661_overlayMarginTop,D.JSC$20661_overlayMarginRight-D.horizontalMargin,D.JSC$20661_overlayHeight);D.ctx.fillRect(D.horizontalMargin,
D.canvasMargin,D.scaledImageWidth,D.JSC$20661_overlayMarginTop-D.canvasMargin);D.ctx.fillRect(D.horizontalMargin,D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight,D.scaledImageWidth,D.JSC$20661_overlayMarginBottom-D.canvasMargin);D.drawOverlay();D.component&&_.MX(D.component,"image-updated")};
FV.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20661_overlayMarginLeft,this.JSC$20661_overlayMarginTop,this.JSC$20661_overlayWidth,this.JSC$20661_overlayHeight);TBk(this)};
var TBk=function(D){var Y=D.JSC$20661_overlayMarginLeft-5,R=D.JSC$20661_overlayMarginTop-5,Z=D.JSC$20661_overlayMarginLeft+D.JSC$20661_overlayWidth-5,t=D.JSC$20661_overlayMarginTop+D.JSC$20661_overlayHeight-5;D.ctx.fillStyle="#FFF";D.ctx.fillRect(Y,R,10,10);D.ctx.strokeRect(Y,R,10,10);D.ctx.fillRect(Z,R,10,10);D.ctx.strokeRect(Z,R,10,10);D.ctx.fillRect(Y,t,10,10);D.ctx.strokeRect(Y,t,10,10);D.ctx.fillRect(Z,t,10,10);D.ctx.strokeRect(Z,t,10,10);if(D.focusedCorner!==0&&D.styleFocusedCorner){D.ctx.lineWidth=
4;D.ctx.strokeStyle="#3EA6FF";switch(D.focusedCorner){case 1:--Y;--R;break;case 2:--Y;R=t-1;break;case 3:Y=Z-1;--R;break;case 4:Y=Z-1;R=t-1;break;default:return}D.ctx.strokeRect(Y,R,12,12)}};
FV.prototype.crop=function(D,Y){Y=Y===void 0?!0:Y;var R=this.image.width/this.scaledImageWidth,Z=document.createElement("canvas"),t=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],X=this.JSC$20661_overlayWidth*R,M=this.JSC$20661_overlayHeight*R;Z.width=Math.max(X,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Z.height=Math.max(M,t);D&&(Z.width=Math.min(Z.width,Z.height),Z.height=Math.min(Z.width,Z.height));
D=Z.getContext("2d");if(!D)throw Error("ml");t=(this.JSC$20661_overlayMarginLeft-this.horizontalMargin)*R;R*=this.JSC$20661_overlayMarginTop-this.canvasMargin;Y||(D.fillStyle="white",D.fillRect(0,0,Z.width,Z.height));D.drawImage(this.image,t,R,X,M,0,0,Z.width,Z.height);return Z};var jjk=function(D,Y,R,Z,t){FV.call(this,D,Y,R,Z,void 0,t,8,!1)};
_.n(jjk,FV);jjk.prototype.drawOverlay=function(){var D=this.getContext(),Y=this.JSC$20661_overlayWidth,R=this.JSC$20661_overlayHeight,Z=this.JSC$20661_overlayMarginTop,t=this.JSC$20661_overlayMarginLeft;D.lineWidth=2;D.strokeStyle="#3EA6FF";D.beginPath();D.arc(t+Y/2,Z+R/2,Y/2,0,2*Math.PI);D.stroke();D.strokeRect(t,Z,Y,R);TBk(this)};
var I8I={maxFileSizeMB:15,minWidth:98,minHeight:98},FFk=["image/png","image/jpeg","image/gif"],G4=function(){var D=_.N.apply(this,arguments)||this;D.fileSelectorFocusListener=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!0;D.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return D};
_.n(G4,_.N);_.u=G4.prototype;_.u.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.u.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.u.computePlaylistThumbnail=function(D){return D==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.u.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.CX(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.u.setErrorState=function(D){this.resetErrorState();D&&(this.errorMessage=D)};
_.u.showPopup=function(){var D=this;this.hideContainer=!1;_.Ak(_.yc,function(){_.MX(D.hostElement,"yt-refit")});
this.isLoading=!1};
_.u.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.u.closePopup=function(){this.resetFileSelector();_.CX(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.onCancelTap=function(){this.isPlaylistThumbnail||_.CX(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.u.openFileSelector=function(){var D=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Ak(_.yc,function(){setTimeout(function(){if(!D.fileSelector.files||D.fileSelector.files.length===0)D.onCancelTap();D.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(Y){Y instanceof Error?_.Nb(Y):_.lo(new _.AT(JSON.stringify(Y)))}};
_.u.handleFileSelection=function(){var D=this,Y,R,Z,t,X,M;return _.C(function(W){switch(W.nextAddress){case 1:_.SX(W,2);if(!D.fileSelector.files||!D.imageEditorCanvas)return D.onCancelTap(),W.return();Y=D.fileSelector.files[0];x9I(D.imageChecker,Y);_.SX(W,4);return W.yield(cjk(Y),6);case 6:D.mimeType=W.yieldResult;_.xw(W,5,2);break;case 4:_.Gl(W,2),_.CX(D.hostElement,"yt-image-selection-error-action",[(R=D.data)==null?void 0:R.genericImageLoadErrorMessage]),D.onCancelTap();case 5:Z=new FileReader;
Z.addEventListener("load",function(){var z,I;return _.C(function(F){if(F.nextAddress==1){if(!Z.result)return _.Jk(Error("ol")),F.return();z=Z.result;I=new Image;I.src=z;I.onload=function(){try{var G=D.imageChecker;if(I.width<G.requirements.minWidth||I.height<G.requirements.minHeight)throw new qfh(G.requirements.minWidth,G.requirements.minHeight);}catch(e){if(e instanceof qfh){var V;_.CX(D.hostElement,"yt-image-selection-error-action",[(V=D.data)==null?void 0:V.imageDimensionErrorMessage]);D.logImageDimensionErrorVe()}else e instanceof
Error?_.Nb(e):(G=new _.AT(JSON.stringify(e)),_.Nb(G));D.onCancelTap()}D.showPopup()};
I.onerror=function(){var G;_.CX(D.hostElement,"yt-image-selection-error-action",[(G=D.data)==null?void 0:G.genericImageLoadErrorMessage]);D.onCancelTap()};
return F.yield(Eju(D.imageEditorCanvas,z),2)}D.imageEditor=F.yieldResult;D.updatePositionOfAllCorners();D.addEventListeners(D.imageEditor);_.V9(F)})},!1);
Z.readAsDataURL(Y);_.xw(W,0);break;case 2:t=_.Gl(W),t instanceof IN?_.CX(D.hostElement,"yt-image-selection-error-action",[(X=D.data)==null?void 0:X.imageSizeErrorMessage]):(t instanceof Error?_.Nb(t):_.lo(new _.AT(JSON.stringify(t))),_.CX(D.hostElement,"yt-image-selection-error-action",[(M=D.data)==null?void 0:M.genericImageLoadErrorMessage])),D.onCancelTap(),_.V9(W)}})};
_.u.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var D=_.Ai(_.n8(),{veType:232707,visualElement:_.TP(232707)});D&&(D={visualElement:D},_.ev().reportShown(D))}};
_.u.handleImageSelectionErrorAction=function(D){this.isPlaylistThumbnail&&_.MO$(this.hostElement,D)};
_.u.convertToImageFormatBundle=function(D){var Y=this,R,Z,t;return _.C(function(X){switch(X.nextAddress){case 1:return R=D.toDataURL(Y.outputMimeType,1),X.yield(DIp(R),2);case 2:Z=X.yieldResult;_.SX(X,3);x9I(Y.imageChecker,Z);_.xw(X,4);break;case 3:t=_.Gl(X);if(!(t instanceof IN))throw t;_.Jk(new _.AT("Output size is bigger than input size for image",Y.mimeType,Y.outputMimeType,Z.size));R=D.toDataURL("image/jpeg",.95);return X.yield(DIp(R),6);case 6:Z=X.yieldResult;case 4:return X.return({dataUrl:R,
imageFile:Z})}})};
_.u.handleUploadImageToScottyCommand=function(D){var Y=this,R,Z,t,X,M,W,z,I,F,G;return _.C(function(V){switch(V.nextAddress){case 1:if(!Y.imageEditor||!_.A(D,J$0))return V.return();R=_.A(D,J$0).scottyUploadUrl;if(!R){var e=new _.AT("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Nb(e);return V.return()}_.SX(V,2);Y.setLoadingState();Z=Y.imageEditor.crop(!1,!1);return V.yield(Y.convertToImageFormatBundle(Z),4);case 4:return t=V.yieldResult,V.yield(ir0(t.imageFile,R),5);
case 5:X=V.yieldResult;((M=Y.data)==null?0:M.onUploadEndpoint)?(W=Y.buildUploadServiceEndpoint(X),Y.ytComponentBehavior.resolveCommand(W),z=_.A(W,_.hh),((I=z)==null?0:I.params)?Y.closePopup():Y.resetFileSelector()):(_.CX(Y.hostElement,"yt-image-updated-action",[t.dataUrl,X]),Y.closePopup());_.xw(V,0);break;case 2:F=_.Gl(V),Y.setErrorState((G=Y.data)==null?void 0:G.uploadErrorMessage),F instanceof Error?_.Nb(F):(e=new _.AT(JSON.stringify(F)),_.Nb(e)),_.V9(V)}})};
_.u.buildUploadServiceEndpoint=function(D){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",D),this.data.onUploadEndpoint):null};
_.u.dataChanged=function(){var D=this,Y;return _.C(function(R){if(R.nextAddress==1){if(!D.data||!D.canvasElement)return R.return();D.data.imageRatio&&D.data.minImageCropWidth||_.lo(new _.AT("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));Y=function(Z,t){return D.data.imageType==="IMAGE_TYPE_AVATAR"?new jjk(Z,t,D.data.imageRatio,[D.data.minImageCropWidth,D.data.minImageCropWidth/D.data.imageRatio],D.hostElement):new FV(Z,t,D.data.imageRatio,[D.data.minImageCropWidth,
D.data.minImageCropWidth/D.data.imageRatio],void 0,D.hostElement,8,!1)};
D.imageEditorCanvas=new Pb0(D.canvasElement,Y);return D.data.url?R.yield(Eju(D.imageEditorCanvas,D.data.url),3):(D.hideContainer=!0,D.openFileSelector(),R.jumpTo(0))}D.imageEditor=R.yieldResult;D.showPopup();D.addEventListeners(D.imageEditor);_.V9(R)})};
_.u.addEventListeners=function(D){this.removeEventListeners();var Y=function(t){QHE(D,t)};
this.JSC$20669_mouseDownEvent=Y;var R=function(t){B40(D,t)};
this.JSC$20669_mouseMoveEvent=R;var Z=function(){pSh(D)};
this.JSC$20669_mouseUpEvent=Z;this.topLeftCorner.addEventListener("mousedown",Y);this.topLeftCorner.addEventListener("mousemove",R);this.topLeftCorner.addEventListener("mouseup",Z);this.topRightCorner.addEventListener("mousedown",Y);this.topRightCorner.addEventListener("mousemove",R);this.topRightCorner.addEventListener("mouseup",Z);this.bottomLeftCorner.addEventListener("mousedown",Y);this.bottomLeftCorner.addEventListener("mousemove",R);this.bottomLeftCorner.addEventListener("mouseup",Z);this.bottomRightCorner.addEventListener("mousedown",
Y);this.bottomRightCorner.addEventListener("mousemove",R);this.bottomRightCorner.addEventListener("mouseup",Z)};
_.u.removeEventListeners=function(){this.JSC$20669_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20669_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20669_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20669_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20669_mouseDownEvent));this.JSC$20669_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20669_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20669_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20669_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20669_mouseMoveEvent));this.JSC$20669_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20669_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20669_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20669_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20669_mouseUpEvent))};
_.u.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var D=document.activeElement;D&&D.shadowRoot&&D.shadowRoot.activeElement;)D=D.shadowRoot.activeElement;switch(D){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};
_.u.updatePositionOfCorner=function(D,Y){var R=D.y-Y.offsetHeight/2+4;Y.style.left=D.x-Y.offsetWidth/2+16+"px";Y.style.top=R+"px"};
_.u.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var D=_.a([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var R=OWt(this.imageEditor,Y.corner);this.updatePositionOfCorner(R,Y.div)}};
_.u.onLeft=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(DTK(this.imageEditor,0),this.updatePositionOfAllCorners(),D.preventDefault())};
_.u.onRight=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(DTK(this.imageEditor,1),this.updatePositionOfAllCorners(),D.preventDefault())};
_.u.onUp=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(DTK(this.imageEditor,2),this.updatePositionOfAllCorners(),D.preventDefault())};
_.u.onDown=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(DTK(this.imageEditor,3),this.updatePositionOfAllCorners(),D.preventDefault())};
_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.YF.Object.defineProperties(G4.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&FFk.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var D,Y,R;((Y=this.data)==null?0:Y.imageRatio)&&((R=this.data)==null?0:R.minImageCropWidth)?D={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:D=I8I;return new HWt(D)}}});
G4.prototype.updatePositionOfAllCorners=G4.prototype.updatePositionOfAllCorners;G4.prototype.dataChanged=G4.prototype.dataChanged;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],G4.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],G4.prototype,"ytComponentBehavior",void 0);_.q([_.v(_.nJ),_.x("design:type",Object)],G4.prototype,"ironA11yKeysBehavior",void 0);
_.q([_.fr("#canvas"),_.x("design:type",HTMLCanvasElement)],G4.prototype,"canvasElement",void 0);_.q([_.fr("#file-selector"),_.x("design:type",HTMLInputElement)],G4.prototype,"fileSelector",void 0);_.q([_.fr("#top-left-corner"),_.x("design:type",HTMLDivElement)],G4.prototype,"topLeftCorner",void 0);_.q([_.fr("#top-right-corner"),_.x("design:type",HTMLDivElement)],G4.prototype,"topRightCorner",void 0);
_.q([_.fr("#bottom-left-corner"),_.x("design:type",HTMLDivElement)],G4.prototype,"bottomLeftCorner",void 0);_.q([_.fr("#bottom-right-corner"),_.x("design:type",HTMLDivElement)],G4.prototype,"bottomRightCorner",void 0);_.q([_.y(),_.x("design:type",Object)],G4.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],G4.prototype,"errorMessage",void 0);_.q([_.y(),_.x("design:type",Object)],G4.prototype,"isLoading",void 0);_.q([_.y(),_.x("design:type",Object)],G4.prototype,"hideContainer",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.x("design:type",Boolean)],G4.prototype,"isPlaylistThumbnail",void 0);_.q([_.rd("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],G4.prototype,"dataChanged",null);_.q([_.Fv("image-updated"),_.Fv("yt-refit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G4.prototype,"updatePositionOfAllCorners",null);
_.q([_.Lr({is:"yt-image-editor-renderer",disableElementRegistration:!0})],G4);
_.L(G4,"yt-image-editor-renderer",function(){if(m9k===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Ldk===void 0&&(Ldk=document.createElement("template"));var Z=Ldk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);m9k=D}D=m9k;return D},{mode:2});var G$I;var V2k;var Vp=function(){return _.N.apply(this,arguments)||this};
_.n(Vp,_.N);Vp.prototype.updateMinutesFromBinding=function(D){this.handleMinutesChanged&&this.handleMinutesChanged(D)};
Vp.prototype.updateSecondsFromBinding=function(D){this.handleSecondsChanged&&this.handleSecondsChanged(D)};
Vp.prototype.updateDescriptionFromBinding=function(D){this.handleDescriptionChanged&&this.handleDescriptionChanged(D)};
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],Vp.prototype,"data",void 0);_.q([_.y(),_.x("design:type",String)],Vp.prototype,"minutes",void 0);_.q([_.y(),_.x("design:type",String)],Vp.prototype,"seconds",void 0);_.q([_.y(),_.x("design:type",String)],Vp.prototype,"description",void 0);_.q([_.y(),_.x("design:type",Function)],Vp.prototype,"handleMinutesChanged",void 0);
_.q([_.y(),_.x("design:type",Function)],Vp.prototype,"handleSecondsChanged",void 0);_.q([_.y(),_.x("design:type",Function)],Vp.prototype,"handleDescriptionChanged",void 0);_.q([_.y(),_.x("design:type",Number)],Vp.prototype,"characterLimit",void 0);_.q([_.y(),_.x("design:type",Number)],Vp.prototype,"textNumRows",void 0);_.q([_.Lr({is:"yt-report-details-form-content",disableElementRegistration:!0})],Vp);
_.L(Vp,"yt-report-details-form-content",function(){if(V2k===void 0){var D=document.createElement("template");_.w(D,'\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>');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;G$I===void 0&&(G$I=document.createElement("template"));var Z=G$I;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);V2k=D}D=V2k;return D},{mode:2});var f89;var e09;var f5=function(){var D=_.N.apply(this,arguments)||this;D.updateMinutesFromBinding=function(Y){D.minutes=Y.detail.value};
D.updateSecondsFromBinding=function(Y){D.seconds=Y.detail.value};
D.updateDescriptionFromBinding=function(Y){D.description=Y.detail.value};
return D};
_.n(f5,_.N);_.u=f5.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.u.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"}}}};
_.u.ready=function(){_.aU(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.u.onSubmitYtAction=function(D){var Y=D.detail;Y.actionName==="yt-service-request"&&(Y=Y.args[1],Y.flagEndpoint&&(D.stopPropagation(),this.refireAction(Y)))};
_.u.refireAction=function(D){var Y={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(Y.vss_id=this.vssId);_.zA(this.hostElement,[D,Y]);this.submitDisabled=!0};
_.u.dataChanged=function(){var D=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var Y=_.sm();Y&&Y.getPlayerPromise().then(function(R){var Z=R.getOption("cc","track")||R.getOption("captions","track");Z&&(D.vssId=Z.vss_id);R=R.getCurrentTime();D.minutes=Math.floor(R/60).toString();D.seconds=(Math.floor(R)%60).toString()})};
_.u.updateSubmitButtonState=function(){var D;((D=this.data)==null?0:D.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==="")};
_.u.onYtServiceRequestCompleted=function(){_.CX(this.hostElement,"yt-close-popup-action")};
_.u.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.YF.Object.defineProperties(f5.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.textNumRows)||4}}});
f5.prototype.onYtServiceRequestError=f5.prototype.onYtServiceRequestError;f5.prototype.onYtServiceRequestCompleted=f5.prototype.onYtServiceRequestCompleted;f5.prototype.updateSubmitButtonState=f5.prototype.updateSubmitButtonState;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);
_.q([_.y({observer:"dataChanged"}),_.x("design:type",Object)],f5.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Boolean)],f5.prototype,"submitDisabled",void 0);_.q([_.y(),_.x("design:type",String)],f5.prototype,"minutes",void 0);_.q([_.y(),_.x("design:type",String)],f5.prototype,"seconds",void 0);_.q([_.y(),_.x("design:type",String)],f5.prototype,"description",void 0);_.q([_.y(),_.x("design:type",String)],f5.prototype,"vssId",void 0);
_.q([_.y({value:_.JQ("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],f5.prototype,"isMusic",void 0);_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],f5.prototype,"characterLimit",null);_.q([_.b("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],f5.prototype,"textNumRows",null);
_.q([_.rd("minutes","seconds","description","submitDisabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"updateSubmitButtonState",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f5.prototype,"onYtServiceRequestError",null);_.q([_.Lr({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],f5);
_.L(f5,"yt-report-details-form-renderer",function(){if(e09===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;f89===void 0&&(f89=document.createElement("template"));var Z=f89;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);e09=D}D=e09;return D});var As0;var nfk;var rsz;var wiK;var eu=function(){return _.N.apply(this,arguments)||this};
_.n(eu,_.N);
eu.prototype.onCheckedChanged_=function(){if(this.data){var D=_.aU(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.CX(this.hostElement,"yt-additional-detail-checkbox-update",[D]):this.data.identifier==="yt-hide-user-checkbox"?_.CX(this.hostElement,"yt-hide-user-checkbox-update",[D]):D&&this.data.enableCommand?_.CX(this.hostElement,"yt-modify-report-form-command",[_.A(this.data.enableCommand,qn9)]):!D&&this.data.disableCommand&&_.CX(this.hostElement,
"yt-modify-report-form-command",[_.A(this.data.enableCommand,qn9)])}};
eu.prototype.onLabelTap_=function(D){D.target.tagName!="A"&&(_.aU(this.hostElement).querySelector("#checkbox").checked=!_.aU(this.hostElement).querySelector("#checkbox").checked)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],eu.prototype,"data",void 0);_.q([_.Lr({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],eu);
_.L(eu,"yt-boolean-form-field-v2-renderer",function(){if(wiK===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;rsz===void 0&&(rsz=document.createElement("template"));var Z=rsz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);wiK=D}D=wiK;return D});var AD=function(){var D=_.N.apply(this,arguments)||this;D.canShowAdditionalDetailCheckbox=!1;D.canShowCheckbox=!1;D.keepDropdownFocusedAfterSelection=!0;return D};
_.n(AD,_.N);AD.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}}}}};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],AD.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],AD.prototype,"canShowAdditionalDetailCheckbox",void 0);_.q([_.y(),_.x("design:type",Object)],AD.prototype,"canShowCheckbox",void 0);_.q([_.y(),_.x("design:type",Object)],AD.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.q([_.Lr({is:"yt-report-form-modal-content",disableElementRegistration:!0})],AD);
_.L(AD,"yt-report-form-modal-content",function(){if(nfk===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;As0===void 0&&(As0=document.createElement("template"));var Z=As0;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);nfk=D}D=nfk;return D},{mode:2});var $TT;var vft;var n5=function(){var D=_.N.apply(this,arguments)||this;D.submitting=!1;D.submitButtonDisabled=!0;D.command=null;D.canShowCheckbox=!1;D.canShowAdditionalDetailCheckbox=!1;D.canShowNextButton=!1;D.additionalDetailCheckboxChecked=!1;D.refitJob=0;D.keepDropdownFocusedAfterSelection=!0;D.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 D};
_.n(n5,_.N);_.u=n5.prototype;_.u.created=function(){this.refitJob=0};
_.u.attached=function(){this.JSC$20692_scroller&&(this.JSC$20692_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20692_scroller.attached&&typeof this.JSC$20692_scroller.attached==="function"&&this.JSC$20692_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(D){D&&(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,D.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),D.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.u.onYtPopupOpened=function(){var D=_.sm();D&&D.getPlayerPromise().then(function(Y){Y.pauseVideo()})};
_.u.onYtNavigate=function(D){_.A(D.detail.endpoint,_.By1)&&(D.stopPropagation(),this.hideReportForm=!0)};
_.u.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.u.onYtServiceRequestCompleted=function(D,Y){var R=Y.actions;if(R){if(R.length===1&&_.A(R[0],_.je)){var Z;R=((Z=_.A(R[0],_.je))==null?void 0:Z.commands)||[]}Z=0;for(var t=R.length;Z<t;Z++)_.A(R[Z],_.bS)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(R[Z]))}if(Y.data&&(D=this.get("feedbackResponses",Y.data)))for(Y=0;Y<D.length;Y++)if(D[Y].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.u.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.u._onDescendantIronResize=function(D){D.stopPropagation();return!1};
_.u.handleReportFormEndpointUpdateAction=function(D){if(D.submitEndpoint){var Y=this.command=D.submitEndpoint;Y=_.A(Y,_.xlY);if(Y==null?0:Y.additionalDetailCheckboxChecked)Y.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else D.submitNavigationEndpoint?(this.command=D.submitNavigationEndpoint,this.toggleSubmitButton(!1)):D.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:D.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;D.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",D));this.refit()};
_.u.handleConfirmDialogCloseAction=function(D){D.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.u.submitButtonDisabledChanged=function(){var D=this.hostElement.parentElement;D&&D.invalidateTabbables&&D.invalidateTabbables()};
_.u.handleModifyReportFormCommand=function(D){D=this.get("action",D);D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:D==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:D==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.u.updateDialogStyling=function(){var D,Y,R,Z,t,X=((t=(D=this.data)==null?void 0:(Y=D.optionsSupportedRenderers)==null?void 0:(R=Y.optionsRenderer)==null?void 0:(Z=R.items)==null?void 0:Z.length)!=null?t:0)<=2?0:240;_.SN(this.hostElement,{"--yt-report-form-modal-renderer-min-width":X+"px"})};
_.u.toggleSubmitButton=function(D){this.submitButtonDisabled=!D;this.submitButtonDisabled=D};
_.u.computeSubmitButtonData=function(D,Y){var R={};_.A(Y,_.By1)?R.navigationEndpoint=Y:R.command=Y||void 0;D&&D.buttonRenderer&&_.y7.extend(R,D.buttonRenderer);return R};
_.u.computeNextButtonData=function(D,Y){var R={};if(!D||!D.buttonRenderer)return R;_.y7.extend(R,D.buttonRenderer);if(!Y)return R;if(_.A(Y,_.By1))R.navigationEndpoint=RG0(Y);else if(R.command=RG0(Y),D=_.A(R.command,_.xlY))D.legalCheckboxChecked=!0;return R};
_.u.computeShowNextButton=function(D,Y,R){return!!D&&Y&&R};
_.u.refit=function(){var D=this;this.refitJob||(this.refitJob=_.yc.addLowPriorityJob(function(){_.MX(D.hostElement,"yt-refit");D.refitJob=0}))};
_.u.handleAdditionalDetailCheckboxUpdateAction=function(D){this.additionalDetailCheckboxChecked=D;_.A(this.command,_.xlY).additionalDetailCheckboxChecked=D};
_.YF.Object.defineProperties(n5,{template:{configurable:!0,enumerable:!0,get:function(){if(vft===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;$TT===void 0&&($TT=document.createElement("template"));var Z=$TT;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);vft=D}D=vft;return D}}});
n5.prototype.onYtServiceRequestError=n5.prototype.onYtServiceRequestError;n5.prototype.onYtServiceRequestCompleted=n5.prototype.onYtServiceRequestCompleted;n5.prototype.onYtServiceRequestSent=n5.prototype.onYtServiceRequestSent;n5.prototype.onYtNavigate=n5.prototype.onYtNavigate;n5.prototype.onYtPopupOpened=n5.prototype.onYtPopupOpened;_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],n5.prototype,"openPopupBehavior",void 0);
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],n5.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],n5.prototype,"eventForwardingBehavior",void 0);_.q([_.v(_.l_),_.x("design:type",Object)],n5.prototype,"ironResizableBehavior",void 0);_.q([_.y({observer:"dataChanged"}),_.x("design:type",Object)],n5.prototype,"data",void 0);
_.q([_.y(),_.x("design:type",Object)],n5.prototype,"submitting",void 0);_.q([_.y({observer:"submitButtonDisabledChanged"}),_.x("design:type",Object)],n5.prototype,"submitButtonDisabled",void 0);_.q([_.y(),_.x("design:type",Object)],n5.prototype,"command",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],n5.prototype,"hideReportForm",void 0);_.q([_.y(),_.x("design:type",Object)],n5.prototype,"canShowCheckbox",void 0);
_.q([_.y(),_.x("design:type",Object)],n5.prototype,"canShowAdditionalDetailCheckbox",void 0);_.q([_.y(),_.x("design:type",Object)],n5.prototype,"canShowNextButton",void 0);_.q([_.y(),_.x("design:type",Object)],n5.prototype,"additionalDetailCheckboxChecked",void 0);_.q([_.y(),_.x("design:type",Object)],n5.prototype,"refitJob",void 0);_.q([_.y(),_.x("design:type",Object)],n5.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.q([_.fr("#scroller"),_.x("design:type",Object)],n5.prototype,"JSC$20692_scroller",void 0);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n5.prototype,"onYtPopupOpened",null);_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],n5.prototype,"onYtNavigate",null);
_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],n5.prototype,"onYtServiceRequestSent",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],n5.prototype,"onYtServiceRequestCompleted",null);
_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],n5.prototype,"onYtServiceRequestError",null);_.q([_.Lr({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],n5);var ofh;var bpK;var rW=function(){return _.N.apply(this,arguments)||this};
_.n(rW,_.N);_.u=rW.prototype;_.u.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.u.onVisible=function(){var D,Y;(Y=_.DH().resolve(_.cD(_.bO)))==null||Y.enqueue({label:_.OM((D=this.data)==null?void 0:D.messageTitle),elementToFocus:this.hostElement})};
_.u.onThumbnailLoaded=function(){_.MX(this.hostElement,"yt-refit")};
_.u.onDismissTap=function(){_.CX(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.u.computeAlternateIcon=function(D){return D?D==="BACKSTAGE_ARTWORK"?"backstage:artwork":D:null};
_.u.computeFontFamily=function(D){return D==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.u.computeBackgroundStyle=function(D,Y){if(D=this.computeBackgroundImage(D,Y))if(D=_.CB(D.thumbnails))return'background-image: url("'+D+'");'};
_.u.computeHasFullHeightImage=function(D){return!(!(D&&D.thumbnails&&D.thumbnails.length>0)||this.modern)};
_.u.isModernStyle=function(D){return D.style==="STYLE_MODERN"};
_.u.computeIcon=function(D,Y){if(D&&D.icon)return Y?D.iconDark:D.icon};
_.u.computeBackgroundImage=function(D,Y){if(D&&D.backgroundImage)return Y?D.backgroundImageDark:D.backgroundImage};
_.u.computeLogo=function(D,Y){if(D&&D.logo)return Y?D.logoDark:D.logo};
_.u.computeShouldShowModernIcon=function(D,Y){return D&&!!Y};
_.u.getLogoContainerClassName=function(D){return this.logoWithPadding(D)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.u.getLogoImageId=function(D){return this.logoWithPadding(D)?"mealbar-logo-with-padding":"mealbar-logo"};
_.u.logoWithPadding=function(D){var Y,R,Z;return(D=(Y=this.computeLogo(D,this.isDarkTheme))==null?void 0:(R=Y.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.height)&&D%31===0?!0:!1};
rW.prototype.onThumbnailLoaded=rW.prototype.onThumbnailLoaded;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.q([_.y({}),_.x("design:type",Object)],rW.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.x("design:type",Boolean)],rW.prototype,"modern",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],rW.prototype,"isDarkTheme",void 0);
_.q([_.y({computed:"computeIcon(data, isDarkTheme)"}),_.x("design:type",Object)],rW.prototype,"icon",void 0);_.q([_.y({computed:"computeLogo(data, isDarkTheme)"}),_.x("design:type",Object)],rW.prototype,"logo",void 0);_.q([_.y({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.x("design:type",Object)],rW.prototype,"backgroundStyle",void 0);_.q([_.y({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.x("design:type",Object)],rW.prototype,"alternateIcon",void 0);
_.q([_.y({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.x("design:type",Boolean)],rW.prototype,"hasFullHeightImage",void 0);_.q([_.y({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.x("design:type",Boolean)],rW.prototype,"useYoutubeSans",void 0);_.q([_.y({computed:"computeShouldShowModernIcon(modern, icon)"}),_.x("design:type",Boolean)],rW.prototype,"shouldShowModernIcon",void 0);
_.q([_.Fv("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rW.prototype,"onThumbnailLoaded",null);_.q([_.Lr({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],rW);
_.L(rW,"yt-mealbar-promo-renderer",function(){if(bpK===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;ofh===void 0&&(ofh=document.createElement("template"));var Z=ofh;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);bpK=D}D=bpK;return D},{mode:2});var ysk;var NBE;var wW=function(){return _.N.apply(this,arguments)||this};
_.n(wW,_.N);_.u=wW.prototype;_.u.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]]"}}}}}};
_.u.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.acceptButton)};
_.u.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.u.observeImpressionEndpoints_=function(){var D=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;_.zA(D.hostElement,[Y])})};
_.u.onTap_=function(){_.CX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
wW.prototype.observeImpressionEndpoints_=wW.prototype.observeImpressionEndpoints_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],wW.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],wW.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],wW.prototype,"positionType",void 0);_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],wW.prototype,"hasButtons_",void 0);_.q([_.y({value:function(){return this.onTap_.bind(this)}}),
_.x("design:type",Function)],wW.prototype,"boundOnTap_",void 0);_.q([_.y({value:{style:"mono-inverse"}}),_.x("design:type",Object)],wW.prototype,"buttonOverride",void 0);_.q([_.Gm("data.promoConfig.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wW.prototype,"observeImpressionEndpoints_",null);_.q([_.Lr({is:"yt-tooltip-renderer",disableElementRegistration:!0})],wW);
_.L(wW,"yt-tooltip-renderer",function(){if(NBE===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;ysk===void 0&&(ysk=document.createElement("template"));var Z=ysk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);NBE=D}D=NBE;return D},{mode:2});var l8t;var JsI;var k$T={},UTz=(k$T.WEB_REMIX="music.youtube.com",k$T),$1=function(){var D=_.N.apply(this,arguments)||this;D.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return D};
_.n($1,_.N);_.u=$1.prototype;_.u.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.created=function(){this.embedHost_=UTz[_.JQ("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.u.ready=function(){_.aU(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.u.computeEmbedCode_=function(D,Y,R,Z,t){if(!D)return"";var X=D.videoId,M=D.fullListId,W=[];D.attributionId&&W.push("si="+D.attributionId);Z||W.push("controls=0");R&&Number(Y)>0&&W.push("start="+Y);M&&(X="videoseries",W.push("list="+M));R="https://"+(t?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+X;D.clipId&&(W.push("clip="+D.clipId),W.push("clipt="+D.clipTiming));Y=W.length>0?R+"?"+W.join("&amp;"):R;D.encryptedEmbedConfig&&W.push("embed_config="+JSON.stringify({enc:D.encryptedEmbedConfig}));
W=W.length>0?R+"?"+W.join("&amp;"):R;_.f("web_sharing_embed_preview_killswitch")?_.aU(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(W,D.previewWidth||854,D.previewHeight||480):(_.yy(this.videoPreviewContainer),_.aU(this.videoPreviewContainer).appendChild(this.buildIframeElement(W)));return this.getEmbedCode_(Y,D.width||560,D.height||315)};
_.u.buildIframeElement=function(D){var Y=document.createElement("iframe"),R,Z;Y.width=""+((Z=(R=this.data)==null?void 0:R.previewWidth)!=null?Z:854);var t,X;Y.height=""+((X=(t=this.data)==null?void 0:t.previewHeight)!=null?X:480);_.tXb(Y,2,D);Y.title="YouTube video player";Y.frameBorder="0";Y.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";Y.referrerPolicy="strict-origin-when-cross-origin";Y.allowFullscreen=!0;return Y};
_.u.computeIsSquareAspectRatio_=function(D){return D.previewHeight&&D.previewWidth?D.previewHeight==D.previewWidth:!1};
_.u.computeShowEmbedOptions_=function(D){return!!D.enablePrivacyModeOptionLabel||!!D.showPlayerControlsOptionLabel};
_.u.getEmbedCode_=function(D,Y,R){return'<iframe width="'+Y+'" height="'+R+'" src="'+D+'" 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>'};
_.u.handleSignalActionCopyShareEmbedUrl_=function(){_.aU(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.u.handleSetTimestamp_=function(D){this.startAtTimeStamp_=(this.startAtChecked_=D.isSet)?D.timestamp:0};
_.u.closePanel_=function(){_.CX(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.u.onEmbedCode_=function(){_.aU(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.u.onYtPopupClosed_=function(){_.yy(_.aU(this.hostElement).querySelector("#video-preview"))};
_.u.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.A(this.data.actionButtons[0],_.qv)&&this.ytRendererBehavior.logExplicitClick(_.A(this.data.actionButtons[0],_.qv))};
$1.prototype.onYtPopupClosed_=$1.prototype.onYtPopupClosed_;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],$1.prototype,"data",void 0);
_.q([_.y({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.x("design:type",String)],$1.prototype,"embedCode_",void 0);_.q([_.y({value:!0}),_.x("design:type",Boolean)],$1.prototype,"isPlayerControlsOptionChecked_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],$1.prototype,"isPrivacyModeOptionChecked_",void 0);_.q([_.y({value:!1,notify:!0}),_.x("design:type",Boolean)],$1.prototype,"startAtChecked_",void 0);
_.q([_.y({value:0}),_.x("design:type",Number)],$1.prototype,"startAtTimeStamp_",void 0);_.q([_.y({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],$1.prototype,"isSquareAspectRatio_",void 0);_.q([_.fr("#video-preview"),_.x("design:type",HTMLElement)],$1.prototype,"videoPreviewContainer",void 0);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$1.prototype,"onYtPopupClosed_",null);
_.q([_.Lr({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],$1);
_.L($1,"yt-sharing-embed-renderer",function(){if(JsI===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;l8t===void 0&&(l8t=document.createElement("template"));var Z=l8t;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);JsI=D}D=JsI;return D},{mode:2});var KFb={};
KFb.YtUnlimitedFamilyInterstitialBehavior=[_.Fh.YtOpenPopupBehavior,_.Va.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(D){D=_.OLL(_.cG(D),"yt-button-renderer");return D?D.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(D){this.dialogHistory_.push(D)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var D=this.popFromHistory();if(D){var Y={openPopupAction:{popupType:"DIALOG",popup:{}}};Y.openPopupAction.popup[D.renderer]=D.data;this.showingPreviousDialog_=!0;this.openPopup(Y)}},
handleOpenPopupAction_:function(D){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var Y=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Z){return!!D.openPopupAction.popup[Z]}),R=this.getElementName_();
Y&&this.data&&(this.pushToHistory({renderer:R,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(D){if(D=_.A(D,THp))this.loading=!0,_.CX(this.hostElement,"yt-open-create-family-dialog",[D,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var D=this.hostElement.nodeName.split("-").slice(1).map(function(Y){return""+Y[0].toUpperCase()+Y.slice(1).toLowerCase()}).join("");
return D[0].toLowerCase()+D.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var h0u;var LFk;var v2=function(){return _.N.apply(this,arguments)||this};
_.n(v2,_.N);_.u=v2.prototype;_.u.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}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.CX(this.hostElement,"yt-register-create-family-dialog");_.aU(this.hostElement).querySelector("#thumbnail").onShow()};
_.u.fireOnCloseCommand_=function(){var D;((D=this.data)==null?0:D.onCloseCommand)&&_.Se(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.u.onYtServiceRequestSent_=function(D,Y){Y&&Y.endpoint&&_.A(Y.endpoint,_.Fa)||(this.loading=!0)};
_.u.onYtServiceRequestCompleted_=function(){var D=this.hostElement.parentElement;D.close&&D.close();this.loading=!1};
_.u.openPopupHandler_=function(D){if(D.detail==this){var Y;((Y=this.data)==null?0:Y.onOpenCommands)&&_.Se(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.u.closePopupHandler_=function(D,Y){this.fireOnCloseCommand_();if(Y&&Y.canceled===!0||Y&&Y.canceled===!1&&Y.confirmed===!1){var R;((R=this.data)==null?0:R.onDismissCommands)&&_.Se(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.u.dataChanged_=function(){this.loading=!1};
v2.prototype.dataChanged_=v2.prototype.dataChanged_;v2.prototype.closePopupHandler_=v2.prototype.closePopupHandler_;v2.prototype.openPopupHandler_=v2.prototype.openPopupHandler_;v2.prototype.onYtServiceRequestCompleted_=v2.prototype.onYtServiceRequestCompleted_;v2.prototype.onYtServiceRequestSent_=v2.prototype.onYtServiceRequestSent_;_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],v2.prototype,"ytEventForwardingBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(KFb.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],v2.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],v2.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],v2.prototype,"loading",void 0);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],v2.prototype,"onYtServiceRequestSent_",null);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],v2.prototype,"onYtServiceRequestCompleted_",null);
_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],v2.prototype,"openPopupHandler_",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],v2.prototype,"closePopupHandler_",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],v2.prototype,"dataChanged_",null);
_.q([_.Lr({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],v2);
_.L(v2,"yt-unlimited-family-message-interstitial-renderer",function(){if(LFk===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;h0u===void 0&&(h0u=document.createElement("template"));var Z=h0u;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);LFk=D}D=LFk;return D},{mode:2});var mT9;var qek;var oN=function(){return _.N.apply(this,arguments)||this};
_.n(oN,_.N);oN.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"}}}};
oN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.aU(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(D){D.onShow()});
_.aU(this.hostElement).querySelector("#main-thumbnail").onShow()};
oN.prototype.onButtonTap_=function(D){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(D)};
oN.prototype.computeMainThumbnailWidth_=function(D){return D&&D.length!==0?72:96};
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.q([_.v(KFb.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],oN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],oN.prototype,"data",void 0);
_.q([_.y({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.x("design:type",Number)],oN.prototype,"mainThumbnailWidth_",void 0);_.q([_.y({value:function(){return this.onButtonTap_.bind(this)}}),
_.x("design:type",Function)],oN.prototype,"boundButtonTap_",void 0);_.q([_.Lr({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],oN);
_.L(oN,"yt-unlimited-family-profile-interstitial-renderer",function(){if(qek===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;mT9===void 0&&(mT9=document.createElement("template"));var Z=mT9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);qek=D}D=qek;return D},{mode:2});var Hp9;var xTb;var bd=function(){var D=_.N.apply(this,arguments)||this;D.sliderAriaValueText_=null;D.selectedIndex_=0;D.messages={PAUSE_SLIDER:_.fX("PAUSE_SLIDER",void 0,"Pause Duration")};return D};
_.n(bd,_.N);_.u=bd.prototype;_.u.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_]]"}}}}}};
_.u.onPopupOpened_=function(D){D.detail==this&&_.f("enable_premium_voluntary_pause")&&(_.CX(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.setDialogData=function(D){this.data=D;this.resetSlider_()};
_.u.dataChanged_=function(){this.data&&this.resetSlider_()};
_.u.onSubmitTap_=function(){if(this.data.confirmCommand){var D=this.data.confirmCommand;_.A(D,_.zuU)&&_.zA(this.hostElement,[D,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.u.onExitButtonTap_=function(){_.CX(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.u.closePopupHandler_=function(D,Y){(Y&&Y.canceled===!0||Y.canceled===!1&&Y.confirmed===!1)&&this.handleOnDismissCommands_()};
_.u.onSliderChange_=function(){this.selectedIndex_=_.aU(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.u.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.u.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.u.resetSlider_=function(){if(this.data){var D=this.data.defaultEndOptionIndex||0,Y=_.aU(this.hostElement).querySelector("#id-pause-slider");if(Y.immediateValue<D)for(;Y.immediateValue!=D;)Y.increment();else if(D<Y.immediateValue)for(;Y.immediateValue!=D;)Y.decrement();this.selectedIndex_=D;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.u.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Se(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.u.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Se(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.u.onYtServiceRequestSent=function(){this.loading=!0};
_.u.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
bd.prototype.onYtServiceRequestCompleted=bd.prototype.onYtServiceRequestCompleted;bd.prototype.onYtServiceRequestSent=bd.prototype.onYtServiceRequestSent;bd.prototype.closePopupHandler_=bd.prototype.closePopupHandler_;bd.prototype.dataChanged_=bd.prototype.dataChanged_;bd.prototype.onPopupOpened_=bd.prototype.onPopupOpened_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],bd.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],bd.prototype,"loading",void 0);_.q([_.y(),_.x("design:type",Number)],bd.prototype,"selectIndexMax_",void 0);_.q([_.y(),_.x("design:type",Object)],bd.prototype,"selectedData_",void 0);
_.q([_.y(),_.x("design:type",Object)],bd.prototype,"sliderAriaValueText_",void 0);_.q([_.y({value:function(){return this.onSubmitTap_.bind(this)}}),
_.x("design:type",Function)],bd.prototype,"onButtonTap_",void 0);_.q([_.y({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.x("design:type",Function)],bd.prototype,"onSecondaryTap_",void 0);_.q([_.y(),_.x("design:type",Object)],bd.prototype,"messages",void 0);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],bd.prototype,"onPopupOpened_",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bd.prototype,"dataChanged_",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],bd.prototype,"closePopupHandler_",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],bd.prototype,"onYtServiceRequestSent",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],bd.prototype,"onYtServiceRequestCompleted",null);_.q([_.Lr({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],bd);
_.L(bd,"yt-unplugged-pause-membership-dialog-renderer",function(){if(xTb===void 0){var D=document.createElement("template");_.w(D,'\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>');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Hp9===void 0&&(Hp9=document.createElement("template"));var Z=Hp9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);xTb=D}D=xTb;return D},{mode:2});var Pth;var Qju;var yp=function(){return _.N.apply(this,arguments)||this};
_.n(yp,_.N);yp.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.KB("vcBalanceRenderer")}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],yp.prototype,"data",void 0);_.q([_.Lr({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],yp);
_.L(yp,"yt-vc-offer-layout-header-renderer",function(){if(Qju===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Pth===void 0&&(Pth=document.createElement("template"));var Z=Pth;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Qju=D}D=Qju;return D},{mode:2});var BBt;var piu;var Efz;var gfu;var N5=function(){return _.N.apply(this,arguments)||this};
_.n(N5,_.N);N5.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.YF.Object.defineProperties(N5.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)}}});
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.JLL.YtTappableItemBehavior),_.x("design:type",Object)],N5.prototype,"ytTappableItemBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],N5.prototype,"data",void 0);
_.q([_.y({reflectToAttribute:!0}),_.b("data.accessibilityText"),_.x("design:type",String),_.x("design:paramtypes",[])],N5.prototype,"ariaLabel",null);_.q([_.y({reflectToAttribute:!0}),_.b("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],N5.prototype,"vcOfferStyle",null);_.q([_.b("data.style","data.titleText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],N5.prototype,"showTitleText",null);_.q([_.Lr({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],N5);
_.L(N5,"yt-vc-offer-renderer",function(){if(gfu===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;Efz===void 0&&(Efz=document.createElement("template"));var Z=Efz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);gfu=D}D=gfu;return D},{mode:2});var ld=function(){return _.N.apply(this,arguments)||this};
_.n(ld,_.N);ld.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],ld.prototype,"data",void 0);_.q([_.Lr({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],ld);
_.L(ld,"yt-vc-offer-layout-renderer",function(){if(piu===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;BBt===void 0&&(BBt=document.createElement("template"));var Z=BBt;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);piu=D}D=piu;return D},{mode:2});var dTk;var ipb;var Opk;var csb;var JD=function(){return _.N.apply(this,arguments)||this};
_.n(JD,_.N);JD.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}}}}}};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],JD.prototype,"data",void 0);_.q([_.Lr({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],JD);
_.L(JD,"yt-ypc-offers-modal-top-bar-renderer",function(){if(csb===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;Opk===void 0&&(Opk=document.createElement("template"));var Z=Opk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);csb=D}D=csb;return D},{mode:2});var k1=function(){return _.N.apply(this,arguments)||this};
_.n(k1,_.N);k1.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"}}}}};
k1.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
k1.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var D=this.scrollable;D.attached&&typeof D.attached==="function"&&D.attached()};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.q([_.fr("#scrollable"),_.x("design:type",Object)],k1.prototype,"scrollable",void 0);_.q([_.y(),_.x("design:type",Object)],k1.prototype,"data",void 0);_.q([_.Lr({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],k1);
_.L(k1,"yt-ypc-offers-modal-renderer",function(){if(ipb===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;dTk===void 0&&(dTk=document.createElement("template"));var Z=dTk;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ipb=D}D=ipb;return D},{mode:2});var D49;var YEI;var Us=function(){return _.N.apply(this,arguments)||this};
_.n(Us,_.N);_.u=Us.prototype;_.u.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}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.aU(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.u.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.CX(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.u.onYtPopupOpened_=function(D,Y){(Y==null?void 0:Y.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Se(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.u.onYtPopupClosed_=function(D,Y){this.continueButtonTapped||Y&&(Y.canceled===!0||Y.canceled===!1&&Y.confirmed===!1)&&this.data.onDismissCommands&&_.Se(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.u.onYtServiceRequestError_=function(D){this.set("showSpinner",!1);_.iI(this.hostElement,D.detail.error.message)};
_.u.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.f("enable_ypc_spinners")?_.CX(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Us.prototype.onYtServiceRequestError_=Us.prototype.onYtServiceRequestError_;Us.prototype.onYtPopupClosed_=Us.prototype.onYtPopupClosed_;Us.prototype.onYtPopupOpened_=Us.prototype.onYtPopupOpened_;Us.prototype.onYtServiceRequestCompleted_=Us.prototype.onYtServiceRequestCompleted_;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);
_.q([_.y(),_.x("design:type",Object)],Us.prototype,"data",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Us.prototype,"showSpinner",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],Us.prototype,"continueButtonTapped",void 0);_.q([_.y({value:function(){return this.onContinueTapped_.bind(this)}}),
_.x("design:type",Function)],Us.prototype,"bindOnContinueTapped_",void 0);_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Us.prototype,"onYtServiceRequestCompleted_",null);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Us.prototype,"onYtPopupOpened_",null);
_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Us.prototype,"onYtPopupClosed_",null);_.q([_.Fv("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Us.prototype,"onYtServiceRequestError_",null);_.q([_.Lr({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Us);
_.L(Us,"yt-ypc-upgrade-dialog-renderer",function(){if(YEI===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;D49===void 0&&(D49=document.createElement("template"));var Z=D49;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);YEI=D}D=YEI;return D},{mode:2});var R5I;var ZmE;var K5=function(){return _.N.apply(this,arguments)||this};
_.n(K5,_.N);K5.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
K5.prototype.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.confirmButton)};
K5.prototype.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],K5.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],K5.prototype,"data",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],K5.prototype,"positionType",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],K5.prototype,"hasButtons_",void 0);_.q([_.y({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],K5.prototype,"style_",void 0);_.q([_.Lr({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],K5);
_.L(K5,"yt-bubble-hint-renderer",function(){if(ZmE===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;R5I===void 0&&(R5I=document.createElement("template"));var Z=R5I;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);ZmE=D}D=ZmE;return D},{mode:2});var tc9;var sVu;var hD=function(){var D=_.RR.apply(this,arguments)||this;D.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return D};
_.n(hD,_.RR);_.u=hD.prototype;_.u.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.u.attached=function(){var D=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){D.$.thumbnail.onShow();D.$["header-image"].onShow()})};
_.u.handleCheckBoxUpdateAction_=function(D){this.canShowCheckboxEnabledConfirmButton=D};
_.u.computeUseOverlayForSpinner_=function(D,Y){return!!D&&Y};
_.u.computeShowSpinner_=function(D,Y){return D||!!Y};
_.u.fireOnCloseActions_=function(){var D,Y=_.a(((D=this.data)==null?void 0:D.onClosedActions)||[]);for(D=Y.next();!D.done;D=Y.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.u.fireOnOpenCommands_=function(D){var Y,R=(Y=this.data)==null?void 0:Y.onOpenCommands;if(R)for(D.stopImmediatePropagation(),D=_.a(R),Y=D.next();!Y.done;Y=D.next())this.ytRendererBehavior.resolveCommand(Y.value)};
_.u.fireOnDismissCommands_=function(D){var Y,R=(Y=this.data)==null?void 0:Y.onDismissCommands;if(R)for(D.stopImmediatePropagation(),D=_.a(R),Y=D.next();!Y.done;Y=D.next())this.ytRendererBehavior.resolveCommand(Y.value)};
_.u.openPopupHandler_=function(D){D.detail==this&&this.fireOnOpenCommands_(D)};
_.u.closePopupHandler_=function(D,Y){_.WC(this,"yt-confirm-dialog-close-action",[Y]);this.fireOnCloseActions_();(Y&&Y.canceled===!0||Y&&Y.canceled===!1&&Y.confirmed===!1)&&this.fireOnDismissCommands_(D)};
_.u.onHeaderImageChanged_=function(){var D;((D=this.data)==null?0:D.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.u.computeHasHeaderImageWidth_=function(D){return D!=void 0};
_.u.computeHasLoadingMessage=function(D){return!!D};
_.u.onHeaderImageWidthChanged_=function(){var D,Y=(D=this.data)==null?void 0:D.headerImageWidth;if(Y){if(D=1.25*Y*2+Y,this.$.main.style.width=D+"px",Y=this.$.scroller.firstElementChild)Y.style.minWidth=D+"px"}else this.$.main.style.width="100%"};
_.u.onThumbnailChanged_=function(){var D;((D=this.data)==null?0:D.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")};
_.u.onYtNavigate_=function(D){D=_.cG(D);D instanceof Node&&_.MB(this.$["confirm-button"]).contains(D)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.u.computePrimaryIsCancel_=function(D){return D};
_.u.computeIsCancelButtonHidden_=function(D){return D.skipCancelButton||!D.cancelButton};
_.u.computeIsCheckboxHidden_=function(D){return!D.checkbox};
_.u.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.u.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.u.onYtServiceRequestCompleted_=function(){var D;((D=this.data)==null?0:D.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.YF.Object.defineProperties(hD,{template:{configurable:!0,enumerable:!0,get:function(){if(sVu===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;tc9===void 0&&(tc9=document.createElement("template"));var Z=tc9;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);sVu=D}D=sVu;return D}}});
hD.prototype.onYtServiceRequestCompleted_=hD.prototype.onYtServiceRequestCompleted_;hD.prototype.onYtServiceRequestSent_=hD.prototype.onYtServiceRequestSent_;hD.prototype.onThumbnailLoaded_=hD.prototype.onThumbnailLoaded_;hD.prototype.onYtNavigate_=hD.prototype.onYtNavigate_;hD.prototype.onThumbnailChanged_=hD.prototype.onThumbnailChanged_;hD.prototype.onHeaderImageWidthChanged_=hD.prototype.onHeaderImageWidthChanged_;hD.prototype.onHeaderImageChanged_=hD.prototype.onHeaderImageChanged_;
hD.prototype.closePopupHandler_=hD.prototype.closePopupHandler_;hD.prototype.openPopupHandler_=hD.prototype.openPopupHandler_;_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],hD.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);
_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],hD.prototype,"ytEventForwardingBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],hD.prototype,"data",void 0);_.q([_.y({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],hD.prototype,"primaryIsCancel",void 0);_.q([_.y({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],hD.prototype,"isCancelButtonHidden",void 0);
_.q([_.y({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],hD.prototype,"isCheckboxHidden",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],hD.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.q([_.y({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.x("design:type",Boolean)],hD.prototype,"useOverlayForSpinner_",void 0);
_.q([_.y({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.x("design:type",Boolean)],hD.prototype,"showSpinner_",void 0);_.q([_.y({value:!1}),_.x("design:type",Boolean)],hD.prototype,"isActionInProgress_",void 0);_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.x("design:type",Boolean)],hD.prototype,"hasHeaderImageWidth_",void 0);
_.q([_.y({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.x("design:type",Boolean)],hD.prototype,"hasLoadingMessage",void 0);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],hD.prototype,"openPopupHandler_",null);_.q([_.Fv("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],hD.prototype,"closePopupHandler_",null);
_.q([_.Gm("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"onHeaderImageChanged_",null);_.q([_.Gm("data.headerImageWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"onHeaderImageWidthChanged_",null);_.q([_.Gm("data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"onThumbnailChanged_",null);
_.q([_.Fv("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hD.prototype,"onYtNavigate_",null);_.q([_.Fv("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"onThumbnailLoaded_",null);_.q([_.Fv("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.BN]),_.x("design:returntype")],hD.prototype,"onYtServiceRequestSent_",null);
_.q([_.Fv("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.D4]),_.x("design:returntype")],hD.prototype,"onYtServiceRequestCompleted_",null);_.q([_.Lr({is:"yt-confirm-dialog-renderer",noInjection:!0})],hD);var XcK;var uXT;var L5=function(){return _.N.apply(this,arguments)||this};
_.n(L5,_.N);L5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.aU(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
L5.prototype.computeConfirmButton_=function(D){var Y={text:D.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};D.confirmNavigationEndpoint?Y.navigationEndpoint=D.confirmNavigationEndpoint:D.confirmServiceEndpoint&&(Y.serviceEndpoint=D.confirmServiceEndpoint);return Y};
L5.prototype.computeShowTitle_=function(D){return!(D==null||!D.title)};
_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],L5.prototype,"data",void 0);_.q([_.y({computed:"computeShowTitle_(data)"}),_.x("design:type",Boolean)],L5.prototype,"showTitle",void 0);_.q([_.Lr({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],L5);
_.L(L5,"yt-fancy-dismissible-dialog-renderer",function(){if(uXT===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;XcK===void 0&&(XcK=document.createElement("template"));var Z=XcK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);uXT=D}D=uXT;return D});var att;var Mc9;var mx=function(){var D=_.N.apply(this,arguments)||this;D.spinnerActive=!1;return D};
_.n(mx,_.N);mx.prototype.created=function(){rxK(2201)};
mx.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
mx.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
mx.prototype.onIronOverlayClosed=mx.prototype.onIronOverlayClosed;mx.prototype.onIronOverlayOpened=mx.prototype.onIronOverlayOpened;_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.pJ),_.x("design:type",Object)],mx.prototype,"tpYtIronOverlayBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],mx.prototype,"data",void 0);_.q([_.y(),_.x("design:type",Object)],mx.prototype,"spinnerActive",void 0);
_.q([_.Fv("iron-overlay-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mx.prototype,"onIronOverlayOpened",null);_.q([_.Fv("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mx.prototype,"onIronOverlayClosed",null);_.q([_.Lr({is:"yt-loading-renderer",disableElementRegistration:!0})],mx);
_.L(mx,"yt-loading-renderer",function(){if(Mc9===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;att===void 0&&(att=document.createElement("template"));var Z=att;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Mc9=D}D=Mc9;return D},{mode:2});var CVu;var WKz;var q5=function(){var D=_.N.apply(this,arguments)||this;D.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);D.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);D.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.n(q5,_.N);_.u=q5.prototype;_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.u.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.u.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.u.openPopupHandler_=function(D){D.detail===this.hostElement&&this.hostElement.hidden&&_.CX(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.u.onDismissButtonTap_=function(){var D;this.closeOnDismissButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.CX(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.u.onAcceptButtonTap_=function(){var D;this.closeOnAcceptButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.CX(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.u.computeHasHeader_=function(D){return!!D.headerBackgroundImage};
_.u.computeLayoutStyle_=function(D){return D};
_.u.computePopupSize_=function(D){return D};
_.u.computeIconType_=function(D){return D.dialogIcon&&D.dialogIcon.iconType?D.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":D.dialogIcon.iconType:""};
_.u.computeIsLogo_=function(D){return!!D.dialogIcon&&!!D.dialogIcon.iconType&&(D.dialogIcon.iconType==="YOUTUBE_LOGO"||D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||D.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.u.computeHasCustomLogo=function(D){return!(D==null||!D.headerForegroundImage)};
_.u.computeCustomLogo=function(D,Y){if(D!=null&&D.headerForegroundImage)return D.headerForegroundImageDark?Y?D.headerForegroundImageDark:D.headerForegroundImage:D.headerForegroundImage};
_.u.computeHeaderBackgroundImage=function(D,Y){if(D!=null&&D.headerBackgroundImage)return Y&&(D==null?0:D.headerBackgroundImageDark)?D.headerBackgroundImageDark:D.headerBackgroundImage};
_.u.shouldShowIconContainer=function(D,Y){return D&&!Y};
_.u.shouldShowNonYouTubeIcon=function(D,Y){return!D&&!Y};
_.u.getLogoImageId=function(D){var Y,R,Z;return(D=(Y=this.computeCustomLogo(D,this.isDarkTheme))==null?void 0:(R=Y.thumbnails)==null?void 0:(Z=R[0])==null?void 0:Z.height)&&D%31===0?"custom-logo-with-padding":"custom-logo"};
q5.prototype.openPopupHandler_=q5.prototype.openPopupHandler_;q5.prototype.dataChanged_=q5.prototype.dataChanged_;_.q([_.v(_.a$.YtRendererstamperBehavior),_.x("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.q([_.y(),_.x("design:type",Boolean)],q5.prototype,"isDarkTheme",void 0);
_.q([_.y({computed:"computeCustomLogo(data, isDarkTheme)"}),_.x("design:type",Object)],q5.prototype,"customLogo",void 0);_.q([_.y({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.x("design:type",Object)],q5.prototype,"headerBackgroundImage",void 0);_.q([_.y(),_.x("design:type",Object)],q5.prototype,"data",void 0);_.q([_.y({computed:"computeHasHeader_(data)"}),_.x("design:type",Boolean)],q5.prototype,"hasHeader",void 0);
_.q([_.y({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.x("design:type",Object)],q5.prototype,"layoutStyle",void 0);_.q([_.y({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.x("design:type",Object)],q5.prototype,"popupSize",void 0);_.q([_.y({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],q5.prototype,"hasLogo",void 0);
_.q([_.y({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],q5.prototype,"hasCustomLogo",void 0);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],q5.prototype,"dataChanged_",null);_.q([_.Fv("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],q5.prototype,"openPopupHandler_",null);
_.q([_.Lr({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],q5);
_.L(q5,"yt-upsell-dialog-renderer",function(){if(WKz===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;CVu===void 0&&(CVu=document.createElement("template"));var Z=CVu;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);WKz=D}D=WKz;return D},{mode:2});var z5K=_.RT(function(D){return _.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.S(_.T,{cond:D.title,then:function(Y){return _.S("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},Y)}}))},"Ug"),SEz=_.RT(function(D){return _.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.S(_.vK,{data:D.closeButton},{buttonViewModel:function(Y){return _.S("div",null,_.S(_.TV,{data:Y.data}))}}))},"Vg"),Twk=_.RT(function(D){var Y=
D.data;
return _.S(_.c_,null,_.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.S(_.T,{cond:function(){return!!Y().image&&!!Y().title},
then:function(){return _.S(_.Rt,{data:function(){return Y().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.S(_.T,{cond:function(){return Y().title},
then:function(R){return _.S("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},R)}}),_.S(_.T,{cond:function(){return Y().primaryGenre},
then:function(R){return _.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},R)}}))),_.S(_.T,{cond:function(){var R=Y().description;
return R&&R.length<=150},
then:function(){return _.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return Y().description}))}}))},"Wg"),jVp=_.RT(function(D){D=D.infoRows;
var Y=_.DH().resolve(_.pp),R=_.f("enable_displaying_ppn");return _.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.S(_.G6,{each:D},function(Z){return _.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.S(_.T,{cond:function(){return Z.label},
then:function(t){return _.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},t)}}),_.S(_.T,{cond:function(){return Z.attributedLabel},
then:function(t){return _.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.S(_.y_,{text:t,noPreWrap:!0}))}}),_.S(_.T,{cond:function(){return Z.value},
then:function(t){return _.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},t)}}),_.S(_.T,{cond:function(){return Z.attributedValue},
then:function(t){return _.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.S(_.y_,{text:t,noPreWrap:!0}))}}))}),_.S(_.T,{cond:function(){return R&&Y.clientData.has("post_play_nonce")},
then:function(){return _.S("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.S("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Y.getData("post_play_nonce")))}}))},"Xg"),Itk=_.RT(function(D){var Y=D.data;
return _.S("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.S(z5K,{title:function(){return Y().dialogTitle}}),_.S(Twk,{data:Y}),_.S(_.T,{cond:function(){return Y().infoRow},
then:function(R){return _.S(jVp,{infoRows:R})}}),_.S(SEz,{closeButton:function(){return Y().closeButton}}))},"Yg");
Itk.idomCompat=!0;_.at(Itk,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;return _.S("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.S(_.Rt,{data:function(){return Y().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.S("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.S("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.S(_.T,{cond:function(){var R=Y().ytLogo;return R?R.iconType:null},
then:function(R){return _.S(_.nB,{icon:R,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.S("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.S("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.S(_.y_,{text:function(){return Y().title}})),_.S("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.S(_.y_,{text:function(){return Y().body}})),_.S("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.S(_.y_,{text:function(){return Y().verifyStateText}}))),
_.S("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.S("div",null,_.S(_.vK,{data:function(){return Y().dismissButton}},{buttonViewModel:_.TV})),_.S("div",null,_.S(_.vK,{data:function(){return Y().linkParentButton}},{buttonViewModel:_.TV})))))},"Zg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.cs}});var FK9=_.RT(function(D){var Y=D.data;D=_.DX(function(){return Y().agreements},[]);
return _.S("installment-agreements-view-model",{class:_.e7("ytInstallmentAgreementsViewModelHost")},_.S(_.G6,{each:D},function(R){return _.S("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.S("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.S(_.y_,{text:R.label})),_.S("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.S(_.vK,{data:function(){return R.openButton}},{buttonViewModel:_.TV})))}))},"$g");
FK9.idomCompat=!0;var G0I=_.RT(function(D){return _.S("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.S("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.S(_.y_,{text:function(){return D.data().inviteMessage}})),_.S("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.S(_.y_,{text:function(){return D.data().attributedAccountSectionHeaderText}})),_.S("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.S(_.vK,{data:function(){return D.data().accountAvatar}},{avatarViewModel:_.Jz}),_.S("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.S(_.y_,{text:function(){return D.data().accountName}}),_.S("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.S(_.y_,{text:function(){return D.data().handle}}))),_.S(_.vK,{data:function(){return D.data().trailingButton}},{buttonViewModel:_.TV})),_.S("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.S(_.y_,{text:function(){return D.data().termsOfService}})))},"ah");var Vcp=_.RT(function(D){var Y=_.a(_.fB(function(){var B,O;return((B=D.data().createPlaylistDialogFormSchema)==null?0:(O=B.initialValues)==null?0:O.title)?D.data().createPlaylistDialogFormSchema.initialValues.title:""})),R=Y.next().value,Z=Y.next().value;
Y=_.a(_.fB(function(){D.data();return!1}));
var t=Y.next().value,X=Y.next().value;Y=_.a(_.fB(function(){D.data();return!1}));
var M=Y.next().value,W=Y.next().value;Y=_.a(_.fB(function(){var B,O;return(B=D.data().createPlaylistDialogFormSchema)==null?void 0:(O=B.initialValues)==null?void 0:O.visibility}));
var z=Y.next().value,I=Y.next().value;Y=_.a(_.fB(function(){D.data();return!1}));
var F=Y.next().value,G=Y.next().value;Y=_.a(_.fB(function(){var B,O;return(B=D.data().createPlaylistDialogFormSchema)==null?void 0:(O=B.initialValues)==null?void 0:O.isCollaborative}));
var V=Y.next().value,e=Y.next().value,r=_.dI("div");_.r2(function(){var B=r.value.querySelector("textarea");B&&(B.value=R())},"OCauEe");
_.$s(function(){var B;_.f1h((B=D.data().createPlaylistDialogFormSchema)==null?void 0:B.id,{onSubmit:function(){var O=R();var Wo=z(),Sb=V(),VU=D.data();O={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:O,privacyStatus:Wo,videoIds:VU.videoIds,sourcePlaylistId:VU.sourcePlaylistId,params:Sb?VU.createPlaylistParamsCollaborationEnabled:VU.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.DH().resolve(_.Yw).resolveCommand(O)},
isValid:function(){return t()&&!M()&&!F()}})});
var l=function(B){if(B!==void 0&&(Z(B),!t()&&B.length>0&&X(!0),t())){var O=yit(D.data());if(O){var Wo=O.minLength;O=O.maxLength;Wo&&B.length<Wo?W(!0):O&&B.length>O?W(!0):W(!1)}}},U=function(){var B=!(!V()||z()!=="PRIVATE");
G(B)},K=function(B){B!==void 0&&(I(B),U())},H=function(){if(F())return lXb(D.data())},c=function(){e(!V());
U()},Q=function(){return{validate:function(B){if(t()){var O=yit(D.data());
if(O){var Wo=O.minLength;O=O.translations;if(Wo&&B.length<Wo)return O==null?void 0:O.minLengthErrorMessage}}}}},E=function(){var B=yit(D.data()),O=B==null?void 0:B.maxLength,Wo;
B=B==null?void 0:(Wo=B.translations)==null?void 0:Wo.maxLengthErrorMessage;if(O&&B)return{maxChars:O,errorMessage:B}};
return _.S("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.S("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:r},_.S(_.vK,{data:function(){return D.data().playlistTitle}},{textFormFieldViewModel:function(B){return _.S(_.ILk,{data:B.data,
text:R,onInput:l,validation:Q,characterLimit:E})},
textFieldViewModel:function(B){return _.S(_.jo9,{data:B.data,text:R,onInput:l,validation:Q,characterLimit:E})}})),_.S("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.S(_.vK,{data:function(){return D.data().playlistVisibility}},{dropdownViewModel:function(B){return _.S(_.oNk,{data:B.data,
onSelected:K,error:H})}})),_.S(_.T,{cond:function(){return!!D.data().playlistCollaborate},
then:function(){return _.S("div",null,_.S(_.vK,{data:function(){return D.data().playlistCollaborate}},{switchListItemViewModel:function(B){return _.S(_.l0b,{data:B.data,
onTap:c})}}))}}))},"bh");var ftu=_.RT(function(D){var Y=D.data;return _.S("upsell-offer-table-cell-content-view-model",null,_.S("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.S(_.ej,null,_.S(_.VL,{when:function(){return Y().iconType}},function(){return _.S("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.S(_.nB,{icon:function(){return Y().iconType.toString()}}))}),_.S(_.VL,{when:function(){return Y().title}},function(){return _.S(_.y_,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return Y().title}})}),_.S(_.VL,{when:function(){return Y().subtitle}},function(){return _.S(_.y_,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return Y().subtitle}})}),_.S(_.VL,{when:function(){return Y().infoText}},function(){return _.S(_.y_,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return Y().infoText}})}),_.S(_.VL,{when:function(){return Y().featureDescription}},function(){return _.S(_.y_,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return Y().featureDescription}})}),_.S(_.VL,{when:function(){return Y().note}},function(){return _.S(_.y_,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return Y().note}})}))))},"ch");
ftu.idomCompat=!0;var e59=_.RT(function(D){var Y=D.data;return _.S("upsell-offer-table-cell-view-model",null,_.S("div",{class:_.e7("ytUpsellOfferTableCellViewModelCellWrapper",function(){return Y().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.S(_.vK,{data:function(){return Y().contents}},{upsellOfferTableCellContentViewModel:ftu})))},"dh");
e59.idomCompat=!0;var Ayu=_.RT(function(D){var Y=D.data;var R=D.upsellTableIsFirstRow;var Z=function(){return(R==null?0:R())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},t=function(){return(R==null?0:R())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.S("ytm-upsell-offer-table-row-view-model",null,_.S("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.S(_.vK,{data:function(){return Y().rowHeaderCell}},{upsellOfferTableCellViewModel:function(X){return _.S("div",{class:Z},_.S(e59,{data:X.data}))}}),_.S(_.vK,{data:function(){return Y().contentCells}},{upsellOfferTableCellViewModel:function(X){return _.S("div",{class:t},_.S(e59,{data:X.data}))}})))},"eh");
Ayu.idomCompat=!0;var nRt=_.RT(function(D){var Y=D.data;return _.S("ytm-upsell-offer-table-view-model",null,_.S("div",{class:"ytUpsellOfferTableViewModelHost"},_.S("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.S(_.vK,{data:function(){return Y().rows}},{upsellOfferTableRowViewModel:function(R,Z){return _.S(Ayu,{data:R.data,
upsellTableIsFirstRow:function(){return Z()===0}})}}))))},"fh");
nRt.idomCompat=!0;var ry9=_.RT(function(D){var Y=_.DX(D.noPadding,!1),R=function(){var X,M;return(M=(X=D.data().logo.accessibilityData)==null?void 0:X.label)!=null?M:""},Z=function(){return D.data().offerTable},t={};
return _.S("upsell-view-model",{class:_.e7("ytUpsellViewModelHost",(t.ytUpsellViewModelHostNoPadding=function(){return Y()},t.ytUpsellViewModelHostWide=function(){return Z()!==void 0},t))},_.S("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.S(_.T,{cond:function(){return _.Em(D.data().logo)},
then:function(X){return _.S(_.Rt,{data:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:R})}})),_.S("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.S(_.y_,{text:function(){return D.data().title}})),_.S("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.S(_.G6,{each:function(){var X;
return(X=D.data().subtitles)!=null?X:[]},
keyBy:"INDEX"},function(X){var M={};return _.S("div",{class:_.e7("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(M.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return Z()!==void 0},M))},_.S(_.y_,{text:X}))})),_.S("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.S(_.G6,{each:function(){var X;
return(X=D.data().benefitInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){return _.S(_.T,{cond:function(){return X().info},
then:function(M){return _.S("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.S(_.nB,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.S(_.y_,{text:M}))}})})),_.S(_.T,{cond:function(){return Z()!==void 0},
then:function(){return _.S("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.S(nRt,{data:Z}))}}),_.S("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.S(_.G6,{each:function(){var X;
return(X=D.data().legalInfos)!=null?X:[]},
keyBy:"INDEX"},function(X){var M={};return _.S("div",{class:_.e7("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(M.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return Z()!==void 0},M))},_.S(_.y_,{text:X}))})))},"gh");var wc9=_.RT(function(D){var Y=D.data;D={};D=(D.ytMiniAppScoreChallengeViewModelScoreRadial=!0,D.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Jiu(),D);return _.S("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.S("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return Y().title}),_.S("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return Y().subtitle}),_.S("div",{class:_.kc(D)},_.S("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return Y().score})),_.S("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return Y().prompt}))},"hh");var $4k=function(){this.store=_.Og();this.formId=""};
$4k.prototype.onInit=function(D){D.formId&&(this.formId=D.formId,this.store.dispatch(_.u0({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var vRz=_.RT(function(D){function Y(W){if(W&&(W=_.A(W,_.yi)))return Object.assign({},W,{isSelected:X()})}
var R=_.a(_.fB(function(){var W,z;return(z=(W=_.A(D.data().option,_.yi))==null?void 0:W.isSelected)!=null?z:!1})),Z=R.next().value,t=R.next().value,X=Z;
_.$s(function(){var W;_.f1h((W=D.data().formSchema)==null?void 0:W.id,{onSubmit:function(){var z=_.DH().resolve(_.Yw),I=!!D.data().selectedCommand,F=!!D.data().unselectedCommand;if(X()){if(I)var G=D.data().selectedCommand}else F&&(G=D.data().unselectedCommand);G=_.HL(G);Y(D.data().option)&&!G?(z="",!I&&F?z="selected ":I&&!F&&(z="unselected "),I=new _.AT("No "+z+"command found for SelectionListItemFormViewModel"),_.Nb(I)):G&&z.resolveCommand(G)},
isValid:function(){return!0}})});
var M=function(){t(!X())};
_.w2(function(){var W,z,I=(W=D.data())==null?void 0:(z=W.formSchema)==null?void 0:z.id;I&&_.G6K()().delete(I)});
return _.S("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.S("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.S(_.y_,{text:function(){return D.data().paragraph}})),_.S(_.T,{cond:function(){return Y(D.data().option)},
then:function(W){return _.S(_.LW,{data:W,isCompact:!0,hideSelectionTextChevron:!0,onTap:M,disableHorizontalPadding:!0})}}))},"ih");var oRt=_.RT(function(D){var Y=D.data;var R=D.disablePadding;var Z=D.className;var t=_.dI("yt-dialog-header-view-model"),X=function(){var W=Y().imageBanner;a:switch(Y().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var z="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:z="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:W,style:z,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},M=function(){return Y().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.$s(function(){var W=function(){_.CX(t.value,"yt-refit-popups-action")},z;
(z=t.value)==null||z.addEventListener("image-loaded",W);_.w2(function(){var I;(I=t.value)==null||I.removeEventListener("image-loaded",W)})});
D={};return _.S("yt-dialog-header-view-model",{el:t,class:_.e7(Z,(D.ytDialogHeaderViewModelHost=!0,D.ytDialogHeaderViewModelHostDisablePadding=R,D))},_.S(_.T,{cond:function(){return Y().imageBanner},
then:function(){var W={};return _.S("div",{class:_.e7(Z,(W.ytDialogHeaderViewModelBanner=!0,W.ytDialogHeaderViewModelBannerFullBleed=M,W)),style:_.Ap({"max-height":function(){return Y().assetContainerMaxHeight!==void 0?Y().assetContainerMaxHeight+"px":void 0}})},_.S(_.X2,{data:X,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.S(_.T,{cond:function(){return Y().headerBlock},
then:function(){return _.S("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.S(_.vK,{data:function(){return Y().headerBlock}},{contentPreviewImageViewModel:function(W){return _.S(_.X2,{data:W.data,
notifyOnLoaded:!0})}}))}}),_.S(_.T,{cond:function(){return Y().customBanner},
then:function(W){return _.S("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.S(_.vK,{data:W},{avatarStackViewModel:_.UB}))}}),_.S(_.T,{cond:function(){return Y().headline},
then:function(W){return _.S("h2",null,_.S(_.y_,{text:W,className:"ytDialogHeaderViewModelText"}))}}))},"jh");
oRt.idomCompat=!0;var bmE=_.RT(function(D){var Y=_.AQ9(function(){return D.data().formId}),R=Y.submitForm,Z=Y.isValid;
return _.S("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.S(_.vK,{data:function(){return D.data().panelFooter}},{panelFooterViewModel:function(t){return _.S(_.Xt,{data:t.data,
disablePadding:!0,disablePrimaryButton:function(){return!Z()},
onClickPrimaryButton:function(){R()}})}}))},"kh");var yyk=_.RT(function(D){var Y=function(){var R,Z;return(Z=(R=_.A(D.data().rendererContext,_.ny))==null?void 0:R.label)!=null?Z:""};
return _.S("yt-dialog-image-content-view-model",{class:_.e7("ytDialogImageContentViewModelHost",D.className)},_.S(_.T,{cond:function(){return _.Em(D.data().image)},
then:function(R){var Z={};return _.S("div",{style:_.Ap((Z.width=(0,_.kj)(function(){var t;return(t=D.data().imageMaxWidth)!=null?t:""}),Z)),
class:"ytDialogImageContentViewModelImage"},_.S(_.Rt,{data:R,alt:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.S(_.y_,{text:function(){return D.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"lh");var Jyk=_.RT(function(D){var Y=_.YC(D,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),R=Y.elRefCallback;D=Y.iconWiz;var Z=Y.assetWiz,t=Y.assetType,X=Y.titleWiz,M=Y.leadingActionHeaderWiz,W=Y.trailingActionHeaderWiz,z=Y.headerPosition,I=Y.contentWiz,F=Y.buttonLayout,G=Y.buttonStyle,V=Y.primaryButtonWiz,e=Y.secondaryButtonWiz,r=Y.contentAlignment,l=Y.isFullscreen,U=Y.width,K=Y.maxHeight,H=Y.isHeaderWizDefined,
c=Y.headerWiz,Q=Y.isFooterWizDefined,E=Y.footerWiz;Y=_.dI("dialog-layout",function(KM){R==null||R(KM)});
var B=Z?function(){return Z({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,O=V?function(){var KM={};
return V({buttonOverrides:function(){return{style:(G==null?void 0:G())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.e7((KM["yt-spec-dialog-layout__dialog-layout-button"]=!0,KM["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(F==null?void 0:F())===0||(F==null?void 0:F())===2},KM))})}:void 0,Wo=e?function(){var KM={};
return e({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.e7((KM["yt-spec-dialog-layout__dialog-layout-button"]=!0,KM["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(F==null?void 0:F())===0||(F==null?void 0:F())===2},KM))})}:void 0,Sb=function(){return(!!X||!!M||!!W)&&z()===0},VU={},AS={},nM={},Ho={};
return _.S("dialog-layout",{el:Y,class:_.e7((VU["yt-spec-dialog-layout"]=!0,VU["yt-spec-dialog-layout--dialog-layout-fullscreen"]=l,VU["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!l()},VU["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return K()===1},VU["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(t==null?void 0:t())===1},VU)),
style:function(){return(U==null?void 0:U())!==void 0?"width: "+U+"px;":""}},D?_.S("div",{class:_.e7((AS["yt-spec-dialog-layout__dialog-layout-icon"]=!0,AS["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Z&&z()===1},AS["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return r()===1},AS))},_.S(D,null)):null,_.S(_.T,{cond:H,
then:function(){return c?_.S("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.S(c,null)):null},
else:function(){return _.S(_.c_,null,_.S(_.T,{cond:Sb,then:function(){return _.S(NwI,{contentAlignment:r,LeadingActionHeader:M,TrailingActionHeader:W,Title:X,isAboveAsset:!!B})}}),B?_.S("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.S(B,null)):null)}}),_.S("div",{class:_.e7((nM["yt-spec-dialog-layout__dialog-layout-container"]=!0,nM["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(r==null?void 0:r())===1},nM["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!X&&!c||!!B&&(z==null?void 0:z())===0},nM))},_.S(_.T,{cond:function(){return X&&!c&&(z==null?void 0:z())===1},
then:function(){return _.S(NwI,{contentAlignment:r,LeadingActionHeader:M,TrailingActionHeader:W,Title:X,isAboveAsset:!1})}}),I?_.S("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.S("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.S(I,null))):null,_.S(_.T,{cond:Q,
then:function(){return E?_.S("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.S(E,null)):null}}),O||Wo?_.S(ltT,{footerClasses:_.e7((Ho["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Ho["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Ho["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(F==null?void 0:F())===2},Ho["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(F==null?void 0:F())===1},Ho)),
PrimaryButton:O,SecondaryButton:Wo}):null))},"mh"),NwI=_.RT(function(D){var Y=_.YC(D,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),R=Y.contentAlignment,Z=Y.LeadingActionHeader;D=Y.Title;var t=Y.TrailingActionHeader,X=Y.isAboveAsset,M=Y.enableLeadingActionHeader;Y={};return _.S("div",{class:_.e7((Y["yt-spec-dialog-layout__dialog-header-container"]=!0,Y["yt-spec-dialog-layout__dialog-header"]=!0,Y["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=X,Y["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(R==null?void 0:R())===1&&M()},Y))},_.S(_.T,{cond:function(){return M()},
then:function(){return Z?_.S("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.S(Z,null)):null}}),D?_.S("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.S(D,null)):null,t?_.S("div",null,_.S(t,null)):null)},"nh"),ltT=_.RT(function(D){var Y=D.footerClasses;
var R=D.PrimaryButton;D=D.SecondaryButton;return _.S("div",{class:Y},D?_.S(D,null):null,R?_.S(R,null):null)},"oh");var k0I=_.RT(function(D){var Y=D.data;return _.S("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.S("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.S(_.vK,{data:function(){return Y().avatar}},{avatarViewModel:_.Jz})),_.S("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.y_,{text:function(){return Y().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ph");var U4k=_.RT(function(D){var Y=D.data;return _.S("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.S("div",{class:"ytAccessConfirmationViewModelContent"},_.S(_.vK,{data:function(){var R;return(R=Y().avatar)!=null?R:Y().dualAvatar}},{dualAvatarViewModel:function(R){return _.S(_.Gu4,{data:R.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(R){return _.S(_.kk,{data:R.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.S("h2",{class:"ytAccessConfirmationViewModelTitle"},_.S(_.y_,{text:function(){return Y().title}})),_.S(_.y_,{text:function(){return Y().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"qh");var KKt=_.RT(function(D){var Y=D.data;var R=void 0;D=_.a(_.fB(function(){var I;return((I=_.A(Y().content,_.Hvp))==null?void 0:I.defaultSelectedKey)||""}));
var Z=D.next().value,t=D.next().value,X,M=function(){t("");var I;(I=R)!=null&&I.store.dispatch(_.u0({type:"RESET_COMMAND_MAP"}))};
_.$s(function(){R=new $4k;window.addEventListener("yt-popup-closed",M)});
_.r2(function(){if(R&&X!==Y().formId&&(R.onInit(Y()),(X=Y().formId)&&Z())){var I=R,F={key:Z()};F.command&&I.store.dispatch(ynb(X,F.command))}},"k6b6Qe");
_.w2(function(){window.removeEventListener("yt-popup-closed",M)});
var W=function(I,F,G){F.key&&G&&F.key!==Z()&&(t(F.key),R&&F.command&&R.store.dispatch(ynb(G,F.command)))},z=function(){if(_.A(Y().content,_.Hvp))return!(Z==null?0:Z())};
return _.S("yt-dialog-view-model",{class:_.e7("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.S(Jyk,{headerWiz:function(){return _.S("span",{skip:!0},_.S(_.vK,{data:function(){return Y().header}},{dialogHeaderViewModel:function(I){return _.S(oRt,{data:I.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!Y().header},
contentWiz:function(){return _.S("span",{skip:!0},_.S(_.vK,{data:function(){return Y().customContent?Y().customContent:Y().content}},{basicContentViewModel:_.fp9,
createPlaylistDialogFormViewModel:Vcp,collaborativePlaylistInviteMessageViewModel:G0I,miniAppScoreChallengeViewModel:wc9,radioButtonGroupViewModel:function(I){var F=I.data;return _.S(_.wmb,{data:F,selectedKey:Z,onSelected:W,groupName:function(){return F().formId}})},
selectionListItemFormViewModel:vRz,upsellViewModel:function(I){return _.S(ry9,{data:I.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:k0I,installmentAgreementsViewModel:FK9,accessConfirmationViewModel:U4k,listViewModel:function(I){return _.S(_.q8z,{data:I.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:yyk}))},
footerWiz:function(){return _.S("span",{skip:!0},_.S(_.vK,{data:function(){return Y().footer}},{panelFooterViewModel:function(I){return _.S(_.Xt,{data:I.data,
disablePadding:!0,disablePrimaryButton:z})},
formPanelFooterViewModel:bmE,formFooterViewModel:function(I){return _.S(_.Co9,{data:I.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!Y().footer}}))},"rh");
KKt.idomCompat=!0;_.at(KKt,"yt-dialog-view-model",{props:{data:_.cs},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var h5I=_.RT(function(D){var Y=D.data;D={};return _.S("yt-panel-header-view-model",{class:_.e7("yt-panel-header-view-model-wiz",(D["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!Y().shouldHideDivider},D["yt-panel-header-view-model-wiz--compact"]=function(){return!!Y().subtitle},D))},_.S("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.S(_.T,{cond:function(){return Y().title},
then:function(R){return _.S(_.y_,{text:R,className:"yt-panel-header-view-model-wiz__title"})}}),_.S(_.T,{cond:function(){return Y().subtitle},
then:function(R){return _.S(_.y_,{text:R,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.S("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.S(_.vK,{data:function(){return Y().trailingButtons}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"sh");
h5I.idomCompat=!0;var LK0=_.RT(function(D){var Y=_.F4(function(X){var M;if((M=D.skipContentClick)==null?0:M.call(D))return!1;D.onContentWrapperClick(X);return!0}),R,Z,t;
return _.S("div",{class:_.e7("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return D.isAnimating()?"transform: translateY("+D.currentY()+"px);transition: 0.2s":""}},(R=D.header)==null?void 0:R.call(D),_.S("div",{id:D.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Ap({"max-height":(0,_.kj)(D.maxHeightForContentWrapper)}),"on:scroll":hUk(D.onScroll),"on:touchmove":hUk(function(X){return void X.stopPropagation()})},_.S("div",{el:{onRender:D.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":Y},(Z=D.body)==null?void 0:Z.call(D))),(t=D.footer)==null?void 0:t.call(D))},"th");
LK0.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var m4u=_.RT(function(D){var Y=_.DX(D.leadingLabel),R=_.DX(D.trailingLabel),Z=_.DX(D.footerButtonType),t=function(){return Y()||R()||D.hasPrimaryButton()||D.hasSecondaryButton()},X={},M=_.e7("yt-spec-bottom-sheet-layout__primary-button",(X["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Z()===0&&D.hasPrimaryButton()},X["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Z()===1&&D.hasPrimaryButton()},X["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Z()===2&&D.hasPrimaryButton()},X["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Z()===3&&D.hasPrimaryButton()},X));
X={};var W=_.e7("yt-spec-bottom-sheet-layout__secondary-button",(X["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Z()===1&&D.hasSecondaryButton()},X["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Z()===2&&D.hasSecondaryButton()},X["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Z()===3&&D.hasPrimaryButton()},X));
return _.S(_.T,{cond:D.hasFooterOverride,then:function(){var z;return _.S(_.c_,null,(z=D.footerOverride)==null?void 0:z.call(D))},
else:function(){return _.S(_.T,{cond:t,then:function(){return _.S("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.S(_.T,{cond:function(){return Y()||R()},
then:function(){var z={};return _.S("div",{class:_.e7("yt-spec-bottom-sheet-layout__footer-label-wrapper",(z["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!D.hasPrimaryButton()},z))},_.S(_.T,{cond:Y,
then:function(){return _.S("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},Y)}}),_.S(_.T,{cond:R,
then:function(){return _.S("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},R)}}))}}),_.S(_.T,{cond:function(){return D.hasPrimaryButton()||D.hasSecondaryButton()},
then:function(){var z={};return _.S("div",{class:_.e7("yt-spec-bottom-sheet-layout__footer-button-wrapper",(z["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.U97,z))},_.S(_.T,{cond:function(){return D.hasSecondaryButton()&&Z()!==0},
then:function(){var I;return _.S("div",{class:W},(I=D.secondaryButton)==null?void 0:I.call(D))}}),_.S(_.T,{cond:D.hasPrimaryButton,
then:function(){var I;return _.S("div",{class:M},(I=D.primaryButton)==null?void 0:I.call(D))}}))}}))}})}})},"uh");
m4u.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var qEk=_.RT(function(D){var Y=_.DX(D.title),R=_.DX(D.subtitle);return _.S("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:D.headerId,"on:touchstart":_.F4(function(Z){var t;(t=D.touchstart)==null||t.call(D,Z);return!1}),
"on:touchmove":_.F4(function(Z){var t;(t=D.touchmove)==null||t.call(D,Z);return!1}),
"on:touchend":_.F4(function(Z){var t;(t=D.touchend)==null||t.call(D,Z);return!1})},_.S("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.S(_.T,{cond:D.hasHeaderOverride,
then:function(){var Z;return _.S(_.c_,null,(Z=D.headerOverride)==null?void 0:Z.call(D))},
else:function(){var Z={};return _.S("div",{class:_.e7((Z["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Z["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=Y,Z))},_.S("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.S(_.T,{cond:Y,then:function(){return _.S(_.c_,null,_.S("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},Y),_.S(_.T,{cond:R,then:function(){return _.S("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
R)}}))}})),_.S(_.T,{cond:function(){return Y()&&D.hasActionHeader()},
then:function(){var t;return _.S("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(t=D.actionHeader)==null?void 0:t.call(D))}}))}}))},"vh");
qEk.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.RT(function(D){function Y(B){if(!K&&typeof MutationObserver!=="undefined"){var O={childList:!0};"MutationObserver"in window&&(K=new MutationObserver(R.bind(void 0,B)),K.observe(B,O))}}
function R(B){typeof K!=="undefined"&&(H["content-wrapper"]===void 0&&(H["content-wrapper"]=B.children[0].clientHeight),e(H["content-wrapper"]),V()>r()||l(V()))}
function Z(){G(window.innerHeight);V()>r()||l(V());c.isFullScreen[0]()&&V()>r()?Q().dispatch("Snap To Full Screen",{maxHeight:U()}):Q().dispatch("Snap To Neutral Position",{maxHeight:r()})}
function t(B){document.body.style.overscrollBehavior="none";B.preventDefault();Q().dispatch("Touch Start",{event:B})}
function X(B){B.preventDefault();Q().dispatch("Touch Move",{event:B,contentScrollable:V()>r(),fullContentWrapperHeight:U(),contentWrapperHeight:r(),contentHeightMap:H,contentWrapperId:"content-wrapper",header:mIT(D),footer:mIT(D)})}
function M(){document.body.style.overscrollBehavior="";c.isFullScreen[0]()?c.currentY[0]()>=60?Q().dispatch("Snap To Neutral Position",{maxHeight:r()}):Q().dispatch("Snap To Full Screen",{maxHeight:U()}):c.currentY[0]()>=60?W():c.currentY[0]()<=-60&&V()>r()?Q().dispatch("Snap To Full Screen",{maxHeight:U()}):Q().dispatch("Snap To Neutral Position",{maxHeight:r()})}
function W(){Q().dispatch("Close Sheet",{clientHeight:F(),maxHeight:0});setTimeout(function(){LQK()},250)}
var z=_.a(_.ae(window.innerHeight,void 0,"NWeFS")),I=z.next().value;z=z.next().value;var F=I,G=z;z=_.a(_.ae(0,void 0,"oxfm4"));I=z.next().value;z=z.next().value;var V=I,e=z;z=_.a(_.fB(function(){var B=mIT(D);return.6*F()-kDk(B)-UIu(B)}));
I=z.next().value;z=z.next().value;var r=I,l=z,U=function(){var B=mIT(D);return F()-kDk(B)-UIu(B)-24-24},K=null,H={},c={initialY:_.ae(0,void 0,"cYBE5c"),
currentY:_.ae(0,void 0,"RndqHc"),isAnimating:_.ae(!1,void 0,"vO9DVd"),isFullScreen:_.ae(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.fB(r)},Q=function(){var B=null;return function(){if(!B){var O={initialY:c.initialY[0](),currentY:c.currentY[0](),isAnimating:c.isAnimating[0](),isFullScreen:c.isFullScreen[0](),maxHeightForContentWrapper:c.maxHeightForContentWrapper[0]()};B=KQK(O)}return B}}();
_.$s(function(){window.addEventListener("resize",Z);Q().subscribe(function(B){c.initialY[1](B.initialY);c.currentY[1](B.currentY);c.isAnimating[1](B.isAnimating);c.isFullScreen[1](B.isFullScreen);c.maxHeightForContentWrapper[1](B.maxHeightForContentWrapper)})});
_.w2(function(){window.removeEventListener("resize",Z);K&&(K.disconnect(),K=null)});
var E=_.e7({"bottom-sheet-content-without-icon":function(){var B;return!((B=D.shouldShowIcons)==null?0:B.call(D))}});
return _.S("bottom-sheet-layout",null,_.S(LK0,{contentWrapperId:"content-wrapper",isAnimating:function(){return c.isAnimating[0]()},
currentY:function(){return c.currentY[0]()},
maxHeightForContentWrapper:function(){return c.maxHeightForContentWrapper[0]()},
shouldShowIcons:D.shouldShowIcons,skipContentClick:D.skipContentClick,onScroll:function(){var B=document.getElementById("header-wrapper"),O=document.getElementById("content-wrapper");if(B&&O){var Wo={};Wo=(Wo["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Wo["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Wo);B.className=O.scrollTop>1?_.kc(Wo):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:LQK,contentWrapperEl:function(B){Y(B);requestAnimationFrame(function(){R(B)})},
header:function(){return _.S(qEk,{touchstart:t,touchmove:X,touchend:M,title:D.headerTitle,subtitle:D.headerSubtitle,headerId:"header-wrapper",headerOverride:D.headerFn,hasHeaderOverride:D.hasHeaderFn,actionHeader:D.headerActionHeader,hasActionHeader:D.hasHeaderActionHeader})},
footer:function(){return _.S(m4u,{footerButtonType:D.footerButtonType,leadingLabel:D.footerLeadingLabel,trailingLabel:D.footerTrailingLabel,primaryButton:D.footerPrimaryButton,hasPrimaryButton:D.hasFooterPrimaryButton,secondaryButton:D.footerSecondaryButton,hasSecondaryButton:D.hasFooterSecondaryButton,footerOverride:D.footerFn,hasFooterOverride:D.hasFooterFn})},
body:function(){return _.S(_.T,{cond:D.hasContentFn,then:function(){var B;return _.S("div",{class:E},(B=D.contentFn)==null?void 0:B.call(D))}})}}))},"wh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Hmh=_.RT(function(D){var Y=_.DH().resolve(_.y$);return _.S("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.F4(function(){return void Y.closeSheet()})},_.S(_.T,{cond:function(){return!!D.header},
then:function(){return _.S("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},D.header())}}),_.S(_.T,{cond:function(){return!!D.content},
then:function(){return _.S("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},D.content())}}),_.S(_.T,{cond:function(){return!!D.footer},
then:function(){return _.S("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},D.footer())}}))},"xh");
Hmh.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var x4I=_.RT(function(D){D=D.data;var Y=_.dI("yt-sheet-view-model",function(Z){if(_.f("web_focus_first_element_sheet")||!_.f("sheet_focus_first_killswitch"))return Z.addEventListener("focus",function(){UXu(Z)}),function(){Z.removeEventListener("focus",function(){UXu(Z)})}}),R={};
return _.S("yt-sheet-view-model",{"on:mousedown":_.F4(function(Z){_.f("sheet_focus_first_killswitch")||Z.currentTarget!==Z.target&&Z.preventDefault()}),
"on:focus":_.F4(function(){_.f("sheet_focus_first_killswitch")||UXu(Y.value)}),
class:_.e7("yt-sheet-view-model-wiz",(R["yt-sheet-view-model-wiz--contextual"]=!0,R["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.f("web_disable_backdrop_filter"),R)),el:Y,tabindex:-1},_.S(_.T,{cond:D,then:function(Z){return _.S(Hmh,{header:function(){return _.S(_.vK,{data:function(){return Z().header}},{panelHeaderViewModel:h5I})},
content:function(){return _.S(_.vK,{data:function(){return Z().content}},{listViewModel:function(t){return _.S(_.q8z,{data:t.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:ry9,miniAppScoreChallengeViewModel:wc9})},
footer:function(){return _.S(_.vK,{data:function(){return Z().footer}},{panelFooterViewModel:_.Xt})}})}}))},"yh");
x4I.idomCompat=!0;_.at(x4I,"yt-sheet-view-model",{props:{data:_.cs}});var QVE=_.RT(function(D){var Y=function(){var R;return(R=D.data().enableDebuggingFeatures)!=null?R:!1};
return _.S("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.S(_.G6,{each:function(){var R;return(R=D.data().stickers)!=null?R:[]}},function(R){return _.S(PVz,{data:function(){return R},
debugMode:Y})}))},"zh"),PVz=_.RT(function(D){var Y=_.YC(D,{debugMode:!1}).debugMode,R=_.DX(function(){var z;
return(z=D.data().region)==null?void 0:z.w},0),Z=_.DX(function(){var z;
return(z=D.data().region)==null?void 0:z.h},0),t=_.DX(function(){var z;
return(z=D.data().region)==null?void 0:z.x},0),X=_.DX(function(){var z;
return(z=D.data().region)==null?void 0:z.y},0),M=_.F4(function(){var z=D.data().onTap;
z&&_.BL(z)}),W={};
return _.S("div",{class:_.e7("ytStoriesStickerLayerViewModelSticker",(W.ytStoriesStickerLayerViewModelDebugMode=Y,W)),style:_.Ap({width:function(){return 100*R()+"%"},
height:function(){return 100*Z()+"%"},
left:function(){return 100*t()+"%"},
top:function(){return 100*X()+"%"},
"flex-direction":function(){return q4b(D.data().flexDirection)},
"justify-content":function(){return H8b(D.data().justifyContent)},
"align-items":function(){return xIu(D.data().alignItems)}}),
"on:click":M},_.S(_.vK,{data:function(){return D.data().button||D.data().toggleButton}},{buttonViewModel:function(z){return _.S(_.TV,{data:z.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(z){return _.S(_.JV,{data:z.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Ah");var pcb=_.RT(function(D){var Y=function(){return D.data()},R={},Z=_.DX(function(){return Y().backgroundColor},0),t=_.DX(function(){return Y().actionButtons},[]),X=_.DX(function(){return Y().stickerLayer},{}),M=function(){var z,I;
return{animationRef:R,animationConfig:{autoplay:!1,loop:!1,path:(I=(z=Y().foregroundAnimation)==null?void 0:z.url)!=null?I:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){D.navigateToNextItemOnLottieComplete()}}}},W=function(){var z,I,F,G,V,e,r,l;
return{animationConfig:{autoplay:(e=(z=Y().backgroundAnimation)==null?void 0:(I=z.settings)==null?void 0:I.autoplay)!=null?e:!1,loop:(r=(F=Y().backgroundAnimation)==null?void 0:(G=F.settings)==null?void 0:G.loop)!=null?r:!1,path:(l=(V=Y().backgroundAnimation)==null?void 0:V.url)!=null?l:"",name:"stories_item_background_animation"}}};
_.r2(function(){if(D.isVisible()){var z;(z=R.lottieEl)==null||z.play();D.animationRef()&&(D.animationRef().lottieEl=R.lottieEl)}else{var I;(I=R.lottieEl)==null||I.stop()}},"Cbnkwd");
return _.S("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Ap({"background-color":function(){return _.xI(Z())+";"}})},_.S("div",{class:"ytStoriesItemViewModelAssetContent"},_.S(_.T,{cond:function(){return!!Y().backgroundAnimation},
then:function(){return _.S(_.fO,{data:W,animationName:function(){return W().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.S(_.T,{cond:function(){return!!Y().backgroundImage},
then:function(){return _.S(_.Rt,{data:function(){return Y().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.S(_.T,{cond:function(){return!!Y().foregroundAnimation},
then:function(){return _.S(_.fO,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.S(_.T,{cond:function(){return!!Y().foregroundImage},
then:function(){return _.S(_.Rt,{data:function(){return Y().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.S("div",{class:"ytStoriesItemViewModelTopShadow"}),_.S(_.vK,{data:function(){return X()}},{storiesStickerLayerViewModel:QVE})),_.S("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Ap({"background-color":function(){return _.xI(Z())}})},_.S("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.S(_.G6,{each:t},function(z){return _.S(Bw9,{data:function(){return z},
pauseAutoNavigation:D.pauseAutoNavigation})}))))},"Bh"),ERh={style:"overlay",
type:"outline"},Bw9=_.RT(function(D){var Y={};return _.S("div",{class:_.e7("ytStoriesItemViewModelActionButton",(Y.ytStoriesItemViewModelStretchedActionButton=function(){return D.data().size==="STORIES_BUTTON_SIZE_STRETCH"},Y)),
"on:click":_.F4(D.pauseAutoNavigation)},_.S(_.vK,{data:function(){return D.data().button}},{buttonViewModel:function(R){return _.S(_.TV,{data:R.data,
buttonOverrides:ERh})}}))},"Ch");_.at(_.RT(function(D){var Y=function(){var Wo;return(Wo=D.data().startIndex)!=null?Wo:0},R=_.a(_.fB(Y)),Z=R.next().value,t=R.next().value;
R=_.a(_.ae(!1,void 0,"O8yPf"));var X=R.next().value,M=R.next().value,W=function(){var Wo;return(Wo=D.data().storyItems)!=null?Wo:[]},z={},I=function(){return D.data().dismissButton},F=function(){var Wo;
return _.HL((Wo=_.A(I(),_.QX))==null?void 0:Wo.onTap)},G=_.dI("div"),V,e,r=!1,l=function(){var Wo;
(Wo=V)==null||Wo.cancel();V=U(Z()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});V.onfinish=function(){U(Z()).style.width="100%";var Sb=_.A(W()[Z()],gZb),VU,AS;Sb!=null&&Sb.foregroundAnimation&&((Sb==null?0:(VU=Sb.foregroundAnimation)==null?0:VU.url)||(Sb==null?0:(AS=Sb.foregroundAnimation)==null?0:AS.payload))||(Z()!==W().length-1?(t(Z()+1),l()):F()&&_.xC(F()))}},U=function(Wo){return G.value.children[Wo].children[0]},K=function(){for(var Wo=0;Wo<Z();Wo++)U(Wo).style.width=
"100%"};
R=_.F4(function(){r||(X()?M(!1):(Z()===W().length-1&&F()&&_.xC(F()),U(Z()).style.width="100%",Z()!==W().length-1&&(t(Z()+1),l())))});
var H=_.F4(function(){r||(X()?M(!1):(U(Z()).style.width="0%",Z()!==0?t(Z()-1):t(Z()),l()))}),c=function(){M(!0)},Q=function(){U(Z()).style.width="100%";
Z()!==W().length-1?(t(Z()+1),l()):F()&&_.xC(F())},E=_.F4(function(){r=!1;
e=setTimeout(function(){M(!0);r=!0},300)}),B=_.F4(function(){clearTimeout(e);
r&&X()&&M(!1)});
_.r2(function(){if(X()){var Wo;(Wo=V)==null||Wo.pause();var Sb;(Sb=z.lottieEl)==null||Sb.pause()}else{var VU;(VU=V)==null||VU.play();var AS;(AS=z.lottieEl)==null||AS.play()}},"DIHTEd");
_.r2(function(){K();Z()===Y()&&l()},"ze5F8b");
var O=function(){var Wo=F();Wo&&_.xC(Wo)};
_.$s(function(){K();l();window.addEventListener("yt-popup-closed",O)});
_.w2(function(){clearTimeout(e);window.removeEventListener("yt-popup-closed",O)});
return _.S("yt-stories-viewer-view-model",{class:_.e7("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.S("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.S("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":H,"on:mousedown":E,"on:mouseup":B,"on:mouseleave":B}),_.S("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":R,"on:mousedown":E,"on:mouseup":B,"on:mouseleave":B})),_.S("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.S(_.vK,{data:W},{storiesItemViewModel:function(Wo,Sb){var VU=Wo.data;return _.S(_.T,{cond:function(){return Math.abs(Sb()-Z())<=1},
then:function(){var AS={};return _.S("div",{class:_.e7("ytStoriesViewerViewModelStoryItem",(AS.ytStoriesViewerViewModelActiveStoryItem=function(){return Sb()===Z()},AS))},_.S(pcb,{data:VU,
pauseAutoNavigation:c,navigateToNextItemOnLottieComplete:Q,isVisible:function(){return Sb()===Z()},
animationRef:z}))}})}})),_.S("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:G},_.S(_.G6,{each:W},function(){return _.S("div",{class:"ytStoriesViewerViewModelProgressBar"},_.S("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.S("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.S(_.vK,{data:I},{buttonViewModel:_.TV})))},"Dh"),"yt-stories-viewer-view-model",{props:{data:_.cs}});_.at(_.RT(function(D){var Y=D.data;var R=_.dI("yt-gen-ai-feedback-form-view-model"),Z=[];return _.S("yt-gen-ai-feedback-form-view-model",{el:R,class:"ytGenAiFeedbackFormViewModelHost"},_.S(_.y_,{text:function(){return Y().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.S("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.S(_.vK,{data:function(){return Y().feedbackChips}},{toggleButtonViewModel:function(t){var X=t.data;
return _.S(_.JV,{data:X,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(M){var W=X();W=_.A(W,_.py);W=_.A(W==null?void 0:W.defaultButtonViewModel,_.QX).trackingParams;M?Z.push(W):(M=Z.indexOf(W),M>-1&&Z.splice(M,1))}})}})),_.S(_.y_,{text:function(){return Y().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.S("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.S(_.vK,{data:function(){return Y().submitButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){PfK(R.value,Z,Y().uniqueId)}})}}),_.S(_.vK,{data:function(){return Y().moreFeedbackButton}},{buttonViewModel:function(t){return _.S(_.TV,{data:t.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Eh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.cs},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var H2=function(){return _.N.apply(this,arguments)||this};
_.n(H2,_.N);H2.prototype.created=function(){rxK(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(TOz);var D=_.DH().resolve(_.OLt);D&&(D.container=this.ytPopupContainerBehavior);if(D=_.DH().resolve(_.y$))D.container=this.ytPopupContainerBehavior;if(D=_.DH().resolve(_.Nf)){var Y=this.ytPopupContainerBehavior;D.containerWasInjected?_.Jk(Error("ej")):D.container=Y}};
H2.prototype.ensurePopupBelowPlayer=function(D,Y){var R=_.DH().resolve(_.cD(_.Z4));if(!R||!R.isOnWatch()||!_.sm())return!1;R=R.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.w$().height>R+this.getPopupHeight(D,Y)?(D.style.top="auto",D.style.bottom="0px"):(D.style.top=R+"px",D.style.bottom="auto");return!0};
H2.prototype.getPopupHeight=function(D,Y){Y&&(D.cachedPopupHeight=0);if(!D.cachedPopupHeight){Y=0;var R=D.clientHeight,Z=window.getComputedStyle(D);Y+=parseInt(Z.marginTop,10);Y+=parseInt(Z.marginBottom,10);D.cachedPopupHeight=R+Y}return D.cachedPopupHeight};
H2.prototype.getElement=function(D){return document.createElement(D)};
_.q([_.v(kjK.YtPopupContainerBehavior),_.x("design:type",Object)],H2.prototype,"ytPopupContainerBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],H2.prototype,"ytComponentBehavior",void 0);_.q([_.h({disableElementRegistration:!0,is:"ytd-popup-container"})],H2);
_.L(H2,"ytd-popup-container",function(){if(wS0!==void 0)return wS0;var D=document.createElement("template");_.w(D,"\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");D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);return wS0=D},{mode:1});var gRT;var d4E={};d4E.YtLogYpcFlowCommandsBehavior=[_.Va.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(D){_.A(D,Sct)&&(D=_.A(D,Sct))&&(D.serializedTransactionFlowLoggingParams?_.yzU(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.iO("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.iO("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=D.serializedYpcPauseFlowLoggingParams)&&
_.iO("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams?(D=D.serializedYpcRefundFlowLoggingParams)&&XCh("YPC_EVENT_TYPE_START",D):D.serializedYpcDeactivateFlowLoggingParams?(D=D.serializedYpcDeactivateFlowLoggingParams)&&_.iO("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",D):D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(D=D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.iO("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",D))},
handleLogYpcFlowDismiss_:function(D){_.A(D,zuk)&&(D=_.A(D,zuk),D.serializedTransactionFlowLoggingParams?_.NOn(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.iO("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.iO("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=
D.serializedYpcPauseFlowLoggingParams)&&_.iO("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams&&(D=D.serializedYpcRefundFlowLoggingParams)&&XCh("YPC_EVENT_TYPE_CANCEL",D))}}];var imb={};imb.YtCancelRecurrenceBehavior=[_.Bs.YtComponentBehavior,_.ozY,{attached:function(){var D=this;uFK(this,function(Y,R){return D.ypcCancelRecurrenceHandler(Y,R)})},
ypcCancelRecurrenceHandler:function(D,Y){var R=this;if(!Y||!Y.ypcCancelRecurrenceEndpoint)return!1;if(!Y.ypcCancelRecurrenceEndpoint.params)return _.hQ(Error("zl")),!0;_.Pl(this.hostElement);var Z=_.ED.instance,t=_.DH().resolve(_.cD(_.Kn));Z&&_.g1(Z,Y)?_.d1(Z,Y).then(function(X){R.ypcCancelRecurrenceSuccess_(D,Y,{data:X})},function(X){R.ypcCancelRecurrenceFailure_(D,Y,X)}).thenCatch(function(){_.hQ(Error("Al"))}):t?t.requestDataForServiceEndpoint(Y).then(function(X){R.ypcCancelRecurrenceSuccess_(D,
Y,X)},function(X){R.ypcCancelRecurrenceFailure_(D,Y,X)}).thenCatch(function(){_.hQ(Error("Al"))}):_.hQ(Error("Bl"));
return!0},
ypcCancelRecurrenceSuccess_:function(D,Y,R){_.Q_(this.hostElement);R.data||(R={data:R});R.data&&R.data.actions&&_.Se(this.hostElement,R.data.actions,this.hostElement);R.data.messageRenderer?aiK(Y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(Y=Y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.iO("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",Y);_.MX(D,"yt-service-request-completed",R)},
ypcCancelRecurrenceFailure_:function(D,Y,R){_.Q_(this.hostElement);aiK(Y.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.MX(D,"yt-service-request-error",{error:R,params:[D,Y]})}}];var OmK=function(D,Y){_.Yn.call(this,Y)};
_.n(OmK,P$9);var cyu={};cyu.YtCompleteTransactionBehavior=[_.Bs.YtComponentBehavior,_.ozY,{attached:function(){var D=this;uFK(this,function(Y,R){return D.ypcCompleteTransactionHandler(Y,R)})},
completeTransaction:function(D,Y){var R=this;Y={payments_payload:window.btoa(Y.integratorData),buybucket_params:D.data.buybucketParams,offer_params:D.data.offerParams};var Z=_.DH().resolve(_.Kn),t=D.data.completeTransactionEndpoint,X=this.get("ypcCompleteTransactionEndpoint.actions",t);X&&_.Se(this.hostElement,X,this.hostElement);return(X=_.ED.instance)&&_.g1(X,t)?_.d1(X,t,Y).then(function(M){return!M||(M==null?0:M.error)?(M=R.get("data.serializedTransactionFlowLoggingParams",D),_.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
M))):{data:M}}).then(function(M){return R.handleCompleteTransactionSuccess_(M,D)},function(){return R.handleCompleteTransactionFailure_(D)}):Z.requestDataForServiceEndpoint(t,Y).then(function(M){return R.handleCompleteTransactionSuccess_(M,D)},function(){return R.handleCompleteTransactionFailure_(D)})},
handleCompleteTransactionSuccess_:function(D,Y){D.data||(D={data:D});if(D.data.messageRenderer)return _.lf(new OmK(D.data.messageRenderer));if(D.data.trackingParams){var R=_.K2(),Z=_.Ud();R&&Z&&_.Qk(R,Z,_.oT(D.data.trackingParams))}Y=this.get("data.serializedTransactionFlowLoggingParams",Y);ua0(Y);return _.TA(D)},
handleCompleteTransactionFailure_:function(D){D=this.get("data.serializedTransactionFlowLoggingParams",D);_.d$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D);return _.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D))},
ypcCompleteTransactionHandler:function(D,Y){var R=this;if(!Y.ypcCompleteTransactionEndpoint)return!1;if(!Y.ypcCompleteTransactionEndpoint.transactionParams)return _.hQ(Error("Cl")),!0;Y.ypcCompleteTransactionEndpoint&&Y.ypcCompleteTransactionEndpoint.gtmData&&_.kZ(Y.ypcCompleteTransactionEndpoint.gtmData);var Z=_.DH().resolve(_.cD(_.Kn));if(Z){_.Pl(this.hostElement);var t=_.ED.instance;t&&_.g1(t,Y)?_.d1(t,Y).then(function(X){return!X||(X==null?0:X.error)?(X=R.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
Y),_.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",X))):{data:X}}).then(function(X){_.MX(D,"yt-service-request-completed");
R.ypcCompleteTransactionSuccess_(Y,X)},function(){return R.ypcCompleteTransactionFailure_(Y)}):Z.requestDataForServiceEndpoint(Y).then(function(X){_.MX(D,"yt-service-request-completed");
R.ypcCompleteTransactionSuccess_(Y,X)},function(){return R.ypcCompleteTransactionFailure_(Y)})}return!0},
ypcCompleteTransactionSuccess_:function(D,Y){_.Q_(this.hostElement);Y.data||(Y={data:Y});_.CX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);Y.data.messageRenderer||Y.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(D):(_.kZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",D));Y.data.actions&&(D=nyz(Y.data.actions),Y=rjI(Y.data.actions),D.length&&_.zA(this.hostElement,
D),Y.length&&_.Se(this.hostElement,Y,this.hostElement))},
ypcCompleteTransactionFailure_:function(D){_.Q_(this.hostElement);_.CX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",D,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(D,Y,R){if(Y=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",Y))Y={serializedTransactionFlowLoggingParams:Y},R&&(Y.errorType=R),_.bo(D,Y),_.yj()}}];var DoK={};DoK.YtEndpointHandlerWithYpcBehavior=[_.ozY,_.Va.YtActionHandlerBehavior,[{openWalletDialog:function(D,Y,R,Z,t,X,M){var W=this,z=_.iq();Y=Y.replace(/-/g,"+").replace(/_/g,"/");var I=_.nX().get("hl");_.yDM(_.Ra(_.iX),Y,z.resolve,t,function(F){X&&X();z.reject(F)},I,function(F){return W.onServerBackendAnalyticEvent_(D,R,F)},this.onDialogClose_.bind(this),Z,M);
return z.promise},
openFixFlowDialog:function(D,Y,R,Z){D=D.replace(/-/g,"+").replace(/_/g,"/");_.Ra(_.iX).openFixFlowDialog(D,Y,R,Z)},
onDialogClose_:function(){_.CX(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(D,Y,R){_.MX(D,"yt-commerce-action-init-done");Y&&_.zA(this.hostElement,[Y,{backend_analytics:R}])}}],
_.Fh.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(D,Y){D=this.get("data.nativeFlowEndpoint",Y);Y=this.get("data.fallbackEndpoint",Y);D?_.zA(this.hostElement,[D]):Y&&_.MX(this.hostElement,"yt-navigate",{endpoint:Y})}}],
imb.YtCancelRecurrenceBehavior,cyu.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 D=this;uFK(this,function(Y,R,Z){return D.handleYPCEndpoint(Y,R,Z)});
this.ypcRegisterActionMapJobId_=_.Ak(_.yc,function(){D.registerActionMap(D.buyFlowActionMap_)})},
detached:function(){var D=this;_.yc.cancelJob(this.ypcRegisterActionMapJobId_);_.Ak(_.yc,function(){D.unregisterActionMap(D.buyFlowActionMap_)})},
handleYPCEndpoint:function(D,Y,R){var Z=Y.ypcGetCartEndpoint;if(Z){_.U7("commerce_transaction");var t=Z.gtmId;t&&_.J$(t);(Z=Z.gtmData)&&_.kZ(Z)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",Y)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(D,Y),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",Y)!=null?(this.handleYPCFixInstrumentEndpoint_(D,Y),!0):Y.ypcPauseSubscriptionCommand?(ci0(this.hostElement,D,Y,R),
!0):Y.ypcResumeSubscriptionCommand?(Rl9(this.hostElement,D,Y),!0):Y.getPaymentInstrumentsParamsCommand?(dIk(this.hostElement,D,Y),!0):Y.ypcHandleTransactionEndpoint?(ECk(this.hostElement,D,Y,R),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(D,Y){var R=this;_.KX("ttcr",void 0,"commerce_transaction");Y=Y.ypcGetCartEndpoint;var Z=Y.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,t=Z.encryptedPurchaseParams,X=Z.serializedTransactionFlowLoggingParams,M=Z.serializedPaymentsClientParams,W=this.createGetCartResponseFromParams_(Z,Y.offerParams,X);this.changeButtonState(D,!0);_.$B(this.openWalletDialog(D,t,Z.ypcLogWalletAnalyticDataEndpoint,X,function(){R.changeButtonState(D,!1)},function(){R.changeButtonState(D,
!1)},M).then(function(z){return R.handleBuyFlowCompleteCallback_(D,W,z)},function(){return R.handleOnLoadError(W)}).then(function(z){return void R.handlePostPurchaseSuccess_(D,W,z)},function(z){return void R.handlePostPurchaseError_(z)}),function(){R.changeButtonState(D,!1);
D instanceof Element&&_.MX(D,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(D,Y,R){var Z=D.completeTransactionEndpoint,t=D.handleTransactionEndpoint;Y={data:{offerParams:window.btoa(Y),serializedTransactionFlowLoggingParams:R}};t?Y.data.handleTransactionEndpoint=t:Y.data.completeTransactionEndpoint=Z;D.onCartDismissCommand&&(Y.data.onCartDismissCommand=D.onCartDismissCommand);return Y},
onGetCartServiceRequestCompleted_:function(D,Y){var R=this,Z=D.target;if(Y&&Y.data&&Y.data.messageRenderer)_.Q_(this.hostElement),this.handleMessageRenderer_(Y.data.messageRenderer),this.changeButtonState(Z,!1);else{var t=this.get("data.encryptedPurchaseParams",Y),X=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",Y),M=this.get("data.ypcLogWalletAnalyticDataEndpoint",Y),W=this.get("data.serializedPaymentsClientParams",Y),z=this.getLoggingParams_(Y);if(z||t||X)D.stopPropagation(),_.KX("ttcr",
void 0,"commerce_transaction"),t||_.Q_(this.hostElement),this.changeButtonState(Z,!1),X?_.CX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.JQ("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:X}}},this]):t&&(this.changeButtonState(Z,!0),D=null,D=this.openWalletDialog(Z,t,M,z,function(){_.Q_(R.hostElement);R.changeButtonState(Z,!1)},function(){_.Q_(R.hostElement);
R.changeButtonState(Z,!1)},W),_.$B(D.then(function(I){return R.handleBuyFlowCompleteCallback_(Z,Y,I)},function(){return R.handleOnLoadError(Y)}).then(function(I){return R.handlePostPurchaseSuccess_(Z,Y,I)},function(I){return R.handlePostPurchaseError_(I)}),function(){R.changeButtonState(Z,!1);
_.MX(Z,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(D,Y){Y&&Y.endpoint&&Y.endpoint.ypcGetCartEndpoint&&!Y.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",Y.endpoint.ypcGetCartEndpoint)&&_.Se(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",Y.endpoint.ypcGetCartEndpoint)],D.target),_.Pl(this.hostElement),this.changeButtonState(D.target,!0))},
onServiceRequestError_:function(D,Y){if(Y&&Y.params&&Y.params.length){Y=_.a(Y.params);for(var R=Y.next();!R.done;R=Y.next())if((R=R.value)&&R.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",R.ypcGetCartEndpoint)&&_.Se(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",R.ypcGetCartEndpoint)],D.target);_.Q_(this.hostElement);this.changeButtonState(D.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(D,Y,R){var Z=R.integratorData;return Z==null||Z===""||R.error!=null?(Z=this.getLoggingParams_(Y),String(R.error)==="-1"?(Y.data.onCartDismissCommand&&_.Se(this.hostElement,[Y.data.onCartDismissCommand],D),_.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z,!0))):_.lf(new ez("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z))):Y.data.handleTransactionEndpoint?gC9(this.hostElement,Y.data.handleTransactionEndpoint,{payments_payload:Z,funds_guarantee_callback_client_data:R.integratorClientCallbackData}):
this.completeTransaction(Y,R)},
handlePostPurchaseSuccess_:function(D,Y,R){Y=R.data;var Z=!1,t,X;if(Y&&((t=Y.command)==null?0:(X=t.commandExecutorCommand)==null?0:X.commands)){var M,W;t=(M=Y.command)==null?void 0:(W=M.commandExecutorCommand)==null?void 0:W.commands;for(M=0;M<t.length;M++)if(_.A(t[M],_.CuL)){Z=!0;break}}Z||(Y&&Y.gtmDatas&&Y.gtmDatas.length?_.kZ(Y.gtmDatas[0]):_.kZ('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));R.data&&R.data.actions&&(Y=nyz(R.data.actions),R=rjI(R.data.actions),Y.length&&
_.zA(this.hostElement,Y),R.length&&_.Se(this.hostElement,R,D))},
handlePostPurchaseError_:function(D){D&&D.payload&&D.payload.isUserDismiss||_.Nb(Error("El"))},
handleOnLoadError:function(D){D=this.getLoggingParams_(D);return _.lf(new ez("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",D))},
getLoggingParams_:function(D){return this.get("data.serializedTransactionFlowLoggingParams",D)},
handleMessageRenderer_:function(D){var Y=_.yL(D,"renderer"),R=_.JQ("openPopupConfig");Y==="confirmDialogRenderer"&&R&&_.CX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:R.popupTypeMap[Y],popup:D}},this])},
handleYPCFixInstrumentEndpoint_:function(D,Y){var R=this,Z=Y.ypcFixInstrumentEndpoint;Y=Z.encryptedFixInstrumentParameters;this.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(D,!0);this.openFixFlowDialog(Y,function(t,X){R.onFixFlowCompleteCallback_(Z,t,X)},function(){return R.changeButtonState(D,!1)},function(){R.changeButtonState(D,!1);
R.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(D,Y,R){var Z=_.mf("payments.business.integration.scenario.FixInstrument");if(Y==Z.IntegratorCallbackType.ON_COMPLETE){Y="FIX_FOP_EVENT_TYPE_CANCEL";var t=null;R.error!=null?R.error!=Z.OnCompleteCallbackError.USER_CANCELLED&&(_.Se(this.hostElement,[D.errorAction],this.hostElement),Y="FIX_FOP_EVENT_TYPE_FAILURE",t="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Se(this.hostElement,[D.successAction],this.hostElement),Y="FIX_FOP_EVENT_TYPE_SUCCESS");_.Se(this.hostElement,[D.onFinishAction],
this.hostElement);this.logFixFopEvent_(D,Y,t)}},
logFixFopEvent_:function(D,Y,R){(D=D.serializedFixFopLoggingParams)?(Y={eventType:Y,serializedFixFopLoggingParams:D},R!=null&&(Y.errorType=R),_.bo("fixFopFlow",Y),_.yj()):_.Nb(Error("Fl"))},
changeButtonState:function(D,Y){_.f("enable_ypc_spinners")&&D&&(D.is==="yt-button-renderer"||D.is==="ytd-button-renderer")&&(D.disabled=Y)}}];var YiI=function(D){this.JSC$32198_clientRoot=D;this.feedbackCollectorActionMap={"yt-help-dialog-requested":t7h,"yt-feedback-dialog-requested":ZBI,"yt-signal-action-help":stk,"yt-signal-action-send-feedback":XN9,"yt-send-feedback-action":aTK,"yt-user-feedback-endpoint":M7t};_.pI(_.Bm.getInstance(),this.feedbackCollectorActionMap,this.JSC$32198_clientRoot)},Rg0;var Zdb=function(D){this.JSC$32203_clientRoot=D;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":CqE.bind(null,this.JSC$32203_clientRoot),"yt-signal-action-delete-all-downloads":zlb,"yt-signal-action-delete-download":SDh,"yt-signal-action-delete-playlist-download":jtk,"yt-signal-action-install-pwa":elI,"yt-signal-action-refresh-downloads":V7h,"yt-offline-video-endpoint":nP0,"yt-offline-playlist-endpoint":wNK,"yt-update-local-app-setting-command":vPI,"yt-offline-orchestration-action-command":bBk,
"yt-signal-action-undo-delete-download":FIp,"yt-local-watch-history-command":lTI};_.pI(_.Bm.getInstance(),this.downloadManagerActionMap,this.JSC$32203_clientRoot);_.J6.instance=new _.J6},tTz;var x1=function(){var D=_.N.apply(this,arguments)||this;D.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_"};D.remoteApi_=null;return D};
_.n(x1,_.N);_.u=x1.prototype;
_.u.ready=function(){_.f("polymer_enable_mdx")&&(jX9({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.f("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.f("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.f("enable_cast_short_lived_lounge_token")}),_.Xn("yt-remote-connection-change",this.handleConnectionChange_,this),_.Xn("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=A7k())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.u.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.u.handleConnectionChange_=function(D){(this.mdxConnected=D)?(D=Gxt(),!D&&ahK()&&MNk()&&(D={key:"cast-selector-receiver",name:MNk()}),D=D.name):D=null;this.receiverName=D;_.OG(this.remoteApi_);(this.remoteApi_=A7k())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.u.handleReceiverAvailabilityChange_=function(){var D=FTt();ahK()&&_.FJ("yt-remote-cast-available")&&D.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=D.length>0};
_.u.handleRemoteQueueChange_=function(){var D=this.currentVideoId_,Y=this.currentListId_,R=wT(this.remoteApi_);this.currentVideoId_=R.videoId;this.currentListId_=R.listId;this.currentVideoId_&&_.CX(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.f("polymer_enable_mdx_queue")?this.currentListId_:null,D,Y])};
_.u.handleAddToQueueAction_=function(D){D=_.A(D,dxk);this.remoteApi_&&(D.videoId?this.remoteApi_.addVideo(D.videoId):D.playlistId&&this.remoteApi_.addPlaylist(D.playlistId))};
_.u.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.u.handleInsertInQueueAction_=function(D){D=_.A(D,icb);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$19665_insertVideo(D.videoId)};
_.u.handleRemoveFromQueueAction_=function(D){D=_.A(D,OcT);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$19665_removeVideo(D.videoId)};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],x1.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y(),_.x("design:type",Object)],x1.prototype,"appId",void 0);_.q([_.y(),_.x("design:type",Boolean)],x1.prototype,"mdxConnected",void 0);_.q([_.y(),_.x("design:type",Boolean)],x1.prototype,"receiverAvailable",void 0);_.q([_.y(),_.x("design:type",Object)],x1.prototype,"receiverName",void 0);_.q([_.y(),_.x("design:type",Object)],x1.prototype,"currentVideoId_",void 0);
_.q([_.y(),_.x("design:type",Object)],x1.prototype,"currentListId_",void 0);_.q([_.Lr({is:"yt-mdx-manager",disableElementRegistration:!0})],x1);_.L(x1,"yt-mdx-manager",void 0,{mode:2});var sSz;var Xah;var P2=function(){var D=_.N.apply(this,arguments)||this;D.APP_IDS={ytr:3,ytm:5};D.JSC$20884_timeoutId_=0;D.actionMap={"yt-open-create-family-dialog":"open"};return D};
_.n(P2,_.N);_.u=P2.prototype;_.u.created=function(){rxK(2200)};
_.u.detached=function(){this.observer_&&this.observer_.disconnect()};
_.u.open=function(D,Y){var R=this,Z=D.serializedYpcFamilyCreateLoggingParams;this.JSC$20884_timeoutId_=setTimeout(this.abort_.bind(this,D.postFlowErrorEndpoint,Z),3E4);Y&&(this.onReadyCallback_=Y);var t=_.aU(this.hostElement).querySelector("#unicorn-iframe");Z&&Z&&sbb("ypcFamilyCreateFlowStarted",Z);_.jhj("family_creation",function(){var X=_.mf("gapi.family_creation.render");_.mf("gapi.config.update")("iframes/family_creation/url",R.getFamilyCreationUrlWithUnicornParams_());var M=3;D.appId&&D.appId in
R.APP_IDS&&(M=R.APP_IDS[D.appId]);M={authUser:_.JQ("SESSION_INDEX")||0,clientId:M,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.JQ("HL"),initialflow:[4,5,6,7],m:R.isMobile?1:0,onFlowComplete:R.onUnicornFlowComplete_.bind(R,D.postFlowSuccessEndpoint,Z),onError:R.onUnicornFlowError_.bind(R,D.postFlowErrorEndpoint,Z),onReady:R.onUnicornFlowReady_.bind(R,D.referencePcidParams)};X(t,M)})};
_.u.close=function(){_.aU(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.u.onUnicornFlowComplete_=function(D,Y){this.close();Y&&Y&&sbb("ypcFamilyCreateFlowSucceeded",Y);_.MX(this.hostElement,"yt-navigate",{endpoint:D})};
_.u.onUnicornFlowError_=function(D,Y){this.close();Y&&sbb("ypcFamilyCreateFlowCancelled",Y);_.MX(this.hostElement,"yt-navigate",{endpoint:D})};
_.u.onUnicornFlowReady_=function(D){var Y=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();D&&_.mf("gapi.family_creation.setConfig")(0,D);this.observer_=new MutationObserver(function(){_.aU(Y.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.aU(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.aU(this.hostElement).querySelector("#dialog").open()};
_.u.getFamilyCreationUrlWithUnicornParams_=function(){return _.JQ("YTR_FAMILY_CREATION_URL")};
_.u.getCurrentUrl_=function(){return document.location.href};
_.u.abort_=function(D,Y){this.clearTimeout_();this.onUnicornFlowError_(D,Y)};
_.u.clearTimeout_=function(){clearTimeout(this.JSC$20884_timeoutId_)};
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],P2.prototype,"ytActionHandlerBehavior",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],P2.prototype,"isMobile",void 0);_.q([_.y(),_.x("design:type",Object)],P2.prototype,"onReadyCallback_",void 0);_.q([_.y(),_.x("design:type",Object)],P2.prototype,"observer_",void 0);_.q([_.Lr({is:"yt-create-family-dialog",disableElementRegistration:!0})],P2);
_.L(P2,"yt-create-family-dialog",function(){if(Xah===void 0){var D=document.createElement("template");_.w(D,'\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);var Y=D.content,R=Y.insertBefore;sSz===void 0&&(sSz=document.createElement("template"));var Z=sSz;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);Xah=D}D=Xah;return D},{mode:2});var uHK;var aEz;var Qp=function(){var D=_.N.apply(this,arguments)||this;D.STEP=1;D.BLOCK_ON=80;D.MIN_PROGESS=0;D.MAX_PROGESS=100;return D};
_.n(Qp,_.N);_.u=Qp.prototype;_.u.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.u.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));_.DH().addProvider({provide:OVk,useValue:this})};
_.u.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.u.finish=function(){var D=this;this.progress=this.MAX_PROGESS;Jp0(function(){D.progress==D.MAX_PROGESS&&(D.hostElement.hidden=!0)})};
_.u.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.YF.Object.defineProperties(Qp.prototype,{progress:{configurable:!0,enumerable:!0,set:function(D){this.progress_=D;var Y="scaleX("+D/this.MAX_PROGESS+")",R=_.aU(this.hostElement).querySelector("#progress").style;R.transform=Y;R.webkitTransform=Y;this.hostElement.setAttribute("aria-valuenow",String(D))},
get:function(){return this.progress_}}});
_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.q([_.Lr({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Qp);
_.L(Qp,"yt-page-navigation-progress",function(){if(aEz===void 0){var D=document.createElement("template");_.w(D,'\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');D.content.insertBefore(_.P().content.cloneNode(!0),
D.content.firstChild);var Y=D.content,R=Y.insertBefore;uHK===void 0&&(uHK=document.createElement("template"));var Z=uHK;R.call(Y,Z.content.cloneNode(!0),D.content.firstChild);aEz=D}D=aEz;return D},{mode:2});var MTk={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"},Ce0={"font-size":"12px","font-style":"italic"},WZK={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.hl9=function(){return _.C(function(D){_.V9(D)})};var zgK=_.RT(function(D){var Y=function(){return D.data().subtext},R={};
return _.S("snackbar-view-model",{class:_.e7("snackbarViewModelHost",D.className)},_.S("div",{class:_.e7("snackbarViewModelEngagementBarWrapper",D.className)},_.S(_.T,{cond:function(){return D.data().image},
then:function(Z){return _.S(_.Rt,{data:Z,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.S(_.T,{cond:function(){return D.data().imageContent},
then:function(){return _.S("div",{class:"snackbarViewModelAvatarContainer"},_.S(_.vK,{data:function(){return D.data().imageContent}},{decoratedAvatarViewModel:_.kk}))}}),_.S("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.S("div",{class:_.e7((R.snackbarViewModelTitle=!0,R.snackbarViewModelTitleWithSubtext=Y,R))},_.S(_.y_,{text:function(){return D.data().text}})),_.S(_.T,{cond:Y,
then:function(){return _.S("div",{class:"snackbarViewModelSubtext"},_.S(_.y_,{text:function(){return Y()}}))}})),_.S(_.T,{cond:function(){return D.data().buttons},
then:function(){return _.S("div",{class:"snackbarViewModelButtonClassWrapper"},_.S(_.vK,{data:function(){return D.data().buttons}},{buttonViewModel:function(Z){return _.S(_.TV,{data:Z.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:D.target})}}))}})))},"Fh");_.at(_.RT(function(){function D(H,c,Q){r(H);U(Q);V("in");F(!0);Y(H,c);M=setTimeout(function(){R()},c)}
function Y(H,c){var Q,E=(Q=H.text)==null?void 0:Q.content;H=_.hx(H.rendererContext);E&&(c={label:E,command:H,durationMs:c},_.DH().resolve(_.bO).enqueue(c))}
function R(H){V("out");H&&clearTimeout(M)}
function Z(){R(!0)}
function t(H){if(H){var c=H.snackbarViewModel,Q=H.durationMs,E=H.target;Q||(Q=3E3);c&&(H=_.DH().resolve(_.cD(_.r6)))&&H.enqueue({isOpened:I,open:function(){D(c,Q,E)},
close:R},0)}}
var X=_.io("snackbar-container"),M=void 0,W=_.a(_.ae(!1,void 0,"jJ4tBf")),z=W.next().value;W=W.next().value;var I=z,F=W;z=_.a(_.ae("out",void 0,"M6Rbpb"));var G=z.next().value,V=z.next().value;z=_.a(_.ae(void 0,void 0,"aFswib"));var e=z.next().value,r=z.next().value;z=_.a(_.ae(void 0,void 0,"mlWWhb"));var l=z.next().value,U=z.next().value,K=_.F4(function(){if(G()==="out"){F(!1);r(void 0);U(void 0);var H=_.DH().resolve(_.cD(_.r6));H&&KuI(H,0)}});
_.$s(function(){var H=_.DH().resolve(_.cD(_.nnp));H&&(H.showSnackbarFn=t,H.closeSnackbarFn=Z)});
return _.S("snackbar-container",{class:"ytSnackbarContainerHost",el:X},_.S(_.T,{cond:function(){return I()&&!!e()},
then:function(){var H={};return _.S("div",{class:_.e7("ytSnackbarContainerSnackbarContainer",(H.ytSnackbarContainerMobile=!1,H.ytSnackbarContainerPivotBar=function(){var c;return!((c=_.DH().resolve(_.cD(_.rSE)))==null||!c())},H.ytSnackbarContainerOpened=function(){return I()&&G()==="in"},H.ytSnackbarContainerClosed=function(){return I()&&G()==="out"},H)),
"on:animationend":K},_.S(zgK,{data:function(){return e()},
target:function(){return l()}}))}}))},"Gh"),"snackbar-container");_.at(_.of7,"yt-tooltip");_.at(_.RT(function(){var D=_.qW(_.DMr);return _.S("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var Y;return(Y=D())==null?void 0:Y.announcement})},"Hh"),"yt-ephemeral-actions");var RFK=new Map;var LB0=function(D,Y){var R=this;this.handleError=D;this.logEventInternal=Y;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){R.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
LB0.prototype.logError=function(D){this.handleError(D)};
LB0.prototype.logEvent=function(D,Y){switch(D){case "IDB_DATA_CORRUPTED":_.f("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",Y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",Y);break;case "IS_SUPPORTED_COMPLETED":_.f("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",Y);break;case "QUOTA_EXCEEDED":SiE(this,Y);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",Y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":D=Object.assign({},Y,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",D)}};
var SiE=function(D,Y){_.lO.getInstance().estimate().then(function(R){R=Object.assign({},Y,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:tGt(R==null?void 0:R.usage),deviceStorageQuotaMbytes:tGt(R==null?void 0:R.quota)});D.logEventInternal("idbQuotaExceeded",R)})};var Tak=_.RT(function(D){var Y=_.dI("yt-draggable"),R=D.onDrag,Z=D.onDragStart,t=D.onDragEnd,X=_.YC(D,{allowClicks:!1,dragThreshold:5}),M=X.dragThreshold,W=X.allowClicks;D=X.children;X=X.className;var z=void 0,I=void 0,F=new _.lm(0,0),G=!1;_.$s(function(){z=new _.Lf(Y.value);I=new _.t5(e);V(z,I);if(W()){_.iv_(z,M());var l;(l=Y.value)==null||l.addEventListener("click",r,{capture:!0})}_.w2(function(){var U;(U=z)==null||U.dispose();if(W()){var K;(K=Y.value)==null||K.removeEventListener("click",r,{capture:!0})}})});
var V=function(l,U){_.yu(l,"earlycancel",function(){W()&&(G=!1)});
_.yu(l,"start",function(K){Z==null||Z(K);K.defaultPrevented||W()&&(G=!0)});
_.yu(l,"beforedrag",function(K){z&&I&&(K.preventDefault(),F=new _.lm(K.clientX-z.startX,K.clientY-z.startY),I.start())});
_.yu(l,"end",function(){U.stop();t==null||t();F=new _.lm(0,0)})},e=function(){F&&R(F)},r=function(l){G&&(G=!1,l.stopPropagation(),l.preventDefault())};
return _.S("yt-draggable",{el:Y,class:_.e7("ytDraggableComponentHost",X)},D)},"Ih");var jSu=_.RT(function(D){var Y=_.a(_.ae(0,void 0,"CvAwBd")),R=Y.next().value,Z=Y.next().value;Y=function(t){var X={},M={};return _.S(Tak,{className:_.e7("ytdMiniplayerComponentResizer",(X.ytdMiniplayerComponentResizerDisabled=function(){return t===D.horizontalAlignment()||t===D.verticalAlignment()},X.ytdMiniplayerComponentResizerNorth=t==="north",X.ytdMiniplayerComponentResizerEast=t==="east",X.ytdMiniplayerComponentResizerSouth=t==="south",X.ytdMiniplayerComponentResizerWest=t==="west",X)),
onDragStart:function(){Z(D.currentMiniplayerSize());if(D.onResizeStart)D.onResizeStart()},
onDrag:function(W){t!=="north"&&t!=="west"||W.scale(-1);var z;W=(z=t==="north"||t==="south")?W.y:W.x;var I=D.currentAspectRatio();z&&I>=1?W*=I:!z&&I<1&&(W/=I);z=W;D.onResize(R()+z)}},_.S("div",{class:_.e7("ytdMiniplayerComponentResizerCorner",(M.ytdMiniplayerComponentResizerNorthCorner=t==="north",M.ytdMiniplayerComponentResizerEastCorner=t==="east",M.ytdMiniplayerComponentResizerSouthCorner=t==="south",M.ytdMiniplayerComponentResizerWestCorner=t==="west",M))}))};
return _.S("div",{class:"ytdMiniplayerComponentResizers"},Y("north"),Y("east"),Y("south"),Y("west"))},"Jh");var IEK=16/9;_.at(_.RT(function(){var D=_.dI("ytd-miniplayer"),Y=_.a(_.ae(new _.FL(NaN,NaN),void 0,"GNXZTe")),R=Y.next().value,Z=Y.next().value;Y=_.a(_.ae(!1,void 0,"XqI9xc"));var t=Y.next().value,X=Y.next().value;Y=_.a(_.ae(!1,void 0,"k3iLGe"));var M=Y.next().value,W=Y.next().value;Y=_.a(_.ae(!1,void 0,"ApjQ9b"));var z=Y.next().value,I=Y.next().value;Y=_.a(_.ae(!1,void 0,"PzlhGe"));var F=Y.next().value,G=Y.next().value;Y=_.a(_.ae(!1,void 0,"pm6fl"));var V=Y.next().value,e=Y.next().value;Y=_.a(_.ae(!1,void 0,
"xQrL1e"));var r=Y.next().value,l=Y.next().value;Y=_.a(_.ae(IEK,void 0,"NcrWZb"));var U=Y.next().value,K=Y.next().value,H=_.a(_.ae(!1,void 0,"e5rxBc"));Y=H.next().value;var c=H.next().value;H=_.a(_.ae(!1,void 0,"uZtCde"));var Q=H.next().value,E=H.next().value;H=_.a(_.ae(void 0,void 0,"wKFvEe"));var B=H.next().value,O=H.next().value;H=_.a(_.ae(_.JQ("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var Wo=H.next().value,Sb=H.next().value;H=_.a(_.ae("south",void 0,"QXcssb"));var VU=H.next().value,
AS=H.next().value;H=_.a(_.ae(400,void 0,"Fr8gSb"));var nM=H.next().value,Ho=H.next().value,KM=_.DH().resolve(_.mL).miniplayerPropSignalMap[0],Xb=KM.data,kE=KM.externalPlaylistData;H=KM.toastData;var SD=KM.playabilityStatus,co=KM.isReadyToResume,GE=KM.isDisabled,TE=KM.watchWhile,yV=KM.playerVe,vu=KM.expandVe,dz=KM.closeVe,sy=KM.readyToResumeVe,D_=KM.readyToResumeCloseVe,fL=KM.repositionVe,zT=KM.resizeVe;KM=_.a(_.fB(co));var eD=KM.next().value,YK=KM.next().value,RK=!1,Dp=!1,az;_.$s(function(){Z(_.w$());
D.value.addEventListener("animationend",function(H4){H4.target===D.value&&(e(!1),l(!1))});
CIu(D.value)});
_.gI("yt-window-resized",function(H4){H4&&Z(H4)});
var EL=function(){az&&K(az.getVideoAspectRatio())},FE=function(){if(az){var H4=az.getPlayerState()===1;
eD()&&H4&&YK(!1)}},v4=function(){var H4=vu();
if(H4){var mh=_.K2(3);mh&&_.dC(mh,H4)}},oz=function(){var H4=dz(),mh=D_();
H4&&_.dC(_.K2(3),H4);co()&&mh&&_.dC(_.K2(3),mh)};
_.gI("yt-activate-miniplayer",function(H4){var mh;return _.C(function(QI){if(QI.nextAddress==1)return t()?QI.return():QI.yield((mh=_.DH().resolve(_.mL).getPlayerElement())==null?void 0:mh.getPlayerPromise(),2);az=QI.yieldResult;if(!az)return QI.return();!Q()&&_.f("kevlar_watch_while_v2")&&(AS(H4&&!_.f("kevlar_watch_while_bottom_align")?"north":"south"),Sb(_.JQ("HTML_DIR")==="rtl"?"west":"east"));var aJ=az;aJ.addEventListener("onVideoDataChange",EL);aJ.addEventListener("onStateChange",FE);aJ.addEventListener("onExpandMiniplayer",
v4);aJ.addEventListener("onCloseMiniplayer",oz);K(az.getVideoAspectRatio());X(!0);MGh()||e(!0);_.V9(QI)})});
_.gI("yt-deactivate-miniplayer",function(H4){return _.C(function(mh){if(!t())return mh.return();X(!1);YK(!1);l(H4);G(!1);W(!1);if(az){var QI=az;QI.removeEventListener("onVideoDataChange",EL);QI.removeEventListener("onStateChange",FE);QI.removeEventListener("onExpandMiniplayer",v4);QI.removeEventListener("onCloseMiniplayer",oz)}MGh()||e(!0);_.V9(mh)})});
var e0=function(){return!(TE()&&_.f("kevlar_watch_while_modern"))},Cj=function(){var H4;
return!((H4=kE())==null||!H4.contents)},j0=function(){var H4=nM();
var mh=R();mh=Math.min(Math.min(mh.width,mh.height)-32,720);var QI=U(),aJ=e0(),ZO=Cj()&&M(),TI=Math.min(H4,mh);H4=new _.FL(192,aJ?116:192);QI=new _.FL(ZO?IEK:QI,1);TI=new _.FL(TI,aJ?TI-76:TI);TI=QI.aspectRatio()>TI.aspectRatio()?TI.width/QI.width:TI.height/QI.height;QI=QI.scale(TI);H4.width<=QI.width&&H4.height<=QI.height||(H4=QI.aspectRatio()<=H4.aspectRatio()?H4.width/QI.width:H4.height/QI.height,QI.scale(H4),QI.width=Math.min(QI.width,mh),QI.height=Math.min(QI.height,mh));return new _.FL(QI.width,
_.UR(192,QI.height+Tqu(aJ,ZO),720))},oI=function(){var H4=j0(),mh=e0(),QI=Cj()&&M();
return new _.FL(H4.width,H4.height-Tqu(mh,QI))},eY=function(){var H4=function(mh){mh.target===D.value&&F()&&(G(!1),D.value.removeEventListener("transitionend",H4))};
MGh()||(D.value.addEventListener("transitionend",H4),G(!0));W(!M())};
_.r2(function(){var H4=yV(),mh=_.K2(3),QI=_.Ud(3);if(mh&&QI&&H4){_.Qk(mh,QI,H4);QI=fL();var aJ=zT(),ZO=vu(),TI=dz(),E1=D_();ZO&&TI&&E1&&(_.BC(mh,H4,[ZO,TI,E1]),_.E7(mh,[ZO,TI]));QI&&aJ&&_.BC(mh,H4,[QI,aJ])}},"Snz6Ld");
_.r2(function(){var H4=sy();if(H4){var mh=_.K2(0),QI=_.Ud(0);mh&&QI&&(_.Qk(mh,QI,H4),_.E7(mh,[H4]))}},"X1FpHd");
KM={};return _.S("ytd-miniplayer",{el:D,class:_.e7("ytdMiniplayerComponentHost",(KM.ytdMiniplayerComponentVisible=function(){return t()||V()},KM.ytdMiniplayerComponentAnimatingSnap=z,KM.ytdMiniplayerComponentAnimatingPlaylistExpand=F,KM.ytdMiniplayerComponentAnimatingFade=V,KM),function(){if(V()){var H4=VU();
var mh=t(),QI=r();H4=mh?H4==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":QI?H4==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":H4==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else H4="";return H4}),
style:_.Ap({top:function(){return VU()==="north"?"16px":""},
right:function(){return Wo()==="east"?"16px":""},
bottom:function(){return VU()==="south"?"16px":""},
left:function(){return Wo()==="west"?"16px":""},
width:function(){return j0().width+"px"},
height:function(){return j0().height+"px"},
transform:function(){var H4=B();return H4?"translate("+H4.x+"px, "+H4.y+"px)":""}})},_.S("div",{class:"ytdMiniplayerComponentContent"},_.S(Tak,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(H4){var mh=SmK(Wo(),VU(),R(),j0(),B()),QI=oI();Math.abs(H4.clientY-(mh.y+QI.height))>15?(c(!0),H4=_.K2(3),mh=fL(),RK||(RK=!0,H4&&mh&&_.E7(H4,[mh])),H4&&mh&&_.dC(H4,mh)):H4.preventDefault()},
onDrag:function(H4){O(H4)},
onDragEnd:function(){var H4=Wpk(SmK(Wo(),VU(),R(),j0(),B()),R(),j0()),mh=zF9(Wo(),VU(),R(),j0()),QI=zF9(H4.horizontalAlignment,H4.verticalAlignment,R(),j0());QI=new _.lm(QI.x-mh.x,QI.y-mh.y);var aJ;mh=mh.y+(((aJ=B())==null?void 0:aJ.y)||0)+j0().height/2;var ZO=function(){Wo()===H4.horizontalAlignment&&VU()===H4.verticalAlignment||E(!0);Sb(H4.horizontalAlignment);AS(H4.verticalAlignment);O(void 0)},TI=function(E1){E1.target===D.value&&z()&&(I(!1),ZO(),D.value.removeEventListener("transitionend",TI))};
c(!1);VU()==="south"&&mh>R().height?(ZO(),_.DH().resolve(_.mL).close()):(D.value.addEventListener("transitionend",TI),I(!0),O(QI))}},_.S(_.T,{cond:t,
then:function(){return _.S(_.Uc9,{isDisabled:GE,playabilityStatus:SD,size:oI})}}),_.S(_.T,{cond:e0,
then:function(){return _.S(_.JFu,{isReadyToResume:eD,data:Xb,expanded:M,onExpandClick:eY,playlistData:kE})}}),_.S(_.T,{cond:Y,
then:function(){return _.S("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.S(_.T,{cond:function(){return Cj()&&M()||F()},
then:function(){return _.S(_.JME,{className:"ytdMiniplayerComponentPlaylistPanel",data:kE,hideHeaderText:!0,withinMiniplayer:!0})}}),_.S("div",{class:"ytdMiniplayerComponentToast"},_.S(_.K_K,{toastData:H}))),_.S(jSu,{onResize:function(H4){Ho(_.UR(192,H4,720))},
onResizeStart:function(){var H4=_.K2(3),mh=zT();Dp||(Dp=!0,H4&&mh&&_.E7(H4,[mh]));H4&&mh&&_.dC(H4,mh)},
currentAspectRatio:U,currentMiniplayerSize:nM,horizontalAlignment:Wo,verticalAlignment:VU}))},"Kh"),"ytd-miniplayer",{});var B2=function(){var D=_.N.apply(this,arguments)||this;D.tabGesturesIsActive=!1;D.deprecateFullerscreenUi=_.f("web_watch_fullerscreen_deprecation_ui");D.hasDelegation=!1;D.darkerDarkTheme=_.f("web_darker_dark_theme");D.isFrostedGlassInitialized=!1;D.frostedGlassExp=_.f("web_frosted_glass");D.mastheadHiddenFocusWithinKillswitch=_.f("web_masthead_hidden_focus_within_killswitch");D.clientOnlyWizTooltipsEnabled=_.f("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");D.scrollAtTop=
!0;D.guideScrollTop=0;D.isTheaterModeSession=_.ks("START_IN_THEATER_MODE");D.iMaxTheaterMode=_.f("web_watch_imax_theater_mode");D.isFullWindowSession=_.ks("START_IN_FULL_WINDOW_MODE");D.hasCreateFamilyDialog=!1;D.mastheadHeight=56;D.networkStatusManager=new _.xQ;D.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"};D.dynamicActionMap={"yt-run-attestation-command":function(Y){var R=_.Vr7.instance,Z=_.A(Y,_.MUU);return Z?_.f("use_rta_manager_for_async")&&
rNk()?S0z(R,Z,Y.clickTrackingParams):zIk(R,Z,Y.clickTrackingParams):_.lf(Error("mi"))}};
D.isFrostedGlassDisabled=!1;D.isChannelOrPlaylistPage=!1;return D};
_.n(B2,_.N);_.u=B2.prototype;_.u.created=function(){var D=_.DH();_.f("kevlar_clear_duplicate_pref_cookie")&&_.Ak(_.yc,function(){var Y=_.FW.get("PREF");Y&&!/f\d=/.test(Y)&&(Y=_.XW("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=Y?"PREF=null;domain="+Y+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.f("gzip_gel_with_worker")&&_.brj();_.f("jspb_serialize_with_worker")&&gMk();_.f("web_worker_availability_check")&&ZHT();_.f("nwl_init_killswitch")||pyt().then(function(){_.yc.addLowPriorityJob(jU0)});
this.pageManagerAttachedPromise=_.iq();this.ytdAppBehavior.loadDepsPromise=_.w3([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.gq(this.onThrottledScroll,200,this);_.f("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);m79();Hoh=!!_.mf("ytappsettings.initialized");y1=_.mf("ytappsettings.previousValue");A5k=_.mf("ytappsettings.previousSnapshotTime");Hoh||(Hoh=!0,nFh());eJE();AjK();_.l1("DEFERRED_DETACH",
_.f("kevlar_tuner_should_defer_detach"));_.l1("REUSE_COMPONENTS",!0);_.l1("STAMPER_STABLE_LIST",!0);_.l1("SCHEDULED_LAZY_LIST",!0);_.l1("openPopupConfig",SBK);_.l1("useClickHandler",!0);_.f("kevlar_shell_cleanup")&&_.yc.addLowPriorityJob(y5t.bind(this,_.ZU.caches));_.ks("IS_SHELL_LOAD")&&_.k8({shellStartupDurationMs:Math.round((0,_.DO)()-_.bi())});HBz(this.networkStatusManager);_.f("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",kfz(MTk)),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!",
kfz(Ce0)),console.log("%cVisit http://go/join-youtube-web to apply today.",kfz(WZK)));_.NPK(D.resolve(_.vW),1E3)};
_.u.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var D=sR0();D&&!_.f("external_fullscreen_killswitch")&&document.addEventListener(D,this.setFullscreen.bind(this));(D=window.matchMedia("(prefers-color-scheme: dark)"))&&D.addEventListener&&D.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.u.attached=function(){var D=this;_.Q0().processSignal("ci");_.f("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.eWy?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.z3(_.UFi(),"SUCCESS");this.updateIconSet();_.Xa(this.guideInnerContent,!1);_.bB().initVisibilityObserver();this.guideService.guideElement=this.guide;var Y=document.createElement("ytd-miniplayer"),R=_.aU(this.hostElement).querySelector("#content");
_.aU(this.hostElement).insertBefore(Y,R);_.Q0().processSignal("ma");_.DH().resolve(_.mL).init(Y);_.ks("IS_SHELL_LOAD")&&(R=document.createElement("ytd-network-status-banner"),_.aU(this.hostElement).insertBefore(R,Y));_.f("kevlar_right_click_on_lockups")&&_.Qm._onCaptureClick&&document.addEventListener("contextmenu",_.Qm._onCaptureClick.bind(_.Qm),!0);var Z=function(){var t=_.sc("yt-page-navigation-progress");_.aU(D.hostElement).appendChild(t)};
setTimeout(function(){_.Q0().parkOrScheduleJob(Z,0,"eocs",16)},0);
_.f("service_worker_push_enabled")&&_.Ak(_.yc,teu);_.pI(_.Bm.getInstance(),this.dynamicActionMap,this.hostElement);_.MX(this.hostElement,"ytd-app-attached");_.Q0().processSignal("aa");eop(this.hostElement);_.ix("gapi.load",_.jhj);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Ak(_.yc,
function(){var t=document.createElement("ytd-video-preview");_.aU(_.aU(D.hostElement).querySelector("#video-preview")).appendChild(t)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Ak(_.yc,function(){LI9();D.registerWithViewTransitionManager()});
if(_.lX()&&this.isAppDarkTheme()!==_.yb())this.onDarkModeToggledAction();else Y=_.N3()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==Y&&(_.f("enable_dark_theme_only_on_shorts")?_.pn(_.f("enable_dark_theme_only_on_shorts_control")?window.location.href:_.BD(window.location.href,{theme:"dark"})):_.Jk(new _.AT("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Fek=new IIT(this.hostElement)),tTz=new Zdb(this.hostElement),Rg0=new YiI(this.hostElement),Ke9=new ULK(this.hostElement)};
_.u.getThemeSettingsToLog=function(){var D=_.N3()==="USER_INTERFACE_THEME_DARK";D=_.lX()?_.yb()?"os-dark":"os-light":D?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:D,cookiesEnabled:_.Vf()}};
_.u.detached=function(){_.ui(this.guideInnerContent);_.yc.cancelJob(v9);v9=0;_.yc.cancelJob(b2);b2=0;_.xIo(fa9);fa9.length=0;FUI=_.C6b=null;_.bB().dispose();_.f("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.E9(_.Bm.getInstance(),Fek.playlistHandlerActionMap,Fek.JSC$31899_clientRoot);_.E9(_.Bm.getInstance(),tTz.downloadManagerActionMap,tTz.JSC$32203_clientRoot);_.E9(_.Bm.getInstance(),Rg0.feedbackCollectorActionMap,Rg0.JSC$32198_clientRoot);
for(var D=_.a(Ke9.eventListeners),Y=D.next();!Y.done;Y=D.next()){var R=_.a(Y.value);Y=R.next().value;R=R.next().value;R=_.a(R);for(var Z=R.next();!Z.done;Z=R.next()){var t=_.a(Z.value);Z=t.next().value;t=t.next().value;Y.removeEventListener(Z,t)}}_.E9(_.Bm.getInstance(),Ke9.autonavPauseActionMap,Ke9.JSC$19846_clientRoot)};
_.u.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.nX().getFlag(186)};
_.u.computeIsInlinePreviewEnabled=function(D,Y,R){return!R&&_.vwK({miniplayerIsActive:D,miniplayerPlaybackState:Y})};
_.u.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.u0({type:"SET_FROSTED_GLASS_MODE",payload:!_.f("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"}))};
_.u.computeIsFrostedGlassDisabled=function(D,Y,R,Z){return D||Y||R||Z&&_.f("web_frosted_glass_disable_watch")};
_.u.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.f("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.u.computeIsHomePage=function(D,Y){if(!D||Y==null||!Y.endpoint)return!1;var R;return((R=_.A(Y.endpoint,_.A6))==null?void 0:R.browseId)==="FEwhat_to_watch"};
_.u.updateIsChannelOrPlaylistPage=function(){if(_.f("web_frosted_glass")){var D,Y,R=(Y=(D=_.DH().resolve(_.cD(_.Z4)))==null?void 0:D.getCurrentPage())==null?void 0:Y.pageSubtype;this.isChannelOrPlaylistPage=R?["channel","channels","playlist"].includes(R):!1}};
_.u.scheduleFrostedGlassInitialization=function(){var D=this;_.f("web_frosted_glass")&&_.Q0().parkOrScheduleJob(function(){D.isFrostedGlassInitialized=!0},0,_.OZ(["eocs",
"cr"]),300)};
_.u.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.s4L(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.u0({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.u0({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.u.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(lFI(!0))};
_.u.onYtSignalActionRequestPersistentStorage=function(){if(!_.f("request_persistent_storage_killswitch")){var D=_.DH().resolve(_.SzK);D.cachedPersistStatePromise||(D.cachedPersistStatePromise=plk())}};
_.u.handleYtChannelCreationFormEndpoints=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.u.handleShowEngagementPanelEndpoint=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.u.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(lFI(!1))};
_.u.initIconDefs=function(D,Y){var R=document.createElement("iron-iconset-svg");R.name=D;D=document.createElementNS("http://www.w3.org/2000/svg","svg");R.appendChild(D);D.appendChild(Y);document.body.appendChild(R);return R};
_.u.onWindowResized=function(){_.CX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var D=_.Ic1.getInstance();D.documentWidth_=document.body.clientWidth;mPK(D)};
_.u.onWindowScrolled=function(){var D=_.DH().resolve(_.Z4).getCurrentPage();if(D!=null&&D.getScrollTop){var Y=this.ytdReduxBehavior,R=Y.dispatch;D=D.getScrollTop()<=0;R.call(Y,_.u0({type:"SET_SCROLL_AT_TOP",payload:D}))}};
_.u.guideIsVisibleButNotPersistentSelectorChanged=function(){var D=_.DH().resolve(_.Z4).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=D.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"),
D.setScrollTop(this.guideScrollTop));_.WC(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.u.getCurrentPageScrollableElementType=function(){var D=_.DH().resolve(_.Z4).getCurrentPage();if(D&&D.getPageScrollingElement())return D.getPageScrollingElement().nodeName};
_.u.observeGuideVisibility=function(){var D=_.Ic1.getInstance(),Y=this.miniGuideVisible;D.guidePersistentAndVisible_=this.guidePersistentAndVisible;D.miniGuideVisible_=Y;mPK(D)};
_.u.handleEduDismissAction=function(D){D&&D.eduDismissAction&&(_.CX(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Ws7.getInstance(),_.t$.set(D.eduDismissAction.key+"-dismissed",!0))};
_.u.handleEduImpressionAction=function(D){if(D&&D.eduImpressionAction){var Y=_.Ws7.getInstance();D=D.eduImpressionAction.key;Y.JSC$12923_eduDisplayedThisLoad_[_.C8E[D].setKey||D]=!0;_.t$.set(D+"-impression",parseInt(_.t$.get(D+"-impression")||0,10)+1)}};
_.u.onYtSignalActionConfirmMentionsEdu=function(){_.CX(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.uB.getInstance();_.XJ.set("edu-dismissed",!0)};
_.u.onYtSignalActionRecordMentionsEduImpression=function(){_.uB.getInstance();var D=_.XJ.set,Y=parseInt(_.XJ.get("edu-impressions"),10);D.call(_.XJ,"edu-impressions",(isFinite(Y)?Y:0)+1)};
_.u.onYtPageManagerAttached=function(D){var Y;((Y=_.cG(D))==null?void 0:Y.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.u.onInvokeInstrumentManagerAction=function(D,Y){a4I(Y,D)};
_.u.updateIconSet=function(){var D=this.hostElement.querySelector("#masthead");if(D){var Y=_.MB(D),R=Y.querySelector("g#yt-logo-updated");R&&(D=document.createElementNS("http://www.w3.org/2000/svg","defs"),D.appendChild(R.cloneNode(!0)),(Y=Y.querySelector("g#yt-logo-red-updated"))&&D.appendChild(Y.cloneNode(!0)),this.initIconDefs("yt-logos-ext",D))}};
_.u.updateMastheadData=function(){var D=this,Y,R,Z,t,X;return _.C(function(M){if(M.nextAddress==1){Y=D.data;R=D.hostElement.querySelector("#masthead");if(!R)return M.return();_.cy(D,function(){R.data=D.topbarData});
if(!D.get("response.topbar",Y)||D.get("response.topbar.responseContext.maxAgeSeconds",Y)===0)return M.jumpTo(0);if(Z=_.DH().resolve(_.uO))return M.yield(Z(),6);t=_.DH().resolve(_.Sm);return M.yield(t.put("service:topbar:fallback",new _.Tx({innertubeResponse:D.get("response.topbar",Y)})),0)}return(X=M.yieldResult)?M.yield(X.put("service:topbar:fallback",new _.Tx({innertubeResponse:D.get("response.topbar",Y)})),0):M.jumpTo(0)})};
_.u.computeTopbarData=function(D){if(!D)return null;var Y;return this.isShortsPage&&this.topbarData&&!_.A((Y=D.response)==null?void 0:Y.topbar,K0b)?this.topbarData:D.response&&"topbar"in D.response?_.A(D.response.topbar,K0b)||null:null};
_.u.onSetTheaterModeEnabled=function(D,Y){this.isTheaterModeSession=Y.enabled;this.setTheaterModeStyles(Y.enabled)};
_.u.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.u.onDarkModeToggledAction=function(){var D=_.zZ(window.location.href);if(!_.e8y(D)){(D=!!_.QL(window.location.href).themeRefresh)&&_.Jk(new _.AT("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!D){nFh();D={themeRefresh:1};var Y=_.DH().resolve(_.Z4);if(Y.isOnWatch()){var R,Z;Y=((R=Y.getPlayerFromWatch())==null?void 0:(Z=R.getPlayer())==null?void 0:Z.getCurrentTime())||0;Y>=1&&(D.time_continue=Math.floor(Y))}_.Vf()||_.N3()!=="USER_INTERFACE_THEME_DARK"||(D.theme="dark");_.pn(_.BD(window.location.href,
D))}_.f("web_appshell_refresh_trigger")&&_.ZU.caches&&this.refreshAppShellResponse();R=_.BO(window.location.href);_.F1(_.DH().resolve(_.Gx),_.Zi(R,"theme"))}};
_.u.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.u.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.u.onPlayerFullscreen=function(D){_.t4();this.playerFullscreen=D};
_.u.setRestrictedMode=function(D){var Y=_.nX();_.rC(0,58,D);Y.save();_.DH().resolve(_.o8).reload()};
_.u.onPageChanged=function(D){D.detail.newPageType==="ytd-watch-flexy"||D.detail.newPageType==="ytd-watch-fixie"||D.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.y4("WEB_PAGE_TYPE_WATCH")):D.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.y4("WEB_PAGE_TYPE_SHORTS")):D.detail.newPageType==="ytd-browse"&&D.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.y4("WEB_PAGE_TYPE_MINI_APP")):_.f("web_frosted_glass")&&D.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.y4("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.y4("WEB_PAGE_TYPE_UNKNOWN"));D.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.u.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.u.onGuideToggleTap=function(){_.MX(this.hostElement,"yt-guide-toggle")};
_.u.onGuideToggleHover=function(){_.MX(this.hostElement,"yt-guide-hover")};
_.u.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.u.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.u.setMastheadTheme=function(){var D=_.MB(this.hostElement).querySelector("#masthead");D&&(D.dark=D.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),D.isDarkThemeForced=!1)};
_.u.onRequestPanelModeChange=function(D,Y){this.hideHeaderShadow=Y.mode!=="seamed"};
_.u.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.u.onDrawerIronSelect=function(D){_.cG(D).id==="guide"&&this.processDrawerIronSelect()};
_.u.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var D="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(D="opened"));_.MX(this.hostElement,"yt-autonav-pause-guide-"+D)};
_.u.onAddElementToApp=function(D){_.aU(this.hostElement).appendChild(D.detail)};
_.u.onThrottledScroll=function(){var D=_.DH().resolve(_.Z4).getCurrentPage();D&&(this.scrollAtTop=D.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.u.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.u.setFullscreen=function(){if(_.f("external_fullscreen")||!this.isWatchPage){var D=_.f("kevlar_fullerscreen_root_only_killswitch")?!!_.t4():!!_.t4()&&_.t4()===document.documentElement;D=(this.isWatchPage||_.f("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(D||this.isFullWindowSession);this.fullscreen!==D&&((this.fullscreen=D)&&_.WC(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Dl().dispatch(_.gkY(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.CX(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.u.setFullscreenLoggingForShorts=function(D){var Y,R,Z;return _.C(function(t){if(t.nextAddress==1)return t.yield((Y=_.sm())==null?void 0:Y.getPlayerPromise(),2);R=t.yieldResult;(Z=R)==null||Z.setAppFullscreen(D);_.V9(t)})};
_.u.updateMastheadCssHeight=function(){var D=this.mastheadHeight;this.fullscreen&&(D=0);_.SN(this.hostElement,{"--ytd-masthead-height":D+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.u.updateNetworkStatusBannerDisplayStatus=function(){var D="unset";this.fullscreen&&(D="none");_.SN(this.hostElement,{"--ytd-network-status-banner-display":D})};
_.u.updateNetworkStatusBannerCssHeight=function(){var D="unset";this.fullscreen&&(D="0px");_.SN(this.hostElement,{"--ytd-network-status-banner-max-height":D})};
_.u.updateScrollAndMasthead=function(D,Y,R,Z){this.iMaxTheaterMode||(Z=!1);var t=_.DH().resolve(_.Z4).getCurrentPage();D||Y||Z?(document.body.classList.add("no-scroll"),t.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.jN(this,this.onScroll)),t.setScrollTop(0),_.SN(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.g6()+"px"})):R?_.MX(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.MX(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
t.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.jN(this,this.onScroll)));this.mastheadHidden=D||Y||R;this.updateMastheadCssHeight();_.f("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.u.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.u.onYtNavigateAction=function(D){D=this.get("navigateAction.endpoint",D);_.MX(this.hostElement,"yt-navigate",{endpoint:D})};
_.u.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var D=document.createElement("yt-create-family-dialog");_.aU(this.hostElement).appendChild(D);this.hasCreateFamilyDialog=!0}};
_.u.onSetPushNotificationsEnabledCommand=function(D){var Y=this,R=_.A(D,UxI);R&&typeof R.enabled==="boolean"&&(Notification.permission!=="granted"?c5u().then(function(){Notification.permission==="granted"?(hoT(!R.enabled).then(qd9),R.successAction&&_.zA(Y.hostElement,[R.successAction])):R.failureAction&&_.zA(Y.hostElement,[R.failureAction])}):(hoT(!R.enabled).then(qd9),R.successAction&&_.zA(this.hostElement,[R.successAction])))};
_.u.onYtSignalActionEnableChromeNotifications=function(){DXK(!0)};
_.u.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.A(this.topbarData.hotkeyDialog,mxI)}}})};
_.u.onYtSignalActionShowKeyboardShortcutDialog=function(){_.CX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.u.onYtEndpointChangeHandler=function(D,Y){var R=_.Ra(_.vs);R.pendingPrefetchJob_&&(Y=!(!Y||Y.autonav!="1"),R.pendingPrefetchJob_.resolve(D&&_.WTi(D)?_.z8n(D,Y):""),R.pendingPrefetchJob_=null);_.CX(this.hostElement,"yt-pause-active-page-context");_.CX(this.hostElement,"ytd-log-youthere-nav");_.CX(this.hostElement,"yt-prepare-page-dispose")};
_.u.handleCommandWithCommandHandler=function(D,Y){_.GD.instance.resolveCommand(D,{form:{element:Y}})};
_.u.onYtTimedCommand=function(D){var Y=this;D=_.A(D,r$k);var R=D.command;R&&_.$c(_.yc,function(){var Z=_.A(R,_.Ni7);Z?(_.GD.instance.resolveCommand(R),Y.maybeLogGetAnswerRequestTick(Z)):_.Se(Y.hostElement,[R],Y.hostElement)},D.timeoutMs||0)};
_.u.maybeLogGetAnswerRequestTick=function(D){D&&D.isFirstRequest&&(_.U7("search_overview_answer"),_.KX("so_rq",void 0,"search_overview_answer"))};
_.u.onYtSignalActionSkipNavigation=function(){var D=_.DH().resolve(_.Z4).getCurrentPage();_.pq(D)};
_.u.onYtSignalActionCopyDebugData=function(){IiT()};
_.u.handleEntityUpdateCommand=function(D){_.fh(_.A(D,_.oOU).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.u.logFlowLoggingEventCommand=function(D){if(D=_.A(D,_.YeS))if(D.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var Y=D.flowEventNamespace,R=D.flowEventType,Z=D.flowType;Z&&Y&&R&&_.tmj(_.jI(Y,R,D.flowEventMetadata),Z)}else{Y=_.Ga();R=D.flowEventNamespace;Z=D.flowEventType;var t=D.flowType;t&&R&&Z&&_.F9(Y,_.jI(R,Z,D.flowEventMetadata),t,D.flowNonce)}};
_.u.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.u.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.u.onTouchStart=function(){var D=_.yA();_.K2()&&_.pB(D.JSC$13150_screenManager,{visualElement:D.ve})};
_.u.handleSelectLanguageCommand=function(D){if(D=_.A(D,lkK).hl){var Y=_.nX();Y.set("hl",D);Y.save();_.DH().resolve(_.o8).reload()}};
_.u.handleConfirmDialogEndpoint=function(D){(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D)};
_.u.handleOpenPopupNavigationEndpoints=function(D,Y){_.f("web_button_rework")&&(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D,Y)};
_.u.handleSaveCommandToSessionStorage=function(D){if(D=_.A(D,_.jgb)){var Y=D.key;Y&&D.command&&window.sessionStorage.setItem(Y,JSON.stringify(D.command))}};
_.u.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(D){D&&D.active&&D.active.postMessage({type:"refresh_shell"})}).catch(function(D){D.name!=="SecurityError"&&_.Nb(D)})};
_.u.onDeviceThemeChanged=function(){var D=_.yb();_.rC(_.nX(),185,D);_.nX().save()};
_.u.handleYtRegisterPromoCommand=function(D){if(_.A(D,k5u)){var Y=_.DH().resolve(_.Z4).getCurrentPage()||this.hostElement;BGK().registerPromoCommand(_.A(D,k5u),Y)}};
_.u.onYtNavigateHomeAction=function(){if(!_.f("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D,Y,R,Z,t=(Z=(D=this.topbarData)==null?void 0:(Y=D.logo)==null?void 0:(R=Y.topbarLogoRenderer)==null?void 0:R.endpoint)!=null?Z:_.nN;this.ytComponentBehavior.resolveCommand(t)}};
_.u.onYtLocationCollectionCommand=function(D){KIp(_.A(D,EZI))};
_.u.onYtGetLocationCommand=function(D){$B9(_.A(D,psb),this)};
_.u.updateRenderGuideFromBinding=function(D){this.renderGuide=D.detail.value};
_.u.updateGuidePersistentAndVisibleFromBinding=function(D){this.guidePersistentAndVisible=D.detail.value};
_.u.updateMiniGuideVisibleFromBinding=function(D){this.miniGuideVisible=D.detail.value};
_.u.onThemeSelected=function(D,Y){var R=_.nX(),Z=D||Y?D:_.yb(),t=(Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.e8y(_.zZ(window.location.href));_.rC(0,165,D);_.rC(0,174,Y);R.save();t&&_.CX(this.hostElement,"yt-dark-mode-toggled-action",[Z]);_.CX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.u.getCurrentTheme=function(){return _.lX()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.N3()};
_.u.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.u.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.u.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.u.handleShowConsentPrimitive=function(D){var Y=this,R,Z;return _.C(function(t){if(t.nextAddress==1){try{R=(Z=_.sm())==null?void 0:Z.getPlayerPromise()}catch(X){}return t.yield(Ym9(D,R),2)}_.CX(Y.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.V9(t)})};
_.u.handleSelectActiveIdentityEndpointInternal=function(D){_.Qb();D=_.A(D,_.pxU);if(D!=null&&D.supportedTokens){D=_.a(D.supportedTokens);for(var Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.accountSigninToken&&_.pn(Y.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.u.handleUpdatePermissionRoleCommand=function(D){if(D=_.A(D,_.glb)){var Y;this.hasDelegation=!((Y=_.A(D.renderer,_.El1))==null||!Y.status)}};
_.u.registerWithViewTransitionManager=function(){var D=_.DH().resolve(_.cD(_.f1));if(D){var Y,R=(Y=this.guide)==null?void 0:Y.querySelector("#scrim"),Z;Y=(Z=this.guide)==null?void 0:Z.querySelector("#contentContainer");R&&Y&&D.isAnyTransitionEnabled&&(Z={},D.viewTransitionCoordinator.registerElement(R,(Z.slide="app-drawer-scrim-page-transition",Z["lockup-to-watch"]="app-drawer-scrim-page-transition",Z["learning-journey"]="app-drawer-scrim-page-transition",Z)),R={},D.viewTransitionCoordinator.registerElement(Y,
(R.slide="app-drawer-container-page-transition",R["lockup-to-watch"]="app-drawer-container-page-transition",R["learning-journey"]="app-drawer-container-page-transition",R)))}};
_.YF.Object.defineProperties(B2.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.f("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.YF.Object.defineProperties(B2,{template:{configurable:!0,enumerable:!0,get:function(){if(gRT===void 0){var D=document.createElement("template");_.w(D,'\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>\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');
D.content.insertBefore(_.P().content.cloneNode(!0),D.content.firstChild);gRT=D}D=gRT;return D}}});
B2.prototype.onOpenHotkeyDialog=B2.prototype.onOpenHotkeyDialog;B2.prototype.setFullscreen=B2.prototype.setFullscreen;B2.prototype.onAddElementToApp=B2.prototype.onAddElementToApp;B2.prototype.onDrawerIronSelect=B2.prototype.onDrawerIronSelect;B2.prototype.onGuideOpenButtonHover=B2.prototype.onGuideOpenButtonHover;B2.prototype.onRequestPanelModeChange=B2.prototype.onRequestPanelModeChange;B2.prototype.onPageDataUpdated=B2.prototype.onPageDataUpdated;B2.prototype.onPageChanged=B2.prototype.onPageChanged;
B2.prototype.onSetTheaterModeEnabled=B2.prototype.onSetTheaterModeEnabled;B2.prototype.updateMastheadData=B2.prototype.updateMastheadData;B2.prototype.onYtPageManagerAttached=B2.prototype.onYtPageManagerAttached;B2.prototype.observeGuideVisibility=B2.prototype.observeGuideVisibility;B2.prototype.guideIsVisibleButNotPersistentSelectorChanged=B2.prototype.guideIsVisibleButNotPersistentSelectorChanged;B2.prototype.isInlinePreviewEnabledChanged=B2.prototype.isInlinePreviewEnabledChanged;
B2.prototype.isWatchPageChanged=B2.prototype.isWatchPageChanged;B2.prototype.dispatchFrostedGlassMode=B2.prototype.dispatchFrostedGlassMode;_.q([_.v(_.mb),_.x("design:type",Object)],B2.prototype,"ytdReduxBehavior",void 0);_.q([_.v(_.rO.YtEventForwardingBehavior),_.x("design:type",Object)],B2.prototype,"ytEventForwardingBehavior",void 0);_.q([_.v(_.Fh.YtOpenPopupBehavior),_.x("design:type",Object)],B2.prototype,"ytOpenPopupBehavior",void 0);
_.q([_.v(_.Va.YtActionHandlerBehavior),_.x("design:type",Object)],B2.prototype,"ytActionHandlerBehavior",void 0);_.q([_.v({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Bm.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.f("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(D){this.actionRouter_.handleAction(D.detail)}}),
_.x("design:type",Object)],B2.prototype,"ytActionRouterBehavior",void 0);_.q([_.v(c7b.YtdAppBehavior),_.x("design:type",Object)],B2.prototype,"ytdAppBehavior",void 0);_.q([_.v(_.GV.YtEndpointBehavior),_.x("design:type",Object)],B2.prototype,"ytEndpointBehavior",void 0);_.q([_.v(DoK.YtEndpointHandlerWithYpcBehavior),_.x("design:type",Object)],B2.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.q([_.v(d4E.YtLogYpcFlowCommandsBehavior),_.x("design:type",Object)],B2.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.q([_.v(_.p.YtRendererBehavior),_.x("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.q([_.v(_.Bs.YtComponentBehavior),_.x("design:type",Object)],B2.prototype,"ytComponentBehavior",void 0);_.q([_.y({selector:_.aeE}),_.x("design:type",Object)],B2.prototype,"tabGesturesIsActive",void 0);_.q([_.y(),_.x("design:type",Boolean)],B2.prototype,"renderGuide",void 0);
_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"guidePersistentAndVisible",void 0);_.q([_.y({selector:_.uDk}),_.x("design:type",Boolean)],B2.prototype,"guideIsVisibleButNotPersistent",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"standalone",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"miniGuideVisible",void 0);
_.q([_.y({selector:_.BmU}),_.x("design:type",Number)],B2.prototype,"miniplayerPlaybackState",void 0);_.q([_.y({selector:_.Kh,reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"miniplayerIsActive",void 0);_.q([_.y({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],B2.prototype,"isInlinePreviewEnabled",void 0);_.q([_.y(),_.x("design:type",Boolean)],B2.prototype,"isInlinePreviewDisabled",void 0);
_.q([_.y({reflectToAttribute:!0,value:function(){return _.ks("START_IN_FULL_WINDOW_MODE")}}),
_.x("design:type",Boolean)],B2.prototype,"mastheadHidden",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"playerFullscreen",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B2.prototype,"deprecateFullerscreenUi",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"fullscreen",void 0);_.q([_.y({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"hideHeaderShadow",void 0);
_.q([_.y({value:{GUIDE_ALT_LABEL:_.fX("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.x("design:type",Object)],B2.prototype,"menuStrings",void 0);_.q([_.y({computed:"computeTopbarData(data)"}),_.x("design:type",Object)],B2.prototype,"topbarData",void 0);_.q([_.y({selector:_.HNo}),_.x("design:type",Boolean)],B2.prototype,"isWatchPage",void 0);_.q([_.y({selector:_.x8U,reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"isShortsPage",void 0);_.q([_.y({selector:function(D){return _.hu(D)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.x("design:type",Boolean)],B2.prototype,"isMiniAppPage",void 0);_.q([_.y({selector:function(D){return _.hu(D)==="WEB_PAGE_TYPE_BROWSE"}}),
_.x("design:type",Boolean)],B2.prototype,"isBrowsePage",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Boolean)],B2.prototype,"scrolling",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B2.prototype,"hasDelegation",void 0);_.q([_.y({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],B2.prototype,"guideScrolledByTouch",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B2.prototype,"darkerDarkTheme",void 0);
_.q([_.y(),_.x("design:type",Object)],B2.prototype,"isFrostedGlassInitialized",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B2.prototype,"frostedGlassExp",void 0);_.q([_.y({selector:function(D){return D.ui.chipBarIsSticky}}),
_.x("design:type",Boolean)],B2.prototype,"chipBarIsSticky",void 0);_.q([_.y({computed:"computeIsHomePage(isBrowsePage, data)"}),_.x("design:type",Boolean)],B2.prototype,"isHomePage",void 0);_.q([_.y({reflectToAttribute:!0}),_.x("design:type",Object)],B2.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.q([_.y(),_.x("design:type",Object)],B2.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.q([_.jl("guide"),_.x("design:type",Object)],B2.prototype,"guide",void 0);
_.q([_.jl("guide-service"),_.x("design:type",mLK)],B2.prototype,"guideService",void 0);_.q([_.jl("guide-inner-content"),_.x("design:type",HTMLDivElement)],B2.prototype,"guideInnerContent",void 0);_.q([_.y({selector:_.pki}),_.x("design:type",String)],B2.prototype,"frostedGlassMode",void 0);
_.q([_.Gm("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"dispatchFrostedGlassMode",null);_.q([_.y({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.x("design:type",Object)],B2.prototype,"isFrostedGlassDisabled",void 0);
_.q([_.Gm("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"isWatchPageChanged",null);_.q([_.b("isHomePage","chipBarIsSticky"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],B2.prototype,"applyFrostedGlassToChipBar",null);_.q([_.y(),_.x("design:type",Object)],B2.prototype,"isChannelOrPlaylistPage",void 0);
_.q([_.rd("isInlinePreviewEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"isInlinePreviewEnabledChanged",null);_.q([_.Gm("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.q([_.Gm("guidePersistentAndVisible","miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"observeGuideVisibility",null);_.q([_.Fv("attached"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],B2.prototype,"onYtPageManagerAttached",null);_.q([_.Gm("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],B2.prototype,"updateMastheadData",null);
_.q([_.Fv("yt-set-theater-mode-enabled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],B2.prototype,"onSetTheaterModeEnabled",null);_.q([_.Fv("yt-page-type-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],B2.prototype,"onPageChanged",null);_.q([_.Fv("yt-page-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"onPageDataUpdated",null);
_.q([_.Fv("yt-request-panel-mode-change"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],B2.prototype,"onRequestPanelModeChange",null);_.q([_.Fv("yt-guide-hover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"onGuideOpenButtonHover",null);_.q([_.Fv("app-drawer-transitioned"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],B2.prototype,"onDrawerIronSelect",null);
_.q([_.Fv("yt-add-element-to-app"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],B2.prototype,"onAddElementToApp",null);_.q([_.Fv("yt-set-fullerscreen-styles"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"setFullscreen",null);_.q([_.Fv("yt-open-hotkey-dialog"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B2.prototype,"onOpenHotkeyDialog",null);
_.q([_.h({is:"ytd-app"})],B2);_.Q0().processSignal("eor");
_.yJ();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
